<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Thinkdiff.net</title>
	
	<link>http://thinkdiff.net</link>
	<description>geeky stuff, facebook, linkedin, php, mysql &amp; 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>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Thinkdiffnet" /><feedburner:info uri="thinkdiffnet" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by/3.0/</creativeCommons:license><image><link>http://creativecommons.org/licenses/by/3.0/</link><url>http://creativecommons.org/images/public/somerights20.gif</url><title>Some Rights Reserved</title></image><feedburner:emailServiceId>Thinkdiffnet</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Orientation Detection at Runtime in iPad or iPhone</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/EgOC5E0gDTM/</link>
		<comments>http://thinkdiff.net/iphones/orientation-detection-at-runtime-in-ipad-or-iphone/#comments</comments>
		<pubDate>Sat, 27 Apr 2013 07:14:51 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[iPhone/iPad]]></category>
		<category><![CDATA[c]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[orientation]]></category>
		<category><![CDATA[xcode]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2677</guid>
		<description><![CDATA[If you support your iPad or iPhone application in both portrait or landscape mode, then orientation detection is essential for UI update. There are different ways to detect orientation personally I found the following solution is working best for my apps supporting iOS version &#62;= 5.1 First declare the following 2 properties Define the following [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2013/04/Objective_c.png" rel="lightbox[2677]"><img class="alignleft  wp-image-2678" alt="XCode" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2013/04/Objective_c.png" width="176" height="173" /></a> If you support your iPad or iPhone application in both portrait or landscape mode, then orientation detection is essential for UI update. There are different ways to detect orientation personally I found the following solution is working best for my apps supporting iOS version &gt;= 5.1<br />
<span id="more-2677"></span><br />
First declare the following 2 properties</p>
<pre class="brush: cpp; title: ; notranslate">
@property (readwrite, assign) BOOL isShowingLandscapeView;
@property (readwrite, assign) BOOL previousOrientation;
</pre>
<p>Define the following 2 methods.</p>
<pre class="brush: cpp; title: ; notranslate">
#pragma Notification
- (void) registerAllNotification{
    self.isShowingLandscapeView = UIDeviceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
    self.previousOrientation    = NO;

    [[UIDevice currentDevice] beginGeneratingDeviceOrientationNotifications];
    [[NSNotificationCenter defaultCenter] addObserver:self
                                             selector:@selector(orientationChanged:)
                                                 name:UIDeviceOrientationDidChangeNotification
                                               object:nil];
}

#pragma mark -
#pragma mark Orientation Method
- (void)orientationChanged:(NSNotification *)notification
{
    UIDeviceOrientation deviceOrientation = [UIDevice currentDevice].orientation;
    if (UIDeviceOrientationIsLandscape(deviceOrientation) &amp;&amp;
        !self.isShowingLandscapeView)
    {
        self.isShowingLandscapeView = YES;
    }
    else if (UIDeviceOrientationIsPortrait(deviceOrientation) &amp;&amp;
             self.isShowingLandscapeView)
    {
        self.isShowingLandscapeView = NO;
    }

    if (self.previousOrientation != self.isShowingLandscapeView){
        if (self.isShowingLandscapeView){
            NSLog(@&quot;Orientation Change Occur: Landscape Mode&quot;);
        }
        else {
            NSLog(@&quot;Orientation Change Occur: Portrait Mode&quot;);
        }

        [[NSNotificationCenter defaultCenter] postNotificationName:@&quot;OrientationChange&quot; object:nil];
        [self updateUI];
    }

    self.previousOrientation = self.isShowingLandscapeView;
}
</pre>
<p>You must have to call [registerAllNotification] method in your viewDidLoad or ViewDidAppear method to register the event. And you have to define updateUI method where you can write the code to update UI based on orientation. So to know the current orientation just apply the logic</p>
<pre class="brush: cpp; title: ; notranslate">
if (self.isShowingLandscapeView){
   //do the landscape tasks
}
else {
  //do the portrait tasks
}
</pre>
<p>I defined this code in my mainviewcontroller that has a reference in my delegate. So from other view controller I can easily access to know the current orientation. Also a notification send triggered when orientation change occurred, so from other view controller I can know this by registering an observer of the event. Here updateUI is a method defined in the other view controller.</p>
<pre class="brush: cpp; title: ; notranslate">

[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(updateUI) name:@&quot;OrientationChange&quot; object:nil];

</pre>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=EgOC5E0gDTM:lWGmEL9sb3M:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=EgOC5E0gDTM:lWGmEL9sb3M:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=EgOC5E0gDTM:lWGmEL9sb3M:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=EgOC5E0gDTM:lWGmEL9sb3M:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=EgOC5E0gDTM:lWGmEL9sb3M:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=EgOC5E0gDTM:lWGmEL9sb3M:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=EgOC5E0gDTM:lWGmEL9sb3M:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=EgOC5E0gDTM:lWGmEL9sb3M:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=EgOC5E0gDTM:lWGmEL9sb3M:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=EgOC5E0gDTM:lWGmEL9sb3M:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/EgOC5E0gDTM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/iphones/orientation-detection-at-runtime-in-ipad-or-iphone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/iphones/orientation-detection-at-runtime-in-ipad-or-iphone/</feedburner:origLink></item>
		<item>
		<title>PHP for Web scraping and bot development</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/6s41p8-REgI/</link>
		<comments>http://thinkdiff.net/php/php-for-web-scraping-and-bot-development/#comments</comments>
		<pubDate>Mon, 22 Apr 2013 10:00:36 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[bot]]></category>
		<category><![CDATA[classify]]></category>
		<category><![CDATA[news]]></category>
		<category><![CDATA[scrap]]></category>
		<category><![CDATA[spider]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2658</guid>
		<description><![CDATA[Web scraping is a computer science technique for extracting information and data from web sites. In data mining research scraping and analysing of information is discussed. Practically web scraping is necessary if you want to develop a web application where you want to show customised information from various websites.  For this you&#8217;ve to first scrap [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://500px.com/photo/24267491" target="_blank"><img class="alignleft size-full wp-image-2662" alt="Web Scrap" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2013/04/Black-Ant.jpg" width="300" height="200" /></a>Web scraping is a computer science technique for extracting information and data from web sites. In data mining research scraping and analysing of information is discussed. Practically web scraping is necessary if you want to develop a web application where you want to show customised information from various websites.  For this you&#8217;ve to first scrap data from the sites and then apply some logic to filter the information.</p>
<p><span id="more-2658"></span></p>
<p>Practically you can use different languages to write the program that will automatically search and collect the information. But if you&#8217;re PHP experts and want to use PHP for this kind of stuff here I am referring a book with PHP library. Practically I found this book is very helpful to learn the topic and their library is easy to use.</p>
<p><strong>Checkout the following book</strong></p>
<p><a href="http://www.amazon.com/gp/product/1593273975/ref=as_li_tf_il?ie=UTF8&amp;tag=fte-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1593273975" target="_blank"> Webbots, Spiders, and Screen Scrapers: A Guide to Developing Internet Agents with PHP/CURL</a></p>
<p><a href="http://www.amazon.com/gp/product/1593273975/ref=as_li_tf_il?ie=UTF8&amp;tag=fte-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1593273975" target="_blank"><img class="size-full wp-image-2659 aligncenter" alt="51U9gJgD5bL._BO2,204,203,200_PIsitb-sticker-arrow-click,TopRight,35,-76_SX225_SY300_CR,0,0,225,300_SH20_OU01_" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2013/04/51U9gJgD5bL._BO2204203200_PIsitb-sticker-arrow-clickTopRight35-76_SX225_SY300_CR00225300_SH20_OU01_.jpg" width="225" height="300" /></a></p>
<p>Checkout the library:<a href="http://webbotsspidersscreenscrapers.com/DSP_download.php" target="_blank"><br />
</a></p>
<p><a title="PHP Libraries for Web Scraping" href="http://webbotsspidersscreenscrapers.com/DSP_download.php" target="_blank"><img class="size-full wp-image-2403 aligncenter" alt="Download Code" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2011/07/download_code.jpg" width="270" height="85" /></a></p>
<p>Here I am describing a simple example of web scraping idea. Suppose you want to develop a web application where you want to show classified information about current news from different newspaper. So that people who are interested on a particular news can get all the newspaper link in your classified category.</p>
<div id="attachment_2660" class="wp-caption aligncenter" style="width: 590px"><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2013/04/NewsClassification.jpg" rel="lightbox[2658]"><img class="size-full wp-image-2660" title="News Classification" alt="News Classification" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2013/04/NewsClassification.jpg" width="580" height="544" /></a><p class="wp-caption-text">Web scraping for news classification</p></div>
<p>In the following diagram it is describing that, the application will retrieve all the news from different websites, then classify and categorised information based on interest, like politics, sports, entertainment etc. The above book and the library will help you to make this kind of application.</p>
<p>You can also extend the thing to develop a iPhone or Android news application. On that case your scraping script should be installed in a server where it automatically will collect and classify information and in the smart phone application you just retrieved the data from your server.</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=6s41p8-REgI:aBnAYI_kaik:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=6s41p8-REgI:aBnAYI_kaik:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=6s41p8-REgI:aBnAYI_kaik:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=6s41p8-REgI:aBnAYI_kaik:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=6s41p8-REgI:aBnAYI_kaik:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=6s41p8-REgI:aBnAYI_kaik:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=6s41p8-REgI:aBnAYI_kaik:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=6s41p8-REgI:aBnAYI_kaik:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=6s41p8-REgI:aBnAYI_kaik:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=6s41p8-REgI:aBnAYI_kaik:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/6s41p8-REgI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/php/php-for-web-scraping-and-bot-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/php/php-for-web-scraping-and-bot-development/</feedburner:origLink></item>
		<item>
		<title>Personal Health Records: Retrieving Contextual Information with Google Custom Search</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/v0QS1sO0IrA/</link>
		<comments>http://thinkdiff.net/personal/personal-health-records-retrieving-contextual-information-with-google-custom-search/#comments</comments>
		<pubDate>Fri, 07 Dec 2012 18:14:09 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[data mining]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[health]]></category>
		<category><![CDATA[malaysia]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2589</guid>
		<description><![CDATA[In my M.Sc study &#38; research me along with my supervisor had written a paper related to Health Informatics that had published in the conference Global Telehealth 2012, Sydney, Australia. The paper had also received one of the best conference paper award in the conference. In my research in MMU, I&#8217;m working in health technology and [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/IMG_7689.jpg" rel="lightbox[2589]"><img class="alignleft size-medium wp-image-2542" title="My Research Room" alt="My Research Room" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/IMG_7689-300x200.jpg" width="300" height="200" /></a> In my M.Sc study &amp; research me along with my supervisor had written a paper related to Health Informatics that had published in the conference <a href="http://aths.org.au/global-telehealth-2012" target="_blank">Global Telehealth 2012, Sydney, Australia</a>. The paper had also received<a href="http://aths.org.au/global-telehealth-2012" target="_blank"><strong> one of the best conference paper award</strong></a> in the conference. In my research in MMU, I&#8217;m working in health technology and informatics and this is the first time I&#8217;ve written an academic paper in my life.</p>
<p><span id="more-2589"></span></p>
<p><a href="http://aths.org.au/global-telehealth-2012" target="_blank"><img class="aligncenter size-full wp-image-2612" title="Best_paper_award_GT_2012" alt="Best_paper_award_GT_2012" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/12/Best_paper_award_2012_GT_web.jpg" width="500" height="707" /></a></p>
<p><strong><span style="text-decoration: underline;">Abstract of our paper is:</span></strong></p>
<p>&#8220;<em>Ubiquitous personal health records, which can accompany a person everywhere, are a necessary requirement for ubiquitous healthcare. Contextual information related to health events is important for the diagnosis and treatment of disease and for the maintenance of good health, yet it is seldom recorded in a health record. We describe a dual cellphone-and-Web-based personal health record system which can include ‘external’ contextual information. Much contextual information is available on the Internet and we can use ontologies to help identify relevant sites and information. But a search engine is required to retrieve information from the Web and developing a customized search engine is beyond our scope, so we can use Google Custom Search API Web service to get contextual data. In this paper we describe a framework which combines a health-and-environment ‘knowledge base’ or ontology with the Google Custom Search API to retrieve relevant contextual information related to entries in a ubiquitous personal health record.</em>&#8221;</p>
<p>The paper is already listed in <a href="http://scholar.google.com/scholar?hl=en&amp;q=Personal+Health+Records%3A+Retrieving+Contextual+Informaiton+with+Google+Custom+Search&amp;btnG=&amp;as_sdt=1%2C5&amp;as_sdtp=" target="_blank">Google Scholar</a>, <a title="Personal Health Records: Retrieving Contextual Information with Google Custom Search" href="http://www.ncbi.nlm.nih.gov/pubmed/23138074" target="_blank">PubMed.gov</a>, <a href="http://lib.bioinfo.pl/paper:23138074" target="_blank">BioInfoBank Library</a>, <a href="http://booksonline.iospress.nl/Content/View.aspx?piid=32703" target="_blank">IOS Press</a> and some other sites.</p>
<p>You can<strong> download</strong> or <strong>see the full paper</strong> via <a href="http://booksonline.iospress.nl/Content/View.aspx?piid=32703" target="_blank">IOS Press</a> by clicking <strong>Full Text PDF.</strong></p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=v0QS1sO0IrA:UbLBdtM70Zc:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=v0QS1sO0IrA:UbLBdtM70Zc:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=v0QS1sO0IrA:UbLBdtM70Zc:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=v0QS1sO0IrA:UbLBdtM70Zc:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=v0QS1sO0IrA:UbLBdtM70Zc:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=v0QS1sO0IrA:UbLBdtM70Zc:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=v0QS1sO0IrA:UbLBdtM70Zc:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=v0QS1sO0IrA:UbLBdtM70Zc:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=v0QS1sO0IrA:UbLBdtM70Zc:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=v0QS1sO0IrA:UbLBdtM70Zc:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/v0QS1sO0IrA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/personal/personal-health-records-retrieving-contextual-information-with-google-custom-search/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/personal/personal-health-records-retrieving-contextual-information-with-google-custom-search/</feedburner:origLink></item>
		<item>
		<title>Bad experience on Malaysian Expressway from Melaka to Kuala-lumpur</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/iQrPWHsLe34/</link>
		<comments>http://thinkdiff.net/personal/bad-experience-on-malaysian-expressway-from-melaka-to-kuala-lumpur/#comments</comments>
		<pubDate>Sat, 01 Dec 2012 14:57:01 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[accident]]></category>
		<category><![CDATA[crime]]></category>
		<category><![CDATA[fraud]]></category>
		<category><![CDATA[malaysia]]></category>
		<category><![CDATA[melaka]]></category>
		<category><![CDATA[plus]]></category>
		<category><![CDATA[police]]></category>
		<category><![CDATA[road]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2579</guid>
		<description><![CDATA[Today my wife and me were going to KL from Melaka by our own car. We started our journey at 12:42PM from Melaka. When we are in 54 KM, 233.5 (Highway mark) distance, suddenly a piece of strong wood or metal type things fly and hit my windscreen. And my windscreen totally cracked and broke, [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/12/fraud.jpg" rel="lightbox[2579]"><img class="alignleft  wp-image-2580" title="Fraud" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/12/fraud.jpg" alt="Fraud" width="269" height="202" /></a>Today my wife and me were going to KL from Melaka by our own car. We started our journey at 12:42PM from Melaka. When we are in 54 KM, 233.5 (Highway mark) distance, suddenly a piece of strong wood or metal type things fly and hit my windscreen. And my windscreen totally cracked and broke, I switched on the left signal and went to the emergency lane. I phoned Plus service (express way service people) number 1800-88-00-00 described my situation, given my car number and the express way position (233.5). They told me they will send service. We are waiting within 5 minutes, 2 Indian people from opposite lane (KL to Melaka) come and told us what happened. I told the situation and told I called the police, because at the first sight it seems to me that the guy may be fraud. The guy told me yeah we are from the phone call (but the guy actually very poor in English). Whatever my wife and me thought ok may be it possible the service dept. quickly send some service for help.</p>
<p><span id="more-2579"></span></p>
<p>The weather was going too bad, rain comes so imagine our situation, the two guys however helped us cleaned the broken glass as much as possible, then heavy rain started. They drive our car we were seated back and they took us under a bridge so that we can wait to stop the rain. <strong>After 1 hour the Plus Team</strong> (Express way service) car come, <strong>the Indian people told us don&#8217;t talk with them</strong>. Then we suspected more to these people, then we told the total situation to the Plus team.</p>
<p>But the plus team people told us why you deal with this guy? Wow, I think<strong> the Plus people should charge them how they know from opposite site that we got an accident</strong>? But Plus people didn&#8217;t do that, rather they charge us. Ok, I told them the total situation and also told them what they can help us, is there any nearest workshop or not? They answered no, so we can go back to Melaka as that is nearer. But the indian people argue with the Plus people, I told them I&#8217;ll give you the fees but I don&#8217;t want to follow. Whatever they charged higher price <strong>250RM = 82 USD only for just clean the windscreen.</strong> But whatever I paid them, and return back to my home safely though I had to drive within rain with no windscreen.</p>
<p>After I came back I talked with some local and foreign friends here and some of them told me, it&#8217;s a common situation in expressway. A group of criminal people try to make such incident to either rob or take more money as a charge. I&#8217;m sure that its also a planned incident, because the opposite side&#8217;s people could never know how other side&#8217;s car got an accident without get informed.</p>
<p>I hope Malaysian authority should take some action/prevention for this type of crime and also they should train the Plus People to deal this type of situation. I wrote this blog post, because I want to warn my friends that be aware when you drive on highway and don&#8217;t talk or avoid if any local dress people try to help you.</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=iQrPWHsLe34:3kxYZKeT7kQ:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=iQrPWHsLe34:3kxYZKeT7kQ:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=iQrPWHsLe34:3kxYZKeT7kQ:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=iQrPWHsLe34:3kxYZKeT7kQ:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=iQrPWHsLe34:3kxYZKeT7kQ:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=iQrPWHsLe34:3kxYZKeT7kQ:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=iQrPWHsLe34:3kxYZKeT7kQ:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=iQrPWHsLe34:3kxYZKeT7kQ:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=iQrPWHsLe34:3kxYZKeT7kQ:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=iQrPWHsLe34:3kxYZKeT7kQ:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/iQrPWHsLe34" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/personal/bad-experience-on-malaysian-expressway-from-melaka-to-kuala-lumpur/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/personal/bad-experience-on-malaysian-expressway-from-melaka-to-kuala-lumpur/</feedburner:origLink></item>
		<item>
		<title>SQLite space within string</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/eEmPFWZj_IM/</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>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eEmPFWZj_IM:9N5VHgw9kQU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eEmPFWZj_IM:9N5VHgw9kQU:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eEmPFWZj_IM:9N5VHgw9kQU:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eEmPFWZj_IM:9N5VHgw9kQU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eEmPFWZj_IM:9N5VHgw9kQU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eEmPFWZj_IM:9N5VHgw9kQU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eEmPFWZj_IM:9N5VHgw9kQU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eEmPFWZj_IM:9N5VHgw9kQU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eEmPFWZj_IM:9N5VHgw9kQU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eEmPFWZj_IM:9N5VHgw9kQU:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/eEmPFWZj_IM" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/mixed/sqlite-space-within-string/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/mixed/sqlite-space-within-string/</feedburner:origLink></item>
		<item>
		<title>Passing time in my Masters Study and Research</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/NhblJEcOo-g/</link>
		<comments>http://thinkdiff.net/personal/passing-time-in-my-masters-study-and-research/#comments</comments>
		<pubDate>Thu, 31 May 2012 13:51:18 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[data mining]]></category>
		<category><![CDATA[M.Sc]]></category>
		<category><![CDATA[malaysia]]></category>
		<category><![CDATA[masters]]></category>
		<category><![CDATA[mmu]]></category>
		<category><![CDATA[multimedia university]]></category>
		<category><![CDATA[research]]></category>
		<category><![CDATA[web mining]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2551</guid>
		<description><![CDATA[Some people ask me why I&#8217;m absent in Facebook app development tutorial writing? There are actually several reasons behind it. Firstly I retired active Facebook app developing for last 1 year. Then I involved myself for iPhone application development specially in last year along with freelance web development. And beginning of this year I&#8217;ve started [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.mmu.edu.my/"><img class="alignleft size-full wp-image-2552" title="MMU University" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/05/mmu.jpg" alt="" width="198" height="156" /></a>Some people ask me why I&#8217;m absent in Facebook app development tutorial writing? There are actually several reasons behind it. Firstly I retired active Facebook app developing for last 1 year. Then I involved myself for iPhone application development specially in last year along with freelance web development. And beginning of this year I&#8217;ve started my Masters study by research. So today I&#8217;m going to share my experience and thoughts in last 3 months of my study and research.</p>
<p><span id="more-2551"></span></p>
<p>Officially I&#8217;ve started my M.Sc in 26th April, 2012 in <a href="http://www.mmu.edu.my/" target="_blank">Multimedia University (MMU)</a> Melaka Campus. I got a research fund in the faculty of information science &amp; technology to pursue my study. My research and study mainly focused on health information technology. Where my major is<strong> data mining</strong> specially <strong>web data mining</strong>.</p>
<p>Actually academic things are quite different from professional things. I think academic people think differently than what we think in professional life. My supervisor is actually American by citizenship American + Australian. He is highly experienced, PhD holder, very kind and friendly. He guides me to think academic way. Before my masters study I never know how to write thesis paper, because in my bachelor study my friend and me developed a project in our last year and wrote a paper about that. But to write academic thesis paper there are some rules that I learned in these days. The interesting thing is that, to write something and reference something in thesis paper I&#8217;ve to read books, journal, conference papers and sometimes websites information. So reading and understanding is one major part in post-graduate research.</p>
<p>In these days I&#8217;ve read many books and journal papers related to health information technology. Now a days I&#8217;m studying data mining. In my career, I wrote some PHP scripts/crawlers to grab data from website. So in my research project I&#8217;ve also do something similar, but in different way, where I&#8217;ve to explore best way to gather information for our project needs.</p>
<p>I read blogs mainly in my iPad. I also read many books in my iPad, but honestly said still paper book is much easier to read, understand and comfortable. So to study more about data mining, yesterday I ordered 3 books from amazon.com. I&#8217;ve a PDF version of one of these books, but really I hardly need the paper version. May be if you are interested in data mining research, these books might be helpful for you.</p>
<p><a href="http://www.amazon.com/gp/product/3642194591/ref=as_li_tf_il?ie=UTF8&amp;tag=fte-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=3642194591" target="_blank"><img src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&amp;Format=_SL160_&amp;ASIN=3642194591&amp;MarketPlace=US&amp;ID=AsinImage&amp;WS=1&amp;tag=fte-20&amp;ServiceVersion=20070822" alt="" border="0" /></a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=fte-20&amp;l=as2&amp;o=1&amp;a=3642194591" alt="" width="1" height="1" border="0" /><a href="http://www.amazon.com/gp/product/1933988665/ref=as_li_tf_il?ie=UTF8&amp;tag=fte-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1933988665" target="_blank"><img src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&amp;Format=_SL160_&amp;ASIN=1933988665&amp;MarketPlace=US&amp;ID=AsinImage&amp;WS=1&amp;tag=fte-20&amp;ServiceVersion=20070822" alt="" border="0" /></a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=fte-20&amp;l=as2&amp;o=1&amp;a=1933988665" alt="" width="1" height="1" border="0" /><a href="http://www.amazon.com/gp/product/1593273975/ref=as_li_tf_il?ie=UTF8&amp;tag=fte-20&amp;linkCode=as2&amp;camp=1789&amp;creative=9325&amp;creativeASIN=1593273975" target="_blank"><img src="http://ws.assoc-amazon.com/widgets/q?_encoding=UTF8&amp;Format=_SL160_&amp;ASIN=1593273975&amp;MarketPlace=US&amp;ID=AsinImage&amp;WS=1&amp;tag=fte-20&amp;ServiceVersion=20070822" alt="" border="0" /></a><img style="border: none !important; margin: 0px !important;" src="http://www.assoc-amazon.com/e/ir?t=fte-20&amp;l=as2&amp;o=1&amp;a=1593273975" alt="" width="1" height="1" border="0" /></p>
<p>If you know better resource, books or journal links you can share with me as comments. To find papers <a href="http://scholar.google.com.my/" target="_blank">scholar.google.com</a> is very helpful. Also <a href="http://ieeexplore.ieee.org/Xplore/guesthome.jsp" target="_blank">IEEE Xplore Digital Library</a> helped me lots to find quality journal and conference papers. But you must have to pay them for registering and accessing. But the good thing is, if you&#8217;re student of any reputed university you can get auto access from your campus. Because university pay them.</p>
<p>So far, sometimes I become confuse after meeting with my professor, but later I understand better than previous. Now I think teachers think more differently than we think, and that actually helps us to think more differently.</p>
<p>If you are really interested to research, you should join in post-graduate study where you will get the opportunity to do more research. And if you&#8217;re from professional career like me (I completed my Bachelor in 2008 and worked for different companies, freelance, self-employed until 2012)  then this will bring some different tastes in life. But if you do Masters you should select Masters by Research, not Masters by Course, because in research you&#8217;ve the opportunity to explore more.</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=NhblJEcOo-g:-EmhKkyDVs8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=NhblJEcOo-g:-EmhKkyDVs8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=NhblJEcOo-g:-EmhKkyDVs8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=NhblJEcOo-g:-EmhKkyDVs8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=NhblJEcOo-g:-EmhKkyDVs8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=NhblJEcOo-g:-EmhKkyDVs8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=NhblJEcOo-g:-EmhKkyDVs8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=NhblJEcOo-g:-EmhKkyDVs8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=NhblJEcOo-g:-EmhKkyDVs8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=NhblJEcOo-g:-EmhKkyDVs8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/NhblJEcOo-g" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/personal/passing-time-in-my-masters-study-and-research/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/personal/passing-time-in-my-masters-study-and-research/</feedburner:origLink></item>
		<item>
		<title>Another Career Twist, Started M.Sc in Information Science &amp; Technology in MMU Melaka, Malaysia</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/uZ1qAqLBCY0/</link>
		<comments>http://thinkdiff.net/personal/another-career-twist-started-m-sc-in-information-science-technology-in-mmu-melaka-malaysia/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 07:13:35 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[mahmud]]></category>
		<category><![CDATA[malaysia]]></category>
		<category><![CDATA[melaka]]></category>
		<category><![CDATA[mmu]]></category>
		<category><![CDATA[research]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2538</guid>
		<description><![CDATA[In late 2011, I wrote a blog post where I mentioned that I was trying to come in Malaysia for M.Sc study. I was trying and trying, applying here and there and finally in February 2012 I got the good news that, I&#8217;ve approved to get Research Fund in Multimedia University (MMU), Melaka Campus for [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/mmu.jpg" rel="lightbox[2538]"><img src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/mmu.jpg" alt="MMU" title="Multimedia University (Melaka Campus)" width="564" height="319" class="aligncenter size-full wp-image-2539" /></a> In late 2011, I wrote a blog post where I mentioned that I was trying to come in Malaysia for M.Sc study. I was trying and trying, applying here and there and finally in February 2012 I got the good news that, I&#8217;ve approved to get Research Fund in Multimedia University (MMU), Melaka Campus for study and research in Health Information Technology. My supervisor and co-supervisor are great and highly experienced people. My supervisor is by born American, completed his B.Sc &#038; M.Sc in US, Ph.D in Germany and worked in various university. My co-supervisor is also Ph.D holder. So I will learn many things from them.</p>
<p><span id="more-2538"></span></p>
<p>In 24th March, I reached Kuala Lumpur. The airport terminal is very beautiful. Then I hired a taxi and came in Melaka. Here my uncle (father&#8217;s cousin) is living. So he helped me to settle many things. My supervisor also helped me to manage a guest room in a guest house. Melaka is also very beautiful. Very natural. Lots of trees here and there but rain often comes. Life is simple and great. People are so far very friendly and helpful. There are many Indian restaurants. So its good to take food from there, as Indian and Bangladeshi food tastes are quite similar.</p>
<p>On 24th, my supervisor gave me a key of the research room, where me and some other students will research. The most important thing I get is the high speed internet. In Dhaka, we used to suffer for high speed and stable internet connection.<br />
Here is a pic of my research room.</p>
<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/IMG_7689.jpg" rel="lightbox[2538]"><img src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/IMG_7689.jpg" alt="My Research Room" title="My Research Room" width="600" height="400" class="aligncenter size-full wp-image-2542" /></a></p>
<p>So unofficially I started my research, because my university is applied for the student pass, and after I got it I can register for the M.Sc. Hopefully within some weeks it will be ok, and my wife will come here to live with me. Yesterday I rented an apartment to live in Melaka. The apartment is fully furnished with all the essential things including fridge, TV, Air Conditions, washing machine, sofa, dinning table, bed, mattress etc. Also there is a nice swimming pool and a gym within the apartment area.</p>
<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/swimmingpool.jpg" rel="lightbox[2538]"><img src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/04/swimmingpool.jpg" alt="Swimming Pool" title="Swimming Pool" width="600" height="400" class="aligncenter size-full wp-image-2544" /></a></p>
<p>Today I swam for half hour and its great feelings and exercise. I&#8217;m enjoying my life in Melaka but it would be more beautiful when my wife will arrive and join me. </p>
<p>So in 2008, I completed my B.Sc then started job, worked on different US based companies, and then did freelance web development, and later started my iOS apps development business. Now I&#8217;ll fully concentrate on my research but I know I&#8217;ll get enough times to do part time work in my business and freelance.</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=uZ1qAqLBCY0:zItTP_7f9QI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=uZ1qAqLBCY0:zItTP_7f9QI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=uZ1qAqLBCY0:zItTP_7f9QI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=uZ1qAqLBCY0:zItTP_7f9QI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=uZ1qAqLBCY0:zItTP_7f9QI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=uZ1qAqLBCY0:zItTP_7f9QI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=uZ1qAqLBCY0:zItTP_7f9QI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=uZ1qAqLBCY0:zItTP_7f9QI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=uZ1qAqLBCY0:zItTP_7f9QI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=uZ1qAqLBCY0:zItTP_7f9QI:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/uZ1qAqLBCY0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/personal/another-career-twist-started-m-sc-in-information-science-technology-in-mmu-melaka-malaysia/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/personal/another-career-twist-started-m-sc-in-information-science-technology-in-mmu-melaka-malaysia/</feedburner:origLink></item>
		<item>
		<title>Twilio API for SMS based web application</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/lhMNTDysqjA/</link>
		<comments>http://thinkdiff.net/php/twilio-api-for-sms-based-web-application/#comments</comments>
		<pubDate>Fri, 02 Mar 2012 16:46:21 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[Cloud]]></category>
		<category><![CDATA[SMS]]></category>
		<category><![CDATA[Twilio]]></category>
		<category><![CDATA[voice]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2523</guid>
		<description><![CDATA[A few months ago I worked in a web project where we had to develop web &#38; SMS application. Our main project is fully web application where we need to integrate SMS and some voice feature. We also wanted to integrate this feature easily and cost effectively. After some R&#38;D in google search we found [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/03/twilio.jpg" rel="lightbox[2523]"><img class="alignleft size-full wp-image-2524" title="twilio" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/03/twilio.jpg" alt="" width="300" height="185" /></a>A few months ago I worked in a web project where we had to develop web &amp; SMS application. Our main project is fully web application where we need to integrate SMS and some voice feature. We also wanted to integrate this feature easily and cost effectively. After some R&amp;D in google search we found several web services for this purpose. Among all the services we liked <a href="http://www.twilio.com/api" target="_blank">Twilio</a>.</p>
<p>There are several reasons to choose <a href="http://www.twilio.com/api" target="_blank">Twilio</a>. One of the most important reason is, its very easy to integrate <a href="http://www.twilio.com/api" target="_blank">Twilio</a>’s REST API. The price is also cheap compare to other services. In this post I’ll not write details about <a href="http://www.twilio.com/api" target="_blank">Twilio</a>. You can easily learn more about it by there web site. I’ll mention some features that we integrated in our application.</p>
<p><span id="more-2523"></span></p>
<p>Our project is developed based on <a href="http://codeigniter.com/" target="_blank">CodeIgniter</a> framework. So we just downloaded the <a href="http://www.twilio.com/docs/libraries#PHP" target="_blank">REST library</a> provided by Twilio and dropped in our libraries folder.</p>
<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/03/TwilioLib.jpg" rel="lightbox[2523]"><img class="aligncenter size-full wp-image-2525" title="Twilio PHP Library" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/03/TwilioLib.jpg" alt="Twilio PHP Library" width="591" height="340" /></a></p>
<p>Then I wrote a class to use the Twilio API to serve our application purpose. Our application&#8217;s task was:</p>
<ol>
<li>Send SMS</li>
<li>User can search and select custom phone number</li>
<li>User can buy a local phone number</li>
</ol>
<p>Here is my class that I&#8217;ve written. You&#8217;ll see this class named is <strong>Smsapi</strong> and its located in the libraries folder follow the above image.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * This is a wrapper class for sending sms. Twilio Api Custom Library suitable for our CI Project
 * @author: Mahmud
 * @category Library
 */

// Include the PHP TwilioRest library
require &quot;twilio/twilio.php&quot;;

class Smsapi {
    private $client;
    private $AccountSid;
    private $AuthToken;
    private $CallerID;
    private $ApiVersion;
    private $CI;
    private $SMS_Callback;
    private $VOICE_Callback;
    private $VOICE_fallback;
    private $VOICE_status;

    function __construct(){
        // Twilio REST API version
        $this-&gt;ApiVersion   =   &quot;2010-04-01&quot;;

        $this-&gt;CI           =   &amp;get_instance();

        // Set our AccountSid and AuthToken
        $this-&gt;AccountSid       =   $this-&gt;CI-&gt;config-&gt;item('twilio_sid'  );
        $this-&gt;AuthToken        =   $this-&gt;CI-&gt;config-&gt;item('twilio_token');
        $this-&gt;SMS_Callback     =   $this-&gt;CI-&gt;config-&gt;item('twilio_sms_callback');
        $this-&gt;VOICE_Callback   =   $this-&gt;CI-&gt;config-&gt;item('twilio_voice_callback');
        $this-&gt;VOICE_fallback   =   $this-&gt;CI-&gt;config-&gt;item('twilio_voice_fallback');
        $this-&gt;VOICE_status     =   $this-&gt;CI-&gt;config-&gt;item('twilio_voice_status');

        // Outgoing Caller ID you have previously validated with Twilio
        $this-&gt;CallerID     =   $this-&gt;CI-&gt;config-&gt;item('twilio_phone');

        // Instantiate a new Twilio Rest Client
        $this-&gt;client       =   new TwilioRestClient($this-&gt;AccountSid, $this-&gt;AuthToken);
    }

    /**
     * This function is a wrapper to send SMS to a phone number. You should use this method for all type
     * of SMS message sending.
     * @param string $number phone number to whom sms will send
     * @param string $message message that will send to the phone number
     */
    public function send_sms($number, $message){
        $response = $this-&gt;client-&gt;request(&quot;/{$this-&gt;ApiVersion}/Accounts/{$this-&gt;AccountSid}/SMS/Messages&quot;,
                &quot;POST&quot;, array(
                &quot;To&quot; =&gt; $number,
                &quot;From&quot; =&gt; $this-&gt;CallerID,
                &quot;Body&quot; =&gt; $message
        ));
        if($response-&gt;IsError){
            $error  =   &quot;Error: {$response-&gt;ErrorMessage} &quot; . &quot; File: Smsapi.php 42 no line. Number: $number&quot;;
           // echo $error;
           log_message('error', $error);
           return FALSE;
        }
        else{
            //echo &quot;Sent message to $number&quot;;
            return TRUE;
        }
    }

    /**
     * This function search for available mobile numbers based on ZIP code
     * @access public
     * @param string $zip ZIP code of US or Canada
     * @param string $country US or CA
     * @return BOOLEAN TRUE for get result and FALSE for error or no result
     */
    public function search_mobile_numbers($zip='', $postal='', $country='US', $failsearch=FALSE){
        $SearchParams['InPostalCode']   = !empty($zip)    ? $zip    : '';
        $SearchParams['NearNumber']     = '';
        $SearchParams['Contains']       = '';
        $SearchParams['AreaCode']       = !empty($postal) ? $postal : '';

        /* Initiate US Local PhoneNumber search with $SearchParams list */
        $response = $this-&gt;client-&gt;request(&quot;/{$this-&gt;ApiVersion}/Accounts/{$this-&gt;AccountSid}/AvailablePhoneNumbers/$country/Local&quot;,
                         &quot;GET&quot;,
                          $SearchParams);

        if($response-&gt;IsError) {
            return $response-&gt;IsError;
        }

        $AvailablePhoneNumbers = $response-&gt;ResponseXml-&gt;AvailablePhoneNumbers-&gt;AvailablePhoneNumber;

        if (empty($AvailablePhoneNumbers)){
            $AvailablePhoneNumbers  =   &quot;No available numbers in your zip code&quot;;
            if ($failsearch){
                //now check only available number not need to zip code specific
                $SearchParams['InPostalCode']   = '';
                $response = $this-&gt;client-&gt;request(&quot;/{$this-&gt;ApiVersion}/Accounts/{$this-&gt;AccountSid}/AvailablePhoneNumbers/$country/Local&quot;,
                             &quot;GET&quot;,
                              $SearchParams);

                if($response-&gt;IsError) {
                    return $response-&gt;IsError;
                }

                $AvailablePhoneNumbers = $response-&gt;ResponseXml-&gt;AvailablePhoneNumbers-&gt;AvailablePhoneNumber;
            }
        }

        return $AvailablePhoneNumbers;
    }

    /**
     * Buy mobile phone number
     * @param STRING $number the phone number user wants to buy
     * @return mixed TRUE for success and string for error message
     */
    public function buy_mobile_number($number){
        /* Purchase the selected PhoneNumber */
        $response = $this-&gt;client-&gt;request(&quot;/{$this-&gt;ApiVersion}/Accounts/{$this-&gt;AccountSid}/IncomingPhoneNumbers&quot;,
                                     &quot;POST&quot;,
                                     array(
                                         'PhoneNumber'          =&gt; $number,
                                         'SmsUrl'               =&gt; $this-&gt;SMS_Callback,
                                         'SmsMethod'            =&gt; 'POST',
                                         'VoiceCallerIdLookup'  =&gt; TRUE,
                                         'VoiceUrl'             =&gt; $this-&gt;VOICE_Callback,
                                         'VoiceMethod'          =&gt; 'POST',
                                         'VoiceFallbackUrl'     =&gt; $this-&gt;VOICE_fallback,
                                         'VoiceFallbackMethod'  =&gt; 'POST',
                                         'StatusCallback'       =&gt; $this-&gt;VOICE_status,
                                         'StatusCallbackMethod' =&gt; 'POST',
                                     ));

        if($response-&gt;IsError) {
            $err = urlencode(&quot;Error purchasing number: $response-&gt;ErrorMessage&quot;);
            return $err;
        }

        return TRUE;
    }
}

?&gt;
</pre>
<p>I also provided the constant variables in config.php. You&#8217;ve to provide your own API Key, token, Twilio Phone Number in this variables.</p>
<pre class="brush: php; title: ; notranslate">
//Third Party Library Configuratio
$config['twilio_sid']           =   'XXXXXXXXXXXXXXXXXXXXXXXXXXX';
$config['twilio_token']         =   'XXXXXXXXXXXXXXXXXXXXXXXXXXX';
$config['twilio_phone']         =   'XXXXXXXXXXXXXXXXXXXXXXXXXXX';
$config['twilio_phone_display'] =   'XXXXXXXXXXXXXXXXXXXXXXXXXXX';
$config['twilio_sms_callback']  =   $config['base_url'] . '/sms'; //it should be our application's dedicated sms url
$config['twilio_voice_callback']=   $config['base_url'] . '/voice'; //it should be our application's dedicated voice url
$config['twilio_voice_fallback']=   $config['base_url'] . '/voice/fallback';
$config['twilio_voice_status']  =   $config['base_url'] . '/voice/status';
</pre>
<p>In my class you&#8217;ll see 3 functions</p>
<ol>
<li><strong>public function send_sms($number, $message);</strong></li>
<li><strong>public function search_mobile_numbers($zip=&#8221;, $postal=&#8221;, $country=&#8217;US&#8217;, $failsearch=FALSE);</strong></li>
<li><strong>public function buy_mobile_number($number);</strong></li>
</ol>
<p>Using <strong>send_sms()</strong> function you just have to provide the phone number and message to send as text. Using <strong>search_mobile_numbers()</strong> function you can search and get the available phone numbers based on ZIP, POSTAL and Country code. And the final function <strong>buy_mobile_number()</strong> you can purchase the number from Twilio and from then that number will be not available for other users.</p>
<p>We also integrated some other features like some voice, automatic SMS answer when user send text to a number. But for simplicity I&#8217;ve not described them in this post.Hope this article will help you to work on Twilio.</p>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=lhMNTDysqjA:ggZ5W_KMwR8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=lhMNTDysqjA:ggZ5W_KMwR8:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=lhMNTDysqjA:ggZ5W_KMwR8:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=lhMNTDysqjA:ggZ5W_KMwR8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=lhMNTDysqjA:ggZ5W_KMwR8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=lhMNTDysqjA:ggZ5W_KMwR8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=lhMNTDysqjA:ggZ5W_KMwR8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=lhMNTDysqjA:ggZ5W_KMwR8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=lhMNTDysqjA:ggZ5W_KMwR8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=lhMNTDysqjA:ggZ5W_KMwR8:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/lhMNTDysqjA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/php/twilio-api-for-sms-based-web-application/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/php/twilio-api-for-sms-based-web-application/</feedburner:origLink></item>
		<item>
		<title>Rewind 2011 &amp; Happy New Year 2012</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/eI5OmNphz9Y/</link>
		<comments>http://thinkdiff.net/personal/rewind-2011-happy-new-year-2012/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 06:30:10 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[2011]]></category>
		<category><![CDATA[personal]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2498</guid>
		<description><![CDATA[Firstly I want to say sorry to my blog readers because I didn&#8217;t publish much article about facebook app development in 2011. Because I was very busy for my job, life and honestly said I was not an active facebook web developer in 2011. In computer science algorithm and data structure subject we learned &#8220;Time [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/01/my_iphone.jpg" rel="lightbox[2498]"><img class="alignleft  wp-image-2499" title="iPhone4" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2012/01/my_iphone.jpg" alt="iPhone4" width="173" height="200" /></a>Firstly I want to say sorry to my blog readers because I didn&#8217;t publish much article about facebook app development in 2011. Because I was very busy for my job, life and honestly said I was not an active facebook web developer in 2011. In computer science algorithm and data structure subject we learned &#8220;Time space trade off&#8221;. That means if you need faster solution you&#8217;ve to use more space and vice versa. This is happened in our life also. If you invest some time in a work you definitely have to  leave some time in other works.</p>
<p>Whatever I&#8217;m writing this post to inform my friends and blog readers about my activity in 2011</p>
<p><span id="more-2498"></span></p>
<ol>
<li>I had been doing web application development job (part time) via oDesk for a US client. I worked almost 1 year for him. I used <a href="http://codeigniter.com/" target="_blank">CodeIgniter</a> framework, <a href="http://www.mysql.com/products/workbench/" target="_blank">MySQL workbench</a>, <a href="http://www.springloops.com/v2/" target="_blank">SpringLoops</a>, and <a href="http://www.twilio.com/" target="_blank">Twilio Communication Service API</a> to integrate voice and sms in his project. We worked in a team and my role was managing the project and team, implementing API, make the web app structure, design database and deploy on server.</li>
<li>I joined in a Berkely based US company as a <strong>Sr. Software Engineer</strong> where my role was to <strong>manage and develop iOS application</strong>. But I left the job after 3 months. Its really tough to do job late at night, because there is a 12 hours difference between Bangladesh and US. So their morning is night in here.</li>
<li>In 2011, I was fully concentrated on Objective C, XCode and iOS applications development. That year was very successful for me. I learned many things of iOS game and application development. I learned <a href="http://en.wikipedia.org/wiki/Tile-based_game" target="_blank">Tile based game development</a>, <a href="http://box2d.org/" target="_blank">box2d</a> physics engine based game development and all about <a href="http://www.cocos2d-iphone.org/" target="_blank">cocos2d framework</a> based 2D game development. My wife all time supported me by designing graphics for my games and apps and providing continuous support. I published some major updates of some of my apps. The success is <a href="http://ithinkdiff.net" target="_blank">all of my free iOS apps</a> downloaded more than <strong>1 Million</strong> times via all iTunes Store. And people updated my free apps more than <strong>1.5 Million</strong> times. And the <strong>average feedback of my apps is 4.0 out of 5.0.</strong>The success was not come in a day. Sometimes I worked more than 16 hours in a day. And sometime I didn&#8217;t work any time <img src='http://thinkdiff.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
<li>I also fully moved to <a href="https://github.com/mahmudahsan" target="_blank">github</a> for all of my public code hosting.</li>
<li>I updated my bike from <a href="http://bikeadvice.in/wp-content/uploads/2008/09/discover-135.jpg" target="_blank" rel="lightbox[2498]">Bajaj Discover</a> to <a href="http://www.flickr.com/photos/mahmudahsan/6593250981/in/photostream" target="_blank">Yamaha Fazer</a> during the middle of the year 2011.</li>
<li>I was thinking to join for higher study, and thinking to move Malaysia for my MSc. I attended <a href="http://www.ielts.org/" target="_blank">IELTS Academic Module exam </a>and achieved <strong>Band 6.5</strong> score<strong><em>(listning 6.5, Reading 6.5, Speaking 6.5 and Writing 5.5)</em></strong>. I was little surprised for my writing score and I realized that my academic writing is not good, so I&#8217;ve to improve it more :S</li>
<li>Near the end of the year I updated my camera from <a href="http://cdn-4.nikon-cdn.com/en_INC/IMG/Assets/Digital-SLR/2010/25452-Nikon-D5000/Views/25452_D5000_34l.png?targetMedia=/en_INC/IMG/Assets/Digital-SLR/2010/25452-Nikon-D5000/Views/353_25452_D5000_34l.png" target="_blank" rel="lightbox[2498]">Nikon D5000</a> to <a href="http://www.flickr.com/photos/mahmudahsan/6601865931/in/photostream" target="_blank">Canon 5D Mark II</a>.</li>
<li>And I&#8217;m consulting with a professor in Malayisa and looking for opportunity to join any university to study MSc by Research.</li>
</ol>
<p>I believe to spend time happily. And I all time try do that. And I&#8217;m very thankful to Allah (God) that he helped me by giving success.</p>
<p>In 2012, I still want to move Malaysia to complete my MSc by Research. Please pray for me. Additionally I&#8217;ll try to write more technical post in my blog. I&#8217;ve also some plan to develop some new iOS applications and games beside my part time Web application development job. I wish all of you a:</p>
<h2 style="text-align: center;"><span style="color: #800080;"><strong>Happy New Year</strong></span></h2>
<h2 style="text-align: center;"><span style="color: #800080;">2012</span></h2>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eI5OmNphz9Y:XFth65-zMgw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eI5OmNphz9Y:XFth65-zMgw:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eI5OmNphz9Y:XFth65-zMgw:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eI5OmNphz9Y:XFth65-zMgw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eI5OmNphz9Y:XFth65-zMgw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eI5OmNphz9Y:XFth65-zMgw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eI5OmNphz9Y:XFth65-zMgw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eI5OmNphz9Y:XFth65-zMgw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=eI5OmNphz9Y:XFth65-zMgw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=eI5OmNphz9Y:XFth65-zMgw:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/eI5OmNphz9Y" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/personal/rewind-2011-happy-new-year-2012/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/personal/rewind-2011-happy-new-year-2012/</feedburner:origLink></item>
		<item>
		<title>Feed Dialog – Message field deprecated!!!</title>
		<link>http://feedproxy.google.com/~r/Thinkdiffnet/~3/w4yW9JQCSnI/</link>
		<comments>http://thinkdiff.net/facebook/feed-dialog-message-field-deprecated/#comments</comments>
		<pubDate>Mon, 14 Nov 2011 08:38:53 +0000</pubDate>
		<dc:creator>mahmud ahsan</dc:creator>
				<category><![CDATA[Facebook]]></category>
		<category><![CDATA[iPhone/iPad]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[ipad]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[message]]></category>

		<guid isPermaLink="false">http://thinkdiff.net/?p=2487</guid>
		<description><![CDATA[I&#8217;ve an iOS application named Translator Free  where I have been using Facebook iOS library to share translated text as user&#8217;s facebook status. Some day ago I noticed that facebook deprecated the message field. They deprecated it in July 12, 2011 and I noticed it much later. I&#8217;m surprised for their decision. What&#8217;s the problem [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2011/01/facebook-new.jpg" rel="lightbox[2487]"><img class="alignleft size-full wp-image-2142" title="facebook" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2011/01/facebook-new.jpg" alt="facebook" width="200" height="150" /></a>I&#8217;ve an iOS application named <a href="http://ithinkdiff.net/reference/translator-free/" target="_blank">Translator Free</a>  where I have been using Facebook iOS library to share translated text as user&#8217;s facebook status. Some day ago I noticed that facebook deprecated the <a href="https://developers.facebook.com/docs/reference/dialogs/feed/" target="_blank"><strong>message</strong> field</a>. They deprecated it in July 12, 2011 and I noticed it much later. I&#8217;m surprised for their decision.</p>
<p><span id="more-2487"></span></p>
<p>What&#8217;s the problem if a person like to share pre-populated text as his status message. I don&#8217;t know why they took the decision!!</p>
<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2011/11/message_deprected.jpg" rel="lightbox[2487]"><img class="aligncenter size-full wp-image-2488" title="message_deprected" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2011/11/message_deprected.jpg" alt="" width="625" height="266" /></a></p>
<p><a href="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2011/11/message_deprecate_2.jpg" rel="lightbox[2487]"><img class="aligncenter size-full wp-image-2489" title="message_deprecate_2" src="http://4de08c6af39c20343f39-fec7c301d7eca18188203e783b444e60.r36.cf1.rackcdn.com/2011/11/message_deprecate_2.jpg" alt="" width="599" height="449" /></a></p>
<p>So if you need to update user&#8217;s status using facebook iOS SDK you can do the following way:</p>
<p>&nbsp;</p>
<p>Instead of using the below code</p>
<pre class="brush: cpp; title: ; notranslate">
[facebook dialog:@&quot;feed&quot;
	 andParams:params 
	 andDelegate:self]; 
</pre>
<p>Use the following solution</p>
<pre class="brush: cpp; title: ; notranslate">
 [facebook requestWithGraphPath:@&quot;me/feed&quot;
        andParams:params
        andHttpMethod:@&quot;POST&quot;
        andDelegate:self];
</pre>
<!-- Start Shareaholic Recommendations Automatic --><!-- End Shareaholic Recommendations Automatic --><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=w4yW9JQCSnI:tgTvBISLqoI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=w4yW9JQCSnI:tgTvBISLqoI:D7DqB2pKExk"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=w4yW9JQCSnI:tgTvBISLqoI:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=w4yW9JQCSnI:tgTvBISLqoI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=w4yW9JQCSnI:tgTvBISLqoI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=w4yW9JQCSnI:tgTvBISLqoI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=w4yW9JQCSnI:tgTvBISLqoI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=w4yW9JQCSnI:tgTvBISLqoI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/Thinkdiffnet?a=w4yW9JQCSnI:tgTvBISLqoI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/Thinkdiffnet?i=w4yW9JQCSnI:tgTvBISLqoI:gIN9vFwOqvQ" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/Thinkdiffnet/~4/w4yW9JQCSnI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thinkdiff.net/facebook/feed-dialog-message-field-deprecated/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		<feedburner:origLink>http://thinkdiff.net/facebook/feed-dialog-message-field-deprecated/</feedburner:origLink></item>
	</channel>
</rss><!-- Dynamic page generated in 1.340 seconds. --><!-- Cached page generated by WP-Super-Cache on 2013-06-19 19:19:02 --><!-- Compression = gzip -->
