Hi,
i'm readin file from serialport using x-modem protocol and 133 bytes packet i'm reading
in that 1 byte is SOH
2 byte packet number
3 byte nagative of packet number
next 128 bytes data
2 bytes CRC sent from other side.
i've to calculate CRC of 128 bytes data and 2 bytes crc sent form other side that i've to m...
How do I play the same sound more than once at any given time with numerous other sounds going on at the same moment? Right now I've got a "Clip" playing but it won't overlap with itself. ( I hear one bullet fire, the sound finishes then it plays again ). I'm writing a game with a fast bullet firing system but i can't get the sound to w...
I have the following code:
@BeforeClass
public static void setUpOnce() throws InterruptedException {
fail("LOL");
}
And various other methods that are either @Before, @After, @Test or @AfterClass methods.
The test doesn't fail on start up as it seems it should. Can someone help me please?
I have JUnit 4.5
The me...
I am developing system in which i am using struts2. I have a requirement to develop a wizard for some of my forms. Anyone can give me any link for creation of wizard through struts2 ? or any suggestion how to create wizard through struts2 ?
...
Hey I got some sources files for midlet application. How can I compile these to a midlet that I can run on my mobile.
...
Does Lucene has separeted jar with javadoc inside ? Everything in contrib section has separated javadoc jars but it look to me that core has none. Am I right ?
...
If you have an immutable list, you expect it to always return a reference to the same object when you ask for, say
list.get(0)
My question is, would you expect to be able to mutate the object and have the mutation reflected next time you get it from the list?
...
I have an applet which have to read a file from server. But I receive the following exception
java.security.AccessControlException: access denied (java.io.FilePermission \kb1.xml read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.Secu...
In Eclipse how do I copy the Java Build Path to a different workspace?
Somebody somewhere wrote that if you copy the project then you have copied the build path also. This doesn't seem to be the case.
I've tried copying the entire workspace to a new directory. Opening Eclipse and pointing it to the new directory has all the projects an...
I basically want my Midlet the ability to edit records.
I have this code
the information is added as follows
protected void searchForNameToEdit()
{
Editrecord.deleteAll();
try
{
rs = RecordStore.openRecordStore("Detail", true);
RecordEnumeration re = rs.enumerateRecords(new NameMatcher(EditSearc...
hello,
I am - unfortunally - working with jsf and I am experiencing a problem.
I have a jsf page that displays a table with some data, using the <h:dataTable> component.
Every row of this table has an <h:commandLink> with a Remove action to remove the item in that row.
When I perform that action, the method in the backing bean is correct...
I am new to struts2 tiles. Here i am trying to execute 1 simple application using struts2 tiles. While executing following application i m getting error :
Cannot load org.apache.tiles.web.startup.TilesListener reason : org.apache.tiles.web.startup.TilesListener
java.lang.ClassNotFoundException: org.apache.tiles.web.startup.TilesListene...
I have to activate android's system key lock (the one you get when you press the power off/*hang up* button). See here:
I already browsed the docs but everything I found was PowerManager and KeyguardManager. Both seem not to be the solution :-(.
So, does everyone know how to achieve that from a android application? (If special permis...
Is it possible to check whether an email is a valid email or not?
For checking whether a link is a valid one or not I am checking like this...
URL url = new URL("http://www.google.com");
URLConnection connection = url.openConnection();
if ( connection instanceof HttpURLConnection)
{
HttpURLConnection httpConnection = (HttpURLCo...
I'm planning on writing an RPC server in Java. The server needs to accept incoming RPCs - probably over HTTP - and answer them. Fairly basic stuff. Support for 'long polling' or 'hanging' RPCs isn't necessary, so a thread-per-request model ought to be perfectly adequate.
If I were writing this in Python, I would probably use a framework...
Does anyone know a library or some at least some research on creating and using persistent data structures in Java? I don't refer to persistence as long term storage but persistence in terms of immutability (see Wikipedia entry).
I'm currently exploring different ways to model an api for persistent structures. Using builders seems to be...
In pom.xml you can:
<build>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
</plugins>
</build>
How does Maven know where I have 1.5 version?...
Hi there. I'm writing a Flex app on top of a Java web application using BlazeDS. BlazeDS has logging inside of it, but I want to set it up to Use the same logging framework I have in my application.
Is there a way to setup BlazeDS to use Log4J? Or am I stuck with the Flex logging stuff that's already baked into BlazeDS?
...
I would like to draw the contents of a StyledText widget in to an Image; this will then provide a convenient way to stick the image into a Table cell.
Any suggestions about the best way to go about this?
...
Hi all,
Just finished a little app that I want to distribute and at the moment for windows platform it is just an executable jar. Is there anyway to give this jar another image than the java cup?
Thanks
...