Paperless payday loansmilitary payday or take several visits appliance Advance Cash Advance Cash repair bill that pop up anymore.

Archive for Uncategorized

Strange wildcard behaviour in cmd.exe?

E:\hugh\music\TW_analysis>dir *22*wav
Volume in drive E has no label.
Volume Serial Number is 88A2-A44C

Directory of E:\hugh\music\TW_analysis

06/12/2010 12:42 4,030,672 section_60pc_11_12.wav
06/12/2010 12:44 1,587,244 section_80pc_12.wav
06/12/2010 12:41 4,675,324 section_50pc_12_13.wav
06/12/2010 12:45 1,508,344 section_80pc_17.wav
06/12/2010 12:43 1,665,924 section_70pc_7.wav
06/12/2010 12:47 1,164,912 section_100pc_21_22.wav
06/12/2010 12:41 2,329,780 section_50pc_21_22.wav
06/12/2010 12:42 1,941,488 section_60pc_21_22.wav
06/12/2010 12:43 1,664,140 section_70pc_21_22.wav
06/12/2010 12:45 1,456,128 section_80pc_21_22.wav
06/12/2010 12:46 1,294,344 section_90pc_21_22.wav
11 File(s) 23,318,300 bytes
0 Dir(s) 8,391,557,120 bytes free

Comments

Error adding theme to WordPress 2.8

I was getting this error:

PHP Fatal error: Call to a member function read() on a non-object in ... \\wp-includes\\theme.php on line 387

Fixed it by editing wp-includes/theme.php, adding ‘is_object’ check at line 387 as follows :

$template_dir = @ dir("$theme_root/$template");
if ( $template_dir ) {
	while ( ($file = $template_dir->read()) !== false ) {
		if ( preg_match('|^\.+$|', $file) )
			continue;
		if ( preg_match('|\.php$|', $file) ) {
			$template_files[] = "$theme_loc/$template/$file";
		} elseif ( is_dir("$theme_root/$template/$file") ) {
			$template_subdir = @ dir("$theme_root/$template/$file");
                if ( is_object($template_subdir) ) {
                        while ( ($subfile = $template_subdir->read()) !== false ) {
                             if ( preg_match('|^\.+$|', $subfile) )
                                continue;
                            if ( preg_match('|\.php$|', $subfile) )
                                $template_files[] = "$theme_loc/$template/$file/$subfile";
                        }
                        @ $template_subdir->close();
                    }
                }
	}
	@ $template_dir->close();
}

Comments (13)

T-rex talks to God

I liked this:

T-Rex talks to God

Comments

First Post

A shiny new blog on a shiny new website. This will mostly be a place to post things that I searched for on the web but didn’t find, and had to then figure out. I’ll also post occasionally on coding, drumming, trying to learn music & ear-training, and probably a few bits about FOREX trading.

The first thing I always do when setting up a new server (about once every 4 years) is migrate across my older websites. The bogeypage, from 1997-1998, is here. Around 1999, I got my own server, Flowerpot, in my college room, which hosted a newer site. Some years after I came to Trinity college, I set up a new site, which was mostly for playing with m4 as a tool for statically managing websites; this site is falling apart as I never updated the database bits, but the gist of it is still there.

If you’ve stumbled across the site looking for me, and you want to get in touch, I’m at hdenman .at. cantab.net. I am not a scholar of yiddish literature.

Comments