Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Dec 5th, 2007, 3:34 PM   #11
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,826
Rep Power: 5 Sane will become famous soon enough
Re: I'm a Beginner

Yes. Learning how to program is hard work. Whoever told you otherwise was just as misinformed. >_>
Sane is online now   Reply With Quote
Old Dec 6th, 2007, 2:47 PM   #12
Chuckiferd
Programmer
 
Join Date: Nov 2007
Posts: 64
Rep Power: 1 Chuckiferd is on a distinguished road
Re: I'm a Beginner

I know its hard work I was just exadurating. (how do you spell that?)
__________________
There are 10 kinds of people in this world, those who can read binary and those who can't.
Chuckiferd is offline   Reply With Quote
Old Dec 6th, 2007, 3:37 PM   #13
lectricpharaoh
Caffeinated Neural Net
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Dry west coast of Canada
Posts: 1,005
Rep Power: 5 lectricpharaoh will become famous soon enough
Re: I'm a Beginner

Quote:
Originally Posted by Chuckiferd
I know its hard work I was just exadurating. (how do you spell that?)
"Exaggerating".
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Dec 6th, 2007, 4:13 PM   #14
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,826
Rep Power: 5 Sane will become famous soon enough
Re: I'm a Beginner

w = 'exadurating'

exec''.join((chr(ord(l)-i%6)for i,l in enumerate('''inrrvy vtopnb3=svnnu]+&Iie"|sz ngdr%'&u*C'%y.*Gtrsgfxqy!Usiqlff*-`x/gqhxwjvk,,.evg+.]gqu$} jp#ywlmke63bvkohdoqgqiw(*0rtjn))kxyp;12hncukrrfrz0fsr/ctr{xe0).{..sgdh-)/uspnt))>uB'-3,_21^0vtqiu**B,,2+`_5]''')))

Cheers.

Last edited by Sane; Dec 6th, 2007 at 4:42 PM.
Sane is online now   Reply With Quote
Old Dec 7th, 2007, 10:21 AM   #15
Chuckiferd
Programmer
 
Join Date: Nov 2007
Posts: 64
Rep Power: 1 Chuckiferd is on a distinguished road
Re: I'm a Beginner

Quote:
Originally Posted by Sane View Post
w = 'exadurating'

exec''.join((chr(ord(l)-i%6)for i,l in enumerate('''inrrvy vtopnb3=svnnu]+&Iie"|sz ngdr%'&u*C'%y.*Gtrsgfxqy!Usiqlff*-`x/gqhxwjvk,,.evg+.]gqu$} jp#ywlmke63bvkohdoqgqiw(*0rtjn))kxyp;12hncukrrfrz0fsr/ctr{xe0).{..sgdh-)/uspnt))>uB'-3,_21^0vtqiu**B,,2+`_5]''')))

Cheers.
um does that actually mean something?? please tell me no.
__________________
There are 10 kinds of people in this world, those who can read binary and those who can't.
Chuckiferd is offline   Reply With Quote
Old Dec 7th, 2007, 10:51 AM   #16
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,826
Rep Power: 5 Sane will become famous soon enough
Re: I'm a Beginner

Run it.
Sane is online now   Reply With Quote
Old Dec 9th, 2007, 7:37 PM   #17
Chuckiferd
Programmer
 
Join Date: Nov 2007
Posts: 64
Rep Power: 1 Chuckiferd is on a distinguished road
Re: I'm a Beginner

Thats Python!!! (Chuckiferd faints)

I thought Python was a command-script only language?

Ok I am really a beginner, I can reconize the v=exadurating and that is it
__________________
There are 10 kinds of people in this world, those who can read binary and those who can't.
Chuckiferd is offline   Reply With Quote
Old Dec 9th, 2007, 9:10 PM   #18
MiKuS
Programmer
 
Join Date: Jun 2007
Posts: 99
Rep Power: 2 MiKuS is on a distinguished road
Re: I'm a Beginner

thats some obfuscated code, it's meant to be hard to read - near impossible to comprehend (unless you wrote it)
MiKuS is offline   Reply With Quote
Old Dec 9th, 2007, 9:10 PM   #19
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Posts: 1,826
Rep Power: 5 Sane will become famous soon enough
Re: I'm a Beginner

It's a spell checker. It checks whatever w equals. It's actually a joke though.

That script is an excercise in "obfuscation". A useless method of making your program impossibly difficult to read.

This is what the "real" program looks like, the unobfuscated version:
python Syntax (Toggle Plain Text)
  1. w = 'exadurating'
  2.  
  3. import urllib2
  4.  
  5. print [("Did you mean '%s'?"%x,'Correctly Spelled')[x.endswith('.dtd')] for x in urllib2.build_opener().open('http://dictionary.com/browse/'+w).read().split(';q=',1)[-1].split('">',1)][0]

Which is a further obfuscation of:
python Syntax (Toggle Plain Text)
  1. import urllib2
  2.  
  3. w = 'exadurating'
  4.  
  5. page = urllib2.build_opener().open('http://dictionary.com/browse/'+w).read()
  6.  
  7. correct = page.split(';q=',1)[-1].split('">',1)[0]
  8.  
  9. if correct.lower() != w.lower():
  10. print "Did you mean '%s'?"%(correct)
  11. else:
  12. print 'Correctly Spelled'

Anyways. That was just me having my fun. It is, and was, intended to be ridiculously ugly and horrible to understand, for my own entertainment. So please ignore me.
Sane is online now   Reply With Quote
Old Dec 10th, 2007, 1:54 PM   #20
Chuckiferd
Programmer
 
Join Date: Nov 2007
Posts: 64
Rep Power: 1 Chuckiferd is on a distinguished road
Re: I'm a Beginner

I know you were trying to overwelm me its just I wasntthat wasn't how you really wrote Python.
__________________
There are 10 kinds of people in this world, those who can read binary and those who can't.
Chuckiferd is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Beginner Problem proudnerd C++ 16 May 18th, 2006 6:48 PM
call of a beginner web_master HTML / XHTML / CSS 34 Dec 6th, 2005 12:08 AM
function help for a beginner melee28 C 6 Sep 5th, 2005 9:45 AM
what open source code is good to read for a beginner? linuxpimp20 Other Programming Languages 22 Aug 30th, 2005 3:01 PM
Beginner program problem (else if) Hadrurus Java 13 Aug 14th, 2005 7:07 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:26 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC