Perl regex to capitalize each word
I always forget how to use Perl regex to capitalize every word in a string buffer. So here it is for future reference:
$buffer =~ s/\b\w/\u\L$&/g;
Monkeying around with Bosco. These are notes to myself. If you're reading this, you're probably lost.
I always forget how to use Perl regex to capitalize every word in a string buffer. So here it is for future reference:
$buffer =~ s/\b\w/\u\L$&/g;
In my 1.5.0.9 Windows version of Firefox, all the search sites in the Search Bar disappeared one day. Didn't realized how much I used that Search Bar until it wasn't functional. I tried reinstalling the app, and when that didn't fix anything, I suspected that the problem was in the user specific application data. I deleted the
Application Data\Mozilla\Firefox
directory and all my settings got cleared.
I've customized my Firefox so much that it was going to be a pain to redo all the settings and so I restored my settings directory from the trash and proceeded to wade through the Profiles
directory and removed one file at a time to figure out which caused the Search Bar to come back.
In the end, it was the localstore.rdf
file that turned out to be corrupted. When I removed it, my Search Bar returned to normal. Yay!
Details can be found by following the title link. In short, though WinXP has an "Internet Time" tab on the "Date & Time" control panel, other versions of Win32 doesn't. For all versions, you can sync your Windows machine time by first setting a time server:
net time /setsntp:tick.usno.navy.miland then syncing the time:
net time /setIf your time service is not already setup, read the article. The US Naval Observatory has a backup time server named tock.usno.navy.mil; so if tick doesn't work, try tock. A Microsoft web page has a list of time servers that are available on the Internet.