my life

day to day

Archive for November, 2007

HOWTO Find the Network Printer

Monday, November 26th, 2007

This is the easiest way to find a JetDirect printer on port 9100 on your local network. Useful in those cases you’re on site with a client and need to print something.

nmap --open -p 9100 192.168.240.* -T insane

add to del.icio.us    add to technorati favs   email this

Count down to Sweden

Thursday, November 22nd, 2007

Itinerary:

Los Angeles Chicago 12/17/07 9:00am 2:59pm SAS
Chicago Stockholm 12/17/07 4:25pm 7:50am SAS
Stockholm London 2/17/08 7:55am 9:40am SAS
London Los Angeles 2/17/08 11:15am 2:36pm SAS
add to del.icio.us    add to technorati favs   email this

Google Exposes Pings

Thursday, November 22nd, 2007

I thought this was a pretty neat discovery. You can download an XML feed of all blogs which have pinged (xmlrpc) Google in the last 5 minutes. Optionally, you can add a parameter ?last=120, if you wanted just the last 120 seconds. The limit is 300 seconds (or 5 minutes).

http://blogsearch.google.com/changes.xml

add to del.icio.us    add to technorati favs   email this

What Apps

Wednesday, November 21st, 2007

whatapps

Frustrated with the low quality and infrequent updates of current App Review sites for Facebook, we at Launch 10 decided to start our own blog. We review hundreds of apps every month on our own time, so we decided to share our thoughts on the apps we check out. Our blog will generally be updated several times a day, so check back often. As OpenSocial gets adopted by all the the major social networks, we’ll be covering the new apps that get released on there as well.

add to del.icio.us    add to technorati favs   email this

Test of Windows Live Writer

Wednesday, November 21st, 2007

Recently came across Windows Live Writer. It’s a WYSIWYG editor for creating/editing blog posts. So far, I’m very impressed with it’s ability to seamlessly integrate into many blog platforms including Wordpress.

 

You can even take screen shots and directly insert them inline.

image

add to del.icio.us    add to technorati favs   email this

Forcing Wordpress to use HTTP_HOST

Wednesday, November 21st, 2007

At times, it is convenient to force Wordpress to use the hostname of the current virtual host context. By default, new versions of wordpress rely on DB configured values for siteurl, home, and url. If for instance, you run multiple codebases for testing, it might be convenient to not have it force the values to the configured ones. To accomplish this, add the following code to a custom wp plugin or just add it to the wp-config.php at the very bottom.



function set_codebase()
{
return 
'http://' $_SERVER['HTTP_HOST'];
}
remove_action('template_redirect''redirect_canonical');
add_filter 'pre_option_siteurl''set_codebase' );
add_filter 'pre_option_home''set_codebase' );
add_filter 'pre_option_url''set_codebase' );


This code can further be wrapped in a conditional so it only gets executed under explicit circumstances.

add to del.icio.us    add to technorati favs   email this

PropelException: Access denied

Tuesday, November 6th, 2007

Array ( [phptype] => mysql [hostspec] => localhost [database] => mydbdev [username] => myuser [password] => INF [port] => [encoding] => [persistent] => [protocol] => )

Notice my infinitely strong password? It’s so strong that you can’t even login. The solution to my problem was to make sure I quote my passwords in the database.yml file so that the YAML parser doesn’t interpret them as a number. In this case, I had a password like 123e4567. In otherwords, a VERY big number (123 followed by 4568 zeros)

add to del.icio.us    add to technorati favs   email this