199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for alreem

mr7b .. To calculate the value of e^x ,, I do this code but I THINK I have mistake . . ! Can any one tell me if it's true or not > ? [CODE]package calculate; import java.util.Scanner; public class Main { public static void main(String args[]){ double x, n, …

Member Avatar for ztini
0
2K
Member Avatar for Resentful

Hello. I have two text files. Text1.txt and Text2.txt. I am needing to remove an lines found in Text1.txt from Text2.txt. That was probably confusing, so let me give an example. Let's say Text1.txt has this: 1 2 3 And Text2.txt has this: 2 3 4 The final result would …

Member Avatar for Resentful
0
331
Member Avatar for rfrapp

This is the beginnings of a login script that I've been working on, and I can't seem to figure out why I have this error. The error is said to be on line 10. Any help would be appreciated. I've changed the info in the variables used for connection just …

Member Avatar for diafol
0
437
Member Avatar for softDeveloper

Hi all, I'm using scrollintoview to scroll to the element but it's very quick, do you know anything like this but smooth?

Member Avatar for Troy III
0
156
Member Avatar for zackh123

Hello, I am currently helping my BI team convert a Cognos Tree Object into a Javascript tree object. The part where I am stuck is using javascript to parse the XML data file that would normally fill up the Cognos tree. Here is an example of the XML data file... …

Member Avatar for Troy III
0
508
Member Avatar for sariberri

[CODE]import java.util.*; //You may assume that all Points are unique. public class PointSet { private ArrayList<Point> list; private Comparator<Point> compareMethod; //default constructor public PointSet(){ list = new ArrayList<Point>(); } //copy constructor for a point public PointSet(PointSet l){ list = new ArrayList<Point>(); for(Point p: l.list){ this.add(p); } } //randomly generating a …

Member Avatar for sariberri
0
909
Member Avatar for Violet_82

HI there, I am attempting a crossfade based on [URL="http://www.simonbattersby.com/blog/simple-jquery-image-crossfade/"]this[/URL] but needless to say it is not working as nicely as it should. What I have done was to run through the code in the above example, understand it - or at least attempting to do so with a bit …

Member Avatar for Violet_82
0
101
Member Avatar for Violet_82

Hi there, I am a little stuck with a slideshow I am developing. On this site [url]http://antobbo.webspace.virginmedia.com/petras/home.htm[/url] the slideshow is working fine, it is a javascript slideshow: [CODE] <script type = "text/javascript"> var imageList = new Array( "images/homepage/home_0.jpg", "images/homepage/home_1.jpg", "images/homepage/home_2.jpg"); var frame = 0; var image; function init(){ setInterval("animate()",1000); image …

Member Avatar for Violet_82
0
166
Member Avatar for Johan__

hello If i want this private bool ReadAndValidateName(out string name) to call in to this private void txtPrice_TextChanged_1(object sender, EventArgs e) so every thing ho is in bool is going in to text

Member Avatar for skatamatic
0
66
Member Avatar for ladybro

Thanks for taking the time to open this. I am just starting to learn Java and cannot seem to get past a point in the program I'm currently working on. I'm making a credit card verifier, where you enter the numbers and an algorithm deems it valid or invalid. I …

Member Avatar for stultuske
0
155
Member Avatar for NicoleD90

I have to create a program that simulates flipping a coin. The directions my teacher gave me are as follows: 1. Program should prompt the user for number of runs 2. Program should prompt the user for the number of times to flip the coin in a single run 3. …

Member Avatar for NicoleD90
0
700
Member Avatar for iRamble88

[CODE=java]import java.util.Scanner; class Sum { private int value; public int get() { return value; } public void set(int sum) { this.value = sum; } } class Summation extends Thread { private int upper; private int lower; private Sum sumValue; public Summation(int upper, Sum sumValue) { if (upper < 0) throw …

0
175
Member Avatar for softDeveloper

Hi all, I want to upload a file the way input type=file does, but I want to upload it as a client to a remote server. Any ideas please?

Member Avatar for softDeveloper
0
131
Member Avatar for chaitali238

I am using Visual studio 2008 and trying to upload files. Though the file uploaded can be seen through windows explorer, it is not shown in solution explorer. i am using the following c# code: [code] String fnm = FileUpload1.FileName; String cp = Server.MapPath("~/Uploads/"); FileUpload1.SaveAs(cp + fnm); [/code]

Member Avatar for desynch
0
124
Member Avatar for jbutardo

Hi, I have this fileupload control which saves excel file on my server, but somehow, if the excel file is larger than 4 mb it does not save the file, i used this code fileupload1.SaveAs can you please help me on why does this happen? Thanks

Member Avatar for desynch
0
445
Member Avatar for karthik.net87

I want my File upload control as read only, so that no one can edit file upload text box. However I could select file using browse button. Write code

Member Avatar for desynch
0
129
Member Avatar for bebosh

[B]Hi all, I would ask about fileUpload control, in asp.net 2008 can I know how remaining time to upload file successfully without using threading and without using javascript? the progress bar not problem, the problem that faced me is how to know how much file size was uploaded...[/B]

Member Avatar for desynch
0
249
Member Avatar for pattmorter

a friend asked me to help him with his lab. the lab involves opening a file and adding the numbers in the file together displaying how many even and how many odd numbers there are. I have the file "textinput.txt" in the directory with the .cpp file but when i …

Member Avatar for pattmorter
0
304
Member Avatar for 09cody

I'm just learning Java, so please bear with my ignorance. I have a feeling (hope) that this question has a very simple answer, just one that is evading me at the moment. For our assignment, we have to write a boolean function that will take a given elephant, "e" (the …

Member Avatar for JamesCherrill
0
299
Member Avatar for gedas

Hey guys, what would be a neat why of geting every third token in the string. lets say there is a: String longString= "i want this"; how would i be able to get "this" ? Thanks

Member Avatar for JamesCherrill
0
1K
Member Avatar for MineCrafter

It keeps giving me this error and i really need help! [CODE] package net.minecraft.src; import org.lwjgl.opengl.GL11; public class ModelMrsMcDade extends RenderLiving { //The three numbers below change the size of your model (you'll need to change the hitbox size too though) protected void preRenderScale(ModelMrsMcDade entity, float f) { GL11.glScalef(1F, 1F, …

Member Avatar for JamesCherrill
0
585
Member Avatar for darkelflemurian

Hello everyone. I have the following issue: I have a Windows XP computer with excel 2003 installed. we use several automation robots using excel. everything works fine, files area created and all that. but we have a problem. for some reason the document recovery pane of excel is getting filled …

Member Avatar for darkelflemurian
0
243
Member Avatar for vatwindad

I am having a problem and it is probably quite simple and I am missing it. For my C# and ASP.NET programming class, I am creating a form for someone to sign up for an event online. It has the First and Last name fields, email and confirmation email fields, …

Member Avatar for sufyan2011
0
132
Member Avatar for skald89

I have external links opening with the "fancybox" jquery plug-in when clicked on. I want to be able to have the web page in the fancybox scroll down when it loads. (Any place on the page is fine, this is just a learning exercise) I have marked my code to …

0
107
Member Avatar for DavidKroukamp

Hi all, I'm in my 2nd year of software development (doing C#) and having come from a Java background, and having programmed a few GUI's in C#/Visual Studio's; I was wondering... Like in Java You can use an IDE to build a GUI, however you can also simply add Frames, …

Member Avatar for DavidKroukamp
0
341
Member Avatar for Eclipse77

Hi, I'm in need of some help in using functions for the hangman game. The professor doesn't understand how difficult it is for a first time programmer and just doesn't explain new concepts thoroughly. The game that I'm trying to code looks like this: Enter the secret word: LETTERS ------------------------------------------------------------ …

Member Avatar for woooee
0
3K
Member Avatar for Deminitous

I'm making a SAMP server, with all the info of bans and bought vehicles in a MySQL database to get easy acces to it and to change it easily. But setting it up wast that easy :/ Here is the MySQL info, can some1 please help me here? [CODE=php]-- phpMyAdmin …

Member Avatar for Deminitous
0
503
Member Avatar for guy40az

I want to set up an array and have 100+ items in the array anyone know how to split the line Dim row() As Integer = {1, 2, 3, 4, 5, 6} like this Dim row() As Integer = {1, 2, 3, 4, 5, 6}

Member Avatar for Begginnerdev
0
122
Member Avatar for johang_80

Hello everyone I have a task of changing values in an int[][], for example if I input 1 it is changed to 0 and vice versa. So far I tried the following for a hundred times amending the xs and ys but with no happy ending. [CODE] public void reverseOrder(int …

Member Avatar for johang_80
0
193
Member Avatar for huh

I use nasm. Say I want to have a loop and each loop add something to a buffer, here is the buffer: [CODE]buf: times 0ffh db 0[/CODE] Here is the loop the loop: [CODE] xor al, al mov edi, buf theloop: cmp al, 0ffh je done inc al ; add …

Member Avatar for thines01
0
97
Member Avatar for UFO Disko

Hello, I recently migrated our ASP.NET application to another server. We copied everything exactly as it is, from ASP.NET files to SQL Database with its stored procedures and everything. Now when we goto the app's root directory, the login page pops up as usual, we login and everything is fine …

Member Avatar for UFO Disko
0
392
Member Avatar for adityamadhira

Hi I am new to PHP and need a help regarding data controls in PHP. Like grid view? Thanks

Member Avatar for pritaeas
0
290
Member Avatar for sw8revenge

hello everyone i just wanna ask some help regarding on how to delete all datas in the data grid view from search result. i have a form which search data in specific date and show result in the datagridview, what i want is that when delete button is clicked all …

Member Avatar for artemix22
0
232
Member Avatar for deucalion0

Hey guys, I am creating a form that allows a logged in user to enter a new password for their, account, I already have the query set up to update the password, but in my form I have the first input set to take the existing password, which must match …

Member Avatar for diafol
0
132
Member Avatar for javedsai

Hi everyone, I'd uploaded virtual tour from ftp server. Three virtual tour which was uploaded couple of days ago are working fine but, now which I uploaded is not working. Url for your reference :- This are working fine. [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3920[/url] [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3921[/url] [url]http://www.bluechiphome.com/dubai/?methodcall=searchbyref&ref=3922[/url] (is not working) For viewing virtual tour just …

Member Avatar for pritaeas
0
163
Member Avatar for digiguy

Hi All! I just have a question (looking for advice) i'm trying to write a web based app and i don't know if i should program in c# or asp.net. What advice would you give a noob, who is more comfortable on the hardware side trying to get a better …

Member Avatar for skatamatic
0
145
Member Avatar for ChevyScience

I am having a problem with my code, it is suppose to be rearranging the characters inside the array, but every time i enter the lower bounds (x) and upper bounds (y), i rearranges the wrong alphabets. Here is my code [CODE] int main() { char a[5]={'A','B','C','D','E'}; int x, y; …

Member Avatar for ravenous
0
172
Member Avatar for 68thorby68

I have a simple dynamic form with 5 input fields [CODE] <input type=text name=name /> <input type=text name=height /> <input type=text name=length /> <input type=text name=width /> <input type=text name=weight /> [/CODE] If the user needs more than one of the same item they can add additional input fields. [CODE] …

Member Avatar for diafol
0
2K
Member Avatar for 47pirates

I have a server in python and client in java and i want to share images through the socket how can i do so? help plz

Member Avatar for dantinkakkar
0
172
Member Avatar for arindam31

Hi , I want to achieve something like this . Consider the example [CODE]>>> txt 'arin.thearc@gmail.com' if '@' or '.' in txt: do something[/CODE] I just want to know how can we nest ORs and ANDs inside the if or while loops...

Member Avatar for TrustyTony
0
219
Member Avatar for jd2369

I have a website which has a section under maintenance with a button called create a new file - when you click on this button it does a backup and generate a filename on the same page called *.tbf - the filename changes each time you click on create a …

Member Avatar for thines01
0
361
Member Avatar for whitech

I've to write a program which gets a colour from user.Users will enter the colour's name if the colours is exist in my string,program will give a msg.If it doesn't exist give an error msg and stop program.I've already write a code but it doesnt works accurately. [CODE]int i,j; void …

Member Avatar for Subhasis giri
0
122
Member Avatar for Labdabeta

To what extent does the system endianness effect a program. I know that doing pointer assignment will be affected, and unions are too, but what about bitshift operators? Do they apply to the value, merely emulating real bitshifts, or do they apply to the bits themselves? Are there any other …

Member Avatar for Labdabeta
0
89
Member Avatar for bilal_fazlani

this is my query for displaying monthly business [CODE]select convert(varchar,dateadd(month,datediff(month,0,inv_date),0),101) as 'months with date format', sum(inv_amount) as 'business' from invoices inner join customers on customers.cust_id =invoices.cust_id where fname+' '+lname='lala fazlani' group by customers.cust_id,dateadd(month,datediff(month,0,inv_date),0) order by customers.cust_id,dateadd(month,datediff(month,0,inv_date),0) [/CODE] So when I execute this command, It gives me this result [url]http://img821.imageshack.us/img821/6492/sqle.jpg[/url] [url]http://img341.imageshack.us/img341/538/chartv.jpg[/url] …

Member Avatar for bilal_fazlani
0
511
Member Avatar for Stjerne

Hello, I've a question about DataOutputStream. I'm trying to complete this Pseudo-sentence: [CODE] public void writeObjectToFile( DataOutputStream output ) { < Writing data field values ​​to file. > } [/CODE] This is my code: [CODE] public void writeObjectToFile( DataOutputStream output ) { String filename = "test.dta"; try(output = new DataOutputStream(new …

Member Avatar for JamesCherrill
0
157
Member Avatar for nonlinearly

Hi I have an old inherited file with c code (visual studio 6). I compiled this file in Visual C++ 2010 (I made an empty project and a win32 console application) and was OK. But when I did the build to make the .exe then the linker throws errors. I …

Member Avatar for nonlinearly
0
249
Member Avatar for vlady

hi! I have another struggle. I'd like to have this kind of output: [COLOR="Green"]som object studenta: Janko Mrkvicka som object predmetu: fyzika, mam znamky: [4, 1] a priemer: 2,5[/COLOR] How can I make it? my output is a bit different (it is in last line): [COLOR="Red"]som object studenta: Janko Mrkvicka …

Member Avatar for Lucaci Andrew
0
136
Member Avatar for virus.exe

I was wondering if it is possible to move the mouse in C++. Like get the coordinates and move the cursor. Maybe it's not possible but it would be cool. thx

Member Avatar for BhawikJain
0
395
Member Avatar for Thropian

I started looking into networking and storing/altering data on a computer. I've got everything running, but can't get it to work from an outside computer. Is there an easy way to get past the LAN restrictions or am I going to have to change settings on my router?

Member Avatar for ihatehippies
0
296
Member Avatar for hallianonline

Hello i have a js file named as get.js I have a variable which have base64 encoded string in it and now I want its decoded values which writes in document.write function but I am getting blank results when I include this file in body of my html plz help …

Member Avatar for stbuchok
0
105

The End.