Tuesday, July 17, 2007

Two Quick Recommendations

1. I've listened to Björk's new album Volta a few times now, and it's fantastic. It's easily her best album since Homogenic.

2. I just watched the first episode of 30 Rock online, and it had me laughing out loud in places. I'll post again if the show holds up.

Thursday, July 12, 2007

The Wire on Wikipedia

Today's featured article on Wikipedia is the entry on The Wire. I watch for changes on the entry (correcting sabotage, inaccuracies, etc.), and it's gratifying to see that people think it's an especially good article. Check it out if you haven't already.

Sunday, June 03, 2007

Remnick on "The Sopranos"

I enjoyed reading this David Remnick article from 2001 on "The Sopranos." I especially enjoyed the end (the piece ran during the third season):

And, as Chase told me, there’s probably only one more season left in him before “The Sopranos” gets stale. He wants out. His next planned project is a feature, backed by HBO and distributed by Warner Brothers. And it is not about the Mafia. It’s about the Christian-rock scene.

Mother of Mercy, is this the end of Rico?


Heh. With the show really ending soon, I guess we have a Christian-rock movie to look forward to.

Thursday, May 03, 2007

Multi-Column Article View Greasemonkey Script

I'm finally ready to reveal to the world my procrastination tool of the past few weeks, a Greasemonkey script that creates a multi-column, multi-page view of long articles. A screenshot will probably do much more than that description:

The view is obviously inspired by the New York Times Reader (which I've previously written about). Usage should be fairly straightforward. For most sites, using the script simply requires navigating to the printer-friendly version of an article (the original article is modified for sites like nybooks.com that don't provide printer-friendly pages). The pages can be navigated with the left and right arrow keys or with the buttons.

Some aspects of the script are not entirely debugged. In particular, sometimes the text alignment on a page is slightly off. I've found that slightly resizing the window often fixes this problem. If there are any Javascript experts out there, I'd welcome a patch to make the script more robust. Also note that I've primarily used the script along with Adblock, and it's possible that if ads are present the viewer will misbehave.

The viewer works on the printer-friendly version of an article, or the main article if no printer-friendly view exists. The following sites are currently supported:I also welcome patches to support more sites; hopefully it shouldn't be too difficult. You can get the script from this page on userscripts.org. Let me know if you like it or if you have problems / suggestions.

Update (5/22): I updated the screen shot to show the aesthetic changes in version 0.1.3 contributed by Dave.

Update (6/27): Instead of updating things in two places, I'm only going to keep the userscripts.org page up-to-date with a complete list of supported sites and a change log from now on. So go there to see the latest news.

Thursday, April 26, 2007

Moyers on the Media and Iraq

I wanted to recommend Buying the War, a documentary by Bill Moyers that aired last night on PBS (you can watch it online). It's really amazing to re-watch some of the media coverage preceding the Iraq war and to see how unbelievably wrong it was. Glenn Greenwald has a nice post on the topic.

Wednesday, April 25, 2007

The Waiting Game

There haven't been many posts for a while, due to a good deal of traveling for job interviews. Now that I'm done with the traveling, all I can do is wait until the decisions come in. The waiting is fairly miserable; I've managed to be somewhat productive research-wise, but I can't help but glance at my email and phone a bit too frequently to make sure I don't miss any news. Even though the waiting is hard, I'm also slightly dreading the end of waiting, since at that point if I have multiple offers I'll have to make a decision. I know that all my options will probably be good, but I'm sure I'll agonize to no end over minutiae in trying to make the best possible choice anyway.

Well, that's about all I have to say for now. I just finished reading Bleak House after several fits and starts, and I hope to write a bit about it soon.

Friday, March 30, 2007

Suppressing a line number with the listings LaTeX package

Don't bother reading this post unless you are using the LaTeX listings package, have a code listing with line numbers, and want to suppress a line number in the listing.

By suppressing a line number, I mean something like the following:

Line 16 is split across two lines in the figure, but it's really one code statement, and I didn't want to have to refer to the statement using multiple line numbers in the text. Here is the LaTeX source for the key line:

String firstName = /*@\\@*/ /*@\underline{fullName.substring(0,spaceInd-1)};@*/

Note that since this snippet is used within the listings environment, the whitespace and the lack of a newline are significant. I used \lstset{escapeinside={/*@}{@*/}} before this listing to declare the escape sequence for adding other formatting. The {\*@\\@*/} inserts a linebreak, and then the spaces before the next characters appear as indentation in the figure.

Anyway, I googled around and couldn't find this trick, so hopefully this writeup will be useful to someone.

UPDATE (10/27/2008): In response to a request in a comment below, here is a minimal-ish full example that uses the technique. I've confirmed that this example works with the MacTex 2008 distribution (pdfTeXk, Version 3.1415926-1.40.9 and version 1.4 of the listings package).


