I had a lot of fun attending a Lean Poker event last weekend!It’s a type of event where programmers get together, form teams and spend the day writing code competitively, to see who can write the best automated online-poker player. We don’t play for money but for pride, and the main aim is to practise writing beautiful code and lean principles. That said, given the time constraint of a single day, the focus is usually on Deliver as fast as possible and by the end I’m flurrying around to keep errors out of the code. We try to get quick feedback during the day (more on that later) but I thought I’d do a write about the event to give people who haven’t attended one of these before an idea of what it’s like!
Now that I’ve got steam, I get to be constantly pestered by e-mails sending me keys with which to identify that I am myself. To save a few steps in this annoying, repetitive process I wrote a tiny bash script which finds the key in an e-mail from steam and uses zenity to pop it up on my screen, then added a filter in Evolution Mail to mark these “steam verification” messages as read and pipe them to the pop-up script. This allows me to copy the key with a double-click and paste it into steam with a middle-click, without having to poke around in my mail client for the e-mail and the place where the key is mentioned in it.
In the hope that it saves someone else from this irksomeness, here’s the code for the script:
#/bin/bash # Displays a pop-up showing a Steam activation key piped to it by a MUA. # In the e-mail the steam key is wrapped in <h2> tags # Author: Siôn Le Roux <firstname.lastname@example.org> # read e-mail from pipe while read -r line; do # find <h2> buffer=$(echo $line | grep 'h2') if [[ ! -z $buffer ]]; then #strip surrounding <h2> tags steamkey=$(echo $buffer | sed -e 's/<\/\?h2>//g') fi done # display the steam code in a pop-up zenity --info --title="Steam Key" \ --window-icon="/usr/share/pixmaps/steam.png" \ --text="<tt><big><b>$steamkey</b></big></tt>"
This news is at least a few days old by now, but it seems the official Steam client for GNU/Linux is now out of Beta and ready for use! Ubuntu users could already download the deb package from the steam website. However, if you’re an Arch Linux user, like me, then you’ll find that since the 26th of February, the steam client is already in the official Arch repositories and can be installed with a simple:
# pacman -S steam
Of course as soon as it’s installed it’s time for Steam to start its slow, perpetual update process, but except for that I think this is fantastic!
You can look down on the idea of it all you want but command-line games have their place. Not only are there situations where you need them but in a way, not having any graphics sometimes allows them to focus on other aspects of gameplay that makes them better. I was installing a new operating system on my computer today but I messed up somewhere and ended up with no Desktop Environment. Imagine turning on your computer one day and where you usually get:
“Hi, welcome to your computer [insert lots of fancy graphics and stuff], please pick who you want to log in as and I’ll give you a desktop with buttons and icons that will show you programs in little windows and let you click on things to do stuff.”
you now instead get this: Continue reading