< December 2005 >
SuMoTuWeThFrSa
     1 2 3
4 5 6 7 8 910
11121314151617
18192021222324
25262728293031
Fri, 16 Dec 2005:

Played around with flickr badges and a bit more javascript. Ended up with a simple enough fifteen demo in around 3 hours. DHTML and Javascript have slowly started to become a fun thing to hack on - mainly thanks to mozilla.

While coding it, spo0nman dropped in and he told me that he never knew about xpcshell (that was hidden away in my slashdot journal). It is a javascript interactive shell - like the python equivalent everyone has seen. For example, download dotgnu js samples and run it on the Firefox js engine (spidermonkey).

bash$ alias xpcshell='/usr/lib/firefox-1.0.7/run-mozilla.sh /usr/lib/firefox-1.0.7/xpcshell'

bash$ xpcshell
js > ^D

bash$ xpcshell prototype.js
  
<juliet> Romeo!
<romeo> My dear ?
<juliet> At what o'clock to-morrow shall I send to thee?
<romeo> At the hour of nine.
<juliet> I will not fail: 'tis twenty years till then.

It is great for syntax checking your .js files - if you're writing FF extensions. But of course, I was writing all these on slashdot. Nice place to hide your journal actually (not indexed by Google).

posted at: 17:19 | path: /hacks | permalink | Tags: