199,114 Archived Topics
Remove Filter ![]() | |
I'm having a little difficulty, trying to transition from c++ to objective-c. I tried to write a fairly simple Fibbonacci sequence computer, which I usually write to familiarize myself with new languages. Unfortunately, it doesn't work. I keep getting errors related to either comparison between an int and a pointer, … | |
Hello Everyone. I'm working on a Calculator for a game. So i decided to try to code the calculator to be as user friendly as possible. What i need help with is the following; Changing the effects of another form dependent on the button i click on my mainform. Example; … | |
Hi, I'm new to junit. I want to create test cases for if condition,loops. do we have any guidelines to write test cases for if conditions.Can any1 explain with an example. Thanks in advance. Lavanya | |
Hello Im using org.apache.commons.net's FTP object to make FTP transfers. The problem is that when the IP is down (example, the PC is turned off) a exception saying "No route to host" pops up and not only delays my program but gives a nasty error. How can I avoid this? … | |
Hey, new to java, but trying to build a text-based adventure game similar in gameplay style to the original Zork series. http://pot.home.xs4all.nl/infocom/zork1.html This is not homework. It started as a way to practice what i've learned, but now I am determined to make this work with the simplest code possible. … | |
there is some problem fetching data from csv file to database: code, database,csv data and error image is attached please mention the problem. thanks in advance :-) php code: <?php /********************************/ /* Code at http://legend.ws/blog/tips-tricks/csv-php-mysql-import/ /* Edit the entries below to reflect the appropriate values /********************************/ $databasehost = "localhost:3307"; $databasename … | |
So I'm parsing a CSV and trying to create a new object from each record. Using BufferedReader != null runs thru the file just fine. Now I use string.split method to put each line into an array. Ideas on how to use the values in the array to create the … | |
public void inOrderTraversal(TreeNode node) { if(node == null) { return; } inOrderTraversal(node.getLeft()); System.out.print(node.getKey() + " "); inOrderTraversal(node.getRight()); } I wrote this code for going through a binary search tree and printing out the items in order from low to high. it works just fine but i need to get it … | |
I am having trouble figuring out how to handle events for components that are created when I click a button. I have a class called rows which is used to create a row of components (combo boxes) . I have a button on my form that has an event to … | |
Hi there, newbie to python and in need of help for an assignment. I have to write a Python program that prompts the user to input the before-tax price of an item and the payment from the customer. It should then perform two tasks. First, compute and display the after-tax … | |
Private Sub Cmd_Print_Click() 'On Error GoTo Error_Handler If newflag <> 0 Then MsgBox "Inserting New Record Mode, Press EXIT Button To Return To Normal Mode", vbCritical, "Attention" Exit Sub End If If RepNo.Text = "" Then Exit Sub Dim Report As New rstoreinmaterial Report.RecordSelectionFormula = "{DetailsStore_InOut_Material.RepNo}= " & Val(RepNo.Text) & … | |
hey guys i need help for adding values of two or more fiels using ms access, adodc, and datagrid in vb6.0 . example of these is book quantity field with book title field with different titles. i need help ASAP for my library system project. help me please. help for … | |
I have a url that includes %25 (/CHIPDRIVE%25AE-micro-pro-SCR335_detail_8_196.html) and I am trying to use a Redirect to redirect it to the new URL. Currently using a Redirect 301 and it is currently not working. | |
Hi hope someone can help I have an array with daynames in dutch but when i use the day zondag it is not workin and i don't know why Can someone help me to make it work here is the code if($row3['geboortedatum']!= "0000-00-00") { $rss = $row3['geboortedatum']; $dayNames = array( … | |
I downloaded Python 3.2.3 from the python.org web site. However, when I click to launch the python command line the initial message from windows is as follows: "Please waite while windows configures python 3.2.3. Using this link Python 3.2.3 Windows x86 MSI Installer (Windows binary -- does not include source) … | |
hi! I'm pretty new to php and i just want to ask how to update tables in mysql using php? here's my code snippet $product_code = $_POST['pCode']; $submit = $_POST['submit']; $user = $_SESSION['username']; $quantity = $_POST['quantity']; $price = 300.00; $date = date("Y-m-d",mktime()); require('connect.php'); if($submit) { if($product_code) { mysql_query("INSERT INTO `order` … | |
I have never used a background worker in vb.net, but from what I have read, I think it will help resolve an issue I am having during runtime. I am executing an sql statement, but it takes a bit to process. I think a background worker could help with this … | |
Good Day i just wanted to ask what does (x1, y1, x2, y2) in g.drawLine in creating a line in java applet.. thanks in advance | |
Somehow I am unable to fire the onerror event or get the code in the onerror to work. This code is an attempt to collect a sequence of images in an array. I am using onerror event in order to mark the end of sequence and thus terminate the loop. … | |
alignas (since C++11) alignof (since C++11) and and_eq asm auto(1) bitand bitor bool break case catch char char16_t(since C++11) char32_t(since C++11) class compl const constexpr(since C++11) const_cast continue decltype(since C++11) default(1) delete(1) do double dynamic_cast else enum explicit export extern false float for friend goto if inline int long mutable … | |
#include<stdio.h> #include<conio.h> main() { int a[5],priority[5],adj[5][5]={0},i,j,k; a[0]=3; a[1]=4; a[2]=5; a[3]=7; a[4]=10; adj[0][1]=1; adj[0][2]=1; adj[0][3]=1; adj[1][0]=1; adj[2][0]=1; adj[2][4]=1; adj[3][0]=1; adj[4][2]=1; /* the ads[4][4] represents the linking edges adj[4][4]= 0 1 1 1 0 1 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 1 … | |
Is method B any faster than method A below? I have legacy code written with method A and I need to know if there would be a performance increase if I modified it to use method B or is it just semantics? **Method A (Using pointer)** for(vector<TriggerAlgorithm*>::iterator it = _pTrigs.begin(); … | |
Hi everyone i'm using vb 2008 for this project and i'm still not so familiar with it so please help me... I'm trying to display image from MS Access database to another form picturebox but its not working. this is the error i always encounter -> (System.ArgumentException was unhandled Message: … | |
Hello. I am having a tough time understanding the concept of double linked list. For now, i understand double linked list has 2 links, one forward and another one previous. data is in the middle. when inserting must check where to insert. if previous is equal to null, then can … | |
Is it possible to disable right click on webpage and disable save as option of browser's file menu?I have searched on google but i didnt get the working code.If possible then please tell me the way. | |
so i decided to try sfml, and i used the sample from the website to see if its working. heres the code //////////////////////////////////////////////////////////// // Headers //////////////////////////////////////////////////////////// #include <SFML/Window.hpp> //////////////////////////////////////////////////////////// /// Entry point of application /// /// \return Application exit code /// //////////////////////////////////////////////////////////// int main() { // Create the main window … | |
Hey all, I'm new to MySQL and never took a class in it. I have two questions. 1)) Can anyone suggest a good book to learn MySQL quickly. 2)) Can someone tell me how to set up a database that contains user accounts that can then be linked to other … | |
[CODE]public class MinDif { public static void main(String[] args) { EasyReader keyboard = new EasyReader(); EasyWriter screen = new EasyWriter(); //Create an array to the length of the specified entry int numItems=keyboard.readInt("Enter the length of the array: "); String[] myArray = new String[numItems]; // Read in the contents of the … | |
can anyone convert this code to GUI?? I really don't know where to put the GUI codes in it.. :( please help.. :( import java.util.Scanner; //main class public class Main { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter the size of the array: "); int … | |
Write an application that prints a summary report for a poultry farm. The farm has seven (7) chicken coups each numbered 1 to 7. When a farmer collects eggs each morning and evening, he records the coup number and the number of eggs collected from the coup. The data for … | |
Hello all nice coders :) i have a question about a function i have that uses an class as input. hmm prob easier to explain after i show some code! class customer { public string number, name, phone; public void newcustomer(customer custom) { //write to a database //using the strings … | |
HI, I want to implemtna a file & filter architecture for reading data from a txt file and then removing the non alpahbatical words in it and display the 20 words in alphabatical order in the Consol window. how do i do it. appreciate a reply, thanks | |
I am working on a project in which video streaming is required .In this project i used flowplayer.Is it possible in flow player to hide the video url? I am also needed to view pdf files in iframe.In it,is it possible to hide url of pdf file? | |
how do i link ms access 2007 with microsoft visual basic 6.0 | |
can c connect with database like mysql,access or sql server ? | |
Hello, I am struggling to find out what im doing wrong in this code. I am new to programming and i am stuck. Ive altered my original code after finding great help online but i am stuck...again. any help will be greatly appreciated. public class CreateDelivery { public static void … | |
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in G:\xampp\htdocs\Thorndon.php on line 57 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta name = "description" content = "Wellington Real Estate"/> <meta name = "keywords" content = "home, housing, Karori, Mirimar, Te Aro, Thorndon, … | |
What are the constraints on the argument values of these two methods, and explain what the method does. int power( int base, int exponent) { if (exponent == 0) return 1; else return (base * power(base, exponent -1)); } int factorial (int n) { if (n > 0) return (n … | |
Hi All, I am implementing a recursive registry delete using RegOpenKeyEx, RegDeleteKey and RegEnumKey. **Problem::** Though the code works perfectly fine for Vista x86/x64 and Win 7 x86/x64 but fails on XP for some keys in HKCR **Problem Area::** HKCR\Installer\SomeKey **Error Code::** 87 (INVALID_PARAMETER) **Weird Behaviour::** Deletes the key the … | |
Howdy Everyone, I've been banging my head against this for a bit now and have been reading all kinds of things - but, everything I try has failed. So, I thought I'd ask. I've just begun working with Javascript/Ajax .. in the last day to try and accomplish a task … | |
if i divide a float value from 0 then i get output:- infinity and then throws NumberFormatException why can anybody favour me. | |
Hey everyone, I'm using sessions in my application which retrieves the questions and answers asked by users. The tricky part here is how I can know how to allow users that they can edit and delete their own posts. As far as it is concerned, I have got this idea … | |
Hi, I work on Microsoft Windows XP, I have installed - Eclipse(Version: eclips-mobile-juno) - ADT(Version: 20.0.1.v201207132230-403220) - Android 2.2(API 8) But I need to get Android 2.3.3(API 10), so when I select Android 2.3.3(API 10) and try to install, my catalog shows this errors Preparing to install archives Downloading SDK … | |
Hi, I'm wondering how to create a DIV dynamically. Basicly, I have two labels, and depending on which one is clicked, I want some code to appear inside an existing DIV. Obviously, I will need to do this using javascript and the onClick event. To make things even more complicated, … | |
Hi all, i am trying to run the following HTML page which is the memebers area after the user login is sucesful the session is registered please check it and help me:- HTML code:- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <style type='text/css'> /* … | |
Hi, How to do the custom FindBugs in Eclipse. I want to catch the specific bus from code | |
Hello, I am trying to import mysql backup from the old computer to the new computer and these error appears: Pencarian SQL: -- -------------------------------------------------------- -- -- Table structure for table `nafqc_usergroups` -- CREATE TABLE IF NOT EXISTS `nafqc_usergroups` ( `id` int( 10 ) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Primary Key', … | |
Hi this is scorpionz.. i am facing a problem for the last 5 hours as URL file-access is disabled in the server configuration Description: I have a project with path c:/xampp/htdocs/mysite/config.php Thats my configuration file name. I have a folder in root which is getting connection c:/xampp/htdocs/mysite/folder/testpage.php now when I … | |
Hi this is scorpionz: I need to know how to insert PHP block in database using PHP, because i am generating random tables. So i need that to insert: Here is the query: [code] <?php $sql_insert_revisions = 'INSERT INTO node_revisions(nid,vid,uid,title,body,teaser,TIMESTAMP,FORMAT) VALUES ('.$nid_ins.','.$vid_ins.','.$user_id.','.$ad_title_view.', '"<?php $block = module_invoke('block', 'block', 'VIEW', 66); print … |
The End.