199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Jfunch

I have a program that uses two threads, one that adds some numbers and the other takes the sum and finds the average. I used a blocking queue to pass the sum to the other string. I have no problem queue.put() to put the total in the queue and then …

Member Avatar for JamesCherrill
0
221
Member Avatar for oldSoftDev

Hey guys, Recently a friend of mine asked me to help her with her magazine website. I gave this website a look and figured out that it might be that tabs are not directing to the right URL or there are some files missing from the server. I have never …

Member Avatar for reco21
0
132
Member Avatar for bokz06

i have created an app which reads lines from a .txt file, splits the line at a " " and then stores them in a ArrayList which then gets put in a JTable. i created 27 columns and named them... now i want to add an extra column on the …

Member Avatar for Ezzaral
0
692
Member Avatar for altaf123456

dear i am fasing problem in uploading files,uploading file is properly working in local host but when i upload the file its not working through admin area the condition is giving false and excute else statement kindly help me on it [CODE]if($_REQUEST['action']=="addwall") { $cat=$_REQUEST['category']; $sub=$_REQUEST['subcategory']; $folder="wallpapers/"; $path=$folder.$_FILES['file']['name']; if(move_uploaded_file($_FILES['file']['tmp_name'],$path)) { mysql_query("insert …

Member Avatar for Mohammed Ammar
0
86
Member Avatar for louie540

Hi. First off, I'm new to PHP. So you will have to be real specific with your answers. I'm trying to create a comments section under my news articles and I'm having a real hard time with it. At first I was wanting to make it so that a new …

Member Avatar for broj1
0
180
Member Avatar for extemer

Below code in bold is here i got the problem please help.the problem is while i submit the form a div appear after pressing submit button that data is submitted the div is appearing perfectly fine but the problem is after i inserted this code that is bold below for …

Member Avatar for Airshow
0
186
Member Avatar for Leaningnew

why we need to avoid using scanf to read a character???? can anyone explain it clearly??

Member Avatar for cse.avinash
0
108
Member Avatar for PapaGeek

I have a program that relies on file timestamps that works fine in XP but fails in Windows 7. I ran the following test in Windows 7: Create go.bat to look at all 3 file timestamps: [CODE]@echo off dir /tc test* | find "test" dir /tw test* | find "test" …

Member Avatar for PapaGeek
0
160
Member Avatar for falakniazi

Hi, Can anyone tell me how to convert text to speech in PHP? There are some tools like festival and flite etc that can be used for converting text to speech. But i don't have much expertise in PHP.

Member Avatar for falakniazi
0
4K
Member Avatar for daianahoney

Hello. I am wondering how to split a string lets say char *a="raining apples training away" using a delimiter like "g a" and the result will be: rainin pples trainin way I tried using strstr but I got stuck. Any hints will be greatly appreciated. Thank you in advance!

Member Avatar for daianahoney
0
3K
Member Avatar for JOSheaIV

Okay so alittle while ago I decided I wanted to write a program that would read in data from a website (the HTML data) and then use it from there (long story short I was to read in a list of urls, then access each of those and gather data …

Member Avatar for JOSheaIV
0
229
Member Avatar for Slyvr

I'm completely new to JSP but not Java [CODE]<div> <%@ page import="java.util.*" %> <%= Date date = new Date(); out.println(date.getHours()+":"+date.getMinutes()+":"+date.getSeconds()); %> </div>[/CODE] All I need is [CODE]Hour:Minute:Second[/CODE]. (Edit: stupid emoticons) I'm getting this error on Date [CODE]Multiple annotations found at this line: - Syntax error, insert ")" to complete MethodInvocation …

Member Avatar for Slyvr
0
231
Member Avatar for HungMob

Hello again! I was given an assignment the other day in C++ and I was suppose to use the counter and add a sentinel so the program knew when to stop. Instructors directions: "The file for this assignment reads a sequence of positive integers from a file (2 3 5 …

Member Avatar for HungMob
0
191
Member Avatar for sydsine

plz help to prepare for adobe. from where should i prepare. if anyone have appeared fo adobe ...

Member Avatar for Narue
0
305
Member Avatar for dmarino1

I have a database with a list of process owners. The users of this database wants the process owners emailed when a form is updated with a click of a button. I can email to one person using a macro but this requires additional codeing which I am not all …

Member Avatar for dmarino1
0
247
Member Avatar for sirlink99

I am making hearts, and I cannot seem to add all the cards to the deck. here is my code [CODE] import java.lang.reflect.Array; import java.util.Vector; public class Hearts { String cards[][] = {{"Spade ", "Heart ", "Club ", "Diamond "}, {"A","2","3","4","5","6","7","8","9","10","J","Q","K"}}; Vector <String> deck = new Vector<String> (); String player1[] …

Member Avatar for sirlink99
0
123
Member Avatar for Süspeñce

[CODE]//I make program of infix to post fix xpression plz tell me waht wrong with my code //some it true result for arthematic opertaors b,w two oprend but with more then it does //not provide valid output plxxxxxxxxxxxx help me #include<iostream.h> #include<conio.h> #include<stdlib.h> #include<string.h> int presidence( ); void infixToPostfix(char *); …

Member Avatar for Süspeñce
0
386
Member Avatar for Rox Vi

Hi, I am using ASP.NET to develop a system. Would you mind to share with me whether the code can be encrypted or convert to DLL to prevent coding exposure to other?

Member Avatar for NetJunkie
0
310
Member Avatar for vasim jada

Below is my code for login page I would like to show login user detail on home. For login my code works properly but does not show currently login user show following error "NO data exists for column/row". Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Login.Click …

Member Avatar for vasim jada
0
181
Member Avatar for mikeSQL

Create the HTML we will be using. I will show the whole code and then break it down so you can see what each thing does. Let's start. Create a new html file called [B]index.html[/B]. HTML Code: [COLOR=#000080]<html>[/COLOR] [COLOR=#000080]<head>[/COLOR] [COLOR=#000080]<title>[/COLOR]AJAX Demo[COLOR=#000080]</title>[/COLOR] [COLOR=#800000]<script src='getnv.js'>[/COLOR][COLOR=#800000]</script>[/COLOR] [COLOR=#000080]</head>[/COLOR] [COLOR=#000080]<body>[/COLOR] [COLOR=#000080]<div id='menu'>[/COLOR] [COLOR=#000080]<ul>[/COLOR] [COLOR=#000080]<li>[/COLOR][COLOR=#008000]<a onClick='check_content("page.php?id=index")'>[/COLOR]Home[COLOR=#008000]</a>[/COLOR][COLOR=#000080]</li>[/COLOR] …

Member Avatar for kosher_12
0
247
Member Avatar for glut

Hi, you guys. I'm making a obfuscator, and I need to know how to get all variables, classes, functions, etc, from a .NET program. I know how to get assembly info, which is quite easy. [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using …

Member Avatar for gusano79
0
105
Member Avatar for Forte1292

Okay so we are doing a BankAccount program in my CS class. One method is supposed to return the information like this - Account Name: <name here> Account Number: <number here> Account Balance: <balance here> The instructions say to return it on multiple lines using the \n command. How do …

Member Avatar for Forte1292
0
128
Member Avatar for _dragonwolf_

Ok, I have been trying to work this thing for a week. It is a program that is supposed to read from 2 files (.dat) and write to a third file (.dat) then update one of the first files. i.e. read oldmast.dat read trans.dat compare data write data and changes …

Member Avatar for vijayan121
0
227
Member Avatar for zack_falcon

See, I have a board game with a 2D array acting as the board. There are number in the 2D array, and should a number be placed (by the player) in a spot in the 2D array where a number already resides, the following can happen: > If the residing …

Member Avatar for Ketsuekiame
0
163
Member Avatar for hao001

[CODE]#include<iostream> #include<cmath> using namespace std; void getChoice(int& choice); void getInput1(double& foot, double& inche); void getInput2(double& meter, double& cm); void convert1(double foot, double inche, double& meter, double& cm); void convert2(double& foot, double& inche, double meter, double cm); void showResult1(double foot, double inche, double meter, double cm); void showResult2(double foot, double inche, …

Member Avatar for hao001
0
2K
Member Avatar for blackknight2114

hi am a newbie to the vb.net thing. am using ms access for my database. i have a customer table in my database where sutomer details like first name, last name, address, etc are stored. i've created a form in vb.net and i have a text box, a datagrid and …

Member Avatar for adam_k
0
395
Member Avatar for SyncMaster170

Does anyone know how to create a custom report for the data that is in a datagridview? My app is nearly complete but would like to spice it up a bit and be able to create a report button,that, once clicked, creates a simple report. I only need one specific …

Member Avatar for Mitja Bonca
0
104
Member Avatar for mohamed moamen

[CODE] float i = 55 ; float y = 23 ; float u = i / y ; System.out.println(u); [/CODE] i want to print u Round to five decimal places how i can do this approximation ?

Member Avatar for mohamed moamen
0
123
Member Avatar for Isaac1024

C++Syntax[CODE]#include "stdafx.h" #include<iostream> #include<cstdlib> #include<ctime> using namespace std; int main() { srand(time(0)); int arr[10]={0}; for(int i=0;i<10;i++) { arr[i]=rand()%50+1;} for(int i=0;i<10;i++){ cout<<arr[i]<<endl; } return 0; }[/CODE] I want to use the * to display the output, what I should improve?

Member Avatar for Fbody
0
88
Member Avatar for linezero

I was wondering is there a way to get a button on the application title bar...more likely like the one in the firefox 4 and on opera latest browser. [ATTACH]20310[/ATTACH] Is it any possible to get a button like that or just a regular button on the title bar?...thought it …

Member Avatar for clee_harris
0
2K
Member Avatar for RMWChaos

OS: Win7x64 6.1.7601 py: 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] I was able to create a logging class that posts to a file; however, despite reading several tutorials and the traceback docs from python.org, and creating a 'handleError' method, I'm unable to get my code …

Member Avatar for RMWChaos
0
539
Member Avatar for mangal123

ajax can i do programming of ajax in asp.net please help me and give me demo of ajax programming

Member Avatar for jbisono
0
112
Member Avatar for peste19

I am trying to create a python program but i have a question about a certain part of the loop for example i have [CODE] question = input("press 1 or 2") if statement == 1: print "somthing" elif statement == 2: print "abc" [/CODE] ok my question now is for …

Member Avatar for nalawar
0
83
Member Avatar for techyworld

Can someone dry run and explain me this code? having problem to understand recursion program. [CODE] public class Multiplication { public static void main(String[] args) { System.out.println("Answer:"+Mult(2,3)); } public static int Mult(int x,int y) { if (y==1) return x; else return x + Mult(x,y-1); } }[/CODE]

Member Avatar for techyworld
0
88
Member Avatar for drogba123

Hi, I know matrix 2d can be written like array[5][5] which saying 5x5 matrix but how do i make the row is like sequence of alphabets so its like array[a...z][5] while the column still numbers. Thanks.

Member Avatar for drogba123
0
121
Member Avatar for jeffreymummey

I need to build a gui application for Nim. I started writing the code and need help. Will you help me write the Nim game? import javax.swing.JOptionPane; public class Nim { public static void main( String args[] ) { String firstNumber; String secondNumber; int number1; int number2; int sum; firstNumber …

Member Avatar for pluspluss
0
110
Member Avatar for johnt68

Hello:) Previously I have made a temperature convertor web app with code behind the button click. I have now been asked to do one using methods/functions and am getting stuck on vaiables to pass and how I do it. Could someone explain variable naming and passing to me in a …

Member Avatar for arunkumars
0
156
Member Avatar for b.netana

[CODE]import java.util.Arrays; import java.util.Comparator; public class CameraInventory2 { // The main entry public static void main(String[] args) { // create the array Camera[] camera = new Camera[3]; Cam cam = new Cam(); camera[0] = new Camera(1, "Nokia", 20, 30.0, 8); camera[1] = new Camera(2, "Polaroid", 10, 21.0, 14.1); camera[2] = …

Member Avatar for hfx642
0
288
Member Avatar for JoshuaBurleson

As most of us know in tkinter in order to properly display an image it must be assigned to a variable, however what if you don't know that amount of images that are going to be necessary? i.e. A friend list, how would one display the friends pictures?

Member Avatar for JoshuaBurleson
0
220
Member Avatar for JoshuaBurleson

I'm trying to utilize partial in order to bind an image to it's associated name in a list "you'll see what I mean" but I'm getting a TypeError thrown on it, this is my first time trying to work with partials so I'm just not quite sure what's going on: …

Member Avatar for JoshuaBurleson
0
192
Member Avatar for NoviceCoder37

Hello, Savior(s)! I have been given a task to do the following: [I]"Assume that you have a database with a table named "trainer" with fields (trainerID, userName, fullName, email): - create this DB and table then insert some random data manually - create sql query to check if there any …

Member Avatar for diafol
0
101
Member Avatar for esy928

Hello! Im a java noob and I need to create a program that determines whether the input is an integer or not , can anyone help me out? thanks in advance! btw I have to use [B]Scanner [/B] from [B]java.util.[/B] , I have no idea on how to check if …

Member Avatar for abors
0
641
Member Avatar for chemes12

hi im having problem with my simple library i dont know what is the code to search a record in the data grid im ung adodc .. any one kindly help with my project only the search code.. is my problem so how to search in the data grid? here's …

Member Avatar for adam_k
0
158
Member Avatar for zach&kody

After compiling this code, I am getting a "cannot find symbol constructor Timer(int,Morning)" on line 17. [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Morning extends JFrame { private EasySound rooster; private int time; /** * Constructor */ public Morning (int time) { time = 0; Timer clock = new …

Member Avatar for stevenwilson
0
407
Member Avatar for davesmith437

Hi, This is what I'm trying to achieve...... An html table on a page which shows results from a series of races with the competitors listed on the x axis and the results per race on the y. Each series has a different number of races so it isn't possible …

Member Avatar for davesmith437
0
265
Member Avatar for Danny159

Hey, I need some help with working out if a timestamp is today or not... Eg - 1318245850 is Today - 1286709850 isnt today... Dan

Member Avatar for Danny159
0
116
Member Avatar for Seten

Hello, I created an application, that scans remote IIS servers/websites and get their location of log files. I need to check the amount of the log files. Obviously the log files are located in default location (customer decision :D ). Problem is that those locations are not as shared folders, …

Member Avatar for Seten
0
202
Member Avatar for dgar

Hi , My name is Dennis a DBIT student.I am kindly asking for assistance in any of the following questions .It's part of my research so i kindly request if you would explain to give me a better understanding and also equip me with the knowledge of handling questions of …

Member Avatar for peter_budo
0
121
Member Avatar for ksm092

Hi, I have two classes in two separate .cpp files. I obtain a string using cin and then I need to use this string in a method in a separate class. If that makes sense.. [CODE]class HomePage{ static void HsubmitChangeDutyRequests(string) { Duties::submitChangeDutyRequests(string);} }[/CODE] [CODE]class Duties{ static void submitChangeDutyRequests(string); }[/CODE] This …

Member Avatar for vijayan121
0
330
Member Avatar for Shodow

help how to count the remaining letters from the similar.. Example.. carl, 2 barbie, 4 [CODE]#include<iostream.h> #include<string.h> #include<conio.h> #include<stdio.h> int findSimilar(char[],char[]); void checkValue(int,int); int main(){ char boy[50]; char girl[50]; int similarInBoy=0; int similarInGirl=0; int total; clrscr(); printf("Enter Boy's Name: "); gets(boy); fflush(stdin); printf("Enter Girl's Name: "); gets(girl); fflush(stdin); similarInBoy=findSimilar(boy,girl); similarInGirl=findSimilar(girl,boy); …

Member Avatar for Tess James
0
121

The End.