Posted tagged ‘india’

/dev/india – Post-India picture dump, Part 2

03/09/2011

Long-delayed part 2 of previous post coming up – most of these are already on Facebook and Google+, so you should have seen them already.

There’s been a ton of interesting stuff happening – our app is entering beta in the days to come, I’ve been to Paris, and now school and part-time work is starting again.

In other news, I’m refusing to concede to the current erratic blogging schedule, so there’s a new strategy to make posts more frequent – I have created empty posts and scheduled them to publish every two weeks using WordPress. This guarantees at the very least an update every 14 days, even if it might be short, but the goal is to write something – no matter how small.

Below is a short video of when we were driving to the High Street Phoenix shopping mall, featuring music by Alexander Brandon.

Gallery


/dev/india – Day 4 – Rikshaw madness

17/06/2011

Chicken and mutton biriyani!

Met Hermine for the first time in the hotel lobby on the way to work! She seemed very nice and had a quirky personality. 🙂

Also met all the workers at the office. They were all very friendly. Didn’t snap a picture but promise to post a group photo later!

After a productive day, we planned on going to mine and Hermines hotel with Oskari for some dinner and TV watching. (America’s Got Talent has started again!)

Unfortunately faith had other plans for us. India doesn’t use addresses in the same extent we do in Europe, and instead people explain where to go by major landmarks, intersections and names of larger streets. Since none of us speak Hindi, and the rikshaw drivers generally don’t speak English, it’s always a challenge to get back to the hotel. (From the hotel, the portier helps us get a cab.)

The rikshaw accidentally drove us to Goregaon station, and we had no idea how to gesture our ways back to the hotel, so we just got out and found ourselves lost in the night. After checking the GPS, we slowly made our way to the hotel on foot. It was about 8PM and pitch-black. The streets at night didn’t feel very welcoming, and it was kind of an unnerving experience for me.

The “boss stage” of the walk as Oskari put it, was crossing the street to reach the hotel. There are no pedestrian crossings around the hotel and the traffic on the four-lane highway felt almost as dense as the evening heat. After some hesitant flinches we ran over the street and found us at the hotel, home at last.

Once at the hotel, we ordered Biriyani, which I thought was a bit bland. (Think I was expecting a bit much from rice and meat.)

/dev/india – Day 2 – The Long Journey Pt. II, or Everything is so new…

15/06/2011

We got to the hotel where I am staying at about 6AM, and I took a nice nap deep into the afternoon hours. Oskari came by and picked me up to go downtown for errands and showing me a bit of Mumbai. It was raining heavily most of the way and we got into a huge traffic jam. Luckily we had an air-conditioned taxi so it wasn’t all bad.


Road tolls are a common occurence.


Quick shot from the taxi.

Went to the local McDonalds, and it was quite a surprise. I knew that people do not traditionally eat beef in India, but it was interesting to see that I did not recognize a single burger on the menu.

For my first visit, I tried the Maharaja Mac, a Big Mac chicken equivalent. (But with a much cooler name!)


Hail to the king, baby!

After the mall me and Oskari went to the area where the offices are located, and stopped by Oskaris apartment where he showed me his awesomely massive tie collection!

In the evening, we went to get drinks at a local club with Shrenik, Oskaris right hand in India. Shrenik is a man of great ambitions, and we passionately discussed the finer details of our project, our lives and India in general.

The Brass Monkey club was impressive to say the least, with luxurious interior, stage lighting and extravagant drinks on the menu – it was a stark contrast to the rest of the India I had seen so far. Along the major highway we passed on the way, people were sleeping on the pavement, with nothing but improvised tents to give shelter.

There was just something surreal about seeing wealthy families in silk shirts and fine dresses as you thought about what it looked like just outside the walls of the establishment.


The club had a smokers lounge, right inside a huge shopping mall!


Classy interior inside the “Smoking den”.

As for drinking, I tried the local Kingfisher brand of beer, which was really good, with a deep yeasty aftertaste.

After having a sufficient (or slightly above that) amount of alcohol, I managed to rikshaw my way to the hotel and it was time to sleep again.

Photos

Experimenting with alternative CAPTCHA designs and a brief history of the modern day CAPTCHA

29/05/2009

50739Examples of simple CAPTCHA designs

