Posts Tagged ‘Programming’

Short links for June 8th

Tuesday, June 8th, 2010

These are my links for June 8th:

  • PackagingGuide/Python – Ubuntu Wiki – A guide how to create ubuntu (debian) packages for python apps.<br />
    I ran across a problem that on older Ubuntu machines (Hardy) the python modules were packaged into /usr/lib/python2.6/site-packages directory while with newer Ubuntu versions (Karmic) it is packed into /usr/share/pyshared.<br />
    The cause of this behaviour are different python-support and dpkg versions. The newer ones can determine what directory is good (therefore using pyshared). The site-packages directory even does not exist (and seems not to be used) on newer Ubuntu versions, so building-on an old ubuntu makes it unuseable on newer Ubuntu versions.<br />
    Solution is to set the install_dir of the install_lib target using a setup.cfg to the dist-packages directory. (changing it to pyshared is not working well as you might have to create some files in /usr/share/python-support/ on your own).

Short links for March 29th

Monday, March 29th, 2010

These are my links for March 29th:

Short links for June 18th

Thursday, June 18th, 2009

These are my links for June 18th:

Short links for June 17th

Wednesday, June 17th, 2009

These are my links for June 17th:

Top 10 things likely to be overheard from a Klingon Programmer

Friday, October 31st, 2008
  1. Specifications are for the weak and timid!
  2. You question the worthiness of my code? I should kill you where you stand!
  3. Indentation? I will show you how to indent when I indent your skull!
  4. What is this talk of release? Klingons do not make software releases. Our software escapes leaving a bloody trail of designers and quality assurance people in its wake.
  5. Klingon function calls do not have parameters – they have arguments – and they ALWAYS WIN THEM.
  6. Debugging? Klingons do not debug. Our software does not coddle the weak.
  7. A True Klingon Warrior does not comment on his code!
  8. Klingon software does not have BUGS. It has FEATURES, and those features are too sophisticated for a Romulan pig like you to understand.
  9. You cannot truly appreciate Dilbert unless you’ve read it in the original Klingon.
  10. Our users will know fear and cower before our software! Ship it! Ship it and let them flee like the dogs they are!

Bookmarks for October 28th

Tuesday, October 28th, 2008

These are my links for October 28th:

  • Stack Overflow – Stack Overflow is a collaboratively edited question and answer site for programmers — regardless of platform or language.

Bookmarks for September 24th

Wednesday, September 24th, 2008

These are my links for September 24th:

Syntax error: Bad fd number

Tuesday, September 23rd, 2008

I just noticed that (part) of my Makefile could not be executed on my own machine. It gives me a

 /bin/sh: Syntax error: Bad fd number

error. On the target machine this runs fine. My own machine runs Ubuntu but the target machine another linux (RHEL). So what is the difference?

The suspicious line contains a output redirect:

command >&/dev/null

This will run corrent in csh or bash (bash is compatible in this case with csh). But Ubuntu links /bin/sh to dash! You might never heard of dash – me neither.
So I changed the output redirect into something more compatible to solve this problem:

command >/dev/null 2>&1