A Mind @ Play

random thoughts to oil the mind

WordPress 2.2 Database Character Sets

For those upgrading their WordPress powered blogs to 2.2, just a word of warning regarding the new character encoding options available in the wp-config.php file.

The standard file should have a section which reads:

// ** MySQL settings ** //
define('DB_NAME', dbname// The name of the database
define('DB_USER', 'dbuser'); // Your MySQL username
define('DB_PASSWORD', 'dbpassword'); // ...and password
define('DB_HOST', 'localhost');
define('WP_HOME', 'http://www.yourblog.com/');
define('WP_SITEURL', 'http://www.yourblog.com/');
define('DB_CHARSET', 'utf8');
define('DB_COLLATE', 'utf8');

Note the new options added at the bottom regarding the codepage used in the blog’s database. If these are set incorrectly they may make your blog unreadable, else prevent special characters from appearing correctly. I personally found that commenting these two lines out left the blog functioning as before, but for people wishing to change the codepage of their database, WordPress has a rough guide available, originally written for the beta testers.

Nichts als die Wahrheit

The Boys from Brazil

I recently caught a TV screening of The Boys from Brazil, a film adaptation of Ira Levin’s novel, concerning the nefarious actions of Dr. Josef Mengele in South America, and his pursuit by a Nazi-hunter presumably modelled on Simon Wiesenthal. Certainly a rather motley cast, with Laurence Olivier showing why he is so often cited as amongst the highest echelons of English-speaking acting, whilst James Mason poorly attempts to cover up his stiff accent. Still not entirely sure what to make of Peck’s performance.

Regardless, the film is entertaining, even if you’ve heard the twist previously as I had. Produced slightly before Mengele’s actual death in Brazil in 1979, it reminded me of a German film I’d read about entitled Nichts als die Wahrheit, which portrays the fictitious events of Dr. Mengele’s trial as he returns to German, a sick, old man. Sadly, I was unable to track the film down on the Internet, and at least according to this website the film is currently only available on VHS. Hopefully that situation will be rectified before too long, but if anyone knows where or when it might be published on DVD, please leave a comment.

Will Anyone say ‘No’ to the ‘No Smoking’ Ban?

No smoking sign

No smoking

They all roll over. What else can they do in the dictatocracy? Smoking is bad for you. It kills! And according to recent adverts on British television, passive smoking is even worse, since the smoke comes from the ‘bad’ end of the cigarette. Is it any wonder the state becomes nanny when society acts so wimpish?

But society’s seemingly burgeoning fear of death isn’t the issue here, at least not to me. That issue is freedom of choice. The ban on smoking in public places perhaps has a right to be enforced; there is no choice about which train or bus station you use, after all. But when it comes down to banning smoking in all bars, pubs and restaurants, one has to ask why we are no longer allowed to choose. Are we so incapable of rational thought? For a long time now, many restaurants have had exclusive smoking sections, and many bars too have proven capable of sectioning off areas for different clientele. One might question therefore, the need for a blanket ban.

Spine Reading

Book spines

Ever wondered why the spines on your books and DVDs aren’t all oriented the same way? Why some read top-to-bottom and others read bottom-to-top? Admittedly, this phenomenon is rare with books printed in the Anglophone world, where the top-to-bottom approach is preferable, but take a look at a bookshelf in continental Europe and you’ll probably find the titles read the other way (or both, according to Wikipedia).

The two traditions arose at different times, states Art Lebedev, with book binders starting trends which gradually became standards in their respective regions:

The tradition to write on the spine top-to-bottom is older; its roots can be traced back to the time when books were few. The reasoning was that if a book is lying on the table (or in a small stack) face-up, reading its title should be easy.

The tradition to write on the spine bottom-to-top is younger; it’s more concerned with how easy it is for the bookshelf owner to handle the book. Reading bottom-to-top is easier, because this direction is more in keeping with the European left-to-right writing tradition, which is especially apparent when there are several lines of text on the spine (an urge to read the lines left-to-right is only natural).

The same rules apply to DVDs and presumably audio CDs, though in my experience the latter are more haphazardly labelled. As someone once noted, however, that when it comes to learning, those in the West tilt their heads to the right, and those in the East tilt theirs to the left. But whichever way you tilt your head, it’s worth remembering:

Good and evil appear to be joined in every culture at the spine.

Flannery O’Connor

[Photo courtesy of CalEvans]

Problem Installing Altiris SVS

After reading a review over at freewaregenius.com, I thought I’d check out this neat little program, free for personal use. It offers a way to install programs as a ‘layer’ on your system, transparently noting all changes and additions made in the installation, and enabling you to turn this layer on or off, or seamlessly delete it without worry. Although not limited to creating layers for installations, this would seem the perfect solution for people who wish to try out different versions of a software package without them interfering with one another, or simply test out some software without the hastle of worrying if its installer left anything behind.

However, I came across a problem during the installation that seems, ironically, to be caused by things being left behind. The installer would fail and blurt:

There are file operations pending on this machine. The machine should be restarted, and setup can be run again.

Whilst a reboot should fix the problem, this was not the case for me. Your natural recourse to a problem like this might be to delete everything in your C:\Documents and Settings\your username\Local Settings\Temp folder, as detailed here (in Chinese), however this brought no joy. Instead, some erroneous registry entry was to blame. ((Note that these entries are probably only erroneous if they are still present after restarting Windows. Ensure this is the case.)) The solution is to delete the entries and restart, thus:

  1. Click Start > Run… and then type regedit.
  2. Find the following branch in the registry HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager.
  3. Double-click the PendingFileRenameOperations entry.
  4. Delete any entries and click OK.
  5. Close the registry editor and restart the computer.
  6. Run the installer again.

If this does not work, another solution would be to export the above registry branch, delete the PendingFileRenameOperations registry entry altogether, run the installer, and then reimport the saved file.

Page 56 of 66

Powered by WordPress & Theme by Anders Norén