199,114 Archived Topics
Remove Filter ![]() | |
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, … ![]() | |
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 … | |
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 … ![]() | |
Hi all, I'm using scrollintoview to scroll to the element but it's very quick, do you know anything like this but smooth? | |
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... … | |
[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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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. … | |
[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 … | |
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? | |
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] | |
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 | |
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 | |
[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] | |
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 … | |
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 … | |
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 | |
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, … | |
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 … | |
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, … | |
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 … | |
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, … | |
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 ------------------------------------------------------------ … | |
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 … | |
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} | |
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 … | |
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 … | |
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 … | |
Hi I am new to PHP and need a help regarding data controls in PHP. Like grid view? Thanks | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
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; … | |
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] … ![]() | |
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 | |
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... | |
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 … | |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 | |
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? | |
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 … ![]() |
The End.