43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for ryan_vietnow

Hello everyone,i'm starting to learn pytho now.Could anyone give me some advice of what is the best IDE for python there is based on your experiences guys. thanks.More power to the open source community.

Software Development ide open-source python
Member Avatar for sneekula
0
152
Member Avatar for k2k

Can I have regular function and class function together? if so, where should i place the regular function declaration? The compiler wouldn't compile this one... the problem is function showlist() Thank you [code=cpp] # include <iostream> # include <string> # include <fstream> using namespace std; class Name { public: int …

Software Development c++
Member Avatar for Lerner
0
105
Member Avatar for tgifgemini

[B][/B] Hello members, I am trying to execute the module below (SQL statement) and I am getting the above error: "Syntax error in FROM clause" on this line [code]Call db.Execute(strSQL)[/code]. When I hovered the mouse over the SQL string variable, it shows this line of code: [code]strSQL = "Insert Into …

Software Development visual-basic
0
82
Member Avatar for kelvinskk

Hi, I'm still pretty new to c++ programming in Fedora Core. I've successfully done up my c++ code and it can run when i did: gcc -o test test.c ./test However, is there a way which i could run this test file from any directory? For example, u can run …

Software Development c++
Member Avatar for WolfPack
0
139
Member Avatar for ConfusedMuchMor

I'd like the sender event to stop if the conditions of the if statement are met!! [ICODE] private void Btn_Func(object sender, EventArgs e) { Button thisbutton = sender as Button; if (thisbutton.Text == "-" && lb_Display.Text == "") lb_Display.Text += thisbutton.Text; [B][U]//I want the code to stop here if the …

Software Development
0
90
Member Avatar for 14fg

Hi, I need help with a timetable which must do the following: 1: Input: program name Output: list of core and option modules. 2: Input: module name Output: module leader, activities, credits, when run, constraints 3: Input: activity name Output: room(s) 4: Input room number Output size, condition, available resources …

Software Development java
Member Avatar for Ezzaral
0
126
Member Avatar for majestic0110

hi all. I have constructed a UI that has two fields. user name password. I am trying to get the password field to echo back user input as ****. any suggestions chaps? have googled to no avail and am a little stuck. cheers

Software Development
Member Avatar for majestic0110
0
85
Member Avatar for nabilchampion

hope all r doing fine.. i need a quick and very quick reply m porting some cod:confused: e from windows to linux box..n i just encountered a function findfirstfile() used in windows..this function also takes wildcards as regular expression in the string I searched the net for an alternate implementation …

Software Development c
Member Avatar for nabilchampion
0
692
Member Avatar for honeyS
Member Avatar for honeyS
0
522
Member Avatar for nnobakht

Hey guys, in c i am trying to read an input such as a command like [code] xeyes -bg red -fg blue [/code] i have managed to read it fine if there is no spaces so a single word such as "abc" but when i have spaces i get segmentation …

Software Development c
Member Avatar for nnobakht
0
92
Member Avatar for hellsing

I using window Vista home premium(32 bit) and I cannot use python after I save a file once I get the following error messages "socket connection error" "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal fire wall software is blocking the connection" I have to …

Software Development python
Member Avatar for Duoas
0
94
Member Avatar for mariegomez84

Hi! I'm trying to open a .xls file in vb, but not a specific file. What I need is something like this: if [COLOR="red"]filename.typefile=.xls [/COLOR]then msgbox ("it's an Excel file") end if What I wrote in red colour is the code I need, because I know this code doesn't exist. …

Software Development visual-basic
Member Avatar for Jx_Man
0
115
Member Avatar for Red Horse

This code hangs on me running. The problem is that "r" does not count right (not like it is directed under FOR expression). Does the problem lay beyond the code? #include <iostream> #include<string> using namespace std; // using std::cin; // using std::endl; // using std::cout; // using std::string; int main() …

Software Development c++
Member Avatar for Red Horse
0
99
Member Avatar for fonzali

hi everybody , I have a program (below) but don't know how to direct the out put to the printer , can anyone help thanks [code=python] from calendar import * setfirstweekday(5) #saturday prcal(2008) raw_input('hit a key') [/code] another question is that I tried writing " saturday " instead of "5" …

Software Development printer python
Member Avatar for fonzali
0
309
Member Avatar for zawpai

Dear all, Could you please help me? I would like to know whether it is the same or not. Is it the same "mouse click" and "mouse Press"? I want to detect the mouse is pressing with API. Which API should I use? I actually want to know the detection …

Software Development api visual-basic
Member Avatar for Jx_Man
0
150
Member Avatar for Texpert

Hi, I have this app running fine on my pc with connecting to SQL server on my localhost using windows authentication. Now I am going to deploy it on my client's server where SQL Server 2K DB is on server "abcd" with SQL Server credientials (No windows authentication) My problem …

Member Avatar for nandalanranjith
0
238
Member Avatar for Rehat

hi, I am doing a lab assignment for my C++ class and it wants us to use serveral pointer indirections for each variable. The program runs but then crashs and it seems to occur during the second iteration of a for loop in the arrayGet function. I'm not sure why, …

Software Development c++
Member Avatar for Rehat
0
91
Member Avatar for Dwasifar

First off, the standard disclaimer: I am pretty new at shell scripting, and my work at this point is mainly hacked-together ideas and pieces from other people's. Thank you in advance for your tolerance. :) I am using Ubuntu Linux 7.10 Gutsy, which has the bash shell. I wrote a …

Software Development shell-scripting ubuntu
Member Avatar for radoulov
0
377
Member Avatar for Spartan552

[QUOTE] ArrayList<ArrayList> bigList = new ArrayList<ArrayList>(); ArrayList liste = new ArrayList();[/QUOTE] [QUOTE]for(i=0 ; i<10 ; i++){ liste.add(0,i); bigList.add(0, liste); liste.clear( ); }[/QUOTE] What I want to get is something like [ [9] [8]...[0] ]. Instead of that I'm getting [ [ ] [ ]...[ ] ], an ArrayList of empty …

Software Development java
Member Avatar for Spartan552
0
115
Member Avatar for Spartan552

Hi, I want to use an ArrayList of long but [QUOTE]ArrayList<long>liste = new ArrayList<long>();[/QUOTE] doesnt work. Eclipse changes it to [QUOTE]ArrayList<long[]>liste = new ArrayList<long[]>();[/QUOTE]. What to do? I really need an arraylist of long values. Thanks.

Software Development java
Member Avatar for Spartan552
0
143
Member Avatar for eleonora

hey and happy new year! i cant understand whats the difference between x++ and ++x if anyone knows let me know :) thanks in advance !

Software Development java
Member Avatar for ShawnCplus
0
185
Member Avatar for lookof2day

Hi ! I'm trying to find the substring in a shell script as given: [code] #! /bin/bash HTML="<html><body>OK</body></html>" OK="OK" OFFSET=`expr index $HTML $OK` OK_LEN=`expr length $OK` var1=`expr "$OFFSET"` echo $var1 var2=`expr "$OK_LEN"` echo $var2 INPUT=`echo | awk '{ print substr("'"$HTML"'",var2,var1) }'` echo $INPUT [/code] But on running it does not …

Software Development shell-scripting
Member Avatar for ghostdog74
0
134
Member Avatar for everlast

[code=cplusplus] #include <iostream> #include <iomanip> using namespace std; class Matrix { public: Matrix (int =0, int =0); ~Matrix (); Matrix (const Matrix&); void operator = (const Matrix&); Matrix operator + (const Matrix&); Matrix operator * (const Matrix&); Matrix operator - (const Matrix&); int* getMember(int =0, int =0) const; //returns pointer …

Software Development c++ matrix-multiplication
Member Avatar for everlast
0
145
Member Avatar for Dark_Knight

Hi. Below are two pieces of code. This first one works fine: [code] char str[] = "Hello World"; char *b; b = &(str[3]); *b = '3'; printf("%s\n", str); [/code] However this second one results in a segmentation fault. [code] char *str = "Hello World"; char *b; b = &(str[3]); *b …

Software Development c
Member Avatar for WolfPack
0
296
Member Avatar for peter_budo

Just getting into XML and other X-stuff so this may sound little silly as I'm thinking more ahead of I'm currently reading and able to do, but here it goes...:twisted: Take simple example of CD collection. Currently with use of XSL i'm able to display my XML document as table …

Software Development javascript xml
Member Avatar for peter_budo
0
81
Member Avatar for nu2cpp

I am using BCB6 so I hope this is the right forum. I am using asyncpro's TApdComPort component for serial communication. I need to send 12 bytes and receive 22. I can send the 12 bytes using putblock(..). But I can't figure out how to reeceive my data. Also, I …

Software Development c++
Member Avatar for nu2cpp
0
541
Member Avatar for lostandfound

Hello there, I am trying without much success to display multiple columns from a database where the selected data is dependant on specific common data. I have tried using an SQL statement with a Jet 4.0 OLE DB connection. SELECT Name,Date,Action FROM Track WHERE SerialNumber="1" with the output displayed in …

Software Development display visual-basic
Member Avatar for lostandfound
0
158
Member Avatar for squidd

ok so basically I am writing a small program that does a few different things in Delphi 2007. I am very new to coding and so I hope that my terminology will be up to par. If not, please forgive me. I am loading text files into a ListView... I …

Software Development delphi listview pascal
Member Avatar for Raged
0
465
Member Avatar for ssvetkoff

I am writing a program that calls system( "c:\pathtofile.exe" ) to launch another program. Does anybody have a suggestionon how to make it so the console window doesn't show up.

Software Development c++
Member Avatar for ssvetkoff
0
108
Member Avatar for Karkaroff

In the following code, the object is not being written into file in line 30 [ICODE]stfile.write((char*)this,sizeof(item));[/ICODE] When line 26 :[ICODE]stfile.read((char*)&ob,sizeof(item));[/ICODE] is hidden the object is written into the file. Please help!!! [CODE=C++] fstream stfile; class item { int code; char name[25]; int price; int qty; public: int getcode() { return …

Software Development c++ file-system ios
Member Avatar for Karkaroff
0
133
Member Avatar for eranga262154

Hi all, I've created two columns on the list view as follows. [CODE] ColumnHeader colHed; // Header one colHed = new ColumnHeader(); colHed.Text = "Name"; colHed.Width = 100; this.lwDetails.Columns.Add(colHed); // Header two colHed = new ColumnHeader(); colHed.Text = "Address"; colHed.Width = 200; this.lwDetails.Columns.Add(colHed); [/CODE] Then on a separate function I …

Software Development
Member Avatar for eranga262154
0
130
Member Avatar for Basanagouda

I am able to Validate for 9.1 decimal Validation by regex expression "[0-9]\{0,9\}\.[0-9]?$" but If I call in KeyPress last character entered cannot be in textBoxVariable.text. Qusetion : I want to do e.handle=true; for keypress , if textBoxVariable.text Value not satisfy regex condition. Any solution? Thanks in advance

Software Development regex
0
62
Member Avatar for Vagelis44

Hi, I want to make some kind of monitor for my PC and i want to have CPU load in form like "top" (something% , ex 23%). So i use C and : i'm opening the file /proc/stat and read the first line : cpu 92208 2282668 19432 79824 739 …

Software Development c
Member Avatar for Belrog
0
139
Member Avatar for lemymatair

Hello World! (to all of you DaniWeb guys!) I want to build 3D Online Chat but I don't know how to start. Does anyone can tell me how to send message between 2 PC? (An output of this message I want to show in 3D character's shout box.) Right now …

Software Development c++ client-server
Member Avatar for lemymatair
0
142
Member Avatar for xfactornos

I have been writing my program and everything works like it should unless the user inserts a character then the whole thing blows up... how can I fix this. Is there something I can add to block characters from being added? any help would be appreciated! here is my code: …

Software Development c++
Member Avatar for xfactornos
0
124
Member Avatar for Dark_Knight

Hi, I am trying to create a method that accepts a pointer to a (static) string so that it can modify the string. I have something similar to this: [code] void modifyString(char **pstr) { char *str = *pstr; // Make changes to str ... } void doSomething() { char str[] …

Software Development c
Member Avatar for Dark_Knight
0
134
Member Avatar for Spartan552

Hi. Do you know how to get and set cursor position in C language? I know this can be done using GetCursorPos and SetCursorPos from Win32 Api but I want it to work on several OS so I cant use Win32 specific functions. Thanks.

Software Development api c
Member Avatar for Salem
0
193
Member Avatar for jdseader

I need to query a database on a server. As a first step, I have written the following Java code to just make sure I can access the database. I thought that the Try-Catch blocks would take care of the exception problem, but apparently they do not because when I …

Software Development java oracle
Member Avatar for jdseader
0
1K
Member Avatar for gusbear

when i start my program i write import graphics * def main(): but then when i try to create a button it doesn't work anyone know the problem??thanks

Software Development python
Member Avatar for Ene Uran
0
2K
Member Avatar for rajatC

How to output to an excel file and how to read from it?? i have done the writing part...to use [inlinecode]"\t"[/inlinecode] for moving to next cell in same row and [inlinecode]"\n" [/inlinecode]to move to next row... and is there any special format to save that excel file..because when i save …

Software Development c++
Member Avatar for jacki
1
6K
Member Avatar for anallan

can someone help me regarding my program? i am tasked to create a program called string censoring. it asks for two strings then it removes the characters in the first string which are similar to those in the second. Ex: 1st string= new york yankees 2nd string= absolutely result= nw …

Software Development c++
Member Avatar for anallan
0
672
Member Avatar for yarita

I am just beginning in a C++ class and I am having a hard time setting up the code for using a modulus operator. The problem assigned has user input as name and hours worked. The program is to output the name, weeks worked, days worked, and hours worked based …

Software Development c++
Member Avatar for Arpy Giri
0
154
Member Avatar for everlast

is there a way for me to write OOP programs in c++ for Texas Instruments TI 89 graphic calculator?

Software Development c c# c++ oop
Member Avatar for everlast
0
1K
Member Avatar for pepipox

Dear all In advance, thank you for your help. I am trying to initialize an object in C++ depending on certain parameter. Below is the source code I am using. if(ARG::metrn==metrnSMD) EventStream<complex<Lambda>> evstrTrain(fileTrain, evlsTrain); else EventStream<Lambda> evstrTrain(fileTrain, evlsTrain); if (ARG::FRandomEventOrder()) evstrTrain.SetRandomOrder(true); I am declaring and calling the constructor for 'evstrTrain' …

Software Development c++ visual-studio
Member Avatar for pepipox
0
153
Member Avatar for eesti44

Hello, I am still working on the self study thing. I have decided to do or attempt to do a project that requires a header files with 2 other source files. The header file was given in the book. It is as follows: #ifndef GOLF_H_ #define GOLF_H_ //golf.h -- for …

Software Development c++
Member Avatar for eesti44
0
141
Member Avatar for bcm

I got it but my problem is that I want a text should scroll at the bottom of the form from right side of the screen to the left side of the screen want the text to scroll at the bottom of form from rightmost end of the screen to …

Software Development vb.net
Member Avatar for Ole Raptor
0
141
Member Avatar for ceyesuma

I have a netbeans demo program with clasess and libraries the whole bit. I need to understand these lines of code because I need to click on the button I added:caputure the string in the jtextbox;put it into a query and put the resultset into a list and then display …

Software Development java java-netbeans
Member Avatar for ceyesuma
0
150
Member Avatar for majestic0110

Hi all, I recently started to work for a company who uses XML. I am new to XML, and was wondering if anyone could give me any pointers as to what I should look out for (potential problems) and a decent online tutorial? The company will be training me, but …

Software Development xml
Member Avatar for majestic0110
0
104
Member Avatar for bcm

How to create a DLL file using [COLOR="Red"]VB.NET[/COLOR] :(

Software Development vb.net
Member Avatar for bcm
0
83
Member Avatar for rajatC

I recently saw this function in one of the online test paper i was going through. And i came to know that this is a standard library function but i dont know anything about it. And it is related to some Parent process - Child process kind of things. And …

Software Development c++
Member Avatar for rajatC
0
125

The End.