Archive for the 'ruby' Category

Getting ruby Tracker to work

November 8, 2009

I had tried out Tracker recently (a simple bug tracker using sqlite as a backend). Gave errors, and the author reported that it had been a long time
and then he went silent. Today, made a few corrections and its working.
However, it is *very slow*. Each command takes a few seconds to respond. I am on [...]

Progress on SplitPane and ScrollPane

November 1, 2009

Great progress on rbcurse’s Scrollpanes and Splitpanes. Scrollpanes contain a viewport which handles the window or porthole into it’s child object. The scrollpane handles communication with the viewport, and the scrollbars. I’ve just added some neat scrollbars. However, there’s a lot of drudge work to be done such as event listeners, and allowing editable objects [...]

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 [...]

rbcurse 0.1.2 gem released

February 22, 2009

Version 0.1.2 of rbcurse (Ruby Curses Widgets) has been released. Minor enhancements:

search in textview, textarea with wrap-around, case insensitive and highlighting searched text
table can have nil data to start with
tabbed pane has  ok button by default, can set ok_cancel etc
table autosizing – required for adhoc queries
table horizontal scrolling – if [...]

Sample: SQL Client in ruby ncurses

February 14, 2009

I am putting up a small SQL Client made in about 3 hours using rbcurse. The idea of course was to see deficiencies in the library, and yes, for adhoc queries auto_sizing of columns is required. Need to work on that.
The demo shows a textarea, enter a query and press Run to see the results [...]

Update on Finder app (ruby curses)

February 9, 2009

A very rough demo (7 mb) of the app (sorry, its hastily done with no planning) and a couple screens. The aim is really to find loopholes in the ruby curses widgets and framework. I have while making this added the ability to easily get radio buttons and checkboxes onto dialog boxes. You almost always [...]

First real app with Ruby-Curses (rbcurse)

January 18, 2009

I decided to start doing a small app to test out the widgets (VIDEO). More real life than the eye-candy I’ve been posting till now. Its a TODO like app which will actually manage my TODO, FIXME, DONE list that I am using for this. The base is a YAML file – not the best [...]

Editable Multi-column tables

January 13, 2009

Quite excited to share that I’ve just got editable tables coded and running. String, numeric, checkboxes (for boolean) and combolists. That sort of covers the minimum requirements of an editable table. Also see earlier post with a non-edit table that allowed column moving, resizing etc.
A quicktime file demos this 2.6 MB).  Updated on Jan [...]

Editable lists: Fields, Checkboxes, ComboBoxes

January 11, 2009

Thanks to CellRenderers and CellEditors, we may edit existing lists with just this line added:

cell_editing_allowed true

If you want row selectors to be shown:

show_selector true

The selector itself may be changed, the default is a gt sign: “>”
Since the rows are selectable, therefore you can make a [...]

Big internal changes amiss

January 8, 2009

Some major changes (internal)
### firing property change
1. In order not to repaint the entire form each time, we must only repaint a widget when modified. However, as can be seen, widgets are being modified by other widgets. Thus whenever a property is changed, we need a flag to be set that repainting [...]