Saturday, February 12, 2011

Another Scintilla Editor

http://caladbolg.net/luadoc/textadept/manual/1_Introduction.html

require 'textadept'

local keys = _G.keys
local b, v = 'buffer', 'view'
local gui = gui

keys.can = { new_buffer }
keys.cl = { 'char_right', b }
keys.cL = { 'char_right_extend', b }
keys.cal = { 'word_right', b }
keys.caL = { 'word_right_extend', b }
keys.cj = { 'char_left', b }
keys.cJ = { 'char_left_extend', b }
keys.caj = { 'word_left', b }
keys.caJ = { 'word_left_extend', b }
keys.ck = { 'line_down', b }
keys.cak = { 'line_down', b }
keys.cK = { 'line_down_extend', b }
keys.caK = { 'line_down_extend', b }
keys.ci = { 'line_up', b }
keys.cai = { 'line_up', b }
keys.cI = { 'line_up_extend', b }
keys.caI = { 'line_up_extend', b }
keys.ch = { 'vc_home', b }
keys.cah = { 'vc_home', b }
keys.cH = { 'home_extend', b }
keys.caH = { 'home_extend', b }
keys['c;'] = { 'line_end', b }
keys['ca;'] = { 'line_end', b }
keys['c:'] = { 'line_end_extend', b }
keys['ca:'] = { 'line_end_extend', b }
keys.cd = { 'clear', b }
keys.caN = { gui.switch_buffer }
keys.cn = { 'goto_buffer', v, 1, false }
keys.cN = { 'goto_buffer', v, -1, false }
keys.ce = {
function()
buffer:line_end_extend()
buffer:cut()
end
}

Monday, January 3, 2011

Installing a Bluetooth Headset on Windows 7

Thanks to Komeil Bahmanpour I can use my LG HBM-235 bluetooth earpiece with GMail phone calling.

(Windows will install the device but can't find the driver.)

Friday, December 31, 2010

Building a CLASSPATH in Windows

Thanks to Real's How To:

@echo off
setlocal ENABLEDELAYEDEXPANSION
if defined CLASSPATH (set CLASSPATH=%CLASSPATH%;.) else (set CLASSPATH=.)
FOR /R .\lib %%G IN (*.jar) DO set CLASSPATH=!CLASSPATH!;%%G
Echo The Classpath definition is %CLASSPATH%
...
java MyClass

Tuesday, December 14, 2010

Notepad++, The New Editor King (or, jEdit Dethroned)

I finally gave Notepad++ an honest going over, and it is unquestionably the most flexible tool for editing text the internet has to offer. It:
  • handles my keybinding scheme
  • is fast(er than jEdit)
  • handles large files without choking
You can customize it to a ridiculous degree, and because it uses Scintilla for the editor, schemes should be portable across platforms (Geany, others).

Notepad++'s only real deficiency is its lack of full regex support.

Wednesday, December 1, 2010

Generalizing for Pathfinder Compatibility

I've looking at Pathfinder for a while (bought the core rulebooks and a few modules), but since listening the Chronicles: Pathfinder Podcast I'm energized to fix up the Grendel to be compatible with the core rules.

As always, I need knowledgeable testers to validate my suspicions (also some data entry help would be a huge help):


If you're unfamiliar with Pathfinder, it's essentially a light extension of the 3.5 rules in a well-articulated campaign setting. It's published by the old publishing arm of Wizards of the Coast, Paizo Publishing.

Interesting fact about Paizo: the publisher writes modules.

Monday, October 4, 2010

Fixing XP

Here's a list of utility programs that make Windows XP a little nicer:

Alwact Clock: Onscreen click-through clock
AutoHotkey: keyboard mapping and scripting
SetCapsLockState, AlwaysOff

CapsLock & a::
IfWinExist jEdit
WinActivate
else
Run C:\PROGRA~1\jEdit\jedit.bat
return

CapsLock & q::
IfWinExist ahk_class Chrome_WidgetWin_0
WinActivate
else
Run "C:\Program Files\Chrome\chrome.exe" --enable-accelerated-compositing
return

CapsLock & s::
IfWinExist xplorer²
WinActivate
else
Run "C:\Program Files\zabkat\xplorer2_lite\xplorer2_lite.exe""
return
PathTooLong: If you can't delete a directory because the path is too long
Power Menu: Window always-on-top
Power Resizer: Windows 7-style window resizing (half-screen on edge)
WizMouse: Scroll the window under the mouse

Monday, September 6, 2010

Also, Character Sheets

Here it is, a character sheet:


The nice thing is, if you don't like it, they're easy to make and easy to fill in with character data.