elxsy where humanity wins the fight against machines

5Mar/125

ImHuman Api 2.0

I have just published the new, more robust, secure and easier to use ImHuman Api 2.0. Here are the bullet point facts.

  • RESTful api.
  • NO more flickr, image unavailable bullshit. All humanizers are settled in house from now on.
  • I have specified the ouput as javascript for you to test and debug from your browser easily.
  • No user, key or authentication needed (at least to use the api)
  • No error Api, Api will make the decisions now and restful structure used in order to prevent curious attacks
  • Flexible language support

So how do you utilize the new api? Just click http://api2.elxsy.com/getTest/3/en/ and that is it. This will fetch you a test struct, containing your word in english, your answer hash and 3 humanizers. Here is the output for one random test.

ImHuman API 2.0

ImHuman API 2.0

New API Rules in brief:

  • minimum 3, maximum 9 humanizers. If you provide smaller than 3 will be defaulted to 3. If you provide more than 9, you will see 404
  • API will decide on how many humanizers should be selected depending on the given count.
  • currently en/fr/br/ru/pl supported but will add more upon request thanks to google translate

Important bits;

  • I will update the API documentation and remove the unnecessary pages soonish
  • I will implement the new humanizer selection and voting system into the public API page as well instead of elxsy
  • The old API v1.0 will be functional till 1 month time. I will take down the API at mid April 2012. Please upgrade, doesn't require too much effort on your side.
  • V1 is api.elxsy.com V2 is api2.elxsy.com, when v1 is depreceated v2 will become api as default
  • V1 api served over 4 million humanizer test requests by the way and still serving :)
24Jul/096

ImHuman in Russian

Thanks to fdzkuz, ImHuman API and its wordpress plugin speaks Russian now. WordPress plugin owners who wants to use the new language for their tags, here are the steps for version 0.0.9, latest stable one.

Open the Editor and select Imhuman.php to edit.

Go to Line 149, Where you will see

$lang = array('en'=>'ENGLISH','fr'=>'FRENCH');

Change that line into

$lang = array('en'=>'ENGLISH','fr'=>'FRENCH','br'=>'Brazilian Portuguese','ru'=>'RUSSIAN');

Save your file. Go to your plugin settings and update your language choice.

9Jul/09113

Installing ImageMagick on Windows and Using with PHP – Imagick

As most of your know ImageMagick is like the photoshop on your console demand. Best with their explanation.

ImageMagick® is a software suite to create, edit, and compose bitmap images. It can read, convert and write images in a variety of formats (over 100) including DPX, EXR, GIF, JPEG, JPEG-2000, PDF, PhotoCD, PNG, Postscript, SVG, and TIFF. Use ImageMagick to translate, flip, mirror, rotate, scale, shear and transform images, adjust image colors, apply various special effects, or draw text, lines, polygons, ellipses and Bézier curves.

It is very powerful and supports all platforms with tons of different languages and implementations. Because my hosting solutions did not suppot it (many of them dont do as well) I always used awesome GD library to process images on my projects. Well now my hosting does support and I am going to use it so I needed to install it to my development environment which is windows. I am going to install and use Imagick also because using IM from native PHP is much more faster than using it from console via exec.

Well first of all ImageMagick on windows with PHP is a really pain in the ass, if you have the commitment and time go for it otherwise use it from console. Here are the steps and todo's to install for PHP 5.2.x, ( I dont know if it works with PHP 5.3.x or below, you will need to test for yourself. I am a happy camper for now ).

UPDATE

Just to make things clear, all the PHP dll files (librarires) are 32 bit, so if your system is 64 bit and you will still need to download and operate 32 bit ImageMagick, Apache, etc.

5Jul/090

ImHuman in Brazilian Portuguese

Thanks to Lucas Dillmann, ImHuman API and its wordpress plugin speaks Brazilian Portuguese now. WordPress plugin owners who wants to use the new language for their tags, here are the steps for version 0.0.9, latest stable one.

Open the Editor and select Imhuman.php to edit.

Go to Line 149, Where you will see

$lang = array('en'=>'ENGLISH','fr'=>'FRENCH');

Change that line into

$lang = array('en'=>'ENGLISH','fr'=>'FRENCH','br'=>'Brazilian Portuguese');

Save your file. Go to your plugin settings and update your language choice.

26Jun/0919

ImHuman WordPress Plugin 0.0.9 Test Run

IPhone Output

IPhone Output

IPhone Output

IPhone Output

Today with the feedback about empty forms and skipping the check for registered users, I have compiled a brand new version of the plugin as 0.0.9. This version is currently running under elxsy in order to test now. Please drop a comment to test it.  As usual functions with Mobile browsers and WPtouch seemlesly.

Features:

  • Complete AJAX comment posting and error reporting without any hack or modification to your current WP
  • Choice to skip the security check for registered members.
  • So Post contents will not be lost even wordpress fails to retrive them from cookies
  • Secure new set of humanizers for each fail as it should be in a secure form
  • Timeout support
  • Eliminates multiple posting
25Jun/090

ImHuman multilanguage and new wordpress plugin

While trying to overcome problems at SuperNo's blog which were mainly due to older PHP version, I had the chance to put the project into second gear thanks to SuperNo. ImHuman now speaks french :) ! all you need to do is to add

lang=LANG_CODE

Parameters in to your request string where LANG_CODE can be en or fr for now. If you would like to see it in your own language contact me.

I am going to update the repository in couple minutes. New wordpress plugin features are:

  • Requires PHP5, reduced in size.
  • works with AJAX, Jquery mandatory.
  • No more manual imhuman_render() insertion anymore
  • Supports Multilanguage (English and French only for now)
  • No more cache or back key problems if you guess the answer wrong and go back in your browser
  • You can customize your instruction message in your own language or format also
8Jun/095

How to identify and ban bots-spiders-crawlers

This is a fast step tutorial. I will describe how to identify and get rid of web spiders/crawlers. Whats is a bot and what it does, how it functions etc all can be found here So you are trouble with robots, good or bad does not matter. They all leech away your bandwith and resources and just maybe do something for you in return. Even though they are not harvasting or spammer bots. This problem goes beyond bandwidth when you have like 100,000 dynamic pages under one server.  So how do we seperate them as good or bad?

28May/0957

ImHuman – a Humanized “Are you human?” checker

History

The internet we know is nearly 10 years old. Before that, it was dark and static ages, where you put up an HTML website via editors and FTPs and wait for people to email you or mainly phone you about your website.

With the new interactive web pages and database connections, we human beings were finally able to post our weird, funny, whatever comes to our mind ideas in to the world wide web via guest books, forums, comments and many many more you know of. But like every new innovation we made, we brought up problems with that also. We started to flood the entry forms in terms of fun, hacking, attacking, advertisement or digital harassment. And like this is not enough we have created applications to do the harassment for us faster and easier (attack launchers, flooder, spam bots). But hey, it was all 56K modem speed right, what was the harm in 1 spam per minute in once a week when couple geeks connects to the internet from SF to check some new chicks. PCs and their power were limited also, taking 4 minutes to power up and 2 minutes to load the internet browser. Well then we got cable modems, T1 lines, ADSL lines, fiber optics and satellite connections all for to download porn faster of course :) Abuse to the top! With faster doubled, quadrant CPUs, RAMS bigger than your foot and with an internet population of 70% world population! Yeah baby now we are talking!