Skip to main content

Posts

Converting JSON string to JavaScript object

Javascript has an inbuilt library object to handle json data. In order to convert a json string to an object, you can use the following method call: var obj = JSON.parse("jsonString")  for the other way around : var jsonString = JSON.stringify(obj); Check out the site  http://jsonlint.com/. It's very useful to format json strings.

Excellent introduction to D3JS

I have come across a free online book with gives an excellent** introduction to D3js. You can access it @ http://chimera.labs.oreilly.com/books/1230000000345/index.html You can buy the book @ http://chimera.labs.oreilly.com/books/1230000000345

Configuring LDAP on ReviewBaord

If you are looking at this post, you would have already installed reviewboard and are facing issues configuring LDAP on it. For others who landed here by chance: Review Board is a powerful web-based code review tool that offers developers an easy way to handle code reviews. It scales well from small projects to large companies and offers a variety of tools to take much of the stress and time out of the code review process. You can checkout reviewboard @ http://www.reviewboard.org/ Now comming to the topic, reviewboard asks for the following LDAP settings: LDAP Server : ldap://<your server ip>:389 (By convention this can be : ldap://ldap.<your company name>.<com|net|org>:389) LDAP Base DN (Used to perform LDAP searches) : Should generally be composed of OU & DC. For ex:- OU=users,OU=<US|Canada|AsiaPac|Japan>,OU=<(Engineering|Eng)|(Finance|Fin)),DC=<yourcompanydomain>,DC=<com|net|org> example1: OU=users,OU=AsiaPac,OU=Eng,DC=GooG,DC=com...

Java Enum in 10 Minutes

This tutorial aims at teaching Java enums to newbies in 10 mins. To meet this goal I will keep my descriptions short and concise. References will be provided at the end of the tutorial for detailed study. Concept 1 : Enums are introduced in Java 1.5 and are used to define constants. Scenario 1: Defining Constants public enum WeekDay{     MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY,     SUNDAY; }