Permanent Programming 2

Put your programming skills to the test in these challenges.

Re: Permanent Programming 2

Post by kl223 on Sun Sep 07, 2008 12:09 pm
([msg=11139]see Re: Permanent Programming 2[/msg])

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. ;) )
kl223
New User
New User
 
Posts: 5
Joined: Sat Sep 06, 2008 6:25 pm
Blog: View Blog (0)


Re: Permanent Programming 2

Post by iBrainiac on Mon Sep 08, 2008 11:08 am
([msg=11201]see Re: Permanent Programming 2[/msg])

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!
iBrainiac
New User
New User
 
Posts: 1
Joined: Mon Sep 08, 2008 11:01 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by leonidas_heaven on Sun Sep 14, 2008 6:24 am
([msg=11680]see Re: Permanent Programming 2[/msg])

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.
Challenges are not meant to be taken easily,rather they are meant to be taken Seriously
leonidas_heaven
Experienced User
Experienced User
 
Posts: 66
Joined: Sun Jun 01, 2008 5:20 am
Location: Uttarakhand,India
Blog: View Blog (0)


Re: Permanent Programming 2

Post by leonidas_heaven on Wed Sep 17, 2008 3:39 am
([msg=11895]see Re: Permanent Programming 2[/msg])

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).
Challenges are not meant to be taken easily,rather they are meant to be taken Seriously
leonidas_heaven
Experienced User
Experienced User
 
Posts: 66
Joined: Sun Jun 01, 2008 5:20 am
Location: Uttarakhand,India
Blog: View Blog (0)


Re: Permanent Programming 2

Post by old_red_boots on Wed Oct 01, 2008 6:22 am
([msg=12932]see Re: Permanent Programming 2[/msg])

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!
old_red_boots
New User
New User
 
Posts: 16
Joined: Tue Sep 23, 2008 4:49 am
Location: spain
Blog: View Blog (0)


Re: Permanent Programming 2

Post by dnb_den_bert on Sun Nov 02, 2008 6:56 am
([msg=14382]see Re: Permanent Programming 2[/msg])

Is it possible to do this mission in python?
If true :p:
couldt someone give me a small hint?

thx
dnb_den_bert
New User
New User
 
Posts: 1
Joined: Sun Nov 02, 2008 6:53 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Maven_ on Sun Nov 16, 2008 11:59 am
([msg=15098]see Re: Permanent Programming 2[/msg])

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.
Maven_
New User
New User
 
Posts: 5
Joined: Sat May 24, 2008 10:58 pm
Blog: View Blog (0)


Re: Permanent Programming 2

Post by sinelanguage on Wed Feb 11, 2009 4:06 am
([msg=17668]see Re: Permanent Programming 2[/msg])

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
sinelanguage
New User
New User
 
Posts: 1
Joined: Tue Feb 03, 2009 8:40 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by nneonneo on Wed Feb 18, 2009 4:57 pm
([msg=18188]see Re: Permanent Programming 2[/msg])

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.
nneonneo
New User
New User
 
Posts: 5
Joined: Fri Apr 25, 2008 11:01 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Defience on Thu Feb 19, 2009 9:56 am
([msg=18237]see Re: Permanent Programming 2[/msg])

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:
User avatar
Defience
Addict
Addict
 
Posts: 1265
Joined: Thu Jun 12, 2008 3:16 pm
Blog: View Blog (0)


PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests