March 8th, 2010 by Max Kuipers
No comments »
A common problem when working with JSF is getting global info messages via <t:messages globalOnly="true"> or <f:messages globalOnly="true"> to display messages set in the previous request when you have a <redirect/> in your faces-config for a particular page You will not see your <t:messages> that are set on the previous page.
The Problem
For instance, say you have two pages – page1.xhtml and page2.xhtml. In your faces-config.xml, you will have 2 entries.
» Read more: Rendering Global t:messages After Redirect
March 5th, 2010 by Tim Bierbaum
No comments »
You can’t ignore the fact that web servers are multithreaded. We can hide as much as we want, but sooner or later you’ll find yourself in the situation where your application works fine during development and testing; but once it hits production you start hearing about “funny” things happening. While there are plenty of tools that can be used to simulate multiple users, they aren’t always the easiest to run locally and they seem to take to much time to modify while hot on the trail of a multithreading bug. Here I’ll discuss the approach I took when I was recently faced with this situation.
» Read more: Developing a multithreaded test harness
March 3rd, 2010 by Zach Cox
5 comments »
Branching and merging in Subversion is a great way to work on large new features without disrupting mainline development on trunk. However, it has a reputation for being so difficult that many developers never take advantage of it. In this post I’ll show just how easy it really is thanks to some newer features in Subversion and Subclipse (a Subversion plug-in for Eclipse).
» Read more: Simple Subversion Branching and Merging
March 1st, 2010 by Travis Klotz
1 comment »
On many occasions I want to be able to inject environment specific property values into my Spring managed beans. These may be things like web service endpoints, database URLs, etc. Values I know for each environment at build time, but I want to use the same WAR/EAR file in each environment. I would like to keep the actual values separate from the Spring config files themselves. And I would really like to manage a set of default values for each property, so that I do not need to specify a value for every property in every environment (ex. my credit card processing URL for dev, test, uat is the same, but for production it is different.)
» Read more: Environment Specific Properties in Spring
February 26th, 2010 by Matt Vincent
No comments »
If you’re like me, receiving 30-40 emails is par for the day. Because Source Allies provides consulting services for companies wishing to implement or better take advantage of Zimbra, it is also the mail server we use at our company. Zimbra has incredible search capabilities, but my OCD tendencies still require that my email is nicely filed away in it’s designated folder. However, if statisticians say we spend an average of 3 years of our lives waiting at red stop lights, I certainly don’t want to spent that much time or more, dragging emails from my inbox into my IMAP folders.
This blog post lets you manage all of your email in OCD detail, with just (2) keyboard shortcuts: u and s. » Read more: The Easiest Way to Organize Zimbra Email
February 24th, 2010 by Vic Banta
No comments »
Siri, which debuted last week, is surely the first iPhone app that’s the commercialized result of a multimillion-dollar Defense Department research project. It’s a “virtual personal assistant” that uses voice recognition, your GPS location, and links to local information and services to respond to requests you speak into an iPhone 3GS.
You can ask Siri to call you a taxi, or to reserve a table at the best nearby sushi joint, or to tell you who’s playing at a local concert venue. The voice-recognition part works just about perfectly. And it all feels like a sneak preview of how we’ll get and use information in the future, even though I’m occasionally disappointed by the results (Siri occasionally recommends local businesses based on skimpy data.)
February 22nd, 2010 by Zach Cox
8 comments »
Last weekend while pondering the question “Is Scala ready for the enterprise?” I decided to write a simple Java EE 6 app entirely in Scala, without using any Java. I had three main reasons for doing this: one was just to see how easy/difficult it would be to write everything in Scala (it was easy). Another was to document the process for others journeying down the same road (the entire project is on github). Finally, I wanted to identify advantages of using Scala instead of Java that are specific to Java EE apps (I found several).
» Read more: Java EE 6 and Scala
February 18th, 2010 by Sudhakar Ramasamy
No comments »
Last year I coordinated a technical book club here at Source Allies. This was my first experience doing one and I wanted to share my experience for the benefit of others who may be looking at starting one.
The fact that we even started a book club was a big positive because it is one great way to geek out with very smart people. You get the opportunity to voice your opinion on a certain topic and hear counter-points or similar views that expand your own perspective. » Read more: Running a Technical Book Club – Take 1
February 16th, 2010 by Erik Hill
2 comments »
Requirements
- Linux server with NFS (or compatible)
- TFTP server
- DHCP server
- syslinux / pxelinux files
To simplify these instructions we are going to make the following assumptions.
- DHCP server is 10.0.0.2
- TFTP server is 10.0.0.3
- NFS is a Ubuntu server at 10.0.0.4
In reality it’s likely your TFTP and NFS server are going to be the same server, however because we go by IP in this, it is hopefully easier to understand.
» Read more: Ubuntu Live Network Boot using PXE
February 15th, 2010 by Alexandru Luchian
2 comments »
Why would you ever need that?
Say you get a jar file. After using the jar for a while you realise that there is a bug in a class in the jar file. Unfortunately you also find out that the jar is no longer supported and there is no way you will get a fix from the author (who is long gone fishing).
In order to solve this issue, you first need to get the source of the class. If you are lucky enough and the author did not obfuscate the class file you can decompile it with a decompiler (my favourite one is JD-GUI).
» Read more: Replacing and Patching Java Application and Core classes