43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for fanfan1313

Is there any place where you can find a complete list of python commands? I have googled and skimed through the tutorial and I can't find any place where I can find a complete list of python commands and examples on how to use them? If there isn't one I …

Software Development display first-post python
Member Avatar for fanfan1313
0
195
Member Avatar for raddad555

Ok here we go: I have to send data over TCP to a listening port, the other end has a server running expecting a login. I need to send 3 bytes 6b "k" , 16 , and 31. the equilvaltes to ku. When I send the data it is sending …

Software Development visual-basic
Member Avatar for raddad555
0
184
Member Avatar for mattd2

Hello, I got my last issue resolved, working great thanks to you guys. I have a wide variety of date formats that I need to parse into this format: MM/DD/YYYY HH:MM:SS (a mysql DATETIME type value).. I have tried: [code]post_date = time.strftime("%Y-%m%d %H:%M:%S", i.issued)[/code] However, this gives me: [code] Traceback …

Software Development python
Member Avatar for vegaseat
0
1K
Member Avatar for bandm

Hello All, I am new to programming and have several books on starting out with C++. I was just curious if there was a publication that has a list of codes and there functions and Syntax. Perhaps with examples of how they are used. Kind of like an Encyclopedia? Thanks, …

Software Development c++
Member Avatar for Narue
0
185
Member Avatar for mattd2

Hello, This is my first python script, so I could use a little bit of help here. :) I'm using the 'Universal Feed Parser' ([url]http://feedparser.org/)[/url], and I have a list of feed URLs in a database which I would like to pull out and go through each of them. I …

Software Development php python
Member Avatar for mattd2
0
312
Member Avatar for joshSCH

Ok well i have tried manually creating jars and manifest files, none of which seemed to work. I recently discovered that you can create a jar through JCreater-Tools. I created the jar file and unzipped it to get the META-INF folder containing MANIFEST.MF. I modified the manifest file so that …

Software Development java
Member Avatar for joshSCH
0
164
Member Avatar for bandm

Hello, I am just messin around with this "A Simple Win32 GUI Introduction" snippet I found on this site. I am able to paste it in to a simple project in my Visual C++ application and run it. Basically it is just a blank window. It says you can play …

Software Development c++ gui
Member Avatar for vegaseat
0
287
Member Avatar for joshSCH

Im pretty new to java and I have created a couple simple programs... and I was just wandering how exactly to use textFields and textAreas. I have created a textfield before, but I need a simple textField that works like the windows prompt. I just want a textField that will …

Software Development java
Member Avatar for server_crash
0
434
Member Avatar for brycegordon

First of all i hope i am posting this in the right place. Anyway, i have recently purchased a copy of sam's teach yourself c++ in 21 days (fourth edition.) and have realy gotten stuck into it with the dream of being able to create some cool programs. i want …

Software Development c++
Member Avatar for vegaseat
0
387
Member Avatar for madgokuss4

I have just started getting into python and so far it's all been very interesting and the help good to, but now i have ran into a problem. I'm sure it's very easy to solve but i just can't seem to figure it out or find anything on the web. …

Software Development gui python
Member Avatar for vegaseat
0
145
Member Avatar for G-Do

Hi, I'm writing a client program that downloads data from an HTTP server via urllib, like so: [CODE]ufile = urllib.urlopen(urlstring) text = ufile.read() # Do stuff with text[/CODE] Nice and simple. Unfortunately, the server only accepts requests with a session ID embedded inside - and I don't know how to …

Software Development client-server python session
Member Avatar for G-Do
0
250
Member Avatar for peaceofmind

hi :) I need some help for this script I have -------------------- [CODE]cursor = conn.cursor() cursor.execute("select * from playlist limit 5") result = cursor.fetchall() # iterate through resultset playlist_txt = '' for record in result: mp3id = record[0] mp3_title = record[1] mp3_artist = record[2] playlist_txt += mp3id + mp3_title + …

Software Development python
Member Avatar for peaceofmind
0
210
Member Avatar for chriswell

i need to write a program that can count the number words the user enters and and the recurences of each letter. ex: Have a nice day Total words: 4 a = 3 d = 1 e = 2 ... Can't get the program i've writen so far to count …

