Forum

Posts

RECENTLY INDEXED PROGRAMMING SOLUTIONS OF Python Programming


python documentation needs!!!  

I'm a french man who had forty years old.I'm learning c,c++,vb,html+css and for myself python and ruby but I need some help for functions of these 2 last languages. I hope learn java and other languages only for 2009 and attack 3d-mapping.thank you for... Continue Reading
Views : 36
Friday 28th of December 2012

Communicating through the network  

I'm hoping to write a Python program that sends some data across a WAN. If at all possible, I would like it to communicate with someone else across the WAN running the same program. For example, both people put in a keyword, run the program, and then somehow, the... Continue Reading
Views : 16
Friday 28th of December 2012

help---bit-field conversion in Python  

I want to convert strings to bit-fields.Also,convert them to binary and then use. Need help with this..help me .. Continue Reading
Views : 16
Friday 28th of December 2012

Method to check if something is a directory or a file  

Is there a Python method to check whether or not something is a directory? I hope that using os.chdir(file or directory name) and catching the error isn't the best way to do this. Is there something that returns the type of the argument (example, "directory" or... Continue Reading
Views : 63
Friday 28th of December 2012

help with typecasting  

I'm taking a few command line arguments, one of which is a string representing the data type that specifies the data type to store into an array, this data type variable is conveniently called 'valuetype'. I'm getting a syntax error on the bold line... Continue Reading
Views : 18
Friday 28th of December 2012

Looking for opinions on structure for a group of encryption functions  

I'm coding a group of functions that performs various historical encryption functions on a plaintext, and I'm wondering what structure would be best. The couple of options I'm tossing around are:a) making a class plaintext that contains these... Continue Reading
Views : 29
Friday 28th of December 2012

Decrypt the password  

Hi All,Good morning,I'm doing a small application using python and mysql. I have encrypted the password using md5. but it is one way algorithm. It means it only encrypts the password but while we are retriving the password it should check the... Continue Reading
Views : 40
Friday 28th of December 2012

moved code from mac to windows having issues now  

(Toggle Plain Text) from psychopy import visual, core, misc, eventimport numpy #for maths on arraysfrom... Continue Reading
Views : 20
Friday 28th of December 2012

A Complicated One...  

