<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>The Accidental Rubyist</title>
	<atom:link href="http://totalrecall.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://totalrecall.wordpress.com</link>
	<description>Creating trouble with Ruby, ncurses and other things</description>
	<lastBuildDate>Sun, 08 Nov 2009 04:52:08 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='totalrecall.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/ec08b34755914e0150b874c4d929db4b?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>The Accidental Rubyist</title>
		<link>http://totalrecall.wordpress.com</link>
	</image>
			<item>
		<title>Getting ruby Tracker to work</title>
		<link>http://totalrecall.wordpress.com/2009/11/08/getting-ruby-tracker-to-work/</link>
		<comments>http://totalrecall.wordpress.com/2009/11/08/getting-ruby-tracker-to-work/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 04:52:08 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/11/08/getting-ruby-tracker-to-work/</guid>
		<description><![CDATA[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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=298&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I had tried out <A HREF="http://tracker.rubyforge.org/">Tracker</A> recently (a simple bug tracker using sqlite as a backend). Gave errors, and the author reported that it had been a long time<br />
and then he went silent. Today, made a few corrections and its working.<br />
However, it is *very slow*. Each command takes a few seconds to respond. I am on 1.9.</p>
<p>I added <code>require acts_as_list</code> in environment.rb. You will need to install this gem in addition to active_record.</p>
<p>2 files contain <CODE>:with_scope</CODE> which is now protected.<br />
Corrected as per <a href="http://ropiku.wordpress.com/tag/with_scope/">http://ropiku.wordpress.com/tag/with_scope/</a>. Now all the actions mentioned on the <A HREF="http://tracker.rubyforge.org/">rubyforge page</A> are working.</p>
<p>In the meantime, I had got <B>ditz</B> to work in ruby 1.9 but with *some errors* (using someones fork). So i am not<br />
too keen on it, although i might start using it later. So i have adapted <B>todo.txt</B> (a cute shell script todo list manager) to create bug files. However, using flat files in email header format does limit the ability to do searches for multiple keys. Its like reinventing the wheel with multiple greps. Much better to use sql instead.</p>
<p>todo.txt is great for todo&#8217;s but only stores a line per todo, no comments, fixes etc so it can&#8217;t be used for tracking bugs. I really should redo this shell-script based bug tracker using ruby thor and highline.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/298/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/298/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=298&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/11/08/getting-ruby-tracker-to-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>rbcurse 0.1.3 released</title>
		<link>http://totalrecall.wordpress.com/2009/11/04/rbcurse-0-1-3-released/</link>
		<comments>http://totalrecall.wordpress.com/2009/11/04/rbcurse-0-1-3-released/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 07:44:39 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[ncurses]]></category>
		<category><![CDATA[rbcurse]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/11/04/rbcurse-0-1-3-released/</guid>
		<description><![CDATA[Just released 0.1.3 on http://gemcutter.org/gems/rbcurse containing a tiny bug fix in Listbox.
Silly of me not to have released a version for 1.9 when I had made the changes and tested out.
Without committing or releasing I started work on SplitPanes and Scrollpanes etc which have
resulted in major changes to base classes too. So now the first [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=297&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Just released 0.1.3 on http://gemcutter.org/gems/rbcurse containing a tiny bug fix in Listbox.</p>
<p>Silly of me not to have released a version for 1.9 when I had made the changes and tested out.<br />
Without committing or releasing I started work on SplitPanes and Scrollpanes etc which have<br />
resulted in major changes to base classes too. So now the first 1.9 version will have all these<br />
additions and changes too.</p>
<p>&#8212;<br />
# Instead of defining a local variable with some initial content (often just an empty hash or array), you can instead define it &#8220;on the go&#8221; so you can perform operations on it at the same time:<br />
<code>
<pre>(z ||= []) &#60;&#60; 'test'</pre>
<p></code><br />
  &#8212; http://www.rubyinside.com/21-ruby-tricks-902.html</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/297/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/297/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/297/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=297&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/11/04/rbcurse-0-1-3-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>Command-line bug tracking</title>
		<link>http://totalrecall.wordpress.com/2009/11/03/command-line-bug-tracking/</link>
		<comments>http://totalrecall.wordpress.com/2009/11/03/command-line-bug-tracking/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 12:16:33 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[being_geeky]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/11/03/command-line-bug-tracking/</guid>
		<description><![CDATA[Have been using todo.txt for a few days. However, i find i am using it more
for recording bugs. todo.txt allows me to mark a task as done but not put
a comment or status. e.g. I need to put in details of what I have done as a bug-fix.
So I just checked up the net a [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=292&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Have been using todo.txt for a few days. However, i find i am using it more<br />
for recording bugs. todo.txt allows me to mark a task as done but not put<br />
a comment or status. e.g. I need to put in details of what I have done as a bug-fix.</p>
<p>So I just checked up the net a bit and came across a bunch of command-line bug<br />
trackers. Need something simple and CLI.</p>
<p>Two nice-looking projects are: <a href="http://tracker.rubyforge.org/">tracker</a> and <a href="http://ditz.rubyforge.org/">ditz</a> (coincidentally ruby, I hope<br />
1.9.1). ticgit also looks good, but perhaps a little more complicated than what<br />
i want.</p>
<p>Let me know if you are using something nice and simple for your small projects.</p>
<p>OUCH ! Both are giving errors! Tried tracker in both 1.8 and 1.9. There are some dependencies not mentioned. Gives an error in active-record.</p>
<blockquote><p><strong>$ trac bootstrap</strong><br />
/opt/local/lib/ruby/gems/1.8/gems/activerecord-2.1.0/lib/active_record/base.rb:1667:in `method_missing&#8217;: undefined method `acts_as_list&#8217; for #&lt;Class:0&#215;17973f8&gt; (NoMethodError)<br />
from /opt/local/lib/ruby/gems/1.8/gems/Tracker-1.0.0/bin/../lib/comment.rb:3<br />
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require&#8217;<br />
from /opt/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require&#8217;</p>
</blockquote>
<blockquote><p>$ <strong>ditz</strong></p>
<p>/opt/local/lib/ruby1.9/gems/1.9.1/gems/ditz-0.5/lib/model-objects.rb:1:in `require&#8217;: /opt/local/lib/ruby1.9/gems/1.9.1/gems/ditz-0.5/lib/model.rb:214: multiple assignment in conditional (SyntaxError)</p>
</blockquote>
<p>The person on the ditz mailing list, says he is no longer maintaining it since it never really met his needs.</p>
<p>The saga continues:</p>
<p>I install <strong>gnu gnats</strong> (sudo port install gnats), installs <em>fine</em>, but on executing send-pr it complains it cannot find a file pr-edit.</p>
<p>I install another ruby bug tracker, <strong>ticgit</strong>. Seems to be for 1.8 since I ran into a &#8220;when :&#8221; error. Fixed that but it goes on to another.</p>
<blockquote><p><strong>$ ti new -t &#8216;my new ticket&#8217;</strong><br />
/opt/local/lib/ruby1.9/gems/1.9.1/gems/git-1.2.5/lib/git/lib.rb:329:in `chdir&#8217;: wrong number of arguments (1 for 0) (ArgumentError)<br />
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/git-1.2.5/lib/git/lib.rb:329:in `config_get&#8217;<br />
from /opt/local/lib/ruby1.9/gems/1.9.1/gems/git-1.2.5/lib/git/base.rb:135:in `config&#8217;</p>
</blockquote>
<p>So no command-line bug-tracking for me, &#8230; as of now at least.</p>
<p>&#8212;<br />
Vim + Firefox: http://vimperator.org/</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/292/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/292/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/292/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=292&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/11/03/command-line-bug-tracking/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>Progress on SplitPane and ScrollPane</title>
		<link>http://totalrecall.wordpress.com/2009/11/01/progress-on-splitpane-and-scrollpane/</link>
		<comments>http://totalrecall.wordpress.com/2009/11/01/progress-on-splitpane-and-scrollpane/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 17:25:55 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[ncurses]]></category>
		<category><![CDATA[rbcurse]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/11/01/progress-on-splitpane-and-scrollpane/</guid>
		<description><![CDATA[Great progress on rbcurse&#8217;s Scrollpanes and Splitpanes. Scrollpanes contain a viewport which handles the window or porthole into it&#8217;s child object. The scrollpane handles communication with the viewport, and the scrollbars. I&#8217;ve just added some neat scrollbars. However, there&#8217;s a lot of drudge work to be done such as event listeners, and allowing editable objects [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=287&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Great progress on rbcurse&#8217;s Scrollpanes and Splitpanes. <strong>Scrollpanes</strong> contain a <strong>viewport</strong> which handles the window or porthole into it&#8217;s child object. The scrollpane handles communication with the viewport, and the scrollbars. I&#8217;ve just added some neat scrollbars. However, there&#8217;s a lot of drudge work to be done such as event listeners, and allowing editable objects inside scrollpanes and splitpanes.</p>
<div id="attachment_288" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-288" title="Scrollpane" src="http://totalrecall.files.wordpress.com/2009/11/picture-3.png?w=450&#038;h=274" alt="rbcurse scrollpane" width="450" height="274" /><p class="wp-caption-text">Scrollpane using ncurses</p></div>
<p><strong>Splitpanes</strong>: tested a splitpane with 2 splitpanes as its child components. However, have to use real world objects inside that. Objects that go inside scroll and splitpanes need to be buffered using pads. That and their handling of cursor position etc need to be taken care of.</p>
<div id="attachment_289" class="wp-caption alignnone" style="width: 460px"><img class="size-full wp-image-289" title="rbcurse splitpane" src="http://totalrecall.files.wordpress.com/2009/11/picture-4.png?w=450&#038;h=268" alt="SplitPane using ncurses (rbcurse)" width="450" height="268" /><p class="wp-caption-text">SplitPane using ncurses (rbcurse)</p></div>
<p>A major change in the upcoming version (0.1.3), is that widgets will no longer write directly onto the screen. That was quick and easy and light. But for real world apps, when one has splitpanes, scrollpanes etc, then parent objects need to clip and place their child objects themselves. Child widgets don&#8217;t even know their coordinates. So using <strong>pads</strong> internally was required.</p>
<p>That means that most of the existing classes will need to be modified to use pads for painting. A lot of drudge coding.  May need to make borders and scrollbars into classes. The upcoming version should be exciting. Now it should be possible to make a Tree class, too.</p>
<p>&#8212;<br />
# print section of file from regex to end of file<br />
$ cat  | ruby -pe &#8216;@found=true if $_ =~ /regex/; next unless @found&#8217;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/287/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/287/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=287&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/11/01/progress-on-splitpane-and-scrollpane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>

		<media:content url="http://totalrecall.files.wordpress.com/2009/11/picture-3.png" medium="image">
			<media:title type="html">Scrollpane</media:title>
		</media:content>

		<media:content url="http://totalrecall.files.wordpress.com/2009/11/picture-4.png" medium="image">
			<media:title type="html">rbcurse splitpane</media:title>
		</media:content>
	</item>
		<item>
		<title>Fooling around with todo lists</title>
		<link>http://totalrecall.wordpress.com/2009/10/31/fooling-around-with-todo-lists/</link>
		<comments>http://totalrecall.wordpress.com/2009/10/31/fooling-around-with-todo-lists/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 12:39:58 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[being_geeky]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/10/31/fooling-around-with-todo-lists/</guid>
		<description><![CDATA[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&#8217;ve been looking for. Over the years I&#8217;ve tried out many alternatives but given up. Most of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=286&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I am finally trying out something called <A HREF="http://ginatrapani.github.com/todo.txt-cli/">todo.txt</A><br />
and <A HREF="http://wiki.github.com/ginatrapani/todo.txt-cli/user-documentation">this</A>.</p>
<p><B>todo.txt</B> 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&#8217;ve been looking for. Over the years I&#8217;ve tried out many alternatives but given up. Most of these don&#8217;t generate a text file.</p>
<p>1. <B>High-priority</B> &#8211; nice Mac app, available on the top menu<br />
2. todo app (a <B>Dashboard widget</B>), available on F12<br />
3. todo list in <B>iGoogle</B> (i still have tasks in it)<br />
4. Tasks in <B>gmail</B> (abandoned)<br />
5. Using <B>alpine</B> for tasks, send them as emails, and flag them off (abandoned)<br />
6. Using <B>gmail</B> itself for tasks, labelling them. (abandoned)<br />
7. <B>taskpaper</B> &#8211; a vim plugin, installed it but was not impressed<br />
8. I just saw <B>doneyet</B>, but I think it expects me to download a subversion project.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/286/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/286/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/286/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=286&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/10/31/fooling-around-with-todo-lists/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>More thoughts on scrollpane and splitpane</title>
		<link>http://totalrecall.wordpress.com/2009/10/28/more-thoughts-on-scrollpane-and-splitpane/</link>
		<comments>http://totalrecall.wordpress.com/2009/10/28/more-thoughts-on-scrollpane-and-splitpane/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 03:56:23 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[rbcurse]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/10/28/more-thoughts-on-scrollpane-and-splitpane/</guid>
		<description><![CDATA[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&#8217;s [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=283&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>More work on paper. I think now I am ready to start coding. Situations are like:<br />
a splitpane contains one or 2 scrollpanes. The scrollpane contains, say, a table or list or form.<br />
Now the table knows how to print itself, but the scrollpane must clip part of it, and the splitpane<br />
may further clip more. So what&#8217;s shown on screen is after each layer has clipped. Getting this<br />
into the existing framework required some thought.</p>
<p>Trickier is that when a scrollpane scrolls an object, the focus within that widget has to be adjusted<br />
accordingly by the object. Similarly, when a user tabs past last visible object in a<br />
scrollpane, object should scroll up.</p>
<p>&#8212;<br />
# print the last 10 lines of a file (emulate &#8216;tail&#8217;); NOTE reads entire file!<br />
    $ cat  | ruby -e &#8216;puts STDIN.readlines.reverse!.slice(0,10).reverse!&#8217;</p>
<p style="text-align:right;"><span style="font-size:10pt;"><br />
<a href="http://www.infynity.spodzone.com/vim/HTML/HTML.html">HTML.vim</a>,<br />
<A HREF="http://scott.yang.id.au/2002/12/mtsendpy/">mtsend.py</A></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/283/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/283/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/283/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=283&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/10/28/more-thoughts-on-scrollpane-and-splitpane/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>General and health update</title>
		<link>http://totalrecall.wordpress.com/2009/10/24/general-and-health-update/</link>
		<comments>http://totalrecall.wordpress.com/2009/10/24/general-and-health-update/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 05:51:37 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[rbcurse]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/10/24/general-and-health-update/</guid>
		<description><![CDATA[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&#8217;t look at a comp terminal or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=282&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>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&#8217;t look at a comp terminal or book without eyes smarting after 5 minutes. Dad&#8217;s still bedridden, he&#8217;s almost 90 so life&#8217;s going to be mostly bed and loo for him now <img src='http://s.wordpress.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> .</p>
<p>So last few days, I&#8217;ve been mulling over how to get <B>scrollpanes</B> into rbcurse without the component having to be aware. It should be place-able into a scroll pane, that&#8217;s all. However, currently rbcurse components write directly onto the screen. OTOH, i was just reading that Java comps are double-buffered. The closest I can think of is a component writing to a pad. And then the pad is written onto the screen. As many pads as components. Or perhaps subpads on one large pad. Then any component or form can be attached to a scrollpane, which will show the appropriate portion of the pad.</p>
<p>Just remember with pads, you need to declare dimensions beforehand. If the components exceeds, need to create a nnew pad and copy stuff (this would be needed when we go in for tree components)</p>
<p>&#8212;<br />
# Rescue to the rescue:<br />
<code>
<pre>h = { :age =&#62; 10 }
h[:name].downcase                         # ERROR
h[:name].downcase rescue "No name"        # =&#62; "No name"</pre>
<p></code><br />
  &#8212; http://www.rubyinside.com/21-ruby-tricks-902.html</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/282/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/282/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/282/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=282&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/10/24/general-and-health-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>Vim function for markdown maruku users</title>
		<link>http://totalrecall.wordpress.com/2009/10/12/vim-function-for-markdown-maruku-users/</link>
		<comments>http://totalrecall.wordpress.com/2009/10/12/vim-function-for-markdown-maruku-users/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 17:53:04 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/10/12/vim-function-for-markdown-maruku-users/</guid>
		<description><![CDATA[For vim users who use markdown or maruku and need a little help surrounding words.
This function goes into your vimrc.
I&#8217;ve mapped it to &#8220;,m&#8221; 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, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=281&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>For vim users who use markdown or maruku and need a little help surrounding words.<br />
This <A HREF="http://gist.github.com/207771">function</A> goes into your vimrc.<br />
I&#8217;ve mapped it to &#8220;,m&#8221; in visual mode.</p>
<p>Select a word or line or block, press ,m<br />
You are prompted for a char or chars. These chars are placed on both sides of the visually<br />
marked block.</p>
<p>I use <a href="http://www.infynity.spodzone.com/vim/HTML/HTML.html">HTML.vim</a>, for most serious work<br />
but for simple NOTES, TODO, CHANGELOG, etc files I use markdown, and this helps a lot.<br />
It&#8217;s a copy of a function called VisualHTMLTagWrap.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/281/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/281/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/281/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=281&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/10/12/vim-function-for-markdown-maruku-users/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>Splitpanes are possible using ruby ncurses</title>
		<link>http://totalrecall.wordpress.com/2009/10/06/splitpanes-are-possible-using-ruby-ncurses/</link>
		<comments>http://totalrecall.wordpress.com/2009/10/06/splitpanes-are-possible-using-ruby-ncurses/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 04:35:35 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[rbcurse]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/10/06/splitpanes-are-possible-using-ruby-ncurses/</guid>
		<description><![CDATA[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 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=280&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I have been thinking about how to implement <A HREF="http://java.sun.com/docs/books/tutorial/figures/uiswing/components/SplitPaneDemo2.png">split panes </A>(like file explorers, or frames in a browser) in <A HREF="http://github.com/rkumar/rbcurse/tree/rbcurse19">rbcurse</A>.<br />
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 and scrollpanes could be implemented easily.</p>
<p><IMG SRC="http://java.sun.com/products/jlf/ed2/book/images/window.DoubleSplit.gif" ALT="split pane"></p>
<p>This should obviously not involve the component knowing it is in a split pane, or that it is currently not in view. Similarly, <A HREF="http://www.ghacks.net/wp-content/uploads/2009/03/alpine_config1.png">a screen like alpine&#8217;s</A> (email client) <A HREF="http://shakthimaan.com/installs/alpine-email-images/2-alpine-setup.jpg">custom setup</A> (which is multi-page) should be possible without the user having to setup pages. The component automatically manages bringing components into view, and into focus as well. Once i am over testing rbcurse with ruby1.9 and maybe adding an edit screen to the sql client demo, I can start working on <A HREF="http://java.sun.com/docs/books/tutorial/uiswing/components/splitpane.html">Splitpanes</A> and <A HREF="http://java.sun.com/docs/books/tutorial/uiswing/components/scrollpane.html">Scrollpanes</A>.</p>
<p>&#8212;<br />
Some porting links:<br />
http://boga.wordpress.com/2008/04/15/ruby-19-porting-notes/<br />
http://blog.grayproductions.net/articles/getting_code_ready_for_ruby_19<br />
http://www.scribd.com/doc/12942398/Migrating-To-Ruby-19<br />
http://blog.nuclearsquid.com/writings/ruby-1-9-what-s-new-what-s-changed<br />
http://www.davidflanagan.com/2007/08/changes-between-ruby-18-and-ruby-19.html</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/280/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/280/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/280/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=280&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/10/06/splitpanes-are-possible-using-ruby-ncurses/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
		<item>
		<title>porting rbcurse to ruby 1.9</title>
		<link>http://totalrecall.wordpress.com/2009/10/05/porting-rbcurse-to-ruby-1-9/</link>
		<comments>http://totalrecall.wordpress.com/2009/10/05/porting-rbcurse-to-ruby-1-9/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 09:36:38 +0000</pubDate>
		<dc:creator>totalrecall</dc:creator>
				<category><![CDATA[rbcurse]]></category>

		<guid isPermaLink="false">http://totalrecall.wordpress.com/2009/10/05/porting-rbcurse-to-ruby-1-9/</guid>
		<description><![CDATA[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&#8217;ve not caught.
Have tweaked TextArea a bit [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=279&subd=totalrecall&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>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.</p>
<p>Examples are all working, altho there could be some obscure bug with some key, or some string index that i&#8217;ve not caught.</p>
<p>Have tweaked TextArea a bit more.</p>
<p>This requires <B>ncurses-ruby 1.2.4</B> since the older versions do not work with ruby 1.9. This may be found at: <A HREF="http://prdownload.berlios.de/ncurses-ruby/ncurses-ruby-1.2.4.tar.bz2">original</A>  or <A HREF="http://benegal.org/files/ncurses-ruby-1.2.4.tar.gz">backup</A> (and the <A HREF="http://benegal.org/files/ncurses-1.2.4.gem"> ncurses-ruby gem</A> in case you have problems creating it.)</p>
<p>After this is tested out, I will test out with ruby 1.8 and see if it can run under both. Then i can merge it back into the main. Please see github (branch <A HREF="http://github.com/rkumar/rbcurse/tree/rbcurse19">rbcurse19</A>) for work in progress. The README.txt has complete installation instructions.</p>
<p>&#8212;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/totalrecall.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/totalrecall.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/totalrecall.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/totalrecall.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/totalrecall.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/totalrecall.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/totalrecall.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/totalrecall.wordpress.com/279/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/totalrecall.wordpress.com/279/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/totalrecall.wordpress.com/279/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=totalrecall.wordpress.com&blog=826521&post=279&subd=totalrecall&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://totalrecall.wordpress.com/2009/10/05/porting-rbcurse-to-ruby-1-9/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/d041a18744530b3a2b3b9c7f2ed83f64?s=96&#38;d=http%3A%2F%2F1.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96" medium="image">
			<media:title type="html">totalrecall</media:title>
		</media:content>
	</item>
	</channel>
</rss>