Software Development c
Member Avatar for bgunn
0
218
Member Avatar for Kob0724

So I had this nifty program on my calculator that I wrote that sloves quadratic equations for me. I decided it would be good practice to try and write it in C++. I've actually had 4 different versions, each one (atleast in my opinon) getting better than the last. When …

Software Development c++ display
Member Avatar for Kob0724
0
333
Member Avatar for shakesahal

I recieved a warning error as below [C++ Warning] HMLP.cpp(4): W8058 Cannot create pre-compiled header: write failed which was refer to the code below #pragma hdrstop After check with help file in Borland C++ Builder 6 the statement was as below This warning is issued when pre-compiled headers are enabled …

Software Development c++
Member Avatar for shakesahal
0
207
Member Avatar for tayspen

i got a .av file to play but how do i sop it how would i do that. also what code would i use to open a .wav file from in the proggie

Software Development c#
Member Avatar for Paladine
0
140
Member Avatar for k_en

[COLOR=Black]hi, i am a newbie and i just started to learn C++. My question is , if i put a number like 45678 in [COLOR=RoyalBlue]char x[6] [/COLOR] then how do i separate each number and put it into [COLOR=RoyalBlue]int num[6][/COLOR].[/COLOR]

Software Development c++
Member Avatar for Drowzee
0
379
Member Avatar for mickyboy

hello all while looking on msdn i noticed there was a visual basic express edition that can be downloaded??? i currently just have the (working edition that came with a book so i cannot turn a programe into an exe ,just for home /personel use) its not that clear on …

Software Development vb.net visual-basic
Member Avatar for Paladine
0
157
Member Avatar for mickyboy

hi all i have a book using vbasic by babani books, it gives an example of a form with with one textbox,and 1 command button and code. but gives a referance as follows, before running code return to design form,select the print command button use ctrl+c ctrl+v and drag two …

Software Development printer visual-basic
Member Avatar for mickyboy
0
360
Member Avatar for shanenin

I have been reading through the "python library reference" with no luck finding the module needed to copy a file. Any help would be appreciated.

Software Development python
Member Avatar for shanenin
0
248
Member Avatar for Quickslvr

Hmm...how do i go about doing a conversion only the first letter of the string? << Thread split from [thread=13727]original[/thread] since this is taking on a life of its own. >>

Software Development c
Member Avatar for aismm
0
6K
Member Avatar for shanenin

I need root privledges to do some stuff in my python script. I am currently using this technique [php] current_user = os.geteuid() if current_user != 0: print "you need to be root to run this script" sys.exit()[/php] this will at least polietly end the script so i am able to …

Software Development python
Member Avatar for vegaseat
0
344
Member Avatar for danizzil14

Hello Everyone! My question is simple, where are any half decent tutorials out there? I mean, all of the ones I've tried have only skimmed the surface(print, name = raw_input yah know things like that)- or were way to complicated. I've only been doing this for something like a week

Software Development python
Member Avatar for danizzil14
0
149
Member Avatar for jhdobbins

im confused as to how to get the pointers to save values... anyone with helpful advice??? this is where i have gone so far.... [CODE]#include <iostream> #include <cstdlib> using namespace std; int main () { typedef struct dataNode { char arriveCity[30]; char departCity[30]; int totalPassengers; int passengers; int flightNumber; struct …

Software Development c++ display session
Member Avatar for jhdobbins
0
247
Member Avatar for Flinch

Hello, I am relatively new with Python and Pygame, however, I am an experienced PHPer, so programming isn't something new to me. My problem is this: I got Python 2.4 installed and Pygame 1.6 for Python 2.4 installed. I know Pygame works because I can make calls to the Pygame …

Software Development display python tkinter
Member Avatar for vegaseat
0
746
Member Avatar for alone2005

