199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
why we need to avoid using scanf to read a character???? can anyone explain it clearly?? | |
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" … | |
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. | |
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! | |
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 … | |
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 … | |
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 … | |
plz help to prepare for adobe. from where should i prepare. if anyone have appeared fo adobe ... | |
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 … | |
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[] … | |
[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 *); … | |
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? | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
[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, … | |
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 … | |
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 … | |
[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 ? | |
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? | |
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 … | |
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 … | |
ajax can i do programming of ajax in asp.net please help me and give me demo of ajax programming | |
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 … | |
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] | |
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. | |
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 … | |
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 … | |
[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] = … ![]() | |
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? | |
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: … | |
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 … ![]() | |
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 … | |
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 … | |
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 … | |
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 … | |
Hey, I need some help with working out if a timestamp is today or not... Eg - 1318245850 is Today - 1286709850 isnt today... Dan | |
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, … | |
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 … | |
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 … | |
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); … |
The End.