18
Jul

Theme Browser Returns to WordPress.org

I was going to blog about who you can email to help beta test the new WordPress theme browser but apparently in the past 24 hours it’s gone LIVE now for everyone so so this is fantastic:

http://wordpress.org/extend/themes/

This apparently is the result of much hard work by Joseph Scott, brilliant job Joseph!

There is a more formal announcement here:
http://wordpress.org/development/2008/07/theme-directory/

Now they need to get the http://bbPress.org side
up to speed as the 600px wide drives me crazy.

16
Jul

How to fix Firefox 3.0 auto-launch for some files

You may have noticed that Firefox 3.0, in a change from 2.0, does not auto-launch some files correctly like Word documents (doc), spreadsheets (xls), torrents, nzb, etc.

Here’s how to fix it:
1. go into about:config
2. create browser.helperApps.deleteTempFileOnExit
3. set it to boolean: false

15
Jul

Fix for wordpress 2.6 can’t login

Many people are having trouble logging into WordPress 2.6 admin area after upgrading.
After clearing cookies the problem persists for some.

After a bit of digging in the code I figured it has to do with a bug in the new cookie for admin access and how they (incorrectly) try to fall back to the default path.

Here’s a workaround:

go into your `wp-config.php` and add this line:
@define(’ADMIN_COOKIE_PATH’, ‘/’);

NOTE ‘/’ would be your blog path.
If you find that ‘/wp-admin’ doesn’t work, make it ‘/blog/wp-admin‘ or whatever your path is.
Last but not least if nothing works, try just ‘/’ but note that reduces security in theory.

11
Jul

bbPress presentation at WordCamp UK 2008?

For my UK mates, WordCamp UK 2008 is coming up next Saturday and Sunday 19-20 July 2008 at The Studio in Birmingham.

(42 out of 100 tickets have been sold as of yesterday, so it’s bound to sell out)

I’d love to hear any recordings (video or just audio) of the more technical sessions and of course Sam’s presentation on bbPress

ps. check out Sam’s impressive WP crests!

28
May

Daily Weather Reports from MARS

Thanks to the success of that new Phoenix probe, there are daily weather reports from Mars, lol:

Just imagine in a few centuries we could have Mars traffic reports!
Check out that temperature range, but the WIND is even more surprising!

23
May

Why are E-Bikes still so expensive?

It’s really strange that I can buy an old car for a few hundred dollars and fix it for a few hundred more but if I want to be more progressive and get an electric conversion kit instead for my bicycle to help get over those nasty hills in the summer heat, it’s more expensive?

I’ve been researching e-bike kits for the past few days and apparently the lowest cost decent front wheel hub motor is like $400 and then I can either get ancient & heavy sealed lead-acid batteries for a couple hundred more or relatively new/light and “environmental” LifePO4 batteries for $400-$500.

Sigh, oh well. Maybe next summer. I guess I’m stuck at home for this one.

ps. why doesn’t Wikipedia have a page on electric bikes? Weird.

02
May

Tricks for long or large PHP scripts

I have written some extensive scripts for PHP to do things it probably was not meant to do.
Unfortunately some get so large and take so long that I’ve researched a few tricks that may be helpful to others:

1. put error_reporting(E_ALL); at the start to make sure you find out any little errors like undeclared strings or unexpected output - very helpful for script that may take long periods of time to execute and you want to get it right the first time

2. put ini_set("max_execution_time", "300"); at the start to extend the timeout (typically 30-60 seconds in a default PHP setup). If you are on a shared server this ability may be locked out to you. 300 is an example for 5 minutes.

3. put ini_set('memory_limit','64M'); at the start to boost your memory limit for very complex arrays, etc. The default is typically 16M. Again, this may be unavailable to you on a shared server.

4. best trick of all - unbuffered output to browsers in HTML, so you can see results in realtime, even if the script takes 5+ minutes, etc.
put at the start:
ini_set('output_buffering', 0);
ini_set(’implicit_flush’, 1);
ob_end_flush();
ob_start();

then after each write (echo, print_r, etc) put ob_flush(); flush();
You’ll know it’s working when you see each line appear as it happens in your browser window.
Note if you have an older Apache 1.x server that uses mod_gzip this trick may not work. It should however on Apache 2.x, lighttpd, litespeed (maybe even IIS, but I dunno)

20
Apr

I want a php elePHPant!

Where do I get one of these adorable PHP elePHPants?
Because I just have to have one!

Here’s a family of them! http://www.dailymotion.com/video/x3lsj6_la-peluche-php_blog

ps. found some interesting links about the PHP elePHPant and it’s history:
http://www.elroubio.net/?p=elephpant
http://www.nexen.net/elephpant.php

There’s even a Flickr pool with some really amazing wilderness scenes!
http://www.flickr.com/groups/elephpants/pool/

20
Apr

Finally upgrading to Windows XP

I’ve gotten seven years out of Windows 2000, and I could use it for a few more I am certain, but software vendors are forcing me to finally upgrade. There’s been a slow but steadily growing list of applications that refuse to install on Win2k, no matter how I try to trick them or manually unpack and run. The “won’t run on win2k” reasons have eluded me, but some research over the past year leads me to believe it has to do with some of the subtle new native features in the XP API like compression for undo features and other stuff that’s beyond my grasp. Continue reading ‘Finally upgrading to Windows XP’

02
Apr

bbPress 0.9 final, officially released!

bbPress 0.9 forum software has just been made ready for the public and I highly recommend it.

Many subtle bug fixes and many new features including easier WordPress integration:

http://bbpress.org/blog/2008/04/bbpress-09-brubeck/


http://bbpress.org/download/

If you are planning to integrate with WordPress, you’ll need the new WordPress 2.5 to match the new secure cookie method (or the bbPress plugin to force the old cookie method).

28
Mar

WordPress will be 15% faster under PHP 5.3

I may finally upgrade my servers from PHP 4.8 to PHP 5.3 when it’s released. I’ve been sticking to PHP 4 because I don’t use anything that needs 5.x and 5.x is well known to be slower than 4.x

But apparently the performance has been put back into 5.3 according to this obscure posting on php.net which quotes WordPress (among others) as an example of performance improvements:

http://news.php.net/php.internals/36484

13
Mar

Movabletype tries to (hilariously) solicit WP 2.5 upgraders

This really upset me because he thinks he’s being so clever:
http://www.movabletype.com/blog/2008/03/a-wordpress-25-upgrade-guide.html

I’ve got nothing personally against Anil, but definitely something against the company:

Dear Anil Dash,

Movabletype completely screwed over tens of thousands (if not hundreds of thousands) of dedicated bloggers who put hundreds of hours into customizing their Movabletype install after your company’s “first free, but now pay” fiasco (version 2.6 to 3). And now you solicit people to switch to Movabletype again because you finally saw the open source light a few months ago? Nice try. Fool me once…

Also, Movabletype didn’t start off generating static files because of some kind of clever performance design - it did it because of the incredibly slow, hard to scale Perl code demanded such a solution to remain viable. It’s scary you are still using the same solution after so many years of development and chances to fix it.

You should have kept LiveJournal, at least the creative folks commonly found on there are far more valuable than the crowds you find on other sites like MySpace, etc. But you sold off possibly the most valuable asset you had.

WordPress has it’s faults but you most definitely should not be throwing stones.




Blog Stats

  • 16,938 hits

 

July 2008
S M T W T F S
« May    
 12345
6789101112
13141516171819
20212223242526
2728293031