Post thumbnail of Build script to utilize Makefiles to build multiple applications
[image]29 December 2009
Continue reading Build script to utilize Makefiles to build multiple applications

Build script to utilize Makefiles to build multiple applications

You have a bunch of related applications, each has their own Makefile that knows only about their own application, but you have dependencies where one app needs to be built before another. Here’s a skeleton bash script for building any one thing or everything.

#!/bin/bash

function build {
echo "*** …

Post thumbnail of Python: Use subprocess to easily catch return values
[image]13 November 2009
Continue reading Python: Use subprocess to easily catch return values

Python: Use subprocess to easily catch return values

Run system commands or call a sub-process and assign the return value to a variable. This makes it easy to pass the error up to your processes parent.

Post thumbnail of 30 extra lives for your Xbox 360 console, like old school Contra
[image]25 March 2009
Continue reading 30 extra lives for your Xbox 360 console, like old school Contra

30 extra lives for your Xbox 360 console, like old school Contra

First it was the three red rings of death. I had to wait forever for them to ship my console back to me! And now my Xbox 360 console won’t play games anymore from disc. Fallout, Crackdown, Orange Box, and COD world at war, I tried them all and none of them will play. I can get on Xbox live and play Castle Crashers just fine, but any attempt to play a game from CD and it acts like the disc is all scratched up.

Post thumbnail of Python: Get unique elements in a list, sorted or unsorted
[image]3 March 2009
Continue reading Python: Get unique elements in a list, sorted or unsorted

Python: Get unique elements in a list, sorted or unsorted

I ran into these two methods for grabbing just the unique elements from a list, one keeps the order, the other relies on sorting the list. But then I found some strange code that works really fast. Check out this amazing little one liner!

Post thumbnail of Iterators in python are about as easy as “hello world” in most other languages
[image]28 December 2008
Continue reading Iterators in python are about as easy as “hello world” in most other languages

Iterators in python are about as easy as “hello world” in most other languages

Iterators in python are so easy. I saw some articles on random sites about building generators to do stuff, but in the end they were only trying to iterate through a file line by line so why make it harder on yourself. Declare an iterator of the type …

Powered by Wordpress   |   Lunated designed by ZenVerse


You are viewing a mobilized version of this site...
View original page here

Mobilized by Mowser Mowser