Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
5
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~17.3K People Reached
Favorite Tags

48 Posted Topics

Member Avatar for kombi-tamiri

I think its a fairly broad question since there are some benefits to windows over linux from a development perspective. However I personally have used debian based linux distro's for the past few years I would say to anyone to choose the right tool for the right job. However some …

Member Avatar for Arch Stanton
-4
217
Member Avatar for trishtren

Hello, Iv been working on a project for a while now in java and i read somewhere that the GCJ can compile java classes into native binaries, after a quick google search it was revealed that this was true. However after reading a number of posts across the web and …

Member Avatar for jwenting
0
224
Member Avatar for trishtren

Hi, I was wondering if anyone could help me or point me in the right direction. Iv been developing a source to source compiler for some time, so one language being translated to C++/C. Now the source has been translated i wish to package a windows and linux c++ compiler …

0
161
Member Avatar for trishtren

Hi, I have been trying to create a game loop that is paused when a certain key is pressed. This seemed to work ok in Swing but in javafx the loop locks up the UI, even if i create a seperate thread. @FXML public void setPaused(KeyEvent e) { if (e.getCode().compareTo(KeyCode.P) …

Member Avatar for trishtren
0
1K
Member Avatar for COKEDUDE

I looked into this, but i cannot find a "handle" method for interface ItemListener at all. The oracle documentation says it contains only 1 method : http://docs.oracle.com/javase/7/docs/api/java/awt/event/ItemListener.html Also the second choice's listener is attached to a checkbox not a choice so they are inherently different right away... To implement an …

Member Avatar for JamesCherrill
0
616
Member Avatar for trishtren

Hello, im currently working on a program to split a string based on symbols only, i need to seperate the string around the symbols whilst keeping the symbols as well eg. test_String_123_^; would result in an array containing : [test] [_] [String] [_] [123] [_] [^] However although i have …

Member Avatar for masijade
0
277
Member Avatar for trishtren

Hello, Iv been trying to compile a simple opengl / wxwidgets program in c++ on linux mint. However when i try to compile with : g++ MyGLCanvas.cpp MyGLCanvas.h openGLProjectApp.cpp openGLProjectApp.h openGLProjectFrm.cpp openGLProjectFrm.h `wx-config --cxxflags --libs --gl-libs -lGL` -o simpleprogram I get an error message : cannot find -lwx_gtk2u_-lGL-2.8 collect2: error: …

Member Avatar for trishtren
0
136
Member Avatar for trishtren

Hello, I was hoping someone can help me, im looking for a way to extend a basic shape class in particular the roundedrectangle2d class and be able to draw it in the same way we could handle an object with a simple call to g.draw(object instance); However im having problems …

Member Avatar for JamesCherrill
0
382
Member Avatar for trishtren

Hello, Iv recently been having trouble with a java project im working on as i need a button to add a sentence to a Swing list box. The problem im having is it uses an observable class and an observer. Fundamentally the list adds the elements to an array in …

Member Avatar for trishtren
0
207
Member Avatar for trishtren

Iv been developing a parser using java, however due to testing on multiple machines i have errors now on one machine i corrected as the machine was using jdk/jre v1.6, and on my newer machine jdk/jre 1.7 The question i have is, what are the implications of using the String …

Member Avatar for delta_frost
0
300
Member Avatar for trishtren

hello, Iv recently been working on a compiler, so far i have a fairly decent working lexical analyzer and token scanner. So i can break down the code into a series of tokens and analyze them for correct strucutre. I also understand how to generate x86 instructions. However im lost …

Member Avatar for trishtren
0
192
Member Avatar for trishtren

Hello, Iv recently just started using javafx and i am struggling finding a way to access data from a controller class, at the moment i can do it using method.invoke, however it seems like more of a hack than a legitimate clean option of accessing data from a controller class. …

0
76
Member Avatar for trishtren

hey, Im having a problem adding a javafx Canvas node to the scrollpane node. Im using the **.setcontent(canvas)** method of the scrollpane and there are no syntax errors. The Scrollpane does expand in width (hbar appears longer) but it still looks empty. I know the canvas is working correctly as …

Member Avatar for trishtren
0
1K
Member Avatar for trishtren

hello, Iv been trying to write a java program to read an image from a list of images in a file I.E: * File * Filename * Image1 * Filename * Image2 * Filename * Image3 The problem i am having is that the filename's are string objects followed by …

Member Avatar for vishalonne
0
147
Member Avatar for trishtren

Hello, Im looking for a way to construct a scale-able 2d list or something of the sort. What i have so far is an array int [][] mydata = new int[6][4]; The problem is in my editor i wont know how long to make the array as people are going …

Member Avatar for jwenting
0
127
Member Avatar for trishtren

Hey, Im looking for the cleanest way to scan through a text file and remove symbols only if they meet certain conditions. So far i have been using the Scanner, but it removes them regardless and i was looking for the best way of providing conditions like those for comments …

Member Avatar for JamesCherrill
0
175
Member Avatar for trishtren

Hello i am having problems creating an update query, I have two tables both have an Title column and one table has an ID column. I want to take the ID from the table that has it when the titles of both columns match one of the titles against any …

Member Avatar for trishtren
0
198
Member Avatar for trishtren

Hello, im a beginner at sql and i am struggling at comparing data from one table to another and then copying other data. *I have 2 tables both of which have 2 columns with the same name lets call them tableA and tableB. * tableA has a column id and …

Member Avatar for trishtren
0
159
Member Avatar for trishtren

Hello, iv looked around google and have found it is possible to put an applet into a jframe. The problem i am having is that my applet is to be hosted online, what i want is to take the applet that is online and display it from a swing or …

Member Avatar for NormR1
0
229
Member Avatar for trishtren

Hey, Iv been looking around for a simple way (meaning less than 10 lines) to reverse the order of my bytes in a byte array. At the moment my code is: public byte[] outputarray() { byte b[] = new byte[10]; ByteBuffer buf = ByteBuffer.wrap(b); buf.putLong(output); } The problem is that …

Member Avatar for trishtren
0
3K
Member Avatar for trishtren

Hey, im looking for a way to get a double value to follow the IEEE 754 standard, iv seen a number of librarys for it on java but i had my doubts to whether it was a problem that wasnt solved already with a java standard library. The value i …

Member Avatar for trishtren
0
238
Member Avatar for ankit.sinha.31521

> d coding, feel free to ask some specific questions Theres a whole lot of theory and multiple methods of encryption and decryption, including the most efficient to safest and so on. So your question is kind of vague. You also dont state whether you want to only learn how …

Member Avatar for trishtren
0
585
Member Avatar for trishtren

Hey, iv been looking around for help with a problem with a program i am working on, but i cant find an appropriate category on any forum really. The program is a flash swf compiler. But at the moment i am having problems understand a certain data structure (the abc …

0
400
Member Avatar for trishtren

Hey, I was hoping someone can help me convert a piece of php code, im not really sure where to start pack( 'v', $test ); The pack php function above takes in an integer and converts it to an unsigned long. V - unsigned long (always 32 bit, little endian …

Member Avatar for keith.pastorek
0
1K
Member Avatar for LinkedList

> ith my CELL phone via Bluetooth. I just want it to receive text chats send by cell over bluetooth connection and be able to display them in appropriate format. I have good knowledge of programming with JAVA but never tried to create any bluetooth app. So Please suggest me …

Member Avatar for hatebin
0
263
Member Avatar for trishtren

Hello, I am hoping someone can help me understand a piece of code i found. Since php is not my primary language, and what i googled returned vague results, i am unsure exactly how a number or integer value can be used directly as a boolean in a while operation. …

Member Avatar for pritaeas
0
220
Member Avatar for trishtren

Hello, I am trying to recreate a data type in java used by adobe, it is an unsigned integer 30 bits long or U30 by the specification. Anyway i am having problems understanding the binary output, the definition states: "The variable-length encoding for u30 uses one to five bytes, depending …

Member Avatar for trishtren
0
193
Member Avatar for trishtren

hey, Iv been looking around for an easy way to check if a string matches exactly and not just in a few characters I.E B != "ABC" B == B Frederick != F So only if the entire string matches will my condition be met. currently im using : String[] …

Member Avatar for stultuske
0
232
Member Avatar for trishtren

Hey, Im trying to extract numbers from a scanner, but im having problems extracting them all. Primarily i need it to * read a text file which contains some text and numbers. * go through the file and locate all numbers * differentiate between numbers contained in bracket (3), and …

Member Avatar for trishtren
0
260
Member Avatar for trishtren

Hey, iv been working on a fairly simple part of my program but it throws a null pointer exception. The error i recieve is : Exception in thread "main" java.lang.NullPointerException at FillStyle.<init>(FillStyle.java:12) at compiler.main(Builder.java:43 The code causing the error is : public FillStyle(int type) { if (type >= 0) { …

Member Avatar for trishtren
0
281
Member Avatar for writerervin

> I apolagize if this question has been asked before, but I was looking to see how I would go about writing an editor that saves the file on a server instead of on the harddrive. I would appreciate any and all help. hmm i think theres a number of …

Member Avatar for trishtren
0
170
Member Avatar for trishtren

Hello, iv been working on generating a swf tag generator for a project. However i am having trouble understanding how certain values are generated. The shape i have defined in flash is 200 pixels wide and 200 pixels in height and placed at X, 20 and Y 20. The problem …

Member Avatar for firdousahmad
0
91
Member Avatar for trishtren

Hey, I have a need to define a new type such as int,short etc. I have the class with all the base methods it must perform somewhat equivelant but different from the Integer class, Short class etc. However im not sure whether this is an interface i need to define. …

Member Avatar for sepp2k
0
134
Member Avatar for iEpic

> e it where when you click a button, a seperate new GUI window will open. > When i add my code and click the button, it just adds the new buttons onto the GUI I already have open I am confused about what you are trying to achieve, it …

Member Avatar for trishtren
0
170
Member Avatar for miaa

> ant to implement it as a mobile app..so plz help me with some suggestion.. android has its own api for implementing speech recognition in the package android.speech, javax.speech is the oracle java standard i believe for speech recognition. However since iv never worked with either google would most likely …

Member Avatar for trishtren
0
115
Member Avatar for trishtren

Hello, Iv been trying to work through some issues on binary output recently. But im having problems understanding the conversion process in java when using two's complement. I dont understand why System.out.println(Integer.toBinaryString(-11700)); Prints out 11111111111111111101001001001100. Shoudlnt -11700 only be 15 bits long? When i calculate it by hand and invert …

Member Avatar for JamesCherrill
0
166
Member Avatar for trishtren

Hey, Iv been looking around google for the past few days to find ways to embed python 3.2 into my c++ application. I however want interpeter to be compiled into my application, so i can merely distribute one exe file without relying on the user to install python. However the …

Member Avatar for TrustyTony
0
285
Member Avatar for trishtren

Hey, i googled around for a solution but seem unable to come up with a reasonable solution to the problem of passing a class as a parameter. I wish to mimic the syntax used in java like below : setPenColor(new Color(255, 0, 255)); Where i can pass a new object …

Member Avatar for JamesCherrill
0
209
Member Avatar for trishtren

hey, Iv been working on an swf file generator following the specification, However i am currently struggling to have my binary output match the binary output of a swf file gengerated by flash CS3. The particular part i am struggling with is the file attributes tag, the specifications for the …

Member Avatar for trishtren
0
177
Member Avatar for trishtren

hello again, i am having problems outputing the correct format of hex, the result i am aiming to achieve in my file should be : 78 00 07 D0 00 00 17 70 00 00 <-- aiming to achieve D8 00 6F D0 00 00 7F F0 00 <-- actual …

Member Avatar for NormR1
0
462
Member Avatar for pooja.shinde

Java swing and the look and feel library have a number of features that would be useful for this sort of development. It is also useful to look into overriding the Jframe class that makes standard JFrame for your application and reset its background opacity etc to match your needs. …

Member Avatar for JamesCherrill
0
611
Member Avatar for trishtren

Hey, Im stuck trying to figure out how to insert one byte between two other bytes that have already been created in an output stream: OutputStream out = new FileOutputStream("MyFile"); try { out.write((byte) 70); /*Byte should be inserted between these elements*/ out.write((byte) 40); /* but must be performed at end …

Member Avatar for trishtren
0
182
Member Avatar for trishtren

Hey, Iv been working a lot with binary files recently and i am currently stuck trying to save a string to a file. The problem is i do not want the literal string value of "010100000000000100010011000000000001000100110" to be saved to the file I want the above binary string to be …

Member Avatar for NormR1
0
1K
Member Avatar for speakon

hmmm, the behind any game is a loop. Including 2d and 3d games and even text based games. For a very simple text based game your main method is probably the way it should be. However i would recommend implementing seperate functions for certain parts of your game that are …

Member Avatar for trishtren
0
290
Member Avatar for trishtren

Hey, Im having problems converting an integer to a character , it seems to either produce incorrect results when printed(usually some sort of ascii symbols) instead of the actual literal value. char* str; str = (char*)malloc(sizeof(char)); snprintf(str, 16, "%d", remainder[i]); cout << str; This is what im currently trying, but …

Member Avatar for WaltP
0
389
Member Avatar for trishtren

hello, i am attemping to write a basic swf header reader using the format specification from : http://www.the-labs.com/MacromediaFlash/SWF-Spec/SWFfileformat.html So far i am able to read the first 3 bytes : FWS, no problem The problem i am having is reading the version number after, it is displayed as a question …

Member Avatar for WaltP
0
165
Member Avatar for trishtren

Hello, Iv been working on a project in java and i want to implement an export to HTML 5 feature. I have looked around and not seen many useful discussions on how to implement this feature. A number of software products i looked into such as scirra construct and adobe …

0
85
Member Avatar for trishtren

hello, I have been working for the past few monthes on a c++ code generator and im finally at an alpha stage. The product generates code from a UML layout, however i have spent a fair amount of time searching for a compiler that will allow me to easily embed …

Member Avatar for vijayan121
0
94

The End.