write a java program to convert binary numbers to decial numbers. the input is a string of zeroes.
647 byte By
Meirya at 2007-10-3 10:58:54
Hello all i have application that making remote application invocation using some times corba and sometimes web services but this is not the impotent issue the issue is that i need support High availability with the application server . that is how to detect when the application server is down ...
Hi all Java Expert, I am currently writting an web application and I will retrieve couple dates within a range and put them into the Date Array Date[] by using java.util.Date. The user will input the date from screen, and I need to check whether the input Date is within that range(within the ...
Hi,Can anyone help to create an algorithm for arranging a graph as http://www.spss.com/research/wilkinson/Applets/graphlayout.html the "Network" layout on this page.Thanks a lot.
373 byte By
oturcoa at 2007-10-3 11:32:22
Hi all,I have a simple XML to parse (I dont need XML parser just fir such thing). The XML is as below<element name="uuid"><value>1.0.199999102</value></element>I need to read the value, which is 1.0.199999102. Could anyone give me the regular expression code to achieve ...
I have two sets of arrays, one which i will call the source set S, and another set called A. I need to match every array in A to its closest array in S. Closeness is determined by the euclidean distance if you were to consider the arrays to be n-tuple coordinates. The arrays consist of bytes, ...
Hi All,I have two doubts, it will be great if I could be suggested any thing on these.1. Is it a good idea to create an java object in the memory, may be 1-2 Mb in size and keep it in the server for a long period? The reason is the server restart may be once in 50-60 days.2. If the component ...
530 byte By
sali_dia at 2007-10-3 11:48:45
Hi,using the java built-in random number generator, I generated from an original dataset 100 pseudo-datasets of the same size of my original datasetHow likely it is that the pseudo-datasets are similar/ the same?(original dataset contains data for 600 cases, each case have data associted with, ...
378 byte By
Xterma at 2007-10-3 11:54:10
Hi!I'm trying to make a codec in order to stream audio over the internet.I'm interested in transform the raw PCM data into DCT coefficients and then make some processing.The problem is that I can't find any Java DCT and IDCT code for audio.Someone knows something about this topic?Thanks in ...
Hi,I need to sort the values from the Bean.For Eg: List list;list = Sample.getList(); // returns list of bean objects.for (int i= 0; i < list.size(); i++) {TestBean bean = (TestBean)list.get(i);name = bean.getDisplayMibName();}I need to sort the names from the bean and assign to new list.New ...
Hi,Can anyone explain the algorithm in the relax() method found in http://java.sun.com/products/plugin/1.5.0/demos/plugin/applets/GraphLayout/Graph.javaWhat is the theory behind this algorithm?Does anyone know a suitable link ?Thanks a lot
Hi,Availability to check whether the Tomcat server is up and running all the time. Please let me know how to know the server availability: listening to Tomcat server port periodically (configured in crontab) and send out notification when there is no response on the ...
Hi,I'm creating a web application and in one of my classes I have the following global variable defined:private static final SecureRandom generator = new SecureRandom();In one of public methods, I then call:int index = generator.nextInt(possibleRandomLength);I therefore need to make sure that ...
I am searching some lab practice question like matrix multiplication, generating number series, printing pyramid formats etc.So, please let me know where to find it?
Hi.I have this problem:I'm doing a program that has a map and two points. the map has wall that are not valid positions.I have used a A* algorithm to calculate the shortest path and is working fine.now i'm implementing a genetic algorithm to solve the problem but i'm not having sucess.My ...
129 byte By
A-B-Ca at 2007-11-26 13:29:33
Hello ,i would like to ask all of you if any one have a java calculator project ..simple one .please can you help me .thx.
Hi,Java Web based application(struts) is deployed to Tomcat and I need to find the memory usage / disk usage of this application.Please let me know how to find the memory usage for a web based application.Thanks,Sarayu.Message was edited by: ...
Hi everyone,I am trying to write a generic version of array list. I hava a method called 'removeElement()' which returns the element removed from the array list. I got the code right, but the compiler is showing me an error message: "This method must return a result of type E".public E ...
Hi AllIs anyone has a knowledge of how we can configure self registration for our own access manager ? Can anyone fall some light on self registration topic to implement it as i am new to this fieldThanks in advance Madhvi
Hello,I'm trying to do some radix conversions on 128-bit numbers using BigInteger. I'm getting some wierd results, so I'm wondering if this is a bug in the JDK, or if I've made a mistake with my math (I'm on JDK 1.5.0_10-b03).Here's what I'm doing (in English). Code follows below, ...
THIS IS NOT A QUESTION!!!!I'd simply like to share my work.I've made a delightful little method that calculates arbitrary math expressions (apparently there is already such a class) BUT WHO CARES?!@#!This is a fun algorithm, input string, output number, it would be useful for making your own ...
if there are millions of phone numbers that need to be sorted, does anybody know if there is a most proper algorithm out there?I have been searching, but can't find a good one. Thanks.
984 byte By
Shaya at 2007-11-26 14:49:23
Hi 兒 I need 2 implement the shortest path algorithm for my project. But donno what is the best way of implementing that. Now for the testing I created 10 objects and I connected them together. (Node A having the reference of node B. if they are connected).Then I wrote a recursion method to find ...
600 byte By
Fonziea at 2007-11-26 14:55:48
Hi everybody,I gotta a problem to solve with a graph:1) I need to find every cycle in a graph.2) For every cycle I have to calculate a ratio beetween edges with a certain label and others so I need, everytime I find a cycle, to give it an ID or something that identifies it.3) Of course when I ...
70 byte By
yaros3a at 2007-11-26 15:10:08
I'm looking for something about RPA and implementation ie. C++
Hey i am making this program and i need an efficient findcolor algorithm i am currently using this:public Point FindColor(Color c,int x1,int y1,int x2,int y2,int tol){for (int i=y1;i<=y2;i++){for(int j=x1;j<=x2;j++){if (colorSimilarity(getPixelColor(j, i),c)*100>100-tol){return new ...
4993 byte By
phalkonea at 2007-11-26 15:10:29
I have a problem I want to solve using genetic algorithms and would like some advice. It is kind of hard to explain what I actually want to do, but I have simplified the problem to make it more understandable (the principle is still the same).Simplified problem:I have 4 containers of different ...
i want write a algorithm to implements the normal distribution formula. i worked hard but without success. does the jave liberary includes one? or please some write one for me. thank you!
2331 byte By
DMTNTJGDa at 2007-11-26 16:38:04
I have been working on a simple implementation of the A* Search Algorithm. I thought it was working, but apparently I didn't test it enough with different terrain movement costs (grass is easier to pass through than mountains, etc.). And now I'm wondering if my logic is even correct:loop ...
434 byte By
imranha at 2007-11-26 16:51:56
Hi,I need to split words from a sentence that are more than 2 letters. An example sentence is:This is "very" 'tricky'. I won't be able see it.I came up with the following regex, but it breaks the word won't and I only get the part that is before the single quote.[&]*\b[a-zA-Z]{2,}+\bMy ...
150 byte By
law1211a at 2007-11-26 16:54:06
has anyone used ant colony optimization algorithm for finding shortest paths other than for the tsp? please i need some help and advice. thanks
7628 byte By
rkippena at 2007-11-26 17:02:25
Each row represents a number. The first row corresponds to a value of 1, the second row corresponds to a value of 2, etc.There is obviously a pattern, but sometimes the numbers seem very strange. I'm trying to decode how the numbers are being stored.00111111111 1 ...
440 byte By
dove17a at 2007-11-26 17:04:09
Can somebody tell an algorithm for finding the smallest missing number in the list.numList is a java list having numbers like789689000378968900027896890000Here the result should be 7896890001list is allways in decending order.The first 6 numbers of each number in the list are same which is ...
58 byte By
dove17a at 2007-11-26 17:05:11
Can anyone tell how to sort List in ascending order
This code causes my program to never stop running, I can't figure out why it will not sort the list.public void insertionSort(){Node pointer=head;while(pointer.next!=null){Node insert=pointer.next;if ...
I have used a Scanner Object before to read doubles from an input, but how do I get the Next double from a String?Used this in the past:Scanner input = new Scanner(System.in);double num = input.nextDouble();I am looking for something like this:String example = "100.00";double num = ...
Hi,I tried to find all the subsets of a set. But it is taking a long time. If the number of elements is 9, it is taking around 2 minutes. if it is increased to 13, it is taking a lot more time (I waited for more than 4-5 minutes, but no output yet). Is there any efficient algorithm to find All ...
1661 byte By
rak78a at 2007-11-26 17:35:12
Hi Folks,I have been assigned a task to generate series of random numbers which should be real in nature. For those who are not aware of this concept, I would like to explain that real numbers are basically of two types: (1) pseudo random numbers, and (2) real random numbers.Real random numbers ...
Hi guys!Suppose I have data showing how n people found a way from A to B through an obstacle course (open area with obstacles).I now want to filter this data and visualize some sort of "average paths" for analyzers. The point is that the operator wants to be able to look at this modified view ...
2826 byte By
javaaaa at 2007-11-26 17:55:13
Hi,I have stored some states in a vector (States are numbers). In my code i have printed out the parent nodes, the 2 elements after the parent nodes are there child. The element placed at position 0 in the vector is the root.I do not know how to implement a depth first search tree to address ...
Hi,Please let me know how to handle superscript in swing.Superscript for JLabel or JTextArea.Thanks,Sarayu.
673 byte By
Neo2001a at 2007-11-26 18:17:55
Hi friendsIm developing a web application where im fetching data from database. For showing the records i have to implement pagination. now the data could be 1000 - 2000 records also... so keeping it in session does not sound good to me. and i also dont want to hit the database again and again. ...
I assume that most people will find this to be a naive question, but my general lack of experience with regular expressions is killing me here. I am about to pull my hair out, so I'm asking for help.I have a one-line string and I want to replace all occurances of ***.jar with ***-obf.jar, but ...
I'm in a contest where i have to build an efficient function to navigate a sprite around a maze to a given location...the problem i'm facing is that all the information i get about the maze is my position, the position of the goal, the no. of the openings around me & my direction... so ...
244 byte By
sujjyoa at 2007-11-26 18:41:13
Hi Everyone ....can somebody please help me get the code in any language to find the convex hull of circles of same radii. I would be delighted... even if i could get an explanation for finding the convex hull of circles with same radii.
139 byte By
sujjyoa at 2007-11-26 18:55:44
Can somebody tell me a method to draw a perpendicular (formula) in order to find the points of tangency of two circles of same radii
Fishing for some advice on finding a solution to finding the intersections of a straight line with a third order polynomial. Does anyone have experience with a problem like this?
312 byte By
dannenya at 2007-11-26 19:40:36
You can calculate x^p by multiplying x p times: x*x*x*x....x*x. The "cost" will be n multiplications.I know it is possible to create a more effective algorithm, with the "cost" log n, by using divide and conquer, and the fact that x^p = x^(p/2)*x^(p/2)^...Thankful for your ...
Does anyone know of an algorithm which produces a "meaningful" abbreviations for a word or phrase.I am working with a state machine and would like a way to reduce names of states and transitions to a simpler set of codes.ie. Acknowlege would become ACK, Not Acknowleged would become NACK, ...
2068 byte By
shahboya at 2007-11-26 19:53:21
i have tried to do it several times and im having a problem with this code....import javax.swing.*;import java.util.Scanner;public class Exercise6_19 { public static void main (String[] args) { // Entering the number of studentString number ofStudentsString = JOptionPane.showInputDialog( ...