199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kyriacos1986

I have been asked to create to check if a word is palindrome or not. But I am facing some problems. After the code you can see the messages that I received from the compiler. [CODE] import java.util.*; public class Palindrome { public static void main(String[] args) { [B]Stack<String> stack …

Member Avatar for kyriacos1986
0
2K
Member Avatar for Minami

I was given a task of creating a lucky draw program. 1.Total numbers of accounts are 00001 to 99999. 2.But only 131 accounts will be chosen. 3.3 sections - 1 account for 1 car, 20 accounts for 20 iPhone, 10 accounts for 10 Samsung 4.Galaxy & 100 accounts for $100 …

Member Avatar for WaltP
0
218
Member Avatar for stanley87

May i know how to matching 2 array keywords? e.g I have 1st array keyword like kfc,mcd,fastfood,etc 2st array keyword like kfc,mcd If i want to get the matching keywords among these 2 arrays, how to i write the matching code? Thank advance for your help.

Member Avatar for stanley87
0
192
Member Avatar for mulegoat

Hi there, I have a very simple schema where each node requiring HTML output contains 7 possible numerical variables (all within nodes N1 - N13). I need to output text and image content according to the number within each node. Below is a sample of my schema: [CODE] <?xml version="1.0" …

0
109
Member Avatar for vinithktp

Hi, I am facing OutOfMemory exception in Java, Kindly help me to resolve this issue, really appreciate your help [U][B]ERROR: [/B][/U]java.lang.OutOfMemoryError: Java heap space [B][U]CODE:[/U][/B] [CODE] public Blob getBlob(String databaseInstance, InputStream inputStream) throws SQLException, Exception { applog.info("Entering getBlob"); InputStream stream = null; applog.info("inputStream : " + inputStream); stream = inputStream; …

Member Avatar for vinithktp
0
904
Member Avatar for y2kshane

im creating a custom button . when user select a image file for button image i want to add it to the project resource (in design time) . how to do this?? im currently drawing image using image location but its not a good solution.

Member Avatar for codeorder
0
7K
Member Avatar for upanotch

I'm trying to make my first real project: A calculator, but when I press the "clear" button (the only button i've done so far) the JLabel doesn't go from two to zero, any help would be really appreciated :) code: [CODE]import java.awt.Color; import java.awt.GridLayout; import java.awt.event.*; import javax.swing.*; public class …

Member Avatar for stultuske
0
137
Member Avatar for rahul bora
Member Avatar for Airshow
0
60
Member Avatar for rhn94

Hey guys. I'm trying to create a program which adds, searches & removes items from an array & i've been messing around with the code, trying to find answers on the internet but so far no dice. Could any of you help out? [CODE] void removeString(List& s, string strKey, const …

Member Avatar for rhn94
0
194
Member Avatar for azegurb

hi all, I have script that sums all textboxes value from dynamically added row, but still i have problem with the script. below listed two version of script [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> <title></title> <script type="text/javascript"> /*<![CDATA[*/ function addRow() { // grab …

Member Avatar for Airshow
0
301
Member Avatar for pendo826

Hey i have no idea whats goin wrong with this i think its to do with the fact that its in private but i have an error with calling weapon in the monster class (Monster.cpp) the error states that it is inaccessable :S here is my code: [CODE] //Monster.h #ifndef …

Member Avatar for pendo826
0
130
Member Avatar for MisterRaver

Hi, I am wondering if it is possible to "transfer" a Socket connection to another ServerSocket? So, say I listen for a connection on ServerSocket with port 1111. A connection is established, I know want to use a ServerSocket with port 2222 to handle this connection. Is he possible without …

Member Avatar for MisterRaver
0
261
Member Avatar for jackly94

Can some one help with this please. I need to update a Passengers Name, im using Strings not Char. [CODE] if (choice == 2) // Updates Record.. { merge_sort(0,N_PASSENGER-1); cout << "\n\t Enter the Seat Number:"; cin >> key k=binarySearch(passenger, 0, N_PASSENGER, key); // Search Array if(k>=0) cout << " …

Member Avatar for jackly94
0
99
Member Avatar for DarkBerzerk

I need Video Gallery With cPanel, i searched all over the World Wide Web and found nothing xD doesnt matter free or for money, im ready to pay for it, Video Gallery With cPanel to upload and edit and those things. :/

Member Avatar for diafol
0
111
Member Avatar for twitah

[CODE]<?php include('header.php'); foreach($_POST as $key => $value) { $protectie[$key] = filter($value); }if(isset($_POST['submit']) && $_POST['type'] == "facebook") { $num1 = mysql_query("SELECT * FROM `facebook` WHERE `facebook`='{$protectie['url']}'"); $num = mysql_num_rows($num1); if($num > 0){ $mesaj = "<div class=\"msg\"><div class=\"error\">Facebook Pages has been added before!</div></div>"; }else{ mysql_query("INSERT INTO `facebook` (user, facebook, title, points, cpc) …

Member Avatar for diafol
0
155
Member Avatar for bibiki

Hey there, I am trying to build a small survey for a homework assignment. So, I have the following code: [CODE] $con = mysql_connect("localhost","user", "mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $slq = "INSERT INTO results VALUES('', '', '', '', '', '', '', '', …

Member Avatar for bibiki
0
153
Member Avatar for waveydaveywaves

I have literally been banging my head on my keyboard out of frustration. I'm trying to display PHP sessions as values in my php form, but it's not going so well. here's what I have: [CODE]<?php session_start();?><html> <head> <title>Create An Event</title> <style> label {float: left; width: 100px;} input[type=text],textarea {width: 210px;} …

Member Avatar for diafol
0
226
Member Avatar for riahc3

Hey Im currently working on a application server written in Java but to use information from a C++ program. The company seems to agree that rewriting thousands of lines of code would be time consuming and simply making libraries of key functions of the C++ program and then passing them …

Member Avatar for riahc3
0
2K
Member Avatar for djjavo

Hi guys I am trying to declare a array within a structure, and it is not working. I'll paste the code below and if anyone can help it would be greatly appreciated. [CODE]Structure league Dim id As String Dim name As String Dim players(20) As String End Structure Dim leagues(100) …

Member Avatar for djjavo
0
3K
Member Avatar for Pamilerin

Hey guys, I am to do a final year project to monitor the trading floor of the Nigerian Stock Exchange and my question is if I were to write an application what things should I consider. The application is supposed to be a stand alone but works when it connects …

Member Avatar for Pamilerin
0
177
Member Avatar for izh

Hello, I joined here desperately asking for your help I have an assignment about creating a program that loads a text file given. the text file contains many lines and those lines are questions and answers it is on this sequence question answer question answer and so on so we …

Member Avatar for izh
0
248
Member Avatar for alaa sam
Member Avatar for mazzica1
0
189
Member Avatar for bhagawatshinde

In part of my program, i have to insert Equation.DSMT4 into the richtextbox control. I found that there is no methods in richtextbox to insert ole objects. If anybody knows, pls help me to get solution for this problem

Member Avatar for lolafuertes
0
356
Member Avatar for Labdabeta

I accidentally hit Source->Externalize Strings... on eclipse and now hundreds of string literals are stored in a properties file. I want them back scattered about my code. How can I do this without re-entering them?

Member Avatar for JamesCherrill
0
159
Member Avatar for hotice47

Hi i have a form which is used to post jobs. i have multiple checkboxs for location's i need a way in which i can save all the values which are checked into single table or two . right now i have a table called jobs in which all the …

Member Avatar for diafol
0
140
Member Avatar for crishlay

Hi I want to make website like [url]www.polyvore.com[/url] can anyone know me how i can make clone of this website. What tools or third party tools i have to use ?

Member Avatar for diafol
0
80
Member Avatar for azegurb

Hi all, I have taken slide show script from net. But There some functions i cannot understand here is script [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" > <html lang="en"> <head> <title></title> <script> var interval = 1500; var random_display = 0; var imageDir = "my_images/"; var imageNum = 0; imageArray …

Member Avatar for azegurb
0
161
Member Avatar for pagerussell

hello, I am using onclick ajax requests and innerhtml to give a site only partial page reloads. One of the page reloads links to an image gallery, where I am attempting to use fancybox. I have all the scripts properly linked and there are no syntax errors, but it (the …

0
106
Member Avatar for lianpiau
Member Avatar for Antenka
0
166
Member Avatar for poojavb

I need a help to understand what condition can be applied to the below requirement: If suppose we have 2 species name eg. dog and cat... and we have few breed name for the above mentioned species.... so what condition can be applied in such a way that the user …

Member Avatar for niranga
0
176
Member Avatar for alaa sam

hi everyone I'm new to c# and working with file currently I need to read some string from the file but not the whole file so what functions can I use to read the file string by string ?

Member Avatar for alaa sam
0
144
Member Avatar for twitah

[CODE]<?php include('header.php'); foreach($_POST as $key => $value) { $protectie[$key] = filter($value); }if(isset($_POST['submit']) && $_POST['type'] == "facebook") { $num1 = mysql_query("SELECT * FROM `facebook` WHERE `facebook`='{$protectie['url']}'"); $num = mysql_num_rows($num1); if($num > 0){ $mesaj = "<div class=\"msg\"><div class=\"error\">Facebook Pages has been added before!</div></div>"; }else{ mysql_query("INSERT INTO `facebook` (user, facebook, title, points, cpc) …

Member Avatar for smantscheff
0
169
Member Avatar for ppetree

Hey All... This query is waaaay outside my skill set so I can't even fathom how to do this other than the "brut force" method and that's way to slow for my purpose (a mobile app). I have two tables, `Categories` and `Articles`: `Categories` has: `id`, int auto-increment `name` text …

Member Avatar for smantscheff
0
210
Member Avatar for cmps

Hello, Am not new to PHP but new to OOP, I have watched lot of tutorials for oop and as I saw, class is almost a new language!! To be a pro programmer, I should learn existing class attributes or I should create my own?? example of default class attribute: …

Member Avatar for cmps
0
115
Member Avatar for Jackk123

Soo last year, if im not mistaken , i asked for help with the random numbers generator. I didn't do C++ for quite some time, but i started again. So here is what i have : [CODE]#include "stdafx.h" #include <iostream> #include <fstream> #include <ctime> using namespace std; int main(){ srand(time(NULL)); …

Member Avatar for Jackk123
0
146
Member Avatar for asif49

I have to complete a project about employees and their jobs. Here are the requirements: 1 Must be able to add new employees 2 Must be able to add new jobs 3 Must be able to attach a registered employee to registered jobs (several jobs to the same employee) Since …

Member Avatar for stultuske
0
87
Member Avatar for abelingaw

I'm having problem with my login php files. I don't know if it is in the passing of values from inputboxes or connection with my database records. log-in code: [CODE] <td align="right" width="130px"> Username: </td> <td><input type="text" size="40" id="username" class="inputbox" /></td> </tr> <tr> <td align="right"> Password: </td> <td><input type="password" size="40" …

Member Avatar for raphie
0
232
Member Avatar for babymel2010

hey frnz... can any1 tel me how to create a simple software in c#? i need to create a software n connect another system to my system (which acts as a server) n make d other system to download d created software setup... plsss help

Member Avatar for thines01
0
95
Member Avatar for morrisproject

Hi, My layout.php form has many buttons it and a current date field, which all have a unique id/name. when the button is clicked it uses the id and date on the new.php, so when the record is saved it is saved relating to the id and date and other …

Member Avatar for raphie
0
3K
Member Avatar for saisakthi

Hello friends, Please help me to implement InApp purchase feature in my application.. I dont have Android mobile right now.. So need to test it in Emulator.. I have gone through some codes but its not working in emulator..

Member Avatar for saisakthi
0
70
Member Avatar for ananth3125
Member Avatar for codeorder
0
237
Member Avatar for tania123123123

Below is a sceanrio.. i need some help to do the following... i have done bits but i think i dont understand and need some guideance.. can anyone help me to find the.. 1) entities 2) attributes 3) realtionships withing the scenario below? SonicLive is a UK company that is …

Member Avatar for roshan605
0
180
Member Avatar for ineedurhelp

I know that this is a c++ forum but im a college student and i cant practice the programs without clearing this problem coz most of the programs require "resource.h" this program is to attach a menu to a window [code=c++] #include<afxwin.h> #include"resource.h" class myframe:public CFrameWnd { public: myframe() { …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for randolph.gamo

Write a program that converts upper case to lower or lower case to upper, depending on the name it is invoked with, as found in argv[0].

Member Avatar for zeroliken
0
47
Member Avatar for abelingaw

I can't figure out what is wrong since my codes are correct. [CODE] $host="localhost"; $username=""; $password=""; $db_name="database"; $tbl_name="members"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("Cannot Find Database"); [/CODE] Keeps on saying the die statement. I'm using WAMP, and yes. my database name is "database" and table is name is "member". …

Member Avatar for abelingaw
0
127
Member Avatar for Undermine

Hello guys, I am using Hibernate + Spring with netbeans to make a web application. I have it working correctly and displaying data from the DB. My problem is I only know how to do one hibernate query which is shown below. How can I do insert/delete queries. For instance …

Member Avatar for peter_budo
0
309
Member Avatar for cavemanweb

Hello everyone, I'm working on a little project that use c#, Oracle ODT and asp.net, so, my problem is that i dont know how to convert or store the data retrieved from a sql that is a sequential and then use in other query in the same project. This is …

Member Avatar for lolafuertes
0
204
Member Avatar for Woodenhousen

Hi, I am very new to c# and I toying with the idea of using stored procedures to insert values from two textboxes in to two related tables. Table 1 Model (ModelID PK, ModelName, ManufacturerID FK) - Table 2 Manufacturer (ManufacturerID PK, ManufacturerName) both tables are related by the ManufacturerID. …

Member Avatar for lolafuertes
0
365
Member Avatar for woody363

I'm having difficulty getting graphics into my C++ program. using Ubuntu 11.10 I /think/ my problem is simply my inability to download and install graphics libraries. Basically at the #include ... section of code i get an error every time about being unable to find xyz which i haven't managed …

Member Avatar for woody363
0
296
Member Avatar for jonnyboy12

Hello all. I am working with some code like this. [CODE] echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: 266px; width: 225px; '></div>"; [/CODE] I wanted to be able to control the size of this div with php conditions. I thaught i could do it like this, but its not working. [CODE] $someVariable = …

Member Avatar for jonnyboy12
0
122

The End.