<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>LORENZ&#039;S BLOG</title>
	<atom:link href="http://www.londatiga.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.londatiga.net</link>
	<description>My writings on information technology and aviation</description>
	<lastBuildDate>Wed, 03 Mar 2010 13:26:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>How to Setup Android Application Development on Eclipse</title>
		<link>http://www.londatiga.net/it/how-to-setup-android-application-development-on-eclipse/</link>
		<comments>http://www.londatiga.net/it/how-to-setup-android-application-development-on-eclipse/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 18:18:41 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Android]]></category>
		<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[android adt]]></category>
		<category><![CDATA[android applications]]></category>
		<category><![CDATA[android development]]></category>
		<category><![CDATA[android device]]></category>
		<category><![CDATA[android IDE]]></category>
		<category><![CDATA[android on eclipse]]></category>
		<category><![CDATA[android phone]]></category>
		<category><![CDATA[android programming]]></category>
		<category><![CDATA[android tool]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=541</guid>
		<description><![CDATA[Android SDK provides the tools and APIs necessary to begin developing applications on the Android platform using the Java programming language. Android offers a custom plugin for the Eclipse IDE, called Android Development Tools (ADT), that is designed to give you a powerful, integrated environment in which to build Android applications.
This tutorial is intended for [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-setup-android-application-development-on-eclipse%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-setup-android-application-development-on-eclipse%2F" height="61" width="51" /></a></div><p><a title="Android SDK" href="http://developer.android.com/sdk/index.html" target="_blank">Android SDK</a> provides the tools and APIs necessary to begin developing applications on the <strong>Android</strong> platform using the <a title="Java Programming Language" href="http://java.sun.com" target="_blank">Java </a>programming language. Android offers a custom plugin for the <a title="Eclipse IDE" href="http://eclipse.org" target="_blank">Eclipse IDE</a>, called <a title="ADT Android Development Tools" href="http://developer.android.com/sdk/adt-notes.html " target="_blank">Android Development Tools (ADT),</a> that is designed to give you a powerful, integrated environment in which to build Android applications.</p>
<div class="wp-caption aligncenter" style="width: 202px"><img title="Android 2.1 on Emulator" src="http://www.londatiga.net/images/android/android.jpg" alt="" width="192" height="289" /><p class="wp-caption-text">Android 2.1 on Emulator</p></div>
<p>This tutorial is intended for new developers that want to start developing Android applications using Eclipse IDE. To start develop, you have to install Java platform (JDK)  first and then  install the Eclipse,  Android SDK and the  Android Development Tool (ADT) plugin for Eclipse.</p>
<p><strong>Download and Install JDK</strong></p>
<p>Download and install the latest JDK (JDK 1.6 Update 18) from <a title="Download JDK" href="http://java.sun.com/javase/downloads/index.jsp" target="_blank">JDK download page</a></p>
<p><strong>Download and Install Eclipse IDE</strong></p>
<p>Download and install Eclipse Classic 3.5 (Galileo) from <a title="Download Eclipse" href="http://www.eclipse.org/downloads/" target="_blank">Eclipse download page</a>. You can also use the  Java or RCP version of Eclipse.</p>
<p><strong>Download and Install Android SDK Starter Package</strong></p>
<p>The Android SDK starter package includes only a single component, the latest version of the SDK Tools. Included in that component is a tool called <span style="color: #008000;">Android SDK and AVD Manager</span> that you can use to download other components from the SDK repository site.</p>
<ul>
<li>Download the latest Android SDK  starter package  from the <a title="Download Android SDK Starter Package" href="http://developer.android.com/sdk/index.html" target="_blank">SDK download page</a>.</li>
<li>Unpack the archive to a suitable location on your machine. By default, the SDK files are unpacked into a directory named  <span style="color: #008000;">android-sdk-&lt;machine-platform&gt;</span> . For example, on Windows platform the directory will be <span style="color: #008000;">android-sdk-windows.</span></li>
<p><div class="wp-caption alignnone" style="width: 439px"><img title="Android SDK " src="http://londatiga.net/images/android/sdk_tree.jpg" alt="Android SDK " width="429" height="108" /><p class="wp-caption-text">Android SDK</p></div></ul>
<p><strong>Add Android Platforms to Your SDK</strong></p>
<p>To add one or more Android platforms (for example, Android 1.6 or Android 2.1) to your SDK, use the <span style="color: #008000;">Android SDK and AVD Manager</span>, included in the SDK starter package. It is recommended  to download multiple platforms, so that you can build your application on the lowest version you want to support, but test against higher versions that you intend the application to run on.</p>
<ul>
<li>Launch the <span style="color: #008000;">Android SDK and AVD Manager </span>on Windows by executing <span style="color: #008000;">SDK Setup.exe</span> at the root of the SDK directory. On Mac OS X or Linux, execute the android tool in the<span style="color: #008000;"> /tools/ <span style="color: #000000;">folder</span></span>.</li>
<li>On<span style="color: #008000;"> Available Packages </span>menu, select the platforms to download (1.1 to 2.1).</li>
<p><img class="alignnone" title="Download android sdk component" src="http://londatiga.net/images/android/download_component.jpg" alt="" width="450" height="261" /></p>
<li> If you find error on HTTP SSL while fetching the repository url , try to use http instead of https by checking the <span style="color: #008000;">Force https://&#8230; sources to be fetched using http://&#8230; <span style="color: #000000;">option</span></span> on <span style="color: #008000;">Settings</span> menu.</li>
<p><img class="alignnone" title="Force HTTP download" src="http://londatiga.net/images/android/force_http.jpg" alt="" width="450" height="261" /></p>
<li>Click<strong> </strong><span style="color: #008000;">Install Selected </span> and then select Accept All to accept selected packages.</li>
<li>Click <span style="color: #008000;">Install Accepted</span> button to start download and install the selected packages.</li>
<p><img class="alignnone" title="Install Packages" src="http://londatiga.net/images/android/install_packages.jpg" alt="" width="450" height="299" /></ul>
<p><strong>Download and Install ADT Plugin</strong></p>
<p>To install  the ADT Plugin, you can take advantage of the Eclipse remote update feature. By setting up a remote update site, you can easily download, install, and check for ADT updates. Alternatively, you can download the latest ADT to your development computer as a local site archive.</p>
<ul>
<li>Launch Eclipse, then select <span style="color: #008000;">Help &#8211;&gt; Install New Software</span>.</li>
<p><img class="alignnone" title="Eclipse Help Menu" src="http://londatiga.net/images/android/help.jpg" alt="" width="232" height="254" /></p>
<li>In <span style="color: #008000;">Available Software</span> dialog, click <span style="color: #008000;">Add </span></li>
<li>Enter a name for the remote site (ex: Android Plugin) in the <span style="color: #008000;">Name</span> field and in the <span style="color: #008000;">Location</span> field, enter this URL:<br />
<span style="color: #0000ff;"> https://dl-ssl.google.com/android/eclipse/</span><br />
and then click OK. If you have trouble acquiring the plugin, you can try using &#8216;http&#8217;  instead of  &#8217;https&#8217;  in the URL.</li>
<p><img class="alignnone" title="Eclipse Add Site" src="http://londatiga.net/images/android/add_site.jpg" alt="" width="450" height="392" /></p>
<li>Select the checkbox next to <span style="color: #008000;">Developer Tools</span>, which will automatically select the nested tools <span style="color: #008000;">Android </span><span style="color: #008000;">DDMS</span> and <span style="color: #008000;">Android Development Tools </span>and then click <span style="color: #008000;">Next</span>.</li>
<p><img class="alignnone" title="Select Package" src="http://londatiga.net/images/android/add_site2.jpg" alt="" width="450" height="391" /></p>
<li>On the next dialog, click <span style="color: #008000;">Next</span> to read and accept the license agreement and install any dependencies, then click <span style="color: #008000;">Finish</span>.</li>
<li><span style="color: #000000;">Restart Eclipse</span></li>
<li><span style="color: #000000;">To check whether the ADT has been installed correctly, try to create a new project by select <span style="color: #008000;">File &gt; New &gt; Proje<span style="color: #008000;">c</span></span><span style="color: #008000;">t</span>., you shoud find Android Project listed on project wizard.</span></li>
<p><img class="alignnone" title="New Project" src="http://londatiga.net/images/android/newproject.jpg" alt="" width="450" height="446" /></ul>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-setup-android-application-development-on-eclipse%2F&amp;linkname=How%20to%20Setup%20Android%20Application%20Development%20on%20Eclipse"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/how-to-setup-android-application-development-on-eclipse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Add Adsense into Your Google Map API Application</title>
		<link>http://www.londatiga.net/it/how-to-add-adsense-into-your-google-map-api-application/</link>
		<comments>http://www.londatiga.net/it/how-to-add-adsense-into-your-google-map-api-application/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 16:27:34 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[adsense]]></category>
		<category><![CDATA[adsense for map]]></category>
		<category><![CDATA[adsense on google map]]></category>
		<category><![CDATA[googlbar]]></category>
		<category><![CDATA[google map]]></category>
		<category><![CDATA[map ad unit]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=534</guid>
		<description><![CDATA[There are two Adsense for Maps products  provided by Google to monetize Google Maps API application:

Advertising alongside local bussines search result using the GoogleBar that requires your Adsense account be enabled for Adsense for Search
Advertising based on map viewport using the Maps Ad Unit that requires your AdSense account be enabled for Adsense for Content.

Advertising [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-add-adsense-into-your-google-map-api-application%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-add-adsense-into-your-google-map-api-application%2F" height="61" width="51" /></a></div><p>There are two <strong>Adsense for Maps</strong> products  provided by Google to monetize Google Maps API application:</p>
<ul>
<li>Advertising alongside local bussines search result using the GoogleBar that requires your Adsense account be enabled for <a href="http://www.google.com/adsense/ws-overview" target="_blank">Adsense for Search</a></li>
<li>Advertising based on map viewport using the Maps Ad Unit that requires your AdSense account be enabled for <a href="http://www.google.com/adsense/afc-online-overview" target="_blank">Adsense for Content</a>.</li>
</ul>
<p><strong>Advertising using the GoogleBar</strong></p>
<div class="wp-caption alignnone" style="width: 389px"><img title="Adsense using the GoogleBar" src="http://londatiga.net/images/adsensemap/ads1.jpg" alt="Adsense using the GoogleBar" width="379" height="220" /><p class="wp-caption-text">Adsense using the GoogleBar</p></div>
<pre class="brush: jscript;">
var map;
if (GBrowserIsCompatible()) {
    var mapOptions = {
         googleBarOptions : {
                 style : 'new',
                 adsOptions: {
                      client: 'your-publisher-id',
                      channel: 'your-ads-channel-id',
                      adsafe: 'high',
                      language: 'en'
                 }
         }
    }

    map = new GMap2(document.getElementById('map'), mapOptions);
    map.setCenter(new GLatLng(27.6648274, -81.5157535), 12);
    map.setUIToDefault();
    map.enableGoogleBar();
}
</pre>
<p>Line 06: adsense options:<br />
Line 07: your adsense publisher ID<br />
Line 08: your adsense for search channel (optional)<br />
Line 09: ad safety level (optional)<br />
Line 10: language in which to display results</p>
<p><strong>Advertising using the Maps Ad Unit</strong></p>
<div class="wp-caption alignnone" style="width: 279px"><img title="Adsense using Maps Ad Unit" src="http://londatiga.net/images/adsensemap/ads2.jpg" alt="Adsense using Maps Ad Unit" width="269" height="310" /><p class="wp-caption-text">Adsense using Maps Ad Unit</p></div>
<pre class="brush: jscript;">
var adsManagerOptions = {
  maxAdsOnMap : 2,
  style: 'your-ads-unit',
  channel: 'your-ads-channel-id'
};

var publisherID = 'your-publisher-ID';

adsManager = new GAdsManager(map, publisherID, adsManagerOptions);
adsManager.enable();
</pre>
<p>Line 01: specify ads options<br />
Line 02: maximum number of ads<br />
Line 03: your ads unit<br />
Line 04: your ads channel id<br />
Line 07: specify your publisher id<br />
Line 09: construct the  GAdsManager object<br />
Line 10: enable ads</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-add-adsense-into-your-google-map-api-application%2F&amp;linkname=How%20to%20Add%20Adsense%20into%20Your%20Google%20Map%20API%20Application"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/how-to-add-adsense-into-your-google-map-api-application/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Add Wordpress Pages Without Adding Them to Navigation Menu</title>
		<link>http://www.londatiga.net/it/how-to-add-wordpress-pages-without-adding-them-to-navigation-menu/</link>
		<comments>http://www.londatiga.net/it/how-to-add-wordpress-pages-without-adding-them-to-navigation-menu/#comments</comments>
		<pubDate>Sun, 14 Feb 2010 10:52:28 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[add page without menu]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[wordpress menu]]></category>
		<category><![CDATA[wordpress page]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=528</guid>
		<description><![CDATA[Sometimes when creating a new page, we do not want the page appears on the page navigaton menu. WordPress itself does not provide that option when creating a new page. To apply it, we must change it manually in the header.php file located in the current active theme directory.
How to apply:

Create a new page and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-add-wordpress-pages-without-adding-them-to-navigation-menu%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-add-wordpress-pages-without-adding-them-to-navigation-menu%2F" height="61" width="51" /></a></div><p>Sometimes when creating a new page, we do not want the page appears on the page navigaton menu. WordPress itself does not provide that option when creating a new page. To apply it, we must change it manually in the <span style="color: #800000;"><em>header.php</em></span> file located in the current active theme directory.</p>
<p>How to apply:</p>
<ul>
<li>Create a new page and publish it</li>
<li>Edit the  <span style="color: #800000;"><em>header.php</em></span> file located in the current active theme directory</li>
<li>Find the <span style="color: #800000;"><em>wp_list_pages</em></span> function, add the argument <span style="color: #800000;"><em>exclude = id,</em></span> where <span style="color: #800000;"><em>id</em></span> is the id of the page that will be excluded. Use commas to separate each id if you want to exclude more than one pages, e.g. <span style="color: #800000;"><em>wp_list_pages ( &#8216;exclude = 20,21&#8242;)</em></span>.</li>
<li>To get the id of each page, go to the <span style="color: #800000;"><em>Edit Page</em></span> menu, place the cursor on the<span style="color: #800000;"><em> edit</em></span> link and get the id of the page found on the page url (<em><span style="color: #800000;">wp-admin/page.php?action=edit&amp;post=<strong>20</strong></span></em>).</li>
</ul>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-add-wordpress-pages-without-adding-them-to-navigation-menu%2F&amp;linkname=How%20to%20Add%20Wordpress%20Pages%20Without%20Adding%20Them%20to%20Navigation%20Menu"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/how-to-add-wordpress-pages-without-adding-them-to-navigation-menu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Overlay Video Using JQuery Tools and Flowplayer</title>
		<link>http://www.londatiga.net/featured-articles/how-to-overlay-video-using-jquery-tools-and-flowplayer/</link>
		<comments>http://www.londatiga.net/featured-articles/how-to-overlay-video-using-jquery-tools-and-flowplayer/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 10:07:57 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[flash video]]></category>
		<category><![CDATA[flash video player]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[overlay video]]></category>
		<category><![CDATA[overlay video flowplayer]]></category>
		<category><![CDATA[overlay video javascript]]></category>
		<category><![CDATA[overlay video jquery]]></category>
		<category><![CDATA[web video player]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=500</guid>
		<description><![CDATA[In my previous tutorial, i&#8217;ve explained the basic usage of Flowplayer as your web video player. In this tutorial, i&#8217;ll will show you a little bit advanced usage of Flowplayer combined with Jquery Tools. JqueryTools is used to overlay video with a simple apple effect. This feature is usefull when making a video gallery, where [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Ffeatured-articles%2Fhow-to-overlay-video-using-jquery-tools-and-flowplayer%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Ffeatured-articles%2Fhow-to-overlay-video-using-jquery-tools-and-flowplayer%2F" height="61" width="51" /></a></div><p>In my <a title="How to Use Flowplayer as Your Video Player (Beginner's Guide)" href="http://www.londatiga.net/it/how-to-use-flowplayer-as-your-web-video-player-beginners-guide/" target="_blank">previous tutorial</a>, i&#8217;ve explained the basic usage of <a title="Flowplayer" href="http://www.flowplayer.org" target="_blank">Flowplayer</a> as your web video player. In this tutorial, i&#8217;ll will show you a little bit advanced usage of Flowplayer combined with <a title="Jquery Tools" href="http://flowplayer.org/tools/index.html" target="_blank">Jquery Tools</a>. JqueryTools is used to overlay video with a simple<em> apple</em> effect. This feature is usefull when making a video gallery, where users directly play a video in larger size in an overlay mode without having to move to a new page.</p>
<div class="wp-caption alignnone" style="width: 408px"><img title="Overlay Video" src="http://londatiga.net/images/flowplayer2/flowplayer_overlay.jpg" alt="Overlay Video" width="398" height="314" /><p class="wp-caption-text">Overlay Video</p></div>
<p><strong><span style="text-decoration: underline;">How to Setup</span></strong></p>
<p><strong>Flowplayer</strong></p>
<p>Follow the instructions in <a title="How to Use Flowplayer as Your Video Player (Beginner's Guide)" href="http://www.londatiga.net/it/how-to-use-flowplayer-as-your-web-video-player-beginners-guide/" target="_blank">my previous tutorial</a> to setup Flowplayer</p>
<p><strong>JQuery Tools</strong></p>
<ul>
<li>Download Overlay component from Jquery Tools <a title="Download JQuery Tools" href="http://flowplayer.org/tools/index.html" target="_blank">download&#8217;s page</a> and save it as <span style="color: #800000;">jquery.tools.min.js</span>. You can download it with<span style="color: #800000;"> jQuery</span> (v1.3.2) as a single file (20.82 kb) or as a separated file (1.59 kb) if you already have jQuery.</li>
<div class="wp-caption alignnone" style="width: 460px"><img class=" " title="Download Overlay Component" src="http://londatiga.net/images/flowplayer2/download_overlay.jpg" alt="Download Overlay Component" width="450" height="278" /><p class="wp-caption-text">Download Overlay Component</p></div>
<li>Include the<span style="color: #800000;"> jquery.tools.min.j</span><span style="color: #800000;">s</span> with in the HEAD section of your HTML</li>
<pre class="brush: xml;">
&lt;script src=&quot;scripts/jquery.tools.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;scripts/flowplayer-3.1.4.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
<p>or</p>
<pre class="brush: xml;">
&lt;script src=&quot;scripts/jquery-1.3.2.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;scripts/jquery.tools.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;scripts/flowplayer-3.1.4.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
</ul>
<p><strong><span style="text-decoration: underline;">How to Use</span></strong></p>
<p>To overlay a video,   use two div containers, one is for displaying video information (title and duration) and a splash image  as a video&#8217;s thumbnail and the second is for overlaying the video. To get thumbnail and duration of a video, you can use <span style="color: #800000;">mplayer</span> tool as <a title="Get video thumbnal and duration using mplayer" href="http://www.londatiga.net/it/programming/how-to-get-video-thumbnail-and-duration-using-mplayer-and-php/" target="_blank">explained here</a>.</p>
<p><span style="text-decoration: underline;">Overlay Single Video Player</span></p>
<p><span style="text-decoration: underline;"> </span></p>
<div class="wp-caption alignnone" style="width: 222px"><a title="View Demo Video Overlay" href="http://londatiga.net/tutorials/flowplayer2/single.html" target="_blank"><img class=" " title="View Demo" src="http://londatiga.net/images/flowplayer2/demo1.jpg" border="0" alt="View Demo" width="212" height="164" /></a><p class="wp-caption-text">View Demo</p></div>
<p><span style="text-decoration: underline;"><span style="text-decoration: underline;"> </span></span></p>
<p><span style="text-decoration: underline;">HTML</span></p>
<pre class="brush: xml;">
&lt;div class=&quot;video&quot; style=&quot;background-image:url(images/splash_01.jpg)&quot;&gt;
        &lt;a href=&quot;#&quot; rel=&quot;#orel&quot;&gt;
            &lt;img src=&quot;images/play.png&quot; alt=&quot;play&quot; title=&quot;play&quot; border=&quot;0&quot;&gt;
        &lt;/a&gt;
        &lt;div class=&quot;info&quot;&gt;
            PMDG Virtual Cockpit
            &lt;span&gt;00:27&lt;/span&gt;
        &lt;/div&gt;
&lt;/div&gt;

&lt;div id=&quot;orel&quot; class=&quot;overlay&quot;&gt;&lt;a href=&quot;video/video01.flv&quot; id=&quot;player&quot;&gt;&lt;/a&gt;&lt;/div&gt;
</pre>
<p><span style="color: #800000;">line 01:</span> container for video information, splash image, play button, and video title and duration.<br />
<span style="color: #800000;"> line 02:</span> trigger button (play button), the button image is inside the <span style="color: #800000;"><em>a</em></span> tag that has <span style="color: #800000;"><em>rel</em></span> tag (<span style="color: #800000;">orel</span>) that match with the video overlay container&#8217;s id (<span style="color: #800000;">line 11</span>)<br />
<span style="color: #800000;"> line 11:</span> container for video overlay</p>
<p><span style="text-decoration: underline;">CSS</span></p>
<pre class="brush: css;">
div.overlay {
	z-index:9999;
	padding:40px;
	width:476px;
	display:none;
	background-image:url(../images/gray.png);
}
div.overlay div.close {
	background:url(../images/close.png) no-repeat;
	position:absolute;
	top:2px;
	right:5px;
	width:35px;
	height:35px;
	cursor:pointer;
}
div.overlay a {
	height:370px;
	display:block;
}
div.video {
	height:150px;
	width:200px;
	border:2px solid #fff;
	outline:1px solid #ccc;
	-moz-outline-radius:4px;
	cursor:pointer;
	text-align:center;
	float:left;
	margin:5px;
}
div.video img {
	margin-top:50px;
}
div.video div.info {
	height:40px;
	background:#000 url(../images/h80.png) repeat-x;
	opacity:0.7;
	color:#fff;
	margin-top:2px;
	text-align:left;
	padding:5px 5px;
	font-family:&quot;bitstream vera sans&quot;,&quot;trebuchet ms&quot;;
	font-size:11px;
	border-top:1px solid #ccc;

}
div.video div.info span {
	color:#99FF99;
	display:block;
}
</pre>
<p>The CSS style definition for vide overlay</p>
<p><span style="text-decoration: underline;">JavaScript</span></p>
<pre class="brush: jscript;">
$(function() {
      var player = $f(&quot;player&quot;, &quot;swf/flowplayer-3.1.5.swf&quot;);

      $('a[rel]').overlay({
            expose: '#111',
            effect: 'apple',

            onLoad: function() {
                 player.load();
            },

            onClose: function() {
                player.unload();
            }
       });
});
</pre>
<p><span style="color: #800000;">line 02:</span> install flowplayer into it&#8217;s container<br />
<span style="color: #800000;"> line 04:</span> the overlay function, fired when user clicks on play button<br />
<span style="color: #800000;"> line 05: </span>expose color<br />
<span style="color: #800000;"> line 06</span>: overlay effect<br />
<span style="color: #800000;"> line 08:</span><span style="color: #000000;"> load the player<br />
<span style="color: #800000;"> line 12:</span> </span><span style="color: #000000;">u</span>nload the player when user clicks on close button</p>
<p><span style="text-decoration: underline;">Overlay Multiple Player</span></p>
<p><span style="text-decoration: underline;"> </span></p>
<div class="wp-caption alignnone" style="width: 440px"><a title="Demo Multiple Video Overlay" href="http://londatiga.net/tutorials/flowplayer2/multi.html" target="_blank"><img title="View Demo" src="http://londatiga.net/images/flowplayer2/demo2.jpg" alt="View Demo" width="430" height="163" /></a><p class="wp-caption-text">View Demo</p></div>
<pre class="brush: xml;">
&lt;div style=&quot;float:left&quot;&gt;
   &lt;div class=&quot;video&quot; style=&quot;background-image:url(images/splash_01.jpg)&quot;&gt;
      &lt;a href=&quot;#&quot; rel=&quot;#orel1&quot;&gt;
         &lt;img src=&quot;images/play.png&quot; alt=&quot;play&quot; title=&quot;play&quot; border=&quot;0&quot;&gt;
      &lt;/a&gt;
      &lt;div class=&quot;info&quot;&gt;
          PMDG Virtual Cockpit
          &lt;span&gt;00:27&lt;/span&gt;
       &lt;/div&gt;
   &lt;/div&gt;

   &lt;div id=&quot;orel1&quot; class=&quot;overlay&quot;&gt;&lt;a href=&quot;video/video01.flv&quot; class=&quot;player&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;

&lt;div style=&quot;float:left&quot;&gt;
   &lt;div class=&quot;video&quot; style=&quot;background-image:url(images/splash_02.jpg)&quot;&gt;
       &lt;a href=&quot;#&quot; rel=&quot;#orel2&quot;&gt;
          &lt;img src=&quot;images/play.png&quot; alt=&quot;play&quot; title=&quot;play&quot; border=&quot;0&quot;&gt;
       &lt;/a&gt;
       &lt;div class=&quot;info&quot;&gt;
            PMDG Virtual Cockpit - Dark
            &lt;span&gt;02:38&lt;/span&gt;
       &lt;/div&gt;
    &lt;/div&gt;

    &lt;div id=&quot;orel2&quot; class=&quot;overlay&quot;&gt;&lt;a href=&quot;video/video02.flv&quot; class=&quot;player&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</pre>
<p><span style="color: #800000;">line 01:</span> container for video 1<br />
<span style="color: #800000;"> line 03:</span> <span style="color: #800000;"><em>rel</em></span> tag must have a unique value for each video (orel1 &amp; orel2 for the two videos)<br />
<span style="color: #800000;"> line 12:</span> overlay container, it&#8217;s id must match the <em><span style="color: #800000;">rel</span></em> tag in<span style="color: #000000;"> </span><span style="color: #000000;">line 03</span><br />
<span style="color: #800000;"> line 15:</span> container for video 2</p>
<p><span style="text-decoration: underline;">CSS</span></p>
<p>Look at example 1</p>
<p><span style="text-decoration: underline;">JavaScript</span></p>
<pre class="brush: jscript;">
$(function() {
    $(&quot;a[rel]&quot;).overlay ({
         effect: 'apple',
	 expose: '#111',

         onLoad: function(content) {
             this.getOverlay().find(&quot;a.player&quot;).flowplayer(0).load();
         },

         onClose: function(content) {
              $f().unload();
         }
     });

     $(&quot;a.player&quot;).flowplayer(&quot;swf/flowplayer-3.1.5.swf&quot;);
});
</pre>
<p><span style="color: #800000;">line 07:</span> load video, overlay function looks for <em><span style="color: #800000;">a</span></em> element with <span style="color: #800000;"><em>player</em></span> class name within it&#8217;s container to load the video<br />
<span style="color: #800000;"> line 11:</span> unload video<br />
<span style="color: #800000;"> line 15: </span> install flowplayer</p>
<div style="padding:10px;background:#2dd354;"><a title="Download example source code" href="http://londatiga.net/downloads/tutorial/flowplayer2.zip" target="_self">Download Example Source Code</a></div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Ffeatured-articles%2Fhow-to-overlay-video-using-jquery-tools-and-flowplayer%2F&amp;linkname=How%20to%20Overlay%20Video%20Using%20JQuery%20Tools%20and%20Flowplayer"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/featured-articles/how-to-overlay-video-using-jquery-tools-and-flowplayer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Get Video Thumbnail and Duration Using Mplayer and PHP</title>
		<link>http://www.londatiga.net/it/programming/how-to-get-video-thumbnail-and-duration-using-mplayer-and-php/</link>
		<comments>http://www.londatiga.net/it/programming/how-to-get-video-thumbnail-and-duration-using-mplayer-and-php/#comments</comments>
		<pubDate>Sat, 13 Feb 2010 09:39:22 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[get video duration]]></category>
		<category><![CDATA[get video thumbnail]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[video gallery]]></category>
		<category><![CDATA[video player]]></category>
		<category><![CDATA[video player php]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=511</guid>
		<description><![CDATA[Mplayer is a free and open source media player that available for all major operating systems including Windows, Unix and Mac OS X. Basically Mplayer is a command line application but it also has GUI front end that differs to its supported operating system.
In PHP, we can execute Mplayer&#8217;s command line to get thumbnail and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fprogramming%2Fhow-to-get-video-thumbnail-and-duration-using-mplayer-and-php%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fprogramming%2Fhow-to-get-video-thumbnail-and-duration-using-mplayer-and-php%2F" height="61" width="51" /></a></div><p><a title="MPlayer" href="http://www.mplayerhq.hu/" target="_blank">Mplayer</a> is a free and open source media player that available for all major operating systems including Windows, Unix and Mac OS X. Basically Mplayer is a command line application but it also has GUI front end that differs to its supported operating system.</p>
<p>In PHP, we can execute Mplayer&#8217;s command line to get thumbnail and duration of a video file.</p>
<p><span style="text-decoration: underline;">The basic command line to get thumbnail is:</span></p>
<p>[lorenz@localhost] mplayer -ss <span style="color: #800000;"><em>&lt;position&gt;</em></span> <span style="color: #800000;"><em>videofile</em></span> &#8211; frames <span style="color: #800000;"><em>&lt;numofthumb&gt;</em></span> -nosound -vo jpeg<span style="color: #800000;">&lt;</span>:<span style="color: #800000;"><em>outdir=path/to/outdir</em></span><span style="color: #800000;">&gt;</span>.</p>
<p>where:</p>
<p><span style="color: #800000;">position</span>, is seek position in seconds or in hh:mm:ss when the thumbnail is taken<br />
<span style="color: #800000;"> videofile</span>, is the video file or path to video file<br />
<span style="color: #800000;"> numbofthumb</span>,  is the number of thumbnail created<br />
<span style="color: #800000;"> <img src='http://www.londatiga.net/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> utdir=path/to/outdir</span>, is the output directory. If the outdir is not specified, the default current working directory will be the output directory, make sure the output directory is writetable.</p>
<p>Example</p>
<p>[lorenz@localhost] mplayer -ss <span style="color: #800000;"><span style="color: #000000;">10</span></span><span style="color: #000000;"> video.flv</span> -frames 1<span style="color: #800000;"><em> </em></span>-nosound -vo jpe<span style="color: #800000;"><span style="color: #000000;">g:outdir=/home/lorenz/video</span></span></p>
<p>The command above will create one thumbnail from video.flv at 10th second position, the output directory is /home/lorenz/video. The resulted thumbnail filename will be 00000001.jpg and will increase in accordance with number of thumbnail created, -frames 10 will result ten thumbnails with filename starts from 00000001.jpg to 00000010.jpg.</p>
<p>To execute in PHP, use <em><span style="color: #800000;">exec <span style="font-style: normal;"><span style="color: #000000;">command</span></span></span></em></p>
<pre class="brush: php;">
exec(&quot;mplayer -ss 10 video.flv -frames 1 -nosound -vo jpeg:outdir=/home/lorenz&quot;);
</pre>
<p><span style="text-decoration: underline;">The basic command line to get duration is:</span></p>
<p>[lorenz@localhost] mplayer -vo null -ao null -frames 0 -identify video.flv</p>
<p>The command above will output a lot of video information, the video duration is on <span style="color: #800000;"><em>ID_LENGTH=duration</em></span> line.<br />
To get the duration in PHP, we have to extract ID_LENGTH line from the output string.<br />
The PHP code :</p>
<pre class="brush: php;">
exec('mplayer -vo null -ao null -frames 0 -identify video.flv', $output);

while (list($key, $value) = each($output)) {
      if ($length = strstr($v, &quot;ID_LENGTH=&quot;)) break;
}

$data       = explode('=', $length);
$duration   = $data [1];
</pre>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fprogramming%2Fhow-to-get-video-thumbnail-and-duration-using-mplayer-and-php%2F&amp;linkname=How%20to%20Get%20Video%20Thumbnail%20and%20Duration%20Using%20Mplayer%20and%20PHP"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/programming/how-to-get-video-thumbnail-and-duration-using-mplayer-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Embed Google Static Map in Your Blog Pages Using GStaticMap Plugin</title>
		<link>http://www.londatiga.net/it/embedding-google-static-map-in-your-blog-pages-using-gstaticmap-plugin/</link>
		<comments>http://www.londatiga.net/it/embedding-google-static-map-in-your-blog-pages-using-gstaticmap-plugin/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 16:56:06 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[embed google map]]></category>
		<category><![CDATA[embed google map in blog pages]]></category>
		<category><![CDATA[google map wordress plugin]]></category>
		<category><![CDATA[google map wp plugin]]></category>
		<category><![CDATA[google static map]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=487</guid>
		<description><![CDATA[Google Static Map lets you embed Google map image in your own web pages without using Javascript or any dynamic loading page. The static map created on your page based on URL parameters sent through a standard HTTP request. You create the URL with it&#8217;s required parameters and place it within an &#60;img&#62; tag.
GStaticMap is [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fembedding-google-static-map-in-your-blog-pages-using-gstaticmap-plugin%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fembedding-google-static-map-in-your-blog-pages-using-gstaticmap-plugin%2F" height="61" width="51" /></a></div><p><a title="Google Static Map Documentation Page" href="http://code.google.com/apis/maps/documentation/staticmaps/" target="_blank">Google Static Map</a> lets you embed Google map image in your own web pages without using Javascript or any dynamic loading page. The static map created on your page based on URL parameters sent through a standard HTTP request. You create the URL with it&#8217;s required parameters and place it within an <em><span style="color: #800000;">&lt;img&gt;</span></em> tag.</p>
<p><a title="GStaticMap Wordpress Plugin - Embed Google Static Map" href="http://www.londatiga.net/projects/gstaticmap" target="_blank">GStaticMap</a> is a Wordpress plugin that lets you embed Google static map easily in your blog pages without using an <em><span style="color: #800000;">&lt;img&gt;</span></em> tag. To embed a map, just include the<span style="color: #800000;"> </span><em><span style="color: #800000;">gsmap <span style="color: #000000;"><span style="font-style: normal;">tag with it&#8217;s paramaters (optional) in every pages you want to embed. The plugin has  default parameters that can be set using it&#8217;s settings form on administration panel. For more information about this plugin, please refer to i&#8217;ts <a title="GStaticMap Wordpress Plugin - Embed Google Static Map" href="http://www.londatiga.net/projects/gstaticmap/docs" target="_blank">documentation page</a>. Below are two examples to embed a map. </span></span></span></em></p>
<p><em><span style="color: #800000;"><span style="color: #000000;"><span style="font-style: normal;"><span style="text-decoration: underline;">Using default tag without parameters. </span></span></span></span></em></p>
<p>Note that the default tag doesn&#8217;t use parameters, the parameters are loaded automatically from default parameters set in settings panel.</p>
<p><img class="alignnone" src="http://londatiga.net/images/gstaticmap/basictag.jpg" alt="" width="117" height="27" /></p>
<p><img src="http://maps.google.com/maps/api/staticmap?center=Chicago,IL&zoom=13&size=500x400&format=jpg&maptype=roadmap&sensor=false&key=ABQIAAAATi0sMEcfYuwlc8pIhUeWqxQXUsYVDIOtTexmBHamZWhnk2fumRTaFG4ndf1J6Sx4yCVXr3uiFtkQcg"  ></p>
<p><span style="text-decoration: underline;">Using parameters that specify the center location, zoom factor and map type.</span></p>
<p><img class="alignnone" src="http://londatiga.net/images/gstaticmap/regtag.jpg" alt="" width="119" height="100" /></p>
<p><img src="http://maps.google.com/maps/api/staticmap?center=Jakarta&zoom=14&size=500x400&format=jpg&maptype=hybrid&sensor=false&key=ABQIAAAATi0sMEcfYuwlc8pIhUeWqxQXUsYVDIOtTexmBHamZWhnk2fumRTaFG4ndf1J6Sx4yCVXr3uiFtkQcg"  ></p>
<p>Download: <a title="Download GStaticMap Wordpress Plugin" href="http://wordpress.org/extend/plugins/gstaticmap/" target="_blank">gstaticmap-1.0.0.zip</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fembedding-google-static-map-in-your-blog-pages-using-gstaticmap-plugin%2F&amp;linkname=Embed%20Google%20Static%20Map%20in%20Your%20Blog%20Pages%20Using%20GStaticMap%20Plugin"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/embedding-google-static-map-in-your-blog-pages-using-gstaticmap-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 10 Most Popular Google Chrome Extension</title>
		<link>http://www.londatiga.net/it/top-10-most-popular-google-chrome-extension/</link>
		<comments>http://www.londatiga.net/it/top-10-most-popular-google-chrome-extension/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 18:06:34 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[best chrome extension]]></category>
		<category><![CDATA[chrome extension]]></category>
		<category><![CDATA[google chrome]]></category>
		<category><![CDATA[google chrome extension]]></category>
		<category><![CDATA[popular chrome extension]]></category>
		<category><![CDATA[popular google chrome extension]]></category>
		<category><![CDATA[top rated chrome extension]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=388</guid>
		<description><![CDATA[Google Chrome is a simple and fastest web browser that are getting popular today. According to data from the research company Net Applications, by the end of December 2009, Google Chrome browser&#8217;s market share exceeded that of Apple&#8217;s Safari browser for the first time, ranking third.
Since Google Chrome has been released with extensions, there are [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Ftop-10-most-popular-google-chrome-extension%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Ftop-10-most-popular-google-chrome-extension%2F" height="61" width="51" /></a></div><p><a title="Google Chrome" href="http://chrome.google.com" target="_blank">Google Chrome</a> is a simple and fastest web browser that are getting popular today. According to data from the research company Net Applications, by the end of December 2009, Google Chrome browser&#8217;s market share exceeded that of <a title="Apple Safari" href="http://www.apple.com/safari/" target="_blank">Apple&#8217;s Safari</a> browser for the first time, ranking third.</p>
<p>Since Google Chrome has been released with <a title="Google Chrome Extensions" href="https://chrome.google.com/extensions" target="_blank">extensions</a>, there are about 2000 extensions have been made by developers around the world. Below are the top ten most popular extensions so far:</p>
<ol>
<li><a title="AdBlock Chrome Extension" href="https://chrome.google.com/extensions/detail/gighmmpiobklfepjocnamgkkbiglidom" target="_blank">AdBlock</a>.</li>
<div class="wp-caption alignnone" style="width: 260px"><img class=" " title="AdBlock Chrome Extension" src="http://londatiga.net/images/top10chrome/adblock.jpg" alt="AdBlock Extension" width="250" height="199" /><p class="wp-caption-text">AdBlock Extension</p></div>
<p>Blocks advertisements on all web pages just like the most popular <a title="Mozilla Firefox" href="http://www.mozilla.com/en-US/firefox/firefox.html" target="_blank">Firefox</a> extension,<a title="Firefox AdBlock Plus" href="http://adblockplus.org/en/" target="_blank"> AdBlock Plus</a>.</p>
<p>Current version is 1.3.10 (Feb 1, 2010).</p>
<li><a title="Google Mail Checker Chrome Extension" href="https://chrome.google.com/extensions/detail/mihcahmgecmbnbcchbopgniflfhgnkff" target="_blank">Google Mail Checker</a>.</li>
<div class="wp-caption alignnone" style="width: 253px"><img title="Google Mail Checker Chrome Extension" src="http://londatiga.net/images/top10chrome/gmailchecker.png" alt="Google Mail Checker Extension" width="243" height="170" /><p class="wp-caption-text">Google Mail Checker Extension</p></div>
<p>Displays the number of unread messages in your Google Mail inbox. You can also click the button to open your inbox.</p>
<p>Current version is 3.0 (Dec 19, 2009)</p>
<li><a title="IE Tabs Chrome Extension" href="https://chrome.google.com/extensions/detail/hehijbfgiekmjfkfjpbkbammjbdenadd" target="_blank">IE Tab</a>.</li>
<div class="wp-caption alignnone" style="width: 260px"><img title="IE Tab Chrome Extension" src="http://londatiga.net/images/top10chrome/ietabs.jpg" alt="IE Tab  Extension" width="250" height="221" /><p class="wp-caption-text">IE Tab  Extension</p></div>
<p>Displays web pages in a Chrome tab using Internet Explorer. Great for web developers who want to test the IE rendering engine, users who use sites with ActiveX controls, and users who want to use the explorer view for local files.</p>
<p>Current version is 1.0.11208.1 ( Dec 8, 2009)</p>
<li><a title="Google Translate Chrome Extension" href="https://chrome.google.com/extensions/detail/aapbdbdomjkkjkaonfhkkikfgjllcleb" target="_blank">Google Translate</a>.</li>
<div class="wp-caption alignnone" style="width: 275px"><img title="Google Translate Chrome Extension" src="http://londatiga.net/images/top10chrome/gtranslate.png" alt="Google Translate Extension" width="265" height="131" /><p class="wp-caption-text">Google Translate Extension</p></div>
<p>Translates  entire webpages into a language of your choice with one click.</p>
<p>Current version is 1.1.5 (Dec 17, 2009)</p>
<li><a title="AdThwart Chrome Extension" href="https://chrome.google.com/extensions/detail/cfhdojbkjhnklbpkdaibdccddilifddb" target="_blank">AdThwart</a>.</li>
<div class="wp-caption alignnone" style="width: 260px"><img title="AdThwart Chrome Extension" src="http://londatiga.net/images/top10chrome/adthwart.jpg" alt="AdThwart  Extension" width="250" height="190" /><p class="wp-caption-text">AdThwart  Extension</p></div>
<p>Blocks advertisements using <a title="Mozilla Firefox" href="http://www.mozilla.com/en-US/firefox/firefox.html" target="_blank">Firefox</a> <a title="AdBlock Plus extension" href="http://adblockplus.org/en/" target="_blank">AdBlock Plus</a> filter engine.</p>
<p>Current version is  0.7.5 (Feb 1, 2010)</p>
<li><a title="FastestFox Chrome Extension" href="https://chrome.google.com/extensions/detail/mmffncokckfccddfenhkhnllmlobdahm" target="_blank">FastestFox</a>.</li>
<div class="wp-caption alignnone" style="width: 260px"><img title="FastestFox Chrome Extension" src="http://londatiga.net/images/top10chrome/fastestfox.jpg" alt="FastestFox Extension" width="250" height="188" /><p class="wp-caption-text">FastestFox Extension</p></div>
<p>Makes browsing faster by  speeding up repetitive tasks, get auto-loading of next page, improved searching, and more.</p>
<p>Current version is 0.30 (Jan 29, 2010).</p>
<li><a title="Add to Amazon Wishlist chrome extension" href="https://chrome.google.com/extensions/detail/ciagpekplgpbepdgggflgmahnjgiaced" target="_blank">Add to Amazon Wishlist</a>.</li>
<div class="wp-caption alignnone" style="width: 260px"><img title="Add to Amazon Wishlist Chrome Extension" src="http://londatiga.net/images/top10chrome/amazon.jpg" alt="Add to Amazon Wishlist  Extension" width="250" height="188" /><p class="wp-caption-text">Add to Amazon Wishlist  Extension</p></div>
<p>Adds any item from any website to Amazon Wishlist with one simple click, making it easier than ever to keep track of all the items you wish for, all in one place.</p>
<p>Current version is 1.0.0.0 (Jan 01, 2010)</p>
<li><a title="Docs PDF/Powerpoint Chrome Extension" href="https://chrome.google.com/extensions/detail/nnbmlagghjjcbdhgmkedmbmedengocbn" target="_blank">Docs PDF/PowerPointViewer</a></li>
<div class="wp-caption alignnone" style="width: 260px"><img title="Docs PDF/PowerPoint Viewer Chrome Extension" src="http://londatiga.net/images/top10chrome/pdf.jpg" alt="Docs PDF/PowerPoint Viewer Extension" width="250" height="176" /><p class="wp-caption-text">Docs PDF/PowerPoint Viewer Extension</p></div>
<p>Enable  automatic preview of pdfs, powerpoint presentations, and other documents in Google Docs Viewer.</p>
<p>Current version is 1.5.3 (Dec 10, 2009)</p>
<li><a title="Xmarks Chrome Extension" href="https://chrome.google.com/extensions/detail/ajpgkpeckebdhofmmjfgcjjiiejpodla" target="_blank">Xmarks Bookmark Sync</a></li>
<div class="wp-caption alignnone" style="width: 260px"><img title="Xmark Chrome Extension" src="http://londatiga.net/images/top10chrome/xmark.jpg" alt="Xmark  Extension" width="250" height="263" /><p class="wp-caption-text">Xmark  Extension</p></div>
<p>Bookmark your bookmarks across computer and browsers.  Xmarks is also available for Firefox, Safari and IE.</p>
<p>Current version is 0.5.65  (Jan 16, 2010)</p>
<li><a title="RSS Subscription Chrome Extension" href="https://chrome.google.com/extensions/detail/nlbjncdgjeocebhnmkbbbdekmmmcbfjd" target="_blank">RSS Subscription Extension</a></li>
<div class="wp-caption alignnone" style="width: 260px"><img title="RSS Subscription Chrome Extension" src="http://londatiga.net/images/top10chrome/rss.jpg" alt="RSS Subscription Extension" width="250" height="94" /><p class="wp-caption-text">RSS Subscription Extension</p></div>
<p>Enable Chrome to  auto-detects RSS feeds on the page you are reading and upon finding one will display an RSS icon in the Omnibox, allowing you to click on it to preview the feed content and subscribe.</p>
<p>Current version is 2.0.3 (Jan 30, 2010)</ol>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Ftop-10-most-popular-google-chrome-extension%2F&amp;linkname=Top%2010%20Most%20Popular%20Google%20Chrome%20Extension"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/top-10-most-popular-google-chrome-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Use Flowplayer as Your Web Video Player (Beginner&#8217;s Guide)</title>
		<link>http://www.londatiga.net/it/how-to-use-flowplayer-as-your-web-video-player-beginners-guide/</link>
		<comments>http://www.londatiga.net/it/how-to-use-flowplayer-as-your-web-video-player-beginners-guide/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 18:47:02 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Featured Articles]]></category>
		<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Java Script]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[flash video player]]></category>
		<category><![CDATA[flowplayer]]></category>
		<category><![CDATA[flowplayer guides]]></category>
		<category><![CDATA[flowplayer howto]]></category>
		<category><![CDATA[flowplayer tutorial]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[swf]]></category>
		<category><![CDATA[web video player]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=346</guid>
		<description><![CDATA[Flowplayer is a free video player for the web that is used to embed video streamson a web page. Flowplayer is highly skinnable and extendable. You can customize it&#8217;s look and feel and also extend it&#8217;s functionality using available plugins. If you are an expert in JavaScript or ActionScript programming, you can even create your [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-use-flowplayer-as-your-web-video-player-beginners-guide%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-use-flowplayer-as-your-web-video-player-beginners-guide%2F" height="61" width="51" /></a></div><p><a title="Flowplayer" href="http://flowplayer.org" target="_blank">Flowplayer</a> is a free video player for the web that is used to embed video streamson a web page. Flowplayer is highly skinnable and extendable. You can customize it&#8217;s look and feel and also extend it&#8217;s functionality using available plugins. If you are an expert in JavaScript or ActionScript programming, you can even create your own plugins according to your needs. There are two types of Flowplayer&#8217;s plugin, the <span style="color: #800000;">JavaScript</span> plugin that works outside the player and <span style="color: #800000;">Flash</span> plugin that works inside the player.</p>
<div class="wp-caption alignnone" style="width: 427px"><img title="Flowplayer" src="http://londatiga.net/images/flowplayer/flowplayer.jpg" alt="Flowplayer" width="417" height="315" /><p class="wp-caption-text">Flowplayer</p></div>
<p>Flowplayer is released in two versions:</p>
<ul>
<li>Open source (free) version (released under the GPL license).  In this version, the Flowplayer branding (logo) is always visible on the player, you can&#8217;t remove the logo.</li>
<li>Commercial version. In this version  you can remove the Flowplayer logo and place your own logo on the video.</li>
</ul>
<p>Current version of the time of this writting is version 3.1.5 which can be downloaded <a title="Download flowplayer" href="http://flowplayer.org/download/index.html" target="_blank">here</a>.</p>
<p><strong>Browser Compatibility</strong><br />
Flowplayer API and JavaScript plugins are dependent on JavaScript 1.5 which is supported by following browsers:</p>
<ul>
<li>Internet Explorer 6.0+</li>
<li>Firefox FF 2+</li>
<li>Safari 2.0+</li>
<li>Opera 2.0+</li>
</ul>
<p>Supported Flash Player: 9.0+</p>
<p><strong>Supported video formats</strong><br />
Currently Flowplayer support three video formats:</p>
<ul>
<li>Flv</li>
<li>H.264</li>
<li>Mp4</li>
</ul>
<p><strong>Using Flowplayer</strong></p>
<p><span style="text-decoration: underline;">Download and install Flowplayer</span></p>
<ul>
<li>Download the free version of Flowplayer (<a title="Download Flowplayer" href="http://releases.flowplayer.org/flowplayer/flowplayer-3.1.5.zip" target="_blank">flowplayer-3.5.1.zip</a> (161.2 kB))</li>
<li>Extract and copy <span style="color: #800000;">flowplayer-3.1.5.swf </span>and <span style="color: #800000;">f</span><span style="color: #800000;"><span style="color: #800000;">l</span>owplayer-3.1.4.min.js </span>into your web application directory</li>
<li>Include the <span style="color: #800000;">flowplayer-3.1.4.min.js</span> in the HEAD section of your HTML file</li>
<pre class="brush: xml;">
&lt;script src=&quot;scripts/flowplayer-3.1.4-min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
</pre>
</ul>
<p><span style="text-decoration: underline;">Setup Video Container</span></p>
<p>To use Flowplayer, you have to setup a HTML element as a video container on your page. The element can be any HTML tag, but the most commonly used tags are anchor (<span style="color: #800000;">A</span>) and <span style="color: #800000;">DIV</span>.</p>
<pre class="brush: xml;">
&lt;a  href=&quot;videos/video01.flv&quot; style=&quot;display:block;width=&quot;400px&quot;; height=&quot;300px&quot; id=&quot;player&quot;&gt;
</pre>
<p><span style="text-decoration: underline;">Install Flowplayer</span></p>
<pre class="brush: jscript;">
&lt;script language=&quot;javascript&gt;
	flowplayer(&quot;player&quot;, &quot;swf/flowplayer-3.1.5.swf&quot;);
&lt;/script&gt;
</pre>
<p>To install Flowplayer, we call the JavaSript function &#8216;<span style="color: #800000;">flowplayer</span>&#8216; that has two arguments. The first argument &#8216;<span style="color: #800000;">player</span>&#8216; is the id of HTML element that used as video container and the second argument is the path to Flowplayer (swf file).</p>
<p><em>Syntax:</em></p>
<blockquote><p><em>flowplayer(&#8217;elemntId&#8217;, &#8216;pathtoswf&#8221;, config)</em></p></blockquote>
<p>where<em>:</em><br />
<em> elementId</em> is the id of video container<br />
<em> pathtoswf</em> is the path to Flowplayer<br />
<em> config</em> is player configuration</p>
<p>more information about &#8216;<span style="color: #800000;">flowplaye</span><span style="color: #800000;">r&#8217;</span> function can be read <a href="http://flowplayer.org/documentation/configuration/player.html" target="_blank">here</a></p>
<p><strong>Examples</strong></p>
<p>1. Single Player</p>
<pre class="brush: xml;">
&lt;a href=&quot;video/video01.flv&quot; style=&quot;display:block; width:400px; height:300px;&quot; id=&quot;player&quot;&gt;
&lt;script language='javascript'&gt;
        flowplayer(&quot;player&quot;, &quot;swf/flowplayer-3.1.5.swf&quot;);
&lt;/script&gt;
</pre>
<p><a title="Single player" href="http://londatiga.net/tutorials/flowplayer/single.html" target="_blank">View live demo</a></p>
<p>2. Multiple Player</p>
<pre class="brush: xml;">
&lt;a class=&quot;player&quot; href=&quot;video/video01.flv&quot; style=&quot;display:block; width:400px; height:300px&quot;&gt;
&lt;a class=&quot;player&quot; href=&quot;video/video02.flv&quot; style=&quot;display:block; width:400px; height:300px&quot;&gt;

&lt;script language=&quot;javascript&quot;&gt;
       flowplayer(&quot;a.player&quot;, &quot;swf/flowplayer-3.1.5.swf&quot;);
&lt;script&gt;
</pre>
<p>On the example above, we use two video player on the same  page, each <span style="color: #800000;">A</span> tag is assigned &#8216;<span style="color: #800000;">playe</span>r&#8217; CSS class name, which is defined in CSS section below.  The first argument of &#8216;<span style="color: #800000;">flowplayer&#8217;</span> function is <span style="color: #800000;">&#8216;a.playe</span><span style="color: #800000;">r&#8217;</span> that takes  format <span style="color: #800000;">tagName.className <span style="color: #000000;">which means that all <span style="color: #800000;">A</span> tagsthat have &#8216;<span style="color: #800000;">player</span>&#8216; class name will be used as video container.</span></span></p>
<pre class="brush: css;">
.player {
      display:block;
      width: 400px;
      height: 300px;
      float: left;
      margin-left: 10px;
}
</pre>
<p><a title="Multiple player" href="http://londatiga.net/tutorials/flowplayer/multi.html">View live demo</a></p>
<p>3. Using Splash Image</p>
<p>Splash image can be used as a preview of video content and also allow us to setup the Flowplayer instance so it is not activated until the user clicks on the image.</p>
<pre class="brush: xml;">
&lt;a href=&quot;video/video01.flv&quot;  style=&quot;display:block;width:400px;height:300px&quot; id=&quot;player&quot;&gt;
   &lt;img src=&quot;images/splash_01.jpg&quot; alt=&quot;PMDG MD11 Cockpit&quot;&gt;
&lt;/a&gt;

&lt;script language=&quot;javascript&quot;&gt;
      flowplayer(&quot;player&quot;, &quot;swf/flowplayer-3.1.5.swf&quot;);
&lt;/script&gt;
</pre>
<p><a title="Splash example" href="http://londatiga.net/tutorials/flowplayer/splash.html" target="_blank">View live demo</a></p>
<p>4. Using Clips</p>
<p>Clips represent movies to play in Flowplayer. Clips can also be provided as a Playlist with a series of clips that will be played in sequence. Clip and Playlist are objects of Player.</p>
<pre class="brush: xml;">
&lt;div style=&quot;display:block; width:400px; height:300px&quot; id=&quot;player&quot;&gt;&lt;/div&gt;

&lt;script language=&quot;javascript&quot;&gt;
        flowplayer(&quot;player&quot;, &quot;swf/flowplayer-3.1.5.swf&quot;, {
            clip: { url: 'video/video01.flv',
                    autoPlay: false
            }
        });
&lt;/script&gt;
</pre>
<p>On the example above, we use <span style="color: #800000;">DIV</span> tag as video container. By using <span style="color: #800000;">DIV</span>,  we can&#8217;t define the video url using <span style="color: #800000;">href</span> like in our previous examples that using <span style="color: #800000;">A</span> tag. The video url is defined within Clip object and we also set the <span style="color: #800000;">autoPlay</span> to<span style="color: #800000;"> false</span> that indicating the player should not start playback immediately upon loading.</p>
<p><a title="Using clips" href="http://londatiga.net/tutorials/flowplayer/clip.html" target="_blank">View live demo </a></p>
<div style="padding:10px;background:#2dd354;"><a title="Download scrollable demo source code" href="http://londatiga.net/downloads/tutorial/flowplayer.zip" target="_self">Download Example Source Code</a></div>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-use-flowplayer-as-your-web-video-player-beginners-guide%2F&amp;linkname=How%20to%20Use%20Flowplayer%20as%20Your%20Web%20Video%20Player%20%28Beginner%26%238217%3Bs%20Guide%29"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/how-to-use-flowplayer-as-your-web-video-player-beginners-guide/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Stay Up to Date With Your Twitter Using Chrome Bird Extension</title>
		<link>http://www.londatiga.net/it/stay-up-to-date-with-your-twitter-using-chrome-bird-extension/</link>
		<comments>http://www.londatiga.net/it/stay-up-to-date-with-your-twitter-using-chrome-bird-extension/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 11:57:48 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[chrome twitter extension]]></category>
		<category><![CDATA[google chrome extension]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[twitter extension]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=338</guid>
		<description><![CDATA[Chromed Bird is a Chrome extension that allows you to follow your timelines and interact with your Twitter account from Google Chrome browser. Current version of the time of this writing is 1.5.0 (2010-01-24).
Features:

Follow your timelines and navigate through your tweets;
Compose, reply, RT, share, favorite and delete tweets;
Create short URLs within the extension;
Track read / [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fstay-up-to-date-with-your-twitter-using-chrome-bird-extension%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fstay-up-to-date-with-your-twitter-using-chrome-bird-extension%2F" height="61" width="51" /></a></div><p><a title="Twitter Extension for Chrome" href="https://chrome.google.com/extensions/detail/encaiiljifbdbjlphpgpiimidegddhic#" target="_blank">Chromed Bird</a> is a <a title="Google Chrome" href="http://chrome.google.com" target="_blank">Chrome</a> extension that allows you to follow your timelines and interact with your Twitter account from Google Chrome browser. Current version of the time of this writing is 1.5.0 (2010-01-24).</p>
<div class="wp-caption alignnone" style="width: 510px"><img title="Chrome Bird" src="http://londatiga.net/images/chromebird/chromebird.jpg" alt="Chrome Bird" width="500" height="478" /><p class="wp-caption-text">Chrome Bird</p></div>
<p><strong>Features:</strong></p>
<ul>
<li>Follow your timelines and navigate through your tweets;</li>
<li>Compose, reply, RT, share, favorite and delete tweets;</li>
<li>Create short URLs within the extension;</li>
<li>Track read / unread tweets;</li>
<li>Notify user whenever new tweets arrive;</li>
<li>The extension updates itself as soon as new versions are available;</li>
<li>Tweets caching to avoid hitting Twitter&#8217;s API rate limit.</li>
</ul>
<p><strong>Compatibility</strong><br />
Currently (1.5.0) only for Chrome Beta and Dev channel releases.</p>
<p><strong>Download</strong></p>
<p><a title="Download Chrome Bird Extension" href="https://chrome.google.com/extensions/detail/encaiiljifbdbjlphpgpiimidegddhic" target="_blank">Chrome Bird 1.5.0</a></p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fstay-up-to-date-with-your-twitter-using-chrome-bird-extension%2F&amp;linkname=Stay%20Up%20to%20Date%20With%20Your%20Twitter%20Using%20Chrome%20Bird%20Extension"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/stay-up-to-date-with-your-twitter-using-chrome-bird-extension/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Empty All Tables in a MySQL Database with PHP</title>
		<link>http://www.londatiga.net/it/how-to-empty-all-tables-in-a-mysql-database-with-php/</link>
		<comments>http://www.londatiga.net/it/how-to-empty-all-tables-in-a-mysql-database-with-php/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 10:31:00 +0000</pubDate>
		<dc:creator>lorenz</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[empty table mysql]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[show tables]]></category>
		<category><![CDATA[truncate table]]></category>

		<guid isPermaLink="false">http://www.londatiga.net/?p=334</guid>
		<description><![CDATA[This is a simple PHP script to empty all tables in a MySQL database. This script first will list all tables in a database using &#8216;SHOW TABLES&#8216; statement then it will empty  each table using  &#8217;TRUNCATE TABLE&#8216; statement.

$con = mysql_connect('dbhost','dbuser','dbpassword');

if (!$con) die(&#34;Can't connect to database!&#34;);

mysql_select_db('dbname');

$res = mysql_query('SHOW TABLES', $con);

while ($row = mysql_fetch_array($res, MYSQL_NUM))
{
  $res2 [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;"><a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-empty-all-tables-in-a-mysql-database-with-php%2F"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-empty-all-tables-in-a-mysql-database-with-php%2F" height="61" width="51" /></a></div><p>This is a simple <a title="PHP" href="http://www.php.net" target="_blank">PHP</a> script to empty all tables in a <a title="MySQL" href="http://www.mysql.com" target="_blank">MySQL</a> database. This script first will list all tables in a database using &#8216;<span style="color: #800000;">SHOW TABLES</span>&#8216; statement then it will empty  each table using  &#8217;<span style="color: #800000;">TRUNCATE TABL</span><span style="color: #800000;">E</span>&#8216; statement.</p>
<pre class="brush: php;">
$con = mysql_connect('dbhost','dbuser','dbpassword');

if (!$con) die(&quot;Can't connect to database!&quot;);

mysql_select_db('dbname');

$res = mysql_query('SHOW TABLES', $con);

while ($row = mysql_fetch_array($res, MYSQL_NUM))
{
  $res2 = mysql_query(&quot;TRUNCATE TABLE `$row[0]`&quot;, $con);
}
</pre>
<p><span style="text-decoration: underline;">About TRUNCATE Statement</span></p>
<p>For an InnoDB table before version 5.0.3, InnoDB processes <span style="color: #800000;">TRUNCATE TABLE</span> by deleting rows one by one. As of MySQL 5.0.3, row by row deletion is used only if there are any<span style="color: #800000;"><span style="color: #000000;"> </span><span style="color: #000000;">foreign key</span></span> constraints that reference the table. If there are no <span style="color: #000000;">foreign key </span>constraints, InnoDB performs fast truncation by dropping the original table and creating an empty one with the same definition, which is much faster than deleting rows one by one.</p>
<a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fwww.londatiga.net%2Fit%2Fhow-to-empty-all-tables-in-a-mysql-database-with-php%2F&amp;linkname=How%20to%20Empty%20All%20Tables%20in%20a%20MySQL%20Database%20with%20PHP"><img src="http://www.londatiga.net/wp-content/plugins/add-to-any/share_save_120_16.png" width="120" height="16" alt="Share/Bookmark"/></a>]]></content:encoded>
			<wfw:commentRss>http://www.londatiga.net/it/how-to-empty-all-tables-in-a-mysql-database-with-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
