BPsite Forums

BPSITE => BPSITE Headquarters => Topic started by: Hornet on January 30, 2007, 12:31:15 PM



Title: The Captcha
Post by: Hornet on January 30, 2007, 12:31:15 PM

I've just finished a code-a-thon; the really hard stuff's all done now.  :D  (Hashes are a real pain to work with in any non-trivial manner, and this thing relies on loads of them.)

Remaining tasks:
Add an aesthetic interface;
Find, crop and add more pretty pictures (surprisingly tedious after a while);
Add some sort of IP banning (not that it's needed really, as they won't be trying to force it.  I could theoretically stop them with a well-placed game of noughts-and-crosses, but that's not the point);
Fiddle with Invision to integrate the scripts, and make sure that they can't be bypassed in any way.
Finally, give the lot to SS for approval and upload.

Just felt like letting you know.  :alien:


Title: The Captcha
Post by: SS on January 31, 2007, 12:58:33 AM
Good work! :D

So, can we expect it completed by 9am tomorrow and if not why not you lazy bastard! ;)


Title: The Captcha
Post by: Louise on January 31, 2007, 04:15:13 PM
Don't worry, he'll have it done.  :rolleyes:


*gets her special little smilie out that she keeps in reserve for just such occasions*

(http://forums.advancedmn.com/images/smilies/079.gif)


Title: The Captcha
Post by: Hornet on January 31, 2007, 08:19:24 PM

You can do the images, then.  If I never see another radish it'll be too soon.  :miffed:

And this is a public forum, try to keep it vanilla. :P


Title: The Captcha
Post by: SS on February 01, 2007, 12:20:28 AM
:blink:  :miffed:  


Title: The Captcha
Post by: Galmort on February 01, 2007, 04:08:21 AM
Quote
Good work! :D

So, can we expect it completed by 9am tomorrow and if not why not you lazy bastard! ;)
yea, that would be a first for this forum...nobody ever slacks around here, so shape up


Title: The Captcha
Post by: Hornet on February 01, 2007, 08:54:50 AM
Quote
:blink:  :miffed:

The user has to identify the two matching fruit/vegetables, remember?  Actually, I'm not sure if I did mention it, but I have now.

I've now found all of the needed images, and IP banning's done.  I've also done half of the bypass prevention stuff, so obviously the other half remains, and I need to finish cropping and categorising the images.  Then it's just a case of wrapping the lot in HTML, tying it with a bow of CSS, and delivering it to SS. :)


Title: The Captcha
Post by: mole on February 01, 2007, 11:26:10 AM
so theres none of those bloody word things? i hate those, forget spam bots i cant do them


Title: The Captcha
Post by: Hornet on February 01, 2007, 03:54:12 PM

Indeed. :)  Some OCR stuff can even read ones that humans can't.  Picture recognition is much harder, as there are no set points of reference.  Although as said, as they won't be specifically trying to break it, as long as there's something in the way it'll thwart them.  I'm making it bulletproof just for the heck of it.


Title: The Captcha
Post by: Rug on February 21, 2007, 02:35:26 AM
Mind finishing it? =p.


Title: The Captcha
Post by: Hornet on February 21, 2007, 03:16:28 AM

Fef.  I'm working on a paid site at the moment, which is sucking up most of my 'spare' time.  But I have about an hour before I collapse, so why not.


Title: The Captcha
Post by: Hornet on February 22, 2007, 06:40:22 PM

There we go - the images are _finally_ done.  I'll put them into The Array later on, which'll mean an unhealthy amount of numbingly repetitive typing.  :crazy:

I've made something of a U-turn with the hashing; it slows things down too much when The Array has a decent number of images in it.  So that's a load of coding wasted, although I did deduce a rather useful timesaver to make debugging anything with hashes a lot easier in future.

Should be finished tonight or tomorrow morning, unless something combusts.  :cool:


Title: The Captcha
Post by: smi256 on February 22, 2007, 10:22:10 PM
/me is in anticipation
This sounds really cool.  Remember though, one of my favorite things to do when repetitive typing comes into play, is to write a script to write it for me.  
/me is a lazy punk  :)

 :sheep:
