LSB Algorithm!!

140 byte By richa_sharmaa at 2007-11-26 22:00:32
hi,How can we extract LSB's from the pixels!!!Please help me its urgent....a code will be big help!richa_sharma

How to create a tiled map for an RPG

95 byte By Chris1234554a at 2007-11-26 22:00:41
How would you create a tiled base for an RPG? Is there some way of using it in an array?

Interface/Impl confusion

4766 byte By finalfrontiera at 2007-11-26 22:01:14
I was just restructuring some of my code and I decided to extract interfaces out of some concreteclasses. I'm not really expecting to have multiple impls for them, but I did it to reinforce thinking in interfaces and to have a good view over the class without having to look at implemntation ...

Strategies for getting an object on server side.

1208 byte By jfreebsda at 2007-11-26 22:08:23
There's a lot of -Project- objects stored in some collection on server.The GUI uses the server facade to perform services.There're several Frames and each one related to one server -Project- object.Performing any operation on server from any GUI Frame would be calling methods like ...

Algorithm for minimalization karnaugh map

115 byte By -cherry-a at 2007-11-26 22:08:31
May i have the algorithm for the minimalization karnaugh map that is writing in java?Thanks for help!

DirectX With Java?

540 byte By Sangea at 2007-11-26 22:12:06
I'm fairly new to the 3D Game Design world and was trying to learn it. All the books I have use C++ and either OpenGL or DirectX. I know some OpenGL that I used with both JOGL and LWJGL, but nothing serious. It's not that I don't want to learn C++ yet, but it's more so that I desire to ...

Moon motion with Newton laws

3329 byte By szgya at 2007-11-26 22:17:45
Hi,here is my code which should simulate the moving of moons around a planet.I am using Newton's law of universal gravitation ( http://en.wikipedia.org/wiki/Newton%27s_law_of_universal_gravitation)public Vector3d calculateAcceleration() {double r2,r3;r2 = p.distanceSquared(new Point3d());r3 = ...

Invokation of overridable methods from a constructor

531 byte By talesToninia at 2007-11-26 22:25:39
Hi!I know this is a classic issue, but I 'd really need some advice on this topic.Considering possible harmful consequences to this practice, I would like to know if there is a way to use the Template pattern within a constructor.In my context, I think it would be reasonable to have an ...

Java Beginner

403 byte By andyneouka at 2007-11-26 22:36:38
Hi everyone, im new to this and am looking for some help. Im doing a java course in college. Its only a basic intro to java but its quite difficult. im on a question that requires me to use loops.....Find the smallest number in a list of 10 integers.i think i have to ask for an input of 10 ...

JOGL with SWING problem

293 byte By netza at 2007-11-26 22:37:07
Hello i speak spanish my english is not goodWhen i execute a java jogl program i've problem with swing.The jogl window catch the events from swing and execute accions out control.How can i lock the events from swing ?Thanks netzrod@hotmail.com

3D surface plot using Jogl or Open GL

289 byte By raghavan_26a at 2007-11-26 22:38:36
Hi,I am new to this forum .. can any one suggest me how to implement 3D Mesh plot or surface plot using Jogl or open GL or lwjgl Libraries ..It would be great if some one can help me out in this as I am new to these jars Thanks in advance raghavan

Can not control the color in JOGL

344 byte By tobyintera at 2007-11-26 22:39:11
I am a beginner to use JOGL. I find that I can not control the color, both background and foreground. The background is always Black, and foreground is always Red.I use canvas.setBackground(Color), gl.glColor3*(), trying to change the color. But it does not work. What is the ...

Which pattern to use for multi-threading downloader

292 byte By Isaaka at 2007-11-26 22:39:49
HI,My multi-threading downloader makes freezing the editor. Input streams and output streams are in a synchronized block. Classes are extended from Thread. I don't know what else could I do to correct my code, so I think to use any safe pattern.What could you recommend?

Random Access File HELP!!

