hi,How can we extract LSB's from the pixels!!!Please help me its urgent....a code will be big help!richa_sharma
How would you create a tiled base for an RPG? Is there some way of using it in an array?
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 ...
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 ...
May i have the algorithm for the minimalization karnaugh map that is writing in java?Thanks for help!
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 ...
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 = ...
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 ...
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 ...
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
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
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 ...
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?
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..
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 ...
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 ...
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 ...
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. ...
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 ...
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, ...
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 ...
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 ...
Hi all,i use the jain sip applet , it's works fine but i can't here any thing during the convertation.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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.
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 < ...
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). ...
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 ...
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
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 ...
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 ...
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 ...
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() ...
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
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 ...
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 ...
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 ...
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 ...
i want algorithm for transaction mapping algorithm for frequent itemset mining in data mining
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
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 ...
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 ...
can someone show me the proof why arithmetic coding is almost as small as the entropic size of the data?
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 ...
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 ...