Christmas Presents and Chopping Wood

So the day after Christmas was a good day. I took the day off and did lots of stuff. I setup the present I got my wife, an HP OfficeJet 7410, which is an all in one device, with an extra special feature. It comes with built in wireless network connectivity, which was just what we needed in our house since we use laptops and it’s always a pain to hook up to the printer. So now we can just have the printer somewhere in the house and print from anywhere. I had no problems setting it up on my WPA enabled 802.11b network and it is working great.

I also took the chance to split some wood for the our wood stove. I forgot how fun it is to split wood. It took me back to the good memories I have of splitting wood with my Dad as a teenager. I remember my Dad telling me that wood provides us with heat twice, once when you cut it and split it and then the second time when you burn it. He was definitely right.

Flash

Most people who know me, know that I hate flash. Most of the time it is a bloated waste of resources (bandwidth) and eye candy on most websites with no added benefit. Very rarely do sites actually have a useful/practical use of flash. Of course, with that, I do find occasionally good use of flash. I’ve been impressed in past with certain flash games and for the most part I think, wow, how much time did they waste trying to make this in flash? Recently, I was shown this game where you hit a penguin with a bat as it falls from a cliff. This is one of those things that is a good use of flash. Summary? Flash eye candy, bad. Flash games, good!

PHP values in .htaccess files (Apache)

A lot of time you host your website where you do not have direct access to the php.ini file (pretty much any shared hosting). In this case, if you need to make a change to your php configuration settings, you simply add an entry to your .htaccess file in the folder that your website is located in. Of course, the hosting provider will need to have set AllowOveride on your account, but most will already have this set up for you. The are two types of lines you can put in a .htaccess file:

php_value name value
php_flag name on|off

They can both be used for any configuration option specified as a PHP_INI_ALL or PHP_INI_PERDIR. However, most of the time you will use php_value, which allows you to specify a number as a value. The php_flag option can only be used for certain configuration options that only have two possible values (on or off). To find out what the default setting is and to see if you can change it in an .htaccess file, look at the following list.

So, for example, you can use either of the following two options to turn on register_globals:

php_flag register_globals on

php_value register_globals 1

They both will do the same thing and neither one is necessarily better then the other. Here’s a list of some other common php changes to an .htaccess file:

php_value output_buffering 1

php_value session.auto_start 1

php_flag magic_quotes_gpc on

php_value register_argc_argv 0

php_value display_errors 1

php_value error_reporting 63

Hope this helps someone!