Archive for the ‘Uncategorized’ Category.
March 7, 2010, 4:48 pm
I’ve just finished a new feature for the Hibernate Profiler to allow to logging of JDBC parameters. This is one area where the Hibernate profiler did not have feature parity with the .NET profilers. Unlike ADO.NET, JDBC does not allow you to retrieve parameters from a PreparedStatement once they are assigned unless you use a special driver proxy. We are using the excellent open source log4jdbc driver in the profiler to retrieve the parameters.
The picture below shoes the feature in action, notice the parameters are available now:
If you have any additional features ideas, visit the the user voice forum to add or vote on an issue. Questions or issue can be directed to the Hibernate Profiler group.
May 16, 2009, 12:21 pm
I was recently talking with a coworker who said that they write their unit tests in Groovy because unit tests are not production code so the language does not matter. Of course, I think Groovy is a fine choice for producation applications, but I am ignoring that point for the purposes of this post. I could not disagree with my coworkers comments more. Unit tests are as important as your code itself. I do not think that comment needs more explanation than that, only that I find it interesting that many people still see unit tests as a second class citizen in a code base.
The other interesting thing is that the current goal is to get 80% unit tests passing on all projects (the projects that I work on have 100% all the time, otherwise I would lose my mind). This is a strategy I disagree with. Let’s say that over time your project has gotten to a state where you only have 50% of the unit tests passing. As far as I am concerned, this is equivalent to having 0% of the tests passing. Why? Because developers see tests in two colors: red and green. You will quickly find that the 50% will continue to down because no one is actually noticing that they are breaking tests as they are making code changes. On a few large projects I have worked on, I have seen where a single failing unit test quickly becomes 20.
Assuming that because of business goals and quantity of tests to fix, that just fixing all of the tests immediately is not an option. A much better strategy, in my opinion, would be to ignore the tests that are failing and say that all projects must have 100% unit tests passing. Then, make your goal to be to work your way down from 50% ignored tests to 0% ignored tests over a reasonable period of time.
May 30, 2008, 9:09 pm
I have an Ubuntu server that I use a file server for imaging my other machines. After upgrading, networking no longer seemed to work. I also kept getting an error when trying to run sudo:
unable to resolve host mymachinename
After a bit of searching, I landed on this bug which apparently has affected a number of people:
https://bugs.launchpad.net/ubuntu/+source/linux-meta/+bug/195308
Using ‘gksu gedit’ and fixing /etc/hosts solved my problem. To get Internet connectivity back, I had to disable IPv6:
https://help.ubuntu.com/community/WebBrowsingSlowIPv6IPv4
February 15, 2008, 7:21 pm
February 13, 2008, 7:22 pm
January 31, 2008, 7:21 pm
January 18, 2008, 7:24 pm
November 20, 2007, 7:25 pm
November 19, 2007, 7:44 pm
Whenever something a bunch of tech bloggers get excited about something, I always wish there was a mute conversation feature in Google Reader. I am not quite sure how it would work — maybe off of post title similarity or when a content match algorithm says one article is too similar to another. Maybe it could give you the option of how conservative or aggressive the matching is.
I really only wanted to know one time that Visual Studio 2008 was released today and not have to deal with the inevitable flood of posts on the topic for the remainder of the week.