Friday, November 20, 2009

Some useful yet basic CSS

http://www.webdesignerwall.com/tutorials/5-simple-but-useful-css-properties/

It might be some basic ones but sure has some day to day useful CSS functionality clearly explained.

Want to unit test your Statis classes? Power Mock to the Rescue

While reading through some articles on dzone i stumbled upon this google project which allows you to test your static methods. Now i have used easy mock which i integrated to our current project. But easy mock does not allow you to test static classes. It basically creates mock methods based on the interface you pass into it. This on the other hand will allow you to test your static methods which i believe is a very useful piece of tool for a developer. The project can be found here.

Wednesday, November 18, 2009

jQuery best practices and common mistakes

From recent times i have had a passion to learn jQuery which is the much talked about Java Script framework these days. Today i found these few articles which exlaines common mistakes we make when coding through jQuery and how to avoid them. I also found a pretty valuable piece of software called dynaTrance which allows you to monitor Ajax performance and find bottle necks just like profiling in java. The software can be found here.The articles which explains about the jQuery best practices can be found below;

Aricle 1

Article 2

Thursday, November 12, 2009

Marquee HTML tag

I was in need of doing a page which had a table to which content was written dynamically and with the need of horizontally manuvering it within the page. There were many help online but using varous JS frameworks. I did not want to be bombarded with frameworks as this was just a small thing. Luckly a colleuge of mine who is a major UI guru told me of the marquee html tag which allows me to accomplish this task very easily. Although this has been advised not to be used it is been supported by all browsers presently available. Below is my code snippet showing how i accomplished this.


<marquee id="scroller" scrollamount='2' direction='up' loop='true' height='450' width='100%' onmouseover='this.stop()' onmouseout='this.start()' title="Please move the mouse pointer away from the Display Area to start the Flight Display">
<table id='flightDisplayArea' width='100%' border='0' cellpadding='1' cellspacing='0'>
<tbody></tbody>
</table>
</marquee>