<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7291100184596955000</id><updated>2017-06-01T21:36:20.035-07:00</updated><category term="லினக்ஸ்"/><category term="tutorial"/><category term="ubuntu"/><category term="இலவசம்"/><category term="free"/><category term="gnu/linux"/><category term="linux"/><category term="program"/><category term="windows"/><category term="உபுண்டு"/><category term="software"/><category term="செயலி"/><category term="படிப்பு"/><category term="script"/><category term="tips"/><category term="download"/><category term="python"/><category term="apps"/><category term="commands"/><category term="os"/><category term="c"/><category term="cd/dvd"/><category term="networking"/><category term="ruby"/><category term="unix networking"/><category term="free software"/><category term="games"/><category term="java"/><category term="mobile"/><category term="opensource"/><category term="கணியம்"/><category term="புத்தகம்"/><category term="animation"/><category term="book"/><category term="bresenham"/><category term="call"/><category term="cd"/><category term="cheat"/><category term="chrome"/><category term="cipher"/><category term="conole"/><category term="experience"/><category term="extension"/><category term="graphic"/><category term="hack"/><category term="hardware"/><category term="kaniyam"/><category term="klug"/><category term="lug meet"/><category term="music"/><category term="n64"/><category term="radio"/><category term="rails"/><category term="rapidshare"/><category term="rhythmbox"/><category term="rms"/><category term="shell"/><category term="skype"/><category term="stallman"/><category term="tricks"/><category term="unix"/><category term="vlc"/><category term="winamp"/><category term="zorin"/><category term="zorin os"/><title type='text'>MANI-G</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>86</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6147926880086238111</id><published>2015-07-13T04:46:00.000-07:00</published><updated>2015-07-13T04:46:08.064-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="chrome"/><category scheme="http://www.blogger.com/atom/ns#" term="extension"/><title type='text'>speeding up and saving data in chrome browser</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here in India we don&#39;t afford an unlimited internet plan or high speed internet(mostly). I came through some awesome chrome extensions to the rescue. I checked most of the extension they work seamlessly in my chrome browser in ubuntu 14.04.&lt;br /&gt;&lt;br /&gt;If you&#39;re using windows you can consider an awesome ucbrowser that forked from chromium web browser. that support all the extensions of google chrome browser. we can grab it from&amp;nbsp;&lt;a href=&quot;http://pc.ucweb.com/&quot; target=&quot;_blank&quot;&gt;pc.ucweb.com&lt;/a&gt;. It as its own cloud compression technology known as speedmode that can reduce the data transmitted over internet. Check it yourself.&lt;br /&gt;&lt;br /&gt;So, here are the chrome extensions used to reduce internet data.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Google data saver extension:&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;You may seen this on your android devices, and now it&#39;s available for pc version of chrome. It uses the google&#39;s own server to optimize the pages that we request. It will not work with SSL or HTTPS sites. and it works damn nice with ordinary sites. grab it here:&amp;nbsp;&lt;a href=&quot;https://chrome.google.com/webstore/detail/data-saver-beta/pfmgfdlgomnbgkofeojodiodmgpgmkac&quot; target=&quot;_blank&quot;&gt;data-saver-beta&lt;/a&gt;&amp;nbsp;and it&#39;s currently a beta release.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Disconnect:&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Did u know, the page that loads in our browser not only loads the information that we want. It contains lots of tracking websites, ads, scripts, etc., they eat some bandwidth also. So this extension&lt;br /&gt;will block all those trackers from the websites. grab it here:&amp;nbsp;&lt;a href=&quot;https://chrome.google.com/webstore/detail/disconnect/jeoacafpbcihiomhlakheieifhpjdfeo&quot; target=&quot;_blank&quot;&gt;Disconnect extension&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;3. uBlocker origin:&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Another blocker that block unwanted ads and trackers. doesn&#39;t eat much of the hardward resources. it consumes less memory and cpu cycles unlike adblock plus. try it, it&#39;s so cool. grab it:&amp;nbsp;&lt;a href=&quot;https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm&quot; target=&quot;_blank&quot;&gt;ublock-origin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. data-compression-proxy:&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;Another data saver extension. works same as google data-saver extension. try it yourself&lt;br /&gt;grab it:&amp;nbsp;&lt;a href=&quot;https://chrome.google.com/webstore/detail/data-compression-proxy/ajfiodhbiellfpcjjedhmmmpeeaebmep&quot; target=&quot;_blank&quot;&gt;data-compression-proxy&lt;/a&gt;. also there is a skyzip proxy extension that serves same as above.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5.&amp;nbsp;ultimate user agent switcher url sniffer:&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;It&#39;s my suggestion that to use some user agent switchers to switch to the mobile devices such as windows phone or something. desktop version of websites are heavy and loads lots of data.&lt;br /&gt;If i goto facebook&#39;s desktop version it eat almost 20mb of data. So that i switch to mobile device that load mobile version of facebook to save my data. :)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6147926880086238111/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2015/07/speeding-up-and-saving-data-in-chrome.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6147926880086238111'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6147926880086238111'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2015/07/speeding-up-and-saving-data-in-chrome.html' title='speeding up and saving data in chrome browser'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-3339422196952972873</id><published>2014-07-20T08:52:00.002-07:00</published><updated>2014-07-20T08:52:59.096-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="bresenham"/><category scheme="http://www.blogger.com/atom/ns#" term="graphic"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><title type='text'>First Graphic program in C</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Current semester i have a Computer Graphics as a subject.&lt;br /&gt;Here is my first program that implements the&lt;br /&gt;bresenham&#39;s circle drawing algorithm to draw a circle&lt;br /&gt;and with some lines i created a smiley : )&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;graphics.h&quot;&lt;br /&gt;&lt;br /&gt;void brecircle(xc,yc,r)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;int x,y,p;&lt;br /&gt;x=0;&lt;br /&gt;y=r;&lt;br /&gt;putpixel(xc+x,yc-y,1);&lt;br /&gt;&lt;br /&gt;p=3-(2*r);&lt;br /&gt;&lt;br /&gt;for(x=0;x&amp;lt;=y;x++)&lt;br /&gt;{&lt;br /&gt;if (p&amp;lt;0)&lt;br /&gt;{&lt;br /&gt;y=y;&lt;br /&gt;p=(p+(4*x)+6);&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;y=y-1;&lt;br /&gt;&lt;br /&gt;p=p+((4*(x-y)+10));&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;putpixel(xc+x,yc-y,15);&lt;br /&gt;putpixel(xc-x,yc-y,15);&lt;br /&gt;putpixel(xc+x,yc+y,15);&lt;br /&gt;putpixel(xc-x,yc+y,15);&lt;br /&gt;putpixel(xc+y,yc-x,15);&lt;br /&gt;putpixel(xc-y,yc-x,15);&lt;br /&gt;putpixel(xc+y,yc+x,15);&lt;br /&gt;putpixel(xc-y,yc+x,15);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main() {&lt;br /&gt;  int x,y;&lt;br /&gt;  int gd = DETECT, gm=0;&lt;br /&gt;  initgraph(&amp;amp;gd,&amp;amp;gm,&quot;&quot;);&lt;br /&gt;  x=getmaxx()/2;&lt;br /&gt;  y=getmaxy()/2;&lt;br /&gt;  brecircle(x,y,150);&lt;br /&gt;  brecircle(x-50,y-50,19);&lt;br /&gt;  brecircle(x+50,y-50,19);&lt;br /&gt;  line(x,y,x+20,y+20);&lt;br /&gt;  line(x,y,x-20,y+20);&lt;br /&gt;  line(x-20,y+20,x+20,y+20);&lt;br /&gt;  line(x-40,y+50,x+40,y+50);&lt;br /&gt;  getch();&lt;br /&gt;  closegraph();&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;br /&gt;&lt;!--0--&gt;&lt;/pre&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre&gt;&lt;b&gt;output:&lt;/b&gt;&lt;/pre&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://4.bp.blogspot.com/-wlhh1mWl7jk/U8vlV4VH5mI/AAAAAAAAATQ/gx12caUGj0o/s1600/Screenshot+from+2014-07-20+21:10:37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://4.bp.blogspot.com/-wlhh1mWl7jk/U8vlV4VH5mI/AAAAAAAAATQ/gx12caUGj0o/s1600/Screenshot+from+2014-07-20+21:10:37.png&quot; height=&quot;248&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;pre&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/3339422196952972873/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/07/first-graphic-program-in-c.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/3339422196952972873'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/3339422196952972873'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/07/first-graphic-program-in-c.html' title='First Graphic program in C'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://4.bp.blogspot.com/-wlhh1mWl7jk/U8vlV4VH5mI/AAAAAAAAATQ/gx12caUGj0o/s72-c/Screenshot+from+2014-07-20+21:10:37.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-9137404784769079310</id><published>2014-06-16T10:07:00.000-07:00</published><updated>2014-06-16T10:07:07.898-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>wordpuzzle solver</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Most of the *nix systems contains the wordlist.&lt;br /&gt;This script will use that wordlist to search the words for the given pattern.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#!/usr/bin/python&lt;br /&gt;import re&lt;br /&gt;import sys&lt;br /&gt;&lt;br /&gt;if len(sys.argv[:]) != 2:&lt;br /&gt; print &quot;usage: ./puzzle.py &#39;pattern&#39;&quot;&lt;br /&gt; exit(0)&lt;br /&gt;&lt;br /&gt;pattern = sys.argv[1]&lt;br /&gt;length = len(pattern)&lt;br /&gt;pattern = pattern.replace(&#39;?&#39;,&#39;\w&#39;)&lt;br /&gt;words = open(&#39;/usr/share/dict/words&#39;,&#39;r&#39;)&lt;br /&gt;print &#39;&#39;&lt;br /&gt;for word in words:&lt;br /&gt; if len(word)== int(length)+1 and re.search(pattern,word):&lt;br /&gt;  print word.strip()&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Also made a gui for that application&lt;br /&gt;&lt;br /&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-XcvIPZkjK3o/U58jFipnfNI/AAAAAAAAAS0/uN_JGEGlo_g/s1600/wordpuzzle.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://1.bp.blogspot.com/-XcvIPZkjK3o/U58jFipnfNI/AAAAAAAAAS0/uN_JGEGlo_g/s1600/wordpuzzle.png&quot; height=&quot;320&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;You can get the full source code for this app in&amp;nbsp;&lt;a href=&quot;https://github.com/manimaran990/wordpuzzle&quot; target=&quot;_blank&quot;&gt;https://github.com/manimaran990/wordpuzzle&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/9137404784769079310/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/06/wordpuzzle-solver.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/9137404784769079310'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/9137404784769079310'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/06/wordpuzzle-solver.html' title='wordpuzzle solver'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-XcvIPZkjK3o/U58jFipnfNI/AAAAAAAAAS0/uN_JGEGlo_g/s72-c/wordpuzzle.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6342394821094175689</id><published>2014-06-14T04:41:00.005-07:00</published><updated>2014-06-14T04:41:55.484-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Pronunciation script in python </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Frequently i had a visits to google to search for some word pronunciations.&lt;br /&gt;So I wrote this small script to save my time.&lt;br /&gt;you need to install mpg123 before you run this script&lt;br /&gt;by&lt;br /&gt;&lt;br /&gt;$&lt;i&gt; sudo apt-get install mpg123&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i&gt;&lt;b&gt;spellit.py&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#!/usr/bin/python&lt;br /&gt;&lt;br /&gt;import os&lt;br /&gt;import sys&lt;br /&gt;&lt;br /&gt;url = &#39;http://ssl.gstatic.com/dictionary/static/sounds/de/0/&#39;&lt;br /&gt;if len(sys.argv[:]) != 2:&lt;br /&gt; print &#39;usage: ./spellit.py word&#39;&lt;br /&gt; exit(0)&lt;br /&gt;&lt;br /&gt;word = sys.argv[1]&lt;br /&gt;&lt;br /&gt;final = url+word+&#39;.mp3&#39;&lt;br /&gt;os.system(&#39;mpg123 -q %s&#39;% final)&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6342394821094175689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/06/pronunciation-script-in-python.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6342394821094175689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6342394821094175689'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/06/pronunciation-script-in-python.html' title='Pronunciation script in python '/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6036521024408754521</id><published>2014-06-04T01:17:00.000-07:00</published><updated>2014-06-04T01:19:36.885-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><title type='text'>Sneak-peek at py-qt</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Learned some py-qt to build a front-end for the sms api&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;pre&gt;#!/usr/bin/python&lt;br /&gt;&lt;br /&gt;import sitsms&lt;br /&gt;import sys&lt;br /&gt;from PyQt4 import QtGui, QtCore&lt;br /&gt;&lt;br /&gt;class Sitsms(QtGui.QWidget):&lt;br /&gt;&lt;br /&gt;    def __init__(self):&lt;br /&gt;        super(Sitsms, self).__init__()&lt;br /&gt;&lt;br /&gt;        self.initUI()&lt;br /&gt;&lt;br /&gt;    def initUI(self):&lt;br /&gt;&lt;br /&gt;        number = QtGui.QLabel(&quot;Number &quot;,self)&lt;br /&gt;        number.move(20,20);&lt;br /&gt;&lt;br /&gt;        message = QtGui.QLabel(&quot;Message &quot;,self)&lt;br /&gt;        message.move(20,60);&lt;br /&gt;&lt;br /&gt;        self.numberEdit = QtGui.QLineEdit(self)&lt;br /&gt;        self.numberEdit.resize(190,24);&lt;br /&gt;        self.numberEdit.move(80,20);&lt;br /&gt;        self.messageEdit = QtGui.QTextEdit(self)&lt;br /&gt;        self.messageEdit.resize(220,200)&lt;br /&gt;        self.messageEdit.move(80,60);&lt;br /&gt;&lt;br /&gt;        self.sendbtn = QtGui.QPushButton(&quot;send&quot;,self)&lt;br /&gt;        self.sendbtn.setStyleSheet(&quot;QPushButton:pressed { background-color: green }&quot;&lt;br /&gt;                      &quot;QPushButton:released { background-color: gray }&quot; )&lt;br /&gt;        quitbtn = QtGui.QPushButton(&quot;Exit&quot;,self)&lt;br /&gt;&lt;br /&gt;        self.sendbtn.clicked.connect(self.buttonClicked)&lt;br /&gt;        self.sendbtn.move(80,280)&lt;br /&gt;&lt;br /&gt;        quitbtn.clicked.connect(QtCore.QCoreApplication.instance().quit)&lt;br /&gt;        quitbtn.move(200,280)&lt;br /&gt;&lt;br /&gt;        self.setGeometry(300,350,320,320)&lt;br /&gt;        self.setFixedSize(320,320)&lt;br /&gt;        self.setWindowTitle(&#39;SitSms&#39;)&lt;br /&gt;        self.show()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    def buttonClicked(self):&lt;br /&gt;        numlen = len(self.numberEdit.text())&lt;br /&gt;        msglen = len(self.messageEdit.toPlainText())&lt;br /&gt;&lt;br /&gt;        if numlen==0:&lt;br /&gt;            QtGui.QMessageBox.information(self,&#39;info&#39;,&quot;please fill your number&quot;,1)&lt;br /&gt;        elif numlen&amp;gt;10:&lt;br /&gt;            QtGui.QMessageBox.information(self,&#39;info&#39;,&quot;number count must be 10 digits&quot;,1)&lt;br /&gt; else:&lt;br /&gt;     num = self.numberEdit.text()&lt;br /&gt;     if msglen&amp;gt;145:&lt;br /&gt;         QtGui.QMessageBox.information(self,&#39;info&#39;,&quot;your message is trimmed to 145 chars&quot;,1)&lt;br /&gt;     message = self.messageEdit.toPlainText()[:145]&lt;br /&gt;     sitsms.loginsite()&lt;br /&gt;     sitsms.sendsms(num,message)&lt;br /&gt;     QtGui.QMessageBox.information(self,&#39;info&#39;,&#39;Message delivered to &#39;+num,1)&lt;br /&gt;&lt;br /&gt;def main():&lt;br /&gt;    app = QtGui.QApplication(sys.argv)&lt;br /&gt;    ex = Sitsms()&lt;br /&gt;&lt;br /&gt;    sys.exit(app.exec_())&lt;br /&gt;&lt;br /&gt;if __name__ == &#39;__main__&#39;:&lt;br /&gt;    main()&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;find full source code at &lt;a href=&quot;http://github.com/manimaran990/sitsms&quot;&gt;github&lt;/a&gt;&lt;br /&gt;&lt;pre&gt;&lt;/pre&gt;&lt;pre&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6036521024408754521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/06/sneak-peak-of-py-qt.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6036521024408754521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6036521024408754521'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/06/sneak-peak-of-py-qt.html' title='Sneak-peek at py-qt'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-8733663194402209562</id><published>2014-05-20T11:12:00.000-07:00</published><updated>2014-06-16T10:09:08.029-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="rails"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>My First Applicaiton in Rails</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;Here is my gpa calculator app in rails. &amp;nbsp;&lt;a href=&quot;http://cgpacalc.herokuapp.com/&quot; target=&quot;_blank&quot;&gt;cgpacalc.herokuapp.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;with some bootstrap. It calculates the gpa and allow users to signup and save their marksheets for their future references.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;some vim tips:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;I used vim editor for this development. &amp;nbsp;There is a plugin called &lt;a href=&quot;https://github.com/tpope/vim-rails#readme&quot; target=&quot;_blank&quot;&gt;vim-rails&lt;/a&gt;&amp;nbsp;it can make the development much easier.&lt;br /&gt;&lt;br /&gt;vi editor should be on your box.&lt;br /&gt;&lt;br /&gt;need to install &lt;a href=&quot;https://github.com/tpope/vim-pathogen&quot; target=&quot;_blank&quot;&gt;vim-pathogen&lt;/a&gt;&amp;nbsp;before installing vim-rails&lt;br /&gt;&lt;br /&gt;&lt;pre style=&quot;background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 13px; line-height: 19px; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; box-sizing: border-box; display: inline; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 12px; line-height: inherit; margin: 0px; padding: 0px; word-wrap: normal;&quot;&gt;mkdir -p ~/.vim/autoload ~/.vim/bundle; \&lt;br /&gt;curl -LSso ~/.vim/autoload/pathogen.vim \&lt;br /&gt;    https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;background-color: #f8f8f8; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; box-sizing: border-box; display: inline; margin: 0px; padding: 0px; word-wrap: normal;&quot;&gt;&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;&lt;br /&gt;then add this on .vimrc file&lt;/div&gt;&lt;br /&gt;&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 13px; line-height: inherit; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; box-sizing: border-box; display: inline; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 12px; line-height: inherit; margin: 0px; padding: 0px; word-wrap: normal;&quot;&gt;execute pathogen#infect()&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; box-sizing: border-box; display: inline; margin: 0px; padding: 0px; word-wrap: normal;&quot;&gt;&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;&lt;br /&gt;after that we can install vim-rails by&lt;/div&gt;&lt;br /&gt;&lt;div style=&quot;color: black; font-family: &#39;Times New Roman&#39;; font-size: medium; line-height: normal; white-space: normal;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 13px; line-height: inherit; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background-color: transparent; border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: none; box-sizing: border-box; display: inline; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 12px; line-height: inherit; margin: 0px; padding: 0px; word-wrap: normal;&quot;&gt;cd ~/.vim/bundle&lt;br /&gt;git clone git://github.com/tpope/vim-rails.git&lt;br /&gt;git clone git://github.com/tpope/vim-bundler.git&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; color: #333333; font-family: Consolas, &#39;Liberation Mono&#39;, Courier, monospace; font-size: 13px; line-height: inherit; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;span style=&quot;background-color: transparent; color: black; font-family: &#39;Times New Roman&#39;; font-size: small; line-height: normal; white-space: normal;&quot;&gt;open vim and type :Rails&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;span style=&quot;font-family: Times New Roman;&quot;&gt;&lt;span style=&quot;white-space: normal;&quot;&gt;Baisc commands:&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;pre style=&quot;border-bottom-left-radius: 3px; border-bottom-right-radius: 3px; border-top-left-radius: 3px; border-top-right-radius: 3px; border: 1px solid rgb(221, 221, 221); box-sizing: border-box; margin-bottom: 15px; margin-top: 15px; overflow: auto; padding: 6px 10px; word-wrap: normal;&quot;&gt;&lt;span class=&quot;symbol&quot; style=&quot;background-color: #f7f7f7; border: 0px; color: #dc322f; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:Rmodel&lt;/span&gt;&lt;span style=&quot;background-color: #f7f7f7; color: #333333; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px;&quot;&gt; user&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;symbol&quot; style=&quot;background-color: #f7f7f7; border: 0px; color: #dc322f; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:Rcontroller&lt;/span&gt;&lt;span style=&quot;background-color: #f7f7f7; color: #333333; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px;&quot;&gt; application&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;symbol&quot; style=&quot;background-color: #f7f7f7; border: 0px; color: #dc322f; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:Rhelper&lt;/span&gt;&lt;span style=&quot;background-color: #f7f7f7; color: #333333; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px;&quot;&gt; navigation&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;symbol&quot; style=&quot;background-color: #f7f7f7; border: 0px; color: #dc322f; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:Rview&lt;/span&gt;&lt;span style=&quot;background-color: #f7f7f7; color: #333333; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px;&quot;&gt; sessions/new&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;symbol&quot; style=&quot;background-color: #f7f7f7; border: 0px; color: #dc322f; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:Rfunctionaltest&lt;/span&gt;&lt;span style=&quot;background-color: #f7f7f7; color: #333333; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px;&quot;&gt; sessions&lt;br /&gt;&lt;/span&gt;&lt;span class=&quot;symbol&quot; style=&quot;background-color: #f7f7f7; border: 0px; color: #dc322f; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;:Runittest&lt;/span&gt;&lt;span style=&quot;background-color: #f7f7f7; color: #333333; font-family: monaco, monospace; font-size: 13px; line-height: 21.59375px;&quot;&gt; user&lt;/span&gt;&lt;/pre&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/8733663194402209562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/05/first-applicaiton-on-rails.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/8733663194402209562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/8733663194402209562'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/05/first-applicaiton-on-rails.html' title='My First Applicaiton in Rails'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-5900853694587103850</id><published>2014-05-16T00:48:00.004-07:00</published><updated>2014-05-16T00:55:52.931-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>GPA calculator in RUBY</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;pre class=&quot;brush:&quot; ruby=&quot;&quot;&gt;#!/usr/bin/env ruby&lt;br /&gt;&lt;br /&gt;=begin&lt;br /&gt;Prgram : CGPA calculator&lt;br /&gt;Date : May 16, 2014&lt;br /&gt;Author : ManiG&lt;br /&gt;License : GPL2.0&lt;br /&gt;Version : 1.0&lt;br /&gt;=end&lt;br /&gt;&lt;br /&gt;sum=0.0&lt;br /&gt;grade = {&quot;S&quot;=&amp;gt;10,&quot;A&quot;=&amp;gt;9,&quot;B&quot;=&amp;gt;8,&quot;C&quot;=&amp;gt;7,&quot;D&quot;=&amp;gt;6,&quot;E&quot;=&amp;gt;5,&quot;U&quot;=&amp;gt;0}&lt;br /&gt;tot_credits = 0&lt;br /&gt;tot_egrades = 0&lt;br /&gt;print &quot;enter no. of subjects : &quot;&lt;br /&gt;sub_count = gets().to_i&lt;br /&gt;sub_count.times do |c|&lt;br /&gt;    print &quot;enter subject#{c+1}&#39;s credit : &quot;&lt;br /&gt;    credit = gets().to_i&lt;br /&gt;    tot_credits += credit&lt;br /&gt;    print &quot;enter subject#{c+1}&#39;s earned grade :(only &#39;S&#39;,&#39;A&#39;,&#39;B&#39;,&#39;C&#39;,&#39;D&#39;,&#39;E&#39;,&#39;U&#39;) : &quot;&lt;br /&gt;    e_grade = gets().chomp.upcase&lt;br /&gt;    tot_egrades += grade[e_grade] &lt;br /&gt;    sum += grade[e_grade]*credit&lt;br /&gt;end&lt;br /&gt;gpa = sum/tot_credits&lt;br /&gt;puts&lt;br /&gt;puts &quot;Credits Earned #{tot_credits}&quot;&lt;br /&gt;puts &quot;Grade points earned #{tot_egrades}&quot;&lt;br /&gt;puts &quot;GPA #{format(&quot;%.4f&quot;,gpa)}&quot;&lt;br /&gt;puts &quot;CGPA #{format(&quot;%.4f&quot;,gpa)}&quot;&lt;br /&gt;puts&lt;br /&gt;puts &quot;Percentage [=(cgpa*10)-7.5] #{format(&quot;%.4f&quot;,(gpa*10)-7.5)}&quot;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/5900853694587103850/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/05/gpa-calculator-in-ruby.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/5900853694587103850'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/5900853694587103850'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/05/gpa-calculator-in-ruby.html' title='GPA calculator in RUBY'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-9166936321896011211</id><published>2014-03-24T10:22:00.000-07:00</published><updated>2014-03-24T10:24:12.749-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="program"/><category scheme="http://www.blogger.com/atom/ns#" term="unix networking"/><title type='text'>ARP/RARP full simulation program</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;server.c&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;strlen 0=&quot;&quot; :=&quot;&quot; address=&quot;&quot; break=&quot;&quot; bzero=&quot;&quot; check=&quot;&quot; equivalent=&quot;&quot; for=&quot;&quot; i=&quot;&quot; if=&quot;&quot; in=&quot;&quot; ip=&quot;&quot; is=&quot;&quot; len=&quot;&quot; mac=&quot;&quot; n=&quot;&quot; pre=&quot;&quot; printf=&quot;&quot; rarp=&quot;&quot; received=&quot;&quot; recv=&quot;&quot; recvfrom=&quot;&quot; return=&quot;&quot; s=&quot;&quot; searching=&quot;&quot; sendto=&quot;&quot; servaddr=&quot;&quot; simulation=&quot;&quot; sizeof=&quot;&quot; sockfd=&quot;&quot; store=&quot;&quot; strcmp=&quot;&quot; strcpy=&quot;&quot; table=&quot;&quot; temp=&quot;&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;string.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#define SA struct sockaddr&lt;br /&gt;&lt;br /&gt;struct IPmac {&lt;br /&gt;			 char ip[100];&lt;br /&gt;			 char mac[100];&lt;br /&gt;	   };&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;int main() {&lt;br /&gt;	   int sockfd,len,i;&lt;br /&gt;	   struct sockaddr_in servaddr;&lt;br /&gt;	   char buff[30],temp[30],ip[30],mac[30];&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;	   int flag=0;&lt;br /&gt;&lt;br /&gt;	   struct IPmac in[3]={ &lt;br /&gt;			 {&quot;10.1.1.8&quot;,&quot;44:dd:22:11:33&quot;},&lt;br /&gt;			 {&quot;127.0.0.1&quot;,&quot;33:aa:fe:4e:2d&quot;},&lt;br /&gt;			 {&quot;10.1.8.5&quot;,&quot;23:a3:5d:33:9d&quot;}&lt;br /&gt;	    };&lt;br /&gt;&lt;br /&gt;	   //printing table&lt;br /&gt;	   printf(&quot;ip\t\tmac\n&quot;);&lt;br /&gt;	   for(i=0;i&amp;lt;3;i++) &lt;br /&gt;	   {&lt;br /&gt;			 printf(&quot;%s\t%s\n&quot;,in[i].ip,in[i].mac);&lt;br /&gt;	   }&lt;br /&gt;&lt;br /&gt;	   //create socket&lt;br /&gt;	   sockfd = socket(AF_INET,SOCK_DGRAM,0);&lt;br /&gt;&lt;br /&gt;	   //fill structure&lt;br /&gt;	   servaddr.sin_family = AF_INET;&lt;br /&gt;	   servaddr.sin_port = htons(9999);&lt;br /&gt;	   servaddr.sin_addr.s_addr = INADDR_ANY;&lt;br /&gt;&lt;br /&gt;	   //bind&lt;br /&gt;	   bind(sockfd,(SA*)&amp;amp;servaddr,sizeof(servaddr));&lt;br /&gt;&lt;br /&gt;	   //get ip from client&lt;br /&gt;	   len=sizeof(servaddr);&lt;br /&gt;	   recvfrom(sockfd,ip,sizeof(ip),0,(SA*)&amp;amp;servaddr,&amp;amp;len);&lt;br /&gt;&lt;br /&gt;	   for(i=0;i&amp;lt;strlen(ip)-1;i++) {&lt;br /&gt;			 temp[i]=ip[i];&lt;br /&gt;	   }&lt;br /&gt;	   temp[i]=&#39;\0&#39;;&lt;br /&gt;	   printf(&quot;received IP :%s\n&quot;,temp);&lt;br /&gt;&lt;br /&gt;	   //searching in table for equivalent mac&lt;br /&gt;	   for(i=0;i&amp;lt;3;i++) {&lt;br /&gt;			 if(strcmp(temp,in[i].ip)==0) {&lt;br /&gt;				    strcpy(mac,in[i].mac);&lt;br /&gt;				    break;&lt;br /&gt;			 }&lt;br /&gt;	   }&lt;br /&gt;&lt;br /&gt;	   printf(&quot;mac address is %s\n&quot;,mac);&lt;br /&gt;	   sendto(sockfd,mac,sizeof(mac),0,(SA*)&amp;amp;servaddr,len);&lt;br /&gt;&lt;br /&gt;	   //rarp simulation&lt;br /&gt;	   //recv mac address&lt;br /&gt;	   bzero(mac,sizeof(mac));&lt;br /&gt;	   recvfrom(sockfd,mac,sizeof(mac),0,(SA*)&amp;amp;servaddr,&amp;amp;len);&lt;br /&gt;	   printf(&quot;received mac address :%s&quot;,mac);&lt;br /&gt;	   //store in temp&lt;br /&gt;	   bzero(temp,sizeof(temp));&lt;br /&gt;	   for(i=0;i&amp;lt;strlen(mac)-1;i++) {&lt;br /&gt;			 temp[i]=mac[i];&lt;br /&gt;	   }&lt;br /&gt;	   temp[i]=&#39;\0&#39;;&lt;br /&gt;	   bzero(ip,sizeof(ip));&lt;br /&gt;&lt;br /&gt;	   //check in table&lt;br /&gt;	   for(i=0;i&amp;lt;3;i++) {&lt;br /&gt;			 if(strcmp(temp,in[i].mac)==0) {&lt;br /&gt;				    strcpy(ip,in[i].ip);&lt;br /&gt;				    break;&lt;br /&gt;			 }&lt;br /&gt;	   }&lt;br /&gt;	   printf(&quot;ip address :%s\n&quot;,ip);&lt;br /&gt;	   sendto(sockfd,ip,sizeof(ip),0,(SA*)&amp;amp;servaddr,len);&lt;br /&gt;	   return 0;&lt;br /&gt;}&lt;/strlen&gt;&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;strlen 0=&quot;&quot; :=&quot;&quot; address=&quot;&quot; break=&quot;&quot; bzero=&quot;&quot; check=&quot;&quot; equivalent=&quot;&quot; for=&quot;&quot; i=&quot;&quot; if=&quot;&quot; in=&quot;&quot; ip=&quot;&quot; is=&quot;&quot; len=&quot;&quot; mac=&quot;&quot; n=&quot;&quot; pre=&quot;&quot; printf=&quot;&quot; rarp=&quot;&quot; received=&quot;&quot; recv=&quot;&quot; recvfrom=&quot;&quot; return=&quot;&quot; s=&quot;&quot; searching=&quot;&quot; sendto=&quot;&quot; servaddr=&quot;&quot; simulation=&quot;&quot; sizeof=&quot;&quot; sockfd=&quot;&quot; store=&quot;&quot; strcmp=&quot;&quot; strcpy=&quot;&quot; table=&quot;&quot; temp=&quot;&quot;&gt;&lt;br /&gt;&lt;/strlen&gt;&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;strlen 0=&quot;&quot; :=&quot;&quot; address=&quot;&quot; break=&quot;&quot; bzero=&quot;&quot; check=&quot;&quot; equivalent=&quot;&quot; for=&quot;&quot; i=&quot;&quot; if=&quot;&quot; in=&quot;&quot; ip=&quot;&quot; is=&quot;&quot; len=&quot;&quot; mac=&quot;&quot; n=&quot;&quot; pre=&quot;&quot; printf=&quot;&quot; rarp=&quot;&quot; received=&quot;&quot; recv=&quot;&quot; recvfrom=&quot;&quot; return=&quot;&quot; s=&quot;&quot; searching=&quot;&quot; sendto=&quot;&quot; servaddr=&quot;&quot; simulation=&quot;&quot; sizeof=&quot;&quot; sockfd=&quot;&quot; store=&quot;&quot; strcmp=&quot;&quot; strcpy=&quot;&quot; table=&quot;&quot; temp=&quot;&quot;&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;client.c&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush:c&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;string.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#define SA struct sockaddr&lt;br /&gt;&lt;br /&gt;int main() {&lt;br /&gt;	   int sockfd,len;&lt;br /&gt;	   char ip[30],mac[30];&lt;br /&gt;	   struct sockaddr_in servaddr;&lt;br /&gt;&lt;br /&gt;	   //creating socket&lt;br /&gt;	   sockfd = socket(AF_INET,SOCK_DGRAM,0);&lt;br /&gt;&lt;br /&gt;	   //fill structure&lt;br /&gt;	   servaddr.sin_family = AF_INET;&lt;br /&gt;	   servaddr.sin_port = htons(9999);&lt;br /&gt;	   servaddr.sin_addr.s_addr = inet_addr(&quot;127.0.0.1&quot;);&lt;br /&gt;&lt;br /&gt;	   //send ip address&lt;br /&gt;	   printf(&quot;ARP SIMULATION\n&quot;);&lt;br /&gt;	   printf(&quot;enter ip address :&quot;);&lt;br /&gt;	   fgets(ip,sizeof(ip),stdin);&lt;br /&gt;	   sendto(sockfd,ip,sizeof(ip),0,(SA*)&amp;amp;servaddr,sizeof(servaddr));&lt;br /&gt;	   len=sizeof(servaddr);&lt;br /&gt;	   recvfrom(sockfd,mac,sizeof(mac),0,(SA*)&amp;amp;servaddr,&amp;amp;len);&lt;br /&gt;	   printf(&quot;MAC address is: %s\n&quot;,mac);&lt;br /&gt;&lt;br /&gt;	   printf(&quot;RARP simulation\n&quot;);&lt;br /&gt;	   printf(&quot;enter mac address :&quot;);&lt;br /&gt;	   bzero(mac,sizeof(mac));&lt;br /&gt;	   fgets(mac,sizeof(mac),stdin);&lt;br /&gt;	   sendto(sockfd,mac,sizeof(mac),0,(SA*)&amp;amp;servaddr,len);&lt;br /&gt;	   recvfrom(sockfd,ip,sizeof(ip),0,(SA*)&amp;amp;servaddr,&amp;amp;len);&lt;br /&gt;	   printf(&quot;IP address is: %s\n&quot;,ip);&lt;br /&gt;&lt;br /&gt;	   return 0;&lt;br /&gt;}&lt;/pre&gt;&lt;!--3--&gt;&lt;!--3--&gt;&lt;!--3--&gt;&lt;!--3--&gt;&lt;/strlen&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/9166936321896011211/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/03/arprarp-full-simulation-program.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/9166936321896011211'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/9166936321896011211'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/03/arprarp-full-simulation-program.html' title='ARP/RARP full simulation program'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-2195555138163281225</id><published>2014-03-18T08:45:00.003-07:00</published><updated>2014-03-18T08:45:52.778-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="program"/><category scheme="http://www.blogger.com/atom/ns#" term="unix networking"/><title type='text'>FTP simulation to read the file contents</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;server.c&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;pre class=&quot;brush:c&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;string.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#define SA struct sockaddr&lt;br /&gt;&lt;br /&gt;int main(int argc,char** argv) {&lt;br /&gt;    int sockfd;&lt;br /&gt;    int n=0,clilen;&lt;br /&gt;    char fname[20],content[2000],ch;&lt;br /&gt;    FILE *fp;&lt;br /&gt;    struct sockaddr_in servaddr,cliaddr;&lt;br /&gt;&lt;br /&gt;    if(argc!=2) {&lt;br /&gt;    printf(&quot;usage ./server PORT\n&quot;);&lt;br /&gt;    return 0;&lt;br /&gt;    }&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;    //create socket&lt;br /&gt;    sockfd = socket(AF_INET,SOCK_DGRAM,0);&lt;br /&gt;&lt;br /&gt;    //fill structure&lt;br /&gt;    servaddr.sin_family = AF_INET;&lt;br /&gt;    servaddr.sin_port = htons(atoi(argv[1]));&lt;br /&gt;    servaddr.sin_addr.s_addr = INADDR_ANY;&lt;br /&gt;&lt;br /&gt;    //bind&lt;br /&gt;    bind(sockfd,(SA*)&amp;amp;servaddr,sizeof(servaddr));&lt;br /&gt;&lt;br /&gt;    //getting filename from client&lt;br /&gt;    clilen=sizeof(cliaddr);&lt;br /&gt;    recvfrom(sockfd,fname,sizeof(fname),0,(SA*)&amp;amp;cliaddr,&amp;amp;clilen);&lt;br /&gt;&lt;br /&gt;    //open the file for reading &lt;br /&gt;    fp = fopen(fname,&quot;r&quot;); &lt;br /&gt;&lt;br /&gt;    while(1) {&lt;br /&gt;    ch = fgetc(fp);&lt;br /&gt;    if(ch!=EOF) {&lt;br /&gt;        content[n++]=ch;&lt;br /&gt;    }&lt;br /&gt;    else&lt;br /&gt;        break;&lt;br /&gt;    }&lt;br /&gt;    fputs(content,stdout);&lt;br /&gt;    //send the file content to client&lt;br /&gt;    sendto(sockfd,content,sizeof(content),0,(SA*)&amp;amp;cliaddr,sizeof(cliaddr));&lt;br /&gt;&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;b&gt;&lt;u&gt;client.c&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;pre class=&quot;brush:c&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#include &quot;string.h&quot;&lt;br /&gt;#define SA struct sockaddr&lt;br /&gt;&lt;br /&gt;int main(int argc,char** argv) {&lt;br /&gt;    int sockfd,len;&lt;br /&gt;    struct sockaddr_in servaddr;&lt;br /&gt;    char fname[20],content[2000];&lt;br /&gt;&lt;br /&gt;    if(argc!=3) {&lt;br /&gt;    printf(&quot;usage ./client PORT FILENAME\n&quot;);&lt;br /&gt;    return 0;&lt;br /&gt;    }&lt;br /&gt;    strcpy(fname,argv[2]);&lt;br /&gt;&lt;br /&gt;    //create socket&lt;br /&gt;    sockfd = socket(AF_INET,SOCK_DGRAM,0);&lt;br /&gt;&lt;br /&gt;    //fill structure&lt;br /&gt;    servaddr.sin_family = AF_INET;&lt;br /&gt;    servaddr.sin_port = htons(atoi(argv[1]));&lt;br /&gt;    servaddr.sin_addr.s_addr = inet_addr(&quot;127.0.0.1&quot;);&lt;br /&gt;&lt;br /&gt;    //send filename&lt;br /&gt;    sendto(sockfd,fname,sizeof(fname),0,(SA*)&amp;amp;servaddr,sizeof(servaddr));&lt;br /&gt;&lt;br /&gt;    //receive the file content from server&lt;br /&gt;    len=sizeof(servaddr);&lt;br /&gt;    bzero(content,sizeof(content));&lt;br /&gt;    recvfrom(sockfd,content,sizeof(content),0,NULL,NULL);&lt;br /&gt;&lt;br /&gt;    //print the file contents&lt;br /&gt;    printf(&quot;contents of the %s:\n\n&quot;,fname);&lt;br /&gt;    fputs(content,stdout);&lt;br /&gt;&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/2195555138163281225/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/03/ftp-simulation-to-read-file-contents.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/2195555138163281225'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/2195555138163281225'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/03/ftp-simulation-to-read-file-contents.html' title='FTP simulation to read the file contents'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-3794684580862788940</id><published>2014-03-11T09:56:00.000-07:00</published><updated>2014-03-11T09:56:59.091-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><category scheme="http://www.blogger.com/atom/ns#" term="unix"/><category scheme="http://www.blogger.com/atom/ns#" term="unix networking"/><title type='text'>UDP echo server, client</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;udpserver.c&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre class:brush=&quot;c&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#include &quot;string.h&quot;&lt;br /&gt;#define SA struct sockaddr&lt;br /&gt;#define MAX 1024&lt;br /&gt;&lt;br /&gt;int main(int argc,char** argv) {&lt;br /&gt;    int sockfd,n;&lt;br /&gt;    socklen_t len;&lt;br /&gt;    struct sockaddr_in servaddr,cliaddr;&lt;br /&gt;    char buff[MAX],tmp[MAX];&lt;br /&gt;&lt;br /&gt;    //create socket&lt;br /&gt;    sockfd = socket(AF_INET,SOCK_DGRAM,0);&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;    //fill socket&lt;br /&gt;    servaddr.sin_family = AF_INET;&lt;br /&gt;    servaddr.sin_port = htons(atoi(argv[1]));&lt;br /&gt;    servaddr.sin_addr.s_addr = htonl(INADDR_ANY);&lt;br /&gt;&lt;br /&gt;    //bind&lt;br /&gt;    bind(sockfd,(SA*)&amp;amp;servaddr,sizeof(servaddr));&lt;br /&gt;&lt;br /&gt;    for(;;) {&lt;br /&gt;    bzero(buff,sizeof(buff));&lt;br /&gt;    len = sizeof(cliaddr);&lt;br /&gt;    n=recvfrom(sockfd,buff,MAX,0,(SA*)&amp;amp;cliaddr,&amp;amp;len);&lt;br /&gt;    strcpy(tmp,buff);&lt;br /&gt;    printf(&quot;received : %s&quot;,tmp);&lt;br /&gt;    if(n &amp;lt; 6) &lt;br /&gt;    {&lt;br /&gt;        perror(&quot;send message&quot;);&lt;br /&gt;        exit(0);&lt;br /&gt;    }&lt;br /&gt;    sendto(sockfd,tmp,MAX,0,(SA*)&amp;amp;cliaddr,len);&lt;br /&gt;    bzero(buff,sizeof(buff));&lt;br /&gt;           }&lt;br /&gt;    close(sockfd);&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;br /&gt;    &lt;br /&gt;&lt;/pre&gt;&lt;b&gt;udpclient.c&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre class:brush=&quot;c&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#include &quot;string.h&quot;&lt;br /&gt;#define SA struct sockaddr&lt;br /&gt;#define MAX 1024&lt;br /&gt;&lt;br /&gt;int main(int argc,char** argv) {&lt;br /&gt;    int sockfd,n;&lt;br /&gt;    socklen_t len;&lt;br /&gt;    struct sockaddr_in servaddr;&lt;br /&gt;    char buff[MAX];&lt;br /&gt;&lt;br /&gt;    //create socket&lt;br /&gt;    sockfd = socket(AF_INET,SOCK_DGRAM,0);&lt;br /&gt;&lt;br /&gt;    //fill struct &lt;br /&gt;    servaddr.sin_family = AF_INET;&lt;br /&gt;    servaddr.sin_port = htons(atoi(argv[1]));&lt;br /&gt;    servaddr.sin_addr.s_addr = inet_addr(&quot;127.0.0.1&quot;);&lt;br /&gt;&lt;br /&gt;    //send to server&lt;br /&gt;    printf(&quot;enter message\n&quot;);&lt;br /&gt;    for(;;) {&lt;br /&gt;    bzero(buff,sizeof(buff));&lt;br /&gt;    fgets(buff,MAX,stdin);&lt;br /&gt;    len=sizeof(servaddr);&lt;br /&gt;    sendto(sockfd,buff,MAX,0,(SA*)&amp;amp;servaddr,len);&lt;br /&gt;    bzero(buff,sizeof(buff));&lt;br /&gt;    recvfrom(sockfd,buff,MAX,0,(SA*)&amp;amp;servaddr,&amp;amp;len);&lt;br /&gt;    printf(&quot;%s&quot;,buff);&lt;br /&gt;    }&lt;br /&gt;    close(sockfd);&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/3794684580862788940/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/03/udp-echo-server-client.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/3794684580862788940'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/3794684580862788940'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/03/udp-echo-server-client.html' title='UDP echo server, client'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-5893860511872548824</id><published>2014-03-08T10:47:00.000-08:00</published><updated>2014-03-08T10:54:40.777-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tricks"/><title type='text'>This Week&#39;s Experiments</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;Experimenting LEOXSYS-nano wifi adapter:&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Recently bought this tiny wifi adapter from flipkart.&lt;br /&gt;Making this wifi-adapter able to work is wont be problem under windows. But in LINUX it need some&lt;br /&gt;patience. Linux Kernel doesn&#39;t have the supportive drivers to make it workable on linux. Thank god they gave one small disc which contains the drivers for this wifi-adapter.&lt;br /&gt;Inside the disk there are various folders and finally found one Linux folder in it. Make sure you&lt;br /&gt;copy that into your home directory not to any others. (We are going to make it and install it. It needs a folder permission to execute some utility programs) then make it and install it, and it works&lt;br /&gt;just fine in my LinuxMint 14. Soon to register for a wifi connection in my campus :-)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Making Balance enquiry of the usb modem from Terminal&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;This one is my favourite trick to know the balance amount of my 3g dongle.&lt;br /&gt;All you need is one tiny little program called gammu.&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;Launch your terminal and pass&lt;br /&gt;&lt;br /&gt;$ &lt;i&gt;sudo apt-get install gammu&lt;/i&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;to install gammu. Then we have to configure the gammu by&lt;br /&gt;&lt;br /&gt;$ &lt;i&gt;sudo gammu-config&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;after the successful configuration of gammu we have to pass the ussd code by sending&lt;br /&gt;&lt;br /&gt;$ &lt;i&gt;gammu getussd *123*11#&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;here *123*11# is the ussd code to check the 3g balance of airtel network.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Very simple way to create a bootable usb disk&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;This one is a pretty awesome trick. We don&#39;t need to search for the unetbootin, startupdisk creator and&lt;br /&gt;other utilities.&lt;br /&gt;&lt;br /&gt;There is a built in utility called &#39;dd&#39; is here to the rescue.&lt;br /&gt;&lt;br /&gt;make sure you unmount your usb drive by&lt;br /&gt;&lt;br /&gt;$&lt;i&gt; sudo umount /dev/sdb1&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;after that we are going to write the iso file to the usb device&lt;br /&gt;&lt;br /&gt;&lt;i&gt;$ sudo dd if=/home/mani/Downloads/ubuntu-13.10-desktop-i386.iso of=/dev/sdb&lt;/i&gt;&lt;br /&gt;1832960+0 records in&lt;br /&gt;1832960+0 records out&lt;br /&gt;&lt;br /&gt;938475520 bytes (938 MB) copied, 338.764 s, 2.8 MB/s&lt;br /&gt;&lt;br /&gt;note: in dd command if=*location of the iso file* of=*location of the usb device*&lt;br /&gt;&lt;br /&gt;that&#39;s it your live usb drive is hot to be served.&lt;br /&gt;&lt;br /&gt;for more info about dd in tamil :&amp;nbsp;&lt;a href=&quot;http://gnutamil.blogspot.in/2014/03/dd-startup-disk-creator-tool.html&quot;&gt;http://gnutamil.blogspot.in/2014/03/dd-startup-disk-creator-tool.html&lt;/a&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/5893860511872548824/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/03/this-weeks-experiments.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/5893860511872548824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/5893860511872548824'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/03/this-weeks-experiments.html' title='This Week&#39;s Experiments'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6440608664759456338</id><published>2014-02-27T08:14:00.002-08:00</published><updated>2014-02-27T08:14:48.211-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><title type='text'>Simulation of ARP/RARP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here is the core simulation of the ARP(Address Resolution Protocol) and RARP(Reverse Address&lt;br /&gt;Resolution Protocol) ARP used to map the ip address with the corresponding MAC address and&lt;br /&gt;RARP do that in reverse. it maps the MAC with the ip.&lt;br /&gt;&lt;br /&gt; &lt;pre&gt;&lt;br /&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;string.h&quot;&lt;br /&gt;int main() {&lt;br /&gt;    char table[3][2][40];&lt;br /&gt;    char ipin[10],macin[30];&lt;br /&gt;    int i,j,found;&lt;br /&gt;    strcpy(table[0][0],&quot;127.0.0.1&quot;);&lt;br /&gt;    strcpy(table[0][1],&quot;44:dd:22:11:33&quot;);&lt;br /&gt;    strcpy(table[1][0],&quot;10.1.1.8&quot;);&lt;br /&gt;    strcpy(table[1][1],&quot;33:aa:fe:4e:2d&quot;);&lt;br /&gt;    strcpy(table[2][0],&quot;10.1.8.5&quot;);&lt;br /&gt;    strcpy(table[2][1],&quot;23:a3:5d:33:9d&quot;);&lt;br /&gt;    &lt;br /&gt;    printf(&quot;IP address\t MAC address\n&quot;);&lt;br /&gt;    for(i=0;i&lt;3;i++) {&lt;br /&gt;    printf(&quot;%s\t %s\n&quot;,table[i][0],table[i][1]);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    printf(&quot;simulating ARP\n\n&quot;);&lt;br /&gt;    printf(&quot;enter the IP address\n&quot;);&lt;br /&gt;    scanf(&quot;%s&quot;,&amp;ipin);&lt;br /&gt;    for(i=0;i&lt;3;i++) {&lt;br /&gt;    if(strcmp(ipin,table[i][0])==0) {&lt;br /&gt;        printf(&quot;%s mac id is %s\n\n&quot;,ipin,table[i][1]);&lt;br /&gt;        found=1;&lt;br /&gt;    }&lt;br /&gt;    }&lt;br /&gt;    if(found!=1) {&lt;br /&gt;    printf(&quot;mac not found\n\n&quot;);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    printf(&quot;simulating RARP\n\n&quot;); &lt;br /&gt;    printf(&quot;enter the MAC address\n&quot;);&lt;br /&gt;    scanf(&quot;%s&quot;,&amp;macin);&lt;br /&gt;    for(i=0;i&lt;3;i++) {&lt;br /&gt;    if(strcmp(macin,table[i][1])==0) {&lt;br /&gt;        printf(&quot;%s ip is %s\n&quot;,macin,table[i][0]);&lt;br /&gt;        found=1;&lt;br /&gt;    }&lt;br /&gt;    }&lt;br /&gt;    if(found!=1) {&lt;br /&gt;    printf(&quot;ip not found\n&quot;);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6440608664759456338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/02/simulation-of-arprarp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6440608664759456338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6440608664759456338'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/02/simulation-of-arprarp.html' title='Simulation of ARP/RARP'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6089882962132097090</id><published>2014-02-21T09:01:00.001-08:00</published><updated>2014-02-21T09:01:34.392-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="hack"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="shell"/><title type='text'>Workshop on IBM BIGDATA</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here is my shell script which i wrote to make the process of installing the IBM biginsight (hadoop) on the lab. My team installed the hadoop using this script for around 70 systems, it saved lots of time for us, and we successfully conducted the workshop on it today.&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;#generating keygen for the root user with no password&lt;br /&gt;ssh-keygen -f $HOME/.ssh/id_rsa -t rsa -N &#39;&#39;&lt;br /&gt;echo &quot;key generated in $HOME&quot;&lt;br /&gt;&lt;br /&gt;#append it to the authorized_keys&lt;br /&gt;cat $HOME/.ssh/id_rsa.pub &amp;gt;&amp;gt; $HOME/.ssh/authorized_keys&lt;br /&gt;echo &quot;appended to authorized_keys&quot;&lt;br /&gt;&lt;br /&gt;#create a usergroup&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;groupadd -g 168 biadmin&lt;br /&gt;echo &quot;group created&quot;&lt;br /&gt;&lt;br /&gt;#add a biadmin to the group&lt;br /&gt;useradd -g biadmin -u 168 biadmin&lt;br /&gt;echo &quot;biadmin added to group&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#giving permission for the biadmin to run ssh and scp&lt;br /&gt;chmod o+rx /usr/bin/ssh&lt;br /&gt;chmod g+rx /usr/bin/ssh&lt;br /&gt;chmod u+rx /usr/bin/scp&lt;br /&gt;chmod o+rx /usr/bin/scp&lt;br /&gt;echo &quot;persmissions given&quot;&lt;br /&gt;&lt;br /&gt;#to edit the /etc/sudoers file&lt;br /&gt;sed -e &#39;s/# %wheel/%biadmin/g&#39; -e &#39;s/Defaults requiretty/#Defaults requiretty/g&#39; /etc/sudoers &amp;gt;&amp;gt; /etc/sudoers&lt;br /&gt;echo &quot;changed to /etc/sudoers&quot;&lt;br /&gt;&lt;br /&gt;#add repo&lt;br /&gt;rm -f /etc/yum.repos.d/*.repo&lt;br /&gt;cp /root/Desktop/hadoop/new.repo /etc/yum.repos.d/&lt;br /&gt;echo &quot;added new.repo&quot;&lt;br /&gt;&lt;br /&gt;#preparing to install dependencies&lt;br /&gt;yum clean all&lt;br /&gt;&lt;br /&gt;#installing dependencies with(yes to all)&lt;br /&gt;yum -y install tcl expect&lt;br /&gt;&lt;br /&gt;#to disable selinux&lt;br /&gt;sed -e &#39;s/selinux=enabled/selinux=disabled/g&#39; /etc/selinux/config &amp;gt;&amp;gt; /etc/selinux/config&lt;br /&gt;&lt;br /&gt;#goto the bigdata directory&lt;br /&gt;tar xzvf *.tar.gz&lt;br /&gt;cd /root/Desktop/hadoop/biginsights-quickstart-linux64_b20130821_1818/&lt;br /&gt;bash start.sh&lt;br /&gt;&lt;br /&gt;#open firefox with the hyperlink&lt;br /&gt;firefox &quot;http://127.0.0.1:8300/Install/&quot;&lt;br /&gt;&lt;br /&gt;#finally append .bashrc file in biadmin&lt;br /&gt;echo export PATH=$PATH:${PIG_HOME}/bin:${FLUME_HOME}/bin:${JAQL_HOME}/bin:${HIVE_HOME}/bin &amp;gt;&amp;gt; .bashrc&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6089882962132097090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/02/workshop-on-ibm-bigdata.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6089882962132097090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6089882962132097090'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/02/workshop-on-ibm-bigdata.html' title='Workshop on IBM BIGDATA'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-8844875281181230133</id><published>2014-02-14T09:59:00.001-08:00</published><updated>2014-02-14T10:01:22.849-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="cipher"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><category scheme="http://www.blogger.com/atom/ns#" term="ruby"/><title type='text'>Cipher engine in ruby</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Recently i have started to learn ruby because it&#39;s the core language for the rails framework.&lt;br /&gt;Here the cipher engine which uses the old caesar cipher algorithm,&lt;br /&gt;i have used file concepts to read and write the both&lt;br /&gt;encrypted and decrypted outputs to files.&lt;br /&gt;We can also use other methods separately,&lt;br /&gt;&lt;br /&gt;launch your irb then&lt;br /&gt;&lt;br /&gt;&lt;i&gt;load &#39;encryptor.rb&#39;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;make an instance of the Encryptor class by&lt;br /&gt;&lt;br /&gt;&lt;i&gt;e = Encryptor.new&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;to check all the available methods&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i&gt;e.methods&lt;/i&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;Here is the source&lt;br /&gt;&lt;br /&gt;&lt;pre class:brush=&quot;rb&quot;&gt;class Encryptor&lt;br /&gt;&lt;br /&gt;    def cipher(rotation)&lt;br /&gt;   chars = (&#39; &#39;..&#39;z&#39;).to_a &lt;br /&gt;   rotated_chars = chars.rotate(rotation)&lt;br /&gt;   Hash[chars.zip(rotated_chars)]&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    def encrypt_letter(char,rotation)&lt;br /&gt;    cipher_for_rotate = cipher(rotation)&lt;br /&gt;    cipher_for_rotate[char]&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    def decrypt_letter(char,rotation)&lt;br /&gt;    decypher_rotate = cipher(-rotation)&lt;br /&gt;    decypher_rotate[char]&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    #encryption method&lt;br /&gt;&lt;br /&gt;    def encrypt(string,rotation)&lt;br /&gt;&lt;br /&gt;    #split the string to letters&lt;br /&gt;    letters = string.split(&quot;&quot;)&lt;br /&gt;&lt;br /&gt;    #encrypt each letters and store it in array&lt;br /&gt;    result = letters.collect do |letter|&lt;br /&gt;        enc_char = encrypt_letter(letter,rotation)&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    #join the characters &lt;br /&gt;    result.join&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    #encrypt a file&lt;br /&gt;&lt;br /&gt;    def encrypt_file(filename,rotation)&lt;br /&gt;    #1. create the file handle to the input file&lt;br /&gt;    f = File.open(filename, &quot;r&quot;)&lt;br /&gt;&lt;br /&gt;    #2. read the text of the input file&lt;br /&gt;    text = f.read&lt;br /&gt;&lt;br /&gt;    #3 encrypt the text&lt;br /&gt;    encrypted = encrypt(text,rotation)&lt;br /&gt;&lt;br /&gt;    #4 create a name for output file&lt;br /&gt;    output = &quot;#{filename}.encrypted&quot;&lt;br /&gt;&lt;br /&gt;    #5. create an output file handle&lt;br /&gt;    out = File.open(output,&quot;w&quot;)&lt;br /&gt;    &lt;br /&gt;    #6. write out the text&lt;br /&gt;    out.write(encrypted)&lt;br /&gt;    #7. close the file&lt;br /&gt;    f.close&lt;br /&gt;    out.close&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    def decrypt(string,rotation)&lt;br /&gt;&lt;br /&gt;    #split the string to letters&lt;br /&gt;    letters = string.split(&quot;&quot;)&lt;br /&gt;&lt;br /&gt;    #decrypt each letters&lt;br /&gt;    result = letters.collect do |letter|&lt;br /&gt;        dec_char = decrypt_letter(letter,rotation)&lt;br /&gt;    end&lt;br /&gt;    #join&lt;br /&gt;    result.join&lt;br /&gt;    end&lt;br /&gt;&lt;br /&gt;    def decrypt_file(filename,rotation)&lt;br /&gt;&lt;br /&gt;    #create filehandler to read&lt;br /&gt;    f = File.open(filename,&quot;r&quot;)&lt;br /&gt;&lt;br /&gt;    #read the cipher&lt;br /&gt;    cipher = f.read&lt;br /&gt;&lt;br /&gt;    #decrypt the cipher&lt;br /&gt;    decrypted_msg = decrypt(cipher,rotation)&lt;br /&gt;&lt;br /&gt;    #output filename&lt;br /&gt;    output_filename = filename.gsub(&quot;encrypted&quot;,&quot;decrypted&quot;)&lt;br /&gt;&lt;br /&gt;    #file handler to write&lt;br /&gt;    out = File.open(output_filename,&quot;w&quot;)&lt;br /&gt;&lt;br /&gt;    #write contents&lt;br /&gt;    out.write(decrypted_msg)&lt;br /&gt;&lt;br /&gt;    #close&lt;br /&gt;    out.close&lt;br /&gt;    end&lt;br /&gt;end&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/8844875281181230133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/02/cipher-engine-in-ruby.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/8844875281181230133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/8844875281181230133'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/02/cipher-engine-in-ruby.html' title='Cipher engine in ruby'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6318998410542896531</id><published>2014-01-16T08:34:00.000-08:00</published><updated>2014-01-16T08:34:15.385-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="networking"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><title type='text'>tcp client, server chat simplified</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Here is my simplified version of the tcp client, server chat application&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;client.c&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;pre class=&quot;brush:c&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;&lt;br /&gt;int main() {&lt;br /&gt;    int sockfd,n;&lt;br /&gt;    char buff[256];&lt;br /&gt;    struct sockaddr_in servaddr;&lt;br /&gt;&lt;br /&gt;    //create socket&lt;br /&gt;    sockfd = socket(AF_INET,SOCK_STREAM,0);&lt;br /&gt;&lt;br /&gt;    //fill serv struct&lt;br /&gt;    servaddr.sin_family = AF_INET;&lt;br /&gt;    servaddr.sin_port = htons(40402);&lt;br /&gt;    servaddr.sin_addr.s_addr = inet_addr(&quot;127.0.0.1&quot;);&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;    //connect with server&lt;br /&gt;    connect(sockfd,(struct sockaddr*)&amp;amp;servaddr,sizeof(servaddr));&lt;br /&gt;&lt;br /&gt;    //read and write with the server&lt;br /&gt;    for(;;) {&lt;br /&gt;    printf(&quot;client : &quot;);&lt;br /&gt;    n=0;&lt;br /&gt;    while((buff[n++]=getchar())!=&#39;\n&#39;);&lt;br /&gt;    write(sockfd,buff,sizeof(buff));&lt;br /&gt;    bzero(buff,sizeof(buff)); //clearing the buffer&lt;br /&gt;    read(sockfd,buff,sizeof(buff));&lt;br /&gt;    printf(&quot;server : %s&quot;,buff);&lt;br /&gt;    bzero(buff,sizeof(buff));&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    //close&lt;br /&gt;    close(sockfd);&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;b&gt;&lt;u&gt;server.c&lt;/u&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;&lt;br /&gt;int main() {&lt;br /&gt;    int sockfd,connfd,n;&lt;br /&gt;    char buff[256];&lt;br /&gt;    struct sockaddr_in servaddr;&lt;br /&gt;&lt;br /&gt;    //create socket&lt;br /&gt;    sockfd = socket(AF_INET,SOCK_STREAM,0);&lt;br /&gt;&lt;br /&gt;    //fill server struct&lt;br /&gt;    servaddr.sin_family = AF_INET;&lt;br /&gt;    servaddr.sin_port = htons(40402);&lt;br /&gt;    servaddr.sin_addr.s_addr = inet_addr(&quot;127.0.0.1&quot;);&lt;br /&gt;&lt;br /&gt;    //bind&lt;br /&gt;    bind(sockfd,(struct sockaddr*)&amp;amp;servaddr,sizeof(servaddr));&lt;br /&gt;&lt;br /&gt;    //listen for 1 connection&lt;br /&gt;    listen(sockfd,1);&lt;br /&gt;    &lt;br /&gt;    //accept a client&lt;br /&gt;    connfd = accept(sockfd,NULL,NULL);&lt;br /&gt;&lt;br /&gt;    //read and write to client&lt;br /&gt;    for(;;)  {&lt;br /&gt;   read(connfd,buff,sizeof(buff));&lt;br /&gt;   printf(&quot;client : %s&quot;,buff);&lt;br /&gt;   bzero(buff,sizeof(buff));&lt;br /&gt;   printf(&quot;server : &quot;);&lt;br /&gt;   n=0;&lt;br /&gt;   while((buff[n++]=getchar())!=&#39;\n&#39;);&lt;br /&gt;   write(connfd,buff,sizeof(buff));&lt;br /&gt;   bzero(buff,sizeof(buff));&lt;br /&gt;  }&lt;br /&gt;&lt;br /&gt;    //close the sockets&lt;br /&gt;    close(connfd);&lt;br /&gt;    close(sockfd);&lt;/pre&gt;&lt;pre class=&quot;brush:c&quot;&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6318998410542896531/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/01/tcp-client-server-chat-simplified.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6318998410542896531'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6318998410542896531'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/01/tcp-client-server-chat-simplified.html' title='tcp client, server chat simplified'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-2890354251109370778</id><published>2014-01-08T07:04:00.001-08:00</published><updated>2014-01-12T09:59:19.678-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="c"/><category scheme="http://www.blogger.com/atom/ns#" term="cheat"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><title type='text'>Executing external programs via c</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;import time&lt;br /&gt;print time.ctime()&lt;br /&gt;&lt;br /&gt;this snippet will print the system time.&lt;br /&gt;in my networking lab, i used this python snippet to print the system time.&lt;br /&gt;actually i have to write a client, server program in c to achieve this. but i &lt;br /&gt;have found a lazy way.&lt;br /&gt;&lt;br /&gt;when mam ask us to show the output i planned to run this python snippet :) (don&#39;t tell her);&lt;br /&gt;&lt;br /&gt;only problem is i cannot make it as an executable code.&lt;br /&gt;&lt;br /&gt;&lt;i&gt;./timecli&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;this wont work. because only sudoers can use the &lt;i&gt;chmod&lt;/i&gt; command to make it executable.&lt;br /&gt;&lt;br /&gt;but gcc can make an executables.&lt;br /&gt;&lt;br /&gt;so i planned to write a c program to run the python snippet.&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;br /&gt;#include &quot;stdio.h&quot;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;  char cmd[20];&lt;br /&gt;  sprintf(cmd, &quot;python time.py&quot;);&lt;br /&gt;  system(cmd);&lt;br /&gt;  return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;after the compilation using gcc i got a executable to my python snippet.&lt;br /&gt;&lt;br /&gt;happy cheating :)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/2890354251109370778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/01/executing-external-programs-via-c.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/2890354251109370778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/2890354251109370778'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/01/executing-external-programs-via-c.html' title='Executing external programs via c'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-4757246137693967406</id><published>2014-01-06T07:54:00.002-08:00</published><updated>2014-01-12T10:06:04.117-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="program"/><title type='text'>simple tcp echo server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;b&gt;&lt;u&gt;echoserver.c&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre class=&quot;brush:c&quot;&gt;&lt;br /&gt;//coded by m4n1G&lt;br /&gt;//6-1-2014&lt;br /&gt;//tcp echo server in unix env&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;&lt;br /&gt;int main(int argc, char** argv) {&lt;br /&gt;    int server_fd, client_fd;&lt;br /&gt;    char c;&lt;br /&gt;    struct sockaddr_in serv_addr;&lt;br /&gt;&lt;br /&gt;    //create a socket&lt;br /&gt;    server_fd = socket(AF_INET,SOCK_STREAM,0);&lt;br /&gt;&lt;br /&gt;    //getting ready to bind&lt;br /&gt;    serv_addr.sin_family = AF_INET;&lt;br /&gt;    serv_addr.sin_port = htons(atoi(argv[1]));&lt;br /&gt;    serv_addr.sin_addr.s_addr = INADDR_ANY;&lt;br /&gt;    //bind&lt;br /&gt;    bind(server_fd, (struct sockaddr*) &amp;amp;serv_addr, sizeof(serv_addr));&lt;br /&gt;&lt;br /&gt;    //listen to one queue&lt;br /&gt;    listen(server_fd,1);&lt;br /&gt;    &lt;br /&gt;    //accept one client&lt;br /&gt;    client_fd = accept(server_fd, NULL, NULL);&lt;br /&gt;&lt;br /&gt;    //read and write until ^D from client&lt;br /&gt;    while(read(client_fd, &amp;amp;c, 1)) { //read from client&lt;br /&gt;    putchar((int)c);&lt;br /&gt;    write(client_fd, &amp;amp;c, 1); // write to client&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    //close the connection&lt;br /&gt;    close(client_fd);&lt;br /&gt;    close(server_fd);&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;b&gt;&lt;u&gt;echoclient.c&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre class=&quot;brush:c&quot;&gt;//coded my m4n1g&lt;br /&gt;//on 6-1-2014&lt;br /&gt;//tcp echo client&lt;br /&gt;&lt;br /&gt;#include &quot;stdio.h&quot;&lt;br /&gt;#include &quot;stdlib.h&quot;&lt;br /&gt;#include &quot;sys/types.h&quot;&lt;br /&gt;#include &quot;sys/socket.h&quot;&lt;br /&gt;#include &quot;netinet/in.h&quot;&lt;br /&gt;#include &quot;arpa/inet.h&quot;&lt;br /&gt;&lt;br /&gt;int main(int argc, char** argv) {&lt;br /&gt;    int client_fd;&lt;br /&gt;    struct sockaddr_in serv_addr;&lt;br /&gt;    char c;&lt;br /&gt;    &lt;br /&gt;    //create socket&lt;br /&gt;    client_fd = socket(AF_INET,SOCK_STREAM,0);&lt;br /&gt;&lt;br /&gt;    //ready to bind&lt;br /&gt;    serv_addr.sin_family = AF_INET;&lt;br /&gt;    serv_addr.sin_port = htons(atoi(argv[2]));&lt;br /&gt;    serv_addr.sin_addr.s_addr = inet_addr(argv[1]);&lt;br /&gt;&lt;br /&gt;    //connect to server&lt;br /&gt;    connect(client_fd, (struct sockaddr*) &amp;amp;serv_addr, sizeof(serv_addr));&lt;br /&gt;&lt;br /&gt;    //write to echo server&lt;br /&gt;    while((c=(char) getchar())!=EOF) {&lt;br /&gt;    write(client_fd,&amp;amp;c,1);&lt;br /&gt;    read(client_fd,&amp;amp;c,1);&lt;br /&gt;    putchar((int)c);&lt;br /&gt;    }&lt;br /&gt;&lt;br /&gt;    close(client_fd);&lt;br /&gt;    return 0;&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/4757246137693967406/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2014/01/simple-tcp-echo-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4757246137693967406'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4757246137693967406'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2014/01/simple-tcp-echo-server.html' title='simple tcp echo server'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6798418495398940589</id><published>2013-12-26T23:59:00.002-08:00</published><updated>2013-12-27T00:03:00.622-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnu/linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><title type='text'>converting chm to pdf in linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;There are some paid apps that convert your chm file to pdf in windows.&lt;br /&gt;but in gnu/linux there is an handy tiny little tool called chm2pdf is here to rescue.&lt;br /&gt;&lt;br /&gt;installed chm2pdf by&lt;br /&gt;&lt;br /&gt;$&lt;i&gt; sudo apt-get install chm2pdf&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;after installing it to your box&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;$&lt;span style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 12px; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&amp;nbsp;&lt;i&gt;chm2pdf&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;i&gt;&lt;code style=&quot;background-color: whitesmoke; border: 1px dashed rgb(238, 238, 238); font-family: &#39;Courier New&#39;; font-size: 11px; line-height: 20px; margin: 0px; max-width: 90%; outline: 0px; padding: 5px; text-align: justify; text-indent: 20px; vertical-align: baseline;&quot;&gt;--book&lt;/code&gt;&lt;span style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 12px; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&amp;nbsp;my-file.chm [output.pdf]&lt;/span&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;span style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 12px; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/i&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;i&gt;&amp;nbsp;output.pdf&lt;/i&gt;&amp;nbsp;is optional. it will save your pdf document as same as your chm file if you don&#39;t give the output name.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;it will convert your chm file to structured pdf book.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;it may seems simple.. but it saved me from frustration of converting an important document.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;long live linux.. :)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; line-height: 20px; text-align: justify; text-indent: 20px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6798418495398940589/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/12/converting-chm-to-pdf-in-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6798418495398940589'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6798418495398940589'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/12/converting-chm-to-pdf-in-linux.html' title='converting chm to pdf in linux'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-4517849560108104673</id><published>2013-09-13T05:11:00.001-07:00</published><updated>2013-09-13T05:37:14.690-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>JDBC and MySQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;Here is a quick reference to connect mysql database with java&lt;br /&gt;in linux environment.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;INSTALLATION:&lt;/u&gt;&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;Hope jdk, mysql server and client are already installed on your box. &lt;br /&gt;then install the libmysql-java&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;sudo apt-get install libmysql-java&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;it will install the connector in your box or download the jar file manually from&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://dev.mysql.com/downloads/connector/j/&quot;&gt;http://dev.mysql.com/downloads/connector/j/&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;if&lt;b&gt; mysql-connector-java.jar&lt;/b&gt; is located in the &lt;b&gt;/usr/share/java &lt;/b&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;then set the classpath&lt;br /&gt;&lt;br /&gt;&lt;b&gt;CLASSPATH=$CLASSPATH:/usr/share/java/mysql-connector-java.jar&lt;br /&gt;export CLASSPATH&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;to make this CLASSPATH persistent add them to .bashrc file&lt;br /&gt;&lt;br /&gt;now check with&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;echo $CLASSPATH&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;it will show similar to this &lt;b&gt;:/usr/share/java/mysql-connector-java.jar&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;b&gt;MYSQL PART&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;Create a user with all privileges by doing these things&lt;br /&gt;&lt;br /&gt;at the mysql&amp;gt; prompt&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;USE mysql;&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;create a user &lt;b&gt;mani&lt;/b&gt; with all privileges by&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;create user &#39;mani&#39;@&#39;localhost&#39; identified by &#39;mani&#39;;&lt;br /&gt;grant select, insert, update, delete, create, drop, references,&lt;br /&gt;execute on *.* to &#39;mani&#39;@&#39;mani&#39;;&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;then quit the mysql by&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;exit;&lt;/b&gt;&lt;/i&gt; &lt;br /&gt;&lt;br /&gt;now login with&lt;br /&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;mysql -h 127.0.0.1 -u mani -p&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;it will prompt for the password and enter the&lt;i&gt;&lt;b&gt; &lt;/b&gt;password we created. that is same as user&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/i&gt;now start to create a table with all the things you needed.&lt;i&gt;&lt;/i&gt;&lt;br /&gt;&lt;i&gt;&lt;br /&gt;&lt;/i&gt;&lt;u&gt;&lt;b&gt;JAVA PART:&lt;/b&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;database url is &lt;b&gt;jdbc:mysql://localhost/&lt;i&gt;dbname&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;i&gt;dbname &lt;/i&gt;&lt;/b&gt;is the database name we want to connect&lt;b&gt;&lt;i&gt;.&lt;/i&gt;&lt;/b&gt;&lt;br /&gt;&lt;pre class=&#39;brush:java&#39;&gt;//java program to connect mysql and query the student table&lt;br /&gt;import java.sql.Connection;&lt;br /&gt;import java.sql.Statement;&lt;br /&gt;import java.sql.DriverManager;&lt;br /&gt;import java.sql.ResultSet;&lt;br /&gt;import java.sql.ResultSetMetaData;&lt;br /&gt;import java.sql.SQLException;&lt;br /&gt;&lt;br /&gt;public class Student {&lt;br /&gt; //database url&lt;br /&gt; static final String DB_URL=&quot;jdbc:mysql://localhost/test&quot;;&lt;br /&gt; &lt;br /&gt; //main method&lt;br /&gt; public static void main(String[] args) {&lt;br /&gt;  Connection connection = null; //connection manage&lt;br /&gt;  Statement statement = null;&lt;br /&gt;  ResultSet resultSet = null;&lt;br /&gt;  &lt;br /&gt;  try {&lt;br /&gt;  //connecting with db&lt;br /&gt;  connection = DriverManager.getConnection(DB_URL,&quot;mani&quot;,&quot;mani&quot;);&lt;br /&gt;  &lt;br /&gt;  //statement &lt;br /&gt;  statement = connection.createStatement();&lt;br /&gt;  //execute statement&lt;br /&gt;  resultSet = statement.executeQuery(&lt;br /&gt;   &quot;SELECT name,age,grade FROM student&quot;);&lt;br /&gt; &lt;br /&gt;  //process query results&lt;br /&gt;  ResultSetMetaData metaData = resultSet.getMetaData();&lt;br /&gt;  int numColumns = metaData.getColumnCount();&lt;br /&gt;  System.out.println(&quot;Student information table: &quot;);&lt;br /&gt;  &lt;br /&gt;  for(int i=1;i&amp;lt;=numColumns;i++) &lt;br /&gt;   System.out.printf(&quot;%-8s\t&quot;,metaData.getColumnName(i));&lt;br /&gt;  System.out.println();&lt;br /&gt;  System.out.println();&lt;br /&gt;  while(resultSet.next())&lt;br /&gt;  {&lt;br /&gt;   for(int i=1;i&amp;lt;=numColumns;i++)&lt;br /&gt;    System.out.printf(&quot;%-8s\t&quot;,resultSet.getObject(i));&lt;br /&gt;   System.out.println();&lt;br /&gt;  } //end while&lt;br /&gt;  } //end try&lt;br /&gt;  catch(SQLException sqlexception) {&lt;br /&gt;   sqlexception.printStackTrace();&lt;br /&gt;  } //end catch&lt;br /&gt;  &lt;br /&gt;  finally&lt;br /&gt;  {&lt;br /&gt;   try&lt;br /&gt;   {&lt;br /&gt;    resultSet.close();&lt;br /&gt;    statement.close();&lt;br /&gt;    connection.close();&lt;br /&gt;   } catch(Exception exception) {&lt;br /&gt;    exception.printStackTrace();&lt;br /&gt;   } //end catch&lt;br /&gt;  } //end finally&lt;br /&gt; } //end main&lt;br /&gt;} //end class&lt;br /&gt;&lt;/pre&gt;that&#39;s it&lt;br\&gt;  happy hacking..&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/4517849560108104673/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/09/jdbc-and-mysql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4517849560108104673'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4517849560108104673'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/09/jdbc-and-mysql.html' title='JDBC and MySQL'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-2507083435019651366</id><published>2013-09-13T04:37:00.001-07:00</published><updated>2013-09-13T04:37:12.216-07:00</updated><title type='text'>Bulk rename in bash</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;here i found a very simple command flow to rename&lt;br /&gt;the files in a folder by sequence order&lt;br /&gt;&lt;br /&gt;i have list of *.png file with different names for example&lt;br /&gt;&lt;br /&gt;Monsters-University-Icon-5.png&lt;br /&gt;Monsters-University-James-P-Sullivan-Icon-2.png&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;i need to rename in to&lt;br /&gt;&lt;br /&gt;Mon01.png&lt;br /&gt;Mon02.png&lt;br /&gt;.&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;here is a solutions&lt;br /&gt;&lt;br /&gt;#!/bin/bash&lt;br /&gt;a=1&lt;br /&gt;for&amp;nbsp; i in *.png; do&lt;br /&gt;new=$(printf &quot;Mon%02d&quot; ${a}) &lt;br /&gt;mv ${i} ${new}&lt;br /&gt;let a=a+1&lt;br /&gt;done&lt;br /&gt;&lt;br /&gt;it will do the magic..&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/2507083435019651366/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/09/bulk-rename-in-bash.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/2507083435019651366'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/2507083435019651366'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/09/bulk-rename-in-bash.html' title='Bulk rename in bash'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-4248273763982260565</id><published>2013-08-25T09:58:00.000-07:00</published><updated>2013-08-25T09:58:20.679-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="java"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Sublime and java</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;SublimeText is an cross platform editor, written in python. it provides a lots of good stuffs. i never expect these much from this tiny editor.&lt;br /&gt;&lt;br /&gt;i have made some tweak to compile and run my java code inside the sublime editor.&lt;br /&gt;&lt;br /&gt;just goto Preferences -&amp;gt; Browse packages&lt;br /&gt;&lt;br /&gt;now you&#39;ll see a lots of folders. now goto java folder and&lt;br /&gt;select JavaC.sublime-build and open it.&lt;br /&gt;&lt;br /&gt;now replace the contents with the below script&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;cmd&quot;: [&quot;bash&quot;, &quot;-c&quot;, &quot;javac ${file} &amp;amp;&amp;amp; java ${file_base_name}&quot;],&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;file_regex&quot;: &quot;^(...*?):([0-9]*):?([0-9]*)&quot;,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &quot;selector&quot;: &quot;source.java&quot;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;now done.&lt;br /&gt;&lt;br /&gt;write your java code and ctrl+b to compile and run you code.&lt;br /&gt;&lt;br /&gt;happy coding :)&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/4248273763982260565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/08/sublime-and-java.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4248273763982260565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4248273763982260565'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/08/sublime-and-java.html' title='Sublime and java'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-3716041631361998465</id><published>2013-06-10T10:35:00.000-07:00</published><updated>2013-09-16T09:55:41.110-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="python"/><category scheme="http://www.blogger.com/atom/ns#" term="script"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>Free SMS from your terminal REBOOT</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;i have gained some (litlte)knowledge with python..&lt;br /&gt;&lt;br /&gt;i&#39;m on my semester holidays.. so i had some time to dance with that snake.&lt;br /&gt;since way2sms perl script is not working to send sms, because they&lt;br /&gt;rapidly modifying there site.&lt;br /&gt;&lt;br /&gt;so i have planned to test my skills with python&lt;br /&gt;&lt;br /&gt;by using only mechanize module i have done this.&lt;br /&gt;&lt;br /&gt;i have written this code which automate the processes of sending message from indyarocks.&lt;br /&gt;&lt;br /&gt;functions much similar the script i previously posted.&lt;br /&gt;&lt;br /&gt;read the README file in my repo.&lt;br /&gt;&lt;br /&gt;before that install mechanize module by&lt;br /&gt;&lt;br /&gt;&lt;i&gt;sudo apt-get install python-mechanize &lt;/i&gt;&lt;br /&gt;&lt;br /&gt;or install it from software center.&lt;br /&gt;&lt;br /&gt;fork it if you interested to improve that script &lt;br /&gt;&lt;br /&gt;at first you have to register with indyarocks to send sms&lt;br /&gt;&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;then fill your username and password in it.&lt;br /&gt;&lt;br /&gt;then start texting to your friends..&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;i have hosted the source code on github.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;https://github.com/manimaran990/indsms&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class=&quot;brush:python&quot;&gt;#!/usr/bin/python&lt;br /&gt;import mechanize&lt;br /&gt;import cookielib&lt;br /&gt;import sys&lt;br /&gt;br=mechanize.Browser()&lt;br /&gt;cj=cookielib.LWPCookieJar()&lt;br /&gt;br.set_cookiejar(cj)&lt;br /&gt;br.set_handle_robots(False)&lt;br /&gt;br.addheaders=[(&#39;User-agent&#39;,&#39;Mozilla/5.0 (X11; U; Linux i686; en-US, rv:1.9.01) Gecko/2008071615 Fedora/16.0.1-1.fc9 Firefox/17=18.0.1&#39;)]&lt;br /&gt;&lt;br /&gt;def gettxt():&lt;br /&gt;    print &quot;enter your message : &quot;&lt;br /&gt;    txt=&quot;&quot;&lt;br /&gt;    while True:&lt;br /&gt;        line=str(raw_input())&lt;br /&gt;        if &quot;$&quot; in line:&lt;br /&gt;            break&lt;br /&gt;        else:&lt;br /&gt;            txt+=line+&#39;\n&#39;&lt;br /&gt;    return txt&lt;br /&gt;&lt;br /&gt;def loginsite():&lt;br /&gt;    print &#39;&amp;gt;&amp;gt;&amp;gt; pls wait...&#39;&lt;br /&gt;    br.open(&#39;http://indyarocks.com/login&#39;)&lt;br /&gt;    br.select_form(nr=0)&lt;br /&gt;    br.form[&#39;LoginForm[username]&#39;]=your user name&lt;br /&gt;    br.form[&#39;LoginForm[password]&#39;]=your password&lt;br /&gt;    br.submit()&lt;br /&gt;    if &#39;profile&#39; in br.geturl():&lt;br /&gt;        print &#39;login successfully&#39;&lt;br /&gt;    else:&lt;br /&gt;        print &#39;failed to login&#39;&lt;br /&gt;&lt;br /&gt;def sendsms(mno,msg):&lt;br /&gt;    print &#39;&amp;gt;&amp;gt;&amp;gt; sending...&#39;&lt;br /&gt;    br.open(&#39;http://www.indyarocks.com/send-free-sms&#39;)&lt;br /&gt;    br.select_form(nr=1)&lt;br /&gt;    br.form[&#39;FreeSms[mobile]&#39;]=mno&lt;br /&gt;    br.form[&#39;FreeSms[post_message]&#39;]=msg&lt;br /&gt;    br.submit()&lt;br /&gt;    if &#39;login&#39; in br.geturl():&lt;br /&gt;        print &#39;failed&#39;&lt;br /&gt;    else:&lt;br /&gt;        print &#39;&amp;gt;&amp;gt;&amp;gt; sent&#39;&lt;br /&gt;&lt;br /&gt;def groupsms(book,txt):&lt;br /&gt;    loginsite()&lt;br /&gt;    f=open(book)&lt;br /&gt;    for line in f.readlines():&lt;br /&gt;        mno=line.split()[1]&lt;br /&gt;        print &#39;sending to : &#39;+line.split()[0]&lt;br /&gt;        sendsms(mno,txt)&lt;br /&gt;    print &#39;done&#39;&lt;br /&gt;&lt;br /&gt;def logoutsite():&lt;br /&gt;    br.open(&#39;http://www.indyarocks.com/logout&#39;)&lt;br /&gt;    print &#39;logout successfully&#39;&lt;br /&gt;    sys.exit()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;def main():&lt;br /&gt;    if len(sys.argv[:])==1:&lt;br /&gt;            print &#39;&#39;&#39;&lt;br /&gt;************************************&lt;br /&gt;usage :&lt;br /&gt;&lt;br /&gt;./indsms.py mobileno&lt;br /&gt;or&lt;br /&gt;./indsms.py file.txt&lt;br /&gt;&lt;br /&gt;press &#39;$&#39; to terminate the input message&lt;br /&gt;************************************&lt;br /&gt;&#39;&#39;&#39;&lt;br /&gt;            sys.exit()&lt;br /&gt;    if &#39;.txt&#39; in sys.argv[1]:&lt;br /&gt;        msg=gettxt()&lt;br /&gt;        groupsms(sys.argv[1],msg)&lt;br /&gt;        logoutsite()&lt;br /&gt;    else:&lt;br /&gt;        msg=gettxt()&lt;br /&gt;        loginsite()&lt;br /&gt;        sendsms(sys.argv[1],msg)&lt;br /&gt;        logoutsite()&lt;br /&gt;&lt;br /&gt;if __name__==&#39;__main__&#39;:&lt;br /&gt;    try:&lt;br /&gt;        main()&lt;br /&gt;    except KeyboardInterrupt:&lt;br /&gt;        print &#39;aborted by you&#39;&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;if you have any queries feel free to ask me..&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/3716041631361998465/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/06/free-sms-from-your-terminal-reboot.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/3716041631361998465'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/3716041631361998465'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/06/free-sms-from-your-terminal-reboot.html' title='Free SMS from your terminal REBOOT'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-6223818478795102381</id><published>2013-04-16T09:43:00.002-07:00</published><updated>2013-04-16T09:43:54.867-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnu/linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><title type='text'>awesome vi editor</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&quot;vi&quot; is not an ordinary editor. it is a popular among programmers.&lt;br /&gt;in our lab most of them struggle to do copy, paste like simple things in it..&lt;br /&gt;it&#39;s hard to get for the first time, but later only we can realize how&lt;br /&gt;awesome the &quot;vi&quot; is.&lt;br /&gt;my fav. commands:&lt;br /&gt;vi has two modes:&lt;br /&gt;1. command mode (press esc)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in command mode our cursor will point at the bottom followed by :&lt;br /&gt;2. edit mode (press i)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; normal edit mode we can type whatever we want&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;in command mode:&lt;br /&gt;vi filename.cc&amp;nbsp; -&amp;gt; to create a new file&lt;br /&gt;h -&amp;gt; left&lt;br /&gt;j -&amp;gt;&amp;nbsp; down&lt;br /&gt;k -&amp;gt; up&lt;br /&gt;l -&amp;gt; right&lt;br /&gt;:w -&amp;gt; to save&lt;br /&gt;:q&amp;nbsp; -&amp;gt; to quit&lt;br /&gt;:q! -&amp;gt; quit without saving&lt;br /&gt;dw -&amp;gt; delete a single word from cursor&lt;br /&gt;dd&amp;nbsp; -&amp;gt; delete whole line&lt;br /&gt;:!g++ file.cc -o file&amp;nbsp; -&amp;gt; this one will compile our code without closing our file. actual syntax is :!command &lt;br /&gt;where we can execute terminal commands in it. like ls, date, cal etc.&lt;br /&gt;&lt;br /&gt;:set autoindent&amp;nbsp; -&amp;gt; automatically indent our source code&lt;br /&gt;:set number&amp;nbsp; -&amp;gt; set line numbers&lt;br /&gt;:set hlsearch&amp;nbsp; -&amp;gt; enable highlight search&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/6223818478795102381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/04/awesome-vi-editor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6223818478795102381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/6223818478795102381'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/04/awesome-vi-editor.html' title='awesome vi editor'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-1883691011170022994</id><published>2013-03-28T08:54:00.000-07:00</published><updated>2013-03-28T08:54:46.901-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="gnu/linux"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="tips"/><category scheme="http://www.blogger.com/atom/ns#" term="tutorial"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><category scheme="http://www.blogger.com/atom/ns#" term="உபுண்டு"/><title type='text'>உபுண்டுவில் ஓபன் DNS அமைத்தல்</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;         &lt;style type=&quot;text/css&quot;&gt; &lt;!--   @page { margin: 2cm }   P { margin-bottom: 0.21cm }   A:link { so-language: zxx }  --&gt; &lt;/style&gt;  &lt;br /&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;DNS(Domain Name System) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;என்றால் என்ன&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ip&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;முகவரிகள் மூலம் தான் நெட்வர்க்கில் உள்ள கணினிகள் மற்றதை தேடி அதனை தொடர்பு&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;கொள்கின்றன&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஆனால் நம்மால் பல &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ip&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;முகவரிகளை நினைவில் வைத்துக்கொள்வது கடினம்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;உதரணாமாக &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;இல்லை என்றால் நீங்கள் கூகிலை அடைய ஒவ்வொரு முறையும்  &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;74.125.135.105 &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;என்ற &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ip &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;கொடுக்க வேண்டும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. dns &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;இந்த வேலையை சுலபமாக்குகிறது&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஒவ்வொரு முறையும் இந்த &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ip &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;முகவரிஐ கொடுப்பதற்கு பதில் அதன் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;domain name&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஐ கொடுத்தால் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;அதற்கு இணையான &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ip&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;யை கண்டுபிடித்து அதனுடன் இணைக்கிறது&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;rDNS(reverseDNS) ip&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஐ டொமைன் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;name&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஆக மாற்றித்தருகிறது&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;எதற்காக &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;openDNS?&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;நம் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;ISP &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;தரும் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஐதான் பெரும்பாலும் பயன்படுத்துவோம்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;நமது விருப்பத்திற்கு ஏற்ப இதனை மாற்றிக்கொள்ள முடியும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஓபன்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;என்பது இலவசமாக கிடைக்கும் ஒரு சேவை&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;இது நமது ஐ எஸ்பி தரும் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;விட பல விதங்களில் நமக்கு பயன் அளிக்கும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;உதாரணமாக ஐ எஸ் பி &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;விட வேகமாக தளங்களை இணைக்கும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;தவறாக &lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;அடிக்கும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;(typos) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;தளங்களை திருத்தும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;, &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;தேவையற்ற அபாயகரமான தளங்களை&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;(phishing, adult sites) &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;தடுக்கும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt; &lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;இதைனை அமைப்பதற்கு எந்த மென்பொருளும் நாம் தரவிறக்க தேவையில்லை&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;இதை அமைப்பது மிக சுலபம்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;உபுண்டுவில் இதனை அமைப்பதற்கு&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://1.bp.blogspot.com/-MSkJ0B3WZHw/UVRmNXRKw7I/AAAAAAAAALQ/NQ8bf4mhOjc/s1600/netman.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;239&quot; src=&quot;http://1.bp.blogspot.com/-MSkJ0B3WZHw/UVRmNXRKw7I/AAAAAAAAALQ/NQ8bf4mhOjc/s320/netman.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;network-manager &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;சென்று அதில் உள்ள &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;edit connection &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;என்பதை கொடுக்கவும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;அதனை தேர்வு செய்து பிறகு எடிட் என்பதை அழுத்தவும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-yiIEc3JfVQg/UVRmQBLL8jI/AAAAAAAAALg/pttW5PTuclw/s1600/netman2.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://2.bp.blogspot.com/-yiIEc3JfVQg/UVRmQBLL8jI/AAAAAAAAALg/pttW5PTuclw/s320/netman2.png&quot; width=&quot;281&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt; &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;அதில் வரும் மூன்றாவது டேபினை அழுத்தவும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. method&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ல் உள்ள &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Automatic(DHCP) address only &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;தேர்வு செய்யவும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt; &lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-6xZq8Bfqbeg/UVRmPH3RtSI/AAAAAAAAALY/uqtGlLidbT0/s1600/netman3.png&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;320&quot; src=&quot;http://3.bp.blogspot.com/-6xZq8Bfqbeg/UVRmPH3RtSI/AAAAAAAAALY/uqtGlLidbT0/s320/netman3.png&quot; width=&quot;281&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt; &lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;பிறகு &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;DNS servers: 208.67.220.220, 208.67.222.222 &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;என்பதை தரவும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;அவ்வளவு தான்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;இது சரியாக வேலை செய்கிறதா என்று காண&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;http://www.welcome.opendns.com/&quot;&gt;welcome.opendns.com&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;செல்லவும்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;இதற்கு பதில் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;8.8.8.8, 8.8.4.4 &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;என்ற கூகுளின் பப்ளிக் &lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஐயும் தரலாம்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;. &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;ஆனால் ஒபன்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;dns &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;தரும் செவைகளை விட குறைவுதான்&lt;/span&gt;&lt;span style=&quot;font-family: Lohit Tamil;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div align=&quot;LEFT&quot; style=&quot;font-weight: normal; line-height: 100%; margin-bottom: 0cm; orphans: 2;&quot;&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/1883691011170022994/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/03/dns.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/1883691011170022994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/1883691011170022994'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/03/dns.html' title='உபுண்டுவில் ஓபன் DNS அமைத்தல்'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-MSkJ0B3WZHw/UVRmNXRKw7I/AAAAAAAAALQ/NQ8bf4mhOjc/s72-c/netman.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7291100184596955000.post-4527871190381067479</id><published>2013-03-25T10:44:00.000-07:00</published><updated>2013-03-25T21:47:23.716-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="klug"/><category scheme="http://www.blogger.com/atom/ns#" term="lug meet"/><title type='text'>March monthly meet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Date: 24-11-2013&lt;br /&gt;&lt;br /&gt;Time: 10 am to 12&lt;br /&gt;&lt;br /&gt;Location: Kailasanathar Temple, KPM&lt;br /&gt;&lt;br /&gt;Today we had a meet at kailasanathar temple,&lt;br /&gt;Since last few months we didn&#39;t have any activity. so&lt;br /&gt;we discussed about the current status of our lug community and how to&lt;br /&gt;refine this problem.&lt;br /&gt;some old members also participated in the meet and suggested some&lt;br /&gt;good ideas.&lt;br /&gt;&lt;br /&gt;And we finally come to a conclusion to do some frequent activities&lt;br /&gt;&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;like conducting hackathon, monthly irc meet, contributing in&lt;br /&gt;writing articles, making video tutorials, and much more.&lt;br /&gt;&lt;br /&gt;Also we made a decision to conduct lug meet at every month fourth&lt;br /&gt;sunday.&lt;br /&gt;&lt;br /&gt;i hope everything should be happen like we talked.&lt;br /&gt;&lt;br /&gt;Balaji G, Selvamani S, Dilliganesh K, Srinivasan T,&lt;br /&gt;Rajkumar K, Dhanasekar T, Manimaran R and myself participated&lt;br /&gt;in the meet.&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://mani-g.blogspot.com/feeds/4527871190381067479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://mani-g.blogspot.com/2013/03/march-monthly-meet.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4527871190381067479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7291100184596955000/posts/default/4527871190381067479'/><link rel='alternate' type='text/html' href='http://mani-g.blogspot.com/2013/03/march-monthly-meet.html' title='March monthly meet'/><author><name>mani</name><uri>http://www.blogger.com/profile/17024906890282526593</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>