Search found 62 matches

Return to advanced search

Re: Account reset?? or what might have happend?

I think that happened in 2009, I know I lost a few about a year ago and had to redo them.
by mojo1948
on Thu Aug 18, 2011 8:54 pm
 
Forum: General
Topic: Account reset?? or what might have happend?
Comments: 9
Views: 10630

Re: Getting back into programming... Sort of

I guess what I was getting at is that http.getreply() can return more values than 200 for pages that do exist. For example if I run your script on my routers login page and print http.getreply() I get this. (401, 'Authorization Required', <httplib.HTTPMessage instance at 0x2875072c>) I'm p...
by mojo1948
on Fri Jul 15, 2011 10:21 pm
 
Forum: Interpreted Languages
Topic: Getting back into programming... Sort of
Comments: 20
Views: 43964

Re: Getting back into programming... Sort of

You also have basic authentication to deal with, IIRC it returns a 401 error code when you try to access the page and you will need to trap the error and handle it. Here is a snippet from something a found a while back when I was messing with this. req = urllib2.Request(theurl) try: handle =...
by mojo1948
on Thu Jul 14, 2011 9:34 pm
 
Forum: Interpreted Languages
Topic: Getting back into programming... Sort of
Comments: 20
Views: 43964

Re: Suggestions please

I've been messing with Haskell for awhile, it's worth a look.
http://www.haskell.org/haskellwiki/Haskell
by mojo1948
on Mon Jul 04, 2011 10:27 pm
 
Forum: Programming
Topic: Suggestions please
Comments: 5
Views: 7944

Re: Hi Guys.

You can view your stats by clicking on your name on the main page after you log in. Clicking your name in the forum works too.
by mojo1948
on Tue Jun 14, 2011 1:09 pm
 
Forum: NZone
Topic: Hi Guys.
Comments: 3
Views: 4904

Re: Python in Basic 6 (spoiler)

It's referred to as "list comprehension", it's part of Pythons implementation of functional style programming.
http://docs.python.org/howto/functional.html
by mojo1948
on Mon Jun 13, 2011 9:58 am
 
Forum: Interpreted Languages
Topic: Python in Basic 6 (spoiler)
Comments: 3
Views: 8914

Re: Python in Basic 6 (spoiler)

It's possible but defining pw is easier.
Code: Select all
encrypt = '5e9i=57m'
print ''.join([chr(x-y) for x,y in zip(map(ord,encrypt), range(0,len(encrypt)))])
by mojo1948
on Sun Jun 12, 2011 6:44 pm
 
Forum: Interpreted Languages
Topic: Python in Basic 6 (spoiler)
Comments: 3
Views: 8914

Re: me and my great ideas

If all you're getting is the underscore, it sounds like your partition is not marked as active, I think mint uses parted to set partition flags check out the man pages.
by mojo1948
on Wed May 04, 2011 9:49 pm
 
Forum: NZone
Topic: me and my great ideas
Comments: 5
Views: 5780

Re: Learning Perl

You need to define @list as my @list in your above_average routine. All variables in Perl are global variables unless defined locally. It is usually referred to as scope.
by mojo1948
on Fri Apr 08, 2011 12:03 pm
 
Forum: Interpreted Languages
Topic: Learning Perl
Comments: 6
Views: 10808
Next

Return to advanced search