Archive for the ‘Programming’ Category

I cur­rently develop on a Win­dows machine. (You can cut the snick­er­ing.) There­fore, I don’t have the plea­sure of using Text­Mate. I’m also avoid­ing IDEs as a mat­ter of course when an edi­tor and CLI often avoids the bloat and sub­se­quently works faster. I first used Scite which shipped with InstantRails. I quickly moved over to jEdit when I switched to Rails on Cyg­win. With the right set of plu­g­ins you can quickly and eas­ily get a TextMate-like edi­tor. I decided to give Vim/GVim a try when I saw it in action. As much as I liked the raw power, things just didn’t make sense to me. When you learn to use edi­tors a cer­tain way, it’s hard to break old habits. Enter Cream.

(more…)

The UI on a project of mine had to be resiz­able. The UI included a script.aculo.us slider which unfor­tu­nately did not have a resize method nor was it smart enough to update itself should the under­ly­ing ele­ment be resized. So I cre­ated the fol­low­ing extension:

(more…)

I’ve sub­mit­ted a patch to the Rails devel­op­ers that adds a Touch­pad con­trol to script.aculo.us. It is a 2D con­trol based heav­ily off of Slider and so shares some of the same options and behav­ior. The Touch­pad call­backs out­put an array [x, y] rather than a sin­gle value v which is what Slider does. Touch­pad also has no han­dles so the last value is not preserved.

(more…)

I had sug­gested that my com­pany use Google Cal­en­dar to pub­lish events. It’s easy, it can be made pub­lic and share­able, and it beats fig­ur­ing out how to pub­lish an Outlook/Exchange cal­en­dar on the web. (From what I’ve read about Google Cal­en­dar, you can pub­lish mul­ti­ple cal­en­dars indi­vid­u­ally con­trol­ling the level of pri­vacy and publicity—ooo, maybe we can migrate away from Exchange…) Yet, the coolest part about Google Cal­en­dar is that you can embed it in your web page using an iframe which Google pro­vides a handy-dandy con­fig­u­ra­tor to gen­er­ate the HTML. The worst part about Google Cal­en­dar is that you embed it in your web page using an iframe.

(more…)