199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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. … | |
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 += … | |
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 … | |
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, … | |
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, … | |
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 … | |
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"; … | |
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 … | |
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 … | |
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 … | |
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] | |
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 … | |
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 … | |
![]() | 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] … |
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. … | |
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: … | |
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. … | |
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 | |
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! | |
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 … | |
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); … | |
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( ; ;) … | |
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 … | |
[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 … | |
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) … | |
[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 … | |
Hi, i want to insert images as header and footer into word document file. How to do this? Any api available for this? Thanks | |
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 … | |
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 … | |
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. | |
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 … | |
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" ); … | |
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 … | |
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 … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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[] = … | |
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 … | |
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 … | |
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 … | |
hi; i need to know that how to convert an image to a vector for neural networks. please help | |
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 … | |
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; … | |
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 | |
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 … | |
[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 … |
The End.