Friday, July 29, 2016

Install Python in Ubuntu

"Python is a programming language that lets you work more quickly and integrate your systems more effectively. And it is powerful...fast...plays well with others and runs everywhere..Most of all python is open and easy to learn..... So give it a try with your back-end developments...." 

Here I'm going to discuss how to install python on Ubuntu. So here we go.......

First you have to install some dependencies before installing python..execute following commands in shell...
sudo apt-get install build-essential checkinstall
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev 
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev

Then download python latest version from Python Site  and extract it..
tar -xvf Python-3.5.2.tar.xz
cd Python-3.5.2

Execute following commands to configure and install python...
./configure
make
sudo make install
Execute command "python" to go to python console
To exit from python console use "exit()"
use CXX=g++ ./configure if ./configure issues a warning saying g++ was not found 

Tuesday, April 28, 2015

Android SMS receive programmatically


Sending and receiving SMS messages are fundamental features on mobile devices. Android provides API for both send and receive sms to your android application.
Here is an example for catch when your android device receive SMS to it. You need to register a broadcast receiver initially for this.

For further references use following links.
SmsManager
SmsIntents

Monday, April 27, 2015

Android send SMS programmatically



An example for sending SMS programmatically in android. This will cost operator charges of sending sms. And also need to request sms sending permission from user to do this.

It also contents receiver for capture message sent and delivery status.
Following is the source for send SMS and get the status.