43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for bumsfeld

Is there a way one can interrupt the sleep() function with a key press in Python?

Software Development python
Member Avatar for a1eio
0
296
Member Avatar for shanenin

For my simple programs I have wirtten, I have just been using a simple editer with syntax highlighting. This seems sufficient. What kinds of thing can a good IDE do for me?

Software Development ide python
Member Avatar for vegaseat
0
142
Member Avatar for Ene Uran

Couldn't sleep last night, so I was browsing and found the "Starting Python" thingy. I must say Python looks interesting from the examples. I learned C++ in school, Python sure looks easier to understand. Does any one think it's better than C++?

Software Development c++ python
Member Avatar for vegaseat
0
178
Member Avatar for tayspen

ok so i open notepad and paste this code [code] ContactsXPortPath As String = "E:\Ipod\Contacts" Const CalendarXPortPath As String = "E:\Ipod\Calendars" Const NotesXPortPath As String = "E:\Ipod\Notes" Const EmailXPortPath As String = "E:\Ipod\Notes" Sub ExportAll() ExportToVCard ExportToiCalendar ExportToText ExportToEmail MsgBox ("Export to iPod Complete") End Sub Sub ExportToVCard() Dim ns …

Software Development vb.net
0
91
Member Avatar for sifuedition

Why are my exceptions not working? here is the teststack.cpp #include <iostream> #include <iomanip> #include "teststack.h" using namespace std; struct StackFullException { StackFullException(); }; StackFullException::StackFullException() { cout << "The stack is full."; } struct StackEmptyException { StackEmptyException(); }; StackEmptyException::StackEmptyException() { cout << "The stack is empty."; } Here is the …

Software Development c++
Member Avatar for CrazyDieter
0
166
Member Avatar for bumsfeld

Python is relatively new to me. I have mostly programmed in C and C++. I read that Python has a good build-in debugger, but I can not understand the information in the reference manual. Can anybody please give an actual commented example how this works.

Software Development python
Member Avatar for Micko
0
123
Member Avatar for wdowell84

Hello, noob here. I just started taking a C++ class this semester and I've been understanding everything so far, but I'm sorta confused on the nested if statements. My homework is to have the user enter a number and it'll show the roman numeral. However whenever someone enters an invalid …

Software Development c c# c++ first-post
Member Avatar for Judas
0
182
Member Avatar for Avner .H.

hello fellows, I seem to have a little problem: I tried to use the function getattr([I]object[/I], [I]attribute[/I]) with two strings which is being read from a xml file as arguments, and seem to have a problem with sending the first one as a string. the function thinks that the string …

Software Development python xml
Member Avatar for kerumai
0
235
Member Avatar for nikto

I have a vector of objects of the Virus class. This vector is called 'Viruses.' I have a deque of objects of the Host class. Each Host class object has a deque of pointers to Virus objects, i.e., deque< Virus * > currentInfections Each Host object is randomly infected with …

Software Development c++
Member Avatar for nikto
0
160
Member Avatar for bumsfeld

I have read vegaseat's "Projects for the Beginner" sticky and got really interrested in the eqaution solver for physics or mathematics problem. I just need a little Python hint how to get this started.

Software Development mathematics python
Member Avatar for vegaseat
0
118
Member Avatar for CutCrusader

Thanks a lot for the help on my last question. I have another problem that I need help with. I need to generate the check digit for an ISBN number. Like if the input is 076372339 the function should return 8. To find the check digit, which is the last …

Software Development python
Member Avatar for vegaseat
0
131
Member Avatar for bumsfeld

I know Python has adopted Java's decorator, but I can not make much sense from the reference manual example. It would be nice if soemone could give a good example of the implimentation of a Python function decorator.

Software Development python
Member Avatar for vegaseat
0
109
Member Avatar for sifuedition

