Skip to main content

Go Insane

Posted by editor on August 17, 2007 at 8:20 AM PDT


Ambitious projects can drive you nuts

OK, I'll admit it. Sometimes, I pick forum posts for the front page because what the developer's trying to do sounds impossible. Why? Because either someone will come up with some clever approach, and impress us all, or the issue really is impossible, which might point to a need that new or improved Java API's should address.

For example, consider pirategoose's message
Transfering mp3 files from PC to smartphone...NEED HELP from today's Forums:

Fellow developer friends, i'm trying to develop a program in Java that allows someone to transfer mp3 files from his PC to his smartphone. My question is; - What Java technology can I use to do this? - Has such a thing been done before already, and if so, where can I go to see how it was done? - Is using JavaFX the answer and are there any tutorials pertaining exclusively to file transfer programs?

My first thought was "oh, dude, you are so hosed, and you wouldn't be if there were quality JSR-80 implementations for all platforms, so you could access the device over USB"

But then I got to thinking: well, what about other connection technologies? Maybe there's a Bluetooth story? After all, we ran a feature article on using Bluetooth with Java a few years ago, and checking it now, it lists a number of JSR-82 implementations for the various major desktop platforms. So maybe that's an option. Or maybe there's yet another valid approach, like with MMS messaging.

The community is creative; a clever solution may yet be out there. So don't pull out your hair just yet.


Furhter down in the forums, rasto1968 contributes to Linux L&F beautification in
Re: swingx on Linux isn't very pretty:
"Thanks Jan. I've had a quick go at getting things looking a little better this morning, I will raise an issue and attach my patches. Basically I have added a org.jdesktop.swingx.plaf.linux package and its associated look and feel setup class. I have then updated JXTaskPaneAddon and JXTitledPaneAddon to add defaults for Linux - all these do is make calls to the Metal add defaults so on Linux these components end up using the Metal Ocean look and feel which is much nicer than the Windows Classic look. I have had a quick look at the colours available from the look and feel defaults, but I can't see any that are particularly appropriate for the gradients used by these two components. I guess to do it properly it will really need 2 packages (linux gtk and linux kde), but until someone has the time to figure out how and where to get the relevant colours from this hack produces more pleasant visuals."

byhisdeeds is looking to improve a collection implementation in
Best performing Least Used List.
"I have a java application that requires me to sample hundereds of image files. To speed things up, I coded a Least Used List of a fixed size, of BufferedImages, that removed the least used entry when it required space for a new entry. I did this by using a priority queue to order a list of usage, as well as a hashmap to access the entries quickly. It works ok, but I'm looking to optimise it and was wondering if anybody could tell me whether a Least Recently Used alogoritim would serve my purpose just as well. This would probably be faster, as I just keep the most recently accessed entry at the head of the list, and remove the tail when I need space."


The latest java.net Poll asks "How interested are you in learning JavaFX Script?" Cast your vote on the front page, then visit the results page for current tallies and discussion.


Our latest JavaOne Community Corner Podcast is
j1-2k7-mtW04: Enterprise Data Mashup Service (EDMS) by Srinivasan Rengarajan.
"The Enterprise Data Mashup Service Engine project aims at building a Open-Source JBI compliant Service Engine which features * Ability to create relational mapping for spreadsheets, flatfile, HTML table, xml sources (webrowset), XQuery Rowset, *Using Netbeans Database Explorer to browse source tables, * Drag-n-Drop these tables into the Mashup Editor to define the join conditions, * Ability to view the resultset using the Mashup editor * View Cache Management, * Transforming the response to various formats by composing the output with an XSLT Service Engine, * etc., and thus provides the mashed up views of enterprise data from heterogenous sources. These pre-canned, materialized views served by the EDM SE can be used by clients to build highly responsive and interactive Ajax powered web2.0 style enterprise applications using existing client-side frameworks."


In Java Today,
the latest edition of the Java Tools Community Newsletter, issue 134, rounds up tool-related news from around the web, lists new projects in the community (NBString and ON), and offers a Tool Tip about web site optimization with YSlow.

The java.net Roller Support Project provides themes, plugins and other add-ons for the Apache Roller blog server. Available resources include editor add-ins, themes, plug-ins (like JSPWiki plugin, Textile plugin, etc.), and JARs needed to run and/or compile Roller from source. Roller fans have much to look forward to, given the recent announcement of Roller 4.0 RC1.

Daniel Lopez has been busy in his series of blogs that compares scripting languages running on the JVM. In a previous Java Today blurb, we noted his initial entries, on Groovy, and JavaScript Rhino. In the subsequent weeks, he's taken a look at Jython, JavaScript Rhino with E4X, PHP through Quercus, and JRuby.


Brian Leonard goes from Rails to Java via REST in today's Weblogs. "Since I've been studying the Rails framework, I've had an interest in integration with Java. Yes, JRuby is one possible solution, but if you have some large Java system that you want to integrate with, it's unlikely that you're just going to get the jar files to access that system's APIs. More likely is that system will expose itself as a service, and the service type du jour is REST. So, in this entry I'm going to expose an entity class as a RESTful web service and then create a Rails client for that entity."

How to have your Own CA and configure Glassfish and your clients for mutual authentication? Masoud Kalali says,
"in these two entries i will demonestrate how you can use EJBCA to secure you GlassFish application server and achieve Client Cert (mutual) authentication with Certifications issued by your own CA."

Finally, Dionysios Synodinos throws out
The Taming of the Stack Trace.
"Everything you ever wanted to know about the Java Stack Trace, but were afraid to ask."


Current and upcoming Java
Events
:

Registered users can submit event listings for the href="http://www.java.net/events">java.net Events Page using our href="http://today.java.net/cs/user/create/e">events submission form.
All submissions go through an editorial review before being posted to the
site.


Archives and Subscriptions: This blog is delivered weekdays as
the Java
Today RSS feed
. Also, once this page is no longer featured as the
front page of java.net it will be
archived along with other past issues in the href="http://today.java.net/today/archive/">java.net Archive.

Ambitious projects can drive you nuts