About the art of building metaphoric solutions to real world problems.
16 Nov
Some people know that vertigo is a problem I have to deal with. For me it’s less of a problem in planes or steel constructions – but old brick made buildings above ten levels scare the hell out of me.
I spent this january in Dubai and was quite happy, that our room was only at the 5th level. But today i found this video on youtube that even makes me feel bad by simply looking at it.
It’s taken by some guy on top of the Burj Dubai at 818 meters and the tower is wobbling…
13 Nov
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 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 whatever purpose...</td></tr></table></td></tr>
<tr><td>I'm a row</td></tr>
</tbody>
</table>
Here’s the the JavaScript.
It’s a one liner, but i wrapped it for better readability
//Nice trick to get zebra tables with subtables
$("tbody.Alternate > tr").filter(function (index) {
return index%4==0;
}).addClass("Dark");
Finaly the CSS.
.Dark {background-color: green;}
13 Nov
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.
1 Nov
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 universe multiverse deb-src ftp://ftp.stratoserver.net/pub/linux/ubuntu hardy-security main restricted universe multiverse
Then don’t forget to run
sudo apt-get update sudo apt-get upgrade
1 Nov
You may have mentioned that my blog loads way faster now.
I moved my WordPress installation to the new server.
The migration was smoth. The only thing I didn’t find covered in the tutorials was that I needed to reactivate the plugins in the administration. After that everything was ok.
I love wordpress.
20 Oct
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) {
var resp = transport.responseJSON;
this.myVar = resp.myVar; //Here you can access your variables in your json file.
};
That’s it.
I hope they will change this in future versions of WebOS.
9 Oct
Your personal DNA sequencing co-processor is not far away from now. IBM taking big leaps to make it happen.
This technology will totally reshape the landscape of medicine and how drugs will be prescribed in the near future.
6 Aug
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. );
27 Jun
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 -> run) and enter “regedit” and press enter. This will bring up your registry editor. Be aware that this is the moment where you can do serious damage to your windows software installation. So don’t mess around if you don’t know what you do.
Step 2:
Navigate to
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Setup
Step 3:
In the right pane, click right mouse button and “New String” or (“Neue Zeichenkette” for Germans).
Name it “BootDir” and give it the value “C:\”
Step 4:
Close regedit and retry installing Service pack 3.
It should work now.
Please drop me a comment if I could help you.
22 Jun
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 directories” tab and in the “compiler” subtab add the path to the ExampleApplication.h file.
in my case it’s
/home/myuser/Development/lib/ogre/Samples/Common/include
You should be able to compile your project now.
)
Step 4:
Now we need to make sure, that the the run command also works on our small project.
Therefore we need to change the execution path of our project’s binary.
This can be done by right-clicking the project in the workspace again but this time select the “Properties…” option.
Switch to the “Build targets” tab and alter the parameter for “Execution output dir:” to your ogre3d installations sample folder.
In my case this is
/home/myuser/Development/lib/ogre/Samples/Common/bin
Now you can run the project.
That’s it. Happy coding.
