Archive for October, 2009

Fooling around with todo lists

October 31, 2009

I am finally trying out something called todo.txt
and this.
todo.txt looks good, is a bash script (sed heavy), generates a simple text file, allows for setting of project name, or tags, and priorities. Just the kind of simple thing I’ve been looking for. Over the years I’ve tried out many alternatives but given up. Most of [...]

More thoughts on scrollpane and splitpane

October 28, 2009

More work on paper. I think now I am ready to start coding. Situations are like:
a splitpane contains one or 2 scrollpanes. The scrollpane contains, say, a table or list or form.
Now the table knows how to print itself, but the scrollpane must clip part of it, and the splitpane
may further clip more. So what’s [...]

General and health update

October 24, 2009

Things have been slow. I was in the midst of a lot of testing out with pads, subpads, subwindows etc. Then my dad got hospitalized twice. In the middle of all that, I fell ill. I still have some chest congestion which is being treated (antibiotics). I simple can’t look at a comp terminal or [...]

Vim function for markdown maruku users

October 12, 2009

For vim users who use markdown or maruku and need a little help surrounding words.
This function goes into your vimrc.
I’ve mapped it to “,m” in visual mode.
Select a word or line or block, press ,m
You are prompted for a char or chars. These chars are placed on both sides of the visually
marked block.
I use HTML.vim, [...]

Splitpanes are possible using ruby ncurses

October 6, 2009

I have been thinking about how to implement split panes (like file explorers, or frames in a browser) in rbcurse.
While fixing some display issues in multi-column tables (when increasing the size of one column, other columns were printing slightly out of the table boundary in some stray cases), i had an idea of how splitpanes [...]

porting rbcurse to ruby 1.9

October 5, 2009

Started the porting of rbcurse (ruby ncurses widget ilbrary) to 1.9 today after ncurses started to work. Am totally new to ruby1.9, but examples from rbcurse are beginning to work.
Examples are all working, altho there could be some obscure bug with some key, or some string index that i’ve not caught.
Have tweaked TextArea a bit [...]

ncurses not working on ruby 1.9 ?

October 3, 2009

Well, after making changes to the ncurses-0.9.1 source, compiling, creating a gemspec, building a gem and installing it… it still won’t work under ruby 1.9.1. The examples give this error:
form.rb:21:in `’: undefined method `new_field’ for Ncurses::Form:Module (NoMethodError)
I went to the elliottcable version (which compiled) — he’s already made the corrections to ncurses, and the examples [...]

ncurses ruby gem

October 2, 2009

I had in the installation of rbcurse, asked for the gem of ncurses-ruby to be installed.
Appa, there is no such gem so I must have downloaded the tgz from berlios.de and put it into the gem folder or something like that and forgotten about it.
After trying something like that, i browsed around again, and found [...]

Waking up after a long time

October 2, 2009

Been off for a long while.
Someone requested rbcurse for 1.9. So I’ve just installed ruby 1.9. I have to remember ruby, git (how to branch and commit, and that github password thing) and how to post a blog etc, basically pick up all over again.
I’ve gotta dig out the changes from 1.8 to 1.9 and [...]