About me
Blogroll
Projects
Tags
2038 alitalia overbooking api articolo benchmark big blog browser bug bvp charm cl-ppcre client code Colemak command line comment completion connect cvs decimal Dec_0 Dec_n1 Dec_p1 digital photography dmenu google grep haskell https javascript lisp mysql python rxvt sbcl script search speed surf testing vim webkit wordpress xmlrpcMeta
programming
javascript templating benchmark
there are many popular libraries to do templating in javascript. the most popular are: JQuery Template Pure Template Resig Template Trimpath Template JQote2 Template I decided to benchmark them, so I created a simple “hello world” test. you can find it here. as usual, the results are interesting. here are, on my box: Firefox 3.6 [...]
time to go home!
better go before I break it…
case sensitive Google search
Google does not support “case sensitive” searches (and here and here). it does seem to return slightly different results depending on the case of the search query, but if you are only interested in the exact “case sensitive” matches you’re on your own. to solve this problem, I’ve written a small JS snippet that shades [...]
Tagged bookmarklet, case, extension, firefox, google, search, sensitiveget registered domain in Python and Javascript
reg-dom-libs are a set of libraries for C, PHP and Perl to convert an arbitrary domain name to the registered domain name. for simple domains, like www.amazon.com or news.ycombinator.com, the task is trivial. for more complicated ones, like www.ebay.co.uk or www.japantimes.co.jp, handling the second level subdomain is a little painful. for exoteric ones, like nic.com.ai [...]
Tagged domain, javascript, python, registeredhandling an iframe from the inside
if you’ve ever worked with iframes you’ve certainly run into the same origin policy. from here: The same origin policy basically limits how scripts and frames on different domains can talk to each other. this is particularly bad if you want to resize an iframe to accomodate its content, as this is not doable with [...]
Tagged iframe, javascript, move, postMessage, resize, same origin policytwill revived
after reading how to do automated testing in python, I’ve started using twill, by C. Titus Brown twill is a simple language that allows users to browse the Web from a command-line interface. With twill, you can navigate through Web sites that use forms, cookies, and most standard Web features. unfortunately, development on twill seems [...]
Tagged github, python, testing, twillyear 2038 bug in MySQL
today I hit the “year 2038″ bug. while working on MySQL, I did something like: mysql> create table y2038 (x timestamp); mysql> insert into y2038 values (’1900-01-01′); Query OK, 1 row affected, 1 warning (0.04 sec) mysql> insert into y2038 values (’2050-01-01′); Query OK, 1 row affected, 1 warning (0.04 sec) mysql> select * from [...]
Tagged 2038, mysql, timestamp, y2038