help

105 byte By WAQAS_786a at 2007-10-3 10:54:37
write a java program to convert binary numbers to decial numbers. the input is a string of zeroes.

what is the best way to support High availability

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 ...

Fastest way and Efficientiest way to find the Date withtin the Date Array

525 byte By popohomaa at 2007-10-3 11:27:40
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 ...

Graph layout

199 byte By conscripta at 2007-10-3 11:32:00
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.

regular expression & XML

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 ...

Finding closest array in a set of arrays

1460 byte By tbpckisaa at 2007-10-3 11:36:30
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, ...

java object reference index..

942 byte By ayusman_dikshita at 2007-10-3 11:47:00
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 ...

random number generator

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, ...

DCT in audio coding

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 ...

Need some help how to sort the bean data

462 byte By Sarayu_Geethajalia at 2007-11-26 12:26:44
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 ...

Request for expanation

280 byte By norbulingaa at 2007-11-26 12:37:28
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

check whether the Tomcat server is up and running

314 byte By Sarayu_Geethajalia at 2007-11-26 13:07:59
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 ...

Is nextInt of SecureRandom class thread safe?

767 byte By MikeUKDevelopera at 2007-11-26 13:21:58
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 ...

Where to Find Lab Questions?

179 byte By Mr_Kirana at 2007-11-26 13:22:02
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?

fitness for Shortest path using a genetic algorithm

1101 byte By Ricardo_EI_ESTGa at 2007-11-26 13:23:35
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 ...

Help.

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.

Java Application Memory usage in java

308 byte By Sarayu_Geethajalia at 2007-11-26 13:49:46
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: ...

A generic array list

1783 byte By buteForcea at 2007-11-26 13:52:43
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 ...

Membership/self registration in access manager

257 byte By MadhviGuptaa at 2007-11-26 13:59:38
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

Bug in BigInteger.add() or my math mistake?

6100 byte By fuellin3Fa at 2007-11-26 14:15:14
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, ...

Making your own language

14264 byte By ArikArikArika at 2007-11-26 14:16:23
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 ...

photo number sorting algorithm

206 byte By caesarkim1a at 2007-11-26 14:43:43
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.

Implementing the shortest path algorithm

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 ...

Bad cycles in Java

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 ...

A Ring Partition Algorithm

70 byte By yaros3a at 2007-11-26 15:10:08
I'm looking for something about RPA and implementation ie. C++

finding a color with a robot

892 byte By nickmagusa at 2007-11-26 15:10:11
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 ...

Genetic Algorithms

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 ...

problem about normal distribution

194 byte By seablue1023a at 2007-11-26 15:21:19
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!

AStar Search Logic (Bug)

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 ...

Tricky regex question

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 ...

aco implemenataion for shortest paths.

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

decoding binary decimal format

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 ...

Finding the smallest missing number in a list

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 ...

sorting list in acending order

58 byte By dove17a at 2007-11-26 17:05:11
Can anyone tell how to sort List in ascending order

Insertion sort in doubly linked list HELP ME RHONDA!

1138 byte By javahockeya at 2007-11-26 17:12:53
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 ...

Next Double from a String

500 byte By climbjm2a at 2007-11-26 17:14:21
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 = ...

Finding All subsets of a set

410 byte By PhaniKumarNistalaa at 2007-11-26 17:31:20
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 ...

Real Random Numbers

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 ...

"Average paths"

855 byte By ArneWeisea at 2007-11-26 17:48:28
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 ...

depth first search tree

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 ...

Superscript in swing

142 byte By Sarayu_Geethajalia at 2007-11-26 18:10:06
Hi,Please let me know how to handle superscript in swing.Superscript for JLabel or JTextArea.Thanks,Sarayu.

Pagination

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. ...

REGEX -- Finding matches in a String up to a certain point

1583 byte By oppositereactiona at 2007-11-26 18:24:06
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 ...

Maze traversal algorithm

446 byte By laxstar8a at 2007-11-26 18:40:45
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 ...

Convex hull for circles

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.

draw a perpendicular

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

Intersection of straight line with 3rd order polynomial

185 byte By Query_wearya at 2007-11-26 19:22:17
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?

Algorithm: calculate x^p

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 ...

create abbrivations for a set of strings

314 byte By radix_zeroa at 2007-11-26 19:51:20
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, ...

Student Needs Help

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( ...