Archive for the 'Computing' Category

Reloading a File in Adobe Reader

« 2 April 2009 | 21:49 | Computing, Linux | No Comments »

When working on document in LaTeX that is going to wind up as a PDF (e.g. my thesis), I prefer to look at it in Adobe Reader. Acroread seems to give the best impression of what the document will actually look like. In practice, though, I use xpdf, because it has a “reload” [...]



Len Adleman’s Sneakers Anecdotes

« 2 March 2009 | 19:50 | Computing, General, Science and Math | No Comments »

Computer scientists and mathematicians like the movie Sneakers not only because it is about cryptography, but also because the jargon about factoring used in the movie is authentic. The reason it is authentic is because the directory brought Leonard Adleman (the “A” in “RSA”) in to help them. He’s written up some memories [...]



Preventing Line Breaks of Equations in Latex

« 19 February 2009 | 21:08 | Computing, Science and Math | No Comments »

I learned a new Latex trick today. Sometimes you have math notation inline with text, like when you use $…$. Sometimes with long equations, however, you get line breaks. Like if you have $a+b+c+d+e$, it might happily break it into $a+b+c$ and $+d+e$ on the next line. This is ugly, but [...]



Evaluating Amazon EC2 for Scientific Computation

« 6 November 2008 | 3:16 | Computing, Linux, Research, Science and Math | No Comments »

I’ve written some fairly heavy Markov chain Monte Carlo code in Java and would like to let it run for a while. The cluster in the Inference Group is not terribly up-to-date and it’s obnoxious to run computationally-significant jobs on colleagues’ desktops anyway. This seemed like a good opportunity to try out Amazone [...]



Installing Tom Minka’s Lightspeed on Linux

« 19 August 2008 | 17:26 | Computing, Matlab | No Comments »

I am a huge fan of Tom Minka’s Lightspeed Toolbox for MATLAB. I am so dependent on it that I can’t even remember which functions are native to MATLAB and which are Tom’s inventions. However, Tom is at Microsoft Research Cambridge and so he doesn’t spend much time making sure that it works [...]



Infinite Gaussian Mixture Modeling with FBM

« 29 May 2008 | 21:24 | Computing, Research, Science and Math | No Comments »

I am writing a paper on nonparametric Bayesian density modeling and I would like to compare my technique to the standard approach of the infinite mixture of Gaussians (iMoG). You can read Carl Rasmussen’s paper to get a feel for what it’s all about. My plan is to look at hold-out log probabilities [...]



Rock Band – Best Cooperative Game Ever

« 7 May 2008 | 16:19 | Gaming | No Comments »

Our downstairs neighbors, who are our very very good friends are moving away. They’re huge karaoke addicts and so we got them a fun parting gift: Rock Band for the PS2. This game is so much fun, it’s painful. Obviously, I know people have liked it, and Guitar Hero has been a [...]



Video Card Ugliness

« 2 May 2008 | 16:03 | Computing, Gaming | 1 Comment »

I have this fairly nice setup for my home office, since I work from home more or less exclusively. I like to play the occasional PC game, so I have a reasonable video card setup. I had two eVGA 7600GT video cards in an SLI configuration. Well, this all turned sour last [...]



Ungoogleable Erlang Documentation

« 20 February 2008 | 1:16 | Computing, Erlang | No Comments »

While I’m complaining about Erlang: why doesn’t Google ever return any hits on the documentation? If I google “perl sprintf” the first hit is the documentation page http://perldoc.perl.org/functions/sprintf.html. The same thing happens if I Google “python array” or “lisp map” or “php echo.” If I type “erlang supervisor” I don’t get anything [...]



Erlang PostgreSQL Roundup

« 20 February 2008 | 0:56 | Britain, Computing, Erlang | No Comments »

Like just about everything to do with Erlang, database driver support appears to be in total disarray. I’d like to be able to store data in a PostgreSQL database and access it reasonably well. Options appear to be

Erlang psql driver that is a fork or something of the code by Erlang Consulting. [...]



XML Stream Parsing in Erlang, II

« 19 February 2008 | 22:37 | Computing, Erlang, Gaming, General | No Comments »

In my previous post, I complained a lot about trying to get XML stream parsing working. Ultimately, I just decided to rip the guts out of ejabberd, rather than reinvent the wheel. The relevant files are xml_stream.erl, xml.erl, and expat_erl.c. You can see how to use it in ejabberd_receiver.erl. Frankly, these [...]



XML Stream Parsing in Erlang

« 18 February 2008 | 23:53 | Computing, Erlang, Gaming | No Comments »

There’s a lively debate out there about how one should communicate with clients in a game, in particular UDP vs TCP. I won’t go into details about it, but you can read a lively debate here. The choice for my ridiculous game is TCP+UDP. I want to use TCP for various communications [...]



Fast Floating-Point Exponential

« 6 February 2008 | 22:08 | Computing, Science and Math | 1 Comment »

If you are writing code that is dominated by evaluation of the exponential function, you cannot do without these two papers:

Nicol N. Schraudolph. A Fast, Compact Approximation of the Exponential Function. Neural Computation, 11(4):853–862, 1999.

G. C. Cawley. On a fast compact approximation of the exponental function. Neural Computation, 12(9):2009-20012, 2000.

The implementations described yield 3x [...]



Making Better Equations in Latex and Beamer

« 28 January 2008 | 18:31 | Computing, Research, Science and Math | 1 Comment »

I use Latex Beamer to do all my talk slides. Problematically, however, it can be tempting to pack the slides full of equations. Obviously if you’re presenting mathematical results this is unavoidable. This page on using arrows in equations with Beamer is fantastic. I’m definitely using them in my next presentation.



Starting an Erlang Project, Part III

« 24 January 2008 | 21:44 | Computing, Erlang | 2 Comments »

I’ve posted twice now about starting an Erlang project (one and two). I now have a directory structure and a Makefile that I’m happy with, plus some odds-and-ends from my first attempt at stubbing out an OTP application. I’m now going to begin again, with a healthy dose of Chapter 18 from Joe [...]



Starting an Erlang Project, Part II

« 24 January 2008 | 19:28 | Computing, Erlang | No Comments »

Continuing on with the previous Erlang post, there have been a couple of developments: 1) Programming Erlang arrived from Amazon, 2) trapexit.org came back online, and 3) I found this awesome blog.
To remind you of my immediate goal: I want to figure out how to organize a large-scale Erlang project. I want to learn [...]



Starting an Erlang Project, Part I

« 23 January 2008 | 5:05 | Computing, Erlang, Gaming, General | 1 Comment »

Per my previous post, I’m going to start a little Erlang project. I’ll call it “North Zulch,” or “NZ” in reference to the tiny little place where the family ranch is located.
There are three things that I’ve had to solve over and over (or at least cut and paste over and over), in [...]



Off On an Erlang Adventure

« 22 January 2008 | 23:57 | Computing, Erlang, Gaming | 1 Comment »

I have decided for some reason that it would be fun to play with massively scalable systems. In particular, I thought it would be a hilarious waste of time to work on an MMO engine. I’m not sure why this seems like a good idea, given that I have more than enough on [...]



Mario Party 8

« 30 December 2007 | 15:09 | Gaming | No Comments »

We got our Wii primarily as a party-game machine. I certainly enjoy my games, but tend to prefer the PC. We figured the Wii would be fun for when we’re hanging out with friends and family. This has certainly been the case, and we’ve enjoyed hours of Wii Sports at Thanksgiving and [...]



Content Aware Image Resizing

« 11 December 2007 | 19:26 | Computing, Research | No Comments »

It’s stuff like this that makes computer science research fun.