199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tendaimare

I am going through some tutorials in java and I would like to do my first insert into an SQL express database using java .I saw some tutorial recomending jdbc insert. I would like to know which is the best and most reccomended way to carry out an insert into …

Member Avatar for tendaimare
0
161
Member Avatar for Kirielson

Hello, I am trying to implement a version of the cubic spline based on the artilce here: [Click Here](http://en.wikipedia.org/w/index.php?title=Spline_%28mathematics%29&oldid=288288033#Algorithm_for_computing_natural_cubic_splines) and while implementing it I find errors that my indices are out or range such as: ` h[i]=(n[i+1]-n[i]) IndexError: list index out of range ` Here's a part of the code: …

Member Avatar for Kirielson
0
331
Member Avatar for MrEARTHSHAcKER

Hi, I have read something on IBM's site about exception specification and pointers to functions: void (*f)(); void (*g)(); void (*h)() throw (int); void i() { f = h; // h = g; This is an error. } IBM says: > The compiler allows the assignment f = h because …

Member Avatar for MrEARTHSHAcKER
0
197
Member Avatar for UnhingedToker

I have an image consisting of lot of different frames. There are a lot of transparent pixels in the frames. I have to split the image into individual frames and iterate over the pixel data in an input image/buffer and copy out rectangular regions containing non-transparent pixel data into individual …

Member Avatar for JamesCherrill
0
170
Member Avatar for tahsin.rahit

The problem is, when I load a particular page (user.php) the session variable not work. But on the other pages it works fine. Even in my local host user.php also works fine. Only user.php on remote server is occuring this problem. This is login script <?php require_once 'inc/functions.php'; require_once 'inc/mysql_cnct.php'; …

Member Avatar for tahsin.rahit
0
6K
Member Avatar for prajot_03

how to deduct qty from data base i have used this sentex to deduct...... cm1.CommandText = "update inventory set qty=qty- " & cust_gv.Rows(i).Cells(3).Value() & " where item_name='" & cust_gv.Rows(i).Cells(1).Value() & "'" this sentex is giveing error

Member Avatar for thines01
0
153
Member Avatar for vedro-compota

Hi there!) Guys please tell me - where can I see the realization (or custom realization) of fprintf in C++ ? I'm especially interesed in working with no fixed number of passed parameters. I need to made somethings like fpintf() by myself but i don't know how.... big thanks in …

Member Avatar for vedro-compota
0
181
Member Avatar for pokie_da_codie

Instead of using User input , how can I take an parameter input and convert it to a string, where I can than check for for input values. char values[17] = "0123456789ABCDEF" ; char numIn[15]; int num[15]; int ob, nb, i;

Member Avatar for thines01
0
288
Member Avatar for skyshare

I have two tables containing different fields bar one. I want to merge the two subject to comparing one field using sql - is it possible? Table1 has fields: conkey reg when where 1 ABCDE 251011 EGLL 2 BCDEF 261011 EGLL 3 DEFGH 271110 EGKK Table2 has fields: conkey type …

Member Avatar for skyshare
0
71
Member Avatar for Iamateur

