Categories
Tech

Run child perl script in the background

I had a situation where a parent Perl script (web-accessible, in cgi-bin) needed to call a long-running child Perl script that was outside cgi-bin. I wanted the parent to call the child and then exit immediately, allowing the parent script browser window to stop loading and the child to continue running in the background and […]

Categories
Tech

Domain misspelling phishing sites

There’s no quicker way to give hackers your Facebook username and password than to mistype the Facebook URL in your browser window and type it into a phishing site. (Phishing sites are designed to look like the real site, but are run by Very Bad People With Nothing Better To Do so that they can […]

Categories
Tech

WordPress Comments Always Visible

If you need to make WordPress comments visible on the index page (not just within a post), add this line wherever you want comments to show: <?php $withcomments = true; comments_template();?> You might need to disable comments elsewhere in the template, or they might show up twice, but that depends on the theme. One commenter […]

Categories
Tech

Remote View Headless Server (TTY)

If you need to view what’s happening on another TTY on your headless linux box, you can SSH in, su, and then do: tail -f /dev/vcs1 This will enable you to see what’s happening on the headless TTY on your local screen. There’s a utility called “screen” that is similar, but the above trick works […]

Categories
Tech

Outlook: Expand IMAP Folders

If you use Outlook 2007 with IMAP and Exchange, you have probably noticed that every time you restart Outlook you have to re-expand your IMAP folders to see whether you have any new messages in your IMAP inboxes. When you’re used to Exchange and push mail, this can lead to a frustrating problem because I […]

Categories
Tech

Outlook 2007 Menu Font

If you installed Outlook 2007 and you hate the menu font, it’s probably because you don’t like Cleartype. I can’t stand it. And it’s bad enough that in order to get rid of that hideous Segoe UI font in Outlook 2007 you have to change it in about 5 places. I can’t even remember them […]

Categories
Tech

1234567890

I wrote a little one-liner to celebrate the epoch time of 1234567890, reached at approximately 3:30 PST on Friday, February 13, 2009. Here’s the code: perl -e “print \`clear\`; print \”Starting at: \” . \`date\`; while (1) { \$exclaim = ”; if (time() == 1234567890) { \$exclaim = \” FTW\!\!\!\”; } print time() . \$exclaim […]