199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sinatra87

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

Member Avatar for sinatra87
0
395
Member Avatar for SimonB#2149

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

Member Avatar for SimonB#2149
0
167
Member Avatar for Lavanya1312

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

Member Avatar for JamesCherrill
0
334
Member Avatar for riahc3

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

Member Avatar for Taywin
0
263
Member Avatar for JavaDroid

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

Member Avatar for JavaDroid
0
1K
Member Avatar for muhammad.waleed.9699

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 …

Member Avatar for Squidge
0
306
Member Avatar for crownedzero

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 …

Member Avatar for Taywin
0
260
Member Avatar for cody.reddoor

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 …

Member Avatar for Taywin
0
283
Member Avatar for javanub123

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 …

Member Avatar for javanub123
0
251
Member Avatar for hotblink

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 …

Member Avatar for Xantipius
0
442
Member Avatar for HibaPro

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

Member Avatar for AndreRet
0
516
Member Avatar for ralph.s.bernardo.1

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 …

Member Avatar for AndreRet
0
184
Member Avatar for smitty1140

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.

Member Avatar for smitty1140
0
235
Member Avatar for johndohmen1963

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

Member Avatar for johndohmen1963
0
159
Member Avatar for ejohnson

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

Member Avatar for vegaseat
0
503
Member Avatar for mionazraelmiranda

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

Member Avatar for mionazraelmiranda
0
180
Member Avatar for DelilahDemented

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 …

Member Avatar for nmaillet
0
566
Member Avatar for gelmi

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

Member Avatar for JamesCherrill
0
292
Member Avatar for h0rryp0tter

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

Member Avatar for Troy III
0
351
Member Avatar for logic20

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 …

Member Avatar for Ancient Dragon
0
227
Member Avatar for enakta13

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

Member Avatar for TrustyTony
0
162
Member Avatar for sampsont

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

Member Avatar for Ancient Dragon
0
212
Member Avatar for vistamizer101

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

Member Avatar for TnTinMN
0
381
Member Avatar for Dean_williams

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 …

Member Avatar for Dean_williams
0
239
Member Avatar for daniel36

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.

Member Avatar for daniel36
0
333
Member Avatar for Bumpehh

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 …

Member Avatar for m4ster_r0shi
0
159
Member Avatar for woodenduck

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 …

Member Avatar for smantscheff
0
386
Member Avatar for twazzer

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

Member Avatar for woodenduck
0
3K
Member Avatar for gm.rupert

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 …

Member Avatar for NormR1
0
2K
Member Avatar for ArYan.AgRwl
Member Avatar for crackerjr

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 …

Member Avatar for deceptikon
0
124
Member Avatar for Dendei

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 …

Member Avatar for nmaillet
0
183
Member Avatar for anisha.silva

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

Member Avatar for nmaillet
0
602
Member Avatar for daniel36

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?

Member Avatar for daniel36
0
425
Member Avatar for Tintso
Member Avatar for chamnab
Member Avatar for Ancient Dragon
0
121
Member Avatar for Dizzy Noob

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 …

Member Avatar for stultuske
0
121
Member Avatar for dean.ong.14

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

Member Avatar for jwer
0
93
Member Avatar for Huck44

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 …

Member Avatar for stultuske
0
122
Member Avatar for Abhineet.Ayan

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 …

Member Avatar for Abhineet.Ayan
0
1K
Member Avatar for Zanzertuchi

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 …

Member Avatar for Tyler W. Cox
0
371
Member Avatar for rahul pareek

if i divide a float value from 0 then i get output:- infinity and then throws NumberFormatException why can anybody favour me.

Member Avatar for JamesCherrill
0
79
Member Avatar for rotten69

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 …

Member Avatar for broj1
0
178
Member Avatar for muzamilsw10

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 …

Member Avatar for peter_budo
0
127
Member Avatar for bsewell

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

Member Avatar for Ganeshcse
0
6K
Member Avatar for pranay1995

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

Member Avatar for pranay1995
0
248
Member Avatar for softswing

Hi, How to do the custom FindBugs in Eclipse. I want to catch the specific bus from code

Member Avatar for peter_budo
0
82
Member Avatar for davy_yg

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

Member Avatar for peter_budo
0
81
Member Avatar for scorpionz

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 …

Member Avatar for scorpionz
0
643
Member Avatar for scorpionz

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 …

Member Avatar for scorpionz
0
474

The End.