<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6952053729036831868</id><updated>2026-08-11T02:08:02.458-07:00</updated><category term="php"/><category term="iOS"/><category term="Objective-C"/><category term="Codes"/><category term="Facebook"/><category term="Notes"/><category term="SDK"/><category term=".htaccess"/><category term="API"/><category term="Apache"/><category term="Drupal 6"/><category term="Javascript"/><category term="Silverstripe"/><category term="CMS"/><category term="IE6 Issues"/><category term="Magento"/><category term="Open Source Softwares"/><category term="Tutorials"/><category term="Yii"/><category term="codeigniter"/><category term="mod_rewrite"/><category term="AutoLayout"/><category term="CSS Positioning"/><category term="Debug Bar"/><category term="Drupal PHP Snippets"/><category term="Drupal Views"/><category term="E-Commerce"/><category term="Elgg"/><category term="Elggchat"/><category term="Fix"/><category term="Git"/><category term="HTML"/><category term="IE Toolbar"/><category term="PNG Images"/><category term="RegEx"/><category term="SQL"/><category term="Supersleight"/><category term="Templating"/><category term="UITableView"/><category term="UITableViewController"/><category term="UIView"/><category term="WAMP Server 2"/><category term="XFBML"/><category term="Xcode"/><category term="YouTube"/><category term="cURL"/><category term="iFrame"/><category term="index.php"/><category term="jQuery"/><category term="security"/><category term="twitter"/><title type='text'>mkval.blogspot</title><subtitle type='html'>Objective-C / Facebook / PHP / jQuery / CSS / HTML / GIT / Linux</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>37</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-6875922990574335937</id><published>2015-02-12T18:41:00.000-08:00</published><updated>2015-02-15T01:57:38.277-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="AutoLayout"/><category scheme="http://www.blogger.com/atom/ns#" term="Fix"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="UITableView"/><title type='text'>iOS: Deselecting UITableViewCell with AutoLayout</title><summary type="text">You&#39;ll notice that when deselecting a customized UITableViewCell using tableView-deselectRowAtIndexPath:animated: method inside tableView-didSelectRowAtIndexPath: method is that its contentView gets misplaced. It&#39;s probably halfway up the cell. I really think there&#39;s a bug on this area for Apple to adress. In the meantime, to work around this bug, you only need to replace the </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/6875922990574335937/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2015/02/ios-deselecting-uitableviewcell-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6875922990574335937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6875922990574335937'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2015/02/ios-deselecting-uitableviewcell-with.html' title='iOS: Deselecting UITableViewCell with AutoLayout'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-3851974506736184621</id><published>2014-02-25T21:31:00.001-08:00</published><updated>2015-02-14T23:32:32.648-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>UICollectionView: Paging for Smaller Width Cells</title><summary type="text">
In the application I&#39;m working on, there&#39;s a 320pt wide horizontal-only scrolling UICollectionView with varied content width depending on the number of items. The UICollectionViewCell subclass or itemView being used here has a width of 250pt enough to let the next itemView peak just a little bit. And I need to show one itemView at a time by snapping to the closest one.



// NOTE: This delegate </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/3851974506736184621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2014/02/uicollectionview-paging-for-smaller-width-cells.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/3851974506736184621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/3851974506736184621'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2014/02/uicollectionview-paging-for-smaller-width-cells.html' title='UICollectionView: Paging for Smaller Width Cells'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-4691811959992607228</id><published>2013-02-22T04:56:00.001-08:00</published><updated>2014-10-29T00:37:19.632-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iFrame"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="YouTube"/><title type='text'>Embed Youtube Video using iFrame JS Player API</title><summary type="text">Here&#39;s the code to embed Youtube video using their new iFrame Javascript Player API. This is the piece of code I also used to embed YouTube video in my iOS application. Also, it is possible to play it inline. Not the typical fullscreen playback. 




Read more about the iFrame Player API Reference.


It&#39;s also worth mentioning that on iOS6 devices, autoplay just doesn&#39;t work anymore. Apple added </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/4691811959992607228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2013/02/embed-youtube-video-using-iframe-js.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4691811959992607228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4691811959992607228'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2013/02/embed-youtube-video-using-iframe-js.html' title='Embed Youtube Video using iFrame JS Player API'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-2927336480673214563</id><published>2013-02-10T02:29:00.000-08:00</published><updated>2015-02-14T23:36:35.261-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>iOS: Stopping a chain of Block-based animations</title><summary type="text">
This can easily be done using one line of code and given you&#39;re using either [UIView animateWithDuration:animations:] or [UIView animateWithDuration:animations:completion], or both of them interchangeably.


[someView.layer removeAllAnimations]


But what if another variant of these methods is also in the mix? This method is [UIVIew animateWithDuration:delay:options:animations:completion].

What</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/2927336480673214563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2013/02/ios-stopping-chain-of-block-based.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/2927336480673214563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/2927336480673214563'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2013/02/ios-stopping-chain-of-block-based.html' title='iOS: Stopping a chain of Block-based animations'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-373653739418850601</id><published>2013-02-10T02:12:00.000-08:00</published><updated>2013-02-10T02:15:25.117-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="Xcode"/><title type='text'>iOS: Unrecognized selector sent to class...</title><summary type="text">
There are several reasons why this could happen. One of this is when adding a static Objective-C Library into your project. While compiling the app may seem to work fine, the actual code using the library may encounter this exception. The simple solution to this is to add a linker flag -all_load to your project&#39;s&amp;nbsp;Targets-&amp;gt;YourProject-&amp;gt;Build Settings-&amp;gt;Linking-&amp;gt;Other Linker Flags.</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/373653739418850601/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2013/02/ios-unrecognized-selector-sent-to-class.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/373653739418850601'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/373653739418850601'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2013/02/ios-unrecognized-selector-sent-to-class.html' title='iOS: Unrecognized selector sent to class...'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-7435645456378593004</id><published>2012-09-05T10:09:00.000-07:00</published><updated>2012-09-05T10:09:17.458-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API"/><category scheme="http://www.blogger.com/atom/ns#" term="twitter"/><title type='text'>Shared Twitter Application among Developers</title><summary type="text">Is it possible? Answer is, NO. There&#39;s no way you can add multiple developer accounts to an application. According to Twitter, &quot;this is not supported at this time and only one user account can maintain an application record&quot;.



Also worth mentioning, it is possible to transfer application&#39;s ownership to another user account. Details here.
</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/7435645456378593004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2012/09/shared-twitter-application-among.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/7435645456378593004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/7435645456378593004'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2012/09/shared-twitter-application-among.html' title='Shared Twitter Application among Developers'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-6584518459394476783</id><published>2012-05-11T00:47:00.001-07:00</published><updated>2015-02-14T23:37:50.753-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>Effectively render a Drop Shadow on a UIView subclass</title><summary type="text">Adding a drop shadow to your UIView subclass is as easy as the following code.


UIView *customView = [[UIView alloc] init];
...
customView.layer.shadowColor    = [[UIColor lightGrayColor] CGColor];
customView.layer.shadowOffset   = CGSizeMake(1, 1);
customView.layer.shadowOpacity  = 1.0;
customView.layer.shadowRadius   = 2.0; 
... 


While the common use case of such trick is on rendering </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/6584518459394476783/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2012/05/effectively-render-drop-shadow-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6584518459394476783'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6584518459394476783'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2012/05/effectively-render-drop-shadow-on.html' title='Effectively render a Drop Shadow on a UIView subclass'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-6762532594978048448</id><published>2012-05-10T05:32:00.000-07:00</published><updated>2012-05-10T08:53:07.144-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Notes"/><title type='text'>Trouble setting up iOS Push Notifications (APNS)</title><summary type="text">The following is caused by an invalid or outdated Provisioning Profile.

&quot;no valid aps-environment entitlement found for application&quot; (NSError displayed using NSLog)
&quot;The entitlements specified in your application’s Code Signing Entitlements file do not match those specified in your provisioning profile&quot; (displayed in Organizer window)

Take note that even if you&#39;re just updating an existing App </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/6762532594978048448/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2012/05/trouble-setting-up-ios-push.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6762532594978048448'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6762532594978048448'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2012/05/trouble-setting-up-ios-push.html' title='Trouble setting up iOS Push Notifications (APNS)'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-4602757584323969896</id><published>2012-04-13T08:48:00.000-07:00</published><updated>2015-02-14T23:44:58.936-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL"/><category scheme="http://www.blogger.com/atom/ns#" term="Yii"/><title type='text'>Add a Group-By Scope to Yii&#39;s CActiveRecord Subclass</title><summary type="text">Yii Framework allows for named scopes to be added to a CActiveRecord&#39;s&amp;nbsp;subclass (you can read more about this here). This also makes it more convenient to filter models based on a predetermined criteria. You can chain them with any filter methods of that class, and ultimately the CDbCriteria methods like `findAll()`.

