<?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>Thinkdiff.net &#187; Mixed</title>
	<atom:link href="http://thinkdiff.net/category/mixed/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkdiff.net</link>
	<description>geeky stuff, facebook, linkedin, php, mysql &#38; more</description>
	<lastBuildDate>Sun, 28 Apr 2013 10:56:24 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>SQLite space within string</title>
		<link>http://thinkdiff.net/mixed/sqlite-space-within-string/</link>
		<comments>http://thinkdiff.net/mixed/sqlite-space-within-string/#comments</comments>
		<pubDate>Mon, 05 Nov 2012 17:17:49 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[space]]></category>
		<category><![CDATA[sqlite]]></category>
		<category><![CDATA[sqlite3]]></category>
		<category><![CDATA[string]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2571</guid>
		<description><![CDATA[Today I was working in some SQLite3 tasks for one of our iPhone application. One of the problem I faced is that, I&#8217;ve to know the string data that contains a certain number of&#160; &#8216; &#8216; space.&#160; Suppose If I need to know the string data that has 2 space or may be 3 space [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/11/SQLite.gif" rel="lightbox[2571]"><img class="alignleft size-full wp-image-2572" title="SQLite" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/11/SQLite.gif" alt="" width="327" height="97" /></a>Today I was working in some SQLite3 tasks for one of our iPhone application. One of the problem I faced is that, I&#8217;ve to know the string data that contains a certain number of&nbsp; &#8216; &#8216; space.&nbsp; Suppose If I need to know the string data that has 2 space or may be 3 space then how can I do so.</p>
<p>The simplest thing I tried and that solved my problem by the following way:</p>
<p>if I one to search 1 space:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT * FROM tbl_name where str_field LIKE '% %'
</pre>
<p>if I one to search 2 space:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT * FROM tbl_name where str_field LIKE '% %% %'
</pre>
<p>if I one to search 3 space:</p>
<pre class="brush: sql; title: ; notranslate">
SELECT * FROM tbl_name where str_field LIKE '% %% %% %'
</pre>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/sqlite-space-within-string/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Codeigniter 1.7 Professional Development Book Review</title>
		<link>http://thinkdiff.net/mixed/codeigniter-1-7-professional-development-book-review/</link>
		<comments>http://thinkdiff.net/mixed/codeigniter-1-7-professional-development-book-review/#comments</comments>
		<pubDate>Thu, 20 May 2010 06:05:28 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[Adam Griffiths]]></category>
		<category><![CDATA[book]]></category>
		<category><![CDATA[codeigniter]]></category>
		<category><![CDATA[packt]]></category>
		<category><![CDATA[Review]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1736</guid>
		<description><![CDATA[Some days ago I got this book from packt. I skimmed all the chapters of this book and read details some chapters. This is a very good book to start developing web application using Codeigniter framework. The writer Adam Griffiths nicely describes details of this framework. Beside codeigniter framework, the writer also mentioned how to [...]]]></description>
				<content:encoded><![CDATA[<p><a href="https://www.packtpub.com/codeigniter-1-7-professional-development/book?utm_source=thinkdiff.net&amp;utm_medium=bookrev&amp;utm_content=blog&amp;utm_campaign=mdb_003328" target="_blank"><img class="alignleft size-full wp-image-1740" title="codeigniter" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/05/codeigniter.jpg" alt="codeigniter" width="119" height="145" /></a>Some days ago I got this book from packt. I skimmed all the chapters of this book and read details some chapters. This is a very good book to start developing web application using Codeigniter framework.</p>
<p>The writer <a href="http://www.packtpub.com/authors/profiles/adam-griffiths" target="_blank">Adam Griffiths</a> nicely describes details of this framework. Beside codeigniter framework, the writer also mentioned how to add external libraries like facebook,twitter, memcache to develop web application using codeigniter framework.</p>
<p><span id="more-1736"></span></p>
<p>Checkout <a href="https://www.packtpub.com/codeigniter-1-7-professional-development/book?utm_source=thinkdiff.net&amp;utm_medium=bookrev&amp;utm_content=blog&amp;utm_campaign=mdb_003328" target="_blank">CodeIgniter 1.7 Professional Development</a></p>
<p>Checkout <a href="https://www.packtpub.com/sites/default/files/0905_CodeIgniter%201.7%20professional%20development_SampleChapter.pdf" target="_blank">A sample Chapter</a></p>
<p>This book best suits for beginner to advanced programmer. A developer will learn how to develop small secured website to large scale website using CodeIgniter Framwork. Security features are described nicely, profiling, benchmark, caching features are also described in this book. So far a developer will learn all the basic and essential part of web application development using this framework.</p>
<p>So don&#8217;t be late<a href="https://www.packtpub.com/codeigniter-1-7-professional-development/book?utm_source=thinkdiff.net&amp;utm_medium=bookrev&amp;utm_content=blog&amp;utm_campaign=mdb_003328" target="_blank"> pick up this book</a> and learn the essential technique of CodeIgniter framework to develop secured, structured and scalable web application.</p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/codeigniter-1-7-professional-development-book-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Amazon S3 vs Rackspace cloud files</title>
		<link>http://thinkdiff.net/mixed/amazon-s3-vs-rackspace-cloud-files/</link>
		<comments>http://thinkdiff.net/mixed/amazon-s3-vs-rackspace-cloud-files/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 16:54:40 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[amazon s3]]></category>
		<category><![CDATA[amazon s3 vs rackspace cloud files]]></category>
		<category><![CDATA[cdn tools]]></category>
		<category><![CDATA[rackspace cloud review]]></category>
		<category><![CDATA[rackspace for wordpress]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1623</guid>
		<description><![CDATA[I have been using rackspace cloud storage as a CDN for my site for some months. Before moving to rackspace I first used Amazon S3 and my overall experience is amazon S3 is slower than rackspace. Some of my senior brothers also told me that, but I first didn&#8217;t believe them. But practically when I [...]]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1102" title="amazons3" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/02/amazons3.gif" alt="amazons3" width="150" height="60" />I have been using rackspace cloud storage as a CDN for my site for some months. Before moving to rackspace I first used Amazon S3 and my overall experience is amazon S3 is slower than rackspace. Some of my senior brothers also told me that, but I first didn&#8217;t believe them. But practically when I used s3 I found its not working faster. And then I moved to rackspace files and it loads really faster. That&#8217;s why I suggest my blog readers and clients to use rackspace cloud files.</p>
<p><img class="alignleft size-full wp-image-1624" title="rackspace-cloud" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/04/rackspace-cloud.jpg" alt="rackspace-cloud" width="152" height="41" />Amazon opted to build their own content delivery network (CDN) while  Rackspace chose to partner with <a href="http://www.limelightnetworks.com/network.htm" target="_blank">Limelight  Networks</a>, a leading, global CDN provider.  Limelight serves some of  the largest media customers in the world (including Disney, MSNBC,  NetFlix, Microsoft Xbox, and Amazon Video on Demand) and has an  extensive world-wide network. For a brief comparison<a title="Amazon s3 vs Rackspace cloud storage" href="http://www.rackspacecloud.com/blog/2009/02/05/a-quantitative-comparison-of-rackspace-and-amazon-cloud-storage-solutions/" target="_blank"> read this article</a>.</p>
<p>If you have wordpress powered sites and want to use CDN either amazon s3 or rackspace cloud files, then you could easily integrate them using the following plugins.</p>
<p><span id="more-1623"></span></p>
<ol>
<li><a href="http://wordpress.org/extend/plugins/cdn-tools/" target="_blank">CDN Tools</a> for Rackspace Cloud Files</li>
<li><a href="http://wordpress.org/extend/plugins/w3-total-cache/" target="_blank">W3 Total Cache</a> for caching and using amazon cdn</li>
</ol>
<p>I&#8217;m using <a href="http://wordpress.org/extend/plugins/cdn-tools/" target="_blank">CDN Tools</a> and its an excellent plugin. Just install the plugin and configure it by providing your rackspace cloud username and api key. Then by clicking Load Attachment your existing static contents will be uploaded in rackspace and on the fly the static content will load from cdn. You can also disable the feature when you want. And another good option of this plugin is that it uploads files side by side. So when you upload your files in wordpress this plugin copy the file in rackspace. So if for any case you don&#8217;t want to continue with rackspace, you can just disable the plugin and the static content will load from your server again.</p>
<p>If you want to integrate Amazon S3 in your site then you can use  <a href="http://wordpress.org/extend/plugins/w3-total-cache/" target="_blank">W3 Total  Cache</a>. This is also a nice plugin but it doesn&#8217;t support Rackspace yet. You will get brief information by visiting the plugin page.</p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/amazon-s3-vs-rackspace-cloud-files/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>Some of my favorite web related books</title>
		<link>http://thinkdiff.net/mixed/some-of-my-favorite-web-related-books/</link>
		<comments>http://thinkdiff.net/mixed/some-of-my-favorite-web-related-books/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 11:57:42 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[books review]]></category>
		<category><![CDATA[cookbook]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1532</guid>
		<description><![CDATA[Here I listed some programming and web related books those I found important for knowledge/skills/career whatever you said. Some of the books I read completely and some books partially. But all of these books I found very helpful to increase knowledge. PHP Beginning PHP 5 and MySQL If you&#8217;re beginner and want to learn from [...]]]></description>
				<content:encoded><![CDATA[<p>Here I listed some programming and web related books those I found important for knowledge/skills/career whatever you said. Some of the books I read completely and some books partially. But all of these books I found very helpful to increase knowledge.</p>
<h1 style="text-align: center;"><strong>PHP</strong></h1>
<table>
<tbody>
<tr valign="top">
<td><a href=" http://www.apress.com/book/view/9781893115514" target="_blank"><img title="PHP 5 and Mysql from Novie to Professional" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/php1.jpg" alt="php 5 and mysql" width="125" height="164" /></a></td>
<td><a href=" http://www.apress.com/book/view/9781893115514" target="_blank">Beginning PHP 5 and MySQL</a> If you&#8217;re beginner and want to learn from the start then you should read this book. You&#8217;ll find lot of examples of php, mysql in this book.</p>
<p><span id="more-1532"></span></td>
</tr>
<tr valign="top">
<td><a href="http://oreilly.com/catalog/9781565926813"><img class="alignnone size-full wp-image-1013" title="PHP Cookbook" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/php2.jpg" alt="" width="120" height="157" /></a></td>
<td><a href="http://oreilly.com/catalog/9781565926813">PHP Cookbook</a> If you like problem/solution based study then this is one of the best book for php. As its name said you can cook good web programming if you&#8217;ve this book. It contains over 250 recipes that will surely help you to cook.</td>
</tr>
<tr valign="top">
<td><a href="http://www.amazon.com/PHP-Power-Programming-Andi-Gutmans/dp/013147149X"><img class="alignnone size-full wp-image-1025" title="PHP 5 Power Programming" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/php3.jpg" alt="PHP 5 Power Programming" width="125" height="164" /></a></td>
<td><a href="http://www.amazon.com/PHP-Power-Programming-Andi-Gutmans/dp/013147149X">PHP 5 Power Programming</a> When I was preparing myself for Zend Certification Exam some chapters of this book helps me much to understand details. So I like this book and recommend to read others.</td>
</tr>
<tr valign="top">
<td><a href="http://oreilly.com/catalog/9780596006563"><img class="alignnone size-full wp-image-1027" title="Essential PHP Security" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/php4.jpg" alt="" width="125" height="164" /></a></td>
<td><a href="http://oreilly.com/catalog/9780596006563">Essential PHP Security</a> If you really want to be a very good php programmer then you must be aware of web security. You may be a beginner or advance programmer but if you aren&#8217;t aware of web security and how to protect holes then you couldn&#8217;t be a good programmer. I found this book as one of the best books of php and must have book for web security specially for php issue. I&#8217;m a fan of the writer (<a href="http://shiflett.org/">Chris Shiflett</a>) of this book, he describes so easily and nicely that I don&#8217;t find in other books those explain php security.</td>
</tr>
<tr valign="top">
<td><a href="http://www.amazon.com/Advanced-PHP-Programming-George-Schlossnagle/dp/0672325616"><img class="alignnone size-full wp-image-1029" title="Advance PHP Programming" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/php5.jpg" alt="Advance PHP Programming" width="125" height="164" /></a></td>
<td><a href="http://www.amazon.com/Advanced-PHP-Programming-George-Schlossnagle/dp/0672325616">Advance PHP Programming</a> You&#8217;ll learn many technical details by reading this book. So this book is recommend for advance php programmers. If you want to scale your web application, want to learn how to make web application to load faster then you should read this book. You&#8217;ll also learn how to write good</p>
<p>PHP, soem specific techniques, performance tuning and language extension.</td>
</tr>
</tbody>
</table>
<h1 style="text-align: center;"><strong>MySQL</strong></h1>
<table>
<tbody>
<tr valign="top">
<td><a href="http://www.apress.com/book/view/9781590595350"><img class="alignnone size-full wp-image-1032" title="The Definitive Guide to MySQL 5" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/mysql1.jpg" alt="The Definitive Guide to MySQL 5" width="125" height="164" /></a></td>
<td><a href="http://www.apress.com/book/view/9781590595350">The Definitive Guide to MySQL 5</a> I want to refer this quote &#8220;For those with a need to know, and those with a desire to learn MySQL, this volume contains nearly everything you would want and expect, not only about MySQL itself but about the software that interacts with it or web servers.&#8221; — John Suda, Slashdot Contributor.</td>
</tr>
<tr valign="top">
<td><a href="http://www.mysql.com/certification/studyguides/"><img class="alignnone size-full wp-image-1033" title="MySQL Certification Study Guide" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/mysql2.jpg" alt="MySQL Certification Study Guide" width="125" height="164" /></a></td>
<td><a href="http://www.mysql.com/certification/studyguides/">MySQL Certification Study Guide</a> Some months ago I was thinking to sit for mysql developer certification exam. That time I read this book and learned many things. That&#8217;s why I recommend this book to read.</td>
</tr>
<tr valign="top">
<td><a href="http://oreilly.com/catalog/9780596003067"><img class="alignnone size-full wp-image-1034" title="High Performance MySQL" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/mysql3.jpg" alt="High Performance MySQL" width="125" height="164" /></a></td>
<td><a href="http://oreilly.com/catalog/9780596003067">High Performance MySQL</a> is usefull for both developers and DBA. There are many detailed description of some important topics like indexing, caching, advanced configuration, benchmarking, and investigating logs.</td>
</tr>
</tbody>
</table>
<h1 style="text-align: center;"><strong>Flash/ActionScript </strong></h1>
<table>
<tbody>
<tr valign="top">
<td><a href="http://www.amazon.com/Foundation-ActionScript-Flash-Sham-Bhangal/dp/1590596188"><img class="alignnone size-full wp-image-1036" title="Foundation ActionScript for Flash 8 " src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/flash1.jpg" alt="Foundation ActionScript for Flash 8 " width="125" height="164" /></a></td>
<td><a href="http://www.amazon.com/Foundation-ActionScript-Flash-Sham-Bhangal/dp/1590596188">Foundation ActionScript for Flash 8</a> ActionScript knowledge is essential within the world of Flash design and development and I found this book is perfect to start. This book contains all you need to understand and make use of ActionScript.</td>
</tr>
<tr valign="top">
<td><a href="http://www.amazon.com/ActionScript-3-0-Game-Programming-University/dp/0789737027"><img class="alignnone size-full wp-image-1037" title="ActionScript 3.0 Game Programming University" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/flash2.jpg" alt="ActionScript 3.0 Game Programming University" width="125" height="164" /></a></td>
<td><a href="http://www.amazon.com/ActionScript-3-0-Game-Programming-University/dp/0789737027">ActionScript 3.0 Game Programming</a> What to say about this book I think the name is enough to guess the concept of this book. If you want to make game using ActionScript then you should read this book.</td>
</tr>
</tbody>
</table>
<h1 style="text-align: center;"><strong>Javascript</strong></h1>
<table>
<tbody>
<tr valign="top">
<td><a href="http://www.amazon.com/Pro-JavaScript-Techniques-John-Resig/dp/1590597273"><img class="alignnone size-full wp-image-1039" title="Pro JavaScript Techniques " src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/javascript1.jpg" alt="Pro JavaScript Techniques " width="125" height="164" /></a></td>
<td><a href="http://www.amazon.com/Pro-JavaScript-Techniques-John-Resig/dp/1590597273">Pro javascript techniques by john resig</a> This is an excellent book for the modern web developer. All concepts are backed up by real-world examples and case studies, and John provides numerous reusable functions and classes to save you time in your development. I recommend this book to read.</td>
</tr>
<tr valign="top">
<td><a href="http://www.packtpub.com/jQuery/book"><img class="alignnone size-full wp-image-1040" title="Learning jQuery" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/jquery.jpg" alt="Learning jQuery" width="125" height="164" /></a></td>
<td><a href="http://www.packtpub.com/jQuery/book">Learning JQuery</a> jQuery is a powerful JavaScript library that can enhance your websites regardless of your background. If you want to learn how jQuery works and how jQuery could help you then this book is for you</td>
</tr>
</tbody>
</table>
<p>I&#8217;ll update this page periodically when I will read and find interesting and helpful books.</p>
<p style="text-align: center;"> <img src='http://thinkdiff.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/some-of-my-favorite-web-related-books/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>In actionscript 3 how to remove duplicates from array</title>
		<link>http://thinkdiff.net/mixed/in-actionscript-3-how-to-remove-duplicates-from-array/</link>
		<comments>http://thinkdiff.net/mixed/in-actionscript-3-how-to-remove-duplicates-from-array/#comments</comments>
		<pubDate>Tue, 20 Apr 2010 20:45:31 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[ActionScript 3.0 to PHP]]></category>
		<category><![CDATA[actionscript array duplicate remove]]></category>
		<category><![CDATA[array_unique]]></category>
		<category><![CDATA[php how to remove duplicate entries from array]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1478</guid>
		<description><![CDATA[Today I was working in  actionscript 3 + php project. I was working in an array and I needed to remove duplicate entries from array. In php its very easy to remove duplicate entries. There is a function in php named array_unique($array); that removes duplicate elements from array. So in php I could easily use [...]]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1479" title="actionscript 3.0" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/04/flash.jpg" alt="actionscript" width="124" height="102" />Today I was working in  actionscript 3 + php project. I was working in an array and I needed to remove duplicate entries from array. In php its very easy to remove duplicate entries.</p>
<p>There is a function in php named array_unique($array); that removes duplicate elements from array. So in php I could easily use</p>
<pre class="brush: php; title: ; notranslate">
    $arr = array('a', 'b', 'a', 'c', 'd', 'b');
    $arr = array_unique($arr); //removes duplicate entries
</pre>
<p>But there is no such type of built in function in actionscript 3 for array. So I created my own function and used it</p>
<pre class="brush: as3; title: ; notranslate">
function removeDuplicate(arr:Array) : void{
    var i:int;
    var j: int;
    for (i = 0; i &lt; arr.length - 1; i++){
        for (j = i + 1; j &lt; arr.length; j++){
            if (arr[i] === arr[j]){
                arr.splice(j, 1);
            }
        }
    }
}
</pre>
<p>Now just call the function and pass an array</p>
<pre class="brush: as3; title: ; notranslate">
var arr:Array = new Array(&quot;a&quot;, &quot;b&quot;, &quot;a&quot;, &quot;c&quot;, &quot;d&quot;, &quot;b&quot;);
removeDuplicate(arr);
</pre>
<p><strong>splice</strong>(startIndex:int, deleteCount:uint); method removes elements from an array. So using 2 simple loops I solved my problem. But as my arrays are short 20 elements max so I don&#8217;t need to optimize this function.</p>
<p>reference: <a href="http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html" target="_blank">http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Array.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/in-actionscript-3-how-to-remove-duplicates-from-array/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>My Personal Web Hosting Experience</title>
		<link>http://thinkdiff.net/mixed/my-personal-web-hosting-experience/</link>
		<comments>http://thinkdiff.net/mixed/my-personal-web-hosting-experience/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 10:17:12 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[best hosting]]></category>
		<category><![CDATA[cdn]]></category>
		<category><![CDATA[domain name company]]></category>
		<category><![CDATA[hostgator review]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[hosting review]]></category>
		<category><![CDATA[hostmonster review]]></category>
		<category><![CDATA[rackspace cloud review]]></category>
		<category><![CDATA[umbrahosting review]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1350</guid>
		<description><![CDATA[Let me tell you a story about my experience regarding web hosting, cdn technology, domain registration company. In 2007 I first bought a shared hosting from a local (Bangladeshi) company named CronySoft.com. Their service and supports are good and cheap in Bangladesh.  Later I found that they provide their hosting from hostmonster.com In 2008, first [...]]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-1351" title="web-hosting-experience" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/04/web-hosting-experience.jpg" alt="web-hosting-experience" width="250" height="193" />Let me tell you a story about my experience regarding web hosting, cdn technology, domain registration company. In 2007 I first bought a shared hosting from a local (Bangladeshi) company named <a href="http://www.cronysoft.com" target="_blank">CronySoft.com</a>. Their service and supports are good and cheap in Bangladesh.  Later I found that they provide their hosting from hostmonster.com</p>
<p>In 2008, first time I bought shared hosting account and domain from <a href="http://godaddy.com" target="_blank">GoDaddy.com</a> using my debit card. I’ve still one of my site is hosted there as I bought for 3 years hosting.  I don’t like their control panel to mange my host. It looks slow for me.  And regarding their server, if you host facebook application that has low traffic sometimes you’ll see timeout. So think what happen if you have moderate level traffic application. I think their server is sharing many accounts and thus response time is slow most of the time. I don’t recommend Godaddy for any purpose.</p>
<p><span id="more-1350"></span></p>
<p>In 2009, I bought another shared hosting and domain from <a href="http://umbrahosting.com" target="_blank">umbrahosting.com</a>. Their service and support was awesome at the first time. Their server is very good as they share few accounts per server. I’ve no complain to their server, if you host your facebook application you’ll get very good server response time. You can also use their shared hosting for moderate level traffic for your site. But some months ago I found downtime of my site in their server. When I sent ticket to them they solved it after 8 hours. So I’m very much angry about their support. Just imagine your high priority ticket is not solved within 8 hours. Though they have a chat system but most of the time that is unavailable. Another interesting thing is that, I ordered a managed VPS with CPanel + WHM from them and they took more than 24 hours to setup fully. And when I going to test I found php is not working. I canceled that VPS after 2 days and later I canceled my shared hosting from them. If you need less support but cheap and good performance shared hosting then definitely go with them.</p>
<p>In middle of 2009, I bought a server from <a href="https://s3.amazonaws.com/" target="_blank">Rackspace Cloud</a>, and it was awesome. If you have a web site or applications that are getting high traffic, you should definitely go with them. You can buy one, two… many servers from them as you want. When you don’t need a server you can just delete that from your account and you’ve to pay for what you have used.</p>
<p>In the late 2009, I bought an unmanaged VPS (virtual private hosting) from <a href="http://hostlatch.net" target="_blank">hostlatch.net</a>. Price is cheap as I bought in Christmas offer.  I am using free <a title="Manage your server using virtualmin and webmin" href="http://thinkdiff.net/ubuntu-linux/manage-your-vps-by-virtualmin-web-server-control/" target="_blank">webmin+virtualmin</a> to manage that hosting myself.  <span style="color: #800000;">Never buy from this company. Their server performance is very bad. I&#8217;m totally disappointed about their server performance and I lost some regular users from my facebook application.</span></p>
<p>In 2010, I first bought shared hosting from <a href="http://hostmonster.com" target="_blank">hostmonster.com</a> and I’m quiet unhappy about their server performance and so why I moved to <a href="http://hostgator.com" target="_blank">hostgator.com</a> shared hosting. I’m using hostgator.com’s business plan for shared hosting that has a free dedicated IP and SSL. I found hostgator’s server performance is very good. Regarding support hostmonster and hostgator have serious in their supports. You can chat any time with them. They response fast and I appreciate their supports.</p>
<p>If you want to store your static files in CDN, then you should select <a href="http://rackspacecloud.com" target="_blank">rackspace cloud files</a> over <a href="https://s3.amazonaws.com/" target="_blank">Amazon S3</a>. Amazon s3 is slower than rackspace cloud files. I’m currently using rackspace cloud files and I recommend it to others.</p>
<p>To register domain, I recommend <a href="http://name.com" target="_blank">name.com</a>. Their service is awesome and their DNS servers update quickly. They also provides free private whois and google apps including system.</p>
<p>Before you buy hosting from any company you should check reviews from <a href="http://webhostingtalk.com" target="_blank">webhostingtalk.com </a>. And also never forget to see TOS of a company before proceed. Some companies like hostgator, hostmonster, umbrahosting accept 30 days unconditional money back guarantee and prorated refund when cancel account after 30 days. So you&#8217;ve no chance to loose your money if you don&#8217;t like their service.</p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/my-personal-web-hosting-experience/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Monitor your website using 3rd party sites</title>
		<link>http://thinkdiff.net/mixed/monitor-your-website-using-3rd-party-sites/</link>
		<comments>http://thinkdiff.net/mixed/monitor-your-website-using-3rd-party-sites/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 12:49:25 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[100pulse]]></category>
		<category><![CDATA[monitor website]]></category>
		<category><![CDATA[site24x7]]></category>
		<category><![CDATA[siteuptime]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1331</guid>
		<description><![CDATA[What would be your feelings if you see your site is down for more than 4 hours, or your VPS is shutting down by the hosting company and needs to reboot? In my case I would be feeling very angry if I see such type of long downtime. But if I be informed within 5 [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/site24x7.jpg" rel="lightbox[1331]"><img class="alignleft size-full wp-image-1330" title="site24x7" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/site24x7.jpg" alt="site24x7" width="250" height="168" /></a> What would be your feelings if you see your site is down for more than 4 hours, or your VPS is shutting down by the hosting company and needs to reboot? In my case I would be feeling very angry if I see such type of long downtime. But if I be informed within 5 min or 15 min after downtime then I can take proper action to restore my service.</p>
<p>So if you want to get alert message when your site is down you could use third party service like <a href="http://site24x7.com">site24x7</a>, <a href="http://www.siteuptime.com/" target="_blank">siteuptime </a>, <a href="http://100pulse.com/" target="_blank">100pulse</a></p>
<p>All of them has free services and paid services. Personally I use <a href="http://site24x7.com" target="_blank">site24x7</a> . Here You could set 2 urls and http port check in 60 min interval as a free service. You can pay 1$/month for 1 Url to check between 1 min to 60 min. They will send email to you if your site is down. You can also purchase SMS package so that they can also send sms message as alert.</p>
<p style="text-align: center;"><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/site24x7_services.jpg" rel="lightbox[1331]"><img class="aligncenter size-medium wp-image-1332" title="site24x7_services" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/site24x7_services-300x106.jpg" alt="site24x7_services" width="300" height="106" /></a></p>
<p>So checkout these sites and use which site suits best to you.</p>
<p><a href="http://site24x7.com" target="_blank"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/monitor-your-website-using-3rd-party-sites/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting external parameters in ActionScript 3</title>
		<link>http://thinkdiff.net/mixed/getting-external-parameters-in-actionscript-3/</link>
		<comments>http://thinkdiff.net/mixed/getting-external-parameters-in-actionscript-3/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 19:24:42 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[external parameter]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[parameter]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1246</guid>
		<description><![CDATA[Actually this is not a big or complex post. I am a part time ActionScript 3.0 developer and recently in my company i2we, inc. I developed a customized jobs search widget for them. Where one of the criteria was when we include flash object in html, we can provide external parameter. Based on the parameter [...]]]></description>
				<content:encoded><![CDATA[<div class="mceTemp">
<dl id="attachment_924" class="wp-caption alignleft" style="width: 134px;">
<dt class="wp-caption-dt"><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2009/12/flash.jpg" rel="lightbox[1246]"><img class="size-full wp-image-924" title="ActionScript 3.0" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2009/12/flash.jpg" alt="ActionScript 3.0" width="124" height="102" /></a></dt>
</dl>
</div>
<p>Actually this is not a big or complex post. I am a part time ActionScript 3.0 developer and recently in my company i2we, inc. I developed a customized jobs search widget for them. Where one of the criteria was when we include flash object in html, we can provide external parameter. Based on the parameter the flash widget customize its result.</p>
<p>So in this post, I will show how you can pass parameter from html and get them in your flash object. Please keep in mind that my code is based on ActionScript 3.0</p>
<p><span id="more-1246"></span></p>
<p>Look at the html code</p>
<pre class="brush: xml; title: ; notranslate">
&lt;object classid=&quot;clsid:xxxxxxxxxxxxxx&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0&quot; width=&quot;250&quot; height=&quot;370&quot; id=&quot;widget&quot; align=&quot;middle&quot;&gt;
            &lt;param name=&quot;allowScriptAccess&quot; value=&quot;sameDomain&quot; /&gt;
            &lt;param name=&quot;allowFullScreen&quot; value=&quot;false&quot; /&gt;
            &lt;param name=&quot;movie&quot; value=&quot;http://mysite.com/widget.swf?company=facebook&quot; /&gt;
            &lt;param name=&quot;quality&quot; value=&quot;high&quot; /&gt;
            &lt;param name=&quot;bgcolor&quot; value=&quot;#ffffff&quot; /&gt;
            &lt;embed src=&quot;http://mysite.com/widget.swf?company=facebook&quot; quality=&quot;high&quot; bgcolor=&quot;#ffffff&quot; width=&quot;250&quot; height=&quot;500&quot; name=&quot;widget&quot; align=&quot;middle&quot; allowScriptAccess=&quot;sameDomain&quot; allowFullScreen=&quot;false&quot; type=&quot;application/x-shockwave-flash&quot; pluginspage=&quot;http://www.adobe.com/go/getflashplayer&quot; /&gt;
            &lt;/object&gt;
</pre>
<p>Look I pass parameter company = facebook</p>
<pre>http://mysite.com/widget.swf?<strong>company=facebook
</strong></pre>
<p>Now I capture this parameter in my flash widget using actionscript by the following way</p>
<pre class="brush: as3; title: ; notranslate">
var globalParam = LoaderInfo(this.root.loaderInfo).parameters;
for (var element:String in globalParam) {
     if (element == 'company'){
           company =   globalParam[element];
     }
}
</pre>
<p>This actionscript 3.0 codes first loads global parameters and put them in globalParam variable. Now I just check whether there is a parameter named company or not. As I provided the company parameter in html so within flash object, I will get company = facebook</p>
<p>Very easy, right? Cheers!</p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/getting-external-parameters-in-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Free mind mapping software</title>
		<link>http://thinkdiff.net/mixed/free-mind-mapping-software/</link>
		<comments>http://thinkdiff.net/mixed/free-mind-mapping-software/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 12:48:49 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[free mind]]></category>
		<category><![CDATA[mapping]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1235</guid>
		<description><![CDATA[Some days ago one of my senior brother give me the link of this awesome free software. My brother used it to visual design a book, chapters, topics. Its such a wonderful software that you can easily draw and present your thinking as a nice way. If you&#8217;re a project manager you can easily draw [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/free-mind.jpg" rel="lightbox[1235]"><img class="alignleft size-full wp-image-1242" title="free-mind" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/free-mind.jpg" alt="" width="154" height="100" /></a></p>
<p>Some days ago one of my senior brother give me the link of this awesome free software. My brother used it to visual design a book, chapters, topics. Its such a wonderful software that you can easily draw and present your thinking as a nice way.</p>
<p>If you&#8217;re a project manager you can easily draw your projects so that your developers can easily understand what they need to do. If you&#8217;re a web developer you can also design your web applications so that other developers can easily understand about the features and modules.</p>
<p>So lets look at the features of this tool:<br />
<span id="more-1235"></span></p>
<ol>
<li>You can easily keep track of your projects, including subtasks, state of subtasks and time recording</li>
<li>In project you can include links to necessary files, executables, source of information</li>
<li>Its best for brainstorming, using colors you can easily differentiate your objects</li>
<li>You can keep a small database of something with structure that is either very dynamic or not known in advance</li>
<li>The software is very easy to use. You can just drag n drop various object</li>
<li>The software is portable for all operating system</li>
</ol>
<div id="attachment_1237" class="wp-caption aligncenter" style="width: 310px"><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/FreeMind-computer-knowledge.png" rel="lightbox[1235]"><img class="size-medium wp-image-1237" title="Free-Mind-computer-knowledge" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/FreeMind-computer-knowledge-300x218.png" alt="Free-Mind-computer-knowledge" width="300" height="218" /></a><p class="wp-caption-text">Free-Mind-computer-knowledge</p></div>
<p>Learn more about this software from <a href="http://freemind.sourceforge.net/wiki/index.php/Main_Page" target="_blank">here</a> .</p>
<p>The software can run on any operating system so <strong>download the softwar</strong>e from <a href="http://freemind.sourceforge.net/wiki/index.php/Download" target="_blank">here </a>and this software is completely free.</p>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/free-mind-mapping-software/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Twitter like p2 theme for wordpress</title>
		<link>http://thinkdiff.net/mixed/twitter-like-p2-theme-for-wordpress/</link>
		<comments>http://thinkdiff.net/mixed/twitter-like-p2-theme-for-wordpress/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 06:49:24 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Mixed]]></category>
		<category><![CDATA[p2]]></category>
		<category><![CDATA[twitter like interface]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=1205</guid>
		<description><![CDATA[Sometimes short message posting looks far better than a long posting. For this purpose you can use twitter or facebook fan page. Facebook fan page is better than twitter in one sense is that, you can attach video, image and  your message could be long than twitter. Though we use fan page or twitter to [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/wordpress-logo.png" rel="lightbox[1205]"><img class="alignleft size-full wp-image-1003" title="wordpress-logo" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/01/wordpress-logo.png" alt="" width="141" height="141" /></a>Sometimes short message posting looks far better than a long posting. For this purpose you can use twitter or facebook fan page. Facebook fan page is better than twitter in one sense is that, you can attach video, image and  your message could be long than twitter. Though we use fan page or twitter to inform our friends or connection about our status or some news.</p>
<p>If you want a twitter and facebook fan page like features for your own purpose,  where you can publish full post or short message, attach image/video whatever then you can use <a href="http://wordpress.org/" target="_blank">wordpress </a>and<a href="http://wordpress.org/extend/themes/p2" target="_blank"> p2</a> theme.  P2 theme is excellent. You can also use p2 theme as group blog for short update.</p>
<p style="text-align: center;"><span id="more-1205"></span><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/p2.jpg" rel="lightbox[1205]"><img class="size-medium wp-image-1206  aligncenter" title="p2 alternative twitter for wordpress" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2010/03/p2-300x174.jpg" alt="p2 alternative twitter for wordpress" width="300" height="174" /></a></p>
<p>Check out my personal <a href="http://mahmud.thinkdiff.net/" target="_blank">short message page </a>. Its very easy to setup p2 theme. You have to just installed wordpress in your own domain and then just upload the p2 theme and activate. Super easy right?</p>
<p>So at a glance look at the features of p2 theme:</p>
<ul>
<li>Twitter like interface</li>
<li>You can publish message more than 140 chars</li>
<li>You can also publish full post that contains title, body</li>
<li>In each message you can add tags</li>
<li>Live tag suggestion</li>
<li>You can post message in the front page</li>
<li>You can use as a group blogging</li>
<li>You can show or hide comments below each post for tidy look</li>
<li>You&#8217;ll get real time notification when new comment or updated is posted</li>
<li>You can use some keyboard shortcuts</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/twitter-like-p2-theme-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
