12.10.05

Ruby tricks: escaping/unescaping

Posted in Uncategorized, Mac OS X, computers, TextMate, ruby/rails at 2:20 pm by Haris

I am starting to really like Ruby! I was working on my plugin, for Gregarius, and I found myself having to often have the php code spit out javascript code using echo. So something like:

function myinsert(node) {
    var ob = document.getElementById("maindiv");
    ob.setAttribute('style','display:none');
}

would be converted to:

Read the rest of this entry »

12.07.05

My second plugin!

Posted in html/css, Gregarius at 10:18 pm by Haris

Gregarius is coming along nicely! They have just created a nice setup for plugins to save user options on the database, and this prompted me to write my second plugin. It’s called Auto highlighter, and what it does is that you select a keyword, and a color, and it highlights that keyword anywhere in the feed items it appears. It was one of the plugins on the todo list, not sure whose idea it was originally, but it wasn’t mine. It might have originated here. You can find it through the plugins page, or directly here. It looks great. Let me know what additions you would like to see in it.

By the way, if you are an expert regexp user, then you can put a regexp instead of a keyword. If you are not an expert regexp user, I recommend you become one.

Edited to add: The second version of the plugin is now ready, and it’s bigger, better, not faster, but more! It now allows you a variable number of keywords, with different colors each, and it hosts a very sexy config screen, if I may say so myself (ok, sexy with my standards, don’t expect too much :-) ). You can see its results on my gregarius installation, where the words apple, drm and mac are highlighted with three different colors. Let me know what you think, and as usual what other features you would like to see.

Edited again to add: Third version, slicker, using associative arrays to make everything easier for me. Unfortunately, it is not compatible with the previous version, so whatever custom keyword-color pairs you have there will be lost.

Later

12.05.05

Resume in html

Posted in html/css, computers, Mathematics at 10:36 pm by Haris

I just finished converting my cv to html format, using Tim Bray’s template, which I must say I find wonderful. As he so eloquently puts it, “Why would anyone want a word processor any more?”

It am very pleased with the result. Have a look and tell me what you think, and if you have a job for me, let me know! You can find other relevant documents here, though that page is under heavy construction.

Later

11.26.05

My first plugin!

Posted in html/css, Gregarius at 12:16 am by Haris

I recently started helping out as much as I can with the development of Gregarius, a very neat open source feed aggregator which I use on a daily basis, so I figured I might as well help out with it, and learn some AJAX technology along the way. It is after all where I get all my news from. My first contribution was to put together a piece of code that the other developers had around, whose purpose was to create a button that would hide or show the feeds side bar. I’m happy to say that the plugin is now completed, and you can find it at the plugin repository.

Later

11.15.05

Open source software and the mac

Posted in Mac OS X, computers at 2:48 pm by Haris

Here’s a pretty good list of open source software for the mac. Sameer will be very happy about those too (though he probably already knows about most of them). There’s definitely a lot of positive things to be said about open source projects, but I’m probably not the one to comment on that very much. A very interesting read is Neal Stephenson’s little article titled In the Beginning was the Command Line. This is a wonderful read that makes a lot of interesting points. One of these points is that software companies have in effect managed to sell us a series of 0,1 bits, and one could argue how something like that could ever be possible.

Later

« Previous entries · Next entries »