import reX=input('Input the DNA base pairs:')Y= 'CG[GA]'l=len(Y)y=2b=0H=0result=re.search(Y, X)while(result.group(0)==Y): G=X.find(Y) X=X[(l+G):] H=H+G+l*b print('A match was found... Continue Reading
Views : 30
Friday 28th of December 2012

Help running Keylogger  

Please, can someone help me runn a keylogger? I have few of them one of the bests ones. I just need someone to help me to script it, to script keylogger to any installation file.Anyone can help me? Thanks. Continue Reading
Views : 25
Friday 28th of December 2012

black hole program  

what (besides lots of time) would it take to make a program for the theories of the black hole? mainly i want to make a program that shows what would happen to an object that would go into a black hole. and would i b able to do this with pygame? Continue Reading
Views : 24
Friday 28th of December 2012

Cows and Bulls Game - Totally Lost  

Hi Everyone, Sorry if this has a totally obvious solution. I am trying to write a simple cows and bulls game; the program generates a secret number, the player has to guess it, the program then compares the guess to the secret number and tells the player... Continue Reading
Views : 35
Friday 28th of December 2012

How to generate all permutations of a character list  

How would I go about generating all the possible permutations of a list of characters? For example, if I pass the script "abcd" and a length of 3, it would output aaa, bbb, ccc, ddd, abc, abd, bcd, aabc, abbc, etc. Permutations might not be the right phrase to use... Continue Reading
Views : 22
Friday 28th of December 2012

slicing a list for a for statement  

I'm reading the official python tutorial. I don't understand this: (Toggle Plain Text) >>> for x in... Continue Reading
Views : 33
Friday 28th of December 2012

Does this qualify as a shredding algorithm  

(Toggle Plain Text) outFile = file(fileName, "w")fileSize = os.path.getsize(fileName)passes = 7overwrite = ""for i... Continue Reading
Views : 19
Friday 28th of December 2012

Please help me!!!  

Want help? Read the rules and FAQs. In particular, note the injunction to use code tags to preserve formatting. Python, after all, requires it. Continue Reading
Views : 25
Friday 28th of December 2012

beginner teething problems!  

Hi all, I've just began my journey into python (& programming) and i must say it's very satisfying to learn. However! I've hit a few snags.I am using python 3.1 on vista. i cannot seem to give the print command and tell it what to print on the same... Continue Reading
Views : 43
Friday 28th of December 2012

First Python Game  

Nice game, but try to use functions on version 2, update it, it can be the best python game , I would suggest putting the choices, etc. in a text file to simplify your code. Continue Reading
Views : 24
Friday 28th of December 2012

where are the program that are written in python  

python is not a new programming language ,it has been there for the last .... 15+ years or so ? right ?now , by having a look at this page http://wiki.python.org/moin/Applications i... Continue Reading
Views : 31
Friday 28th of December 2012

draggable buttons  

How do I make buttons that can be dragged across a frame. Continue Reading
Views : 29
Friday 28th of December 2012

*Have "SOURCE CODE" Need SKILLED! Coder* (very simple help needed)  

Hello,I have included the "SOURCE CODE" for a MW2 cheat that uses a white dot on the closest person for the aimbot when sniping(looks VERY legit). The problem is that the white dot is only in one spot, and shooting in the same spot every time is kinda... Continue Reading
Views : 9
Friday 28th of December 2012

Programming Basics, where do i start  

Hello all, I am new to programming, (new may be an understatement), and I have an idea. The problem is I have no clue where to start! I want to design a GUI that ties to a windows driver and multiple viewers. Basically a GUI that will browse all files on a... Continue Reading
Views : 44
Friday 28th of December 2012

help going crazy tryinh to get sqlite to print to wx.widget  

I need help and I know the answer is simple but I very new and cant figure it outIm using sqlite3 and python2.6I devlopped a database that gathers information ( Continue Reading
Views : 39
Friday 28th of December 2012

Program reading backwards  

How can I write this kind of program in any language? (python)So you have one input, and if you write "dog" the program would write back "god"?I have no idea how to tackle this problem..thanks for your advice Continue Reading
Views : 16
Friday 28th of December 2012

Encryption/Decryption Program  

Alright, I'll keep playing around with it. But the order of the function parameters doesn't matter than?i.e. I can use decodeline (line, keystring) or decodeline (keystring, line)? Continue Reading
Views : 25
Friday 28th of December 2012

Data structure to test intervals  

Hi,This is a very general data structure related problem, but I'm facing it in my special video player program (PyQt + Phonon). The video is logically divided into 500-1000 time windows and for each window there's some extra information associated. When... Continue Reading
Views : 12
Friday 28th of December 2012

Problem Installing PyGame  

Hey guys I am using Python 2.7 on Mac OS X 10.6 and found News pygame - python game development and downloaded pygame-1.9.2pre-py2.6-macosx10.6.mpkg.zip. Now I ran the .zip and unarchived it and installed on... Continue Reading
Views : 45
Friday 28th of December 2012

Unknown invalid syntax  

I am a noob.I sent the command "python helloworld.py" into the shell, and it highlights helloworld and says it is invalid syntax.I began using A Byte of Python. I have windows 7 professional x86 installed.I am using the idle gui. I... Continue Reading
Views : 15
Friday 28th of December 2012

python ide help  

need advice what is the best python ide for a windows platform Continue Reading
Views : 21
Friday 28th of December 2012

I save code as .py but it opens in gedit  

I've seen .py code that opens as a program, but when I save my code as a .py extension it still opens up in gedit. I can't get the code to launch/execute on its own. It still has the .py extension after saving it to my python file, but always opens as a text. Continue Reading
Views : 46
Friday 28th of December 2012