Saturday, October 1, 2011

Connecting Vonage to your home network

Draft post:

The usual logic of connecting the new device to the router or to the modem ports doesnt work for vonage phone lines.
  1. You have to connect just the Vonage modem to the cable modem. 
  2. Connect the wireless router to the vonage modem. 
  3. Connect the phone to the Vonage modem.

Your set up of vonage phone for your home wireless network is done. Throw away those huge manuals from vonage ;)




Tuesday, August 30, 2011

Saturday, August 13, 2011

ஏமாற்றம்

காதல் என்னும் போதை தான்
தெளிந்துவிட்டால் வெறுமை தான் !
கண்பட்ட அழகும் என் ரசனை தான் !!!
பின் சுக்குநூறாய் உடைத்தெறிந்தாய் ...
மனதில் மிஞ்சியது வேதனை தான் !!!

விரல் பற்றி நடக்கும் பிள்ளை போல ,
உன்விழி பற்றியே நடந்தேனே !
மரம் பற்றிய கொடிபோல ,
உன் அன்பைபற்றியே படர்ந்தேனே !
இன்று இருள்காட்டிலே தொலைந்தேனே !!!

கவிதைகள் உண்டு பல்லாயிரம் ,
இன்னும் கற்பனை வளர்ப்பார் ஆயிரம் !
மண்ணில் மற்றவர் இனிதே வாழ்ந்திருக்க ,
நான் மட்டும் தனிமையில் தவிப்பதேனோ ???

மதியிழந்திருந்தேனோ
அந்த மயக்கும் பொழுதுகளில் ???
உன் நினைவிழந்திருப்பேனோ ....
இனி வரும் மாலைகளில் ???
நாவினால் சுட்ட வடுவும்
ஆறிவிடும் என்கண்ணே ,
உன் காதலினால் சுட்ட வடு ஆறாதே !!

Wednesday, April 13, 2011

Java Design Patterns - Singleton

There are many examples out on the internet to explain Singleton and this is one more redundant one from my side :)

What's a Design pattern?
A design pattern is just a way of writing your code or designing your application. How a con-man goes about executing his tricks, defines his "modus-operandi" or just "pattern" in ordinary english. Similarly there are some standard "patterns" defined by experts for software development, which we can use for handling a particular scenario or requirement. Though we have heard about only a handful of design patterns, there are more than 250 design patterns identified, including a "noodle" pattern, which defines coding in the most unstructured or unmaintainable format.

Singleton
A singleton pattern is one of the design patterns which along with "Factory" falls under a broad category of design pattern called Creational design patterns. The class is coded in such a way that there can be only one instance of this object in the JVM( or app/web server memory). Common areas of usage for singleton design would be loggers, DB connection managers, service locators(another design pattern) etc.

Steps to create a singleton
  1. Create a no-args constructor for the class and make it private. This would prevent the class being instantiated in other classes.
  2. Create a method(say getSingleton ) which would be the only point of access for other classes. This method would return an object of the classMake this static, so that it can be called from other classes without any object instantiation. Also make it public method.
  3. Define a single variable of the same class and make it static(to make it accessible from the static method,getSingleton)
  4. Within the "singleton creator" or "provider" method, invoke the class's constructor only if an object has not been created already.

You can refer the sample code below for your reference.


Please let me know if this small article of mine was of help to you. Feel free to post any java related questions that you have and I shall try to answer them to the best of my knowledge.

Wednesday, March 30, 2011

Vijayakanth beats MLA candidate

Actor turned politician and founder of DMDK party in TamilNadu, Vijayakanth beat his own party's MLA candidate Baskaran when he tried to correct him. Vijayakanth(aka Captain) was canvasing for his party in Dharmapuri constituency when he allegedly gathered votes for someone Pandian, whereas the name of his party's candidate was Baskar. When Baskar tried to correct it, he was thrashed by Captain right away within the van in front of hundreds of people.

Captain!!! is this the right way to behave in front of people? Or is it right to beat somebody else for our mistake? What is the change that you are trying to bring in TamilNadu and its politics? See the video below which shows Captain's action drama and comedian Vadivelu taking a dig at him!

World Cup Cricket Live - Cheer for India