To site an example, let&#39;s have a database table named `animals`. It also </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/4602757584323969896/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2012/04/add-group-by-scope-to-yiis.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4602757584323969896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4602757584323969896'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2012/04/add-group-by-scope-to-yiis.html' title='Add a Group-By Scope to Yii&#39;s CActiveRecord Subclass'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-8727438559532762456</id><published>2012-04-13T06:17:00.000-07:00</published><updated>2015-02-15T00:20:03.569-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="SDK"/><title type='text'>Facebook IFrame App in Safari</title><summary type="text">You don&#39;t really need cookies to make your Facebook IFrame app work in Safari browser. I remember two years ago, to make Page Tab applications work in Safari, you only need to make use of this trick. I won&#39;t be explaining it in details here.

Just recently, I was asked to do this new Fb project that&#39;s intended for Page Tab, which now is an iFrame-only platform. I&#39;ve been developing it using </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/8727438559532762456/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2012/04/facebook-iframe-app-in-safari.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8727438559532762456'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8727438559532762456'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2012/04/facebook-iframe-app-in-safari.html' title='Facebook IFrame App in Safari'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-7225633841673242372</id><published>2012-04-03T22:29:00.000-07:00</published><updated>2012-04-13T08:54:45.877-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="Javascript"/><category scheme="http://www.blogger.com/atom/ns#" term="SDK"/><title type='text'>Facebook FB.getLoginStatus() Not Working</title><summary type="text">A lot of them complaining about `FB.getLoginStatus` method not responding. Lucky you, I&#39;m one of them. This is just one of those things common to us when developing an application on Facebook platform. Perhaps the reason why sometimes, changes just seem so hard to adapt. At least only at first.