Potion of my code: [code] class UserCommand{ string cHandle; //definition of command int numPara; vector<int> cPara; //parameter of command public: UserCommand(string ucData); //copy constructor UserCommand(const UserCommand& uc); inline const string getHandle(){return cHandle;}; inline const int getPara(int i){return cPara.at(i);}; inline const int getNumPara(){return numPara;}; //overload operator = here inline UserCommand operator=(UserCommand& …

Software Development c redhat
Member Avatar for alone2005
0
140
Member Avatar for freemind

Hi to everybody! I'm writing a program that has to simulate a working system for deliveries of goods to some cities. I get several mistakes from the compiler while temporarly checking the code but they can't point me out the problem good enough.. Therefore I dare to bother you with …

Software Development c++
Member Avatar for freemind
0
95
Member Avatar for iacobus2

I just want to say that I am very disappointed with Guido van Rossum's latest tutorial. I like to follow along typing in the examples and seeing how they run. I seem to catch on to things better that way. But this tutorial's examples haven't been throughly checked because some …

Software Development python
Member Avatar for shanenin
0
204
Member Avatar for BeeNarak

Hi Anyone, I've made a web application, and now I want my web login by username and password as below but it's have got error('Login.WebForm1.DBConnection(string, string)': not all code paths return a value) anyone who can help me? [code] private bool DBConnection(string strUserName, string strPassword) { string LoginSQL; OleDbConnection MyConn …

Software Development asp asp.net c#
Member Avatar for Paladine
1
172
Member Avatar for madgokuss4

I have been working on some python code with a friend and for some reason i keep getting this message when i try to run his code, if ar[2]!="client": IndexError: list index out of range I can't see whats wrong and i have never had this message come up before??

Software Development python
Member Avatar for madgokuss4
0
287
Member Avatar for danizzil14

Hello all! Ok here's my problem: I have a Hello World type program that I want to run in steps, and each step is in a new window. When a "next" button is pressed the old window terminates and a new one is created. Now I don't know much about …

Software Development python tkinter
Member Avatar for vegaseat
0
177
Member Avatar for danizzil14

Ok, I've only been working with Python for something like 4 days now and I'm stuck trying to do a certain thing in Tkinter. Now, just to get you into the situation here. I've created a little program that has an entry bar and a go button. It says for …

Software Development python tkinter
Member Avatar for vegaseat
0
162
Member Avatar for danizzil14

I have heard that it is possible to compile python so that people reciving the script don't need to worry about going to the python website and downloading it. One more thing if you tell me to run something from the prompt I can't for the life of me run …

Software Development python
Member Avatar for vegaseat
0
169
Member Avatar for bandm

Hi all! I am getting compile errors when it is Linking. --------------------Configuration: CIRCLE - Win32 Debug-------------------- Compiling... circle.cpp Linking... LIBCD.lib(wincrt0.obj) : error LNK2001: unresolved external symbol _WinMain@16 Debug/CIRCLE.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. CIRCLE.exe - 2 error(s), 0 warning(s) [code]# include <iostream.h> class CCircle { …

Software Development c++ video
Member Avatar for bandm
0
448
Member Avatar for galmca

this is a code for the binary search program in c language.now the program is not showing any error but when i run this program then the output is like: enter the total numbers:6 enter the array elements: 5 4 7 1 3 2 the sorted numbers are:1 2 3 …

Software Development c
Member Avatar for Narue
-1
364
Member Avatar for desidude

i tried this #include <fstream> #include <iostream> #include <cstdlib> using namespace std; int main() { // Declare input stream ifstream fin; int min, max, val; int isFirst = true; fin.open("inFile.txt"); fin >> isFirst; min = isFirst; max = isFirst; while (fin >> val) { fin >> val; if (val < …

Software Development c++
Member Avatar for desidude
0
225
Member Avatar for hinde

I am pretty much done a shell program I have to write for my operating systems class. The only problem is that I can't seem to figure out how to make this function work. It is supposed to separate out a list of tryable paths that is from the getenv("PATH") …

Software Development c first-post operating-system
Member Avatar for hinde
0
183
Member Avatar for CrazyDieter

In order to provide a simple "garbage collector" for my programs, I'm trying to write a template smart-pointer class, that may be used like that : [code] #include <ref.h> class Foobar{ ....}; ref<Foobar> sample_manipulation(ref<Foobar> in) { ref<Foobar> f=in; //.... return f; } int main(void) { ref<Foobar> f1=new Foobar; ref<Foobar> f2; …

Software Development c++
Member Avatar for CrazyDieter
0
182
Member Avatar for JoBe

Hello ladies and gents, I had to do an exercise in wich I was required to compair two standaardtype strings opposits, meaning: name = "Johan", name2 = "nahoJ" The idea was to return a bool value True or False. I did this with the following code I wrote:[code]#include <iostream> #include …

Software Development c++
Member Avatar for Dave Sinkula
0
250
Member Avatar for DotNetUser

txtULCol->Text == "" does not work for checking for a blank textbox in VC++ .NET. With or without text the code always return false. Any suggestions? Thanks.

Software Development c++
Member Avatar for alpha_foobar
0
158
Member Avatar for shanenin

I am slowly absorbing these python class concepts(kinda) this fails with an error [php] class Critter(object): def __init__(self): print "I am born" def talk(self,name): self.test = name print self.test crit = Critter('ralph') crit.talk()[/php] this one works [php] class Critter(object): def __init__(self,name): print "I am born" self.test = name print self.test …

Software Development python
Member Avatar for vegaseat
0
213
Member Avatar for nephish

Hey there all, i have a question about how to point my python install to my sql database. when i enter this:[CODE] db = MySQLdb.connect(user="user", passwd="pass", db="myDB")[/CODE] i get this: [CODE]Traceback (most recent call last): File "<pyshell#1>", line 1, in -toplevel- db = MySQLdb.connect(user="user", passwd="pass", db="MyDB") File "/usr/lib/python2.4/site-packages/MySQLdb/__init__.py", line 66, …

Software Development mysql python sql
Member Avatar for nephish
0
151
Member Avatar for Rete

I was wondering if there was any way to make a for loop go through a string word by word, rather then character by character. For example, [B]for letter in "Hello world"[/B] [B]print letter[/B] it would print out H e l l o etc. I was wondering if I could …

Software Development python
Member Avatar for Rete
0
164
Member Avatar for JoBe

Hello ladies and gents, Ive been reading about how when a class becomes to big due to to many memberfunctions, it is best to split the program up into several sections wich could be something like this: Interface section Implemenation section Application section I was given an example wich is …

Software Development c++ microsoft visual-studio
Member Avatar for JoBe
0
495
Member Avatar for Lee Bel

Hello!! Does anybody know how to create a function that randomly changes elements in a string? And: does anybody know how to set the chances for the type of changes? I've tried to look it up in tutorials, but since I'm a beginner, most of the time creating random outputs, …

Software Development python
Member Avatar for shanenin
0
200
Member Avatar for Rete

Sorry, I know that this is probably the wrong section to post this question in, but I'm sort of confused as to which one would have been appropriate. Anyways, I've been using regular expressions to find specific information such as e-mail addresses and whatnot inside textfiles, but I can't get …

Software Development first-post python
Member Avatar for Rete
0
228
Member Avatar for shanenin

I just finished my first program, other then a few test ones. it is tic-tac-toe. If you want to try it. here is the link [url]http://webpages.charter.net/lindbergfamily/game.py[/url] It is not very advanced, just mainly a bunch of if then and while statments. If any of you care to comment on my …

Software Development legal python
Member Avatar for vegaseat
0
1K
Member Avatar for stupidenator

Hey all, I am very new to python, but I hear that it can be used to handle web forms. Does anybody know of where I can find a good tutorial on how to create something that will handle form input? Thanks in advance. -Nick

Software Development python
Member Avatar for nephish
0
334
Member Avatar for JSThePatriot

Okay I use Dev-C++ as my IDE. I have never linked my own files. I am pretty much a noob on C++, but not to programming in general. My issue that I have been almost pulling my hair out with is this. I am using a premade MD5 header file …

Software Development algorithm c++ first-post ide
Member Avatar for oboler
0
150
Member Avatar for JoBe

Hello ladies and gents, I'm trying to output a 2D array, but can't seem to find the solution, can anyone help me out here. [code] #include <stdafx.h> #include <iostream> using namespace std; int main() { int **pp; int i, j, n, ni; cout<<"Geef het aantal regels als volgt: "; cin>> …

Software Development c++
Member Avatar for JoBe
0
586

The End.