Page 5 of 14

Re: Permanent Programming 2

PostPosted: Sun Sep 07, 2008 12:09 pm
by kl223
Tel69 wrote:I know you will laugh at me, but I'm going to try and do this in VB6.
It would be interesting to see if it CAN be done in VB6. :)


I completed this with a bash script (bash+curl+sed+imagemagick).
It took about 70 lines of code (most of it was web-login and morse decoding) AND there is no loop structure in it.
sed rulz :D

Cheers,
kl223
(p.s: i wonder how long I'll be able to go on with just bash. But it certainly is a useful tool. ;) )

Re: Permanent Programming 2

PostPosted: Mon Sep 08, 2008 11:08 am
by iBrainiac
Nikousek wrote:Could please any one check this ?

I am pretty sure that i have everything correctly :-/

Image

- .. -..- --. .. -..- .--- -. .-.. ...--

TIXGIXJNL3

could you please check with your programs ?

Your results are same to mine! Congratulations!

Re: Permanent Programming 2

PostPosted: Sun Sep 14, 2008 6:24 am
by leonidas_heaven
Hey can anyone tell me a hint or a small way how do i convert my Morse to the ASCII characters.

OK i got it and i also completed the mission.

Re: Permanent Programming 2

PostPosted: Wed Sep 17, 2008 3:39 am
by leonidas_heaven
For those who are struck at this mission..here are some easy step(showing what i did)..

:idea: Wrote a small code in PHP to calculate the Morse from the PNG image
:idea: Secondly convert the Morse by reading the array and storing the ASCII codes into another array.
:idea: Open a text file to write the each character of the array storing ASCII character (our encoded message).

From my method i have to manually save the image to the HDD.Run the program.Copy the password from the text file and pasting it as the answer & clicking submit.For this 15 seconds is the exact time..

Remember that if you clicked submit at (>= 3 seconds) than only you will get a "mission completed" message otherwise you may be .8 to .9 seconds late.(Assuming that your encoded message is correctly decoded).

Re: Permanent Programming 2

PostPosted: Wed Oct 01, 2008 6:22 am
by old_red_boots
Tel69 wrote:I know you will laugh at me, but I'm going to try and do this in VB6.
It would be interesting to see if it CAN be done in VB6. :)


lol i made this in vb6 it was easy and fun, in fact, i have made prog 1, 2, 11 in vb6, and working on 9,7 also in vb6

edit: about if it can be done in vb, i think all the prog challenges can be done in vb6 (it won't be the faster way; maybe you get a lot of overflow errors :mrgreen: , but if you persevere it it will do work), all you need is imagination!

Re: Permanent Programming 2

PostPosted: Sun Nov 02, 2008 6:56 am
by dnb_den_bert
Is it possible to do this mission in python?
If true :p:
couldt someone give me a small hint?

thx

Re: Permanent Programming 2

PostPosted: Sun Nov 16, 2008 11:59 am
by Maven_
dnb_den_bert wrote:Is it possible to do this mission in python? <br>If true :p:<br>couldt someone give me a small hint?<br><br>thx


Get PIL (Python image library) and pycurl. Download the image with pycurl and parse it with PIL.

If you have any specific questions you can pm me.

Re: Permanent Programming 2

PostPosted: Wed Feb 11, 2009 4:06 am
by sinelanguage
For those interested, this is quite possible to achieve using Javascript and Canvas' .drawImage and .getImageData methods.

After you have your script worked out, you can run it using Firebug, Greasemonkey, etc.

The part I found most frustrating (like plenty of others it seems) was getting what looked like a real answer, though being told it was incorrect.

I can assure you the pixels are zero indexed, though it was how I was determining the distance between pixels that was giving me the incorrect answer. Furthermore, it seems the answer can be either uppercase or lowercase.

... and for some recommended reading regarding OCR using javascript and canvas: http://ejohn.org/blog/ocr-and-neural-ne ... avascript/

note to mods: if this post is too revealing, please edit as you see fit

Re: Permanent Programming 2

PostPosted: Wed Feb 18, 2009 4:57 pm
by nneonneo
Maven_ wrote:
dnb_den_bert wrote:Is it possible to do this mission in python? <br>If true :p:<br>couldt someone give me a small hint?<br><br>thx


Get PIL (Python image library) and pycurl. Download the image with pycurl and parse it with PIL.

If you have any specific questions you can pm me.


urllib[2] is perfectly capable of handling file downloads, and it is built-in to Python.

Re: Permanent Programming 2

PostPosted: Thu Feb 19, 2009 9:56 am
by Defience
nneonneo wrote:
Maven_ wrote:
dnb_den_bert wrote:Is it possible to do this mission in python? <br>If true :p:<br>couldt someone give me a small hint?<br><br>thx


Get PIL (Python image library) and pycurl. Download the image with pycurl and parse it with PIL.

If you have any specific questions you can pm me.


urllib[2] is perfectly capable of handling file downloads, and it is built-in to Python.


^^ and this guy knows what he's talking about :ugeek: , not that Maven doesn't but nneonneo is my go-to Python guy :mrgreen: