Permanent Programming 2

Put your programming skills to the test in these challenges.

Re: Permanent Programming 2

Post by Spyrall2 on Thu Jan 21, 2010 2:02 pm
([msg=33686]see Re: Permanent Programming 2[/msg])

Just for the fun of it I made a program that does the opposite : D (converts text -> morse -> image) ^^
This is my message to the HTS-community : D

(btw - to read 'EVERYTHING' you'll also need to implement morse for ; , . ' - and " " (a space in morse code -> /)
Image

Spyral
Spyrall2
New User
New User
 
Posts: 14
Joined: Sun Jan 17, 2010 7:55 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by faazshift on Thu Jan 21, 2010 3:15 pm
([msg=33689]see Re: Permanent Programming 2[/msg])

Next you should make one with your credit card number and expiration date (j/k, of course).
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Spyrall2 on Thu Jan 21, 2010 3:24 pm
([msg=33690]see Re: Permanent Programming 2[/msg])

faazshift wrote:Next you should make one with your credit card number and expiration date (j/k, of course).

have you decoded it yet? : D
Spyrall2
New User
New User
 
Posts: 14
Joined: Sun Jan 17, 2010 7:55 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by faazshift on Thu Jan 21, 2010 3:35 pm
([msg=33691]see Re: Permanent Programming 2[/msg])

Spyrall2 wrote:have you decoded it yet? : D

Of course. I had already made the program to do that.
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Spyrall2 on Thu Jan 21, 2010 3:37 pm
([msg=33692]see Re: Permanent Programming 2[/msg])

faazshift wrote:
Spyrall2 wrote:have you decoded it yet? : D

Of course. I had already made the program to do that.

but with symbols too ? ^^
Spyrall2
New User
New User
 
Posts: 14
Joined: Sun Jan 17, 2010 7:55 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by faazshift on Thu Jan 21, 2010 3:51 pm
([msg=33693]see Re: Permanent Programming 2[/msg])

Spyrall2 wrote:but with symbols too ? ^^

Of course. I think I mentioned it before, but my morse code decoder builds the entire tree, then follows the dots and dashes in the tree according to the ones in the string to figure out which nodes character to return. The only characters it returns blank for are unicode characters (since python doesn't support those being directly in the code).
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Draymire on Mon Feb 01, 2010 12:15 pm
([msg=34244]see Re: Permanent Programming 2[/msg])

Can someone have a look at my code for this challenge. It is written in python. It checks the picture for white pixels, changes it into morse code and then decodes that into text. It gives a weird jumble of letters and numbers but never seems to be right and i can't find where i coded it wrong. If you could look at the could let me know so that i could send it too you

Thanks
Baba Ram Dass "The quieter you become, the more you can hear"
User avatar
Draymire
Poster
Poster
 
Posts: 129
Joined: Sun Nov 22, 2009 12:01 am
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Defience on Mon Feb 01, 2010 3:10 pm
([msg=34249]see Re: Permanent Programming 2[/msg])

User avatar
Defience
Addict
Addict
 
Posts: 1281
Joined: Thu Jun 12, 2008 3:16 pm
Blog: View Blog (0)


Re: Permanent Programming 2

Post by faazshift on Mon Feb 01, 2010 3:59 pm
([msg=34250]see Re: Permanent Programming 2[/msg])

@Draymire: I don't know if Defience has helped you yet, but your problem might be an off-by-one issue with the first letter. I had to set my counter to -1, instead of 0, when I first set it.
faazshift
Contributor
Contributor
 
Posts: 516
Joined: Wed Jun 03, 2009 3:55 pm
Location: Riverton, Utah
Blog: View Blog (0)


Re: Permanent Programming 2

Post by Draymire on Mon Feb 01, 2010 6:31 pm
([msg=34252]see Re: Permanent Programming 2[/msg])

I figure it would be a off by one error but i can't find it, going to keep looking but maybe defience will find it :)
Baba Ram Dass "The quieter you become, the more you can hear"
User avatar
Draymire
Poster
Poster
 
Posts: 129
Joined: Sun Nov 22, 2009 12:01 am
Blog: View Blog (0)


PreviousNext

Return to Programming

Who is online

Users browsing this forum: No registered users and 0 guests