Home » Archive

Articles in the Programming Category

Programming »

[13 Nov 2009 | No Comment | ]

My current project involves some jQuery code.
I needed to alternate the background color for a html table with subtables and i wanted to do it in javascript.
So if your table looks something like this, use my Javascript code to color the rows:

<table>
<tbody class="Alternate">
<tr><td>I’m a row</td></tr>
<tr><td><table><tr><td>I’m a subtable for whatever purpose…</td></tr></table></td></tr>
<tr><td>I’m a row</td></tr>
<tr><td><table><tr><td>I’m a subtable for …

Featured, Programming, Science, Videos »

[13 Nov 2009 | No Comment | ]
ProFORMA: Probabilistic Feature-based On-line Rapid Model Acquisition

I’ve seen this video linked on reddit today.
As some of you know, I am totaly into machine vision these days and this 3d tracing software that imediately caught my attention.
Think about putting your face into your favorite video game – the term “Headshot” needs to be redefined then.

Linux, Programming »

[1 Nov 2009 | No Comment | ]

I installed Java 6 on a Strato V-Server today that a default installation of Ubuntu 8.04 LTS.
Per default, the multiverse packages are all disabled, so you need to edit the file /etc/apt/sources.list to make it look like this:

# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.

deb ftp://ftp.stratoserver.net/pub/linux/ubuntu hardy main restricted universe multiverse
deb-src ftp://ftp.stratoserver.net/pub/linux/ubuntu hardy main restricted universe multiverse

deb ftp://ftp.stratoserver.net/pub/linux/ubuntu hardy-updates main restricted universe multiverse
deb-src ftp://ftp.stratoserver.net/pub/linux/ubuntu hardy-updates main restricted universe multiverse

deb ftp://ftp.stratoserver.net/pub/linux/ubuntu hardy-security main restricted …

Programming »

[20 Oct 2009 | No Comment | ]

First be sure that the file you want to read is JSON syntax.
Then it’s a shot “with the bullet though the back into the eye”, as we say in germany:

// Getting gile myFile.json file
var file = Mojo.appPath + ‘myFile.json’,
fileFromAJAX = new Ajax.Request(file, {
method: ‘get’,
parameters: ”,
evalJSON: ‘force’,
onSuccess: this.fileReadCallback.bind(this),
onFailure: this.fileReadErrorCallback.bind(this)
});

MainAssistant.prototype.fileReadCallback = function(transport) {

Programming »

[6 Aug 2009 | No Comment | ]

Simple, fast and good:
DELETE
FROM MyTableWithDuplicates
WHERE
rowid not in
(
SELECT min(ROWID)
FROM MyTableWithDuplicates
GROUP BY Col1, Col2, Col3  –you may enter all columns here you want to check.
);

Programming »

[27 Jun 2009 | No Comment | ]

Yet another mystery solved..
I got the very annoying error message that my disk space in C:\Windows\$NtServicePackUninstall$ is full.
But there was more than enough disk space on my fresh installation of Windows XP on from a bootable USB stick.
There is a workaround that was originally only intended for iMac Users who switch to the dark side
But it works pretty well for Lenovo Ideapads (and mybe some other Netbooks that run into this message).
Before you install Windows Service Pack 3 follow these steps then:
Step 1:
Press “Win”-Key + “R” (alternatively Start …

Linux, Programming »

[22 Jun 2009 | 2 Comments | ]

These steps are for ubuntu users. the paths may differ for other linux distributions but i think the steps are the same.
Be sure to have installed Ogre3D and code::blocks on ubuntu before you proceed. The ogre3d wiki is a good start if you search for installation how-to’s.
Step 1:
Open Code::Blocks and create an ogre3D project with the wizard.
Step2:
After creation right click the project in your workspace and choose the “Project Build Options“.
Go to the  “Linker Settings” tab and change the libOIS and libOgre paths according to my screenshot:

Step 3:
Goto the “Search …

Programming »

[31 Mar 2009 | No Comment | ]

I use http://www.box.net as my online storrage and backup solution. The service is very easy to use and very well developed. You can upload files and share them with people you invite – all within your browser.
And best of all: The basic account is free and gives you 1GB of storrage space.
But what most people don’t know, box.net offers a WebDAV service. You can easily integrate the Service into your file explorer. This is easy on linux but bothered me for a few days on Windows Vista.
And guess what: Without a …

Linux, Programming »

[22 Nov 2008 | 2 Comments | ]

Yes, it is possible and it’s not that hard as you may think:
sudo apt-get remove cabextract
sudo apt-get install cabextract
./ies4linux
try running this command that actually worked for me:
./ies4linux –no-gui

Programming, Videos »

[22 Aug 2008 | No Comment | ]

Super cool viszualisation done with processing.
Processing is a visualization all-in-one solution build on top of java. It’s very easy to learn and is intended to demonstrate basic programming concepts to people who usually don’t code (Designer, Musicians, …).
You can learn more about the creator of the video here:
http://www.flight404.com/blog/?p=111
Learn more about processing at http://processing.org/

Solar, with lyrics. from flight404 on Vimeo.