199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Tony0930

I am almost done developing this e-commerce site and my client just asked me to add a shopping cart. I have some templates, but I want to start from scratch, is there a specific way of starting to do it? What should I consider when building a shopping cart?

Member Avatar for Shanti C
0
111
Member Avatar for Tony Barber

Hi, I am connecting a scanner to a USB port. The scanner works as a com port connection. Before I can talk to the scanner I need to know which com port the scanner is using. When I know which com port it is on I can wake it up …

Member Avatar for Tony Barber
0
934
Member Avatar for gp04lch

hi guys, i have a databound listbox. the problem is i can't save the last record i entered without clicking some other record first. the datatable just does not treat it as an added or modified record. why is this so? regards, Han

Member Avatar for gp04lch
0
179
Member Avatar for 2fac323

My program reads the data from the infile. But outputs the wrong results accept for lowest temperature -21 which is correct. I have played with the while loop where I believe the problem lies but have been unsuccessful in getting the right results. Can somebody steer me in the right …

Member Avatar for ArkM
0
523
Member Avatar for zyaday

I paint a lot of images on my screen before the JFrame is displayed...It takes along time..what can i do to make the image load faster..

Member Avatar for sciwizeh
0
94
Member Avatar for sepiso

Hi , Kindly assist me with resolving this defect from the testers team. am new to python. the defect is as follows: "A small code change must be added to checkif the password that has been received from the API call compares to "clear|......". If this is the case then …

Member Avatar for Gribouillis
0
91
Member Avatar for dmmckelv

Can anyone help? I have been fumbling around with a SQL statement for days trying to make this work. I am looking for a Statement that will output a table based on an incremented number. Example Table1: Value1.......Value2.......Incremented Number 14...............null.............1 12..............15...............2 12...............98..............3 15...............14..............4 17...............15..............5 1.................14..............6 5.................98..............7 Example Table2: Value1.........Value2 X030............1 …

Member Avatar for Sulley's Boo
0
153
Member Avatar for NCX001

Hey guys, I'm kinda new to this whole programming thing so bare with me please. I have a little problem that I just can't seem to get my hear around. I have a working on an inventory management page. It keeps track of what software is installed where and how …

Member Avatar for taramichael
0
140
Member Avatar for sciwizeh

Hypothetically, say i want to know how may times anyone has clicked a button in an applet. NOTE: this is not what i actually want to do but it is a good example. more specifically i have a text file in a jar, along with classes, called clicks.txt. every time …

Member Avatar for sciwizeh
0
113
Member Avatar for PaulNickel

