Archive for the Programming Category

Free at Last

It’s fixed! It’s fixed! Thank God almighty, it’s fixed at last!

Sorry, I may have gotten carried away there. Leopard’s Spaces (about which you’ve heard me gripe ad nauseam) is finally fixed in 10.5.2 after changing a setting in a .plist file. This is done by:

defaults write com.apple.Dock workspaces-auto-swoosh -bool NO
killall Dock

My world is complete. I can now upgrade to Leopard. I’m the only Mac-user one in my office who hasn’t already.

Thanks to Lifehacker, Secrets (a new application to tweak many settings in Leopard), and ultimately Mac OS X Hints.

Windows ME

I’ve just installed Windows ME on a computer.

I feel like I need to take a shower.  And then destroy the hard drive.

Fine – I Didn’t Want to Edit Anyway

[bobbojones@horcrux lib]$ edit
emacs: `getcwd' failed: Permission denied

Snausages

[bobbojones@PRODUCTION calendar] > select * from nodes limit 1;
+----+-----------+-----------------------------+
| id | name | description |
+----+-----------+-----------------------------+
| 35 | Snausages | Usually served in a blanket |
+----+-----------+-----------------------------+
1 row in set (0.00 sec)

I’m not sure I want to know.

That’s Okay, Neither is My Application

[bobbojones@software bin]$ less /.../cronstart.software
WARNING: terminal is not fully functional

A Tale of Keys

The following occurred at 10:21 this morning.  Identifying details have been changed to protect the innocent.

> SELECT …;
10 rows in set (22.95 sec)

> SELECT …;
> DESCRIBE …;
+------------+---------+------+-----+---------+-------+
| Field      | Type    | Null | Key | Default | Extra |
+------------+---------+------+-----+---------+-------+
| ...        | int(11) | YES  |     | NULL    |       |
| ...        | int(11) | YES  |     | NULL    |       |
+------------+---------+------+-----+---------+-------+

2 rows in set (0.01 sec)

> ALTER TABLE … ADD PRIMARY KEY (…);
Query OK, 784 rows affected (0.43 sec)
Records: 784 Duplicates: 0 Warnings: 0

> SELECT …;
10 rows in set (0.09 sec)