15,181 Topics

Member Avatar for
Member Avatar for mahela007

Hi.. I would like to know how to create a variable while the program is being executed. Here's what should happen. The program asks for an input from the user and then creates a variable who's name is the value of the input and then assign's a value to it. …

Member Avatar for The_Kernel
0
256
Member Avatar for computerfreak97

Can anyone give me an example on how to use fft to see weather there is a certain frequency above a certain amplitude in the microphones current sample(s).

Member Avatar for Gribouillis
0
96
Member Avatar for awa

Hi, I want to make a python program which allows to read data from a file starting from a line with a certain keyword, skipping 4 lines, beginning to write the contents to an output file and stopping after n lines. I tried so far an input with the re.search() …

Member Avatar for awa
0
148
Member Avatar for lllllIllIlllI

Hi guys, I have been programming in python for just a bit over 2 years now. Being quite apt at it i was wondering, what can you do to really extend yourself in python? We have a lovely thread in the Projects for Beginners, but in some ways i have …

Member Avatar for lllllIllIlllI
0
212
Member Avatar for AutoPython

I'm making a program that shuffles a specific code. Each letter and number has a specific variable represeting them such as code1, code2, code3 etc. So lets say 1 is sait to code1, 2 to code 2, 3 to code3 etc. So here's what I've done, I've put the all …

Member Avatar for AutoPython
0
112
Member Avatar for Stefano Mtangoo

Hi all, I want to implement print option on my program. For now I need to print ListCtrl. I'm doing google process and I posted here in case someone happens to know and is willing to help me, whether with code or advice. Appreciate

0
49
Member Avatar for Stefano Mtangoo

Implementing Save algorithm Postby Apostle on Fri Sep 04, 2009 4:48 pm Hello All, I have a project of allowing user to save guests in Guest Book. I use Python/wxPython/SQLite for that. I Have implement basic database operation as well as GUI. I can save to DB as well as …

0
70
Member Avatar for SoulMazer

Hi, I have written a simple chat server and a client that can connect to it. To make it more secure, I would like to add SSL to the connection process. How would I go about doing this? Thanks in advance.

Member Avatar for SoulMazer
0
152
Member Avatar for freeze131

I am trying to create a sudoku checker as my second project. Its not going well :D. So far i've got it to check for rows that are 9 digits in length - i'm not sure if that's correct.. [code]puzzle = [] row = raw_input() while row: puzzle.append(row) row = …

0
92
Member Avatar for computerfreak97

Can anyone help me. I am trying to create a audio frequency analyzer, that will look for specific frequencies in a wav file. TIA

Member Avatar for computerfreak97
0
47
Member Avatar for freeze131

I'm very new to python, as you will discover with my newb question, I am trying to create a project that prints out Ascii Banners EG _________ _________ _______ _______ _______ |\ /|\__ __/ \__ __/|\ /|( ____ \( ____ )( ____ \ | ) ( | ) ( ) …

Member Avatar for woooee
0
119
Member Avatar for jcmeyer

I want to copy a file to the clipboard. So if the user of my program goes into a directory or want to send the file attached in an email, they can just paste the file into the directory or email. I understand how to copy the file to another …

Member Avatar for jcmeyer
0
2K
Member Avatar for mahela007

How do I pass an instance of a class to the __init__ method of another class so that I can access it's variables? eg: [CODE] class my_class: variable=0 variabletwo=9 a=myclass()[/CODE] How do I access the "variable" field of "a" from another class? I could write something like a.variable but that …

Member Avatar for mahela007
0
140
Member Avatar for mahela007

I understand that python provides a value for self when methods are called on the instance of a class. However, I don't understand how self works when assigning value to a variable of instance. [CODE] class snake: def __init__(self,name): self.name=name#this is the bit I don't understand. How is self.name #interpreted …

Member Avatar for mahela007
0
124
Member Avatar for sgupta7

Hi All, I am trying to build an ISO for a python project on a Fedora environment. I want to make my iso secure by not including source file code in it. Is there any way to generate a rpm for my source code that do not contain any .py …

Member Avatar for Jackson William
0
53
Member Avatar for frank.zappa

Are there any Python modules that convert strings to binary? (like [url=http://www.nickciske.com/tools/binary.php]this[/url] site) I googled 'python ascii to binary' and I found binascii but I can't figure out how to use it, well I don't think it's what I'm looking for. My plan is to write a script that takes …

Member Avatar for Gribouillis
0
90
Member Avatar for EddieC

If you’re a Ruby or Python developer building AJAX applications, you’ve got to learn JavaScript. Even if you’re converting Ruby code to client-side JavaScript with a tool like [URL= http://www.scribd.com/doc/220397/RJShow-it-works] RJS[/URL], it can still be helpful to know the AJAX component for adding features and debugging. Now Microsoft is promoting …

Member Avatar for lkcl
0
339
Member Avatar for happygeek

Marc Andreessen may not have actually been knighted for his contributions towards making the web what it is today, but if he were British then I am sure Helen Mirren would have bestowed that honor upon him alongside Sir Tim Berners-Lee. Not that a lack of a knighthood is stopping …

Member Avatar for jay.smith
0
300
Member Avatar for sravan953

The user enters the full location of a file and the program determines whether the file is a sound file or an application and opens it after a user specified time. Example: Location: C:\Where ever\file.mp3 OR C:\Another Where Ever\prog.exe TIme(in mins): 10

Member Avatar for sravan953
0
281
Member Avatar for sravan953

A program which accepts a sentence from a user, and uses a [I]'for loop'[/I] and determines the longest word in the sentence entered.

0
519
Member Avatar for sravan953

A code snippet which accepts a word or a sentence from a user, and then sorts it, and displays the sorted list.

0
160
Member Avatar for sravan953

The user enters their first, middle and last names and the program prints their full name.

0
115
Member Avatar for leegeorg07

this is code that thanks to vegaseat helped me convert my programs into python30

0
178
Member Avatar for lllllIllIlllI

This is a simple program and all it does is fiddle with the registry and set the value of the desktop background to be the bmp file that you supply in the function. There are other things you can do with the windows registry, this is just one of the …

Member Avatar for shadwickman
0
248
Member Avatar for slate

A brute force method. Finds the FIRST and SHORTEST periodicity in the input list.

1
163
Member Avatar for Gribouillis

This snippet defines a cachedProperty decorator. A cached property differs from a property in that it's value is only computed the first time that the property is accessed and then stored in the object's dict for later use. If the object's attribute is explicitely deleted, it will be computed again …

0
486
Member Avatar for Gribouillis

This snippet defines a function [icode]patfilter(pattern, rule, sequence)[/icode] which implements filtering a sequence of strings according to various criteria. The output is either a subsequence of strings, or a sequence of match objects.

Member Avatar for Gribouillis
0
399
Member Avatar for Gribouillis

Many threads in daniweb's python forum deal with menu based programs which run in a terminal. This snippet defines a handy class, MenuCrawler, to help writing such programs. Subclassing from this base classes and adding methods corresponding to a given set of menus allows one to build the menu-based application. …

0
3K
Member Avatar for Gribouillis

This snippet defines a class which can group a collection of strings according to a given set of prefixes. Each string goes in the group of the longest prefix it contains.

0
739
Member Avatar for Gribouillis

This snippet allows your code to use the Mendeleiev's periodic table of elements. It defines a single function [icode]mendeleiev_table()[/icode] which returns the table as a python list of lists.

Member Avatar for Gribouillis
1
806

The End.