Archive for the ‘Uncategorized’ Category

2 coding tools to look at

Wednesday, December 12th, 2012

A couple of tools to look at is Sonar ( http://www.sonarsource.org/ ) and Open Grok ( http://hub.opensolaris.org/bin/view/Project+opengrok/ )

Being bitten by SimpleDateFormat

Wednesday, November 7th, 2012

It’s been a while since I’ve been bitten by a multi-threading issues with the code that we produced, but this one is probably very common problem that is hidden until it’s too late. When using SimpleDateFormat, one needs to remember that it is not thread safe class: so if you have an instance of it that is shared across threads (for example static final SimpleDateFormat format = new SimpleDateFormat("yyyyMMdd");, you need to synchronize access to it. There are several ways to do it. The easiest is to use “synchronized” when accessing the methods for parsing and formatting, but you might pay a hefty performance penalty for doing that. If you are only interested in formatting, you can use FastDateFormat.html class. Or you can create a ThreadLocal, and initialize your format in initialValue method.

iBartNow – BART application for BlackBerry released

Saturday, May 5th, 2012

check out my new application iBartNow, available on http://www.ibartnow.com. This version (0.5.0) has real time ETA and a BART map – bare essentials, but it is fast and usefull for an everyday BART commuter. Enjoy!

Couple of interesting articles from Joel on Software

Friday, December 17th, 2010

Saving pointers for myself:

http://www.joelonsoftware.com/articles/fog0000000073.html – about hiring
http://www.joelonsoftware.com/articles/fog0000000043.html – about writing better code

Preparation to SCEA 5 Part II Notes

Wednesday, December 8th, 2010

Some notes and links that I found useful preparing for SCEA http://docs.sun.com/app/docs/doc/819-2326/gaxqg?a=view

Spring reference documentation

Tuesday, October 19th, 2010

In a recent project I had to remember Spring MVC, so I found the reference documentation from spring and thought it’s a good thing to post: http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/pdf/spring-framework-reference.pdf.

For spring MVC 3.0 controllers try the following url http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/mvc.html

Passed Java Certified Architect Exam part I

Friday, June 25th, 2010

I passed Java Certified Architect Exam part I – here are my preparation notes.

Problem with Sybase performance

Wednesday, February 10th, 2010

We had a strange problem with Sybase performance: the query that should have used indexes while executing did not, and as a result took forever to execute.  For some reason the time stamp was not treated as date type when set from the code. So the easiest solution was to add ?DYNAMIC_PREPARE=true to the connection string, and that solved the problem.

Adding an Icon to Your Website

Wednesday, July 22nd, 2009

Here is how you can add an icon to your website – or actually to all the pages on your site. First of all you will need to find an image and convert it to the .ico format. I’ve used http://www.html-kit.com/favicon/ as an online tool to do that. Save icon image on your site and have pages refer to it with the following head segment:
<head>
….
<link rel=”shortcut icon” href=”_path_to_your_icon_.ico” >
</head>
And that’s it. Now I need to find a good icon for my sites 🙂

Place to get video training

Wednesday, July 1st, 2009

http://www.lynda.com/ – one of the places to get the training! My boss mentioned it in our conversation about training materials and looking at the site it might be a worth the money they are asking for… Where does one find time though?