As the beginner I want to know Is it necessary to add MDI parent for Library management System? Can this be done without MDI Parent too? And also is it necessary to add the below code for mdi parent of every project? Private Sub ShowNewForm(ByVal sender As Object, ByVal e …

Member Avatar for Pgmer
0
189
Member Avatar for bangor_boy

Need some help, practising for an exam and need to make sure I have got this right as it has came up a number of times. Here is the information from a relational representation and I have drawn a ER diagram for this, can someone please tell me if I …

Member Avatar for bangor_boy
0
292
Member Avatar for 4evrmrepylrning

A while ago I created a PHP application that looks at xml files. I have now been tasked with converting this to Python or Django or Turbo gears(anything as long as it's Python something). I am new at Python and while I have played with Django a bit I have …

0
171
Member Avatar for jimoaks

Hello, I have two problems. First, I am trying to have a set background image that displays with two jbuttons on the bottom. My error is that when the back ground image is displayed it hides the buttons (until you mouse over them). Second, I want the buttons on the …

Member Avatar for JamesCherrill
0
402
Member Avatar for riahc3

Hello Im making a application which needs some administrator priviliges. The thing is that this besides 7 will also run on XP. Ive been told that changing in the app.manifest the requestedExecutionLevel is one step as this basically will require a admin <requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3"> <!-- UAC Manifest Options If you …

Member Avatar for riahc3
0
132
Member Avatar for tariqi2011

Hi i want to join two tables,'Employee' and 'Dispatch'. Dispatch has column 'DispatcherID' and 'TechnicianID' which are both foregn keys to EmployeeID in Employee table.I want to join these two tables using EmployeeID so that i can obtain the matching name to each id.but it only works when i make …

Member Avatar for tariqi2011
0
206
Member Avatar for stakeMyHeart

i need a topic for thesis proposal. please suggest some ideas. i'm thinking of natural language and AI but .. I'm not sure of it. I want something that can be very helpful and significant. Actually I want something to help the government, but I don't know what they need, …

Member Avatar for advgarg
0
383
Member Avatar for newbie26

[QUOTE=mb01a;1655781]Let me think about that .. How about - [code] dim sql as string sql = "select tablename.* from tablename limit 5" ' other things you'll need are defined elsewhere in your program [/code] Now, you'll need to add the code that connects to mysql, then open the recordset and …

Member Avatar for newbie26
0
355
Member Avatar for newbie26

hey everyone.i have a project that requires the use of a barcode scanner then apply it to a vb6 application i dont know how to do this. the barcode scanner will read the barcode from the id of an employee. then after reading it, all the details of that employee …

Member Avatar for newbie26
0
1K
Member Avatar for newbie26

im working on a password verification(php) form when the user wants to change his/her password. new password will be typed twice for confirmation. if the passwords didn't match, a message box will appear (javascript). it already worked but my problem is when that message box appears, all the other fields …

Member Avatar for newbie26
0
141
Member Avatar for FraidaL

This is a minor issue that I'm having in a larger program. The program is for factoring a second degree polynomial. The function below is supposed to find the factors, which is does, but let's say a=6, b=1, c=-12 so a*c=-72 and I want the two numbers that will add …

Member Avatar for histrungalot
0
637
Member Avatar for honeybee2090

i want to show a message msgbox " you have done" if web browser contains "you have login" if WebBrowser1.Document ????????????? then masgbox "done"

Member Avatar for ChrisPadgham
0
173
Member Avatar for adeel381
Member Avatar for while(!success)

Hey guys, I'm trying to make my first iphone application and have encountered some errors as expected. I am trying to uitlize UIAlertView to check if the setter for a password and email instance has been filled. If they are nil, then the alert should be invoked and display the …

Member Avatar for ChrisPadgham
0
141
Member Avatar for Thethief92

Can anybody please help me with these questions. I have an upcoming exam, and I'm sure this question will appear. Thank You. (a) What is exception handling? (b) Write a C# code segment that demonstrates how to catch an exception when a String variable cannot be converted to an Integer …

Member Avatar for skatamatic
0
110
Member Avatar for jogieglenmait

how do i print a 2d array in a javascript without leaving the form. because whenever i click a button, an element is added to the array but it shows it in a different page here is my code function addNumbers2Array() { MultiArray [x] = new Array(6) MultiArray[x][0] = parseInt(document.getElementById("latitude").value); …

0
103
Member Avatar for straylight

I am having some problems working with the tell method when working with a file. Basically what I am trying to do is use the tell method to find where I currently am within a paragraph and to only display the characters up to a certain tell count. For example: …

Member Avatar for TrustyTony
0
288
Member Avatar for bgx90

This is my first time to try using STL maps. The code looks correct as far as I can tell, but when I try to compile a test file that does nothing but include the header for the class and declare a variable of that class, I am getting compiler …

Member Avatar for bgx90
0
3K
Member Avatar for FraidaL

This code is supposed to find the nth prime number (n being input by the user). I have the code to calculate whether a number is prime or not, but I don't know how to get the code to display the nth prime number. #include <iostream> using namespace std; void …

Member Avatar for WaltP
0
1K
Member Avatar for pokie_da_codie

Can anyone help me make a code or advice I need a code that takes 2 parameters eg. integer 123 and base number from 2 to 16. Using argv[1] and argv[2] any help greatly aprreicated

Member Avatar for WaltP
0
80
Member Avatar for kiail

I need to fill an array according to the order of number in a string of text a user provides(a telephone number). For example if the number 555-5142 is dialed, the first 3 numbers are five, so char firstLetter, secondLetter, and thirdLetter would be filled with 'J','K,'L'. I've looked at …

Member Avatar for thines01
0
146
Member Avatar for zacharysr

I know the title sounds like an easy thing to do. But its not. I want to check that my user's message has 2 -'s in it. Then replace the first - with <s> then the second one with </s> and i dont know how to check for to dashe's …

Member Avatar for jeremym001
0
374
Member Avatar for justindill

Need to add a JCombobox to select the user’s State of birth, and a JRadio buttons to indicate their gender. Also, add a JTextArea to the form. Once the user clicks on the JButton the application will display all of the user’s information in the JTextearea. All the classes work …

Member Avatar for NormR1
0
143
Member Avatar for padraga

Hi, I am quite new to C++, Currently, I'm learning how to do a problem which will take a text file of thousand most common words in the english dicatonary with another text file. After finding how many words are in said text file show the percentage of which are …

0
110
Member Avatar for suneye

hello, I have a camera that will be connected to a DVR. I want to save the recordings to a database inorder to use this recordings in a program that i will develop later. do any one know how to connect the DVR to the database or make it save …

Member Avatar for BobS0327
0
315
Member Avatar for Wolxhound90

Hey guys, I have some code which returns the column names, but not the actual data. Here is the code I have: $success = mysql_query($final) or die(mysql_error()); echo "<table><tr>"; foreach($_POST['fields'] as $f){ echo "<th>".$f."</th>"; } echo "</tr>"; $i=0; while($row = mysql_fetch_assoc($success)){ echo "<tr>"; foreach($row as $r){ echo "<td>".$r."</td>"; $i++; } …

Member Avatar for Wolxhound90
0
105
Member Avatar for Nathaniel10

I have searched for and read through over 50 examples of linked lists. I can barely make heads or tails out of them. Some are in C, some are in Java, some use templates, most only discuss theory and display flowcharts but have few explained examples. I need serious help! …

Member Avatar for Nathaniel10
0
299
Member Avatar for jtaylor-bye

Hi all. I am a newcomer to python and I am teaching myself from books, videos and on-line tutorials. I currently have a basic script I am working on (can't post the code right now as I'm away from my laptop), and I cannot figure out how to do what …

Member Avatar for jtaylor-bye
0
103
Member Avatar for Griff0527

I have pretty much failed my class (4 weeks behind in an 8 week class that is currenlty at the beginning of week 8), but I am wanting to learn C++ for myself anyhow. I have visited http://www.cplusplus.com/doc/tutorial/ and gone through the tutorial, but cannot understand this assignment. I have …

Member Avatar for Lerner
0
2K
Member Avatar for Smithers
Member Avatar for davesexcel
0
263
Member Avatar for paruhang

hi everybody, iam new to this website and php as well. i get public and private key from recaptcha i have problem in captcha where to post, can anybody help me. i'll be greatful BEFORE PUTTING RECAPTCHA IN COMMENTS.PHP it worsk on page <html> <body bgcolor="000000" text="ffffff" > <center> <form …

Member Avatar for diafol
0
272
Member Avatar for johndohmen1963

hi hope someone can help me i have //get the current date $dateend = date("Y-m-d");// current date //datebegin is current date -99 years $datepast = strtotime(date("Y-m-d", strtotime($dateend)) . " -99 year"); $datebegin = date('Y-m-d', $datepast); // Connect to server and select databse mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select …

Member Avatar for johndohmen1963
0
100
Member Avatar for hwoarang69

*i am trying to copy the value of ar2[10] //in main. has the value 1,2,3,4,5 in ar[10] //(in struct node). empty array so to copy the value iam not sure if i could use a strcpy for ex, strcpy(head->ar, ar2); //here is my code struct node { int ar[10]; //empty …

Member Avatar for hwoarang69
0
148
Member Avatar for thorpntell

Okay, I know there is a prior article about this, but I used { } with my if statements, and it's still not working... is it because I have multiple if statements consecutively after another? #include <stdio.h> #include <stdlib.h> #include <time.h> int i, n,t, s[51],p=1,a,b,c; int main() { srand(1); for(i=0;i<=51;i++) …

Member Avatar for scudzilla
0
4K
Member Avatar for Mopikope

I am in the process of creating a jackpot game. At the moment I am stuck trying to cycle through the different pictures and stop on a random picture for 5 different slots. So far I have this for animating: private void animatePictures() { Thread timer = new Thread() { …

Member Avatar for NormR1
0
236
Member Avatar for apanimesh061

I am trying to implement ROCK algorithm in JAVA. It is used to cluster categorical data. I have like N statements that are to be clustered. This is a good example of this algorithm: faculty.ksu.edu.sa/ykhlef/mscThesis/clustering-P1.ppt I have coded till number of links for each cluster. But I cannot understand how …

Member Avatar for NormR1
0
103
Member Avatar for tallygal

I'm trying to print the selection of my picturebox as the background of the image. I can get the image to show, but it's not the height and width of the background. Any help would be appreciated. Thank you. ' Fig. 15.24: CheckWriter.vb ' Printing a paycheck. Imports System.Drawing.Printing Imports …

Member Avatar for tallygal
0
790
Member Avatar for mehnihma

How can I turn radio button in another class which I cannot change but I need to turn it on from another class? How can I pass action event to it? Thanks

Member Avatar for mehnihma
0
225
Member Avatar for Rasool Ahmed

Hi guys, I'm programming a firewall and so far I have complete the driver coding, but I don't know **How to send IRPs from user applicatio to the dirver?** I have used `IoCreateSymbolicLink` to establish the connection between the usermode and kernelmode but I don't know how to send information …

Member Avatar for nullptr
0
921
Member Avatar for Rahmania03

Hello Friends, I m Developing an windows form application. i have a winform on which i have datagridview and i am saving the data to Sql Server database from datagridview directly . i m using the following code for connecting & saving data of datagridview to database using button click …

0
116
Member Avatar for phorce

Hello, I have been reading an article on comparing data, and have been given this code: for(i = 0; i < matrix1W; i++) { for(j = 0; j < matrix2H; j++) { diffSum += abs(matrix2->pData[(row+j)*backW+(col+i)] - marix1->pData[j*matrix2+i]); } } Now it works when using arrays, but, I'm using vectors, is …

0
303

The End.