Simple Python script to send an email.
Programmatically sending an email is really a good tool for developer’s paraphernalia. This is really handy when one automates task and wants to get notified by an email for success or failure. Lately I have written Python script to automate some jobs and incorporated method to send email notification. I thought to share this simple […]
Setting Mail Transfer Agent (MTA) on EC2 using exim4
One or the other reason we need configure the Mail Transfer Agent (Mail-server) to send and receive mail on the server. Lately I was working on one personal project where I wanted to send email update about any failure on the Amazon EC2 box. This EC2 box has ubuntu12.04 t1.micro instance for some light weight […]
ec2, email, exim4, ubuntu12.04
Apache Server and JMeter debugging.
I had been using JMeter to generate load for my production server to test my application. The test-plan has 13+ HTTP sampler to make different request and one Regular Expression extractor to extract some value from the response. This value was used in consecutive HTTP Sampler. This test case simple and straight forward. Initially I […]
MySQL commands: Important for db admin, but usually forgotten.
As a developer, we hardly use DB admin commands and mostly we forget command after use. I am trying to summarize some of the commands. If you find there are few more commands which fall under this category then please put them in the comments section. Check MySQL debugging post if you are interested in […]
which one is better valueOf() or toString() in Java
Developers often get into dilemma when they have to convert the object to string representation by choosing between valueOf() and toString() method. Because both the methods do the same thing but in a bit different ways. To give you more context, toString() method is present in Object class and generally overridden in the derived class […]
How to install Python2.7 on Ubuntu 10.04
Sometimes it’s require to install python2.7 on Ubuntu 10.04 which has python2.6 pre-installed, because some of the libraries are not compatible with python2.6 and they can work well if system has python2.7. If you try to replace 2.6 with 2.7 some of the system script might break. To avoid such scenario you generally have both […]