Quit Smoking – My Experience

I remember the very first day i started smoking with my higher secondary school friends back in 1995 and i did turned a heavy smoker when i joined my engineering as I’m away from my home for my study. Its always fun to be with friends and smoking. Even though, I almost stopped smoking after my marriage, I did it once in a while when meeting friends. I struggled to quit it completely. But things got better after my son’s arrival. There is only one way to quit smoking.It’s your will power. Even though its only will power, I would say some other factor to add was,

1.Love for my son

My son loves to be with me always and i loved this part. I’m so overwhelmed with his love even when he is so young he wants only me with him always. I wanna be so clean with my habits so that i wont infect anything to my loving son. This pushes me to stop smoking all my life.

2.Ignore your Smoking Friends for a while

Even though i wish to stop smoking permanently,  it’s itching when i see people smoke in-front of me during any friends gathering. The best thing to quit smoking is stop meeting your friends who smokes for a while. Even though its sounds weird, this will help you 100%.

 

5 Ways For A Happy Cross Culture Relationship

Many might curious about the content of this post after reading the title. YES, I’m here to share my views to people who wanna start their life with some one who is different by all means. My intention is not to appreciate or vilipend the relationship,  rather just to give you an idea on areas to improvise mutually to carry forward the love and relationship as strong as always. Am i sound so matured?,  really I’m not. Its just i wanna share things with you as it might boost confidence in you in choosing your right partner.

World has become so small, people are exposed almost to every single thing happening everywhere. The kids growing in Delhi, Singapore, Shanghai or any other Asian city are very well informed about everything  just like kids in any other Western city.  I guess the future generation will be matured enough to appreciate and respect all cultures, peoples , places and foods which might lead them to settle in new places with very new culture and food habits with some one from another new culture.

However the world change, there may be n number of ways to keep the relationship happy and warmth.,To me, from my experience the basic 5 areas to keep the relationship happy are as follows,

1. Mutual Respect

This is so important even for a couple from same cultural background. I’m not talking only about having respect for each other culture here,  I’m talking about having respect for each other opinions, views, food-habits, hobbies and the very small things we do in every day life. Appreciate or learn to appreciate the partner’s way of doing things and at the same time don’t hesitate to express the unhappiness if you feel it’s not appropriate on that very occasion.It’s so important to be open-minded to embrace some other culture than your own which you thought its the best as always.

2. Communicate , Communicate and ….Communicate

I have noticed people have a misconception about communication and love. Many think the partner should knew every happenings of the other even without communicating verbally. This sounds so stupid to me at this modern world where every one is busy with their profession and family. I strongly believe you need to communicate each and everything to your partner to keep the relationship transparent and healthy which might be helpful to make a wise decision together at different levels of your life.

Communicate your plan, idea or whatever you are doing or going to do in future clearly. This might reduce all the mis-understanding, mis-interpretations and mis-expectations all your life which in-turn helps you for a consistent happy life.

3. Learn to Prioritize

This is important too. As we face always list of tasks to be accomplished at the same time. Some time you might have planned things with your in-laws and you might be asked to do some other thing by your parents at the same time.  These kind of situations are common in any family and as a cross culture couple , its so important to prioritize which one to go for. Its one of the tedious practice but to keep your relationship happy you need to be smart in choosing which will be good for everyone.Even though I don’t have a technique here , all i can say is , Prioritize based on the importance and complexity of the situation.

4. No to Third Party

Whatever the issue between the couple, how serious it is,  try to discuss and solve it between yourselves and for God-sake don’t bring your problems to  friends, parents, siblings or to any relatives and well wishers. Take your time , be alone for a while and give a thought about the issue and the reason for it. Even though you conclude its not because of you and you found the fault with the other, don’t be egoistic and blow the problem bigger. Rather go to your partner and try to convince at the very moment and you may make her understood the issue at a later time even though its her fault.

5. Not Obligation but  Love

Live, enjoy and appreciate every moment of life with love, care and kindness with your loved ones. Just don’t live for society, relatives, custom, etc, etc. For goodness, please stop comparing each and everything with your neighbors, relatives, friends or colleagues. Do whatever you wish which brings happiness for your family. Don’t take things as granted, try to appreciate small changes ,  like new hairstyle,  new job, etc, etc. Its always fun to have celebrations even for silly reasons in a small way.Its important to be activity partners. Learn others interests, hobbies or sports and do things together as much as you can.

