Thursday, November 5, 2009

Resizable full-browser background image with jQuery (preserving aspect ratio)

Design of my last "71°Ã˜konor" project required a background picture that should be fixed to the top of the window view-port being not scrollable and resized on resize event of the window. Before reinventing a wheel I googled a bit and found this nice jQuery plug-in.

Solik might have used this for the front page of Martin Yang Stousland's portfolio website.

Wednesday, November 4, 2009

pdo_sqlite for php 5.2.x

The latest 5.2.x PHP comes with the pdo_sqlite driver built using the pretty old sqlite library (3.3.7). Related parameters of the configure script are unobvious and rather confusing to understand quickly how to rebuild it with the latest version of the sqlite library (which is 3.6.19 now). In fact all we need is:

--with-pdo-sqlite=[LIBRARY_BASE_PATH]

where LIBRARY_BASE_PATH is /usr/local or wherever the library is installed to.