152 byte By Ixnaya at 2007-11-26 22:49:55
How do you create a random access file using console interface which allows the user to enter many records, and eventually read them one by one..

How to round down or up to the nearest decimal value?

438 byte By baijiazia at 2007-11-26 22:50:07
Hi, Im quite new to java ^^Would like to ask how to round down or up a double or float decimal value?I was trying to display a cosine table using a for loop to display but the values that it added exceeded my upperlimit so the last result wont be displayed.for(c = lowerl; c <= upperl; c = c ...

Algorithm for Finding combinations from Arrays

403 byte By JCGEORGEa at 2007-11-26 22:51:11
Can anybody point me the generic algorithm for making combinations from Arrays.eg : two String arrays - { "Red" , "Blue" } and another { "10" , "20" ,"30" } Result should be {{ "Red" , "10"} , { "Red" , "20" } , { "Red" , "30" } , { "Blue", "10" } , { "Blue", "20"} , { "Blue" , "30" } }I can ...

Algorithm for Finding out combinations from Arrays

618 byte By JCGEORGEa at 2007-11-26 22:51:12
Can anybody point me the generic algorithm for making combinations from Arrays.eg : two String arrays - { "Red" , "Blue" } and another { "10" , "20" ,"30" } Result should be {{ "Red" , "10"} , { "Red" , "20" } , { "Red" , "30" } , { "Blue", "10" } , { "Blue", "20"} , { "Blue" , "30" } }I can ...

Math optimization (?)

3779 byte By jvaudrya at 2007-11-26 22:59:11
Here is the method I would like to optimize. I am wondering if there is also a way to do this with bit shifting operators or the like?public static final int getMagnitude(double value) { return (int) (Math.ceil(Math.log10(value)));}// this version runs a bit faster since there is no division. ...

Algorithms - Improving O(n)

370 byte By vic_ska at 2007-11-26 23:05:43
Hello,I have a fairly straightforward problem. I have a 'while' loop that traverses over 3000 array elements (our company's client emails and other information) and sends out emails. Because it takes time to go through this set, is there a way to improve the performance so traversing of the ...

Java Game Development - robot virtual world- Finite State Machine

1268 byte By dubaa at 2007-11-26 23:06:57
hey, i am looking some advise on buidling a Finite State Machine using java. I im about to start a project where i must create a "virtual robot world" which consists of a number of robot agents (simple filled rectangles). Each of these agent will have a number of states such as stopped, ...

Algorithms - pokerhand evaluators, bit shifting and unique values...

1740 byte By cakea at 2007-11-26 23:07:49
Hi,Oh, and I originally posted this in the programming section and was told to move it! So here it is again:I have been experimenting with converting some code from c to java. I used cactus kevs card hand analyser ( http://www.suffecool.net/poker/evaluator.html) as my base unit and having ...

Java Game Development - Intersect two points

311 byte By CarelDuToita at 2007-11-26 23:14:10
HiI've got two points p1 and p2.p1 (Planet) rotates around origin (Sun) o at speed s1.p2 (Ship) could be placed anywhere (meaning inside or outside the circle of the rotating p1), p2 has a speed s2.How do I calculated at which point p3, p1 and p2 will ...

Java Community Process (JCP) Program - [Jain Sip] Sound Problem

125 byte By ourrarhia at 2007-11-26 23:21:31
Hi all,i use the jain sip applet , it's works fine but i can't here any thing during the convertation.

Patterns & OO Design - Simple ORM question

1073 byte By radicjesa at 2007-11-26 23:22:20
I have a problem with Object Relational Mapping which I can't find anywhere.From visiting dozens of sites I finally found some usefull info to model the database to code in ORM style.But now my head is against a wall again after modeling a big part of the ORM.What im having now is something ...

Algorithms - Loop optimization

589 byte By Plasmaa at 2007-11-26 23:23:16
Iterator itr = dkItems1.iterator();while (itr.hasNext()) {DKWorkQueue dk = (DKWorkQueue) itr.next();if (!dkItems2.contains(dk)) {sb.append(dk.toString() + lineSeparator);// out.write(dk.toString());out.newLine();count++;}}any way to do this ...

Java Game Development - Java ME - RPG Game Stages

493 byte By Jasonca at 2007-11-26 23:23:44
I have a simple RPG games where player attack enemies and collect points. I need to design a few stages for this game (basically, my concept of different stages is just changing the maps of the game.) but i have no idea how the games stages works? Do I ned to create new classes to represent ...

Patterns & OO Design - Database Design Pattern

317 byte By emmi@javaa at 2007-11-26 23:30:39
hi all,I am developing a J2SE application which is communicating with two DB schemas.Do any one suggest any good design pattern to manage these type of situation. I was thinking to create two DAO classess for two different DB schemas?I am using oracle 10g as ...

Patterns & OO Design - OO Design for Property type

767 byte By GhostRadioTwoa at 2007-11-26 23:31:32
We are currently in the design process for an application that will use an ORM and are trying to create an object model that will make the most sense for using the ORM to save data to the database. At this time, we will not be using the ORM to instantiate objects from the relational data.The ...

Java calls repaint to much (100% CPU)

2647 byte By MichaelArnautsa at 2007-11-26 23:33:04
Hello,I'm creating an emulator, and the image to display is created with an ImageProducer. Now, I have this code:public class Video extends JPanel {private int a;private Image screen;private Lcd lcd;private Dimension lcdDimension;private int scale;private int scaleFactor = 3;/** Creates a new ...

Pause game

89 byte By Jasonca at 2007-11-26 23:34:57
Does anyone here knows or has codes for pausing game and continue game? Thank You.

Reading int[] in the game map

559 byte By Jasonca at 2007-11-26 23:37:00
I have a method setGameMap() which has return type: int[] . It contains a set of tiled map stored in arrays. If i want to call this array in another class, how do I set the tiles one by one using for loop? ( e.g. castleMap ) as i want to setCell using LayerManager.for (int i = 0; i < ...

GA Help Needed Urgently

9479 byte By Niru99a at 2007-11-26 23:37:04
Hi,I'm stuck on how exactly to define the selectParent() method (the Selection method) because I have to take out samples of size 5 (the tournament size) from the population and then order those chromosomes ( in the contenders ArrayList) in order of fitness (the lower the fitness the better). ...

how to build good formatter

761 byte By Meirya at 2007-11-26 23:39:59
Hello alli need to build formatter , something that takes one format and convert it to different format now as general programming task there isn't much to it but if i like to take this formatter to more generic uses it can start to be more complex for examplenow i need to build formatter that ...

GC alghoritms

207 byte By cat4hirea at 2007-11-26 23:41:28
Hi all,I'd like to know if someone can point me to papers that explains how GC works and which are most important alghoritms and techniques (e.g., generational GC...).Thanks,Luca

Why are the Java Library source code classes not indented properly?

317 byte By sri1025a at 2007-11-26 23:41:52
I have always admired the design of a lot of classes and frameworks in the JDK. I read the source code a lot to see how the developers coded a particular class, how they designed it and how they write the javadocs.But one thing I observed was the improper indentation of the source code. Why is ...

Persistence Layer return convention issue and question - null vs. exception

3779 byte By smalltalka at 2007-11-26 23:44:28
I'm writing a position paper on persistence layer query returns. It deals with querying for a single object or a collection of objects and what to do if the object or collection of objects are not found in the database. I've googled many different search terms and have not come up with any ...

Distributed Storage Framework

755 byte By skalstera at 2007-11-26 23:50:02
Hello!We are discussing to implement a DSF, and we argue about the pattern Observer and logging. We have read several documents that recommend monitoring for any kind of distributed system because the high number of unexpected failures, bugs, etc.The problem we are discussing is regarding the ...

Polygon: collision, line segment

1765 byte By SFLa at 2007-11-26 23:50:30
Hi,I am writing a game and would like to check whether there is a collision between my player and a given object.I am painting an object using GeneralPath; the player is being displayed using Ellipse2D:public class Shapes {private GeneralPath path = new GeneralPath();public Shape drawBird() ...

Technical Design Document template for J2EE based project?

173 byte By HarshaVardhana at 2007-11-26 23:55:18
Hi,I am a new bee to the J2EE world. Can anybody point me too or help me in finding a technical Design document template for a J2EE based project.Thanks

Sliding Puzzle Design

913 byte By ANDREWP7a at 2007-11-27 0:02:55
Hello,I am currently creating a tradiational sliding puzzle tile game but I am having problems with some of the design.In order to create a list of random numbers, I have created a List (Collections API) and initialised it as an ArrayList.Each element in the list in an Integer object counting ...

Choosing the right pattern.

1071 byte By Chiew_Boona at 2007-11-27 0:04:35
Hi,I've a servlet that will handle page redirection and page flow. I've read about various design pattern and was hoping that I could implement some of them onto my codes.However, there are various patterns that seems to be applicable and was wondering which is a better option. 2 patterns in ...

Distribution of weights

1834 byte By phalkonea at 2007-11-27 0:15:22
I'll try to explain as good as I can, but if you have any questions please don't hesitate to ask.I have a beam of about 200 m which is supported in the middle. The resulting moment which is working on this beam is known (the total weight + the distance from the middle). The beam is divided ...

Rules engine deisgn

561 byte By sdegardina at 2007-11-27 0:17:07
Hello Everyone,I'm developing a WebApplication with GWT.I'm planning to work with a Rules engine.So, i'm looking for Best practices, Design pattern to allow a flexible way to construct UI screen and workflow based on Rule.So the screens shoud wotk with an interface provided by the business ...

algorithms

100 byte By suganwaran267a at 2007-11-27 0:25:49
i want algorithm for transaction mapping algorithm for frequent itemset mining in data mining

hi

162 byte By supua at 2007-11-27 0:27:20
Hi,can anyone help me with the source code of pyo-pyo game it is urgent plz send it to my mail id drkarchu28@yahoo.com for which i shall be greatful

Representing a network diagram using SVG and JAVA

1570 byte By vchangrania at 2007-11-27 0:29:29
Hello all,Wow this forum is exactly what I was looking for!Am kinda new to design paterns and have stumbled upon a design problem....I am trying to add SVG based graphics support to an existing Struts/JSP/Servlet based web application. Basically I wanted to display a network diagram comprising ...

Painting Methods and Collision Detection

734 byte By laginimaineba at 2007-11-27 0:29:46
Hello, I am developing a real-time game which requires a lot of painting to be done. Since I have no prior knowledge of game programming - I decided to do the painting in a class which extends JPanel and just use the paintComponent method. This has proved as slow and insufficient for real-time ...

arithmetic coding

111 byte By TheHattera at 2007-11-27 0:44:30
can someone show me the proof why arithmetic coding is almost as small as the entropic size of the data?

transparent sprites

372 byte By alexxziusa at 2007-11-27 0:54:56
My applet pisplays the left graphic and i wanit to display the right one.Im usingg.drawImage(shipImage,shipx-shipw/2,shipy-shiph/2,this); to draw the sprite.[URL= http://imageshack.us][IMG] http://img71.imageshack.us/img71/5212/piccx9.png[/IMG][/URL]Thanx. And no "go there and read so many pages ...

transparent sprites

372 byte By alexxziusa at 2007-11-27 0:54:58
My applet pisplays the right graphic and i wanit to display the left one.Im usingg.drawImage(shipImage,shipx-shipw/2,shipy-shiph/2,this); to draw the sprite.[URL= http://imageshack.us][IMG] http://img71.imageshack.us/img71/5212/piccx9.png[/IMG][/URL]Thanx. And no "go there and read so many pages ...