\documentclass{article}
\usepackage{listings}

\lstset{escapeinside={/*@}{@*/}}

\begin{document}

\begin{figure}[t]
\begin{lstlisting}[numbers=left]
String firstName = /*@\\@*/ /*@\underline{fullName.substring(0,spaceInd-1)};@*/
\end{lstlisting}
\caption{Example illustrating suppression of line numbers.}
\end{figure}

\end{document}

Tuesday, March 27, 2007

Snitches in Baltimore

I read this article on witnesses being harassed and murdered in The Atlantic yesterday, and was absolutely infuriated. Everyone knows The Wire is a realistic show, but for some reason it was only after reading this article that it hit home for me how horrible that is. Is there any vaguely practical path to a sane drug policy in this country? Please let me know if one exists, as I'm eager to support it. Also, email me if you're not an Atlantic subscriber, and I'll email you access to the article.

Sunday, March 25, 2007

Rice and Keats

Just wanted to plug Rice and Keats, a blog well worth visiting; and I'm only a little biased :)

Friday, March 09, 2007

Times Reader again

I just wanted to recommend the New York Times reader again. They just updated it so that you can read any issue of the Times from the past week, a really useful feature. I've used the reader extensively on flights by syncing the articles before I leave, and it's been great.

Update (3/16): It looks like the Times reader will soon not be free, and for me, it's definitely not worth the price they are asking. On the other hand, Times Select is now free for students and faculty.

Thursday, March 01, 2007

News War

I wanted to recommend News War, a great Frontline documentary on the evolving role of the media that has been airing recently. You can watch it online, and the extended interviews are also really interesting.

Pipe for all my posts

Just for kicks, I made a pipe (as discussed previously) for all my posts here, on NewsDog, and on del.icio.us, and added a link to the feed.

Monday, February 26, 2007

Great David Milch video

I highly recommend this video of an interview / Q&A with David Milch (hosted by David Thorburn, who taught a lit. class that I took my freshman year). Milch talks about Deadwood, NYPD Blue, his own life, and the writing process. Perhaps the most interesting factoid: the role of Al Swearengen was originally written for Ed O'Neill (the father in Married with Children), but HBO wouldn't cast him; crazy.

Friday, February 23, 2007

Yahoo! Pipes

I messed around a bit with Yahoo! Pipes a few days ago, and it seems like a very cool tool (if a bit hard to use). I made a pipe for my brother's columns in the Stanford Daily, and it works nicely. I also recommend this Freakonomics pipe that only includes Levitt's posts from the blog. There are pipes that do all kinds of crazy mashups, but even the basic filtering functionality is quite useful.

Friday, February 16, 2007

Hacking a felony?

I just saw this article in The Tech about three students being charged with a felony for getting caught in the middle of a hack. It seems a bit overboard to me; you would think that the MIT Police would be able to figure out that no harm was intended in a case like this one. Hopefully the charges will be dropped.

Friday, January 12, 2007

A visit to Philadelphia

I wanted to write briefly about what we did and ate during our recent visit to Philadelphia, which was a lot of fun. We took some recommendations from this Times article. In no real order:
  • Kingdom of Vegetarians: We ate here on our first night. Good food, but very large quantities; one appetizer and a main dish is probably enough for two. I was impressed with the number of vegetarian places in center city Philly; we had lunch at a vegetarian falafel place once, and there were plenty of other options.
  • La Colombe Torrefaction: Recommended in the Times article, this place does in fact have amazing coffee.
  • The Rosenbach Museum: A small, cozy museum showcasing the rare books collection of Dr. A.S.W. Rosenbach and some antiques. Lots of neat stuff here, and you can see everything in under 2 hours.
  • Porcini Restaurant: A friend took us to this friendly Italian restaurant, where the owner typically mingles with the diners. It was a bit cramped, but the food was quite tasty.
  • Pietro's Pizza: The coal oven pizza was good, but stay away from the salad.
  • Naked Chocolate Cafe: Go here for some intense hot chocolate, very dense and served like an espresso shot; wow.
Overall, I was pleasantly surprised by how much fun we had during the trip; Philly is a place worth visiting.

Friday, December 08, 2006

The re-up

I just saw this headline on ESPN.com: Staying Put: Bonds to re-up with Giants for $16 million. I had never heard the term "re-up" before watching The Wire, but according to The American Heritage Dictionary, it can in fact mean "to sign a renewed contract for employment or service." It's still kind of funny to refer to Bonds as doing a re-up.

Better Slate RSS feeds

Finally, Slate has upgraded their RSS feeds so that there are separate feeds for each department. I've wanted for a long time to have a feed for the Today's Papers feature, so this is great.