Procrastiblog

November 25, 2007

BSG Is Back (Then Gone Again)!

Filed under: Battlestar Galactica, Not Tech, TV — Chris @ 4:50 pm

BSG: Razor is basically a very solid, two-part flashback episode in TV movie form. Admiral Cane is resurrected* for some Hot Lesbian Action and to dictate a torture memo** (“Pain, degradation, fear, shame… Be as creative as you feel the need to be”). Eighties vintage Cylons are resurrected for no apparent reason. New characters are introduced and then killed off with ruthless efficiency. There was a bit of the old, vague mytho-babble (“All of this has already happened… and will happen again”) pointing towards the next season, which makes me terribly worried the show will end badly, in grand X-Files and/or Twin Peaks style.

It doesn’t look like Razor is scheduled to re-air, if you missed it, but it will be out on DVD next week (in an annoyingly expanded version). Season 4 is scheduled to begin in March (or April?). Till then, work…

* Not in the “she’s a Cylon” sense.

** Isn’t it fun how “torture memo” is now a cultural reference?

LaTeX Letters

Filed under: LaTeX, Tech — Chris @ 4:42 pm

I was trying to write a letter in LaTeX the other day:

\documentclass{letter}

\address{Nowheresville}

\signature{Me}

\begin{document}
\begin{letter}

\opening{To Whom It May Concern:}

Hello, there.

\closing{Sincerely,}

\end{letter}
\end{document}

This led to the following two errors, which shed little light on the situation:

! LaTeX Error: There's no line here to end.

See the LaTeX manual or LaTeX Companion for explanation.
Type H  for immediate help.
 ...

l.10 \opening{To Whom It May Concern:}

and (on a different example)

! Incomplete \iffalse; all text was ignored after line 66.

                \fi
l.16 \end{letter}

