Post thumbnail of Build script to utilize Makefiles to build multiple applications
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 Function arguments optional in python
17 December 2009
Continue reading Function arguments optional in python

Function arguments optional in python

I like it. It’s so simple and flexible. Define it with none, then assign sys.argv in place of argv.

Post thumbnail of Simple php function to check if post variables are set without triggering warnings
13 August 2009
Continue reading Simple php function to check if post variables are set without triggering warnings

Simple php function to check if post variables are set without triggering warnings

If you check the contents of a post variable that never got passed, you get warnings. If you like keeping your verbosity set that high and want to avoid this warning, or you just want to avoid checking against a non-existent variable, try this

Powered by Wordpress   |   Lunated designed by ZenVerse