Archive for the ‘awesome’ Category

GOCR for Windows From Linux

My last post was a major screw up. I admit it. Maybe I was high, but whatever I posted some shit, someone called me out on it. Ah well, big deal. I post some good stuff I reckon. Totally for free. If you can’t read through some of my bullshit to get to it then I will clean you up the proper info for a small fee of $600. But I guess you’re all just going to have to read my shit along with the good stuff. Am I retarded? Hell yeah. But I don’t give a fuck.

Anyway instead of rebooting your pc everytime you want to compile a program for windows it’s actually possible to compile straight from Linux with wine. This includes ImageMagick programs. Now I’m not sure but I think some other folks have tutorials on similar stuff but it’s a pain to get imagemagick included as well. Here’s how you do it.

Go download dev-cpp we’ll use this as our IDE

Now go get the latest MingW. You’ll know you’ve got the right one because in dev-cpp/bin/ you’ll find a load of same named files as in MinGW/bin/.

Copy the files from MinGW/bin/ over the dev-cpp/bin/ directory. This is basically an update of MinGW. Oh yeah copy over the libraries (lib/) too, I’m pretty sure you need those. Something about gettimeofday() not being present in older versions of mingw.

Download the ImageMagick for MinGW install. It’s listed under the unix binaries but runs on windows. No idea why. Anyway this will install a directory with some libraries in it. Libraries are files that have an .a extension like libMagick.a

Ok right if you’ve done all that you can go ahead and run Dev-Cpp. Like this (Make sure you’ve installed it using wine:

user[~]$ cd .wine/drive_c/Dev-Cpp/

user[Dev-Cpp]$ wine devcpp.exe

and make a commandline C++ project and set the include directory to C:\ImageMagick…\include\ and add these three libraries in this order:

C:/ImageMagick-6.3.7/lib/libMagick++.a
C:/ImageMagick-6.3.7/lib/libWand.a
C:/ImageMagick-6.3.7/lib/libMagick.a

Change Include DirectoryAdd Libraries

That will now compile perfectly but when it comes to linking it will complain that there is a billion functions missing. That’s because they didn’t include all the other libraries you need. Which is what this tutorial is really about. Basically I went in search of them all and now I’ve got them I’ll zip them up for everyone. The other files you need are (you can probably just paste this into your project properties):

C:/Dev-Cpp/otherlib/libfreetype.a
C:/Dev-Cpp/otherlib/libjbig.a
C:/Dev-Cpp/otherlib/libjpeg.a
C:/Dev-Cpp/otherlib/liblcms.dll.a
C:/Dev-Cpp/otherlib/libpng.a
C:/Dev-Cpp/otherlib/libtiff.a
C:/Dev-Cpp/otherlib/libtiffxx.a
C:/Dev-Cpp/otherlib/libz.a
C:/Dev-Cpp/lib/libgdi32.a

Incidentally Dev-Cpp does come with libgdi32.a, which is handy. :D

Here’s the libraries. Enjoy.

Other Libraries You Need

All my programs so far in c++ will compile to a windows .exe from linux using this method. I find it handy. Especially as windows refuses to install because linux is on my first hard disk.

Monday, August 4th, 2008

Money.co.uk Keeping up?

You all been keeping up with money.co.uk? They have had a couple of bits of linkbait out there that I’ve seen. Maybe you’ve seen more. I wonder if it worked?

Money search

Click the picture to see a search on google.co.uk for money. They’re not first. I think they’re like 5th. But who knows what else they have to turn loose upon the search engines?

Friday, July 25th, 2008

Would you like to be showered with quality links?

If you would… Here’s the plan.

Make some ridiculously shit web page that does nothing except it looks cool. Maybe you answer a test and get some shit answer out. Make sure whatever it is people want to include some kind of pointless widget on their blog. Whilst you’re there squeeze a sneaky link back to your real site in it.

Then you’ll be wanting to buy or bully your way into a review on a top site. Let’s say… John Chow… That sounds cool.

Oh no wait. It’s just been done. 

Tuesday, July 15th, 2008

Record search information

Wouldn’t it be cool if you knew all the searches they typed into google even though it’s not on your domain. With Internet Explorer 7 now you can! I haven’t checked this vulnerability out properly so I’m not quite sure of the details but it looks pretty severe.

I think you may need to have your page still open for this to work, so navigating away *may* destroy the recording, but if they click open a new window then it should work I think. The scammers will be having a field day anyway.

Click Here unless you use Internet Explorer in which case…

Click here for Disney and ignorance

Thursday, July 3rd, 2008

Computer Recognized Photographs

On my wild and wacky adventures on the Internet, this is pretty amazing.

http://wang.ist.psu.edu/cgi-bin/zwang/alip_result1.cgi?test=1

It’s a computer program categorizing images based on statistical probabilities. Now where’s the download source code button? Darn those people!

Saturday, June 28th, 2008