ov3rcl0ck 25 Junior Poster

There aren't any modern graphic drivers that don't support OpenGL, try reinstalling your graphics driver, all openGL is built into your driver.

ov3rcl0ck 25 Junior Poster

Encryption does not have to be so complex and mathematical and what not. I can easily conceive that this would be considered a small encryption by many standards. This is not meant to stop white hat's by no means whatsoever, this is just a rather simple idea to keep the average person to read a personal message. No offense taken :). As for Vegaseats message, I won't need to decrypt the message if I have the encryption code. Another thing I would like to add, is that encryption is not necessarily defined as to how complex it is, but as to what it does.

Encryption complexity does mater, because your encryption can be solved with a bruteforce in under 5 min, what i could do is create a for loop that loops up to whatever number and inputs that into your algo, have it do a regex to find anything that could be english, once thats found i have the message, cracked with a simple 15 line scripts. Its almost pointless to make it, but i won't deny that it is a OK project to start your adventure down the road of cryptography. Personally my first experience with cryptography was making a MD5 hash cracker, I'd recommend that you try something like that.

ov3rcl0ck 25 Junior Poster

Since you don't know the specific error class, simply use ...

for i in range(1, 638):
    try:
        temp=start+str(i)
        permlist.append(str(url.urlopen(temp).readlines()[88]))
        textlist.append(str(url.urlopen(temp).readlines()[77]))
    except: # catch any exception and continue the for loop
        print "Error at index %d."%i
        pass

My bad i used the wrong exception, vegaseat is right.

ov3rcl0ck 25 Junior Poster

Well problem solve then?

ov3rcl0ck 25 Junior Poster

True raw_input does give you a string but converting is is extremely simple, also you can make it return a int/float if you want by doing this

d=int(raw_input("Input numer: "))

or for floats

d=float(raw_input("Input number: "))

but keep in mind that if the user inputs anything other than a intergers a exception with be raised, so be sure to use exeptions if you use this method.

ov3rcl0ck 25 Junior Poster

first off try using the raw_input function rather than the input function, second off pythion 3.x may never become standard, they may just skip it or drag 2.x out for a long long time, thing is no one like 3.x because they made very little changes and those changes aren't really worth porting all your old code to, so skipping back to 2.x would be the smartest choice in my opinion.

ov3rcl0ck 25 Junior Poster

Its too early to start using python 3.0+, everyone is using 2.6, 3.0+ isn't compatible with previous version because they changed the code syntax and the way some builtin functions work. I'd say go for 2.6 or anything v2 basically, its still supported and about 99.9% of people use 2.x instead on 3.x

ov3rcl0ck 25 Junior Poster

The way i see most fit is having it take input(intergers only) until the user enters a blank line, like so:

numbers=[]
print "Enter your numbers and enter a blank line when done \n\n"
while True:
   n=raw_input('#')
   if n==None:
      break
   numbers.append()

also it's best to use the raw_input function than to use the regular input function.

ov3rcl0ck 25 Junior Poster

Problem with microsoft is they aren't good programmers but they are good at marketing. Thing with linux is its programmed well but obviously marketed bad, but thats not an issue because Linux needs no funding and it spreads through the word of its users. Linux isn't gonna die by the hand of microsoft. Only way i see linux going down is if it does become popular and then all the less experienced users demanding more and more user friendly interfaces, thus removing some of Linux's flexiblity and basically ruining every thing that was once the reason we gave up Windows, but hey we got BSD and other Unix OS's to fall back on. The truth is Microsoft trying to take Linux down and trying to keep users away from it is actually doing more good to the Linux than it does harm.

ov3rcl0ck 25 Junior Poster

I have looked more into pstgresql since my last post and want to refine my questions. From what I understand limiting who can connect to the database server is very easy with postgresql. You can use usernames and passwords along with allowing only certain ip addresses.

So as long as you are connected to the office intranet, know the name of the host of the database server, know a username and password and you have an allowed ip address, you should be able to get access to the server...no matter where you are? If the database server is hosted on either a computer or server on the private office intranet, do you need to be on the private office intranet to access it, or just simply connected to the internet somewhere?

could basically set it up either way, you can host it on your LAN or you can host it on the internet, if you host it on your LAN its only going to be available to your local network in your office, if you host it online then it can be accessed anywhere, but of course you can restrict access based on IP you could probably just use IPtables to filter IP's.

ov3rcl0ck 25 Junior Poster

Random generation IS very predictable, not to mention a brute force could probably crack that in about 5min. Cryptography is really intense, and your not really using an algo, more like a formula. Not too mention most encryption methods use randomly generated keys, and TrueCrypt for example uses your mouse movement to generate a random key(which is a good it). So your idea, its not gonna work, if you want to try it i can garuntee that if you give me the source code and something that you encrypted with it i can reverse engineer and crack the encryption in about 2 min.

ov3rcl0ck 25 Junior Poster

I prefer Postgre because I don't like many aspects of MySQL and its preformance. If needed you can use serialization+threading to acheive this, or make your own database using one of pythons many databasing libraries.

ov3rcl0ck 25 Junior Poster

Yeah you'll need to use exceptions, but if you want the script to continue after the error you're going to have to "pass" it, try this:

for i in range(1, 638):
    try:
        temp=start+str(i)
        permlist.append(str(url.urlopen(temp).readlines()[88]))        textlist.append(str(url.urlopen(temp).readlines()[77]))
    except Error, err:
        print "Index Error: %d at %d" % (err, i)
        pass

this will not only print the error and the location of the error but will also pass to keep the loop going.