14,945 Topics

Member Avatar for
Member Avatar for mbassa

hello I am new in python.I would like to know how to play a sine vector using the sound card through python . I would really appreciate your help thanks

Member Avatar for stymiee
0
69
Member Avatar for mbassa

hello I am new in python.Can anyone show me away to play sine wave through sound card usind python? please give me some help thanks

Member Avatar for Lardmeister
0
72
Member Avatar for Lardmeister

Right now I have a mixed list of different types of elements: [code=python]mixed_list = [1, 0.5, 0, 3, 'a', 'z'] print max(mixed_list) # shows z, but would like it to be 3 [/code]How can I find the maximum numeric element of the list?

Member Avatar for Lardmeister
0
89
Member Avatar for Lardmeister
Member Avatar for Lardmeister
0
112
Member Avatar for fonzali

hi guys , I am interested in writing a code to do the soduko ( or sudoku ) , I found this code on the internet which is supposed to be the shortest soduko solver but it is so short that I can not undrestand it . can any one …

Member Avatar for fonzali
0
1K
Member Avatar for CelestialDog

Hi all, hopefully someone may be able to help me out here. Is there anyway I can take a sequence of numbers and add them together? For example say i have this sequence [1,0,2], what i want to do is basically add each number so in this case the final …

Member Avatar for ffao
0
132
Member Avatar for CelestialDog

I'm trying to write a class containing some code i want to reuse in other projects, but I just cant seem to get it right. I'm hoping someone out there can offer a helping hand. Here is the original code: [code] def Numero(name): 'A function which converts a string to …

Member Avatar for CelestialDog
0
212
Member Avatar for php111

Hello gang, I was actually really my old topic on this forum. I heard that Python and Ruby would be for me to start with. Does that sound right instead of jumping right in to C and C++? What is required in Python? Is there free tutorials on that language? …

Member Avatar for vegaseat
0
176
Member Avatar for kaze139

Hi can anyone help me with using the interp2d class in scipy? thx

0
56
Member Avatar for galbi

Hi friends: First of all, thanks for your time. I was wondering if it´s possible to develop (using Python, of course) some kind of application which can interact whith an internet page to which I'am a registered user (it´s not a matter of hacking) and to work whith the results …

Member Avatar for N317V
0
105
Member Avatar for bergy_nj

hi.. can anybody help me to have more efficient code.. i tried to do some simple regex to split an URL i tried to do this on my own many times but i couldnt seem to get it right i havent master regex yet..(im learning - but the learning curve …

Member Avatar for bergy_nj
0
113
Member Avatar for xiyann

hi there, i'm trying to connect a python server to vb.net using xmlrpc. i've read all the xmlrpc.net materials in [url]http://www.xml-rpc.net/[/url] but i dun reli understand how xmlrpc.net works (i'm a noob in programming :) ) i'm given this xmlrpc server code in python and i wish to connect it …

0
53
Member Avatar for bergy_nj

Hi.. im currently writing a program in python to parse a log file.. this log file is expected to be very big - (70MB - 250MB ) in size.. in the file there's this whole bunch lines of internet activity.. i supposed to parse each line and extract some information.. …

Member Avatar for jrcagle
0
338
Member Avatar for CelestialDog

Hi there i'm hoping someone can help me with this little problem. I'm pretty sure its a scope issue but since I'm new to python I cant say for sure. Basically i'm trying to get the counter2 variables final result. Below is the function as it stands right now, I've …

Member Avatar for CelestialDog
0
102
Member Avatar for shadwickman

I was wondering if it is possible in Python to send a job to the user's printer. I have a string, and I wanted to be able to print it out on a piece of paper. I have wxPython installed and imported into the app if that makes any sort …

Member Avatar for shadwickman
0
173
Member Avatar for BillBrown

A friend of mine has suggested that I look into Turbogears when I get around to creating the Web site that I'm thinking about. Does anyone have any experience with this application or just thoughts, whether they be good or bad? Thanks, Bill

Member Avatar for rredburn
0
86
Member Avatar for shadwickman

I was making a simple application with a GUI built with wxPython. I have created and layed out the main menu, and when the user clicks a button, it is *supposed* to make a different set of controls appear, getting rid of/hiding the main menu. I was wondering how to …

Member Avatar for shadwickman
0
104
Member Avatar for defience

When my bot joins a room it will respond to certain words that are typed. An example would be that if someone typed "hello" the bot would reply "Hello <user>! How are you doing?" My problem is that I can't seem to get the bot to reply to NOTICE or …

0
86
Member Avatar for bergy_nj

hi i've been trying to parse the argument using getopt i need to have it to be able to handle argv[0] logfile (i ment to take the following argument after argv and put it in variable - like listed in the usage part) but i coudnt get it to work …

Member Avatar for BearofNH
0
213
Member Avatar for irotsenmar

Can someone assist me on creating this program? Thank you. create a program that will allow you to calculate the following: 1) The average gas mileage of a car 2) The range of a given car 3) The cost of a given trip 1) Create a Car.py file that will …

Member Avatar for jrcagle
0
108
Member Avatar for drexlus

I am new to Python and, in fact, I have limited programming experience in general. I am attempting to create a web form that our HR employees can use to add new employees into Active Directory and to create a mailbox for that user. AD is on a WIN2k server …

Member Avatar for katharnakh
0
1K
Member Avatar for newharvar

I want to change my desktop by writing a python program,can somebody help me ?thanks so much!

Member Avatar for newharvar
0
139
Member Avatar for maximuss

hi all, i have an assignment due tonight and i have been on this assignment for the past 4 days and my brain totaly shut down, below is what i need to do, it's namegame i enter my name on an html input form and the namegame.py will write my …

0
56
Member Avatar for StrikerX11
Member Avatar for biganimal

I all ready completed and ran a program that works fine in Python but now I'm looking to convert that code to C++ in Eclipse. I thought I would be able to import this code than have some miracle conversion take place. Is this possible or does the whole code …

Member Avatar for vijayan121
0
5K
Member Avatar for flaerpen

Hi there! How do I check if stdin is empty? This is how I write in the terminal to call my program: [CODE] >> cat file.txt | python script.py[/CODE] /flaerpen

Member Avatar for vegaseat
0
7K
Member Avatar for wandie

I got this error when i was running a tuturial on how to view data using a grid in wx. I downloaded the modules for wx. I wandering if anyone can help me. this is the error i got [code] Traceback (most recent call last): File "C:\Update\data.py", line 7, in …

Member Avatar for vegaseat
0
251
Member Avatar for flaerpen

Hi, I'm trying to use the function paste() to paste a image into another image but I can't get it work! Is it the right function to use or is there any other function that's better? Here's my very simple code: [code=python]from PIL import Image import ImageDraw im = Image.new("RGB", …

Member Avatar for flaerpen
0
11K
Member Avatar for missionpilot

Hey, I am writing a program that needs to share a cookie between internet explorer and the program I'm writing. Here's the scenario. A user logs into his account through IE, and then starts the program I'm writing. The program will retrieve the cookie from the IE cache and then …

Member Avatar for missionpilot
0
94
Member Avatar for katharnakh

Hi Bumsfeld, thanks for sharing, I haven't come across this before [quote=bumsfeld;398646] [code=python]# works on Windows or Linux, also Vista import os os.system(['clear','cls'][os.name == 'nt']) [/code][/quote] Can please tell me how is the following code is working. I mean, [code=Python] >>> ['clear','cls'] [True] 'cls' >>> ['clear','cls'] [False] 'clear' >>> ['a','b']['some_string' …

Member Avatar for StrikerX11
0
355

The End.