Category: 'Code'

23rd Jul, 2008
geohar

Flight back from yakima

I was going to take a rather gruelling trip back to Seattle from Yakima on the greyhound bus. But I discovered you could fly cheaply with Alaska air. Fun flight, wish I’d had my canon with me.. But these were fun too.

See http://codex.wordpress.org/Template_Tags/query_posts for a neat solution. This allows the frontpage to exclude certain content, so you can effectively have multiple streams of content…

9th Jan, 2008
geohar

Mootools apology

So recently, I’ve been getting very interested in mootools (http://mootools.net). It’s a very nice javascript framework that enriches the development experience for any javascript work you might have to do. It seems that recently one of the mootools developers badmouthed other frameworks, and as a result, Valerio the lead of mootools posted an appology (http://blog.mootools.net/2007/12/13/an-open-apology-to-the-authors-of-jquery-prototype-and-others). That really says a lot about his character. I wish more OpenSource took this sort of professional approach.

31st Dec, 2007
geohar

Blog Setup

Template based on:

http://edmerritt.com/downloads.php?page=ajaxswitch&content=oceanmist

Plugins:

http://johannes.jarolim.com/blog/wordpress/yet-another-photoblog/ and http://www.4mj.it/slimbox-wordpress-plugin/

Local Modifications:

edited the yapb plugin to display lightbox previews, edited tinyMCE javascript to disable gzip (there’s some incompatibility using YAPB with the edit bar, and on Safari 3 it doesn’t like newlines – which made typing this a pain. However, there are fixes)

disappearing edit bar

 	in tiny_mce_gzip.php replace
	// Check for gzip header or northon internet securities
	if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) ||
		isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') &&
		!ini_get('zlib.output_compression') && ini_get('output_handler') != 'ob_gzhandler') {
	with
	if ((in_array('gzip', $encodings) || in_array('x-gzip', $encodings) ||
		isset($_SERVER['---------------'])) && function_exists('ob_gzhandler') &&
		!ini_get('zlib.output_compression') && ini_get('output_handler') != 'ob_gzhandler'
		&& get_settings('gzipcompression')) {
 	see 	http://wordpress.org/support/topic/104627#post-512864 for more info

newlines and safari

	in tiny_mce.js line 4025
//		if (tinyMCE.isSafari && this.formElement)
//			this.formElement.innerText = htm;
	see http://wordpress.org/support/topic/122070/page/2 for more info