Monday, August 24, 2009
Spring is almost here. Time to clean out your old crap code.
I took this pick this morning on the way to work. Obviously someone is cleaning out their old legacy code:
Tuesday, March 24, 2009
My summer project: IcePin - a Ruby editor in Ruby
I read recently that a guy called Daniel Lucraft has written a text-editor in Ruby called Redcar. It was a relieft to see that there is more than one person silly enough to do what I have spent the last couple of months doing.
My editor is called Icepin. Here is a screen-shot (click for full-size):

Daniel's editor is a clone of TextMate for Gnome. Icepin is a clone of Emacs for Mac/Linux/whatever using the wxRuby toolkit. I did not look at the Emacs source-code at all, but have certainly copied many of the things that I like about Emacs. Icepin is 100% pure Ruby.
So why, you may ask, have I wasted countless hours building my own editor when there are so many excellent editors available? Why does anyone do anything, I guess. Personally, I loved using Emacs because of the huge number of available modules. However...
...there was a plugin that I was using called yasnippet that had a bug in it (which is now fixed). I tried to fix it myself and realized that as much as I tried, I really couldn't learn to love LISP. I really want to love it, I promise, but I am possibly just not smart enough to program anything useful in it.
My day job is Ruby programming and I am fairly comfortable with it. So the obvious choice would be to use TextMate, which allows you to write extensions in Ruby/Python/etc. However TextMate does not have split windows, and I really cannot live without them. TextMate 2 (with split windows) seems to be vapourware.
As you can see from my screenshot, IcePin has split windows. It has basic editing features, unlimited undo, search/replace, syntax highlighting, unlimited buffers and that is about it. It is about 5x as good as Windows Notepad, as opposed to about 100x to 1000x as good for most popular editors (TextMate, Emacs, vim, etc). I am guessing that it is nowhere near as powerful as Daniel Lucraft's Redcar editor, but I haven't had the chance to try his out.
I haven't added a new feature to IcePin in about 3 weeks and I think I may have become bored with it. I have been using it exclusively for all my programming since the start of the year (when it was two weeks old, called Roomacs and running in a terminal using ncurses) and I must say it is fun to use your own software all day. It is also nice to be the only user world-wide, in a strange way. Now it is at the stage that it does everything that I need, I think I will leave it for a while and play with another pet project.
My editor is called Icepin. Here is a screen-shot (click for full-size):

Daniel's editor is a clone of TextMate for Gnome. Icepin is a clone of Emacs for Mac/Linux/whatever using the wxRuby toolkit. I did not look at the Emacs source-code at all, but have certainly copied many of the things that I like about Emacs. Icepin is 100% pure Ruby.
So why, you may ask, have I wasted countless hours building my own editor when there are so many excellent editors available? Why does anyone do anything, I guess. Personally, I loved using Emacs because of the huge number of available modules. However...
...there was a plugin that I was using called yasnippet that had a bug in it (which is now fixed). I tried to fix it myself and realized that as much as I tried, I really couldn't learn to love LISP. I really want to love it, I promise, but I am possibly just not smart enough to program anything useful in it.
My day job is Ruby programming and I am fairly comfortable with it. So the obvious choice would be to use TextMate, which allows you to write extensions in Ruby/Python/etc. However TextMate does not have split windows, and I really cannot live without them. TextMate 2 (with split windows) seems to be vapourware.
As you can see from my screenshot, IcePin has split windows. It has basic editing features, unlimited undo, search/replace, syntax highlighting, unlimited buffers and that is about it. It is about 5x as good as Windows Notepad, as opposed to about 100x to 1000x as good for most popular editors (TextMate, Emacs, vim, etc). I am guessing that it is nowhere near as powerful as Daniel Lucraft's Redcar editor, but I haven't had the chance to try his out.
I haven't added a new feature to IcePin in about 3 weeks and I think I may have become bored with it. I have been using it exclusively for all my programming since the start of the year (when it was two weeks old, called Roomacs and running in a terminal using ncurses) and I must say it is fun to use your own software all day. It is also nice to be the only user world-wide, in a strange way. Now it is at the stage that it does everything that I need, I think I will leave it for a while and play with another pet project.
Sunday, November 2, 2008
Shelfintosh
My desk at The OpenHub has been getting crazy messy lately so I decided that I needed to either throw away some junk or come up with a storage solution. Since I am a die-hard hoarder, I decided on the latter.
Measuring up the desk, I didn't have a lot of room once the MacBook and 24" screen were in place. I needed something tall and narrow. I didn't like the look of the stacking document trays at the newsagent - they were expensive and nasty - so I decided to make a little bookshelf. I need to get my cabinet-making skills as I am trying to convince my wife that I can build us a new kitchen, rather than spending $20,000.
Since I needed a tall and narrow bookshelf that would fit in only about 28cm of space, I decided to keep with the nerdy environment at work and build my shelves using an Apple Macintosh as a template. Here is the finished Shelfintosh, next to my template:
The template Mac Classic was sitting quite close to the table-saw during the construction of of the bookshelf, so chances are it is full of MDF dust now. Poor thing.
Three plastic document trays would have cost me about $15 at Officeworks, but I built my nerdy bookshelf using about $4 of 12mm MDF. If I hadn't spent about $1k in tools, I think you would agree that I am well ahead.
P. S. Yes, I have undeleted my blog. For my dozen or so readers, I am sure this is fantastic news. I will be writing sporadically, as always. I think the theme will be a bit different to my old blog. Mostly it will be showing the results of some little project, like this post. Of course most of my projects are programming related, so it will still be an unashamedly nerdy blog.
My next post will be about a couple of useful scripts that I am working on to automagically arrange my windows in Mac OS X, after a very useful tip-off from my desk-buddy John.
Measuring up the desk, I didn't have a lot of room once the MacBook and 24" screen were in place. I needed something tall and narrow. I didn't like the look of the stacking document trays at the newsagent - they were expensive and nasty - so I decided to make a little bookshelf. I need to get my cabinet-making skills as I am trying to convince my wife that I can build us a new kitchen, rather than spending $20,000.
Since I needed a tall and narrow bookshelf that would fit in only about 28cm of space, I decided to keep with the nerdy environment at work and build my shelves using an Apple Macintosh as a template. Here is the finished Shelfintosh, next to my template:
The template Mac Classic was sitting quite close to the table-saw during the construction of of the bookshelf, so chances are it is full of MDF dust now. Poor thing.
Three plastic document trays would have cost me about $15 at Officeworks, but I built my nerdy bookshelf using about $4 of 12mm MDF. If I hadn't spent about $1k in tools, I think you would agree that I am well ahead.
P. S. Yes, I have undeleted my blog. For my dozen or so readers, I am sure this is fantastic news. I will be writing sporadically, as always. I think the theme will be a bit different to my old blog. Mostly it will be showing the results of some little project, like this post. Of course most of my projects are programming related, so it will still be an unashamedly nerdy blog.
My next post will be about a couple of useful scripts that I am working on to automagically arrange my windows in Mac OS X, after a very useful tip-off from my desk-buddy John.
Sunday, June 29, 2008
I deleted my blog
Hello web-surfer,
I deleted my blog because I was sick of it. Sorry for any inconvenience. It was 71 posts of shit.
Thanks,
Clinton.
I deleted my blog because I was sick of it. Sorry for any inconvenience. It was 71 posts of shit.
Thanks,
Clinton.
Subscribe to:
Posts (Atom)


