<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom="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" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-7122141608041993921</atom:id><lastBuildDate>Thu, 17 Sep 2015 06:06:23 +0000</lastBuildDate><category>Data Structure</category><category>Software</category><category>tips-tricks</category><category>Packet Tracer Tutorial</category><category>Cisco IOS</category><category>Computer</category><category>SIP</category><category>Networking</category><category>Video Tutorials</category><category>GNS3 Tutorials</category><category>Internet</category><category>P2P-SIP</category><category>API</category><category>Flash Player</category><category>Open source</category><category>sugarcrm</category><category>ITGURU</category><category>C Programming</category><category>Programming</category><category>Android</category><category>CCNA Labs</category><category>Free Network Tools</category><category>Facebook</category><category>Info</category><category>P2P</category><category>Problems</category><category>video</category><category>LAB 1</category><category>NS2</category><category>Networking Tutorial</category><category>Server</category><category>webrtc</category><category>DHT</category><category>PHP</category><category>RTMP</category><category>Softwares</category><category>scalability</category><category>Conferencing</category><category>Java</category><category>NAT</category><category>Protocols</category><category>Quotes</category><category>Specification</category><category>authentication</category><category>wireless networks</category><category>ActionScript</category><category>Apache</category><category>Astarisk</category><category>Development</category><category>Maths</category><category>OOP</category><category>Packet Tracer Activities</category><category>Posters</category><category>Python</category><category>REST</category><category>RESTful</category><category>RTMFP</category><category>RTP</category><category>Skype</category><category>Subversion</category><category>Switches</category><category>security</category><category>802.11</category><category>Advance Asp.net</category><category>Advance Java</category><category>Articles</category><category>C++</category><category>CG</category><category>Comparison</category><category>DAA</category><category>DFS</category><category>Document</category><category>Inbound Marketing</category><category>Linux Tutorial</category><category>Marketo</category><category>Module Builder</category><category>OS</category><category>Packet Tracer</category><category>Permissions</category><category>Protocol</category><category>Reliability</category><category>SOA</category><category>SSH</category><category>SVCPP</category><category>authorization</category><category>httpd</category><category>siprtmp</category><category>svnserve</category><category>vvowproject</category><category>39 Peers</category><category>ACN</category><category>AI</category><category>AMP</category><category>Access</category><category>Asp.net</category><category>Asp.net Programs</category><category>Authentication Options</category><category>Blogging</category><category>Business</category><category>C Programs</category><category>C-C++</category><category>CN</category><category>Communication</category><category>Configuration</category><category>DBMS</category><category>DS</category><category>Drip Campaigns</category><category>Ethernet Cabling</category><category>Flash</category><category>Gateway</category><category>H.264</category><category>Hubs</category><category>ICE</category><category>IPHONE</category><category>IS</category><category>Interworking</category><category>JAVA Interview Questions</category><category>JavaSymbian</category><category>Kazaa</category><category>Lan</category><category>LoadModule</category><category>MP</category><category>MVC</category><category>Management</category><category>Marketing Automation</category><category>Maths Programs</category><category>OOAD</category><category>OpenSSL</category><category>PC</category><category>Project</category><category>Proxy</category><category>Routers</category><category>SE</category><category>SIP-JS</category><category>SP</category><category>Software Testing Interview Questions</category><category>Studio</category><category>Subnetting</category><category>SugarCRM 7</category><category>Systems</category><category>Templates</category><category>Topology</category><category>Ubuntu</category><category>Useful locations</category><category>WAD</category><category>Whatsapp</category><category>Windows</category><category>XML</category><category>XMPP</category><category>Youtube Vids</category><category>cisco certification</category><category>commandline</category><category>event based</category><category>firewalls</category><category>http</category><category>idea</category><category>multimedia</category><category>passwords</category><category>performance</category><category>proxy server</category><category>restlite</category><category>rtc-web</category><category>videocity</category><category>#scon12</category><category>.NET Interview Question</category><category>ACT</category><category>ADO.NET Interview Question</category><category>AJAX</category><category>AMF</category><category>ASA</category><category>Access Methods</category><category>Address</category><category>Adobe</category><category>Adobe CS</category><category>Advance Computer Networks Video Tutorial</category><category>Android Video Tutorial</category><category>Answer key of GATE Paper</category><category>Aptitude</category><category>Aptitude Exam Related Formula</category><category>Aptitude Math Formulas</category><category>Artificial Intelligence Video Tutorials</category><category>Asp.net Books</category><category>Astarisk Sound Files Pack</category><category>AuthName</category><category>Bamboo</category><category>Basic Apache Configuration</category><category>Basic HTTP Authentication</category><category>Berkeley DB</category><category>Blanket Access Control</category><category>Boson Simulator</category><category>Bridges</category><category>Browsting</category><category>Businesses</category><category>C</category><category>C Interview Question</category><category>C#</category><category>C# Books</category><category>C# Programs</category><category>C#.NET Interview Question</category><category>C++ Interview Question</category><category>C-C++ Books</category><category>CCNA Flashcards</category><category>CCNA Interview Q\A</category><category>CD</category><category>COA</category><category>CPD</category><category>CS Server(ADSL)</category><category>CS4</category><category>CS5</category><category>CSS</category><category>Caching</category><category>Channel API</category><category>Cheat Sheets</category><category>Chord</category><category>Cisco Unified Call Manager</category><category>Class A</category><category>Class B</category><category>Class C</category><category>Client</category><category>Cloud Computing</category><category>Cloud Connectors</category><category>Communications protocols</category><category>Computer Graphics Video Tutorial</category><category>Computer Network.</category><category>Computer Networking</category><category>Computer Networks Video Tutorial</category><category>Connecting</category><category>Connecting Nodes</category><category>Control</category><category>Corporate</category><category>Credentials</category><category>DAA Video Tutorial</category><category>DLD</category><category>DNS check</category><category>Data Computer Networks Video Tutorial</category><category>Data Structure Video Tutorial</category><category>Database Management System Video Tutorial</category><category>Detecting</category><category>DocumentRoot</category><category>Dreamweaver</category><category>EJB</category><category>Eclipse Video Tutorials</category><category>Elastix</category><category>Embedded</category><category>Encoding</category><category>Engineering Maths Books</category><category>Error Detection</category><category>Evolution</category><category>Firewall</category><category>First Year GTU Paper Set</category><category>First Year Study Material of Engineering Graphics</category><category>Flex</category><category>Formula</category><category>Fourth Year Computer Engineering GTU Paper Set</category><category>Framework</category><category>Framing</category><category>Ftp Links</category><category>GATE Computer Engineering and Information Technology</category><category>GRE Books</category><category>Google App Engine</category><category>Google Video</category><category>Google Voice</category><category>Google Voice in Elastix and Trixbox</category><category>Google map and Geo IP</category><category>Grid Computing</category><category>H.323</category><category>HTML</category><category>Hibernate Interview Questions</category><category>Hibernet</category><category>History Of Computer Networks.</category><category>How to Install ntop on Centos with Google map and Geo IP</category><category>I-Phone Video Tutorial</category><category>IAX</category><category>IPAD</category><category>IPv6 - Introduction</category><category>ISA</category><category>Illustrator</category><category>InDesign</category><category>Inspiration</category><category>Install</category><category>Install ntop on Centos</category><category>Instruction</category><category>Integrated Mode</category><category>Invoking the Server</category><category>Ip</category><category>J2EE</category><category>J2ME</category><category>JS</category><category>JSF</category><category>JSP</category><category>Jabber</category><category>Java Books</category><category>Java Chat Server Client Program</category><category>Java Video Tutorials</category><category>LAB 2</category><category>Lessons</category><category>Linux Router</category><category>Logon</category><category>MC</category><category>Major Networks Types</category><category>Manuals</category><category>Maya</category><category>Media access control</category><category>Network</category><category>Network interface cards</category><category>Network topologies</category><category>New-Networking Session</category><category>OSI</category><category>Online Videos</category><category>Option</category><category>Organizational scope</category><category>Overlay network</category><category>PHP Books</category><category>PHP Interview Question</category><category>PHP Video Tutorial</category><category>PP</category><category>Per-Directory</category><category>Photoshop</category><category>Photoshop Video Tutorial</category><category>Postfix Basic Setup</category><category>Product Id</category><category>Programs</category><category>Properties of Computer Networks</category><category>Qemu</category><category>RAM</category><category>RFC</category><category>RSH</category><category>Repeaters and hubs</category><category>Repository Browsing</category><category>SEO</category><category>SIP-XMPP</category><category>SQL</category><category>SQL Injection</category><category>SSL Certificate Management</category><category>Salut</category><category>Search Engine Optimization</category><category>Second Year Computer Engineering GTU Paper Set</category><category>Secure</category><category>Semester - 4 Books</category><category>Semester - 4 Material</category><category>Semester - 5 Books</category><category>Semester - 6 Books</category><category>Semester - 6 Material</category><category>Semester - 7 Books</category><category>Semester - 8 Books</category><category>Semester - 8 Material</category><category>Semester-3 Books</category><category>Semester-3 Material</category><category>Semester-5 Material</category><category>Semester-7 Material</category><category>Seminar Topics</category><category>Seminars</category><category>Service Oriented Architecture</category><category>Settings</category><category>Silverlight</category><category>Software Engineering Video Tutorial</category><category>Software Testing Video Tutorial</category><category>Solution of GATE paper</category><category>Structured</category><category>Struts</category><category>Struts Interview Question</category><category>Subversion repository</category><category>Supporting Multiple Repository</category><category>Swami Vivekanand Contributor Personality Program</category><category>TCP</category><category>TCP/IP Introduction</category><category>TOC</category><category>TOEFL Books</category><category>Tcl</category><category>Telepathy services</category><category>Test Network Configuration</category><category>TestInside</category><category>Third Year Computer Engineering GTU Paper Set</category><category>Tools and Techniques</category><category>Trixbox</category><category>Trixbox SIP trunk</category><category>Trixbox SIP trunk to Cisco Unified Call Manager</category><category>Twitter</category><category>Types Of Computer Network</category><category>URLs</category><category>Unix-like inetd daemon</category><category>Unstructured</category><category>VB</category><category>VB Books</category><category>ViewCVS</category><category>Visual Basic</category><category>Web</category><category>Web Application Development Video Tutorial</category><category>Web Developer Guide</category><category>Web Solution</category><category>Web browser</category><category>WebDAV</category><category>WebService</category><category>What Exactly is a Server?</category><category>Why is DNS important</category><category>Why is DNS important for email server</category><category>Widgets</category><category>Windows 7 Networking</category><category>Wired technologies</category><category>Wireless technologies</category><category>a2billing</category><category>acceptable usernames</category><category>accessible</category><category>anonymous access</category><category>asterisk</category><category>authenticated access</category><category>authorize</category><category>automated script</category><category>block</category><category>clients</category><category>collection</category><category>commands</category><category>configuration file</category><category>configure Apache</category><category>configured authentication</category><category>conjunction</category><category>crossdomain</category><category>customization</category><category>database</category><category>decoding</category><category>demand authentication</category><category>depth information</category><category>developers guide</category><category>directory</category><category>documentation</category><category>gevent</category><category>host</category><category>htpasswd</category><category>identities</category><category>index</category><category>inetd launch</category><category>memcached</category><category>modem</category><category>multitask</category><category>operating system</category><category>outbound marketing</category><category>pageant</category><category>permission</category><category>policy-file</category><category>process</category><category>program</category><category>programmable</category><category>public URLs</category><category>querying</category><category>quick repair and rebuld</category><category>repositories</category><category>rsh host svnserve -t</category><category>rtmplite</category><category>sane umask</category><category>server certificates</category><category>sms</category><category>sms balance transfer</category><category>sms recharge</category><category>sms signup</category><category>sms topup</category><category>softcard</category><category>standards</category><category>strategies</category><category>stylesheets</category><category>subnet mask</category><category>svn</category><category>svn cat</category><category>syntax</category><category>thomas edison inventions</category><category>tunnel</category><category>tunnel agent</category><category>tunneling</category><category>tutorials</category><category>umask 002</category><category>variable</category><category>versioned</category><category>voip</category><category>web pages</category><category>whoami</category><category>windows server</category><title>Computer Networking</title><description></description><link>http://cpnetworking.blogspot.com/</link><managingEditor>noreply@blogger.com (Amber Khan)</managingEditor><generator>Blogger</generator><openSearch:totalResults>804</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3229223032903560426</guid><pubDate>Mon, 29 Sep 2014 05:16:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.236-07:00</atom:updated><title>HACK WPS WIFI EASILY USING DUMPPER </title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-CnmFQcOSICA/VCjsC4TiHeI/AAAAAAAACH0/I_qUjNsxbKw/s1600/dumpper.jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-CnmFQcOSICA/VCjsC4TiHeI/AAAAAAAACH0/I_qUjNsxbKw/s1600/dumpper.jpg&quot; height=&quot;426&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;1.download dumpper.rar&lt;/span&gt;&lt;/h2&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;2.install jumpstart its in the same rar&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/h2&gt;&lt;h2&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;3.open dumpper&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;4.click on wps&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;5.click ontodas las redes&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;6.click on escannear&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;7.it will show the wifi that can be hack&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;8.click on wifi you want to hack&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;9.click oninciar jumpstart&lt;/span&gt;&lt;/h2&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;background-color: white; color: #141823; font-family: Helvetica, Arial, &#39;lucida grande&#39;, tahoma, verdana, arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;Download dumpper and jumpstart &lt;a href=&quot;http://adf.ly/sRplb&quot;&gt;click here&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/09/hack-wps-wifi-easily-using-dumpper.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-CnmFQcOSICA/VCjsC4TiHeI/AAAAAAAACH0/I_qUjNsxbKw/s72-c/dumpper.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-6579290038014385270</guid><pubDate>Fri, 01 Aug 2014 15:06:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.252-07:00</atom:updated><title>INSTALL AVG INTERNET SECURITY FOR FREE</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;HERE IS A METHOD TO INSTALL THE AVG INTERNET SECURITY FOR FREE&lt;br /&gt;&lt;br /&gt;ITS VERY EASY.&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://adf.ly/qlgYz&quot;&gt;CLICK HERE&lt;/a&gt; TO INSTALL AVG .&lt;br /&gt;&lt;br /&gt;AFTER INSTALLATION OPEN AVG INTERNET SECURITY&lt;br /&gt;&lt;br /&gt;&amp;nbsp;THEN GO TO OPTION/ACTIVATE&lt;br /&gt;&lt;br /&gt;PASTE THIS CODE&amp;nbsp;8MEH-RXYFD-JUV72-8922R-FTBZ6-QEMBR-ACED &amp;nbsp;AND PRESS ACTIVATE&lt;br /&gt;DONE :)&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/08/install-avg-internet-security-for-free.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-6184235972979162911</guid><pubDate>Mon, 28 Jul 2014 15:09:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.265-07:00</atom:updated><title>MODERN COMBAT  5 :BLACKOUT FREE DOWNLOAD (DATA+ APK)</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&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/-UQwjCkZ0vRc/U9ZneOq7rgI/AAAAAAAACHM/iTxAy_mOMvw/s1600/BLACKOUT.jpg&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/-UQwjCkZ0vRc/U9ZneOq7rgI/AAAAAAAACHM/iTxAy_mOMvw/s1600/BLACKOUT.jpg&quot; height=&quot;640&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;http://2.bp.blogspot.com/-5LKTSQUypIE/U9ZneFvdU-I/AAAAAAAACHI/AVA5Vg4z_7w/s1600/BLACK.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-5LKTSQUypIE/U9ZneFvdU-I/AAAAAAAACHI/AVA5Vg4z_7w/s1600/BLACK.jpg&quot; height=&quot;324&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;INSTRUCTION TO INSTALL&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;- Copy folder “com.gameloft.android.ANMP.GloftM5HM”&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;-Paste it into sdcard0/android/obb&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;-Install apk&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;Launch game( Internet connectivity required)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;color: #333333; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://adf.ly/qeeL5&quot;&gt;CLICK HERE&lt;/a&gt; TO DOWNLOAD&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/07/modern-combat-5-blackout-free-download.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://1.bp.blogspot.com/-UQwjCkZ0vRc/U9ZneOq7rgI/AAAAAAAACHM/iTxAy_mOMvw/s72-c/BLACKOUT.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3138253367692565850</guid><pubDate>Fri, 11 Jul 2014 06:28:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.280-07:00</atom:updated><title>Hot spot shield elite free download +crack (to change ip)</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h3 style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;Hi fren, Here many of you are trying to change the ip address of your&lt;/b&gt;&lt;/h3&gt;&lt;h3 style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;now, heres the simple way to change the ip address. By using hotspot shield(hss).&lt;/b&gt;&lt;/h3&gt;&lt;h3 style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;This is the easy to to change the ip address just go to google search for hotspot sheild&lt;/b&gt;&lt;/h3&gt;&lt;h3 style=&quot;margin-bottom: 0in;&quot;&gt;&lt;b&gt;and download it for free. You just need to install nothing more than that. :)&lt;/b&gt;&lt;/h3&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Download link : &lt;a href=&quot;http://adf.ly/qEL2e&quot;&gt;click here&amp;nbsp;&lt;/a&gt;&amp;nbsp; Crack :&lt;a href=&quot;http://adf.ly/qEL4o&quot;&gt;click here&lt;/a&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;Installation Instructions&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Go to&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;C:\WINDOWS\system32\drivers\etc&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;then open host file with notepad and &amp;nbsp;paste below lines..&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;127.0.0.1 anchorfree.net&lt;/div&gt;&lt;div&gt;127.0.0.1 rss2search.com&lt;/div&gt;&lt;div&gt;127.0.0.1 techbrowsing.com&lt;/div&gt;&lt;div&gt;127.0.0.1 box.anchorfree.net&lt;/div&gt;&lt;div&gt;127.0.0.1 www.mefeedia.com&lt;/div&gt;&lt;div&gt;127.0.0.3 www.anchorfree.net&lt;/div&gt;&lt;div&gt;127.0.0.2 www.mefeedia.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;then save and close notepad.. thats it.. :)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;For more cool &amp;amp; Latest softwares Visit!&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;. Enjoy! ;)&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;----------------------------------&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/07/hot-spot-shield-elite-free-download.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-5603483222055506932</guid><pubDate>Sat, 21 Jun 2014 15:57:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.294-07:00</atom:updated><title>C program compiler c4droid free download</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;a href=&quot;http://3.bp.blogspot.com/-LyQkLtw0hNs/U6WreUSOUfI/AAAAAAAACGw/9UdKAKWn-ro/s1600/download+(2).jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://3.bp.blogspot.com/-LyQkLtw0hNs/U6WreUSOUfI/AAAAAAAACGw/9UdKAKWn-ro/s1600/download+(2).jpg&quot; /&gt;&lt;/a&gt;C4droid is the complier for android.It the best compiler that can compile your any codes, HAVE FUN COMPLINING&lt;br /&gt;&lt;br /&gt;FOR DOWNLOAD &lt;a href=&quot;http://adf.ly/pl8RW&quot;&gt;CLICK HERE&lt;/a&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/06/c-program-compiler-c4droid-free-download.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://3.bp.blogspot.com/-LyQkLtw0hNs/U6WreUSOUfI/AAAAAAAACGw/9UdKAKWn-ro/s72-c/download+(2).jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-7880022510018085186</guid><pubDate>Sat, 21 Jun 2014 15:52:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.308-07:00</atom:updated><title>MX PLAYER PRO FREE DOWNLOAD</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&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/-CSTrlXAdRhw/U6WqPSyE9MI/AAAAAAAACGk/VVYnyA7VJf4/s1600/download+(1).jpg&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-CSTrlXAdRhw/U6WqPSyE9MI/AAAAAAAACGk/VVYnyA7VJf4/s1600/download+(1).jpg&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;span style=&quot;background-color: white; color: #545454; font-family: arial, sans-serif; font-size: x-small; line-height: 16.545454025268555px;&quot;&gt;MX Video Player is the first Android video player that can play almost all videos.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://adf.ly/pl84J&quot;&gt;CLICK HERE&lt;/a&gt; TO DOWNLOAD torrent&lt;br /&gt;&lt;br /&gt;&lt;a href=&quot;http://adf.ly/pl89y&quot;&gt;APK&lt;/a&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/06/mx-player-pro-free-download.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-CSTrlXAdRhw/U6WqPSyE9MI/AAAAAAAACGk/VVYnyA7VJf4/s72-c/download+(1).jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3832499140908319175</guid><pubDate>Sat, 21 Jun 2014 15:47:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.322-07:00</atom:updated><title>The Dark Knight Rises v1.1.3 Apk + SD Data (free download)/ HOW TO INSTALL </title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h3 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 20px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&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/-FOoddr2zneY/U6WneqtUqtI/AAAAAAAACGY/pYcbRw9UWWw/s1600/download.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://2.bp.blogspot.com/-FOoddr2zneY/U6WneqtUqtI/AAAAAAAACGY/pYcbRw9UWWw/s1600/download.jpg&quot; height=&quot;223&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;h3 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 20px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 20px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 20px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;1) First install BATMAN.apk (don`t run)&lt;/span&gt;&lt;/h3&gt;&lt;h3 style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif; font-size: 20px; line-height: 20px; margin-bottom: 16px;&quot;&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;2) Then copy data file&lt;/span&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: #444444; font-family: Arial; font-size: 12px; line-height: 16.799999237060547px;&quot;&gt;com.gameloft.android.ANMP.GloftKRHM &lt;span style=&quot;font-weight: normal;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;in sd card\android\obb&lt;/span&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;&amp;nbsp;&amp;nbsp;Then play the game :)&lt;/span&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;NEEDS TO RUN ONLINE 1ST&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;If its say&amp;nbsp;unfortunately the &amp;nbsp;game has stopped the again install the .apk and run the game&lt;/span&gt;&lt;span style=&quot;font-size: 12px; font-weight: normal;&quot;&gt;Tested in NOTE 2&lt;/span&gt;&lt;/h3&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;DOWNLOAD LINK&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;CLICK HERE&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 12px;&quot;&gt;&lt;a href=&quot;http://adf.ly/pl7Z9&quot;&gt;APK&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;SD DATA : &lt;a href=&quot;http://adf.ly/pl7fb&quot;&gt;PART1&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://adf.ly/pl7k2&quot;&gt; PART2&amp;nbsp;&lt;/a&gt;&amp;nbsp;&lt;a href=&quot;http://adf.ly/pl7nB&quot;&gt;PART3&lt;/a&gt;&lt;a href=&quot;http://adf.ly/pl7s5&quot;&gt;&amp;nbsp;PART4&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://adf.ly/pl7uT&quot;&gt;TORRENT&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/06/the-dark-knight-rises-v113-apk-sd-data.html</link><author>noreply@blogger.com (Unknown)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/-FOoddr2zneY/U6WneqtUqtI/AAAAAAAACGY/pYcbRw9UWWw/s72-c/download.jpg" height="72" width="72"/><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-5943742783350648365</guid><pubDate>Thu, 08 May 2014 08:48:00 +0000</pubDate><atom:updated>2014-05-23T03:48:59.346-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C Programming</category><category domain="http://www.blogger.com/atom/ns#">Data Structure</category><title>BST implementation in C </title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;include &quot;stdio.h&quot;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;include &quot;stdlib.h&quot;&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;include &quot;time.h&quot;&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;struct treeNode {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;struct treeNode *leftPtr; /* pointer to left subtree */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;int data; /* node value */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;struct treeNode *rightPtr; /* pointer to right subtree */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;typedef struct treeNode TreeNode; /* synonym for struct treeNode */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;typedef TreeNode *TreeNodePtr; /* synonym for TreeNode* */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;/* prototypes */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void insertNode( TreeNodePtr *treePtr, int value );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void inOrder( TreeNodePtr treePtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void preOrder( TreeNodePtr treePtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void postOrder( TreeNodePtr treePtr );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;int main( void )&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;int i; /* counter to loop from 1-10 */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;int item; /* variable to hold random values */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;TreeNodePtr rootPtr = NULL; /* tree initially empty */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;srand( time( NULL ) );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;printf( &quot;The numbers being placed in the tree are:\n&quot; );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* insert random values between 0 and 14 in the tree */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;for ( i = 1; i &amp;lt;= 10; i++ ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;item = rand() % 55;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;printf( &quot;%3d&quot;, item );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;insertNode( &amp;amp;rootPtr, item );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end for */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* traverse the tree preOrder */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;printf( &quot;\n\nThe preOrder traversal is:\n&quot; );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;preOrder( rootPtr );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;printf( &quot;\n\nThe inOrder traversal is:\n&quot; );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;inOrder( rootPtr );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;printf( &quot;\n\nThe postOrder traversal is:\n&quot; );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;postOrder( rootPtr );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;getch();&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;return 0; /* indicates successful termination */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end main */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* insert node into tree */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void insertNode( TreeNodePtr *treePtr, int value )&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* if tree is empty */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;if ( *treePtr == NULL ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;*treePtr = malloc( sizeof( TreeNode ) );&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* if memory was allocated then assign data */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;if ( *treePtr != NULL ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;( *treePtr )-&amp;gt;data = value;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;( *treePtr )-&amp;gt;leftPtr = NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;( *treePtr )-&amp;gt;rightPtr = NULL;&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end if */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;else {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;printf( &quot;%d not inserted. No memory available.\n&quot;, value );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end else */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end if */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;else {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if ( value &amp;lt; ( *treePtr )-&amp;gt;data ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;insertNode( &amp;amp;( ( *treePtr )-&amp;gt;leftPtr ), value );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;else if ( value &amp;gt; ( *treePtr )-&amp;gt;data ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;insertNode( &amp;amp;( ( *treePtr )-&amp;gt;rightPtr ), value );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;else { /* duplicate data value ignored */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;printf( &quot;dup&quot; );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end else */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end else */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;} /* end function insertNode */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* begin inorder traversal of tree */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void inOrder( TreeNodePtr treePtr )&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;{&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ( treePtr != NULL ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;inOrder( treePtr-&amp;gt;leftPtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;printf( &quot;%3d&quot;, treePtr-&amp;gt;data );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;inOrder( treePtr-&amp;gt;rightPtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;} /* end function inOrder */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* begin preorder traversal of tree */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void preOrder( TreeNodePtr treePtr )&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; if ( treePtr != NULL ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;printf( &quot;%3d&quot;, treePtr-&amp;gt;data );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;preOrder( treePtr-&amp;gt;leftPtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;preOrder( treePtr-&amp;gt;rightPtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;} /* end function preOrder */&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;/* begin postorder traversal of tree */&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;void postOrder( TreeNodePtr treePtr )&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;br style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp; &amp;nbsp; if ( treePtr != NULL ) {&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;postOrder( treePtr-&amp;gt;leftPtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;postOrder( treePtr-&amp;gt;rightPtr );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;printf( &quot;%3d&quot;, treePtr-&amp;gt;data );&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/05/bst-implementation-in-c.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3099998263453410841</guid><pubDate>Fri, 02 May 2014 15:48:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.337-07:00</atom:updated><title>free download internet download manger with crack. (Idm</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;INSTRUCTIONS:&lt;br /&gt;&lt;br /&gt;1. Install IDM v6.19&lt;br /&gt;2. Make sure to exit IDM v6.19 &amp;nbsp;from icon tray.&lt;br /&gt;3. Copy IDMan.exe to File Location (C:\Program Files\Internet Download Manager) &amp;amp; replace with the original file.&lt;br /&gt;4. Open RegKey&lt;br /&gt;4. Enjoy :)&lt;br /&gt;&lt;br /&gt;FOR DOWNLOAD CLICK BELOW &amp;nbsp;:)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://adf.ly/la1ip&quot;&gt;IDM&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://adf.ly/la1wU&quot;&gt;IDM CRACK&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://adf.ly/la2E5&quot;&gt;REGKEY&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/05/free-download-internet-download-manger.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-132343475995913478</guid><pubDate>Fri, 25 Apr 2014 19:03:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.141-07:00</atom:updated><title>Expert Systems</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.399999618530273px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;An expert system is an example of a&amp;nbsp;&lt;a class=&quot;mw-redirect&quot; href=&quot;http://en.wikipedia.org/wiki/Knowledge-based_system&quot; style=&quot;background-image: none; color: #0b0080; text-decoration: none;&quot; title=&quot;Knowledge-based system&quot;&gt;knowledge-based system&lt;/a&gt;.The goal of knowledge-based systems is to make the critical information required for the system to work explicit rather than implicit.&amp;nbsp;In a traditional computer program the logic is embedded in code that can typically only be reviewed by an IT specialist. With an expert system the goal was to specify the rules in a format that was intuitive and easily understood, reviewed, and even edited by domain experts rather than IT experts. The benefits of this explicit knowledge representation were rapid development and ease of maintenance.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.399999618530273px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;Ease of maintenance is the most obvious benefit. This was achieved in two ways. First, by removing the need to write conventional code many of the normal problems that can be caused by even small changes to a system could be avoided with expert systems. Essentially, the logical flow of the program (at least at the highest level) was simply a given for the system, simply invoke the inference engine. This also was a reason for the second benefit:&amp;nbsp;&lt;a href=&quot;http://en.wikipedia.org/wiki/Rapid_prototyping&quot; style=&quot;background-image: none; background-position: initial initial; background-repeat: initial initial; color: #0b0080; text-decoration: none;&quot; title=&quot;Rapid prototyping&quot;&gt;rapid prototyping&lt;/a&gt;. With an expert system shell it was possible to enter a few rules and have a prototype developed in days rather than the months or year typically associated with complex IT projects.&lt;/div&gt;&lt;div style=&quot;background-color: white; color: #252525; font-family: sans-serif; font-size: 14px; line-height: 22.399999618530273px; margin-bottom: 0.5em; margin-top: 0.5em;&quot;&gt;A claim for expert system shells that was often made was that they removed the need for trained programmers and that experts could develop systems themselves. In reality this was seldom if ever true. While the rules for an expert system were more comprehensible than typical computer code they still had a formal syntax where a misplaced comma or other character could cause havoc as with any other computer language. In addition as expert systems moved from prototypes in the lab to deployment in the business world issues of integration and maintenance became far more critical. Inevitably demands to integrate with and take advantage of large legacy databases and systems arose. To accomplish this integration required the same skills as any other type of system.&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/04/expert-systems.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-6603407383510632967</guid><pubDate>Tue, 22 Apr 2014 08:12:00 +0000</pubDate><atom:updated>2014-05-23T03:48:59.381-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C Programming</category><category domain="http://www.blogger.com/atom/ns#">Data Structure</category><title>Sorted Linked List implementation in C</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;include &quot;stdio.h&quot;&lt;br /&gt;include &quot;stdlib.h&quot;&lt;br /&gt;include &quot;conio.h&quot;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void del(int data);&lt;br /&gt;void insert(int value);&lt;br /&gt;void display();&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;struct node&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; int data;&lt;br /&gt;&amp;nbsp; &amp;nbsp; struct node *link;&lt;br /&gt;};&lt;br /&gt;&lt;br /&gt;struct node *top=NULL,*temp, *temp1, *temp2, *temp3;&lt;br /&gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; int choice,data;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; while(1) //infinite loop is used to insert/delete infinite number of elements in linked list&lt;br /&gt;&amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\n1.Insert\n2.Delete\n3.Display\n4.Exit\n&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\nEnter ur choice:&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;choice);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; switch(choice)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 1: &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Enter a new element :&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;data);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; insert(data);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 2:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;Enter the value to be deleted from sorted linked list :&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; scanf(&quot;%d&quot;,&amp;amp;data);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; del(data);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 3:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; display();&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; case 4:&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; exit(0);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; } &amp;nbsp; &lt;br /&gt;getch();&lt;br /&gt;return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void insert(int data)&lt;br /&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;temp=(struct node *)malloc(sizeof(struct node));&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;temp-&amp;gt;data=data;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;if(top == NULL)&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp-&amp;gt;link=NULL;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; top=temp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;else &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// top not null&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;temp1 = top ;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;while(temp1 != NULL)&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;if(temp1-&amp;gt;data &amp;gt;= data) &amp;nbsp; // list element is smaller ...&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;if(temp1 == top) &amp;nbsp; // list element is head ...&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;{ &lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt; &amp;nbsp; temp-&amp;gt;link = temp1;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt; &lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;top = temp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;break;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;else // list element is not head ..&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;temp-&amp;gt;link = temp1;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;temp2-&amp;gt;link = temp;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;break;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;else&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;if(temp1-&amp;gt;link == NULL)&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;temp-&amp;gt;link = NULL;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;temp1-&amp;gt;link = temp;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;break;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;else&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;temp2 = temp1;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;      &lt;/span&gt;temp1 = temp1-&amp;gt;link;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;     &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;    &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;   &lt;/span&gt;}&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // creating a space for the new element.&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void del(int data)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;struct node *temp,*var;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;temp=top;&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; &amp;nbsp;int i=0;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;while(temp!=NULL)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(temp-&amp;gt;data == data)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; { &amp;nbsp; &amp;nbsp; &amp;nbsp;i = 1; &amp;nbsp; // Flag ..&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(temp==top)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;top=temp-&amp;gt;link;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free(temp);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var-&amp;gt;link=temp-&amp;gt;link;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;free(temp);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;break;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;var=temp;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp=temp-&amp;gt;link;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;if(i == 1)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt;  &lt;/span&gt;printf(&quot;data deleted from list is %d&quot;,data);&lt;br /&gt;&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;else&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;printf(&quot;\n The required data, %d is not found in the list. go look somewhere else&quot;,data);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;void display()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;temp=top;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if(temp==NULL)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot;\nStack is empty\n&quot;);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while(temp!=NULL)&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printf(&quot; %d -&amp;gt;&quot;,temp-&amp;gt;data);&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; temp=temp-&amp;gt;link;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;br /&gt;}&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/04/sorted-linked-list-implementation-in-c.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-4605068511011984021</guid><pubDate>Sun, 13 Apr 2014 05:31:00 +0000</pubDate><atom:updated>2014-05-22T08:26:27.358-07:00</atom:updated><title>How to secure asterisk and a2billing</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hi Guys,&lt;/div&gt;&lt;div&gt;We all know that A2Billing is a great voip billing system for calling cards and sip calling, but many of us face security issues with asterisk and a2billing every now and then the server gets compromised and we loose our hard earned money just like that .. bad haa? No worries here are some suggestions using which you can secure your server and prevent the bad guys to take away your money.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;b&gt;Change default a2billing passwords like admin password ,mysql password,manager password.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;After installing a2billing your first step should be changing all default passwords.&lt;div&gt;1. A2Billing admin password (default password is chnagepassword)&lt;/div&gt;&lt;div&gt;2. Use a secure database password&amp;nbsp;&lt;/div&gt;&lt;div&gt;3. Change default asterisk manager username and password to a secure one. (default username : myasterisk pass: mycode)&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;b&gt;Change the default admin folder name from /a2billing/admin to other secured name&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Hackers usually hit and try the default folders on your ip/URL so its always good to change the folder name to some secure name instead of admin like my_s3cureadm3n.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;b&gt;Use ssl, redirect all the traffic from http urls to https.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Its always good to use ssl to secure connection.&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;Make sure that the mysql service is not available from out side&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Make sure that mysql server is only accessible from localhost and is not accessible from any outside ip/domain, otherwise hacker may get into database and steel your important information like card numbers etc.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;b&gt;Use different ssh port other than port 22&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;Use other than 22 port for ssh as hackers try to&amp;nbsp;brute force on port 22 to get into the server.&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Secure your asterisk from brut force using fail2ban&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;User fail to ban to block ip if someone enters wrong password for more than 3 times.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Secure your web acess and web2call pages using fail2ban.&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Allow only selected ips to access the web interfaces. Block Ips if they enter wrong username,password repeatedly.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Add only rates that you got from your termination provider,do not allow calls to expensive area codes.&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Its highly recommendable to keep only the destinations which are provided by your termination provided.&lt;/div&gt;&lt;div&gt;The hacker use the stolen account to call on premium number which can cause you huge loss.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Verify customers phone number on signup to prevent fraud.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Verify users phone number on signup so that you have some real information about the users this is very useful in preventing the fraud.&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Change the sip port to any port other than 5060&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Use sip port other than 5060 to prevent unauthorized entry ,brute force.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Block the asterisk manager port from outside and change the default password&lt;/b&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Do not allow anyone to connect form outside of the machine to asterisk server.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Verify paypal payments with the user&#39;s paypal email.&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;I hope the steps above can help you securing your a2billing server and prevent any fraud and losses.If you want I can do the above for you for 500 USD. You can get back to me on vids.cs@gmail.com&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/04/how-to-secure-asterisk-and-a2billing.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-564477140830517071</guid><pubDate>Wed, 19 Mar 2014 17:33:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.152-07:00</atom:updated><title>Packet Sniffing in linux</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;#include stdio.h&lt;br /&gt;#include stdlib.h&lt;br /&gt;#include pcap.h &lt;br /&gt;#include errno.h&lt;br /&gt;#include sys/socket.h&lt;br /&gt;#include netinet/in.h&lt;br /&gt;#include arpa/inet.h&lt;br /&gt;#include ctype.h&lt;br /&gt;#include string.h&lt;br /&gt;&lt;br /&gt;void capture_packet(u_char *arg, const struct pcap_pkthdr* pkthdr, const u_char* packet)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static int count=0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Packet Count: %d\n&quot;, ++count);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Recieved Packet Size: %d\n&quot;, pkthdr-&amp;gt;len);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Payload:\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&lt;pkthdr-&gt;len;i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isprint(packet[i]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%c &quot;,packet[i]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; . &quot;,packet[i]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((i%16==0 &amp;amp;&amp;amp; i!=0) || i==pkthdr-&amp;gt;len-1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n\n&quot;);&lt;br /&gt;}&lt;/pkthdr-&gt;&lt;br /&gt;&lt;br /&gt;int main(int argc, char **argv)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; char dev[20]; &lt;br /&gt;&amp;nbsp; char *net;&lt;br /&gt;&amp;nbsp; char *mask;&lt;br /&gt;&amp;nbsp; int ret;&amp;nbsp; &lt;br /&gt;&amp;nbsp; pcap_t* descr;&lt;br /&gt;&amp;nbsp; char errbuf[PCAP_ERRBUF_SIZE];&lt;br /&gt;&amp;nbsp; bpf_u_int32 netp; &lt;br /&gt;&amp;nbsp; bpf_u_int32 maskp;&lt;br /&gt;&amp;nbsp; printf(&quot;Enter network device name--eg: eth0&quot;);&lt;br /&gt;&amp;nbsp; scanf(&quot;%s&quot;,dev);&lt;br /&gt;&amp;nbsp; printf(&quot;\n+-------------------------------------------+\n|\t DEV: %s\n&quot;,dev);&lt;br /&gt;&amp;nbsp; ret = pcap_lookupnet(dev,&amp;amp;netp,&amp;amp;maskp,errbuf);&lt;br /&gt;&amp;nbsp; if(ret == -1)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp; &amp;nbsp; printf(&quot; %s\n&quot;, errbuf);&lt;br /&gt;&amp;nbsp; &amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; addr.s_addr = netp;&lt;br /&gt;&amp;nbsp; net = inet_ntoa(addr);&lt;br /&gt;&amp;nbsp; if(net == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror(&quot;inet_ntoa&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; printf(&quot;|\t NET: %s\n&quot;,net);&lt;br /&gt;&amp;nbsp; addr.s_addr = maskp;&lt;br /&gt;&amp;nbsp; mask = inet_ntoa(addr);&lt;br /&gt;&amp;nbsp; if(mask == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror(&quot;inet_ntoa&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; } &lt;br /&gt;&amp;nbsp; printf(&quot;|\t MASK: %s\n+-------------------------------------------+&quot;,mask);&lt;br /&gt;&amp;nbsp; descr = pcap_open_live(argv[1], BUFSIZ, 1, -1, errbuf);&lt;br /&gt;&amp;nbsp; if(descr == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\npcap_open_live() error: %s\n&quot;, errbuf);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; printf(&quot;\nPROCESS ID: %d\n&quot;,getpid());&lt;br /&gt;&amp;nbsp; printf(&quot;Packet filter firewall process started on network device: %s\n&quot;, argv[1]); &lt;br /&gt;&amp;nbsp; pcap_loop(descr, -1, capture_packet, NULL);&lt;br /&gt;&amp;nbsp; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;COMPILE:&lt;br /&gt;# gcc filename.c &amp;nbsp; -lpcap&lt;br /&gt;#&amp;nbsp; ./a.out&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/packet-sniffing-in-linux.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3264813873507174519</guid><pubDate>Wed, 19 Mar 2014 17:25:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.163-07:00</atom:updated><title>Linux Network Monitor example c program</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;#include stdio.h&lt;br /&gt;#include stdlib.h&lt;br /&gt;#include pcap.h &lt;br /&gt;#include errno.h&lt;br /&gt;#include sys/socket.h&lt;br /&gt;#include netinet/in.h&lt;br /&gt;#include arpa/inet.h&lt;br /&gt;#include signal.h&lt;br /&gt;#include ctype.h&lt;br /&gt;#include string.h&lt;br /&gt;#include unistd.h&lt;br /&gt;&lt;br /&gt;typedef struct apppp &lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; char data[20]; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct apppp *next;&lt;br /&gt;} app;&lt;br /&gt;&lt;br /&gt;void my_callback(u_char *arg, const struct pcap_pkthdr* pkthdr, const u_char* packet)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int i=0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; static int count=0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Packet Count: %d\n&quot;, ++count);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Recieved Packet Size: %d\n&quot;, pkthdr-&amp;gt;len);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Payload:\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for(i=0;i&lt;pkthdr-&gt;len;i++) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(isprint(packet[i]))&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;%c &quot;,packet[i]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot; . &quot;,packet[i]);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if((i%16==0 &amp;amp;&amp;amp; i!=0) || i==pkthdr-&amp;gt;len-1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;--------------------------------------------------------------------------------\n&quot;);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;void fun(int signum)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; printf(&quot;\nSignal: Monitoring process terminated...\n&quot;);&lt;br /&gt;&amp;nbsp; exit(0);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;int main(int argc, char **argv)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; char *dev; &lt;br /&gt;&amp;nbsp; char *net;&lt;br /&gt;&amp;nbsp; char *mask;&lt;br /&gt;&amp;nbsp; int ret;&amp;nbsp; &lt;br /&gt;&amp;nbsp; pcap_t* descr;&lt;br /&gt;&amp;nbsp; char errbuf[PCAP_ERRBUF_SIZE];&lt;br /&gt;&amp;nbsp; bpf_u_int32 netp; &lt;br /&gt;&amp;nbsp; bpf_u_int32 maskp;&lt;br /&gt;&amp;nbsp; struct in_addr addr;&lt;br /&gt;&amp;nbsp; FILE *fp;&lt;br /&gt;&amp;nbsp; app *p,*head;&lt;br /&gt;&amp;nbsp; char ch;&lt;br /&gt;&amp;nbsp; int ii,jj;&lt;br /&gt;&amp;nbsp; if(argc != 3)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;ERROR:\nSyntax: filename device policy-filename\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(0);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; printf(&quot;\n&quot;);&lt;br /&gt;&amp;nbsp; if(signal(SIGINT, fun) == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;WARNING: (SIGINT) Signal Handling system call error.\nProgram continued without signal handler...\n&quot;);&lt;br /&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(0);&lt;br /&gt;&amp;nbsp; }fp = fopen(argv[2],&quot;a&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(fp == NULL)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Error: Unable to open file\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ii = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; jj = 1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p = (app*)malloc(sizeof(app));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; head = p;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;next = NULL;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ch = fgetc(fp);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(ch == EOF) break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else if(ch == (int)&#39;\0&#39;) break;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else if(ch == (int)&#39;\n&#39;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; { &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;next = (app*)malloc(sizeof(app));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p = p-&amp;gt;next;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;next = NULL;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ii = -1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; jj++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else if(isdigit(ch)) p-&amp;gt;data[ii] = ch;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else if(ch == (int)&#39;.&#39;) p-&amp;gt;data[ii] = ch;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Policy file error: Unexpected characher \&quot;%c\&quot; found at line: \n&quot;, ch, jj);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;Process Terminating...!\n&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ii++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p-&amp;gt;data[ii] = &#39;\0&#39;;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fclose(fp);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; p = head;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n+-------------------------------------------+&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n|&amp;nbsp;&amp;nbsp; Block network packet from IP:&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n+-------------------------------------------+&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while(head != NULL)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\n|\t %s&quot;, head-&amp;gt;data);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; head = head-&amp;gt;next;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; printf(&quot;\n+-------------------------------------------+\n|\t DEV: %s\n&quot;,argv[1]);&lt;br /&gt;&amp;nbsp; ret = pcap_lookupnet(argv[1],&amp;amp;netp,&amp;amp;maskp,errbuf);&lt;br /&gt;&amp;nbsp; if(ret == -1)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; printf(&quot; %s\n&quot;, errbuf);&lt;br /&gt;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; addr.s_addr = netp;&lt;br /&gt;&amp;nbsp; net = inet_ntoa(addr);&lt;br /&gt;&amp;nbsp; if(net == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror(&quot;inet_ntoa&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; printf(&quot;|\t NET: %s\n&quot;,net);&lt;br /&gt;&amp;nbsp; addr.s_addr = maskp;&lt;br /&gt;&amp;nbsp; mask = inet_ntoa(addr);&lt;br /&gt;&amp;nbsp; if(mask == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror(&quot;inet_ntoa&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; } &lt;br /&gt;&amp;nbsp; printf(&quot;|\t MASK: %s\n+-------------------------------------------+&quot;,mask);&lt;br /&gt;&amp;nbsp; descr = pcap_open_live(argv[1], BUFSIZ, 1, -1, errbuf);&lt;br /&gt;&amp;nbsp; if(descr == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;\npcap_open_live() error: %s\n&quot;, errbuf);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; printf(&quot;\nPROCESS ID: %d\n&quot;,getpid());&lt;br /&gt;&amp;nbsp; printf(&quot;Packet Monitor process started on network device: %s\n&quot;, argv[1]); &lt;br /&gt;&amp;nbsp; pcap_loop(descr, -1, my_callback, NULL);&lt;br /&gt;&amp;nbsp; printf(&quot;\n\n\n------------packet capturing monitor completed------------\n\n&quot;);&lt;br /&gt;&amp;nbsp; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/pkthdr-&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/linux-network-monitor-example-c-program.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-77265004310802852</guid><pubDate>Wed, 19 Mar 2014 17:19:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.175-07:00</atom:updated><title>Get device configuration in linux using c program</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;#include stdio.h&lt;br /&gt;#include stdlib.h&lt;br /&gt;#include pcap.h &lt;br /&gt;#include errno.h&lt;br /&gt;#include sys/socket.h&lt;br /&gt;#include netinet/in.h&lt;br /&gt;#include arpa/inet.h&lt;br /&gt;&lt;br /&gt;int main(int argc, char **argv)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; char *net; /* dot notation of the network address */&lt;br /&gt;&amp;nbsp; char *mask;/* dot notation of the network mask&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;&amp;nbsp; int ret;&amp;nbsp;&amp;nbsp; /* return code */&lt;br /&gt;&amp;nbsp; char errbuf[PCAP_ERRBUF_SIZE];&lt;br /&gt;&amp;nbsp; bpf_u_int32 netp; /* ip&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; */&lt;br /&gt;&amp;nbsp; bpf_u_int32 maskp;/* subnet mask */&lt;br /&gt;&amp;nbsp; struct in_addr addr;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; if (argc != 2) {&amp;nbsp;&amp;nbsp; //check if command syntax is correct&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printf(&quot;please provide valid network card name&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; /* print out device name */&lt;br /&gt;&amp;nbsp; printf(&quot;DEV: %s\n&quot;,argv[1]);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; /* ask pcap for the network address and mask of the device */&lt;br /&gt;&amp;nbsp; ret = pcap_lookupnet(argv[1],&amp;amp;netp,&amp;amp;maskp,errbuf);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; if(ret == -1)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp; printf(&quot;%s\n&quot;,errbuf);&lt;br /&gt;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; /* get the network address in a human readable form */&lt;br /&gt;&amp;nbsp; addr.s_addr = netp;&lt;br /&gt;&amp;nbsp; net = inet_ntoa(addr);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; if(net == NULL)/* thanks Scott :-P */&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror(&quot;inet_ntoa&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp; printf(&quot;NET: %s\n&quot;,net);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; /* do the same as above for the device&#39;s mask */&lt;br /&gt;&amp;nbsp; addr.s_addr = maskp;&lt;br /&gt;&amp;nbsp; mask = inet_ntoa(addr);&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; if(mask == NULL)&lt;br /&gt;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; perror(&quot;inet_ntoa&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; exit(1);&lt;br /&gt;&amp;nbsp; }&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp; printf(&quot;MASK: %s\n&quot;,mask);&lt;br /&gt;&lt;br /&gt;&amp;nbsp; return 0;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;COMPILE:&lt;br /&gt;# gcc filename.c -lpcap -o pcap&lt;br /&gt;# ./pcap lo&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/get-device-configuration-in-linux-using.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-987442099646227380</guid><pubDate>Wed, 19 Mar 2014 17:10:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.184-07:00</atom:updated><title>Drop packets using NetFilter in linux</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;/* Sample code to install a Netfilter hook function that will&lt;br /&gt;&amp;nbsp;* drop all incoming packets on an interface we specify */&lt;br /&gt;&amp;nbsp;#define __KERNEL__&lt;br /&gt;&amp;nbsp;#define MODULE&lt;br /&gt;&amp;nbsp;#include linux/module.h&lt;br /&gt;&amp;nbsp;#include linux/kernel.h&lt;br /&gt;&amp;nbsp;#include linux/netdevice.h&lt;br /&gt;&amp;nbsp;#include linux/netfilter.h&lt;br /&gt;&amp;nbsp;#include linux/netfilter_ipv4.h&lt;br /&gt;&amp;nbsp;/* This is the structure we shall use to register our function */&lt;br /&gt;&amp;nbsp; static struct nf_hook_ops nfho;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;/* Name of the interface we want to drop packets from */&lt;br /&gt;&amp;nbsp; static char *drop_if = &quot;lo&quot;;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;/* This is the hook function itself */&lt;br /&gt;&amp;nbsp; unsigned int hook_func(unsigned int hooknum,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; struct sk_buff **skb,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const struct net_device *in,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; const struct net_device *out,&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int (*okfn)(struct sk_buff *))&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (strcmp(in-&amp;gt;name, drop_if) == 0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; printk(&quot;Dropped packet on %s...\n&quot;, drop_if);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return NF_DROP;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } else {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return NF_ACCEPT;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/* Initialisation routine */&lt;br /&gt;int init_module()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Fill in our hook structure */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nfho.hook&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = hook_func;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* Handler function */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nfho.hooknum&amp;nbsp; = NF_IP_PRE_ROUTING; /* First hook for IPv4 */&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nfho.pf&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = PF_INET;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nfho.priority = NF_IP_PRI_FIRST;&amp;nbsp;&amp;nbsp; /* Make our function first */&lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nf_register_hook(&amp;amp;nfho);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;br /&gt;}&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;/* Cleanup routine */&lt;br /&gt;void cleanup_module()&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; nf_unregister_hook(&amp;amp;nfho);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;/*this program is example kernel program and need to be registered. This service will be started at boot time.*/&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/drop-packets-using-netfilter-in-linux.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3508657971233966041</guid><pubDate>Wed, 19 Mar 2014 10:46:00 +0000</pubDate><atom:updated>2014-10-04T11:09:18.352-07:00</atom:updated><title>AMD graphic code 43 error?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;h2 style=&quot;text-align: left;&quot;&gt;&lt;br /&gt;Nowdays the laptop doesnot take the drivers normally when we boot/format the computer with windows 7 or windows 8.AMD graphice code 43 is error is due to this problem.The driver is not installed properly or driver is out of date.You can download the driver from the different site but I suggest to download from the geinue sites like if you laptop is of Hp gp to hp.com and download the drivers.&lt;br /&gt;After downloading the drivers&lt;br /&gt;1st install intel driver and then install amd driver. Now restart your computer.&lt;/h2&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/amd-graphic-code-43-error.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3255997994036066325</guid><pubDate>Sun, 16 Mar 2014 23:21:00 +0000</pubDate><atom:updated>2014-05-23T04:02:03.457-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Communication</category><category domain="http://www.blogger.com/atom/ns#">Comparison</category><category domain="http://www.blogger.com/atom/ns#">Conferencing</category><category domain="http://www.blogger.com/atom/ns#">Gateway</category><category domain="http://www.blogger.com/atom/ns#">Interworking</category><category domain="http://www.blogger.com/atom/ns#">multimedia</category><category domain="http://www.blogger.com/atom/ns#">RTP</category><category domain="http://www.blogger.com/atom/ns#">SIP</category><category domain="http://www.blogger.com/atom/ns#">SIP-JS</category><category domain="http://www.blogger.com/atom/ns#">Software</category><category domain="http://www.blogger.com/atom/ns#">Systems</category><category domain="http://www.blogger.com/atom/ns#">video</category><category domain="http://www.blogger.com/atom/ns#">webrtc</category><title>My WebRTC related papers from 2013</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;This post gives an overview of my past and ongoing research on web-based multimedia communication. I wrote four published co-authored research papers last year answering these questions - How does WebRTC interoperate with existing SIP/VoIP systems and how does SIP in JavaScript compare with other approaches? What challenges lie ahead of enterprises in adopting WebRTC and what can they do? How can developers take advantage of WebRTC and HTML5 in creating rich internet applications in the cloud? How does emerging HTML5 technology allow better enterprise collaboration using rich application mash-ups? Read on if one or more of these questions interest you...&lt;div&gt;&lt;br /&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-sip-js-private.pdf&quot;&gt;A Case for SIP in JavaScript&lt;/a&gt;&lt;/h3&gt;&lt;div&gt;WebRTC (Web Real Time Communications) promises easy interaction with others using just your web browser on a website. SIP (Session Initiation Protocol) is the backbone of Internet communications interconnecting many devices, servers and systems you use daily for your call. Connecting WebRTC with SIP/RTP raises more questions than what we already know, e.g., does interoperability really work? what changes do you need in the existing devices and systems? does the conversion happen at the server or in the browser? what are the trade-offs of doing the translation? what are the risks if you go full throttle with WebRTC in the browser? and many more. There is a need for a fair comparison to evaluate not only what is theoretically possible but also practically achievable with existing systems.&lt;/div&gt;&lt;div&gt;&quot;This paper presents the challenges and compares the alternatives to interoperate between the Session Initiation Protocol (SIP)-based systems and the emerging standards for the Web Real-Time Communication (WebRTC). We argue for an end-point and web-focused architecture, and present both sides of the SIP in JavaScript approach. Until WebRTC has ubiquitous cross-browser availability, we suggest a fall back strategy for web developers — detect and use HTML5 if available, otherwise fall back to a browser plugin.&quot;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-sip-js-private.pdf&quot;&gt;read &amp;gt;&amp;gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-webrtc-enterprise-private.pdf&quot;&gt;Taking on WebRTC in an enterprise&lt;/a&gt;&lt;/h3&gt;&lt;div&gt;On one hand WebRTC enables the end-users to communicate with others directly from their browsers, on the other it opens &lt;strike&gt;a can of worms&lt;/strike&gt;&amp;nbsp;a door to many novel communicating applications that scares your enterprise IT guy. Existing enterprise policies and tools are designed to work with existing communication systems such as emails and VoIP, and employ bunch of edge devices such as firewalls, reverse proxies, email filters and SBCs (session border controllers) to protect the enterprise data and interaction from the outside world. Unfortunately, session-less WebRTC media flows and, more importantly, end-to-end encrypted data channels, pose the same threat to enterprise security that peer-to-peer applications did. The first reaction from your IT guy will likely be to block all such peer-to-peer flows in the firewall. There is a need to systematically understand the risk and propose potential solutions so that the pearls of WebRTC can co-exist with the chains-and-locks of enterprise security.&lt;/div&gt;&lt;div&gt;&amp;nbsp;&quot;WebRTC will have a major impact on enterprise communications, as well as consumer communications and their interactions with enterprises. This article illustrates and discusses a number of issues that are specific to WebRTC enterprise usage. Some of these relate to security: firewall traversal, access control, and peer-to-peer data flows. Others relate to compliance: recording, logging, and enforcing enterprise policies. Additional enterprise considerations relate to integration and interoperation with existing communication infrastructure and session-centric telephony systems.&quot;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-webrtc-enterprise-private.pdf&quot;&gt;read&amp;gt;&amp;gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-artisy-paper-private.pdf&quot;&gt;Building communicating web applications leveraging endpoints and cloud resource service&lt;/a&gt;&lt;/h3&gt;&lt;div&gt;One problem with the growth of SIP was that there were not many applications that demonstrated its capabilities beyond replacing a telephone call. This resulted in telephony mindset dominating the evolution in both standards and deployments. At the core of it, WebRTC essentially does most of what SIP aims for - peer-to-peer media flows and control in the end-points. Unfortunately, telephony influence in existing SIP devices, servers and providers have hidden that benefit from the end-user. There is a need to avoid such dominating telephony influence on WebRTC by demonstrating how easy it is to build communicating web applications, &lt;i&gt;without &lt;/i&gt;relying on existing (and expensive) VoIP infrastructure.&amp;nbsp;&lt;/div&gt;&lt;div&gt;Secondly, the open web is threatened by closed social websites that tend to lock the user data in their ecosystem, and force the user to only use what they build, go where they exist and talk to who they allow. This developer focused research is an attempt to go against them, by showing a rich internet application architecture focused on application logic in the end-point and application mash-ups at the data-level. It shows my 15+ crucial web widgets written in few hundred lines of code each, covering wide rand of use cases from video click-to-call to automatic-call-distribution, call-queue and shared white-boards, and my web applications such as multiparty video collaboration, instant messaging/communicator, video presence and personal social wall, all written using HTML5 without depending on &quot;the others&quot; (imagine tune from &lt;i&gt;lost&lt;/i&gt;&amp;nbsp;played here) - the others are the existing SIP, XMPP or Flash Player based systems.&lt;/div&gt;&lt;div&gt;&quot;We describe a resource-based architecture to quickly and easily build communicating web applications. Resources are structured and hierarchical data stored in the server but accessed by the endpoint via the application logic running in the browser. The architecture enables deployments that are fully cloud based, fully on-premise or hybrid of the two. Unlike a single web application controlling the user&#39;s social data, this model allows any application to access the authenticated user&#39;s resources promoting application mash-ups. For example, user contacts are created by one application but used by another based on the permission from the user instead of the first application.&quot;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-artisy-paper-private.pdf&quot;&gt;read&amp;gt;&amp;gt;&lt;/a&gt;&amp;nbsp;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;h3 style=&quot;text-align: left;&quot;&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-private-overlay-private.pdf&quot;&gt;Private overlay of enterprise social data and interactions in the public web context&lt;/a&gt;&lt;/h3&gt;&lt;div&gt;Continuing the previous research theme, this research focuses on enterprise collaboration and enterprise social interactions. The goal is to define a few architectural principles to facilitate rich user interactions, both real-time and offline in the form of digital trail, in an enterprise environment. In particular, my proof-of-concept project described in the paper shows how to do web annotations, virtual presence, co-browsing, click-to-call from corporate directory, and internal context sensitive personal wall. The basic idea is to separate the application logic from the user data, keep the user data protected within the enterprise network, use public web as a context for storing the user interactions and build a generic web application framework running the browser.&lt;/div&gt;&lt;div&gt;&quot;We describe our project, living-content, that creates a private overlay of enterprise social data and interactions on public websites via a browser extension and HTML5. It enables starting collaboration from and storing private interactions in the context of web pages. It addresses issues such as lack of adoption, privacy concerns and fragmented collaboration seen in enterprise social networks. In a data-centric approach, we show application scenarios for virtual presence, web annotations, interactions and mash-ups such as showing a user&#39;s presence on linked-in pages or embedding a social wall in corporate directory without help from those websites. The project enables new group interactions not found in existing social networks.&quot;&lt;/div&gt;&lt;div&gt;&lt;a href=&quot;http://kundansingh.com/papers/2013-private-overlay-private.pdf&quot;&gt;read&amp;gt;&amp;gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/my-webrtc-related-papers-from-2013.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-4629662181912559665</guid><pubDate>Sun, 16 Mar 2014 17:41:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.195-07:00</atom:updated><title>Make USB bootable pendrive</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;If your system hardware doesn&#39;t include cd/dvd drive then you can also use usb pendrive to format and install new windows operating system. For linux operating system you can also use bootable pendrive but that is a bit different. Firstly, make sure that your computer supports usb bootable pendrive. If yes then open command prompt and type below commands in serial order.&lt;br /&gt;1. diskpart&lt;br /&gt;2. list disk&lt;br /&gt;&amp;nbsp;&amp;nbsp; (It will list all the drives of your system. See the pendrive&#39;s disk number)&lt;br /&gt;3. select disk 1&lt;br /&gt;&amp;nbsp;&amp;nbsp; (Let &quot;disk 1&quot; is representing your pendrive)&lt;br /&gt;4. clean&lt;br /&gt;5. create partition primary&lt;br /&gt;6. format quick fs=fat32&lt;br /&gt;7. active&lt;br /&gt;8. assign&lt;br /&gt;9. exit&lt;br /&gt;&amp;nbsp;&amp;nbsp; (Also close all windows that are currently related to pendrive)&lt;br /&gt;10. Now, copy whole windows 7 dvd setup files into pendrive as it is.&lt;br /&gt;&amp;nbsp;&amp;nbsp; (Dont copy it in any folder or zip. Copy setup files of windows directly in pendrive, and not in any&amp;nbsp; folder on pendrive) (Dont copy other files in to pendrive, else it could show some error).&lt;br /&gt;&lt;br /&gt;Now, your pendrive is ready to boot windows setup.&lt;br /&gt;&lt;br /&gt;Reboot your computer and choose pendrive (name of bootable pendrive) to boot and then follow the steps. This process of installing windows using pendrive in very faster and time saving rather than installing via cd/dvd.&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/make-usb-bootable-pendrive.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-6111206079182318472</guid><pubDate>Sat, 15 Mar 2014 20:19:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.205-07:00</atom:updated><title>What is a protocol in computer system?</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Protocol is the set of rules to do a particular thing. It is actually the mutual understanding between things/objects/devices so that they can communicate/interact with each other. So in computer network, protocols are set of rules to govern a particular task. Every work to be performed in computer system has particular protocol through which it could be made possible.&lt;br /&gt;Eg:&lt;br /&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;FTP is file transfer protocol that supports file transfer from one system to another.&lt;/li&gt;&lt;li&gt;HTTP protocol is used to get hypertext and multimedia data.&lt;/li&gt;&lt;li&gt;RTSP (Real time streaming protocol) supports the online video transfer at the real time.&lt;/li&gt;&lt;li&gt;VoIP (voice over IP) used for real time audio data transfer.&lt;/li&gt;&lt;li&gt;TCP used to set up a reliable connection send packets between two systems.&lt;/li&gt;&lt;li&gt;UDP used to send&amp;nbsp; packets in unreliable way.&lt;/li&gt;&lt;li&gt;MIME used for fetching multimedia data.&lt;/li&gt;&lt;li&gt;SMTP used for email sending.&lt;/li&gt;&lt;li&gt;POP used for receiving mails protocols.&lt;/li&gt;&lt;li&gt;ICMP&amp;nbsp; used to get echo of packed node and trace route of packet.&lt;/li&gt;&lt;li&gt;NFS network file system protocol used for supporting file system over network.&lt;/li&gt;&lt;li&gt;LDAP (light weight directory access protocol) used for accessing directory in IBM systems.&lt;/li&gt;&lt;li&gt;Sliding window protocol: It is Datalink layer protocol used to overcome the problem of &quot;FAST SENDER MACHINE AND SLOW RECEIVER MACHINE).&lt;/li&gt;&lt;li&gt;ARP (access recolution protocol) used to get MAC address of a particular IP adderss (network layer address to datalink layer address). &lt;/li&gt;&lt;/ul&gt;&lt;ul style=&quot;text-align: left;&quot;&gt;&lt;li&gt;RARP is the reverse of ARP protocol.&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/what-is-protocol-in-computer-system.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-8513718632551957311</guid><pubDate>Sat, 15 Mar 2014 19:55:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.216-07:00</atom:updated><title>Metaclass in OOPS</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;In &lt;a href=&quot;http://en.wikipedia.org/wiki/Object-oriented_programming&quot; title=&quot;Object-oriented programming&quot;&gt;object-oriented&lt;/a&gt; &lt;a href=&quot;http://en.wikipedia.org/wiki/Computer_programming&quot; title=&quot;Computer programming&quot;&gt;programming&lt;/a&gt;, a &lt;b&gt;metaclass&lt;/b&gt; is a &lt;a class=&quot;mw-redirect&quot; href=&quot;http://en.wikipedia.org/wiki/Class_%28computer_science%29&quot; title=&quot;Class (computer science)&quot;&gt;class&lt;/a&gt; whose instances are classes. Just as an ordinary class defines the  behavior of certain objects, a metaclass defines the behavior of certain  classes and their instances. Not all object-oriented programming &lt;a class=&quot;mw-redirect&quot; href=&quot;http://en.wikipedia.org/wiki/Programming_languages&quot; title=&quot;Programming languages&quot;&gt;languages&lt;/a&gt; support metaclasses. Among those that do, the extent to which  metaclasses can override any given aspect of class behavior varies.  Metaclasses can be implemented by having classes be &lt;a href=&quot;http://en.wikipedia.org/wiki/First-class_citizen&quot; title=&quot;First-class citizen&quot;&gt;first-class citizen&lt;/a&gt;, in which case a metaclass is simply class that constructs classes. Each language has its own &lt;a class=&quot;mw-redirect&quot; href=&quot;http://en.wikipedia.org/wiki/Metaobject_protocol&quot; title=&quot;Metaobject protocol&quot;&gt;metaobject protocol&lt;/a&gt;, a set of rules that govern how objects, classes, and metaclasses interact. In Java programming language, metaclass in base class of every class.&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/metaclass-in-oops.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-7622657637937440834</guid><pubDate>Thu, 13 Mar 2014 06:14:00 +0000</pubDate><atom:updated>2014-05-23T03:48:59.399-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">C Programming</category><category domain="http://www.blogger.com/atom/ns#">Data Structure</category><title>Priority Queue Implementation in C using Arrays</title><description>&lt;div style=&quot;text-align: left&quot; dir=&quot;ltr&quot; trbidi=&quot;on&quot;&gt;   &lt;p&gt;#include &amp;lt;stdio.h&amp;gt;&lt;/p&gt;    &lt;p&gt;#include &amp;lt;conio.h&amp;gt;&lt;/p&gt;    &lt;p&gt;#define size 5&lt;/p&gt;    &lt;p&gt;int queue[5][2] = {0};&lt;/p&gt;    &lt;p&gt;int top = -1;&lt;/p&gt;    &lt;p&gt;int bottom;&lt;/p&gt;    &lt;p&gt;void push(int value, int pr)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;int i,j,k;&lt;/p&gt;    &lt;p&gt;if(top &amp;lt; size-1)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;if(queue[top][1] &amp;gt; pr)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;for(i=0;i&amp;lt;top;i++)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;if(queue[i][1] &amp;gt; pr)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;break;&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;for(j=top;j&amp;gt;=i;j--)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;queue[j+1][0] = queue[j][0];&lt;/p&gt;    &lt;p&gt;queue[j+1][1] = queue[j][1];&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;top++;&lt;/p&gt;    &lt;p&gt;queue[i][0] = value;&lt;/p&gt;    &lt;p&gt;queue[i][1] = pr;&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;else&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;top++;&lt;/p&gt;    &lt;p&gt;queue[top][0] = value;&lt;/p&gt;    &lt;p&gt;queue[top][1] = pr;&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;else&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;queue overflow \n&amp;quot;);&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;void pop()&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;int i;&lt;/p&gt;    &lt;p&gt;if(queue[0][0] == 0)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;\n The queue is empty&amp;#160; \n&amp;quot;);&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;else&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;After , dequeue the following value is erased \n&amp;#160; %d \n&amp;quot;, queue[0][0]);&lt;/p&gt;    &lt;p&gt;for(i=0;i&amp;lt;top;i++)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;queue[i][0] = queue[i+1][0];&lt;/p&gt;    &lt;p&gt;queue[i][1] = queue[i+1][1];&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;queue[top][0] = 0;&lt;/p&gt;    &lt;p&gt;queue[top][1] = 0;&lt;/p&gt;    &lt;p&gt;top--;&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;void display()&lt;/p&gt;    &lt;p&gt;{ int i,j;&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;Element\tPriority \n&amp;quot;);&lt;/p&gt;    &lt;p&gt;for(i=size - 1;i&amp;gt;=0;i--)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;for(j=0;j&amp;lt;2;j++)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;printf(&amp;quot; %d\t&amp;quot;,queue[i][j]);&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;\n&amp;quot;);&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;int main()&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;int i,j, ch=0 ,value = 0,pr=0;&lt;/p&gt;    &lt;p&gt;while(1)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;\n Please Enter the choice. \n&amp;quot;);&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;1 for Enqueue \n 2 for Dequeue \n 3 for display\n&amp;#160; 5 for exit: \t \n&amp;quot;);&lt;/p&gt;    &lt;p&gt;scanf(&amp;quot;%d&amp;quot;,&amp;amp;ch);&lt;/p&gt;    &lt;p&gt;switch(ch)&lt;/p&gt;    &lt;p&gt;{&lt;/p&gt;    &lt;p&gt;case 1:&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;\n Please Enter the number to be inserted: \t &amp;quot;);&lt;/p&gt;    &lt;p&gt;scanf(&amp;quot;%d&amp;quot;, &amp;amp;value);&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;\n Please Enter the priority: \t &amp;quot;);&lt;/p&gt;    &lt;p&gt;scanf(&amp;quot;%d&amp;quot;, &amp;amp;pr);&lt;/p&gt;    &lt;p&gt;push(value,pr);&lt;/p&gt;    &lt;p&gt;break;&lt;/p&gt;    &lt;p&gt;case 2:&lt;/p&gt;    &lt;p&gt;pop();&lt;/p&gt;    &lt;p&gt;break;&lt;/p&gt;    &lt;p&gt;case 3:&lt;/p&gt;    &lt;p&gt;display();&lt;/p&gt;    &lt;p&gt;break;&lt;/p&gt;    &lt;p&gt;case 5:&lt;/p&gt;    &lt;p&gt;exit(0);&lt;/p&gt;    &lt;p&gt;default:&lt;/p&gt;    &lt;p&gt;printf(&amp;quot;You entered wrong choice\n&amp;quot;);&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt;    &lt;p&gt;}&lt;/p&gt; &lt;/div&gt;  </description><link>http://cpnetworking.blogspot.com/2014/03/priority-queue-implementation-in-c.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-809036740159933499</guid><pubDate>Sat, 08 Mar 2014 19:03:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.226-07:00</atom:updated><title>Android gravity sensor application programming</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;public class gravity implements SensorEventListener{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; SensorManager sensormanager;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Sensor sensor;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public gravity()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sensormanager = (SensorManager)getSystemService(SENSOR_SERVICE);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sensor = sensormanager.getDefaultSensor(Sensor.TYPE_GRAVITY);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onAccuracyChanged(Sensor arg0, int arg1) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onSensorChanged(SensorEvent arg0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ttt.setText(&quot;X: &quot;+String.valueOf(arg0.values[0])+&quot; degree\nY: &quot;+String.valueOf(arg0.values[1])+&quot; degree\nZ: &quot;+String.valueOf(arg0.values[2])+&quot; degree&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void resume() &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sensormanager.registerListener(this, sensor, SensorManager.SENSOR_DELAY_NORMAL);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void pause()&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sensormanager.unregisterListener(this);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/android-gravity-sensor-application.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-3029957404167250007</guid><pubDate>Sat, 08 Mar 2014 19:01:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.238-07:00</atom:updated><title>Android GPS application programming</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;public class MainActivity extends Activity {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location p1=new Location(&quot;point a&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Location p2=new Location(&quot;point b&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; double longitude,latitude;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextView speedview,xstart,ystart,distance,time;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; float speed,dist;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LocationManager lm;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Button b;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int flag,flag1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; int hour,min,sec;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String location;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.activity_main);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; speedview=(TextView)findViewById(R.id.speedview);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xstart=(TextView)findViewById(R.id.slatitude);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; b=(Button)findViewById(R.id.button1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ystart=(TextView)findViewById(R.id.slongitude);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; distance=(TextView)findViewById(R.id.distance);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; time=(TextView)findViewById(R.id.time);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Toast.makeText(getApplicationContext(), &quot;Wait while device check your position.&quot;, Toast.LENGTH_LONG).show();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flag = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flag1 = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; hour = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; min = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; sec = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lm =&amp;nbsp; (LocationManager) this.getSystemService(Context.LOCATION_SERVICE);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; lm.requestLocationUpdates(LocationManager.GPS_PROVIDER, 0, 0, new LocationListener() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onStatusChanged(String arg0, int arg1, Bundle arg2) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onProviderEnabled(String arg0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Log.d(&quot;Latitude&quot;,&quot;enable&quot;);&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onProviderDisabled(String arg0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Log.d(&quot;Latitude&quot;,&quot;disable&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onLocationChanged(Location arg0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(flag==0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p1.setLatitude(arg0.getLatitude());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p1.setLongitude(arg0.getLongitude());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flag=1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; dist=(float)0.0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; xstart.setText(&quot;Latitude: &quot;+String.valueOf(latitude));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; ystart.setText(&quot;Longitude: &quot;+String.valueOf(longitude));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; latitude=arg0.getLatitude();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; longitude=arg0.getLongitude();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; speed=arg0.getSpeed(); &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; speed=(float)((speed*10)/2.55);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; speedview.setText(String.valueOf(speed)+&quot;&amp;nbsp; kmph&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p2.setLatitude(latitude);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; p2.setLongitude(longitude);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; dist=p2.distanceTo(p1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(flag1==1)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; distance.setText(String.valueOf(dist)+&quot;&amp;nbsp; km&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; Date date=new Date();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; b.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View arg0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; if(flag1==0)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flag1=1;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flag=0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; b.setText(&quot;Stop&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //to start timer code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; flag1=0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; b.setText(&quot;Start&quot;);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; //to reset timer code&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean onCreateOptionsMenu(Menu menu) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Inflate the menu; this adds items to the action bar if it is present.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; getMenuInflater().inflate(R.menu.activity_main, menu);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;}&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/android-gps-application-programming.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-7122141608041993921.post-223932534857295839</guid><pubDate>Sat, 08 Mar 2014 19:00:00 +0000</pubDate><atom:updated>2014-05-21T10:29:20.249-07:00</atom:updated><title>Android Shared Preferences (cache) example code</title><description>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;public class MainActivity extends Activity {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Button show,save;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; EditText e;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; TextView t;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; protected void onCreate(Bundle savedInstanceState) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; super.onCreate(savedInstanceState);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; setContentView(R.layout.activity_main);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; show = (Button)findViewById(R.id.button2);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; save = (Button)findViewById(R.id.button1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t = (TextView)findViewById(R.id.textView1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; e = (EditText)findViewById(R.id.editText1);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; final SharedPreferences s = getSharedPreferences(&quot;c&quot;, 0);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; final SharedPreferences.Editor se = this.getSharedPreferences(&quot;c&quot;, 0).edit();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; save.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View arg0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; se.putString(&quot;c&quot;, e.getText().toString());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; se.commit();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; show.setOnClickListener(new View.OnClickListener() {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; public void onClick(View arg0) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // TODO Auto-generated method stub&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; t.setText(s.getString(&quot;c&quot;, &quot;null&quot;));&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; });&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Override&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public boolean onCreateOptionsMenu(Menu menu) {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; // Inflate the menu; this adds items to the action bar if it is present.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; getMenuInflater().inflate(R.menu.activity_main, menu);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; return true;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;}&lt;/div&gt;</description><link>http://cpnetworking.blogspot.com/2014/03/android-shared-preferences-cache.html</link><author>noreply@blogger.com (Unknown)</author><thr:total>0</thr:total></item></channel></rss>