199,114 Archived Topics
Remove Filter ![]() | |
i've been trying to make simple programs and downloaded python 3.01. unfortunately i have no programming experience, and am a bit stuck despite searching around the tutorial, library, etc. (please forgive if this question is already answered somewhere) my first attempt at a program is >>>print (hello world) hello world … | |
Hi All, Can anyone of you please suggest me some best books for learning VB.NET or any online stuff. This site itself is a very good source of learning, but still thorough knowledge is needed. Thanks. :| | |
I am [I]fed up[/I] with my current sales job and am looking at getting into the programming arena. I feel that I have the basic computer and intellectual skills necessary to be successful in the industry. However, I would like some advice on what language I should learn first. I … | |
Can nyone tell me how to relatr combo boxes???? i hv used this code bt this is throwing exception ......ny help would be appreciated .I hv jst started wworking on c# i hv used the following code nd i hv populated the cmbschoolcode in loading of my form [code=csharp] private … | |
Hi I have a function where if the first character of a string is whitespace it then deletes it. My problem is I am getting an error on a certain line & I have no idea why & how to fix it. error: [QUOTE]C++ forbids comparison between pointer and integer[/QUOTE] … | |
Hello. For the past 6 months I've been creating a c++ game, but all I have ever learned in c++ is how to write c++ consel. (The DOS screen) Its so ugly and I would really love to turn my game into a c++ API with some basic graphics instead … | |
Hi Im using visual studio .net 2003 (not 2005) and I'm looking for a good database to work at and also helpful articles to help me, a newbie to c# and database, start creating a database and linking my forms' data from visual studio to the database. 1) If it … | |
Please guide me send multiple attachment in one mail trough php mail script Below is for single attachment the how on multiple attach [ICODE]<?php // Read POST request params into global vars $to = $_POST['to']; $from = $_POST['from']; $subject = $_POST['subject']; $message = $_POST['message']; // Obtain file upload vars $fileatt … | |
Is there a module for a camera in PyGame, because I want the camera to follow an image, thanks. | |
Hii I wanna list all the files and folders of a particular drive. Any sample codes available... Give me a link to them... Thanking you | |
Hey guys, i need to read form(s) on VB.Net from the simple html based web sites, like on VB6 webbrowser object; [code] WebBrowser.Document.All("form").All("field")[/code] But i shouldn't to use a WebBrowser object. How can i do this on VB.net? | |
hii,im new to java graphics.can anyone tell me how to create a circular slider(like a Jslider just its circular in fashion). | |
Hello. I'm developing a game in c++ and have found that you almost have to be Bill Gates to figure out how to connect to the internet using c++. So I've taken the idea that I should create the first section of my game in Java. This section would open … | |
Form Validation Script: [code]<script language="javascript"> function handler(where){ //check for unusual characters var iChars = "!@#$%^&*()+=-[]\\';,./{}|\":<>?"; var wspace = " "; for (var i = 0; i < where.value.length; i++) { if (iChars.indexOf(where.value.charAt(i)) != -1) { return false; } if (wspace.indexOf(where.value.charAt(i)) != -1) { return "nope"; } } } function emailhandler(where){ … | |
On my website, users have the ability to post comments. Comments get inserted into my mysql database as plain text. When displaying the comments back, I am trying to use the php nl2br() function to allow it to display line breaks as <br /> tags, but it doesn't work. I've … | |
I'm relatively new to MSSQL, and I'm trying to improve the DB write performance. I have some legacy Java code that's generating about 1500 records every second. These 1400 records are generated by multiple Java threads. Right now, my approach is to create an SQL statement in each thread, to … | |
(10 marks) Write a functiom in C++ which when passed 2 different lower case strings s1 and s2 will return true if the strings are anagrams. Note that 2 strings are anagrams if they contain exactly the same letters with the same frequency. im doing a past paper for an … | |
i was trying to join two tables using a adodb mysql5.1 driver connection .i tried to print the record count in the record set . no result was shown and the program is not responding . when i started debugging it was shown that the record set object was closed … | |
I wan to the system to field up the ip address automatic then send it into the body message but it out error can help me about this [code=php]$fields{$_SERVER['REMOTE_ADDR']}="IP Address"; $body = "Here is the following detail:\n\n"; foreach($fields as $a => $b){ $body .= sprintf("%20s: %s\n",$b,$_REQUEST[$a]); }[/code] Notice: Undefined index: … | |
I have no idea where to start. I have a website which sells products via a shopping cart - when someone places an order I want to have the order automatically printed in the despatch area. | |
I am using this thread to show an example to a website on my javascript table editer I made. To see the script in action, just put it in one of your text editers (i.e Note Pad, ect... ect...) Description: With this, you can add cells, delete cells, add rows, … | |
I have what is probably a basic question, but am new to web development, so don't really know where to look for an answer. Any help is greatly appreciated as I have brick-walled on this one. I have a database of events that are organized by grandparent-parent-event_name structure. So Grandparent … | |
Hello all, Just wanted to see if I am leaving open some security hole in a script I have! When the user logs in it creates a session based on the id field of the users table! For example .... my id is 10 so a session is created with … | |
Hi i have a program that currently reads in the contents of a file and stores it in a string. Some of the files are quite large so speed is quite important. I want to print out the words that begin with capital letters and was wondering how i could … | |
I'm developing a program in PHP. I'm still a beginner in PHP thus said I may ask some questions that may seem basic. How would you go around compressing PHP into a downloadable file for redistribution. | |
A wierd thing is happening guys, when i start the application without debugging everything works fine, when run the application in debug mode, it stops responding whether or not it hits any break point. | |
Hi, my question is how I can find the centroid of group of cells that share the same value. Say I have this: [code] grid = [[0, 0, 0, 0, 0], [0, 1, 1, 1, 0], [0, 1, 1, 0, 0], [0, 1, 1, 1, 0], [0, 0, 0 ,0, … | |
Hello, I want to read a text file in C and the output file must be created and want to reverse the data in tat output file created. So i used the below coding but not reversing the data in the output file created. eg: input file contains this data … | |
Hey:) I'm not actually sure what it's called..so just calling it "mouse window locking" - What i mean by this is how do you lock the mouse to a window ie: The mouse can not leave the window unless you alt tab. So when the user drags the mouse to … | |
Hi I use Dev - C++ and i d like to ask you cause i dont seem to figure that out, how can i store a 12 digit number? For example lets say this is the number 930342900243 How can i write a program that would print that number using … | |
The code below is to validate the email field in my form, if the field left empty the javascript will alert "please fill in your email" and then it'll take you to a blank page that says "false". I don't want that to happen, I want them to re-enter their … | |
[CODE]Could not connect to: : 50404 java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:520) at java.net.Socket.connect(Socket.java:470) at java.net.Socket.<init>(Socket.java:367) at java.net.Socket.<init>(Socket.java:180) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:560) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:377) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) [/CODE] has anyone run into this issue and or find a fix? I've not been … | |
okay i understand all bitwise operators but in the chapter of k&r at bitwise operators i m really lost at there question i have no idea how to do them Exercise 2-6. Write a function setbits(x,p,n,y) that returns x with the n bits that begin at position p set to … | |
I know that, in python, to start a file with it's associated application that is located on my hard drive I can simply use os.startfile. However, I want to be able to start a file with it's associated application that is located on an ftp site. Does anyone know how … | |
Hey everyone, Here is an outline of my problem: I have a working code which defines a class, GeneDict, which reads in data from a special type of file, and stores it as a dictionary. What it is really doing is taking in millions of lines of biological data, and … | |
I have a recursive function. My base case is: [code] somemethod(somelist) [INDENT]if len(somelist) == 0[/INDENT] [INDENT][INDENT]return[/INDENT][/INDENT] ... [/code] This is suppose to return the function to the place where it was called from. [code] main() ... somemethod(somelist) ... [/code] But I get this error: AttributeError: Trie instance has no attribute … | |
Hello everyone! I am trying to use polymorphism to have a little physics simulator that draws objects to the screen. Each object has properties like mass, friction, position, velocity, acceleration and such similar things, as well as a pointer to a SHAPE object which describes the shape of the object. … | |
i just want to ask if the PHP is the best in creating online information system.. if not.. can you tell me what programming language i will use? thanks you very much for helping! | |
Hi, I have the following query, which does not return any results. [ICODE] select (sum(t.minutes) / 60),d.fiscalmonthnum from kpifntime t inner join kpiddate d on t.datekey=d.datekey inner join kpidacts a on t.activitykey=a.activitykey inner join kpidfees f on t.feeearnerkey=f.feeearnerkey where a.activitycode in (11,12,13,14,15,16,17,18) and d.fiscalmonthnum=11 and d.fiscalyearnum=2009 and t.feeearnerkey=520 group by … | |
[code=cplusplus]#include <iostream> #include <cstdlib> using namespace std; int main() { cout <<"enter the problemset and number""\n"; //problems represents name and numbers string problems; string problem_name_and_numbers=problems; string numbers; char quote; int total_length=problems.length(); //gather name if(cin.peek()=='"' || cin.peek() == ''') { cin >>quote; getline(cin,problems,quote); int problemslength=(problems.length()+1); int difference=total_length-problemlength; numbers=problem_name_and_numbers.substr(problemlength,difference); } else { … | |
Hello. I have a question about socket programming. I am using Linux. I want to establish a connection between a client and a server using the methods: Server: socket(), bind(), listen(), accept(), connect(), send(), recv(), close(). Client: socket(), connect(), send(), recv(). My question is: If I am a client and … | |
Hi, I am a newbie to C++ and want to know how to parse thru a binary file. I am having some trouble with some simple code. I have a sample binary file(test.bdb) that has "0069 0045 0089 0090" in the file. Here is my code for the file. [code] … | |
| |
I'm writing a program in C++ under Linux that needs to wait for user to press a key. Considering the key pressed the program will go accordingly. So I must be able to recover the key code from a variable afterwards. I will appreciate a good help. | |
Hi, I am creating a dll based VC++ project.I believe I am facing some memory issues. I have checked the code and for every memory allocation by using the new operator I have included a delete operator to deallocate the memory. May be there are some memory leaks which are … | |
ok I am almost done doing what I need to do and that is getting a portion of a bitmap to appear on the screen and have it move around using directional controls. My problem is that while I get the the bitmap move it leaves the original behind and … | |
Can someone help me see what is wrong with this? I have pasted lines 218 to 237 below (the syntax error is on line 237): [code=php] function add_hook($definition) { if (!is_array($definition)) { $definition = array('__global', $definition); } $this->hooks[$definition[0]][$definition[1]] = array(); } /** * Remove function from the allowed hooks. * … | |
Hello guys help please i'm trying to write to a disk and append it whenever i open the program i can add to it instead of witting a new one StreamWriter Write; Write = File.CreateText("c:\\TestFile.txt", FileMode.Append); Write.WriteAllText(txtOutput.Text); Write.Close(); MessageBox.Show ("File Created SucacessFully"); getting this error:- No overload for method 'CreateText' … | |
i have a database containing 100 questions . i want to select random 10 from it. how to do that? there is another database containing 100 questions. questions are stored along with an attribute level. there are 10 levels. so there are 10 records whose level value is 1 and … | |
My code reads an Excel file and outputs XML. For one value I need to evaluate 2 spreadsheet values to set the XML as in (dr being a datarow): [code] if (String.IsNullOrEmpty(dr[5].ToString().Trim()) == true) strPrimeTaxid = dr[6].ToString().Trim(); else strPrimeTaxid = dr[5].ToString().Trim(); [/code] This works fine for data such as "123456" … |
The End.