Archive

Archive for February 1, 2014

Fixing Casper’s MySQL database with mysqlcheck

February 1, 2014 1 comment

After some VMware host issues that were out of my control, the RHEL VMs that my production and test Casper servers are hosted on were unexpectedly rebooted a couple of times. When I checked the VMs afterwards, everything appeared to be OK. I figured that I had been fortunate, until my Casper test server sent me the nightly “Successful backup of the Casper database” email and my production server didn’t.

Uh oh.

When I checked the directory when my production server stores its backups of the Casper database, there wasn’t a backup from the night before. I immediately launched the JAMF Database Utility application and had it make a backup of the production database. A task which normally would take 10 minutes or so now took 40 minutes.

Not good.

To lighten the load on the database, I went into the JSS and had it manually flush all but the last week’s worth of logs (I normally retain 30 days of logs.)

Screen Shot 2014-02-01 at 5.12.10 PM

Screen Shot 2014-02-01 at 5.12.50 PM

Once the log flush had completed, I then rebooted the box. On reboot, the JSS initialized and then hung halfway through the JSS startup process.

Screen Shot 2014-02-01 at 4.53.48 PM

Really not good.

For the details of how I fixed this, see below the jump.

Read more…

Categories: Casper, Linux

Disabling smart quotes in Mavericks

February 1, 2014 17 comments

As I’ve mentioned previously, Apple does at least one thing with each new OS release that a) annoys me and b) makes me wonder about the thought process that went behind it.

In Mavericks, it’s smart quotes. These are quotes that are curved in shape and face in different directions, depending on if they’re opening quotes or closing quotes.

Screen Shot 2014-01-31 at 4.49.23 PM

Having smart quotes is inconvenient for me because I can’t always tell when they’re in use until I copy and paste. If I’m copying and pasting content into a script, smart quotation marks aren’t recognized as legal quote marks, which means I have to find and replace them.

Fortunately, it’s possible to turn smart quotes off. See below the jump for details.

Read more…

%d bloggers like this: