199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for letlet_pogs

Hello, I am still a newbie in python. I am trying to slice a string, but I don't know how. [code] def start(): exp = "1+2"; string1 = exp.split("+"); print exp; print "Operator 1 is : " , op1; print "Operator 2 is : " , op2; [/code] I want …

Member Avatar for letlet_pogs
0
127
Member Avatar for dre-logics

I Use visual Basic 8.0 and Mysql 5.0 I have one Table1: Table1: RecordID , Integer = primary key auto_increment NOT NULL Articlenr , Integer Articlename, Char(20) Table1: has nine records: RecordID, Articlenr ,Articlename 1 , 1100, Hamer Big Red 2 , 1110, Hamer Big Blue 3 , 1120, Hamer …

Member Avatar for dre-logics
0
117
Member Avatar for dlong1969

I am trying to figure out how to check for carriage returns in a string. I am reading file contents into a string variable, and need to check if x0D is present (carriage return). I have tried indexOf and matcher so far with no results. Any input would be helpful. …

Member Avatar for masijade
0
227
Member Avatar for informx

Hello, following decription is very easy. I have a class UC_Main with constructor where I create EventHandler for SelectionChanged event in MainUCGrid control which is standard DataGridView. MainUCGrid control is part of UC_Main class. [code=c] public class UC_Main : UserControl { public UC_Main(Evidence.Nodik nod, DataView columns) { Initialize(); MainUCGrid.SelectionChanged += …

Member Avatar for informx
0
795
Member Avatar for NT.

Hi there, I recently added some new code to an existing jsp page, but I don't know why I ma getting this exception. I double ckecked for common errors but I am not sure the reason for this exception. Can anyone help. Thanks. Here is the exception: type Exception report …

Member Avatar for jwenting
0
113
Member Avatar for elton571

I'm a computer engineering graduate from mumbai (fresher), and I want to pursue a career in DEVELOPMENT . I just wanted to know, what are the current DOMAINS on the rise, with respect to development of software for that particular DOMAIN . Development in DOMIAN's like : Gaming, Banking, Insurance, …

Member Avatar for jwenting
0
150
Member Avatar for ginnyc0802

hi guys.. i am a 4th yr Information technology student. we are now in our senior project.. My idea is to access information to a computer from your mobile phone.. A mobile phone named A is connected to a computer that has a databse. If i text mobile phone A, …

Member Avatar for jwenting
0
129
Member Avatar for sharao

hi frnds, iam a java developer, i need to add elements in list box dinamically, for example in my listbox data retrieve from database at runtime i.e., girls when user enter details he need option boys in the list...then he can able to enter boys in list box just like …

Member Avatar for sharao
0
80
Member Avatar for elcaro.miao

I'm currently working on a project that requires me to store usernames and passwords into a text file, what i've got so far is that i'm able to write to the text file by using this [CODE] //string path = "C:\\Documents and Settings\\100000001791\\My Documents\\Visual Studio 2008\\Projects\\SmartDeviceProject1\\SmartDeviceProject1\\bin\\Debug\\usernames.txt"; string path = "\\Temp\\users.txt"; …

Member Avatar for elcaro.miao
0
3K
Member Avatar for joannes

Hi Experts, I use Visual Studio 2005. I want to retreive data into textboxes providing inputs at runtime. I used the following code.It works when if i provide input at design time but while providing the input at run time the following error message gets displayed. "Syntax error converting the …

Member Avatar for kvprajapati
0
2K
Member Avatar for simondmeredith

I have this code when I submit a form: [CODE]<?php $email = $_REQUEST['email'] ; $name = $_REQUEST['name'] ; mail( "Saamon@live.com", "Website Opt In Form Results", $message, "From: $email" ); header( "Location: index.html" ); ?>[/CODE] On the header location part, how can I make a popup window appear instead of a …

Member Avatar for saiprem
0
145
Member Avatar for theshakti

Hi All, I have a table in mysql in which there is a column which have following kind of data $Category=>Income;$NAV=>10.2181;$Repurchase;Price=>0;$Sale;Price=>0;$Date=>26-Feb-2008; I want to Bifurcate the data in that column into 5 separate columns in the same table in this way $Category=>Income in this thing "Income" in column "category". $NAV=>10.2181 …

Member Avatar for theshakti
0
291
Member Avatar for corby

can anyone help me initialize this array with nested for loops? [CODE] char board[3][3]; board[0][0] = '1'; board[0][1] = '2'; board[0][2] = '3'; board[1][0] = '4'; board[1][1] = '5'; board[1][2] = '6'; board[2][0] = '7'; board[2][1] = '8'; board[2][2] = '9'; [/CODE]

Member Avatar for mrnutty
0
111
Member Avatar for bhagu

Hi, guys.. I am trying to find php script or open source script, for digital goods to sell on static website. My client wants to sell his music online. He wants very simple function for Store. When somebody make successful payment on paypal, the link should re-direct to a download …

Member Avatar for chrishea
0
250
Member Avatar for jralexander137

So I have to create a method that creates a custom arrow object and then returns it. No drawing is to be done in the method, it will be drawn once it's returned. I think I'm utilizing GeneralPath the correct way and then casting it to a shape properly but …

0
76
Member Avatar for codrguy

what is the big O of this : [code=c] int m = n; int t = 0; while (m > 0) { for (int i = 1; i <= m; i++){ for (int j = 1; j <= m; j ++) { t++; } } m /= 2; } [/code] …

Member Avatar for mrnutty
0
61
Member Avatar for A_Dubbs

Has anybody ever used py2exe and wxPython together? I have no idea what i'm doing (as usual) and would appreciate it if anyone could walk me through the process or point me to a tutorial online. All the tutorials I've seen (which isn't many) don't make much sense to me. …

Member Avatar for snippsat
0
752
Member Avatar for techie929

I am trying to insert elements in a binary search tree.I am getting the following errors: In member function 'void bst::insert(char*)': error: cannot convert 'char*' to 'node*' in assignment error: cannot convert 'node*' to 'const char*' for argument '1' to 'int strcmp(const char*, const char*)' In function 'int main()': error: …

Member Avatar for techie929
0
148
Member Avatar for hughesadam_87

Hey all, I'm trying to read through a code written by a colleague last year in which he used the BioPython package. The package is no longer on my computer, and I have to wait for the systems admin to update it; thus, I'm forced to merely read the code. …

Member Avatar for keithsavin
0
114
Member Avatar for vvashishta

hi all... how can i use TestChanged event of a text box in vb.net... do i need to use any javascript or some other scripting language for same? thanks

0
83
Member Avatar for hwlibra083

Does anyone know how to do this: I need to read data from a .txt file into a multidimensional array that is dynamically allocated from memory. How would one do that? Thanks to whoever can help me!

Member Avatar for hwlibra083
0
1K
Member Avatar for pancgom

Hi, I need some advice on how to edit records from a mysql database using php. Basically the record will be displayed after a particular field is chosen. What i need to know is how can i show the field data in a drop down box one after another and …

Member Avatar for shridhard
0
179
Member Avatar for techno_weenie

Hello i'm getting a segmentation fault in my is_validport() function and could somebody people point out what i'm doing wrong please? [CODE]#include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <ctype.h> #include <string.h> /* Function definitions. */ //char *is_uid(char *s); char *is_destportseq(char *s); char *is_destport(char *s); char *is_validport(char *s); char *trimwhitespacestartandend(char *str); …

Member Avatar for techno_weenie
0
198
Member Avatar for iamcreasy

I want to take infinite number of strings using string class. Why string operator is not working in the following program? it is showing... error: no match for 'operator!=' in 'str != -0x000000001'| [CODE] #include<iostream> #include<vector> #include<string> using namespace std; int main() { vector<string> s_v; string str; for( ; ;) …

Member Avatar for WaltP
0
131
Member Avatar for Linux777

Hi, I would like to get the following script to work. The script should search for file that are bigger then 200 and that have been created or modified today! The problem is the comparator == does not work! when i compare the ( $6 == $dat ) i don't …

Member Avatar for Linux777
0
97
Member Avatar for comsci2

[CODE] Imports HR.EZTwainLibrary Imports System.Runtime.InteropServices Public Class frmNewScan Private Sub btnSource_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSource.Click If EZTwain.IsAvailable Then 'if TWain services are available EZTwain.SelectTwainsource(Me.Handle) 'select Twain source Exit Sub Else MsgBox("Twain not avaialble.", MsgBoxStyle.Critical) End If End Sub Private Sub btnAcquire_Click(ByVal sender As System.Object, ByVal …

Member Avatar for comsci2
0
2K
Member Avatar for carylle

i would like to ask how to change the row color in datagrid. this is my codes. that if my stock is < 10 the row with < 10 stock will turn in RED color. [code] If Val(medstocks.Text) < 10 Then MessageBox.Show("Medicine is running out of Stocks!", "WARNING", MessageBoxButtons.OK, MessageBoxIcon.Warning) …

Member Avatar for kvprajapati
0
75
Member Avatar for KRal

[CODE]#include <iostream> #include <ctime> using namespace std; class Fraction { private: int Num; int Denom; public: void Reduce(); //will reduce the fraction to lowest terms void AddFraction(); //will add the two fractions together void print(); //will print the fraction in the form: numerator / denominator }; void Reduce(int &Num, int …

Member Avatar for dusktreader
0
121
Member Avatar for Aamit

Hi, i want to insert images as header and footer into word document file. How to do this? Any api available for this? Thanks

Member Avatar for Jerail
0
134
Member Avatar for 4789787

This code is for a forum. When you post a topic it is SUPPOSED to redirect you to the topic you were viewing before but instead it just shows a white page with the end of the url it was supposed to go to.... heres the code [CODE]<?php // forum.php …

Member Avatar for Jerail
0
597
Member Avatar for dabeechman

I have two ever evolving variables that I want to compare. Call them x and checksum. If the two variables are within 100 of one another for example, everything is fine. But if the margin is greater than 100 I would want it to throw up an error. How would …

Member Avatar for jonsca
0
72
Member Avatar for mmasny

How is it possible that my program asked to cout a bool variable writes 104 on the display? Even if the variable wasn't initialized, it should display 0 or 1 I thought? Another thing is that it seems to be initialized and to go wild at one moment.

Member Avatar for mitrmkar
0
198
Member Avatar for 23Zone

Hi all, I am pretty much new to Java (I've had experience in C++) and have been working on a "simple" FTP client. I pretty much ended up with the code below. Problem is I get a lot of errors mostly related to the IOException in each method. The errors …

Member Avatar for 23Zone
0
129
Member Avatar for gedas

hey guys, i am trying to create a simple menu using canvas for example [CODE] class Name extends Canvas{ MenuItem menuitem; public Name(){ JPanel panel = (JPanel) container.getContentPane(); panel.setPreferredSize(new Dimension(800,620)); panel.setLayout(null); setBounds(0,0,900,600); panel.add(this); setLocation( 0, 20 ); MenuBar menuBar = new MenuBar( ); Menu menuFarm = new Menu( "About" ); …

Member Avatar for Ezzaral
0
101
Member Avatar for i_luv_c++

hey guys..ok so i did this problem about 80% but i cnt figure out the last part[I] which is sort the characters in order of increasing size. [/I] [B]Question:[/B] Input: 4 words (strings with no spaces) and the order in which they are to be displayed, forward alphabetical, reverse alphabetical …

Member Avatar for i_luv_c++
0
149
Member Avatar for zukkoor

Hello, I am trying to develop a program and I am stuck on a few portions. 1. I need the program to calculate the gradient of a user entered function. 2. I need to multiply matricies which I think I know how to do but the matricies need to have …

Member Avatar for jonsca
0
73
Member Avatar for kalehl

I am not sure how to accomplish this, but I am trying to take dates from two fields and using the current date show the progress percentage in a different field. So, if past date is Jan 1st, the current date is "x", the future date is Jan 11th. How …

Member Avatar for kalehl
0
361
Member Avatar for ilyaz

I need to develop a piece of code in an old legacy Visual C++ 6.0 system. I am invoking a stand-alone executable via a system call. This exe is supposed to create a file if processing goes OK or not create one if it fails. The name of the file …

Member Avatar for ilyaz
0
202
Member Avatar for yoni0505

Hi there, I want to learn how to log in to websites using python 3.1, I've searched for any info and couldn't find. The closest thing I found was an example for older version of python, which I couldn't learn much from it cause the functions are not used in …

Member Avatar for snippsat
0
140
Member Avatar for tryphy

Hi I have this login page where user enters in and goes to main page, it has a button called enter form >> which on clicks go to a form submission page . The user enters the form and click submit, once he click submit the form is submitted and …

Member Avatar for tryphy
0
10K
Member Avatar for bp2005

Hi, apologies since I feel this is a very basic question... I need to feed a function that takes a few arguments, and I'm having trouble with one of the variables: my_function(..., ..., const char* const*, ...) I'm trying to initialize that variable like this: const char* const myVariable[] = …

Member Avatar for bp2005
0
98
Member Avatar for txwooley

So I have figured out how to receive output from an application using [CODE]process = subprocess.Popen("my_app", shell = True, stdout = subprocess.PIPE, stderr = subprocess.PIPE) info = process.communicate() [/CODE] But how do I SEND info TO an app? I have an application that asks for a yes(y) or no(n) confirmation …

Member Avatar for txwooley
0
84
Member Avatar for john_prince

Hi, We're trying to monitor our logs, and would like to be alerted in case of repeated occurrence of a certain field ( ie PY1011 ). We'd like the script to be run every half hour, which will scan the log file, look out for repeated of any user, if …

Member Avatar for d5e5
0
137
Member Avatar for knshn

Hi, I want to take a command with its options as input and execute it with one of the exec() functions. My approach is to take input first and put it in an array by dividing with string tokenizer. Then I call execvp() which takes the array including the command …

Member Avatar for knshn
0
397
Member Avatar for hirafaryal

hi; i need to know that how to convert an image to a vector for neural networks. please help

Member Avatar for dusktreader
0
91
Member Avatar for VernonDozier

I'm relearning (OK, "learning" would be a better term since I never really understood it the first time) piping. My end goal is to execute some shell commands like "ls", get the results into another variable, and do some stuff with it. I imagine I'll end up using commands like …

Member Avatar for VernonDozier
0
141
Member Avatar for moein_soltani

Hi Guys.. I have a problem in tellg() function.. When I open file in Binary mode , It returns true value,but when I open in default mode it returns false value.I can't understand what has happened ...(the problem is in this code) : [CODE] for(int t=1;t<size;t++){ char ch=input.get(); codes_list[t].symbol=list[t].symbol=ch; input>>list[t].q; …

Member Avatar for moein_soltani
0
246
Member Avatar for pala2222

hi. How to save a bit on the physical disk in the C + +. ofstream write only file, and I would like to save the hard bits but I do not know how to do it

Member Avatar for pala2222
0
252
Member Avatar for johndoe444

For this content of the file/stdin: [CODE] a 3 W 10 A 100 , 10 k 7 . 3 I 13 [/CODE] I have written the following code [CODE] while (k-- > 0) { scanf(" %c %d",&c, &p); printf("c: %d p: %d\n",c,p); } [/CODE] if I change the format string …

Member Avatar for WaltP
0
2K
Member Avatar for samaru

[size=4]PHP and MySQL Web Development[/size] [b]by Luke Welling, Laura Thomson[/b] Extremely useful - This is a very useful book. If you're a web developer, and you're starting out with PHP, it will do wonders. It covers many important things such as creating a successful shopping cart, web based e-mail, web …

Member Avatar for berniestein2001
0
640

The End.