<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>

<channel>
	<title>Shaikh Sonny Aman's Blog</title>
	<atom:link href="http://wp.amanpages.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://wp.amanpages.com</link>
	<description>Lets learn and share!</description>
	<pubDate>Mon, 02 Feb 2009 17:07:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>MySQL DBA Preparation: Mysql Architecture</title>
		<link>http://wp.amanpages.com/2009/02/02/mysql-dba-preparation-mysql-architecture/</link>
		<comments>http://wp.amanpages.com/2009/02/02/mysql-dba-preparation-mysql-architecture/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 17:07:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://wp.amanpages.com/2009/02/02/mysql-dba-preparation-mysql-architecture/</guid>
		<description><![CDATA[Hasin bhai is one of most
encouraging persons I have ever met. Good people generally advice you
to do good, but he will support and encourage (and push) for any good
thing. He took my word(along with some others) to take preparation for
MySQL DBA exam. I don&#8217;t know if I can make it, but I will go through
the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://hasin.wordpress.com/">Hasin</a> bhai is one of most<br />
encouraging persons I have ever met. Good people generally advice you<br />
to do good, but he will support and encourage (and push) for any good<br />
thing. He took my word(along with some others) to take preparation for<br />
MySQL DBA exam. I don&#8217;t know if I can make it, but I will go through<br />
the book MySQL Certification Study Guide&#8217;s chapters related to DBA<br />
exams. So, I thought to share what I&#8217;ve learned( or need to learn )<br />
reading the book here with you.</p>
<h1>23.1. Client/Server Overview</h1>
<p><strong>What is mysqld_safe?</strong><br />
It is a non-client utility script for starting up and monitoring the server.<br />
<strong><br />
What is myisamchk?</strong><br />
It<br />
is a stand alone non-client utility program for checking and repair<br />
isam database by accessing/modifying table files directlly.</p>
<p><strong>In what language the interface API is written?</strong><br />
C</p>
<p><strong>How you can get the C client library?</strong><br />
The C client library is available as part of MySQL distributions.</p>
<p><strong>What are mysql connectors?</strong><br />
The<br />
connectors are drivers that act as bridges to the MySQL server for<br />
client programs that communicate using a particular protocol.</p>
<p><strong>Which connectors are provided by MySQL AB?</strong><br />
MySQL<br />
Connector/OBDC, MySQL Connector/J, and MySQL Connector/NET, which are<br />
connectors for clients that use the ODBC, JDBC, or .NET protocols.</p>
<p><strong>MySQL works in which type of environment?</strong><br />
Distributed environment</p>
<p><strong>Can you connect to the MySQL server directly if it is running on your local machine?</strong><br />
No,A client program must be used even to connect to a mysql daemon running on local machine.</p>
<p><strong>Can mysql be used in heterogeneous network?</strong><br />
yes</p>
<p><strong>Can mysql provides cross platform interoperability?</strong><br />
yes</p>
<p><strong>To connect to a mysql server running on window, do you must use a client running on windows?</strong><br />
No, client or server can run on any system.</p>
<h1>23.2. Communication Protocols</h1>
<p><strong>If the client program and the server runs on same machine, what type connection is made to communicate?</strong><br />
Local connection.</p>
<p><strong>TCP/IP cannot be used in local connection. true or false?</strong><br />
false</p>
<p><strong>What other protocols can be used for remote connections except TCP/IP</strong><br />
None.<br />
<strong><br />
All operating system excepts MacOSX supports TCP/IP, true/false?</strong><br />
False. All OS supports it<br />
<strong><br />
Unix socket file is supported for Unix only</strong><br />
true<br />
<strong><br />
Unix socket files can be used for remote connection only between two mysqld both running on unix systems</strong><br />
False, socket files can be only used for local connection</p>
<p><strong>Named pipe and shared memory can be used for remote connection between two mysqld both running windows</strong><br />
false, they can be used only for local connection.<br />
<strong></strong></p>
<p><strong>How TCP/IP can be disabled?</strong><br />
If MySQL server is started with the &#8211;skip-networking option.</p>
<p><strong>Some versions of Unix servers do not support unix socket file protocol.</strong><br />
false. every version supports.</p>
<p><strong>Named pipes are supported by every windows server.</strong><br />
false, only the servers ha -nt in its name (mysql-nt, mysql-max-nt).</p>
<p><strong>Named pipes are enbaled by default.</strong><br />
false</p>
<p><strong>How to enable named pipes?</strong><br />
by starting the -nt server with the <strong>&#8211;enable-named-pipe</strong> option.</p>
<p><strong>Shared memory connections are suppoted by windows server only which name has -nt.</strong><br />
false, supported by all windows servers.</p>
<p><strong>Shared memory is enabled by default.</strong><br />
false</p>
<p><strong>How to enable shared memory?</strong><br />
you must start the server with the <strong>&#8211;shared-memory</strong> option. (Note: no &#8216;<strong>enable</strong>&#8216; prefix)</p>
<p><strong>All the connection methods are equally efficient.</strong><br />
false</p>
<p><strong>Communication via named pipe is faster than TCP/IP in every windows configuration.</strong><br />
false, in many windows configuration they are slower.</p>
<p><strong>On Unix, unix socket file provides better performance than TCP/IP.</strong><br />
true</p>
<p><strong>ODBC is faster than native C library on some platform.</strong><br />
false, its slower on any platform since it is layered on top of the C lib.</p>
<p><strong>JDBC connection made via mysql connector/J is much slower than the connection made by native C client library.</strong><br />
false. its roughly about the same speed.</p>
<h1>23.3. The SQL Parser and Storage Engine Tiers</h1>
<p><strong>The server executes each statement in a tree tier processing model.</strong><br />
false, in  a two tire processing model.</p>
<p><strong>Upper tier includes the SQL parser and opitmizer.</strong><br />
true</p>
<p><strong>Parser and optimizer directly interact with the tables only available in the statement.</strong><br />
false, they do not interact to any table directly.</p>
<p><strong>The lower tier comprises of only one selected storage engine.</strong><br />
flase. a set of storage engines.</p>
<p><strong>Storage engines cannot be included at configuration time.</strong><br />
false. they can be easily included in the server at configuration time.</p>
<p><strong>The SQL tier is highly dependant on the storage engine managing any given table.</strong><br />
false, for most of the part SQL tier is free from any dependancy.</p>
<p><strong>ALTER TABLE, CREATE TABLE is alway storage-engine depandant.</strong><br />
false, only if engine options is given.</p>
<p><strong>Full-text and spatial indexes is supported by all storage engines.</strong><br />
false, Only by MyISAM storage engine supports these.</p>
<p><strong>COMMIT and ROLLBACK have an effect in every storage engine.</strong><br />
false, only transcational storage engines like InnoDB</p>
<h1>23.4. How MySQL Uses Disk Space</h1>
<p><strong>What is the use of data directory?</strong><br />
Mysql primarily uses diskspace for directories and files found under the data directory.</p>
<p><strong><br />
There is always a directory corresponding to any database.</strong><br />
true. its true regardless the engine type of the tables.</p>
<p><strong>.frm files contains table structure.</strong><br />
true</p>
<p><strong>Memory type tables doesnot have any .frm files for its structure.</strong><br />
false, All tables irrespective of its storage engine must have a .frm file.</p>
<p><strong>MyISAM uses a single file for its data and indexes for each table.</strong><br />
false, it creates two files, one data file and one index file for each table.</p>
<p><strong>The InnoDB storage engine has its own tablespace and log files.</strong><br />
true</p>
<p><strong>InnoDB saves the undo logs in the log files if needed for a transaction rollback.</strong><br />
false, this information is saved in table space.</p>
<p><strong>InnoDB tablespace files used to ensure no data loss.</strong><br />
false, log files contains.</p>
<p><strong>All committed transactions are saved in tablespace file by InnoDB engine.</strong><br />
false, they are saved in log files.</p>
<p><strong>Default tablespace filename by InnoDB is ibdata1.</strong><br />
true.</p>
<p><strong>Default log files are named ib_</strong><strong>logfile0 and </strong><strong>ib_</strong><strong>logfile1 by InnoDB engine.</strong><br />
true.</p>
<p><strong>It is possible to configure InnoDB to use one tablespace file per table.</strong><br />
true.</p>
<h1>23.5. How MySQL Uses Memory</h1>
<p><strong>For each client that connects, the server allocates a thread to it to handle the connection.</strong><br />
true</p>
<p><strong>mysql server maintains a small cache for thread handler.</strong><br />
true.</p>
<p><strong>Threads are created only by the server.</strong><br />
false.</p>
<p><strong>Can storage engine create own thread?</strong><br />
yes, they can.</p>
<p><strong>Replication uses threads.</strong><br />
true</p>
<p><strong>MySQL server stores the grant table into memory.</strong><br />
true</p>
<p><strong>Key buffer in memory holds index block for which storage engine?</strong><br />
MyISAM.</p>
<p><strong>MyISA also creates a memory buffer for the table rows.</strong><br />
false. it depends on the OS.</p>
<p><strong>Open tables are loaded into cache by mysql server</strong><br />
true. it loads them in table cache.</p>
<p><strong>mysql does not support query cache.</strong><br />
false.</p>
<p><strong>What is the use of host cache.</strong><br />
it holds the hostname resolution lookups</p>
<p><strong>The InnoDB storage engine logs information about current transactions in a memory buffer.</strong><br />
true.</p>
<p><strong>Current transaction is directly written to the physical log files by InnoDB engine.</strong><br />
false. it is written when the transaction is committed.</p>
<p><strong>The server might create internal temporary tables in memory during the course of query processing</strong><br />
true.</p>
<p><strong>how to determine the size of such tables?</strong><br />
by tmp_table_size system variable.<br />
<strong><br />
What is Created_tmp_disk_tables?</strong><br />
If the size of a temporary  table exceeds the value of the<br />
tmp_table_size system variable, the server converts it to a<br />
MyISAM-format table on disk and increments its Created_tmp_disk_tables<br />
status variable.</p>
<p><strong>The server maintains one buffer for each client connection.</strong><br />
false. The server maintains several buffers for each client connection.<br />
One is used as a communications buffer for exchanging information with<br />
the client. Other buffers are maintained per client for reading tables<br />
and for performing join and sort operations.</p>
<p><strong>What is use of SHOW statements?</strong><br />
Several SHOW statements enable you to check the sizes of various memory-related parameters</p>
<p><strong>How to see the system variables about how the server is configured?</strong><br />
by using SHOW VARIABLES command<br />
<strong><br />
How to check the run time state of cache?</strong><br />
by using SHOW STATUS command</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2009/02/02/mysql-dba-preparation-mysql-architecture/feed/</wfw:commentRss>
		</item>
		<item>
		<title>MySQL UNIX_TIMESTAMP problem while using in where clause to find out result from a date</title>
		<link>http://wp.amanpages.com/2009/01/13/mysql-unix_timestamp-problem-while-using-in-where-clause-to-find-out-result-from-a-date/</link>
		<comments>http://wp.amanpages.com/2009/01/13/mysql-unix_timestamp-problem-while-using-in-where-clause-to-find-out-result-from-a-date/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 17:18:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://wp.amanpages.com/2009/01/13/mysql-unix_timestamp-problem-while-using-in-where-clause-to-find-out-result-from-a-date/</guid>
		<description><![CDATA[Today my teammate Mohsin was in a funny problematic situation and discovered an interesting behavior of unix_timestamp function of MySQL.
The task:
Say, he had a table which contained data along with the timestamp of the insertion time in a column. Now, his task was to find out all the entries on&#160; a particular date.

The query:
His query [...]]]></description>
			<content:encoded><![CDATA[<p>Today my teammate Mohsin was in a funny problematic situation and discovered an interesting behavior of unix_timestamp function of MySQL.</p>
<p><b><br />The task:</b></p>
<p>Say, he had a table which contained data along with the timestamp of the insertion time in a column. Now, his task was to find out all the entries on&nbsp; a particular date.</p>
<p><b></p>
<p>The query:</b></p>
<p>His query was similar to this:</p>
<p>&#8220;<font face="Courier New">select * from aTable where insertion_time = unix_timestamp(&#8217;2009-01-13&#8242;)</font>&#8220;</p>
<p>Here, <font face="Courier New">insertion_time</font> is a column of type timestamp.</p>
<p><b>The result:</b></p>
<p>This query returns an empty result set however there was some entry on that date i.e. 2009-01-13!!</p>
<p><b>The cause:</b></p>
<p><font face="Courier New">unix_timestamp(&#8217;2009-01-13&#8242;)</font> returns a timestamp for the first second on that day. But he had no entry on that time i.e.<br />on 0000hours on 13th January 2009:) <br />But all the entries were inserted on a later time!</p>
<p><b><br />The solution:</b></p>
<p>There are more than one solution to this problem, the simple one might be like this:</p>
<p>&#8220;<font face="Courier New">select * from aTable where insertion_time &gt;= unix_timestamp(&#8217;2009-01-13&#8242;) and</font> <font face="Courier New">insertion_time &lt; </font><font face="Courier New">unix_timestamp(&#8217;2009-01-14&#8242;)</font><font face="Courier New"> </font>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2009/01/13/mysql-unix_timestamp-problem-while-using-in-where-clause-to-find-out-result-from-a-date/feed/</wfw:commentRss>
		</item>
		<item>
		<title>safari jquery keypress event bind problem for arrow key!</title>
		<link>http://wp.amanpages.com/2008/11/21/safari-jquery-keypress-event-bind-problem-for-arrow-key/</link>
		<comments>http://wp.amanpages.com/2008/11/21/safari-jquery-keypress-event-bind-problem-for-arrow-key/#comments</comments>
		<pubDate>Fri, 21 Nov 2008 14:45:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ajax]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://wp.amanpages.com/?p=174</guid>
		<description><![CDATA[Its a little post just to share with you that today I was working on keyboard navigation with javascript. Surprisingly the arrow keys was not working at all while using $(document).keypress(function(event){alert(&#8217;in here&#8217;)}) on Safari browser! Even the alert was not firing up!!
Anyway, for this you need to use $(document).keyup solved the problem  
Check the [...]]]></description>
			<content:encoded><![CDATA[<p>Its a little post just to share with you that today I was working on keyboard navigation with javascript. Surprisingly the arrow keys was not working at all while using<strong> $(document).keypress(function(event){alert(&#8217;in here&#8217;)})</strong> on Safari browser! Even the alert was not firing up!!</p>
<p>Anyway, for this you need to use <strong>$(document).keyup </strong>solved the problem <img src='http://wp.amanpages.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Check the demo is not working with Safari even on the jquery site <img src='http://wp.amanpages.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://docs.jquery.com/Events/keypress#fn" target="_blank">http://docs.jquery.com/Events/keypress#fn</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/11/21/safari-jquery-keypress-event-bind-problem-for-arrow-key/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Life with a meaning</title>
		<link>http://wp.amanpages.com/2008/09/26/life-with-a-meaning/</link>
		<comments>http://wp.amanpages.com/2008/09/26/life-with-a-meaning/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 10:56:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://wp.amanpages.com/?p=168</guid>
		<description><![CDATA[I don&#8217;t know what it is &#8212; a life with a meaning. I cannot define it, neither you can. Instead, we all may have our definition of a meaningful life. Or, do we? Do you really know what will be a meaningful life for you? Do you know what you want - not at this [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know what it is &#8212; a life with a meaning. I cannot define it, neither you can. Instead, we all may have our definition of a meaningful life. Or, do we? Do you really know what will be a meaningful life for you? Do you know what you want - not at this moment, but overall in your life? which will give you feeling of completeness, a solemn joy of achievement?</p>
<p>I tried to find this answer from my childhood. When I was in grade two, I used to cry to my elder sister that as being the youngest I will left alone on the earth without them, my parents.. as they will die sooner generally. Wired thought of course, but on that time the meaning of my life was their affection, their presence.</p>
<p> </p>
<p>I grew up gradually. I used to go to the village with my family traveling long way by bus and boat. The boat riding was the most favorite part of the journey. I used to enjoy the scenery along side the river, the paddy field, the rhythm  of the boatmen&#8217;s paddling through the blue water to an endless way&#8230; I wish I could be boatman and enjoy all the beauty that nature can reveal.</p>
<p>Reading and writing- became my next meaning to life when I was in high school. I found books are the only media that can make others experience and emotion live to me. </p>
<p>Anyway.. now I think the meaning of life lies in some contribution to the community/communities I belong. Little or more doesn&#8217;t matter, can be a software, can be piece of knowledge, can be a little help to some of those who need, can be a research for the greater betterment&#8230; doing something which so not limited only to myself.</p>
<p>In the contrary, at the same time  I wish I could see the whole word. I could deny the state of being an ant in my house whose world is the peripheral of my walls. I wish could be as free.</p>
<p>I don&#8217;t know actually what want to mean.. what I am writing.. perhaps&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/09/26/life-with-a-meaning/feed/</wfw:commentRss>
		</item>
		<item>
		<title>NetNewsWire - A great RSS feed reader for Mac</title>
		<link>http://wp.amanpages.com/2008/09/24/netnewswire-a-great-rss-feed-reader-for-mac/</link>
		<comments>http://wp.amanpages.com/2008/09/24/netnewswire-a-great-rss-feed-reader-for-mac/#comments</comments>
		<pubDate>Wed, 24 Sep 2008 16:33:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mac OSX]]></category>

		<guid isPermaLink="false">http://wp.amanpages.com/?p=171</guid>
		<description><![CDATA[NetNewsWire - a cool rss reader for Mac]]></description>
			<content:encoded><![CDATA[<p>I am new to the fantastic mac world and was searching for what &#8220;free&#8221; but fascinating apps are there. Googling for some time I came to a site called <a title="great site for mac software listing" href="http://www.pure-mac.com/index.html" target="_blank">pure mac</a>. From there I found the application <a title="NetNewsGator download site" href="http://www.newsgator.com/Individuals/NetNewsWire/" target="_blank">NetNewsGator</a>.</p>
<p>The screenshots and the features seemed awesome!</p>
<div class="wp-caption alignnone" style="width: 376px"><a href="http://www.newsgator.com/Individuals/NetNewsWire/"><img class=" " title="2 pane view of NetNewsWire" src="http://www.newsgator.com/img/ss/nnw_3.1_readingNews3.png" alt="2 pane view of NetNewsWire" width="366" height="293" /></a><p class="wp-caption-text">2 pane view of NetNewsWire</p></div>
<p> </p>
<p> </p>
<p>Among its numerous features the most interesting to me was the internal web page browser. From the preference tab you can also select to enable plugins, java and javascript!</p>
<p>You can create smart folders( mac users got the meaning I guess ) and you can choose your conditions from an existing pool.</p>
<p> </p>
<p>Happy feeding ! <img src='http://wp.amanpages.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Did not hesitate to download.</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/09/24/netnewswire-a-great-rss-feed-reader-for-mac/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Snip first words from first n charecters using php</title>
		<link>http://wp.amanpages.com/2008/09/09/snip-first-words-from-first-n-charecters-using-php/</link>
		<comments>http://wp.amanpages.com/2008/09/09/snip-first-words-from-first-n-charecters-using-php/#comments</comments>
		<pubDate>Tue, 09 Sep 2008 17:00:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://wp.amanpages.com/?p=166</guid>
		<description><![CDATA[Problem: You are writing a blogging software. Where on the first page you like to show the lates posts in a list but not their full content, only say first 200 letters. Porblem raises  when the last word is spans out of the 200 letter limit.
For example, say, 198th letter is &#8216;H&#8217; which is the [...]]]></description>
			<content:encoded><![CDATA[<p>Problem: You are writing a blogging software. Where on the first page you like to show the lates posts in a list but not their full content, only say first 200 letters. Porblem raises  when the last word is spans out of the 200 letter limit.</p>
<p>For example, say, 198th letter is &#8216;H&#8217; which is the start of the word &#8216;Home&#8217;. So, if you take only first 200 letters, the text will endup with &#8216;Hom&#8217;, certainly thats unwanted.</p>
<p>What to do?</p>
<p>Ans:</p>
<p>One solution can be like this:</p>
<div class="codesnip-container" >
<div class="codesnip" style="font-family: monospace;"><span class="coMULTI">/**<br />
*   @param text The Text from where to snip<br />
*   @param n&nbsp; &nbsp; &nbsp;The limit, 200 in the above example<br />
*/</span><br />
<span class="kw2">function</span> getWordsInN<span class="br0">&#40;</span><span class="re0">$text</span>,<span class="re0">$n</span><span class="br0">&#41;</span><span class="br0">&#123;</span><br />
<span class="kw1">return</span> <a href="http://www.php.net/substr"><span class="kw3">substr</span></a><span class="br0">&#40;</span><span class="re0">$text</span> = <a href="http://www.php.net/substr"><span class="kw3">substr</span></a><span class="br0">&#40;</span><span class="re0">$text</span>,<span class="nu0">0</span>,<span class="re0">$n</span><span class="br0">&#41;</span><br />
,<span class="nu0">0</span>,<br />
<a href="http://www.php.net/strrpos"><span class="kw3">strrpos</span></a><span class="br0">&#40;</span><span class="re0">$text</span>,<span class="st0">&#8216; &#8216;</span><span class="br0">&#41;</span><br />
<span class="br0">&#41;</span>;<br />
<span class="br0">&#125;</span></div>
</div>
<p>‍</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/09/09/snip-first-words-from-first-n-charecters-using-php/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Lightwieght VOIP billing software using mysql,servlet and ajax</title>
		<link>http://wp.amanpages.com/2008/07/07/lightwieght-voip-billing-software-using-mysqlservlet-and-ajax/</link>
		<comments>http://wp.amanpages.com/2008/07/07/lightwieght-voip-billing-software-using-mysqlservlet-and-ajax/#comments</comments>
		<pubDate>Tue, 08 Jul 2008 06:40:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Ajax]]></category>

		<category><![CDATA[Freelancing]]></category>

		<category><![CDATA[JavaScript]]></category>

		<category><![CDATA[PHP]]></category>

		<category><![CDATA[jQuery]]></category>

		<category><![CDATA[mysql]]></category>

		<category><![CDATA[myworks]]></category>

		<guid isPermaLink="false">http://www.mailtoaman.com/2008/07/07/lightwieght-voip-billing-software-using-mysqlservlet-and-ajax/</guid>
		<description><![CDATA[Though I don&#8217;t like to do extra work beside my day job, but there are some people (and some offer :P)  whom I don&#8217;t like to refuse. Surely the work must be interesting.
Before some days,  one of my ex bosses gave a project to build a VOIP billing software. I was studying SIP protocol for [...]]]></description>
			<content:encoded><![CDATA[<p>Though I don&#8217;t like to do extra work beside my day job, but there are some people (and some offer :P)  whom I don&#8217;t like to refuse. Surely the work must be interesting.</p>
<p>Before some days,  one of my ex bosses gave a project to build a VOIP billing software. I was studying SIP protocol for a while and the offer seemed very interesting.</p>
<p>The task was simple though. It will just show the call history mainly.  But the challenge was to make it as light weight as possible and secondly there is no documentation about the data!</p>
<p>The reason behind making it light weight  is that the application will be hosted on the switch, i.e. the web server is running on the switch box. Well, I decided to use no flashy look at all, used plain css just the login prompt is made of ext-js. The pagination appears on top right is also ajax based.</p>
<p>Main problem was to find out the data. I have been given the credential to log on to the mysql server but they could not provide any information which table contains which data. The database was complex enough with more than 60 tables and the designer seemed to take extra care to put redundant data on different tables with similar name like &#8220;clients&#8221;,&#8221;client164&#8243;,&#8221;clientinfo&#8221; etc. And guess what, the actual log in infromation is in client164 table <img src='http://wp.amanpages.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Here are some screen shots:</p>
<p><a href="http://www.mailtoaman.com/wp-content/uploads/2008/07/1_login.jpg" title="Login page"><img src="http://www.mailtoaman.com/wp-content/uploads/2008/07/1_login.jpg" alt="Login page" /></a></p>
<p><a href="http://www.mailtoaman.com/wp-content/uploads/2008/07/3_logging_in.jpg" title="Connecting in progress"><img src="http://www.mailtoaman.com/wp-content/uploads/2008/07/3_logging_in.jpg" alt="Connecting in progress" /></a></p>
<p><a href="http://www.mailtoaman.com/wp-content/uploads/2008/07/2_records.jpg" title="Call log"><img src="http://www.mailtoaman.com/wp-content/uploads/2008/07/2_records.jpg" alt="Call log" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/07/07/lightwieght-voip-billing-software-using-mysqlservlet-and-ajax/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GPS Tracking: Good side and the ugly side</title>
		<link>http://wp.amanpages.com/2008/06/27/gps-tracking-good-side-and-the-ugly-side/</link>
		<comments>http://wp.amanpages.com/2008/06/27/gps-tracking-good-side-and-the-ugly-side/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 07:32:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://www.mailtoaman.com/2008/06/27/gps-tracking-good-side-and-the-ugly-side/</guid>
		<description><![CDATA[



  

Perhaps many of us are well aware of GPS i.e Global Positioning system and its applications like GPS Tracking. GPS enabled gadgets can be regarded as a compulsory tool in many cases especially in field works, surveying, expeditions etc.  It can confirm you that you are never lost. My wife is a geologist [...]]]></description>
			<content:encoded><![CDATA[<p><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><meta name="ProgId" content="Word.Document" /><meta name="Generator" content="Microsoft Word 12" /><meta name="Originator" content="Microsoft Word 12" /></p>
<link href="file:///C:%5CUsers%5CAman%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_filelist.xml" rel="File-List" />
<link href="file:///C:%5CUsers%5CAman%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_themedata.thmx" rel="themeData" />
<link href="file:///C:%5CUsers%5CAman%5CAppData%5CLocal%5CTemp%5Cmsohtmlclip1%5C01%5Cclip_colorschememapping.xml" rel="colorSchemeMapping" /><!--[if gte mso 9]><xml>  <w:WordDocument>   <w:View>Normal</w:View>   <w:Zoom>0</w:Zoom>   <w:TrackMoves/>   <w:TrackFormatting/>   <w:PunctuationKerning/>   <w:ValidateAgainstSchemas/>   <w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>   <w:IgnoreMixedContent>false</w:IgnoreMixedContent>   <w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>   <w:DoNotPromoteQF/>   <w:LidThemeOther>EN-US</w:LidThemeOther>   <w:LidThemeAsian>X-NONE</w:LidThemeAsian>   <w:LidThemeComplexScript>BN</w:LidThemeComplexScript>   <w:Compatibility>    <w:BreakWrappedTables/>    <w:SnapToGridInCell/>    <w:WrapTextWithPunct/>    <w:UseAsianBreakRules/>    <w:DontGrowAutofit/>    <w:SplitPgBreakAndParaMark/>    <w:DontVertAlignCellWithSp/>    <w:DontBreakConstrainedForcedTables/>    <w:DontVertAlignInTxbx/>    <w:Word11KerningPairs/>    <w:CachedColBalance/>   </w:Compatibility>   <w:BrowserLevel>MicrosoftInternetExplorer4</w:BrowserLevel>   <m:mathPr>    <m:mathFont m:val="Cambria Math"/>    <m:brkBin m:val="before"/>    <m:brkBinSub m:val="--"/>    <m:smallFrac m:val="off"/>    <m:dispDef/>    <m:lMargin m:val="0"/>    <m:rMargin m:val="0"/>    <m:defJc m:val="centerGroup"/>    <m:wrapIndent m:val="1440"/>    <m:intLim m:val="subSup"/>    <m:naryLim m:val="undOvr"/>   </m:mathPr></w:WordDocument> </xml><![endif]--><!--[if gte mso 9]><xml>  <w:LatentStyles DefLockedState="false" DefUnhideWhenUsed="true"   DefSemiHidden="true" DefQFormat="false" DefPriority="99"   LatentStyleCount="267">   <w:LsdException Locked="false" Priority="0" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Normal"/>   <w:LsdException Locked="false" Priority="9" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="heading 1"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 2"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 3"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 4"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 5"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 6"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 7"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 8"/>   <w:LsdException Locked="false" Priority="9" QFormat="true" Name="heading 9"/>   <w:LsdException Locked="false" Priority="39" Name="toc 1"/>   <w:LsdException Locked="false" Priority="39" Name="toc 2"/>   <w:LsdException Locked="false" Priority="39" Name="toc 3"/>   <w:LsdException Locked="false" Priority="39" Name="toc 4"/>   <w:LsdException Locked="false" Priority="39" Name="toc 5"/>   <w:LsdException Locked="false" Priority="39" Name="toc 6"/>   <w:LsdException Locked="false" Priority="39" Name="toc 7"/>   <w:LsdException Locked="false" Priority="39" Name="toc 8"/>   <w:LsdException Locked="false" Priority="39" Name="toc 9"/>   <w:LsdException Locked="false" Priority="35" QFormat="true" Name="caption"/>   <w:LsdException Locked="false" Priority="10" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Title"/>   <w:LsdException Locked="false" Priority="1" Name="Default Paragraph Font"/>   <w:LsdException Locked="false" Priority="11" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtitle"/>   <w:LsdException Locked="false" Priority="22" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Strong"/>   <w:LsdException Locked="false" Priority="20" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Emphasis"/>   <w:LsdException Locked="false" Priority="59" SemiHidden="false"    UnhideWhenUsed="false" Name="Table Grid"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Placeholder Text"/>   <w:LsdException Locked="false" Priority="1" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="No Spacing"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 1"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 1"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 1"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 1"/>   <w:LsdException Locked="false" UnhideWhenUsed="false" Name="Revision"/>   <w:LsdException Locked="false" Priority="34" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="List Paragraph"/>   <w:LsdException Locked="false" Priority="29" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Quote"/>   <w:LsdException Locked="false" Priority="30" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Quote"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 1"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 1"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 1"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 1"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 1"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 2"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 2"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 2"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 2"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 2"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 2"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 2"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 2"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 2"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 3"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 3"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 3"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 3"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 3"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 3"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 3"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 3"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 3"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 4"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 4"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 4"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 4"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 4"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 4"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 4"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 4"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 4"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 5"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 5"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 5"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 5"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 5"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 5"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 5"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 5"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 5"/>   <w:LsdException Locked="false" Priority="60" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Shading Accent 6"/>   <w:LsdException Locked="false" Priority="61" SemiHidden="false"    UnhideWhenUsed="false" Name="Light List Accent 6"/>   <w:LsdException Locked="false" Priority="62" SemiHidden="false"    UnhideWhenUsed="false" Name="Light Grid Accent 6"/>   <w:LsdException Locked="false" Priority="63" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6"/>   <w:LsdException Locked="false" Priority="64" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6"/>   <w:LsdException Locked="false" Priority="65" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 1 Accent 6"/>   <w:LsdException Locked="false" Priority="66" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium List 2 Accent 6"/>   <w:LsdException Locked="false" Priority="67" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6"/>   <w:LsdException Locked="false" Priority="68" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6"/>   <w:LsdException Locked="false" Priority="69" SemiHidden="false"    UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6"/>   <w:LsdException Locked="false" Priority="70" SemiHidden="false"    UnhideWhenUsed="false" Name="Dark List Accent 6"/>   <w:LsdException Locked="false" Priority="71" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Shading Accent 6"/>   <w:LsdException Locked="false" Priority="72" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful List Accent 6"/>   <w:LsdException Locked="false" Priority="73" SemiHidden="false"    UnhideWhenUsed="false" Name="Colorful Grid Accent 6"/>   <w:LsdException Locked="false" Priority="19" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis"/>   <w:LsdException Locked="false" Priority="21" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis"/>   <w:LsdException Locked="false" Priority="31" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference"/>   <w:LsdException Locked="false" Priority="32" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Intense Reference"/>   <w:LsdException Locked="false" Priority="33" SemiHidden="false"    UnhideWhenUsed="false" QFormat="true" Name="Book Title"/>   <w:LsdException Locked="false" Priority="37" Name="Bibliography"/>   <w:LsdException Locked="false" Priority="39" QFormat="true" Name="TOC Heading"/>  </w:LatentStyles> </xml><![endif]--><br />
<style> <!--  /* Font Definitions */  @font-face 	{font-family:Vrinda; 	panose-1:1 1 6 0 1 1 1 1 1 1; 	mso-font-charset:0; 	mso-generic-font-family:auto; 	mso-font-pitch:variable; 	mso-font-signature:65539 0 0 0 1 0;} @font-face 	{font-family:"Cambria Math"; 	panose-1:2 4 5 3 5 4 6 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:roman; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1107304683 0 0 159 0;} @font-face 	{font-family:Calibri; 	panose-1:2 15 5 2 2 2 4 3 2 4; 	mso-font-charset:0; 	mso-generic-font-family:swiss; 	mso-font-pitch:variable; 	mso-font-signature:-1610611985 1073750139 0 0 159 0;}  /* Style Definitions */  p.MsoNormal, li.MsoNormal, div.MsoNormal 	{mso-style-unhide:no; 	mso-style-qformat:yes; 	mso-style-parent:""; 	margin-top:0in; 	margin-right:0in; 	margin-bottom:10.0pt; 	margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	mso-bidi-font-size:14.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:Vrinda; 	mso-bidi-theme-font:minor-bidi;} a:link, span.MsoHyperlink 	{mso-style-noshow:yes; 	mso-style-priority:99; 	color:blue; 	text-decoration:underline; 	text-underline:single;} a:visited, span.MsoHyperlinkFollowed 	{mso-style-noshow:yes; 	mso-style-priority:99; 	color:purple; 	mso-themecolor:followedhyperlink; 	text-decoration:underline; 	text-underline:single;} .MsoChpDefault 	{mso-style-type:export-only; 	mso-default-props:yes; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:Calibri; 	mso-fareast-theme-font:minor-latin; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin; 	mso-bidi-font-family:Vrinda; 	mso-bidi-theme-font:minor-bidi;} .MsoPapDefault 	{mso-style-type:export-only; 	margin-bottom:10.0pt; 	line-height:115%;} @page Section1 	{size:8.5in 11.0in; 	margin:1.0in 1.0in 1.0in 1.0in; 	mso-header-margin:.5in; 	mso-footer-margin:.5in; 	mso-paper-source:0;} div.Section1 	{page:Section1;} --> </style>
<p><!--[if gte mso 10]><br />
<style>  /* Style Definitions */  table.MsoNormalTable 	{mso-style-name:"Table Normal"; 	mso-tstyle-rowband-size:0; 	mso-tstyle-colband-size:0; 	mso-style-noshow:yes; 	mso-style-priority:99; 	mso-style-qformat:yes; 	mso-style-parent:""; 	mso-padding-alt:0in 5.4pt 0in 5.4pt; 	mso-para-margin-top:0in; 	mso-para-margin-right:0in; 	mso-para-margin-bottom:10.0pt; 	mso-para-margin-left:0in; 	line-height:115%; 	mso-pagination:widow-orphan; 	font-size:11.0pt; 	mso-bidi-font-size:14.0pt; 	font-family:"Calibri","sans-serif"; 	mso-ascii-font-family:Calibri; 	mso-ascii-theme-font:minor-latin; 	mso-fareast-font-family:"Times New Roman"; 	mso-fareast-theme-font:minor-fareast; 	mso-hansi-font-family:Calibri; 	mso-hansi-theme-font:minor-latin;} </style>
<p> <![endif]--></p>
<p class="MsoNormal">Perhaps many of us are well aware of GPS i.e Global Positioning system and its applications like <a href="http://www.brickhousesecurity.com/gps-car-tracking-vehicle-logging.html" title="GPS Tracking" target="_blank">GPS Tracking</a>. GPS enabled gadgets can be regarded as a compulsory tool in many cases especially in field works, surveying, expeditions etc. <span> </span>It can confirm you that you are never lost. My wife is a geologist and I often hear her saying how <a href="http://www.brickhousesecurity.com/gps-car-tracking-vehicle-logging.html" title="GPS Tracking">GPS Tracking</a> is so important in her job. <span> </span>In her current project they are using <strong><a href="http://www.brickhousesecurity.com/gps-car-tracking-vehicle-logging.html">LiveWire Real</a>,</strong> this little instrument helps them knowing everyone’s position in an wide area.</p>
<p class="MsoNormal">Besides, when I lost my car in last year, I decided to use some devices to protect car theft. Actually it is quiet impossible to avoid car theft, but I took a different measure. I installed <strong><a href="http://www.brickhousesecurity.com/gps-car-tracking-vehicle-logging.html">T-Trac XS Internet GPS Car Tracking System</a></strong> in my car and really feeling secure. Now I can help the police to know the exact location of my car if I am unfortunate enough to have my car stolen again.</p>
<p class="MsoNormal">Surely these are some good side of <a href="http://www.brickhousesecurity.com/gps-car-tracking-vehicle-logging.html">GPS tracking</a>. But I was very disgusted when I came to know that one my friend has presented his wife <a href="http://www.brickhousesecurity.com/gps-car-tracking-vehicle-logging.html">this pen</a>. It is nothing but a small <a href="http://www.brickhousesecurity.com/gps-car-tracking-vehicle-logging.html">gps tracking</a> device that can track his wife. Well some of you may find nothing wrong with this, but to me it is an example of mean mindness and mistrust. You can use such thing for your pet, but not for your partner.</p>
<p class="MsoNormal">Should you?</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/06/27/gps-tracking-good-side-and-the-ugly-side/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Learning Flex3 Task 3: Using function in script tag and in separate ActionScript file</title>
		<link>http://wp.amanpages.com/2008/06/07/learning-flex3-task-3-using-function-in-script-tag-and-in-separate-actionscript-file/</link>
		<comments>http://wp.amanpages.com/2008/06/07/learning-flex3-task-3-using-function-in-script-tag-and-in-separate-actionscript-file/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 09:45:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[ActionScript]]></category>

		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.mailtoaman.com/2008/06/07/learning-flex3-task-3-using-function-in-script-tag-and-in-separate-actionscript-file/</guid>
		<description><![CDATA[In the last example we have used some functionality against the click event of the button. Now we will encapsulate the code in a function and call it.
For embedding script we have to use a special tag in flex. It is the mx:Script tag. Inside the tag we will use a CDATA section to write [...]]]></description>
			<content:encoded><![CDATA[<p>In the last example we have used some functionality against the click event of the button. Now we will encapsulate the code in a function and call it.
<p>For embedding script we have to use a special tag in flex. It is the mx:Script tag. Inside the tag we will use a CDATA section to write the script codes. If any of us is not aware of what CDATA is, just to inform him/her inside CDATA no tag is parsed. You can write virtually whatever you like.
<p>Let’s add a script tag into our application.
<p>&lt;mx:Script&gt;
<p>&lt;![CDATA[
<p>public function clearText():void
<p>{
<p>lblName.text = '';
<p>txtName.text = '';
<p>}
<p>]]&gt;
<p>&lt;/mx:Script&gt;
<p>Calling this function is simple as you might guess:
<p>&lt;mx:Button id=&#8221;btn1&#8243; label=&#8221;Clear All&#8221; click=&#8221;clearText()&#8221; /&gt;
<p>Don’t forget to enter some comments, it’s a good practice.
<p>The entire code will now look like:
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;
<p>&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;
<p>&lt;mx:Script&gt;
<p>&lt;![CDATA[
<p>/**
<p>* clear text clears the text of the text and the label
<p>* it is invoked from Button btn1;
<p>*/
<p>public function clearText():void
<p>{
<p>lblName.text = '';
<p>txtName.text = '';
<p>}
<p>]]&gt;
<p>&lt;/mx:Script&gt;
<p>&lt;mx:Panel title=&#8221;App 2&#8243;&gt;
<p>&lt;mx:TextInput id=&#8221;txtName&#8221; text=&#8221;hello&#8221; /&gt;
<p>&lt;mx:Button id=&#8221;btn1&#8243; label=&#8221;Clear All&#8221; click=&#8221;clearText()&#8221; /&gt;
<p>&lt;mx:Label id=&#8221;lblName&#8221; text=&#8221;{txtName.text}&#8221;/&gt;
<p>&lt;/mx:Panel&gt;
<p>&lt;/mx:Application&gt;
<p>But it’s not a good idea to write down logic and layout in the same file. Just like we use separate js files for JavaScript codes with html, we can also use a separate ActionScript file for the code and put the layout code in the mxml file.
<p>Here I have created a file and pasted the function code into it. Saved the file as app2.as in the same folder of the main.mxml file. You can use any valid names for the ActionScript file with the extension .as since it is the default extension for ActionScript files.
<p>We can now use this file as the source of the script in this way using the source attribute:
<p>&lt;mx:Script source=&#8221;app2.as&#8221; /&gt;
<p>Prev: <a href="http://www.mailtoaman.com/2008/06/07/learning-flex3-task2-first-action-and-accessing-component-property/">Learning FLex3 Task2 : First action and accessing component property</a><br />Start: <a href="http://www.mailtoaman.com/2008/06/06/learning-flex3-task1-ide-and-basic-application/">Learning Flex3 Task1: IDE and basic application</a><br />Next:</p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/06/07/learning-flex3-task-3-using-function-in-script-tag-and-in-separate-actionscript-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Learning Flex3 Task1: IDE and basic application</title>
		<link>http://wp.amanpages.com/2008/06/07/learning-flex3-task1-ide-and-basic-application/</link>
		<comments>http://wp.amanpages.com/2008/06/07/learning-flex3-task1-ide-and-basic-application/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 08:30:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://www.mailtoaman.com/2008/06/06/learning-flex3-task1-ide-and-basic-application/</guid>
		<description><![CDATA[You know xhtml? Or have some knowledge on html or xml syntax with some javascript concepts? Yes? Cool, you will find flex3 with ActionScript is almost nothing more than developing a html page with javascript. As you know there are some built in libraries in javascript like Math, ActionScript with Flex has some extra libs [...]]]></description>
			<content:encoded><![CDATA[<p>You know xhtml? Or have some knowledge on html or xml syntax with some javascript concepts? Yes? Cool, you will find flex3 with ActionScript is almost nothing more than developing a html page with javascript. As you know there are some built in libraries in javascript like Math, ActionScript with Flex has some extra libs present. That’s all.
<p>Now, let’s get going.
<p>Windows users can get the FlashDevelop software from <a href="http://www.flashdevelop.org/">www.flashdevelop.org/</a>. It is a nice actionscript development environment. Linux users can Eclipse and get the instructions from <a href="http://www.communitymx.com/content/article.cfm?cid=F3ECF">http://www.communitymx.com/content/article.cfm?cid=F3ECF</a> or can use SE|PY from sourceforge.net/projects/sepy/.
<p>I am using FlashDevelop at present while writing this.
<p>Here is a simple typical hello world application code:
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;
<p>&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;
<p>&lt;mx:Label text=&#8221;Hello world&#8221;/&gt;
<p>&lt;/mx:Application&gt;
<p>Code Break Down:
<p>First line the xml header. The flex files are saved as msxml format which is nothing but an xml file. So, this header must be present
<p>Then comes mx:Application. This starts the application. Anyone who is not familiar in xmlns or the Xml Name Space can think it as a prefix to the component. This prefix helps to distinguish the components. Say, you have made a custom label component of you own and named it too Label. Now how the compiler come to know that which one is your label or application label. So to meet this problem you can use your own namespace like xmlns:smarty=”xxxx”. Now on you can use your Label like smarty:Label.
<p>Lastly, &lt;mx:Label text=&#8221;Hello world&#8221;/&gt;. This self explanatory statement adds a label in the application and sets the text “Hello world”. It is very similar to html tags, right?
<p>Generally, we use Panel as container of all elements. It not only looks little better but also help organizing the UI elements.
<p>&lt;?xml version=&#8221;1.0&#8243;?&gt;
<p>&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;&gt;
<p>&lt;mx:Panel title=&#8221;App 1&#8243;&gt;
<p>&lt;mx:Label text=&#8221;Hello world&#8221;/&gt;
<p>&lt;/mx:Panel&gt;
<p>&lt;/mx:Application&gt;
<p>Here is how it looks now:</p>
<div class="wlWriterSmartContent" id="scid:8747F07C-CDE8-481f-B0DF-C6CFD074BF67:091c6fe7-1dbc-49cb-8a70-9e6853e86e13" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px"><a href="http://www.mailtoaman.com/image/LearningFlex3Task1IDEandbasicapplication_BEFA/app18x6.jpg" title="Flex3 Hello world app" rel="thumbnail"><img border="0" src="http://www.mailtoaman.com/image/LearningFlex3Task1IDEandbasicapplication_BEFA/app1.png" /></a></div>
<p>FlashDevelop instructions:
<p>1. Create a new flex3 project.
<p>2. Save the code in the Main.msxml file.
<p>3. Press F5. simple hah?
</p>
<div class="wlWriterSmartContent" id="scid:fb3a1972-4489-4e52-abe7-25a00bb07fdf:e0db807e-13c3-487e-be20-940fbc088dbc" style="padding-right: 0px; display: inline; padding-left: 0px; float: none; padding-bottom: 0px; margin: 0px; padding-top: 0px">
<p>Download file <a href="http://www.mailtoaman.com/image/LearningFlex3Task1IDEandbasicapplication_BEFA/Main.mxml" target="_blank">Main.mxml</a></p>
</div>
<p>Next: <a href="http://www.mailtoaman.com/2008/06/07/learning-flex3-task2-first-action-and-accessing-component-property/">Learning FLex3 Task2 : First action and accessing component property</a></p>
]]></content:encoded>
			<wfw:commentRss>http://wp.amanpages.com/2008/06/07/learning-flex3-task1-ide-and-basic-application/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
