Thursday, April 26, 2012
LASR in the news
I’ve run lots of demonstrations for various government folks, so I was mostly expecting this to be like that: some people in suits come in, the tour guide describes what they’re looking at while I sit in the corner and make it work, they maybe ask the tour guide a question or two, and then they leave to go look at the next thing. Once in a great while, I shake somebody’s hand as they’re leaving. I really wasn’t expecting to have people with video cameras wandering over to my side and peeking over my shoulder. Why are you filming me and my laptop when there’s a genuine robot doing roboty stuff in the room?! Look over there, in the sand! It’s moving at this very moment! It was really weird.
Well anyway, I guess what I’m really trying to say is I have terrible posture and now there’s video evidence proving it to the world. Hurray.
Tuesday, March 29, 2011
Google Summer of Code 2011
Thursday, May 20, 2010
License: Obtained
Having previously downloaded and filled out the form, we went to the Alexandria Circuit Court Clerk’s office this morning and got our marriage license. :-)
It was surprisingly (disturbingly?) simple: we gave the clerk the form, she typed up a copy which we both had to sign, we had to swear that we had filled it out honestly, and then we gave her $30 and that was it. We didn’t have to provide any identification or any other documents or anything. The whole process took less than ten minutes, and we spent the majority of the time waiting while she typed.
And the “swearing” just consisted of saying “yes” with our right hands raised. (I guess swearing on a Bible has gone out of fashion.) I’m sure people find it much more difficult to lie when they have to concentrate on keeping their right arm elevated… especially those sinister lefties.
Monday, May 3, 2010
Where Did April Really Go? or, How Do I Use Pretty Fonts With LaTeX?
So what did I actually do in April? Work has been busy, but I can’t really say much about that. I can report that my company celebrated its tenth anniversary last Friday by treating us to dinner on a boat.
Outside of work, preparations for certain upcoming events have seemed to dominate evenings and weekends. Things are coming along, though. I hope everybody likes our cake topper which I made all by myself. I think we’re approaching a lull as we wait for everybody to RSVP.
So anyway, here’s a totally hypothetical situation for you: suppose you want to create a nice-looking event program and you want to do the typesetting with LaTeX because WYSIWYG editors are lame. How do you make something which is the size of your blank cards and which doesn’t use Computer Modern (which is an awesome font, thanks Donald E. Knuth you’re awesome dude, but is too recognizable as “that font from scientific papers and textbooks”)? It turns out to be very simple.
LaTeX has a lot of fonts available. For a program heading, Calligra is nice. I find it difficult to read for the main body, though. A nice serif font like Palatino is better. (I always used Palatino for my papers in high school because I thought it had the nicest capital letter J, which was, of course, one of the first letters the reader would see.)
To use a non-standard paper size (like, say, 4.25 inches by 6.375 inches), the geometry package is your friend. It lets you easily specify the dimensions of the paper and the sizes of the margins.
Finally, what about color? Also very simple. All together we get a preamble which looks something like this:
\documentclass[10pt]{article}
\usepackage[paperwidth=4.25in, paperheight=6.375in, top=0.25in,
left=0.25in, width=3.75in, height=5.875in]{geometry}
\usepackage{color}
\usepackage[T1]{fontenc}
\usepackage{calligra} % cursive font
\usepackage[sc]{mathpazo} % regular font
\linespread{1.05}
\pagestyle{empty} % no page numbers
Thankfully, Calligra and Palatino play nicely together; Palatino assumes the role of the default font, while Calligra only takes effect following a \calligra directive (which is limited in scope to the surrounding curly braces).
Hooray for LaTeX!
Where did April go?
Tuesday, March 30, 2010
Mobile Me, Back to My Mac, and ssh.
So, I had my router set up to forward port 22 to my laptop, and then pointed ssh to the IP address given to me by Comcast (actually, to my DynDNS domain name, but same thing). This works, but I would like to have all the comms protected by BTMM’s Kerberos-authenticated IPv6-based VPN goodness.
Yesterday I got curious about it and did some searching and found this Mac OS X Hint from 2008. It turns out to be very simple. Each of my machines, while it’s logged into BTMM, automagically gets a domain name of the form host.username.members.mac.com. My MobileMe username happens to have a period in it, which is escaped with a backslash (so my domain name is actually along the lines of host.user\.name.members.mac.com).
This domain is only resolvable from other machines logged into my BTMM account, and it doesn't depend on router port forwarding, so I don't need any complicated firewall rules in place. The only downside (apart from the occasional flakiness, which seems aggravated when I initiate other VPN connections) is that I will no longer be able to log into my computer using iSSH on my iPhone. But I hardly ever do that anyway.
The moral of the story is: to remotely log into my home laptop from my work laptop, I just need to type:
ssh host.user\\.name.members.mac.com.in a terminal. That extra backslash is to keep my shell from interpreting “\.” as “.”; the escape character is escaped. I could equivalently quote the entire argument, like:
ssh "host.user\.name.members.mac.com."Oh and the trailing period is intentional (but optional).
OK, I admit it. I just wrote this to keep up with my recent post rate of 3.80265176e-7 Hz.