Hello everybody, I have been working on this code segment for about three days and cannot figure out what is causing this error. I am trying to get a specific value out of an arraylist of sorted objects. Here is the code: [code=java] public RateEstimator getMinRate() { // return null …

Member Avatar for PaulNickel
0
116
Member Avatar for sameer123

i want to create a file exactly like pickled file using C program in Qt without using python. this file will be read by python (unpickled ) to initialize some properties. Or Is there any way one can know the exact syntax of pickled file n then write it using …

Member Avatar for sameer123
0
299
Member Avatar for god_1896

hi all; I' am using the encoding type utf8- and its works on the firefox. but when i run my index on the IE 6 and IE 7 it does not detect the utf8. what seems to the problem of this? Can put the type of encoding so that my …

Member Avatar for god_1896
0
97
Member Avatar for clutchkiller

I am just currently getting into programming, and was curious. I know you wouldnt call C an outdated language, but for someone like me, would it be best to learn c++ instead of starting on C? If im correct, C++ is object oriented and C is Structured correct? So if …

Member Avatar for Ancient Dragon
0
113
Member Avatar for swanqute

I need a code that hides the content when clicked and reveal them on demand using javascript. This is in webdesigning anyone to help

Member Avatar for Shanti C
0
189
Member Avatar for kneel

how can the searching code be created? i've made a program named address book. now i wanna make a function that can search an existing contact details from the file through 2 ways 1) search by name 2) search by phone No. kindly define me the code in C++ thx

Member Avatar for Ancient Dragon
0
261
Member Avatar for ramseswar

[code=php]$getm="SELECT player FROM manutd WHERE player='$x'"; $get=$mysqli->query($getm,MYSQLI_USE_RESULT); while($row=$get->fetch_object()) { $name=$row->player; } [/code] is there anything wrong with this code.........................plz help

Member Avatar for ramseswar
0
241
Member Avatar for nzaman

Assign values to two variables. Use comparison operators to test the first value is: *The same as the second *Less than the second *Greater than the second *Less than or equal to the second Would really appreciate it if some one could do this for me cheers!

Member Avatar for Shanti C
0
67
Member Avatar for acchao

Hey, This a bit of a lengthy problem to explain, please bear with me. My goal: Read in a data file (written in ASCII) and convert it to a smaller format (such as binary) The Problem: I start off with a proprietary format called Heim RawData. I currently don't have …

Member Avatar for Adak
0
241
Member Avatar for kava

hello, I'm kinda newbie in databases. I have a table like that: DB is MSSQL 2003 Name is varchar Fruit is int (i used the name just to avoid mess with numbers) the number and the type of the fruit is fixed (in real case are 1,2,3 and 4) Qty …

Member Avatar for cutepinkbunnies
0
167
Member Avatar for PomonaGrange

Hi All, I have been trying to create a php page that will upload a image, create a thumbnai and process a sql query, all automatically. I have attached the two files. The form page (show-addrecord2.php) and the processing page (do_addrecord2.php). The sql statement works fine. I am just having …

Member Avatar for somedude3488
0
108
Member Avatar for SonxQ7

Well i know the basic difference which is in C++ this is a pointer whilst Java is a reference to a class... I have a confusion though since am new in Java, can you reference a super class with "this"? more so, is the an underlying difference between the C++ …

Member Avatar for Alex Edwards
0
165
Member Avatar for sidatra79

Does anybody have any idea why the following code causes a memory error? Thanks everybody in advance :D [code=CPP]#include <stddef.h> // some older implementations lack <cstddef> #include <time.h> #include <math.h> #include <stdlib.h> #include <vector> #include <algorithm> #include <list> #include <deque> #include <set> #include <iostream> #include <iomanip> typedef double element_t; using …

Member Avatar for ivailosp
0
90
Member Avatar for breakbone

Hi, I'm writing a simple echo/chat GUI server using wxPython. I made a separate thread for the server. The only problem I have is that when I try to close the server it hangs in socket.recv() thus hanging the whole thread. How can stop the socket from receiving from the …

Member Avatar for breakbone
0
163
Member Avatar for FreezeBlink

I know, this is a stupid question, but is it possible for a class to have two variables, one of which has a value, and the other of which will [i]always[/i] hold the same value, unless the user changes it? In essence, making the second variable a duplicate of the …

Member Avatar for Gribouillis
0
116
Member Avatar for monjuri

hello everyone. i m monjuri. i want to find out the execution time of a C program. it works fine. but i want the time in milisecond or microsecond. Can anybody help me??? here is my code: /*insertion code*/ #include <stdio.h> #include <time.h> #define maxsize 10 int A[maxsize]; int value,j,i; …

Member Avatar for ArkM
0
152
Member Avatar for ChrisP_Buffalo

How do I test a byte string in Python? I want to manually convert (no libraries or functions) a UTF-8 string into UTF-16. My basic solution is to reading from the stream some number of UTF-8 bytes, convert them into codepoints, then convert those codepoints into UTF-16 bytes. I want …

Member Avatar for ChrisP_Buffalo
0
152
Member Avatar for kavithabhaskar

this is my code.. i got both my work database and my master database on the datagrid views in my form...but how do i go about comparing.. and generating the crystal report ? [QUOTE] imports System.Data.oledb Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles …

Member Avatar for kavithabhaskar
0
152
Member Avatar for tonyaim83

Hi I m trying to create a map of STL which has set as one of it's element. Following is snippet of my code [code=c] .. std::map<std:string,std::set<int,int> > map_of_set; int a=9; int b=10; std::string str="test"; map_of_set.clear(); map_of_set.insert(test,9,10); //This gives compilation error [/code] kindly help

Member Avatar for sidatra79
0
146
Member Avatar for Das246

I have a script with a wx.Python GUI that monitors game files for changes and then makes a .tar.gz backup of each turn. If I run the test script (.py extension) the program works well and I can play the game without noticing the python script running in the background. …

Member Avatar for vegaseat
0
288
Member Avatar for vegaseat

I keep hearing that Python is about as slow as Java. Does anybody have experience with speeding things up?

Member Avatar for Gribouillis
0
493
Member Avatar for 2fac323

This program needs to read the infile and calculate the temperatures for each function. I can only get it to output 0's. Can someone explain the steps needed to make this code work correctly? What am I missing? Should I be passing by reference? If so how?? [ICODE]#include <iostream> #include …

Member Avatar for 2fac323
0
165
Member Avatar for rich_m

I want to write a MySql procedure which returns a formatted XML file i.e. 'OUT BLOB'. Has anyone come across such a procedure or is it better to make a Java etc... code do the same?

Member Avatar for rich_m
0
85
Member Avatar for Clockowl

Hey guys, I'm parsing this WaveFront .obj file, still (for those that have read the previous post), but it has some really weird error in it that I haven't seen in a program before. The parsing algorithm starts out like this: [code]Open the file in textmode. Get filesize Allocate buffer …

Member Avatar for Prabakar
0
383
Member Avatar for Lukezzz

I have declared a vector with 3 Dimensions with the first code below. Then I have managed to push_back all the 3 dimensions so my vector is filled up like this: vector1[2][2][2] [code] typedef std::vector<string> String1D; typedef std::vector<String1D> String2D; typedef std::vector<String2D> String3D; String3D vector1; [/code] What I now need to …

Member Avatar for ArkM
0
2K
Member Avatar for kneiel

This one is on References. [url]http://publib.boulder.ibm.com/infocenter/comphelp/v8v101/index.jsp?topic=/com.ibm.xlcpp8a.doc/language/ref/cplr110.htm[/url] in the above link (from IBM), they clearly mention that a reference to a (pointer to a reference ) is not allowed.They also say that a reference to other references is not allowed. However, when i tried out both these cases in code, it …

Member Avatar for kneiel
0
135
Member Avatar for veledrom

Hi, Javascript below doesn't work. It always retuns false. Where is mistake? thanks [code] <script Language="JavaScript"> function validateAreas(){ if (document.form1.selectS.value=="") { alert("Please select a S"); form1.selectS.focus(); return false; } return true; } </script> <form name="form1" method="post" action="" onSubmit="return validateAreas();"> ..... <select name="selectS"> <option selected="selected"></option> <?php $q="SELECT id FROM spp"; $run=mysql_query($q); …

Member Avatar for veledrom
0
85
Member Avatar for pauljahill

I am trying to create a program that will count and display the number of vowels, consonants, spaces and full-stops within a 50 character limit. There is one error that the compiler keeps bringing up and when i try to fix it by changing the text it creates more errors …

Member Avatar for Major Major
0
122
Member Avatar for plike922

I cant find anything wrong with my program, any suggestions? [CODE]#include <stdio.h> #include "simpio.h" #include "strlib.h" #include "random.h" int main() { int s, r, h, w, l, t, shape; string box; string cube; string cylinder; printf("Please enter the shape; "); shape = GetLine(); switch(shape) { case 1:cube();break; case 2:box();break; case …

Member Avatar for @bhi
0
195
Member Avatar for charbel007

Hello Everybody In Php iam using the checkbox and it has been one month i can not solve it; when i select one checkbox from several ones , and i click send e-mail= it is sending to all e-mails; it is not sending to the selected checkbox ; I need …

Member Avatar for charbel007
0
800
Member Avatar for pardeep3dec
Member Avatar for tzushky

Hello, long time no see... I've been getting along fine with Python lately and I just need to ask you a question: Is it possible to just write to, NOT OVER , an Excel file, in a certain area, using a certain python module?. This way results from an application …

Member Avatar for Gribouillis
0
2K
Member Avatar for dophine

Hi all, I just wrote a small problem to check gettimeofday in a multi-cores environment. [code] int timediff(double fTimeQvs, double fTimeTcp) { int iTimeDiff; iTimeDiff = (((((int)fTimeQvs)/10000) - (((int)fTimeTcp)/10000)) * 3600) * 1000000; iTimeDiff += ((((((int)fTimeQvs)/100)%100) - ((((int)fTimeTcp)/100)%100)) * 60) * 1000000; iTimeDiff += ((((int)fTimeQvs)%100) - (((int)fTimeTcp)%100)) * 1000000; iTimeDiff …

Member Avatar for Salem
0
202
Member Avatar for selvaganapathy

Can any one tell about the difference between the Abstract Class and Interface? Can abstract class replaces Interface? If all things can be done in Abstract class Why we need Interface?

Member Avatar for selvaganapathy
0
88
Member Avatar for djhao79

Hello guys, I'm a newbie here. I am just a beginner programmer and taking up VB.Net. However, we are currently on Program Logic Design topic. Our instructor gave us an assignment on FLOWCHART design. Can somebody here help me with my assignment. Below are my assignments which is due on …

Member Avatar for Salem
0
152
Member Avatar for karabela

im a beginner in C sharp. im stuck with the following. i hope someone can get me on the track again. i want to add a validation for user input such as making sure the year of the yearTextBox is not greater than the current year +2. [CODE]private void yearTextBox_Validating(object …

Member Avatar for selvaganapathy
0
332
Member Avatar for vedmack

Hi I need to find out if a specific cmd window is opened on the pc, and I need to hide it I looking for that cmd window by its name (cause i know it ) Ive used the EnumWindows with a callback function: [code] BOOL vFound=((::EnumWindows(mFindWindowOnlyByCustomTitle,0))); [/code] and this …

Member Avatar for Ancient Dragon
0
140
Member Avatar for JackDurden

I think I have a memory problem since this code keeps outputting large negative numbers. The file that it reads includes- lastname, firstname, identification number, then 5 decimal numbers. ZDoes anyone know what the problem is? [CODE]#include <iostream> #include <iomanip> #include <fstream> #include <string> using namespace std; const int rows …

Member Avatar for JackDurden
0
82
Member Avatar for JyotiC

Hi, I have an xml file, corresponding to an xsd. If there some tool, which would take this xml and xsd and give me an object. And also take the object and xsd and give me xml. I read about couple of tools like JAXB, xstrem and xmlBeans. The issue …

Member Avatar for sciwizeh
0
121
Member Avatar for nzaman

Can any one please create a php script for me. A script that uses the if....else statement to categorise the marks of a student as First Class,Second Class Upper, Second Class Lower, Pass Or Fail.

Member Avatar for nzaman
0
112
Member Avatar for nzaman

The End.