Category: Uncategorized

Curly quotes and WordPress permalinks don't mix

Curly Quotes

Sometimes curly quotes get copied and pasted into the title of our blog and WordPress just can't handle it. The problem lies in the permalinks and manually editing the permalink to get rid of curly quotes fixes it (but what a pain). In my search for an automated solution I discovered no hooks into this …

Continue reading

Ubuntu to Ubuntu – Replacing a web server

So, the old web server is acting slow and I don't know why. Solution? Move to a new webserver, and upgrade to the latest OS along the way. It needs to be upgraded anyway, right?! That's what I just did and here are the most valuable command line arguments for doing so: [RAW]tar -pcvzf www.tar.gz …

Continue reading

The trick to syncing multiple Google calendars on iPad

You have to specify which calendars to sync in Google; go here… I you want to know more, iPad Candy has a full walkthrough on using multiple Google calendars on i-devices.

Hard reboot for iPad

My iPad froze today. It looked like it was just asleep, but it didn't respond when I hit the home button. Holding the hold/power button (which is how you do a normal reboot) didn't do anything either. It was stuck good. Here's the trick I used to fix it: Hold both the home button and …

Continue reading

How to find an email recipient in Active Directory

Ugh! Active Directory crap! 1. Open Active Directory Users and Computers 2. Right Click on your domain and choose "Find…" 3. On the advanced tab choose the field User > Proxy Addresses 4. Condition is "Starts with" 5. Value is "SMTP:the_beginning_of_the_email_address" 6. Click Add 7. Click Find Now Too hard. Too abstract. Why do you …

Continue reading

If you want to use Sendmail, install it, dummy!

Right…I must have forgotten to install sendmail, because mail wasn't working for WordPress. First, to verify that sendmail wasn't working I ran this PHP script (thanks to <? // send e-mail to … $to="me@localhost"; // Your subject $subject="Test"; // From $header="from: your name <your email>"; // Your message $message="Hello rn"; $message.="This is testrn"; $message.="Test …

Continue reading

Call Manager Conference Calls Dropping

Ok, we have a Cisco Call Manager system for our IP phones and when we used them to make a conference call a weird thing would happen – someone at random would get dropped from the conference after about a minute. Rebooting the server did not help but reseting the conference bridge did the trick. …

Continue reading

More cron stuff in Ubuntu

So, I needed to make a cron job that runs every hour. This is crazy simple; at least in Ubuntu! Ubuntu has folders in the /etc/ folder… cron.daily cron.hourly cron.monthly cron.weekly It's pretty easy. As long as you don't need to control exactly when a process executes, just throw a script file in one of …

Continue reading

Self Signing a Certificate for a Test Server

While messing around with a new membership database I ran into a wall. The script that gives me a web interface simply would not continue until I secured my connection properly. So, I found myself in need of a do-it-yourself certificate (since I wasn't willing to pay $500+ for a real certificate yet). I found …

Continue reading

Strip out a bracketed piece of text using PHP

In WordPress I have a free, third-party theme that is displaying my image captions in article excerpts for some reason. The captions show up as a sort of bracketed markup. I tracked down the part of code that prepares the article excerpts and ran this regular expression to strip out any square-bracketed text: The 'Us' …

Continue reading