Since marriage has become a very bond between two singles rather than two family as before, I tried to express my views on leading a happy married life in this post.Hope this was fun and useful a bit at-least.

Thanks for reading my blog one more time. Appreciate your feedback/comments. Happy Living!

Performance Statistics Collection for UNIX flavored OS

Introduction:

This post explains how to setup performance counter collection in Unix, Solaris, Linux or HP-UX environment and how to extract the log and present it in a Graphical format with simple ruby program which i have written.

Please download ruby from http://www.ruby-lang.org

The 3 major steps to follow to collect and report performance statistics are as follows:

1.Configure Performance counters
2.Conversion of Performance logs to csv
3.Reporting

1.Configure Performance counters:
90% of the time people are concerned with the memory and cpu statistics, so let’s see how to configure , collect and report memory and CPU statisctis in unix, solaris, linux or HP-UX environment.

Write .sh File:

1.memory statistics
Most of the time people are concerned about the total memory usage rather than breakdown of cache, swap, free, buffer memory etc. hence we can measure the overall memory usage by “free” command available in UNIX flavored OSes.Write a .sh file which will log the free and used memory as follows,

#!/bin/sh
free -m -s1 >> free_mem.log

The above command means the total free and used memory will be collected for every second and stored in the free_mem log file.

2.CPU and other statistics
sometimes people are concerned about knowing everything like cache, swap, free, buffer memory apart from CPU. we can measure all these by “vmstat” command available in UNIX flavored OSes.Write a .sh file which will log these information as follows,

#!/bin/sh
vmstat 1 >> vmstat.log
The above command means the statistics such as

Procs r: The number of processes waiting for run time. b: The number of processes in uninterruptible sleep.

Memory swpd: the amount of virtual memory used. free: the amount of idle memory. buff: the amount of memory used as buffers. cache: the amount of memory used as cache. inact: the amount of inactive memory. (-a option) active: the amount of active memory. (-a option)

Swap si: Amount of memory swapped in from disk (/s). so: Amount of memory swapped to disk (/s).

IO bi: Blocks received from a block device (blocks/s). bo: Blocks sent to a block device (blocks/s).

System in: The number of interrupts per second, including the clock. cs: The number of context switches per second.

CPU These are percentages of total CPU time. us: Time spent running non-kernel code. (user time, including nice time) sy: Time spent running kernel code. (system time) id: Time spent idle. wa: Time spent waiting for IO.

will be collected for every second and stored in the vmstat.log file.

Run the .sh Files during the tests and stop it once the test is done.collect the log files once the test is done for conversion.

2.Conversion of Performance logs to csv:

Convert memory log to CSV:
Execute the below ruby program to convert the log file to the csv file

infile = ARGV[0] || ‘C:\free_mem.log’
freq = ARGV[1] || 1
outfile = ‘C:\Results’
stat = File.stat(infile)
now  = stat.mtime
t=Time.now
lines=[]

File.readlines(infile).each { |line|
    line.chomp
    if line.match(/^-/) then
        data = line.split(/[^-\/\+\w+:$][\s\t]+/)
    temp = ”
    for i in 0 .. (data.length – 1)
        temp = temp + data[i].to_s + ‘,’
    end
    temp[temp.length-1] = ”
    lines << temp
    end
}

lines.each do |row|
  File.open(outfile+t.strftime(“%m%d%Y_%H%M%S”)+”.csv”,”w”) do |the_file|
  the_file.puts “total,used,free”   
      the_file.puts lines                     
    end
  end

Convert vmstat log to CSV:
Execute the below ruby program to convert the log file to the csv file

infile = ARGV[0] || ‘C:\vmstat.log’
freq = ARGV[1] || 1
outfile = ‘C:\Results’
stat = File.stat(infile)
now  = stat.mtime
t=Time.now
lines=[]

File.readlines(infile).each { |line|
    line.chomp
    if line.match(/^\s+\d+/m) then
        now  = now + freq
         date = “#{now.day}/#{now.month}/#{now.year}”
        time = “#{now.hour}:#{now.min}:#{now.sec}”
        data = line.gsub(/^\s+/m,”").gsub(/[\s\t]+/m,”,”).gsub(/,$/m,”")
    lines<<”#{date},#{time},#{data}”
    end
}