/me goes back to his coding HW
stupid converting Java in C assignments  <_<  


Title: The Captcha
Post by: Hornet on February 23, 2007, 12:00:07 AM

Heh.  I remember writing a Word Macro ages ago to change the extension of all of the files in a directory.  As VBA has useless file support I used sendkeys to do the job, sending things like alt+tab, tab & F2.  You could sit down and actually watch the thing working, at a rate of about two files a second. :)

Sadly, it's not possible to shortcut this, as the images need to be put into a different part of the array depending on what they actually are.  Although... as the names are uniform now (...thanks to much, much typing. Grr...), it might actually be quicker to just strip the extension and number from the name to find the category, and print out something useful like TheArray[][$FoundCategory] = $Origfilename; - which'll save a fair while, hopefully.  Cheers. :)


Title: The Captcha
Post by: Hornet on February 28, 2007, 01:24:38 AM

For the curious, it's been finished for a few days now - SS and myself are battling with Invision's demented innards, and the oddness of Windows vs. Nix filesystems.  Hopefully it'll be working again before too long.  :cool:  


Title: The Captcha
Post by: mole on February 28, 2007, 03:10:39 AM
whats nix?


Title: The Captcha
Post by: Hornet on February 28, 2007, 03:59:47 AM

Abbreviation for Unix/Linux-type systems.


Title: The Captcha
Post by: SS on March 01, 2007, 12:02:07 AM
First time I've seen it without the star? :miffed:


Just because I'm feeling a bit pedantic tonight...
*nix generally means UNIX or any Unix-like operating system, primarily including the Linux variants and BSD family.



And here's a pretty picture:

(http://upload.wikimedia.org/wikipedia/en/thumb/0/0e/Unix.svg/655px-Unix.svg.png)


Title: The Captcha
Post by: Hornet on March 01, 2007, 01:37:42 AM

I'm in the habit of omitting the asterisk lately - it's speech after all, not a regexp.

And it's all finished now, finally.  I'm not completely sure what was wrong in the end, particularly as a couple of issues were due to SS's (obviously well-meant) edits.

Anyone who wants a look can gawk at it here (http://old.bpsite.net/forums/index.php?act=Veg).  If you get too many wrong it'll say that you're banned, but as the ban will only prevent you from registering (which you already have) it won't do you any harm. ^_^


Title: The Captcha
Post by: mole on March 01, 2007, 01:49:45 AM
is this geek foreplay?


Title: The Captcha
Post by: Hornet on March 01, 2007, 02:14:25 AM

SS is the wrong gender, Mole - you need to work on your theory of mind. :P

And geek foreplay's completely different... for example, I teach my girlfriend programming concepts with such items as $Toys['Handcuffs']++; , often over IRC.


Title: The Captcha
Post by: SS on March 01, 2007, 02:16:28 AM
:blink: Are you saying I should get a sex change?


Title: The Captcha
Post by: Hornet on March 01, 2007, 02:24:21 AM

Er, no, just that you're not female, and that if Mole thinks that other males are suitable foreplay material for other males then he needs to develop his theory of mind (http://en.wikipedia.org/wiki/Theory_of_mind#General_category_usage).


Title: The Captcha
Post by: mole on March 01, 2007, 01:25:39 PM
Quote
In recent years, the phrase "theory of mind" has more commonly been used to refer to a specific cognitive capacity: the ability to understand that others have beliefs, desires and intentions that are different from one's own.

its known i seriously lack this ability


Title: The Captcha
Post by: SS on March 01, 2007, 10:07:39 PM
You mean to say I don't turn you on? :(


Title: The Captcha
Post by: Hornet on March 02, 2007, 05:34:02 AM

If you're referring to me, sorry, you're on the wrong team.   If referring to Mole, it has been noted that he didn't refute my previous insinuation. :P


Title: The Captcha
Post by: mole on March 02, 2007, 05:33:33 PM
i was tired and couldnt quite finish tying gender to geeks so just ignored it


Title: The Captcha
Post by: Louise on March 03, 2007, 02:23:59 PM
I was considering taking a pop at mole with a species joke, but can't think of one at the moment, and shouldn't be victimising the bloke anyway, so will just wave at everyone instead.

:)