My BLOG on DIY, Hacking and notes

This includes mostly useful information for myself and my BLOG about various free time projects. Which are currently mostly hardware and electronics hacks .

Besides this I'm fully occupied with programming the final parts of MPL, extending my software generation tools such as the precompiler. And finishing my PhD thesis text which is about Creating the integrated programming environment Multi Precision Lab using source code generation tools.

First time visitors, people with comments or questions are welcome to sign my guestbook . Some of my projects in my blog hit the masses like www.hackaday.com featuring binary clock and makezine featuring my Wii-remote hack resulting in 10000 new visitors on the day they appeared in my blog. Cya and have a nice day .

My first custom ruby web application

Written by Walter on 24/07/2008 19:28:39.

Well I just nearly finished my first RoR Web 2.0 app!

Check it out :
dyndns.sitweb.eu

It's got an authentication system (actually 2), a mailer/notifier, blog, cms and is also featuring a custom c++ application I wrote to do the updating of the ip address from the client pc's.

I still need to tweak some stuff though, especially implement some caching (http://www.railsenvy.com/2007/2/28/rails-caching-tutorial) because I'm not satisfied with the performance as it is now.

Oh yeah before I forget, this is for the remote view of camera installments and I do still need to hack one more thing into this to get it fully operational but basically all the hard work is done now . Time to sleep, because I want to install this in Oostende (a 2 hour drive and I need to be there before noon ... aaah days of stress here ).


Anyway, that's all folks, happy hacking!


svn tutorial

Written by walter on 15/06/2008 13:56:57.

STEP 1: Create a repository directory with svnadmin command (give full path here!):
svnadmin create /Users/wschrep/svn_repository


STEP 2: here we take a clean copy of the sources (or any directory with your project, again full path here).
And also give full path to repository and the dir in repository you want your project to reside in + a message with -m

svn import /Users/wschrep/cppWork/test/xmlparser file:///Users/wschrep/svn_repository/xmlparser -m "xmlparser import"

STEP 3: we do a checkout as follows:
svn co file:///Users/wschrep/svn_repository/xmlparser

STEP 4:
Now cd into this checkout and you can do svn commit, svn rm , svn add , etc.
If you want to fire up your favourite editor when doing add or commit's use following shell variable:
export SVN_EDITOR = joe
or
export EDITOR = joe

alternatively you can add a -m option. Example svn add bla.cpp -m "added bla"

Advanced:
Committing a project to a remote repository :

local mac we have xmlparser.
on remote nerdhero server we did

svnadmin create /home/walle/svn_repository

Now on my macbook i do this to put my sources on remote repository on nerdhero:
svn import /Users/wschrep/cppWork/test/xmlparser svn+ssh://walle@nerdhero.org/home/walle/svn_repository/xmlparser -m "xmlparser initial import"

This uploads the files to the remote repository (notice svn+ssh://walle@nerdhero.org instead of file:// )

Then checkout from remote to local is following:
svn checkout svn+ssh://walle@nerdhero.org/home/walle/svn_repository/xmlparser

SHARING REMOTE REPOSITORY:
We have a public svn in /var/svn where all users can access the files (otherwise you cannot share it).
Now we want to import from local macbook into nerdhero server at /var/svn/

this is wacko but works, on nerdhero i did
sudo svnadmin create /var/svn/xmlparser (because no write perms for walle in /var/svn)
Then on local machine i can already import it, but only after chmod'ing -R walle.walle in /var/svn/xmlparser dir (made by the svnadmin create).

Now the import
svn import /Users/wschrep/cppWork/test/xmlparser svn+ssh://walle@nerdhero.org/var/svn/xmlparser -m "xmlparser initial import"

Now the checkout:
svn checkout svn+ssh://walle@nerdhero.org/var/svn/xmlparser

Now we can add a file and commit it (but others can only read the repository, not modify it). We dont want to run the svn server deamon now so we work around it by chmodding the dir:
chmod -R 777 db

But this is not correct, now everyone on nerdhero can do a commit etc.

Correct way is using svnserver daemon which has permissions to write here (user independent and with seperate login/pass possibly).



Camera installment with remote view.

Written by Walter on 14/04/2008 18:11:34.

This is my latest camera installment with night vision being
used on all 16 cameras and viewed remotely with a web based application. I shrinked the image to 40% of normal resolution and blurred the url.
On dvr itself you get roughly 8 times more pixels per camera at 25fps per camera and no image distortion even though some cables exceed 70meters (up to 400meters is possible with current ftp cabling being used). A total of 480fps is being captured to a 500Gig HD

All cameras can be viewed real time in a browser (clicking a camera gives higher resolution single camera view):

daytime screenshot:


daytime screenshot:


night screenshot: