15,181 Topics

Member Avatar for
Member Avatar for parijat24

hi , my problem isthat i have two file s with this format file 1 has two coloumns protein id geneid qqqq yyyy tttt pppp oooo llll now i have one other file as cluster file as cluster 1 : yyyy,pppp cluster 2 : llll, yyyy, . . . . …

0
54
Member Avatar for prashanth s j

Hi, I get a the following as output after executing a command remotely: for example; No of records Date Status 1 7/7/2010 Progress Total Number of records Processed so far: 1012 Currently active records: 1 Now evidently Python treats this out put as a string. Now my problem is how …

Member Avatar for Beat_Slayer
0
101
Member Avatar for sandeepxd

Can any one please tell me how to merge two python files. i have a SimpleHTTPServer.py file and a File transfer(uploading) droopy.py file. I want to combine these two. As i am a beginer to python i can't modify these two files i just want to mix these two files …

Member Avatar for griswolf
-3
6K
Member Avatar for modalgvr

Hello, I need help to write a Python code in order to from this input (a string, len (data) = 5, len (data[0])=63): ["['1426', '1095', '1094', '1093', '1092', '974', '869', '1572']\n", "['1495', '1305', '1264', '1227', '1215', '1142', '1141', '1115']\n", "['1001', '997', '927', '904', '871', '776', '712', '612']\n", "['567', '538', '429', …

Member Avatar for TrustyTony
0
176
Member Avatar for leiger

I am attempting to access an XML-RPC API method using a Java client. I'm fairly certain that the server is written in Python. The API is part of the wiki farm Wikidot.com API info: [url]http://www.wikidot.com/doc:api[/url] API method info: [url]http://www.wikidot.com/doc:api-methods[/url] Does anyone here know what the equivalent of this statement is …

Member Avatar for leiger
0
545
Member Avatar for blah32

Is there any built in functionality in python as to rename files smartly in windows. I am using os.rename to move files to a higher directory. The problem is, the directory I move the file to could have a file that has the same name. I want to do what …

Member Avatar for blah32
0
130
Member Avatar for Dan08

Hey everyone, I decided I didn't want to use Tkinter, so now I'm using wxPython, and I'm having some problems, such as getting values from a function to another. I know, it's a bit hard to understand, and I don't even know if this is possible. [CODE=python]import wx class Example(wx.Frame): …

Member Avatar for Dan08
0
91
Member Avatar for brandonhorst

Hey, I'm running into a small problem that should be simple for someone with more skills than I. I am looking to traverse Windows 7 Libraries using Python. Meaning I have the name of the Library or the path to the .library-ms file or whatever, and I want to get …

0
36
Member Avatar for TrustyTony

From python.org official website: [URL="http://python.org/download/releases/2.7/"]Python 2.7[/URL] [B][I]Python 2.7 was released on July 3rd, 2010[/I].[/B] Python 2.7 is scheduled to be the last major version in the 2.x series before it moves into an extended maintenance period. This release contains many of the features that were first released in Python 3.1. …

Member Avatar for TrustyTony
2
434
Member Avatar for turnerca902

Hi everyone, I have a fairly simple problem, but having not used python in awhile, I just can't seem to get things working. Basically, I have a text file with a number of comma separated fields (attached). What I want to do is split the string, and extract the "File" …

Member Avatar for turnerca902
0
449
Member Avatar for lewashby

I'M getting error below when I run the following program code. It's with the following function. [COLOR="Red"]fileD.write("%\n" % depot.get())[/COLOR] [COLOR="Red"]Exception in Tkinter callback Traceback (most recent call last): File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 1413, in __call__ return self.func(*args) File "/home/developer/Projects/Head First/Chapter 7/Head-Ex.py", line 7, in save_data fileD.write("%\n" % depot.get()) ValueError: unsupported format …

Member Avatar for TrustyTony
0
174
Member Avatar for Skyelher

I kinda use this: [CODE]while 1: [body] [/CODE] a lot... But I've also read that it's not a good idea to be doing so even if you put add some way to break from the loop within the body... Any alternatives, please?

Member Avatar for griswolf
0
145
Member Avatar for TrustyTony

My Python has started to imagine that square root of -1 is 1, so be careful with ** and unary -. [CODE]print (-1**0.5) ## ** binds stronger than unary minus! i=-1 print "Square root of %i is %f" (i,i**0.5) # gives proper error """ Output: -1.0 Traceback (most recent call …

Member Avatar for Skyelher
0
340
Member Avatar for TrustyTony

See the link ([URL="http://norvig.com/sudoku.html"]Solve Every Sudoku Puzzle[/URL] for fine description of logic of the code) I attach the top95.txt file of tough problems and the sudoku claimed toughest of all time by Finnish mathematician Arto Inkala ([URL="http://www.kristanix.com/sudokuepic/worlds-hardest-sudoku.php"]The Worlds Hardest Sudoku Puzzle[/URL]) Solving this was piece of cake for the code, …

Member Avatar for TrustyTony
0
1K
Member Avatar for invinceable

Ok, I have almost finished developing a program, but I have decided I want to license it by the month. Is there something similar to amember [URL="http://www.amember.com/p/"]http://www.amember.com/p/[/URL] that is available for client side development? Ideally I want to charge users say like $17/month to go ahead and use my program, …

0
24
Member Avatar for faby

Hello everyone, I am presently working on speech synthesis/speech to text on Ubuntu 10.04. So far I've been using festival but I discovered espeak which is also cool by reading other people's previous questions and answers. My main goal is to develop a communication system whereby festival or espeak can …

Member Avatar for woooee
0
160
Member Avatar for WildBamaBoy

I cannot get shutil to copy one folder to another. This code results in the error below. What am I doing wrong? [CODE]if os.path.exists(backup + "\\Safety Backup"): pass else: print "Backing up original music. . ." os.mkdir(backup + "\\Safety Backup") for folder in musicFolders: shutil.copy2("C:\ABCD123", backup + "\\Safety Backup") print …

Member Avatar for WildBamaBoy
0
20K
Member Avatar for dhanapal86mca

Can Any one tell me how to use phython with .net and wat is the main use of phython

Member Avatar for ultimatebuster
0
112
Member Avatar for Mkaveli

Hy I wanted to know what the best way is to program 3d in python without usin Blender. What I really want is to put my 3ds max object in a Python program. Thanks Mkaveli

Member Avatar for Tech B
0
332
Member Avatar for parijat24

Hi , Actually I have just to copy some specific files from a directory. As there are 5000 files and I have to copy only 300. so I just want to make program which read the name of the file given in text file and then copies those file from …

Member Avatar for TrustyTony
0
94
Member Avatar for hondros

I have the following function (from windows.h) which I am trying to use the Python C API to allow python to call it. This is the function: [code syntax=C] BOOL ReadConsoleOutputCharacter( HANDLE hConsoleOutput, (Type Handle to Change (use STD_OUTPUT)) LPTSTR lpCharacter, (char pointer to store Characters read) DWORD nLength, (length …

Member Avatar for hondros
0
344
Member Avatar for gonzigg

Hi, im trying to find a way to repeat this code with out losing the count of 1,2,3 and 4, when the user enters a number different from 1,2,3 or 4. Because in line 26 I call for main() again but when I do that it loses count of everything. …

Member Avatar for faby
0
178
Member Avatar for prashanth s j

Hi all, From within python script, I created a ssh handler to a remote machine whose interface is down and then using the ssh handler, I executed on the remote machine the following command: service network restart But the remote ssh session breaks and the service network restart is not …

Member Avatar for ultimatebuster
0
70
Member Avatar for lewashby

I am reading the book "Python Programming 2nd Ed. for the absolute beginner" and I am having some trouble with a very simple program. I was instructed to download and install pygame and the livewires package as I have done. This program is meant to display a grahical window, that's …

Member Avatar for albo1125
0
286
Member Avatar for thekilon

Ok this is a tough one, but I am wondering if any of you have dealt with MIDI and especially MIDI CCs and MIDI NRPNs. I am making a project that will used both and will communicate with external synths and soft synths. At the moment I know that pyGame …

0
63
Member Avatar for shashimgowda8

i need an audio player to embedd in my c# windows apllication which can play mp3,wma files and it should have all the controls like play,stop,pause,fast forward, fast rewind... right now i have used windows media player but in this fast rewind button has been disabled... but i need all …

Member Avatar for shashimgowda8
-1
235
Member Avatar for YasaminKh

I need to do some math operation in my code. I'm doing something like this: [CODE] kapaerror_list[i] = sqrt(4*((LDerror_list[i])**2)*((LDmean_list[i])**2) - (error_list[i])**2) print "%s\t%g\t%g\t%g\t%g" % (indexvalue_list[i],mean_list[i],kapa_list[i],LDmean_list[i],kapaerror_list[i]) [/CODE] but i'm getting the following error: print "%s\t%g\t%g\t%g\t%g" % (indexvalue_list[i],mean_list[i],kapa_list[i],LDmean_list[i],kapaerror_list[i]) TypeError: float argument required The funny thing to me is that when i erase …

Member Avatar for YasaminKh
0
193
Member Avatar for kosco

Hi, I am simulating wireless networks and the simulator keeps putting runtime data to the output and eventually to my results file. to give you an idea .... 1 8724593564 2 153 465 1 8725120550 14 900 259 Node 0 sends packet to 1 1 8725375953 22 654 339 1 …

Member Avatar for vukman
0
284
Member Avatar for shannonkr

I need to take the element from a list and use them as the input for the rest of my script. Right now I have it set up with a raw_input and I have to enter numbers in sequence and the script runs. I would like the computer to do …

Member Avatar for TrustyTony
0
74
Member Avatar for ihatehippies

In order for my code to be efficient, loops need to be terminated prematurely to prevent unnecessary iterations. I know that list comprehension is fast that the 'for' statement, but I'm having trouble finding a suitable way to break them. Here's what I've come up with [CODE=python]try: [x if x …

Member Avatar for snippsat
0
11K

The End.