What is wrong with this: [code] for(int b = 0;b < c.length();b++) { temp[b] << S.Pop(); // or temp[b] = S.Pop(); } [/code] to have a string made up of the contents of the stack? When I do this and cout << temp, temp is blank. This iterates through the …

Software Development c++
Member Avatar for sifuedition
0
90
Member Avatar for sifuedition

What is happening here? [code] void palindromemgr(ifstream& in, ofstream& out, Stack& S) { string c; //candidate while (true) { cout << "entering first loop" << endl; //debugging line if (in.eof()) break; in >> c; cout << "this is the value in c :" << c << endl; //debugging line for …

Software Development c++ file-system
Member Avatar for sifuedition
0
151
Member Avatar for CutCrusader

alright, I'm new to this community and I have been reading the beginners posts, and I am still having trouble. I need to design a function for a class. It needs to convert decimal numbers to base 16. So for example if the input is 705083, then the function should …

Software Development python
Member Avatar for CutCrusader
0
99
Member Avatar for mohansameer

Whenever I try to place Msflexgrid component on the form,it show me the message,"You don't have the liscence to use this control. Please send me solution for that,or tell me the other method to show the grid,as I only want to show the information in the grid form.

Software Development vb.net
Member Avatar for readraj
0
245
Member Avatar for Avner .H.

Hello beautiful people..! i need a way to run a python program from another one... does anyone know what is the best way to call a process which runs another program in python, and when running that child process, causing the parent process to continue without waiting for the child …

Software Development python
Member Avatar for G-Do
0
188
Member Avatar for Acidburn

hello, another stupid question but what is wrong with this? [code] infile.open("new.txt",ios::app); if (infile.fail()) { cerr << "Error"; exit(1); } [/code] ever since I've added the ios::app it keeps printing error and then haulting but from my resoruces if you want to append a txt file thats whats the syntax …

Software Development c file-system ios
0
62
Member Avatar for m7r23

I have no idea how to use these two. I tried for 2 hours. And I also read the c++ books, but no luck. Can some body start me out.

Software Development c++
Member Avatar for m7r23
0
142
Member Avatar for shanenin

I want to make a small backup script to copy files to cdr. Are there any python modules that can accomplish this?

Software Development python
Member Avatar for jbennet
0
166
Member Avatar for tayspen

ok, so i want to mak a keylogger, so i can see how they work. I am TRYING to follow [URL=http://www.webtropy.com/articles/art4.asp?Keylogger]these[/URL] instructions. i am having a really hard time with the mouse functions. its saying mouseeventargs not found... if you know a better way to make a keylogger. Please let …

Software Development asp
Member Avatar for tayspen
0
117
Member Avatar for Micko

Hello, I've been experimenting with different Python IDEs since I started to learn Python. I must say that WingIDE is the best I tried, but unfortunately it's not free and that 10 minutes use is killing me. So I decide to write my Python programs in DrPython which was recommended …

Software Development ide python
Member Avatar for vegaseat
0
189
Member Avatar for sifuedition

Well, here is the gist of the problem. When I read in a file of integers, if there is a formatting character at the end, the last integer is repeated. For instance, in the code, it is reading i01.dat. If that file reads as follows: 2 3 4 5 with …

Software Development c++ file-system
Member Avatar for vegaseat
0
177
Member Avatar for joshSCH

Hi, I've created a GUI program that has JButtons for like a menu. I am trying to get the action listener to do a whole other method. EXample: view.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { menu(); System.exit(0); } But, It will not go to the method. It displays an …

Software Development gui java
Member Avatar for server_crash
0
174
Member Avatar for shanenin

I found this nice online book with exmples [url]http://www.byteofpython.info/[/url]

Software Development python
Member Avatar for vegaseat
0
92
Member Avatar for Micko

Hello, I'm trying to execute this simple code: [code] class Person: population = 0 def __init__(self, name): print 'Creating % s peron' % name self.name = name Person.population += 1 def __del__(self): print 'Destroying %s person' % self.name Person.population -= 1 prvi = Person('Asimi') drugi = Person('Mici') [/code] I'm using …

Software Development ide python
Member Avatar for vegaseat
0
245
Member Avatar for newjerseydr

I do: paramField.ParameterFieldName = "P1" ' Set a value to the parameter. paramValue.Value = strTemp paramField.CurrentValues.Add(paramValue) paramField.DefaultValues.Add(paramValue) ' Add the parameter to the ParameterFields collection. paramFields.Add(paramField) CrystalReportViewer.ParameterFieldInfo = paramFields strReportSource = strReportSource & "Transaction For Specified Account.rpt" CrystalReportViewer.ReportSource = strReportSource Then I get "Load report failed" Any suggestions? Thanks....

Software Development asp.net vb.net
Member Avatar for Paladine
0
104
Member Avatar for Rete

Hi, I've been trying to make a really simple word unscrambler, that takes a scrambled word, and then compares it to a txt file filled with words. The problem I'm getting, is that I'm trying to only read the first word of each line, and if it finds the word, …

Software Development python
Member Avatar for G-Do
0
171
Member Avatar for winbatch

If I have a vector<string> and do a find, the find returns me an iterator. How do I know what position of the vector does the iterator point to? for example. [code] vector<string> myVec; myVec.push_back( "A"); myVec.push_back( "B"); myVec.push_back( "C"); myVec.push_back( "D"); vector<string>myVec::iterator myIter = myVec.find(myVec.begin(), myVec.end(), "C" ); if …

Software Development c++
Member Avatar for winbatch
0
119
Member Avatar for kavsak

Hi I have a C++ dll which was designed to handle an Access 97 database using dao classes. I now need to convert this to Access 2000 / 2002, but when I run it, I get 'database format not recognised' errors. Presumably, I need to recompile with different settings somewhere. …

Software Development c++
Member Avatar for kavsak
0
115
Member Avatar for altheastronut

Hello, I need to write a script for a program I am running and I have never written on. I don't even know what commands scripts use, or what they even look like. Does anyone know any tutorials or example I could modify to fit my needs? Thanks, -Al

Software Development c++
Member Avatar for Raven11
0
227
Member Avatar for aripaka

Hi, I have tried a VGA mode in C with graphics.h which displayed graphics in 256 color but 320X240 resolution. I want to know the way to display graphics in 256 color in 640X480 resolution.Can anybody please help me.? Also I have tried to display a bmp file using graphics …

Software Development c display image
Member Avatar for vegaseat
0
212
Member Avatar for sara.rythm

Hello Everyone, This is my first day here. I've not browsed the site yet. But I wanted to know the answer of these questions. I'd be glad if anyone of you can help me. 1.Write a C++ program without using any loop (if, for, while etc) to print numbers from …

Software Development c++
Member Avatar for Dave Sinkula
0
943
Member Avatar for G-Do

Here's a cute little encipher/decipher program with a Tkinter GUI I wrote a while back. It's an implementation of a derivative of the Vigenere algorithm; the algorithm is taken from Laurence Smith's [U]Cryptography: The Science of Secret Writing[/U], Amazon link [URL=http://www.amazon.com/exec/obidos/tg/detail/-/048620247X/qid=1125004078/sr=8-1/ref=sr_8_xs_ap_i1_xgl14/102-6170856-3267319?v=glance&s=books&n=507846]here[/URL]. It's a dated book (and the technique itself is …

Software Development algorithm gui python tkinter
Member Avatar for G-Do
0
390
Member Avatar for mccarthp

Hello, I am new to Python and I am just starting to figure things out but this one has me stumped. I need to capture the exit code of my processes in order to track them in a database. I have all the other components working except this. In DOS …

Software Development first-post python sql
Member Avatar for G-Do
0
252
Member Avatar for Micko

Hello, I've downloaded PythonWin as a better IDE for writing Python code. I came across an interesting issue (as vegaseat pointed out) When I try to write this sentence in my native language "Ja sam

Software Development ide python
Member Avatar for Micko
0
181
Member Avatar for shashankk

Can anyone pl. mail turbo c++ setup as attachment to << moderator edit: email snipped >>

Software Development c++ email
Member Avatar for kc0arf
0
386
Member Avatar for bops

hi again people, im working on a simple program to look into a text file and output details about it. It seems to work fine for the first part but at the end of a while loop the code seems to stop working, i have had a little play about …

Software Development c++
Member Avatar for bops
0
255
Member Avatar for a1eio

I want to read everything from a file using python. the one problem i am having (note: EVERYTHING from a file) is that python is returning an EOFError when i know that it's not the end of the file, is there any way to just read the damn thing till …

Software Development file-system python
Member Avatar for vegaseat
0
505
Member Avatar for cleblanc

I'm completely new to python and really need help with this. I have written this basic cash fund program that allows a person to withdraw, deposit, and receive a balance from it. But now I need to now add email capabilities, by setting up a database (or list) of account …

Software Development email python
Member Avatar for cleblanc
0
254
Member Avatar for nephish

Hey there, i have a simple question about getting a script to do two things at once. like this. for i in range(100): print i time.sleep(.2) if i == 15: os.system('python /home/me/ipupdate.py') print 'done' when i run this, it stops at 15 and runs the script called out in the …

Software Development python
Member Avatar for nephish
0
176
Member Avatar for xav.vijay

Hai Friends This is my first post to this forum. I am new to Python but I find its quite interesting. I have a problem with the folowing code... ########################## import telnetlib import sys HOST = "192.168.10.5" USER = "somename" PASSWORD = "somepassword" telnet = telnetlib.Telnet(HOST) telnet.read_until("login: ") telnet.write(USER + …

Software Development first-post python
Member Avatar for xav.vijay
0
8K
Member Avatar for nephish

i have an interesting project at work going on. here is the challenge. i am using the serial module to read data from a serial input. it comes in as a hex. i need to make it a binary and compare it bit by bit to another byte. They have …

Software Development python
Member Avatar for nephish
0
161
Member Avatar for Avner .H.

Hello! I need some help... I parsed an xml file using the minidom.parse method, but when i printed the document object to the screen (using toxml() function), i noticed that the parser automatically replaced my " (inverted commas) chars into ' chars. for example : <Father_Tag> <Son_Tag title=' "Son" '> …

Software Development python xml
Member Avatar for vegaseat
0
230
Member Avatar for vancasas

how do you document simulation of algorithms ?

Software Development algorithm c++
Member Avatar for Sutanu
0
112
Member Avatar for Sutanu

[FONT=Trebuchet MS]Dear all: I've created TCPsocket in linux using C++. It receives an array of unsigned characters. I need the corresponding hex values in character format. i.e. "ABC" in hex it is "414243". Now I want to treat each of "414243" as character. So I have done the coding as …

Software Development c++
Member Avatar for Sutanu
0
2K
Member Avatar for Micko

Hi, I wonder if you can give me any advice how to learn Python. My plan is to read python tutorial in documentation from begining to the end, and then to get some book (learning Python, or Python in a nutshell). How long it will take (in average) to get …

Software Development python
Member Avatar for bumsfeld
0
213
Member Avatar for konacious

Okay fellows. I got a really tough one. I got it licked pretty much except for one part. This is the implementation of the ADT DigitalTime. You are to enter two different times in military format (i.e. 1:30 pm is 13:30. It is suppose to spit out how much time …

Software Development c
Member Avatar for iamthwee
0
326
Member Avatar for Mahen

do you know of any api in c++ that could give me time in this format: hh:mm:ss I used strtime in lccwin32 but it is not compatible with other compilers

Software Development api c++
Member Avatar for vegaseat
0
178
Member Avatar for Micko

Hello, I've just started to learn Python. I have two questions: 1. Is there any way to set up default folder for Python files (that Atest from introductionary example)? 2. can you suggest any good Python IDE (existing is OK, but I have a fealing that I'm working in ordinary …

Software Development ide python
Member Avatar for vegaseat
0
407

The End.