Viewing Category : programming

Post thumbnail of Makefile breaks when making targets of another Makefile
30 December 2009
Continue reading Makefile breaks when making targets of another Makefile

Makefile breaks when making targets of another Makefile

In GNU’s Make manual, there’s a description of how to use one Makefile to call targets of another Makefile. You have to use $(MAKE) in order for it to work properly. I’ve found one little snag that’s not mentioned. If my target name is the same as the directory name where the other Makefile is, it will never work. It always says it’s up to date! If I change the target name, it works fine.

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 Just another why Python rules article
21 December 2009
Continue reading Just another why Python rules article

Just another why Python rules article

It’s all about the design of the language and I agree with the author completely when he says, “Most languages have so much friction and awkwardness built into their design.”

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 Eclipse - The executable launcher was unable to locate its companion shared library
30 November 2009
Continue reading Eclipse - The executable launcher was unable to locate its companion shared library

Eclipse - The executable launcher was unable to locate its companion shared library

Eclipse - The executable launcher was unable to locate its companion shared library. This problem is so generic, there’s a ton of things that could be wrong. It also depends on which OS you’re using!

Post thumbnail of Building qpidc AMQP C++ libraries on ppc
24 November 2009
Continue reading Building qpidc AMQP C++ libraries on ppc

Building qpidc AMQP C++ libraries on ppc

Wow, there are a crap load of dependencies to build qpid, the AMQP client/server libraries for C++! What do you mean my architecture isn’t supported? Bah, whatever… Add ppc to the list or rip it out for now. Just build it and stop complaining!

Post thumbnail of Let Agile flow by
17 November 2009
Continue reading Let Agile flow by

Let Agile flow by

I’ve heard the arguments for the agile developement method from people all for it and people who don’t care for it, and even people who just don’t care at all. I think it all boils down to the fact that the project management style and tools really just don’t matter. Pick a methodology and stick with it. Or better yet, choose what will work in your organization and take the best parts from several of the popular “fads” — use what works. The skills of the programmers matter more than which way you want to tackle planning, meetings, and management’s visibility.

Post thumbnail of Python: Use subprocess to easily catch return values
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 Install Google’s “Go” Programming Language on Fedora 12 or 11
12 November 2009
Continue reading Install Google’s “Go” Programming Language on Fedora 12 or 11

Install Google’s “Go” Programming Language on Fedora 12 or 11

Install mercurial source control management system (sorry git lovers), and prerequisites. Set up by making some directories and exporting a variable or four. Clone the source repository. Let the building begin.

Post thumbnail of Geany is the best code editor
8 October 2009
Continue reading Geany is the best code editor

Geany is the best code editor

In the past i’ve used Eclipse, and that behemoth was a nightmare. The beast is a memory hog and just too bloated for my taste. Using plugins for php and python just make matters worse. I’ve always fallen back to vi (Vim) because of the severe headaches eclipse has caused me. hmm, I should sue… anyway, here’s the top reasons why Geany meets my criteria for the best code editor in the world…

 Page 4 of 7  « First  ... « 2  3  4  5  6 » ...  Last » 
Powered by Wordpress   |   Lunated designed by ZenVerse