Archive for category hacks

GChat

Someone in the room mentioned that we should create a GChat bot that would let us all talk together without the hassle of creating a chat room each time. Having used xmpppy before, I went and did it.

The result:
chatbot

(Charles changed my GNOME theme to pink some weeks ago.)

Tom then wanted me to write a post about how I did it, so here it is. Without going into a description of the library itself, it works as follows: when it gets a message from one of us, it prepends the appropriate initial and sends the message to the rest of us.

I guess I can go a little more into the details of the library (especially because the documentation is pretty annoying). (There still isn’t really that much to say.) You run some commands in the library to create a connection and log in, then register a function with the connection object to handle incoming messages. I suppose I can add more description if anyone wants. Code.

So that I can get all the tags:
http://acme.com/jef/singing_science/
http://www.youtube.com/watch?v=OM0ib4GxLPw

2 Comments

My dear Watson, and: How to “upgrade” your notebooks for free! (DOUBLE FEATURE)

Hello world!

Last Wednesday, Dr. James Watson of DNA fame decided to visit our school. While he was around, he gave a lecture in a biology class or something. I am a physics student and don’t find myself in biology classes very often, but I heard of his impending appearance so I dragged Duncan and Danny down to go see him talk for an hour. It was pretty cool and I drew a picture of him while he was talking:

I drew it with a pen and made a couple of mistakes that I scribbled out

I drew it with a pen and made a couple of mistakes that I scribbled out

About science, he said “It’s better to have an idea that’s wrong than no idea”, and about which topics are best to do research on, he said “Go to the frontier. Try to get into a field where there are only a couple of people working.” It’s pretty sweet to go see old famous scientists talk, especially when they’re not completely senile (Dr. Watson is the same age as my grandpa and seems to be ageing well, mentally.)

Andddddd:

The other day I was thinking about my school notebooks (the kind with spiral rings and paper). My school bookstore sells two variations of spiral notebooks: one kind with the school’s insignia, and one without. The notebooks with the insignia cost over $4, while the plain ones are only $2.19.

$4 vs $2. A careful examination notes that the leftmost one has 20 more pages, but that is far from a $2 value.

$4 vs $2. A careful examination notes that the leftmost one has 20 more pages, but that is far from a $2 value.

The rational response here is: “Big deal, just get the cheaper one and save lots of money.” But observe: The expensive notebooks have one additional feature, an inside folder pocket:

Folder pocket vs no pocket. Pockets are soooo useful for collecting handouts, syllabi, graded assignments, etc.

Folder pocket vs no pocket. Pockets are soooo useful for collecting handouts, syllabi, graded assignments, etc.

I love this sort of folder pocket because it means I don’t have to lose class-related papers everywhere in my bag! But I don’t intend to spend $20+ instead of $10 every semester if I can avoid it. So I decided to make my own inside-pockets.

This isn’t all that epic, nor is it particularly worthy of a blog post, but I think I have a really cost-effective and simple solution that requires only one sheet of standard copy/printer paper and about three staples per notebook. Here’s my walkthrough: Read the rest of this entry »

3 Comments