I have a dummy Java Program, which I want to write in Clojure. It has a class which implements Serializable and a function which saves it. Since I have never written such programs in Clojure, I wanted to know what would be the correct way to approach this problem, what Clojure data structures, and api calls would you use?
import java. i...
I have a text file and it can be ANSI (with ISO-8859-2 charset), UTF-8, UCS-2 Big or Little Endian.
Is there any way to detect the encoding of the file to read it properly?
Or is it possible to read a file without giving the encoding? (and it reads the file as it is)
(There are several program that can detect and convert encoding/form...
So I created a web-service for a co-worker to consume, but his department is using Java where everything my department is in .NET. On top of that we have Windows Integrated Authentication turned on in our IIS server. Is there some type of Java library/framework that provides windows integrated authentication credentials to Java clients...
I've come across MANY AR libraries/SDKs/APIs, all of them are marker-based, until I found this video, from the description and the comments, it looks like he's using SIFT to detect the object and follow it around.
I need to do that for Android, so I'm gonna need a full implementation of SIFT in pure Java.
I'm willing to do that but I n...
I'm developing a Web Service Project in which I have to implement a web service that should be interoperable on all platforms. So initially I used basicHttpBinding as it uses SOAP 1.1 but I want the features of WS-* like reliable messaging, security, exceptions. So I used wsHttpBinding which is a SOAP 1.2 standard.
Now after deploying o...
I need to pull data from an html page using Java code. The java part is required.
The page i am trying to pull info from is http://www.weather.gov/data/obhistory/KMCI.html
.
I need to create a list of hashmaps...or some kind of data object that i can reference in later code.
This is all i have so far:
URL weatherDataKC = new URL("ht...
I've installed Eclipse on a Windows machine some time ago. A couple of days back I was doing some Java coding and I noticed I don't have a JDK, but still Eclipse could compile & run the Java classes. Does it have a compiler included?
...
I came across the term "exploded development" on this site...
http://www.zeroturnaround.com/javarebel/support-matrix/
and remembered hearing it before in relation to working with Java web applications. From what I can tell it is something to do with deploying your .war file as an extracted/raw set of files. Instead of using an ANT/Ma...
I am trying to implement a web-server which serves static pages only.
Here is the code of my ultra mini web server.
import java.io.*;
import java.net.*;
class MyWebServer{
static ServerSocket serSocket = null ;
static{
try {
serSocket = new ServerSocket(80) ;
System.out.println("Server started successfully......
I've been asked to look into the development options for BlackBerry. My client wants to build an application that represents their brand. I realize that there are different techniques for doing development and the Java/J2ME approach is probably the most powerful.
Does anyone have experience with building branded applications, or have sc...
I have a piece of code that executes about 500,000 inserts on a database. It's now done in a loop calling PreparedStatement's executeUpdate at each iteration. Would it be faster to add all 500,000 inserts to a batch and and call executeBatch just once?
...
I'd like to integrate existing application with JasperReports. However, when creating report with iReport the wizard is asking me for hibernate.hbm.xml. Since I'm using annotations I simply don't have one. Does iReport work with Hibernate annotations? If so, how can I configure iReport?
...
Can anyone please let me know how to check if start date > end date in Struts 2 validation.xml
...
I'm reading large documents from which I only need top 5%, can I do the following with HttpClient 4?
Request the page (get or post)
Read response as a stream
Feed it into SAX-based HTML parser "on the fly"
When certain HTML tag is detected - terminate the stream
Please note that HttpClient v. 4 is required - I cannot use v. 3
...
I have a use case where a servlet (that has reasonably high concurrent use) makes an outgoing URLConnection to retrieve some data REST style as part of its normal server-side processing logic. The connection is created and used each time the servlet is invoked as the URL is potentially different (but the domain is always the same). I ...
I have a jtable inside of a scrollpane. how can i stop the scrollpane from scrolling up or down when a cell that is partly out of view gains focus?
the problem is i am setting the cells to editable when the user mouses over them, so when you mouse over a cell that's partly out of view, the view changes suddenly. I don't like this behavi...
Hi, Could any one please suggest a better open source Java API for invoking REST services? Also wanted to know if Restlet API supports NTLM authentication.
Thanks
...
My current problem is not so much a blackberry issue as it is a java
package issue.
In the application I have a rectangular region. This region is rotated by
about 30%.
I need to accomplish two things:
when a user clicks, is he inside the region?
when a user draws a straight line on the screen,
does any part of tha...
Hi All!
I know... you must be calling me nuts by now, for using text files as databases.
If thats ok to you, certainly using java 1.3 will be enough to call me insane.
Let me explain (yes there's an excuse for that):
I work for a company that for a thousand reasons can't (or won't) upgrade to java 5 or 6 and so on...
It doesn't allow...
The only one I can find is the BoundedFIFOBuffer, which is deprecated. Any others?
...