64,152 Solved Topics
Remove Filter ![]() | |
Hi, the problem is that I don't want the code to insert the [B]script name[/B] in the database. So I added this [CODE] basename($path) != basename($file_path) [/CODE] but don't work and the name of the script is then inserted in the database. What this script do is read all the … | |
Hi All, This is probably a stupid question, and I could have easily written a small function that loops over the values and selects the first match... but I'd prefer to use the built in way - if there is one. Is there a built in function to select a … | |
Hey guys im trying to do a query on our database, the pieces of information i need are in 2 tables within my database. table 1= customers - information i need from this table: customers_id (primary) customers_firstname customers_lastname customers_email_address table 2= orders customers_id orders_id (primary) both tables contain more fields … | |
Hi, I've got structure like this class Object //abstract { virtual....=0; }; class Monster : public Object {}; //also abstract class Wumpus : public Monster {}; class Hero : public Monster {}; class Gun : public Object{}; class Cave : public Object { void add(Cave*); void add(Monster*); }; the second … | |
hiiii how can I use 2 different select statement to insert 2 different values in same insert statement ???? | |
Hi experts, I got problem in servlet. I have a web page that has two buttons (submit button and update button) , both buttons call the servlet. my question is how I let my servlet program distinguish the two buttons when one of the two buttons is pressed. the servlet … | |
Hey guys, I'm having a small problem with getting a image map to work when I generate it with PHP. I'm using two separate files. The one is used to display the image which has the image map and the other file is the code I use to retrieve the … | |
Hi, I have got a little problem with __setitem__ method. It works fine in single class, but if class member is instance of the same class method __setitem__ doesn't work on class member but on class. Here is an example: Here is a class with __setitem__ method: [code="python"] class MyClass: … | |
Hi!!! I am making a window application in which there is a textbox in which we have to enter only numeric values... How can I display a table on the form which has columns - ones,tens,hundred ,thousand,ten thousand,lakh , ten lakh etc. Now whatever number we enter in textbox that … | |
Hi all. I'll outline my situation first of all: I work at a university, and we have a problem where students tend to lock their PCs and, being the free-minded youths that they are, just walk away and leave them locked, thus requiring an admin to go and unlock it. … | |
Please consider the below code. 1 #include <QApplication> 2 #include <QLabel> 3 int main(int argc, char *argv[]) 4 { 5 QApplication app(argc, argv); 6 QLabel *label = new QLabel("Hello Qt!"); 7 label->show(); 8 return app.exec(); 9 } Now, I'm abit doubtful about line 5. According to the book(from which I … | |
ok what i have users do is upload files to the server, the files gets renamed for conflicting issues, and then they choose a name they want to call the file. After it uploads it sends that info to the database. now i know that they are going to want … | |
Hi, I want to get only the filename from the entire path in a file dialog in JSP. Right now I am using type "file" in input tag. any help will be appreciated. cheers! | |
I'm trying to get a user input number from text box on my GUI, then there are some calculation for that number and display it later in the same text box. Number entered is supposed to have hyphens which are then stripped to check for validity of that ISBN number. … | |
Hello again. I'm now looking for a way to see if the current user has admin rights. I tryied the Iczelions way, and it always says that i dont have admin rights (on vista) . The next code i dont remember where i found, but it always says that the … | |
I would really appreciate some help with this. I have searched and searched the internet but cannot find information on exactly what I am trying to do. I have a javascript toggle function: [code] function toggle_change() { var ele = document.getElementById("change_log"); var text = document.getElementById("Toggle_change"); if(ele.style.display == "none") { ele.style.display … | |
Hello once again. I'm trying to do one last project, but unlike the others, that usually i struggle with some common errors, this time i have problems figuring out how its supposed to be created. This is the question: Write a class named Employee that has the following member variables: … | |
Hi Dears I want check the value of my gridColumns , I want user only type digit, I don't want let user to type any thing else except digit How I can check it? and in which event I have to write this codes? | |
Here is a link to the actual project. I could easily use getline for the phrase. Don't need to overload it to read in phrase. [url]http://home.earthlink.net/~craie/122/projects/framed.phrase.html[/url] | |
Hey everybody, I was trying to create a program that simulated the game "Mastermind" using numbers 0-5 instead of the six colored pegs. I have written out the code, and it seems to work, all except for the loop I have set to see if the user wants to play … | |
I keep getting a 'illegal start of an expression' and ')' expected on a loop line for a program that counts and compare ten numbers and displays the largest. I have checked for "{}" and "()" parity, and also for ";" at the end of my statements; but the following … | |
hi, just need help on how to get started on how to make a scrolling text on an iframe..like a scrolling news on a page.. any ideas is greatly appreciated :) | |
Why don't either of these implementations actually write to the file? Code v1: [CODE] txtfile = open('C:/Python31/SKUs.txt', 'w') with txtfile: num = 817 while num <= 820: x = "G" + str(num) print(str(x), end=" ") num += 1 txtfile.close()[/CODE] Code v2: [CODE]txtfile = open('C:/Python31/SKUs.txt', 'w') num = 817 while num … | |
Hey... I have dataGridView and button „Edit“ for editing informations of the dataGridView and now I'm trying to read the informations in the firts form, and write them in to the second form but when I clicked on the „Edit“ button I get error message „Input string was not in … | |
Hello all. I want to show a boolean value with MessageBox. But it only accepts strings. I'm currently looking throught win32 sdk but cant find any function to convert a bool to a string(something like .Tostring in c#). Any help ? | |
Sigh. This error keeps appearing, and never ceasing -- ever: [CODE] *** Unrecoverable, server exiting! ---------------------------------------- ---------------------------------------- ================================ RESTART ================================ >>> Unhandled server exception! Thread: SockThread Client Address: ('127.0.0.1', 4323) Request: <socket.socket object, fd=1856, family=2, type=1, proto=0> Traceback (most recent call last): File "C:\Python31\lib\socketserver.py", line 281, in _handle_request_noblock self.process_request(request, client_address) … | |
Hello all. As always i have another problem with my Visual Studio 2008 Professional edition. I am running it on windows vista ultimate x64 edition. And i couldnt get my apps made here to work under any other xp machine (x32). I have created an empty c++ project ( Framework … | |
Hello, I'm starting in Java ME development, but when i finished the code, that i'm developing using Eclipse, it shows that my code have an error, with that red x in the left of the code line, here is the code: [code=java]package comm; import javax.microedition.midlet.MIDlet; import javax.microedition.midlet.MIDletStateChangeException; import javax.microedition.lcdui.Display; import … | |
Hi to all, I like to reach all the cells by column name in a loop( foreach...) and compare the content of the cell in datetime type and add a value to another cell depending on the result of the comparison. I do this for all the populated rows. Question … | |
Hi all, I've written a piece of software that connects to a server's SQL database. The software has a timer which fires every second, and the timer connects to the database every time and pulls out a list of current to do's from a table (CurrentToDoList). This database only has … | |
I am not too sure if this is easy or not but I have a datagrid with a return date field. All I want to happen is if any of the dates in the grid are before the current date Datetime.Now then turn a picturebox to visible. I have had … | |
i just got into this python thing and i asked my friend how to do this and he doesnt know he told me to write this here so you guys can understand how to make an if statement (if x == 10 to 24) with proper syntax | |
hi expert, first of all, i have to say sorry for my poor english.i am working on a phone-book project and come across a big problem. my approach: 1. i ask to users to identify the type of data he would like to search,eg, name, tel no 2. i ask … | |
hi! i m trying to write some user entered entries to a text file on server... here is my code [CODE] String news=new String(); String path=application.getRealPath("news.txt"); news=request.getParameter("news"); PrintWriter pw = new PrintWriter(new FileOutputStream(path)); pw.println(news); pw.close(); [/CODE] this just doesnt seem to work....can anyone help?News is a text are field on … | |
#include <iostream> using namespace std; int main () { int R,G,Y; int r,g,y; int a; cout<<"enter your input"<<endl; cin>>a; if (a==R||r) { cout<<"please stop"<<endl; } else if (a==G||g) { cout<<"you can go"<<endl; } else if (a==Y||y) { cout<<"prepare to stop"<<endl; } else cout<<"Out of range"<<endl; return 0; } | |
Hello, the first question is, how do iknow if the SQLEXPRESS server that in my machine is work well? i have sqlExpress and i also have the sql studio management, i am creating database and tables and all works fine. but when im tryin to call to a database from … | |
Hi everybody! For the last five days I`m working on a project and I see only python syntax in from of my eyes. I have a small problem and I got stuck. I have a string like this : file = "E:\xxx\yyy.txt" and I want to format it in order … | |
Hi guys .. i wanted to open some of my files. like mswords that save in any of my folders. also wanted to open .txt, .jpg, html etc files. any code for this.. i have an idea using shell "location of exe" but it open exe files only. i wanted … | |
hi everybody! what plugin download in ecplise for phyton. sorry for my english skill | |
I've been unable to get to it for the last hour or so. | |
Is it possible to develop a case tool for asp.net like we have case tool for UML? the case tool will guide to generate asp.net based websites or simply asp.net codes. I want it to develop using Asp.Net. Please suggest is it possible to do this? | |
I'm having trouble gaining admin access to user accounts whose names are spelled the same, with the only difference being that one is spelled in lowercase. (ex.: Bill vs bill.) When I try to bring up the lowercase account in the ACP, it always brings up the uppercase account by … | |
![]() | Quick background: I'm working on Project Euler and made a palindrome checker. I needed to convert integers to strings. itoa() kept giving random values (9 gave 9 or 90, etc...), so I decided to make my own, and ran into a problem. [I]I have fixed it, but could somebody explain … ![]() |
Hi All I need to capitalize the first word of each new sentence as user types. How will i come to know about the start of new sentences? do i need to use regular expression for this? | |
I just started learning Python a couple days ago, and my main goal for now is a text-based game, in which the user inputs commands to interact with the virtual world. My problem thus far, however, has been splitting a string up so that I can detect what action the … | |
I was just wondering what the best way to deal with command line arguments is? Should I just use some different function, should I embed all the checking into main(), should I create a class that deals with them or is there another option I haven't thought of? I know … | |
I was just wondering for future information if you add a message to a combo box such as this: [code] ComboBox1.Items.Add(ComboBox1.Text) [/code] is it possible to save it in the combo box so that if the form is closed then re-loaded that message will still be stored? Thanks | |
this code takes out the spaces in between and i want to shrink this code a bit. like in function modify. It doesnt work if i take out the `if(s[i] == ' ')` I want to make this code work without using that. Any help?? #include<stdio.h> #include<stdlib.h> char* modify(char*); void … | |
I'm trying to do program to basic operations in math. So, I want that the program calculate for example 3*2+4 etc. I already did something, but it needs upgrade. The problem is with division (/). Everything I write it's always the same result- 0. I don't know why. It is … |
The End.