Highway 20

OpenCV Configuration

by John-Nicholas on Jul.27, 2010, under Daily Updates

Anyone who is involved in the world of computer vision has surely heard of OpenCV. I enjoy using this software (however complex it sometimes gets). However I recentely reinstalled OpenCV 2.1 and suddenly some of my projects began to break giving me errors while linking. I had forgot to setup the directories compleately in Visual Studio 2010…

For anyone else who uses OpenCV with Visual Studio 2010 there is a great guide from lovely people at Willow Garage.

http://opencv.willowgarage.com/wiki/VisualC%2B%2B_VS2010

Leave a Comment more...

Need to drink more muscle milk

by John-Nicholas on Apr.18, 2010, under Daily Updates

Leave a Comment more...

Kitten + mouse + magnets + mad scientist

by John-Nicholas on Apr.18, 2010, under Daily Updates

2 Comments more...

popular audio clips

by John-Nicholas on Apr.18, 2010, under Daily Updates

I really enjoyed this collection of short audio clips from popular media:

http://instantsfun.es/

2 Comments more...

Photoshop cs5 content aware just isn’t good enough.

by John-Nicholas on Apr.15, 2010, under Daily Updates

2 Comments more...

Cat with iPad

by John-Nicholas on Apr.14, 2010, under Daily Updates

the cat really got a hang of it quick.

1 Comment more...

Mediawiki password

by John-Nicholas on Apr.13, 2010, under Daily Updates

Hey everyone. So I was working on a project that involved injecting user accounts into a mediawiki database. The purpose of this was that an outside application was syncing user accounts between mediawiki, wordpress, and a couple other systems. Anyway, when it came to write the code to add the accounts to the mediawiki database I ran into trouble. I am not sure if anyone of you have ever looked at a mediawiki user table. It is unusually complicated. For some reason the userpass is stored into a blob filed instead of a typical varchar? Why, I have no idea… Also they have stupid user token stuff. Anyway, this post is to help some other poor soul who one day has to manual add accounts in a mediawiki user table. Here is the biggest issue with it…. the userpass is not just hashed with some common encryption scheme like MD5 or SHA1. So I went googling for what their encryption scheme was.. Yeah that was most useless 20 minutes of my life… There is no information anywhere out there about the mediawiki userpass encryption.. So I had to go forging through the jungle of mediawiki vines with only a rusted dull envelope opener to find the code myself. Anyway I survived and I came out with the encryption scheme. So here it is, in php code.

$p = md5( $password);
$enc = md5( “{$userid}-{$p}” );

So as you can see it is doubly hashed, and what is even more annoying it is seeded against the users own userid. This is annoying but very manageable.

One last note to save frustration by anyone who will be doing this themselves. Mediawiki only stores usernames with a capital first letter.. So if your manually adding usernames or from a script make sure that you run them through ucfirst() function so that when you try to login it will actually find you username ;)

Leave a Comment more...

Poison Apple

by John-Nicholas on Apr.13, 2010, under Daily Updates

Loved seeing this, hope you enjoy it also!

1 Comment more...

RC Car Boat Plane

by John-Nicholas on Apr.11, 2010, under Daily Updates

Ok this is probably the coolest toy (besides my iPad) that i have seen for a while..

If anyone know where I can get one of these things please let me know!!

hydrofoam

UPDATE: found them online!

http://www.trendtimes.com/hydrofoam.html

1 Comment more...

Amazing iPhone app

by John-Nicholas on Apr.10, 2010, under Daily Updates

For anyone who has a jailbroken iPhone / iTouch.. I found this app to turn unused space of my iPhone into a recognizable usb by my computer.. It is amazing. It was so robust that I was able to format it as fat 32.. then reformat it to be bootable and actually used it to install a hackintosh install on my laptop.. from my iphone! kinda ironic actually.. but it all worked, i was amazed. Its not the fastest but that is just due to the usb and the specs of iphone.. anyway, check it out.

http://www.iclarified.com/entry/comments.php?enid=5437#commentsanchor

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...