Archive for August, 2008
Monday, August 25th, 2008
At my current contract, I've been using the popular EXTJS javascript library. In order to get up to speed faster, I've started a small project to assist my learning.
I thought about using a number of back ends to support my project, but decided on Grails after reading about the built-in ...
Posted in CodeSnippets, Groovy, Java, Tutorials, Web | 4 Comments »
Thursday, August 21st, 2008
Most of us working in corporates, use Oracle mostly. It probably has a uptime of 99%. But sometimes, it does go down and when it does, it's frustrating for the developer, especially when you're in the middle of something.
We can't have a local database instance running and having ...
Posted in General, Seam | No Comments »
Wednesday, August 20th, 2008
Creating tag libraries using facelets might be cool but needs more redundant infrastructure than the new JSP tag libs (which doesn't need tld declaration or web.xml context params). However once your done, building reusable tags on the fly (with no java code) can be pretty slick.
Here are the steps for ...
Posted in JSF, Tutorials | No Comments »
Wednesday, August 20th, 2008
It's a common occurrence in the Java consulting world, as ridiculous as it is, I see it all the time. I do into a new development shop to help build a large webapp. Since it's a large webapp, someone has decided they needed to buy licenses for ...
Posted in Tools, Tutorials, Web | No Comments »
Thursday, August 14th, 2008
Most SVN users who use the command line client understand how to create a log in XML format:
[java]
svn log --xml -v svn://some/url > svnlog.xml
[/java]
But this dumps the whole log, and I really just want to see a specific user. Plus, I hate XML and definitely do not want to read ...
Posted in CodeSnippets, Tools, Xml | No Comments »
Tuesday, August 12th, 2008
Debugging Hibernate exceptions for users not so familiar with Hibernate can be frustrating. The following exception is a common source of error:-
Lets try to understand the error with a use case first. The most common scenario when this exception occurs is while trying to save a collection object (but calling ...
Posted in Exceptions, Hibernate | No Comments »
Tuesday, August 12th, 2008
I hate stupid users.
*RRRRRRRRRRRRRRRRRRRRRRRIIIIIIIIIIIING*
Me: "Hello"
SU: "Why is the application going so incredibly slow?"
Me: "Because I coded it so that if it finds your user ID it will run slower."
SU: "I'm reporting you to HR!"
Me: "OK, but you'll be wasting your time."
SU: "And why is that?!"
Me: "Because I told everyone in ...
Posted in General | No Comments »
Thursday, August 7th, 2008
Jonathan Harley writes, Agile development is a good way to minimize risks.
(As an aside: the key difference between [agile and iterative development] then is as follows: in stage-based project management one person, usually the project manager rather than the business representative, is tasked with identifying risks to the project, based ...
Posted in Useful Links | No Comments »
Wednesday, August 6th, 2008
If you are a software developer and haven't realized by now that a BS in Computer Science should be at least 50% BA, then you must be living the good life and I envy you. Though users love to believe that software development is a perfect science that is ...
Posted in General | 1 Comment »
Wednesday, August 6th, 2008
Chris Brogan asks the tough questions about the internet Empire Google. What happens if you're a user of Gmail and other Google services, and one day they disable your account?
Monday afternoon, after lunch, Nick came back from lunch to find out that he couldn’t get into his Gmail account. Further, ...
Posted in Article, Web | No Comments »
Tuesday, August 5th, 2008
Well, I figure I owe everyone an explanation. It's pretty simple. I don't really do anything interesting at the moment, so I don't have much to share. This, my friends is as exciting as it gets.
[java]
public ArrayList getTotalByUnitFilterGroup(FormPojo form) throws SQLException{
Connepion conn = null;
PreparedStatement pstmt = null;
ResultSet ...
Posted in Java | 1 Comment »
Tuesday, August 5th, 2008
Eclipse 3.3 and above shortcuts:-
Show Key Assist - Ctrl + Shift + L
Quick Fix - Ctrl+1
Quick Assist - Ctrl+2
Find Text in Workspace - Ctrl+Alt+G
Show Refactor Quick Menu - Alt+Shift+T
Refactoring -- Rename - Alt+Shift + R
Refactoring - Extract Method - Alt + Shift + ...
Posted in Java | No Comments »