FB.getLoginStatus(function(response) {
  if (response.status === &#39;connected&#39;) {
    // the user is </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/7225633841673242372/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2012/04/facebook-fbgetloginstatus-not-working.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/7225633841673242372'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/7225633841673242372'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2012/04/facebook-fbgetloginstatus-not-working.html' title='Facebook FB.getLoginStatus() Not Working'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLyQ8CkPqAo-ft3pv-DOrKRBFGoZjvSUY9carRUff0FEHR3WQQ3bFoFueQpOJTGRpXhe0QPpFuCKXlGsb9oxsEZ7nVttiY_rhvdNWz0mSLGoOGgrWEick4eEG4Kl2oZqtumbONF1SxKgUH/s72-c/Screen+shot+2012-04-04+at+1.25.11+PM.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-3895916219646552829</id><published>2011-09-30T04:17:00.001-07:00</published><updated>2012-04-03T22:42:56.484-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="SDK"/><title type='text'>Facebook iOS: Use Access Token in PHP</title><summary type="text">Yes that&#39;s right. As of the time of this writing, it is possible to use the user granted access_token back in some server side scripting language like PHP. If you currently have a 255 varchar field size for access_tokens in your database, you may want to bump that up a bit.

The time I made the sample code ran and allowed me to log in (one that came bundled with the Facebook iOS SDK from GitHub),</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/3895916219646552829/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2011/09/facebook-ios-use-access-token-in-php.html#comment-form' title='5 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/3895916219646552829'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/3895916219646552829'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2011/09/facebook-ios-use-access-token-in-php.html' title='Facebook iOS: Use Access Token in PHP'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-5700541219244028527</id><published>2011-09-29T23:00:00.000-07:00</published><updated>2011-09-30T04:34:35.810-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="SDK"/><title type='text'>Facebook iOS SDK: Let users Connect &amp; Login with FB</title><summary type="text">Here&#39;s how to let your users connect and login to your iOS app using Facebook. The first thing you got to do is download the Facebook iOS SDK. If you have Git installed, you can also do this by pulling from GitHub.

git clone git://github.com/facebook/facebook-ios-sdk.git

Making the Sample Application Work

The SDK comes with a sample application that demonstrates authorization, making API calls</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/5700541219244028527/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2011/09/facebook-ios-sdk-let-users-connect.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/5700541219244028527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/5700541219244028527'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2011/09/facebook-ios-sdk-let-users-connect.html' title='Facebook iOS SDK: Let users Connect &amp; Login with FB'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZcOagkbFjP_j7tKVIUQBNJkE-0VMnDXjngR5RcSdX4z8qlsenAJl4lp3lqwlllcrqbwmyafUr5KnICNYEMizTnFRDM8N7acxyqnZdS52IFZjobfRLkI1NYsvQKGamxa9QUf1j-4S_C3zj/s72-c/Screen+shot+2011-09-30+at+1.42.52+PM.png" height="72" width="72"/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-8118685801833738917</id><published>2011-05-03T23:03:00.001-07:00</published><updated>2012-04-03T22:46:12.153-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Notes"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><title type='text'>Objective-C: Retain, Release, Autorelease</title><summary type="text">The rules for -retain, -release, and -autorelease are simple. If you alloc, copy, or retain something, you also need to&amp;nbsp;(eventually) release or autorelease it. If you don&#39;t do any of those&amp;nbsp;three things, you don&#39;t need to do any memory management at all. Not&amp;nbsp;only don&#39;t need to, if you try, it messes things up.

If you alloc something, it&#39;s just like you sent -retain to the object. </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/8118685801833738917/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2011/05/objective-c-retain-release-autorelease.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8118685801833738917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8118685801833738917'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2011/05/objective-c-retain-release-autorelease.html' title='Objective-C: Retain, Release, Autorelease'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-4694503388097244062</id><published>2011-05-03T01:53:00.000-07:00</published><updated>2013-02-10T02:49:20.262-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="UIView"/><title type='text'>Subclassing UIView with NIB file</title><summary type="text">Here&#39;s how UIView subclassing is done (with NIB files). I felt the need of doing so for two reasons: reusability and maintainability.

Header class:

#import &amp;lt;UIKit/UIKit.h&amp;gt;

@interface MyCustomView: UIView

+ (MyCustomView *)createWithOwner:(id)owner;

@end


Implementation class:



#import &quot;MyCustomView.h&quot;

@implementation MyCustomView

+ (MyCustomView *)createWithOwner:(id)owner {
&amp;nbsp</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/4694503388097244062/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2011/05/subclassing-uiview-with-nib-file.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4694503388097244062'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4694503388097244062'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2011/05/subclassing-uiview-with-nib-file.html' title='Subclassing UIView with NIB file'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-8134172074983513990</id><published>2011-04-19T04:07:00.000-07:00</published><updated>2011-04-19T04:14:35.664-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="iOS"/><category scheme="http://www.blogger.com/atom/ns#" term="Objective-C"/><category scheme="http://www.blogger.com/atom/ns#" term="UITableViewController"/><title type='text'>Determine if UITableView is near bottom when scrolling</title><summary type="text">Here&#39;s my way of finding out if UITableView is near bottom when scrolling. And when it does, we fetch and load another batch of items.

In my implementation of SomeTableViewController, the number of items to show matches the number of sections. So turns out, one row per section (this is because I intend to use the SectionHeaderView of each section).

Note that&amp;nbsp;UITableViewController, by </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/8134172074983513990/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2011/04/determine-if-uitableview-is-almost-at.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8134172074983513990'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8134172074983513990'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2011/04/determine-if-uitableview-is-almost-at.html' title='Determine if UITableView is near bottom when scrolling'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-8041262458244618216</id><published>2011-03-13T19:55:00.000-07:00</published><updated>2011-03-13T19:59:46.692-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API"/><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Yii"/><title type='text'>Facebook `comments.remove` API Method</title><summary type="text">With FB&#39;s Comment Social plugin, having to remove comments on a certain Application is a click away as long as the current user has the Admin rights. This thing right here may be necessary to those who wanted a custom Administration sort of utility for managing FB App related comments.

Here&#39;s a sample code of how one could implement this method:

public function removeComment($commentId, $xid)
{</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/8041262458244618216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2011/03/facebook-commentsremove-api-method.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8041262458244618216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/8041262458244618216'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2011/03/facebook-commentsremove-api-method.html' title='Facebook `comments.remove` API Method'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-862569784702536145</id><published>2010-12-05T07:26:00.000-08:00</published><updated>2012-04-13T06:37:22.565-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="XFBML"/><title type='text'>Facebook fb:multi-friend-selector In Page Tab</title><summary type="text">To those spending&amp;nbsp;days and&amp;nbsp;hours searching for a solution on putting an fb:multi-friend-selector inside a Page Tab, well, sadly you won&#39;t find anything out there. The challenge is to make it work inside a page tab. Note that page tab is restricted to 520 pixels wide only. So no matter what you do, you&#39;d still get this dialog box cut off since it&#39;s stuck at 580px wide.

In our case, we </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/862569784702536145/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/12/facebook-fbmulti-friend-selector-in-tab.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/862569784702536145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/862569784702536145'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/12/facebook-fbmulti-friend-selector-in-tab.html' title='Facebook fb:multi-friend-selector In Page Tab'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-2048734403713006323</id><published>2010-09-21T12:20:00.000-07:00</published><updated>2011-02-04T07:49:55.919-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="API"/><category scheme="http://www.blogger.com/atom/ns#" term="cURL"/><category scheme="http://www.blogger.com/atom/ns#" term="Facebook"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Tutorials"/><title type='text'>Grab the Picture of a Facebook Graph Object</title><summary type="text">Here&#39;s what you need to do to get to the actual location of a Facebook profile picture using PHP cURL (this comes in handy if you plan to store the picture somewhere else). In particular, we can grab the pictures of People, Events, Groups, Pages, Applications, and Photo Albums (these are called objects in Graph API).

You can access the Graph&#39;s documentation with regards to Pictures at&amp;nbsp;http:</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/2048734403713006323/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/09/grab-picture-of-facebook-graph-object.html#comment-form' title='8 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/2048734403713006323'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/2048734403713006323'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/09/grab-picture-of-facebook-graph-object.html' title='Grab the Picture of a Facebook Graph Object'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>8</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-7736533614895239120</id><published>2010-09-06T11:48:00.000-07:00</published><updated>2010-09-23T19:49:07.729-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Git"/><title type='text'>A note on GIT&#39;s .gitignore</title><summary type="text">Here&#39;s an excerpt from Nick Quaranto&#39;s &quot;Ignoring Files&quot; article. I tend to forget this all the time.

Two things to keep in mind with ignoring files: First, if a file is already being tracked by Git, adding the file to .gitignore won’t stop Git from tracking it. You’ll need to do git rm --cached   to keep the file in your tree and then ignore it. Secondly, empty  directories do not get tracked by</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/7736533614895239120/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/09/note-on-gits-gitignore.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/7736533614895239120'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/7736533614895239120'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/09/note-on-gits-gitignore.html' title='A note on GIT&#39;s .gitignore'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-859376351671614755</id><published>2010-09-05T18:32:00.000-07:00</published><updated>2010-09-23T20:19:06.873-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="RegEx"/><title type='text'>Convert text URLs or Hyperlinks to clickable links</title><summary type="text">Here&#39;s a PHP code that can parse text URLs or Hyperlinks into a clickable link. This is useful when displaying text contents with inline links written along.

Some of the URLs this script can handle:
http://www.google.com
https://github.com/pda/pheanstalk/
http://www.google.com/search?client=ubuntu&amp;amp;channel=fs&amp;amp;q=search+this&amp;amp;ie=utf-8&amp;amp;oe=utf-8.php

/**
&amp;nbsp;* @param String $s
&amp;nbsp;</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/859376351671614755/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/09/convert-text-urls-or-hyperlinks-to.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/859376351671614755'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/859376351671614755'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/09/convert-text-urls-or-hyperlinks-to.html' title='Convert text URLs or Hyperlinks to clickable links'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-6661789418780775403</id><published>2010-09-03T11:42:00.000-07:00</published><updated>2010-09-23T19:06:09.975-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CMS"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Silverstripe"/><title type='text'>Tips on Developing Silverstripe Applications</title><summary type="text">Here&#39;s a handful of tips dedicated to all Silverstripe CMS developers out there (because I myself develop SilverStripe applications too).

Debugging an SS Application? Go check this out before messing around your app.
First and foremost, go to this page for an in-depth info about this matter.
Have you tried Sapphire Development Tools yet?&amp;nbsp;I know you&#39;re already familiar with /dev/build. This </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/6661789418780775403/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/09/silverstripe-cms-tips.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6661789418780775403'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6661789418780775403'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/09/silverstripe-cms-tips.html' title='Tips on Developing Silverstripe Applications'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-4420938066720627942</id><published>2010-09-03T10:06:00.000-07:00</published><updated>2010-09-23T19:04:48.837-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="CMS"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><category scheme="http://www.blogger.com/atom/ns#" term="Silverstripe"/><title type='text'>Tips on Upgrading to Silverstripe CMS version 2.4</title><summary type="text">I just switched to Silverstripe 2.4+ and came accross several changes in contrast with SS2.3+. I&#39;m gonna list here few of those changes so you guys will be aware of them. And I pledge to update this from time to time. Hopefully, this will guide you when you finally decide to upgrade your old version. Or this might as well motivate you to upgrade like me.

NESTED URLs
One of my reasons why I badly</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/4420938066720627942/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/09/upgrading-to-silverstripe-cms-version.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4420938066720627942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/4420938066720627942'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/09/upgrading-to-silverstripe-cms-version.html' title='Tips on Upgrading to Silverstripe CMS version 2.4'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-6510875605239957775</id><published>2010-02-12T23:49:00.000-08:00</published><updated>2010-09-23T19:45:36.627-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Drupal 6"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal PHP Snippets"/><title type='text'>Drupal 6: How to determine if User is Logged In or not</title><summary type="text">In Drupal, data for the current user is stored in the global variable $user. To determine if the user is logged in, use the following code:

&amp;lt;?php
&amp;nbsp;&amp;nbsp; &amp;nbsp;global $user;
&amp;nbsp;&amp;nbsp; &amp;nbsp;if ($user-&amp;gt;uid) {
&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;// User is logged in.
&amp;nbsp;&amp;nbsp; &amp;nbsp;}
?&amp;gt;
This works because all guests browsing the site will have a uid of 0. That will return FALSE </summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/6510875605239957775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/02/drupal-6-how-to-determine-if-user-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6510875605239957775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/6510875605239957775'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/02/drupal-6-how-to-determine-if-user-is.html' title='Drupal 6: How to determine if User is Logged In or not'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6952053729036831868.post-9064898868167492911</id><published>2010-02-12T23:04:00.000-08:00</published><updated>2010-09-05T18:53:33.584-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Codes"/><category scheme="http://www.blogger.com/atom/ns#" term="Drupal 6"/><category scheme="http://www.blogger.com/atom/ns#" term="php"/><title type='text'>Drupal 6: Custom Online Members Block</title><summary type="text">With the help of some PHP codes, showing a block that contains a list of your site&#39;s online members can be achieved (with a left floating picture beside each member name). The code was adopted from the Drupal 6 core, User Module. We all know that there is already a bundled block for this with Block name Who&#39;s-Online. But if you really want to do more about it, like adding a user picture, then you</summary><link rel='replies' type='application/atom+xml' href='http://markuzweb.blogspot.com/feeds/9064898868167492911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://markuzweb.blogspot.com/2010/02/drupal-6-custom-online-members-block.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/9064898868167492911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6952053729036831868/posts/default/9064898868167492911'/><link rel='alternate' type='text/html' href='http://markuzweb.blogspot.com/2010/02/drupal-6-custom-online-members-block.html' title='Drupal 6: Custom Online Members Block'/><author><name>bassgrinder</name><uri>http://www.blogger.com/profile/01515325266853251717</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0Cbkm1WoN3md36KgqMLfQCr2cHSPEjEEUF8eCJ8SvijUVAlOjnIi9nXHNT0tRMegoZjjCDsV6YXlxprlQJHGcdyNrvuJJWmJxJ9n_b5jJkRd5yDuGAiolTetwqbI52g/s220/jqRedNinja.jpg'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS9b_jhZOySXN9OPz97LJtcimBXz6cr7fy8trTDJTRyuvBOiVZuCk5DPDNc-W1Nq1BPG55XjaCvxEWcxWWwB2XHZZuyXu_mWXxliikklk399I4tAElIJPPuaMl39uMNESWWpgE_z2cTF77/s72-c/Untitled.png" height="72" width="72"/><thr:total>1</thr:total></entry></feed>