I want to generate javadocs through maven's site generation plugin and I want to have automatic UML diagrams created and embedded in the javadoc.
The statsvn project uses yDoc to generate their UML documentation but I think they're using Maven1. yDoc is a commercial shareware product, so I'm unsure how the open source statsvn project in...
What's a good method for assigning work to a set of remote machines? Consider an example where the task is very CPU and RAM intensive, but doesn't actually process a large dataset. The language of choice would be Java. I was thinking Hadoop would be a good option, but the dataset passed between remote machines is fairly small, and Had...
On a unix system, is there a way to get a timestamp with microsecond level accuracy in java? Something like C's gettimeofday function.
...
Assume a class (for instance URI) that is convertable to and from a String using the constructor and toString() method.
I have an ArrayList<URI> and I want to copy it to an ArrayList<String>, or the other way around.
Is there a utility function in the Java standard library that will do it? Something like:
java.util.collections.copy(u...
Background
I am assuming the following code is completely thread safe:
// Called from a servlet when a user action results in the index needing to be updated
public static void rebuildIndex() {
FSDirectory dir = new NIOFSDirectory(new File(Configuration.getAttachmentFolder()), null);
IndexWriter w = new IndexWriter(dir, analyzer, Index...
I am new to eclipse plugin development and I am trying to convert a IMethod to a string representation of the full method name. I.E.
my.full.package.ClassName.methodName(int param, String string)
so far I have had to hand roll my own solution. Is there a better way?
private static String getMethodFullName(IMethod iMethod)
{
String p...
I would like to ask for opinion on making aggregate data by concatenating strings. If I have a column aggregate but I want to concatenate then in an aggregate column, which is faster in terms of performance? Doing one SQL then just aggregating then in the CODE. Or selecting the main data then querying one at a time.
For Example:
TABLE_...
Hi there,
suppose I have an entity "Employee", and an entity "Address". An employee has an address associated to him/her. In a relational database sense, the Address table would be considered a weak entity, since an employee address cannot exist if there is no corresponding Employee in the database. Thus, suppose I want to model the fol...
What's the easiest way in Java to retrieve all elements with a certain type in a malformed HTML page? So I want to do something like this:
public static void main(String[] args) {
// Read in an HTML file from disk
// Retrieve all INPUT elements regardless of whether the HTML is well-formed
// Loop through all elements and r...
I need to build a CRUD application to maintain a simple set of tables. Normally I would do this in php but I cannot deploy this in the client environment.
I want to do this reasonably quickly and vanilla J2EE, EJBs, spring, Hibernate etc. is just plain overkill.
I am looking at either Rife or Lift frameworks. They both seem to have RA...
Ok I'm completely googled-out.
I have a few java projects in my eclipse workspace (about 25). Most projects use linked source folders.
When I rename a class in Project1, the references to that class in the other projects are not updated. The references within the project are updated just fine. The net result is compilation errors...
I know there are other similar questions to this, but I came up with my own way of getting the current time in a specific time zone, so I just wanted to confirm if it is correct or not, or there are gotchas I didn't take care of.
Calendar cal = Calendar.getInstance();
// Assuming we want to get the current time in GMT.
TimeZone tz = Ti...
Test[] array = new Test[3];
array[0] = new RowBoat("Wood", "Oars", 10);
array[1] = new PowerBoat("Fiberglass", "Outboard", 35);
array[2] = new SailBoat("Composite", "Sail", 40);
I have the above array and I need to display the results to a swing GUI with a next button that will display the first index values, and when ...
how to get extended permissions like publish_stream on mobile...i am first calling http://m.facebook.com/login.php? and after when the login is succesful i am calling
http://www.facebook.com/connect/prompt%5Fpermissions.php?api%5Fkey=YOUR%5FAPI%5FKEY&ext%5Fperm=publish%5Fstreamnext=URL%5FAFTER%5FAPPROVAL&cancel=URL%5FIF%5FCANCE...
I am trying to build a xpi file using Java servlet.
If I return the xpi as a zip using the following code in the servlet -
response.setContentType("application/zip");
response.setHeader("Content-Disposition","inline;filename=xpitest.xpi;");
Everything works fine with above code. I can save the file to the filesystem and install it.
H...
Hello, I'm trying to use Exchange authentication from my app using JavaMail to do this. Could some one give me a guide to do this?
After authentication I need to send mails that's the main reason that I'm using JavaMail.
All the links that I found talks about problems with this but I think this must be an easy task to do from Java.
Than...
Taken from Apache TreeList doc:
The following relative performance statistics are indicative of this class:
get add insert iterate remove
TreeList 3 5 1 2 1
ArrayList 1 1 40 1 40
LinkedList 5800 1 350 2 325
It goes on to say, "LinkedList is rarel...
Hi,
i have a table containing 15+ million records in oracle. its sort of a log table which has a created_ts column of type "date" . i have a simple "non-unique" type index on created_ts column.
i have a simple range query :
select * from table1 where created_ts >= ? and created_ts <= ?;
when i run this query from SQLPlus or SQ...
I'm wondering if there are any clear reasons to choose UmlGraph over APIViz for javadoc UML diagram generation in a Maven2 build. Are there any integration or features that one has over the other, they seem pretty similar?
...
I am a fresher in web developing , is I ve to study applets?
...