Runaway text?
\@mlabel{}{\unhbox \voidb@x \ignorespaces \global \let

The problem, as it was gently explained to me, is I had omitted the second mandatory argument of \begin{letter}, which is the address of the recipient. The following is correct:

\documentclass{letter}

\address{Nowheresville}

\signature{Me}

\begin{document}
\begin{letter}{Foo Corp.}

\opening{To Whom It May Concern:}

Hello, there.

\closing{Sincerely,}

\end{letter}
\end{document}

[UPDATE] I just realized that the reason I got so confused about this is that I was working off a previous business letter that was formatted like:

\begin{document}
\begin{letter}
{
Foo Corp. \\
... \\
ATTN: Warranty Dept.}
...

I’m not sure if I intended it to be the case (probably not), but LaTeX picked up the braces around the address as the argument to letter. When I used this as the template for a personal letter and deleted the address, all hell broke loose.

November 21, 2007

All Merchandise Missing, Empty Carton Discarded

Filed under: Not Tech — Chris @ 3:39 pm

Huh. I’ve never seen a “shipping status” like this before:

Package ProgressDate         Time Activity  Location  Notes
11/15/07  9:11 AM DAMAGE REPORTED / DAMAGE CLAIM UNDER INVESTIGATION  SECAUCUS, NJ
11/15/07  9:04 AM MERCHANDISE IS MISSING. UPS WILL NOTIFY THE SENDER  SECAUCUS, NJ
                  WITH ADDITIONAL DETAILS. / ALL MERCHANDISE
                  MISSING, EMPTY CARTON WAS DISCARDED. UPS WILL
                  NOTIFY THE SENDER WITH DETAILS OF THE DAMAGE
11/14/07 12:54 PM UNLOAD SCAN                                         SECAUCUS, NJ
11/14/07  9:58 AM ARRIVAL SCAN                                        SECAUCUS, NJ
11/13/07 11:00 PM DEPARTURE SCAN                                      GROVEPORT, OH
11/13/07  9:30 PM ORIGIN SCAN                                         GROVEPORT, OH
11/14/07 11:33 PM BILLING INFORMATION RECEIVED

BTW, the damage has not, to my knowledge, “been reported.” To me, at least.

November 18, 2007

Starving Like Cats and Dogs

Filed under: Not Tech — Chris @ 4:50 pm

Substitute “cat” for “dog” in this little drama and you have a good idea of what pretty much every day is like around here:

Dog: I am starving.
Me: Actually, no. You aren’t starving. You get two very good meals a day. And treats. And Best Beloved fed you extra food while I was gone.
Dog: STARVING.
Me: I saw you get fed not four hours ago! You are not starving.
Dog: Pity me, a sad and tragic creature, for I can barely walk, I am so starving. WOE.
Me: I am now ignoring you.
Dog: STARVING.
Dog: Did you hear me? I am starving.

From there, it takes a turn towards the slightly-less-universal (and incredibly funny). Read the whole thing.

November 15, 2007

Fake project directories in tarballs

Filed under: Tech — Chris @ 2:39 pm

To make a tarball where all the files are in a subdirectory FOO (as per best practices), where FOO doesn’t really exist on your disk (e.g., FOO may be PROJECT-vX.Y.Z and the files are in directory PROJECT), just do


tar cvf NAME.tar --transform=s,^,FOO/,g FILES

Note that the argument to transform in this case is just a sed command with commas instead of slashes.

November 10, 2007

Eye Candy

Filed under: Linux, Tech — Chris @ 11:24 pm

The difference between “Desktop Plane” and “Desktop Wall” in the Ubuntu “Visual Effects” options (aka CompizConfig Settings) is that the latter allows windows to overlap a viewport* and the former does not. (Along with this comes a lot of incidental options and visual fillips, like the ability to drag a window entirely from one viewport to another.) Although this does not sound like a big productivity booster, I’m going to give the Wall a chance.

I’m not going to give the “Desktop Cube” a chance, because it won’t let me place viewports above and below, as well as left and right, seemingly out of some wrong-headed sense of pseudo-three-dimensional literalism (although your “cube” can have an arbitrary number of faces, they must be arranged linearly from left to right: Euclidian topologies only).

* For some reason the “Desktop Plane,” “Desktop Wall,” and “Desktop Cube” options all use viewports and not workspaces**, so they don’t work well with the Gnome Workspace Switcher.

** For some other reason, Gnome has two distinct ways of implementing virtual desktops (viewports and workspaces) even though theres no discernible advantage to one over the other (except for compatibility with this application or that).

[UPDATE] Visual Effects lead to intermittent system freezes. Fun! Going back to boring old workspaces.

Problems, I’ve Had A Few (Fresh Pasta Edition)

Filed under: Food, Not Tech — Chris @ 10:45 pm

The problem with making fresh pasta dough by the well method is that, if your eggs should overtop their flour walls, they will move quite rapidly towards the edge of the counter and, from there, to the floor. In my case, I actually managed to let a significant quantity of egg matter seep into the dishwasher.*

The problem with making fresh ravioli is that it’s actually quite tricky and you’re bound to screw it up the first time, especially if you’d like to stuff them with a mash of fresh pumpkins that is unexpectedly wet. (You’ve got to walk before you run, kids.)

The problem with Mario Batali is he doesn’t say any of this in his recipes.

* Bonus tip: there’s no way to save a pasta dough once you’ve incorporated too much flour (e.g., because you started desperately flinging it at a rapidly advancing torrent of eggs). The dough quite decidely “locks” and won’t react to additional liquid/eggs in any useful way.

November 9, 2007

Fun with Keyword Analysis

Filed under: Not Tech, Waste of Time — Chris @ 6:42 pm

Noted without comment: as of now, this blog is the #5 result (of “about 1,040”) for the Google search “irresponsible assface”.

November 6, 2007

Updating for Daylight Savings Time on Ubuntu

Filed under: Linux, Tech — Chris @ 9:28 pm

My system clock has been all wiggy since Daylight Savings Time ended (or started?) (it’s ended) on Sunday. Believe it or not, it was actually flipping back and forth between correct and one hour ahead for no apparent reason. I did two things which together seem to have fixed things.

First, via Fast Track Sites, I found that my system timezone information was out of date. The test for this is:

% sudo zdump -v /etc/localtime | grep 2007
/etc/localtime Sun Mar 11 07:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 CST isdst=0 gmtoff=-21600
/etc/localtime Sun Mar 11 08:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Nov 4 06:59:59 2007 UTC = Sun Nov 4 01:59:59 2007 CDT isdst=1 gmtoff=-18000
/etc/localtime Sun Nov 4 07:00:00 2007 UTC = Sun Nov 4 01:00:00 2007 CST isdst=0 gmtoff=-21600

If the output doesn’t exactly match the above, you have a problem. Download the latest tzdata2007X.tgz file (where X is a lowercase letter) from the National Cancer Institute (seriously). For gorey details, see the Fast Track Sites post cited above. (I don’t think you really have to do the ln step, which sets your timezone to EST5EDT instead of, e.g., America/New_York. I skipped it.)

Now your system ought to know the right start/end dates for Daylight Savings Time. But your clock is probably still out of whack.

Now, via Ubuntu Forums and Stephen Sykes, use ntpdate to reset the clock. The trick(s) here are: (a) you have to shut down ntpd first, (b) setting the clock back an hour will convince sudo that you’re trying to do something nefarious (“timestamp too far in the future”), and (c) I had to give ntpdate the -u option to get past some unseen firewall.

% sudo /etc/init.d/ntp-server stop
 * Stopping NTP server ntpd                                 [ OK ]
% sudo ntpdate-debian -u
 6 Nov 17:00:00 ntpdate[13693]: step time server 66.36.239.104 offset -3598.042737 sec
% sudo /etc/init.d/hwclock.sh restart
sudo: timestamp too far in the future: Nov  6 17:59:56 2007

Oops. Using the “Adjust Date & Time” applet, manually set the clock one hour forward. Now, run sudo -k. Now, set the clock back to the correct time (again using “Adjust Date & Time”). Starting over:

% sudo ntpdate-debian -u
 6 Nov 17:00:00 ntpdate[13693]: step time server 66.36.239.104 offset -3598.042737 sec
% sudo /etc/init.d/hwclock.sh restart
 * Saving the system clock
% sudo /etc/init.d/ntp start
 * Starting NTP server ntpd                                [ OK ]

All done. Enjoy.

[UPDATE 3/12/2008] It looks like this might be a semi-annual ritual: my system pulled the same schizo act when DST started this week. On Gutsy, ntp-server has become ntp. It’s easier springing forward than falling back, because sudo just times out when you set the clock forward.

[UPDATE 3/9/2009] A fall back and a spring forward with no problems. Whoopee.

Heckuva Job, Bernie

Filed under: Not Tech, Politics — Chris @ 12:19 am

Rudy Giuliani on Bernard Kerrick, the mobbed-up, bribe-taking, tax-evading, mistress stalking, ex-personal driver, ex-police commissioner, ex-Iraq occupation official, and ex-failed nominee to a George Bush’s cabinet*:

If I have the same degree of success and failure as president of the United States, this country will be in great shape.

He continued, “My shit tastes like lollipops, 9/11, 9/11.”

* And remember: you can personally authorize torture and still be confirmed to George Bush’s cabinet.

« Newer PostsOlder Posts »

Blog at WordPress.com.