lines.each do |row|
  File.open(outfile+t.strftime(“%m%d%Y_%H%M%S”)+”.csv”,”w”) do |the_file|
  the_file.puts “date,time,r,b,swpd,free,buff,cache,si,so,bi,bo,in,cs,us,sy,id,wa,st”    
      the_file.puts lines                      
    end
  end 

3.Reporting:
Open the csv file in which the necessary performance counters data has been collected and generate graph using excel Chart Wizard feature as below CPU sample.
Thanks for Reading the blog. Hope it was useful for you. Please don’t hesitate to post comments if you got any clarification/feedback. Thanks a lot.

How to do Performance Testing in the simplest way for Web Application

Introduction:

Performance testing is a type of testing intended to determine the responsiveness, throughput, reliability, and/or scalability of a system under a given workload. Performance testing is commonly conducted to accomplish the following:
1.Assess production readiness
2.Evaluate against performance criteria
3.Compare performance characteristics of multiple systems or system configurations
4.Find the source of performance problems
5.Support system tuning

This Blog explains how to carry out a performance testing in the simplest way without much coding, scripting with open source tools (Badboy, Jmeter) in Windows environment.

Please download Badboy from http://www.badboy.com.au/download

Please download Jmeter from http://jakarta.apache.org/site/downloads/downloads_jmeter.cgi

The 4 major steps to follow to do performance testing are as follow:
1.Scripting
2.Execution
3.Configure and Collect Performance Statistics
4.Reporting

1.Scripting:
Launch Badboy and record the business transactions to be measured.
Let’s take an example of measuring the performance of launching the Web Application and Login transaction as detailed below,

Export the Script to Jmeter using the “Export” option as mentioned below.

2.Execution:
Open the Exported jmx file in Jmeter and add necessary report features as available in Jmeter for measuring the Response Time

Configure the number of users to be run for the test as mentioned below in the ThreadGroup.

Execute the Test by typing Ctrl+E, Ctrl+R

3.Configure and Collect Performance Statistics:
All windows systems comes with “Perfmon” application to measure and monitor the Performance counters.Launch Perfmon by going to Start>Run>Perfmon of the Server.
Once Perfmon is launched , Navigate to Data collector Sets> User Defined and create an Performance Counter and configure necessary counters by adding to the set as below.



Start the Collector Set by clicking the “Start” option while running the tests so that the statistics are written in the csv file as configured. Stop the collector Set by clicking the “Stop” once the test is done.

4.Reporting:
Generate Response Time Graph from Jemeter Result as below sample.

Open the csv file in which the necessary performance counters data has been collected and generate graph using excel Chart Wizard feature as below CPU sample.

 

Thanks for Reading the blog. Hope it was useful for you. Please don’t hesitate to post comments if you got any clarification/feedback. Thanks a lot.

நண்பர்களால் நலம் பெற்றேன்

எந்நன்றி கொன்றார்க்கும் உய்வுண்டாம் உய்வில்லை
செய்ந்நன்றி கொன்ற மகற்கு

கொஞ்ச நாளகாவே மனதிற்குள் ஒரு போராட்டம் , அதுயும்  யாராவது நம்மளை பற்றி சந்தோஷ பட்டளோ , இல்லை சின்ன பெருமை பட்டளோ , எனக்குள் ஒரு பூரிப்பு. இந்த சின்ன பூரிப்பு அடைய  எத்தனை எத்தனை கஷ்டங்கள், எத்தனை துயரங்கள். இதை சாதிக்க என்னால் முடிந்திருக்குமா இவர்கள் இல்லை என்றால் , யார் , என் நண்பர்கள் இல்லை என்றால். என்ன கைமாறு செய்ய போகிறோம் என்று.

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

பத்தாம் வகுப்பு வரை நான் படித்தது என் நகரின் மேல் தட்டு மக்கள் மட்டுமே பயிலும் மிக சிறந்த பள்ளி.அங்கு நான் தான் கதாநாயகன், என்னுடன் இருப்பதே பெருமை என்று நினைக்கும் என் நண்பர்கள்.படிப்பு அவளவாக வரவில்லை என்றாலும் சேட்டையில், விளையாட்டில் நம்மை மிஞ்ச ஆள் இல்லை.என் முதல் நண்பர்கள் வட்டம் பிறந்தது இங்கே தான். உயிர் நண்பர்கள் பிரசன்ன வெங்கடேஷ் , ம்.ப.விஜய், ஸ்ரீகாந்த் மற்றும் என் சக தோழர்கள் ஸ்ரீதரன், ஈஸ்வரன், ஜெயந்தீஸ்வரன், குமாரசுவாமி, ரத்னசபாபதி, சரவணா குமார் இன்னும் நிறைய.எனக்கு தெரிந்து யாரும் இந்தியாவில் இல்லை.

