The ternary operator of C is one of my favorite operators, it may be hard to read at times, but oh so useful. (a ? b : c) In python you can do this in three ways, the third way is only available in python 2.5 and up. It is essentially a ternary operator and [...]
My favorite passwordless ssh tutorial went offline, so here is my rehash of it. Your server names will, of course, vary. Localhost is the machine you are currently on and, in my case, northisup.com is the server I’m SSHing into. localhost$ ssh-keygen -t dsa localhost$ cat ~/.ssh/id_dsa.pub | \ ssh northisup.com 'cat >> ~/.ssh/authorized_keys; \ [...]
So I was hacking away at a turbogears project and thought ‘how cool would it be to visualize this?’ That thought lead to a short example of how to get the graphing visualization from google finance into your app. I used cherrypy to do the web serving for the example. Code after the break (sorry [...]
Over the past few months I have developed several patterns in the tools that I develop. 1) I like command line options. 2) I like to be able to run other command line programs and parse the output Code after the break.
Head Tracking for Desktop VR Displays using the WiiRemote Just think about how awesome games like Call of Duty, Time Crisis, Metroid, and Metal Gear Solid would be. Even those boring targets floating in the air were exciting to watch.
Obama is giving the science community something we’ve been desperately clawing at over the last eight years: an ear for the sciences. It will be amazing to see what the first pro-science administration can do in today’s ultra connected world. I mean come on, YouTube has been around, why has Bush done ANYTHING with it [...]
Today Jim DeMinit (R-S.C.) lambasted the new visitor center (yes, this guy has time in this economic crisis to comment on that state of the new visitor center on Capital Hill) as “Left-leaning”, and “portray[s] the federal government as the fulfillment of human ambition and the answer to all of society’s problems.” DeMint suggests “This [...]
“It’s so cool that FIJI is sponsoring an event like this. FIJI is my favorite water!” -Kanye West The global market for bottled water amounts to approximately $100 billion in sales annually and consists of an estimated 154 billion liters of fresh water. “The United States is the world’s leading consumer of bottled water, with [...]
Psychologist Jonathan Haidt studies the five moral values that form the basis of our political choices, whether we’re left, right or center. In this eye-opening talk, he pinpoints the moral values that liberals and conservatives tend to honor most.
As a modern (read: green) road warrior I find my electronics are often in need of some juice but I have no place to charge them. Enter the Power Monkey Explorer. The Power Monkey Explorer is a combination of two devices: a solar panel and a rechargeable battery. The solar panel is about the size of [...]
This is my little corner of the Internet, welcome to it. It is my sounding horn for my views on democracy, the environment, security, computers, and code which is beautiful. I like to ask questions and study the wisdom of the crowd, the democratization of information, and why things are different this time around. I am a dog person, and I have been a Mac user since before it was cool.