Recently Added

Singletons in Java

Posted by Sachin in Design Patterns, JAVA/J2EE on 16. Jul, 2010 | 1 Comment

Singletons are the design pattern when you want only one instance of a class created. You make the constructor private, and give access to the instantiated object via a static instance method that creates the object if it has not been created already.

Creating flex components in runtime using XML

Posted by Sachin in My World on 18. May, 2010 | No Comments

Today i was going through an requirement on how to create components in runtime where we have parse an XML as input and then create components in the stage.

UPDATE and INSERT differences in syntax is an inconvenience

Posted by Sachin in PHP, Programming on 08. May, 2010 | 1 Comment

An associative array is the conventional workaround of the coding world.. In an associative array, we can associate any key or index we want with each value.

Design Patterns : Singleton Pattern

Posted by Sachin in ActionScript 3.0, Design Patterns on 15. Apr, 2010 | 1 Comment

The Singleton pattern is very similar to creator pattern. This is very widely used pattern. Now a question might raise in the mind that why do we need this pattern and when it should be applied. Let us take a situation where you want to build a chess game. Where does the Singleton Pattern apply [...]

Custom color in Flex bar Chart

Posted by Sachin in ActionScript 3.0, Adobe Flex, Flex Charts on 13. Apr, 2010 | No Comments

Today one of my friend asked me on how to have a bar chart with different colors for each series. I thought of putting up this code online that someone can use it up or extend for more functionality too.

Formatting the SelectedDate in DateChooser

Posted by Sachin in ActionScript 3.0, Adobe Flex on 31. Mar, 2010 | 1 Comment

Formatting the SelectedDate in DateChooser

I was suddenly struck up with this DateChooser as my the date object doesn’t recognize the dash as a valid separator.