199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for max.yevs

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 …

Member Avatar for carapace
0
176
Member Avatar for Piya27

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. :|

Member Avatar for Piya27
0
142
Member Avatar for davebaum1

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 …

Member Avatar for siddhant3s
0
116
Member Avatar for Manak

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 …

Member Avatar for Manak
0
279
Member Avatar for gretty

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] …

Member Avatar for tux4life
0
89
Member Avatar for mybluehair

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 …

Member Avatar for tux4life
0
111
Member Avatar for c#dummie

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 …

Member Avatar for julien_h
0
113
Member Avatar for gingank

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 …

Member Avatar for ayesha789
0
169
Member Avatar for tomtetlaw

Is there a module for a camera in PyGame, because I want the camera to follow an image, thanks.

Member Avatar for shadwickman
0
125
Member Avatar for krishnampkkm

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

Member Avatar for krishnampkkm
0
107
Member Avatar for jahanna

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?

Member Avatar for simulanics
0
652
Member Avatar for anusha88

hii,im new to java graphics.can anyone tell me how to create a circular slider(like a Jslider just its circular in fashion).

Member Avatar for smilingruheena
0
99
Member Avatar for mybluehair

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 …

Member Avatar for BestJewSinceJC
0
82
Member Avatar for lithodora

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){ …

Member Avatar for foryounow
0
139
Member Avatar for keepbusy

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 …

Member Avatar for keepbusy
0
102
Member Avatar for kunalashar

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 …

Member Avatar for cartman714
0
176
Member Avatar for timb89

(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 …

Member Avatar for kvprajapati
0
172
Member Avatar for monurenjith

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 …

Member Avatar for Tassilo
0
97
Member Avatar for gingank

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: …

Member Avatar for gingank
0
96
Member Avatar for drakkn

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.

Member Avatar for kireol
0
109
Member Avatar for DealthRune

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, …

Member Avatar for DealthRune
0
143
Member Avatar for lkinnyc

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 …

Member Avatar for Atli
0
1K
Member Avatar for justted

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 …

Member Avatar for somedude3488
0
109
Member Avatar for akkkk

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 …

Member Avatar for akkkk
0
214
Member Avatar for tiger86

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.

Member Avatar for almostbob
0
124
Member Avatar for serkan sendur

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.

Member Avatar for serkan sendur
0
77
Member Avatar for tillaart36

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, …

Member Avatar for no_spam_for_dan
0
2K
Member Avatar for bharanidharanit

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 …

Member Avatar for Dave Sinkula
0
358
Member Avatar for BradenMurphy

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 …

Member Avatar for BradenMurphy
0
2K
Member Avatar for kostasxx

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 …

Member Avatar for Dave Sinkula
0
132
Member Avatar for drugoholic

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 …

Member Avatar for Airshow
0
173
Member Avatar for Killer_Typo

[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 …

Member Avatar for dmanchester
0
1K
Member Avatar for MrNoob

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 …

Member Avatar for Tom Gunn
0
378
Member Avatar for jcmeyer

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 …

Member Avatar for jcmeyer
0
132
Member Avatar for hughesadam_87

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 …

Member Avatar for hughesadam_87
0
138
Member Avatar for drjay1627

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 …

Member Avatar for jlm699
0
98
Member Avatar for Zcool31

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. …

Member Avatar for Zcool31
0
232
Member Avatar for kaex21

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!

Member Avatar for Atli
0
85
Member Avatar for nickj

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 …

Member Avatar for Atli
0
241
Member Avatar for lotrsimp12345

[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 { …

Member Avatar for lotrsimp12345
0
124
Member Avatar for giora88

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 …

Member Avatar for Salem
0
125
Member Avatar for Niner710

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] …

Member Avatar for Dave Sinkula
0
2K
Member Avatar for Suraj Nayak
Member Avatar for darkphotn
0
148
Member Avatar for julia2009

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.

Member Avatar for ArcRoyal
0
1K
Member Avatar for swati11

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 …

Member Avatar for wildgoose
0
76
Member Avatar for Pikachumanson

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 …

Member Avatar for Pikachumanson
0
264
Member Avatar for thegirlatomic

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. * …

Member Avatar for Atli
0
190
Member Avatar for Cman2020

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' …

Member Avatar for Ramy Mahrous
0
187
Member Avatar for deepak_8917

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 …

Member Avatar for anubina
0
214
Member Avatar for SusanHAllen

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" …

Member Avatar for Ramy Mahrous
0
225

The End.