Malicious enjoyment derived from observing someone else’s misfortune
 

Tag Archives: python

Moving the mouse with Python

I’ve been using KDE4 in Ubuntu, and I really like it – it’s slick, has everything I need, and it all seems to gel together pretty well. Yet, the power management is really starting to make me angry. I’ve turned all of it off, checked ps and other tools for any signs that it’s still running, and despite my efforts, my screens still turn black after 10 minutes unless mplayer is running. So, I decided to fix that using Python, [...]

OSCON Sessions, Day 2

Oh man, what a day. I attended quite a few talks, grabbed a lot of swag, and entered a few contests. I ended up buying the Arduino Starter Kit from MAKE so I can do some awesome embedded Ruby like I saw at FOSCON. It looks really fun – I can’t wait to try it out. The talks I attended were half-way decent, but I learned a lot more on the first day. Hadoop and EC2 A good overview of [...]

Hawt presentations with Beamer and KeyJNote

I stumbled upon KeyJNote today, and was very intrigued. I could use this for presentations! So, I figured I’d write up a little tutorial on how to make one. I’m going to use LaTeX and Beamer to create my presentation, but you can use whatever PDF-exporting software you would like. This is Ubuntu/Debian specific, so if you don’t use one of those, figure out the package install commands on your own. First, install stuff: sudo apt-get install keyjnote latex-beamer Now [...]

Ruby > Python so far…

So, I found out I need to learn Python in some capacity for my new job. I’m currently teaching myself, and that’s going well, except for one small problem – there’s no ternary operator. I mean, you can cheat and use an array: [<false code>,<true code>][<conditional expression>] But how does that start looking if you are nesting them? Completely unreadable. This is a much better idea: <conditional expression> ? <true code> : <false code> Would it be so bad to [...]