What is a CAPTCHA?
If you have ever registered yourself on any site (mail, social networking etc) there’s a good chance you’ve seen a CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart). It is a simple test to prove your humanity to the site you are visiting. In this post I will be discussing CAPTCHAs in general, and experimenting with some new designs that might further thwart spammers.

Why is it needed?
The problem stems from how HTML forms work – they’re very simple to fill out and submit. Using a specially coded software, a spammer could  create thousands of email account in a matter of seconds, these could be used for sending email spam. (Because the email sending page is essentially another HTML form.) Spamming guestbooks is also a popular SEO technique to drive up a particular sites PageRank with both Google and other search engines, which employ similar mechanisms. (As a side note, good practice is to use the nofollow attribute for all outbound links if you’re ever coding a guestbook.)

CAPTCHA systems were invented to stop spammers. A CAPTCHA is usually a generated image that shows some sort of distorted text, which the user can read and input properly. A lot of work go into crafting CAPTCHAs that are simple for the user to read and understand, but difficult for OCR software to comprehend properly. This is usually done by adding distortion of some sort. But as OCR software improves and some people actually write custom code that target specific CAPTCHA systems, more obfuscation is needed, and so unreadable examples as shown in the image below are not uncommon.

badcaptcha4An excellent example of a horrible CAPTCHA

Therefore I applaud alternative designs. There has been a few ones including identification of cats and dogs, although these are also flawed because of their limited databases, which are subject to brute force attacks.
Here’s another one I found while researching this post that I quite enjoyed:

goodcaptcha1An excellent example of an excellent CAPTCHA

This simple substitution CAPTCHA is good because it is unbreakable by standard OCR and requires a special algorithm. This involves someone programming it, which involves manpower, which involves money, which is a rare commodity – therefore, unless this kind of CAPTCHA is run on a high-profile site it would be too much hassle breaking it, and so this kind of alternative implementations works well for smaller sites.

My experiments
I know that I’ll be needing to use a CAPTCHA for some of the projects I am currently working on, and so I sat down a few days ago and started brainstorming. Some of these CAPTCHA variations probably already exist, others are a bit more exotic. Feel free to implement and use any of these. If you do, I’d love an email on how you are using them and what improvements you have made.

– Counting upwards


123SEC_Option1
This is a pretty simple idea that differs from the vast majority because the letters are jumbled – every letter has a corresponding number. You type the word by starting from one (1) and counting upward, in this case the word is SECRET, which we see if we move the groups by numerical order:

SECRET
———-
123456

This sort of CAPTCHA should work pretty well on even high-profile pages, especially if you apply some distortion to the background, because it provides two points of errors – not only do the letters have to be identified correctly, so do the numbers. This one probably requires a small explanation on how to solve it on the page where it is used.

– Follow the path

Pentagon_Option1
This is one of the more exotic ones, and it builds upon the idea of following the letters around the shape in the direction of the arrow, in this case we start from H and wrap around the shape to make out HELLO. There is some Lorem Ipsum text inside the shape to further fool OCR. A full implementation should also randomize where the arrow points and its location from all possible letters. Distortion could be put on the background to make letter identification harder. This almost certainly requires an explanation on how to solve it on the site where it is used.

– The hierarchy
Triangle_Option1
Last one wasn’t exotic enough for you? Meet the hierarchy. The basic idea is that letters are stacked on the edges of an arbitrarily large pyramid. The example shows one with four letters on each side, but it can be of any size. Inside the pyramid is an arrow twisting upwards – now follow its path and pick up the letters on the way to spell out TEST. A full implementation should randomize the path of the arrow, and perhaps even use other shapes (squares, circles) although just switching out the letters should work well for low-profile site use. If you use this to authenticate your comment form and don’t feature some sort of explanation on how to use it you probably won’t get a lot of comments…

Questions?
If you have trouble understanding how any of the examples work (I know my explanations are usually clumsy at best) go ahead and throw me a comment or an e-mail. You can find my address on the Fair Use page.

But it’s still possible to beat them!
How you might ask? Indian slave labor. The article linked is a fascinating insight into the world of the professional CAPTCHA solvers, who make as little as 0.001 dollars per solved CAPTCHA. A truly fascinating read about how cheap manpower can be used to circulate more spam around the planet.

See you next time!
This article has talked about CAPTCHA in general and some experimental approaches to the problem, next time we’ll discuss various ways of implementing a CAPTCHA using PHP. Stay tuned!