எனக்கு, என் அப்பாவின் கஷ்டம் புரிந்து இருந்தது , வெள்ளிகிழமை கூட சீருடையில் போகும் ஒரே மாணவன் நானாக தான் இருப்பேன்.ஹ்ம்ம். வெட்டி கதைகள் எதற்கு விசயத்திற்கு வருவோம்.

பிரசன்ன வெங்கடேஷ் , என்னுடன் இன்னும் அடிக்கடி பேசி கொண்டு இருக்கும் இந்த நண்பர் லண்டனில் மருத்துவராக இருக்கிறார், இவர் இல்லை என்றால் நான் 10வது பாஸ் பண்ணவே முடிந்து இருக்காது. ஆம் இவர் தான் எனக்கு 10வது பாட புத்தகங்கள் வாங்கி தந்தவர். இன்று வரை இது யாருக்குமே தெரியாது.ஒரு கை கொடுப்பதை அடுத்த கைக்கு தெரியாமல் உதவி செய்வது எப்படி என்பதை கற்று தந்தவர்.

ம்.ப.விஜய், இவர்கள் குடும்பமே கருணையின் வடிவம், இவரின் அக்கா, அம்மா எல்லோருமே நன்கு பரிச்சயம். பசித்தால் போய் நிற்பதே இவர்கள் வீடு தான். எனக்கு கனிவை கற்று தந்தவர்கள்.

ஸ்ரீகாந்த், என்னிடம் அவன் புத்தகங்களை தந்து எனக்காக வரண்டவில் முட்டி போட்டு நின்ற இந்த கணிபொறி வல்லுனரிடம் நான் கற்று கொண்டது பணத்தை விட நட்பிற்கு பலம் அதிகம் என்பதை.

என் வாழ்க்கையின் மிக பெரிய திருப்பம், உயர் நிலை படிப்பை MDTல் தொடர்ந்தது. இங்கு தான் நான் கலாட்டா நாயகனாக மாறினேன்.இதை பற்றி தனி ஒரு Blogல் விவரிப்போம். இங்கும் எனக்கு நல்ல நண்பர்கள் கிட்டினார்கள். ஸ்ரீனிவாசன், செந்தில், குரு, நீலகண்டன், துரைசாமி, மதன்.என்னை போலவே அனைவரும் நண்பர்களுக்காக எதையும் செய்யும் மூடர்கள்.

அடுத்ததாக என் கல்லூரி நண்பர்கள், பரத், பால முருகன், பால் ஸ்டீபன்,ஜெரால்ட், மணி, பொன்னுசாமி, அசோக், சங்கர், டொமினிக், ஹிஜாஸ், கிருஷ்ணகாந்த், மாதவராஜ், சிவ பாலன், மிராண்டா, ராஜேஷ், கிருஷ்ணகுமார், ஜிதேஷ், பினு  இன்னும் சிலர்.இவர்களிடம் கற்று கொண்டது ஏராளம்.

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

இன்னும் நண்பர்கள்  யாகூப், அசோக்,  ஷ்யாம்,  விவேக்,  திவாகர், ஈஸ்வர், குருமூர்த்தி, சுகு, அன்பு, ஷமீம், ஐயப்பன், சுதிர், கற்பகம், சுனிதா போன்ற நல்ல உள்ளங்கள் என் நண்பர்களாக கிட்டியது என் பாக்கியமே!

இவர்களிடம் கற்று கொண்ட நல்ல விஷயங்களை செயல்படுத்தி நாலு பேருக்காவது உதவி செய்வதே இவர்களுக்கு நான் ஆற்றும் நன்றி கடனாகும்.

நண்பர்கள் என்றால் சேர்ந்து கும்மாளம் அடிக்கவும் , கூத்து அடிக்கவும் என்ற எல்லோரின் எண்ணங்களை மாற்ற ஒரு முயற்சியே இந்த கட்டுரை.

Follow

Get every new post delivered to your Inbox.