<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>cakePHP 2+ Developer, Proud Peugeot 5008 Owner and Mac evangelist</description><title>Nurulazrad Blog</title><generator>Tumblr (3.0; @azrad)</generator><link>http://azrad.tumblr.com/</link><item><title>designcloud:

UP Coffee Table by Duffy London design studio</title><description>&lt;img src="http://25.media.tumblr.com/c73ae882ae1194f78f5363c70128eb69/tumblr_mhuxhziLTo1qhop1zo1_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://24.media.tumblr.com/cd5f3d5e764a04790366e7ee95b66132/tumblr_mhuxhziLTo1qhop1zo2_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;img src="http://25.media.tumblr.com/dba0c2f73a304b891e67a691d17b71fa/tumblr_mhuxhziLTo1qhop1zo3_500.jpg"/&gt;&lt;br/&gt; &lt;br/&gt;&lt;p&gt;&lt;a href="http://designcloud.tumblr.com/post/42531980799/up-coffee-table-by-duffy-london-design-studio" class="tumblr_blog"&gt;designcloud&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;span&gt;UP Coffee Table by &lt;/span&gt;&lt;a href="http://www.duffylondon.com/"&gt;Duffy London design studio&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://azrad.tumblr.com/post/42546927542</link><guid>http://azrad.tumblr.com/post/42546927542</guid><pubDate>Fri, 08 Feb 2013 09:47:54 +0800</pubDate></item><item><title>Custom Query in cakePHP with Pagination</title><description>&lt;p&gt;When doing large project with multiple developer working on the same repo, you tend to have duplicate of function or in this case query. Like for an example, I&amp;#8217;m working on a project to manage customer feedback thru their website.&lt;/p&gt;
&lt;p&gt;One of the feature requested (or obviously must have) is to be able to mark the mail as junk, thus prevent other mail from the blacklisted recipients. In my case, we have a field named &amp;#8216;mailbox&amp;#8217; and with one of the option is &amp;#8216;junk&amp;#8217;. So, here&amp;#8217;s how we do it in cakePHP.&lt;/p&gt;
&lt;ol&gt;&lt;li&gt;You need to add custom find type, namely &amp;#8216;junk&amp;#8217;
&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/4499294"&gt;https://gist.github.com/4499294&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Next, you can call this from your controller and display it in your view
&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/4499341"&gt;https://gist.github.com/4499341&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;Hopes that help!&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/40234835830</link><guid>http://azrad.tumblr.com/post/40234835830</guid><pubDate>Fri, 11 Jan 2013 13:00:22 +0800</pubDate><category>cakephp</category><category>custom find type</category><category>custom query</category><category>pagination</category></item><item><title>jQuery lightbox - autoload page</title><description>&lt;p&gt;I just noticed that I have inbox messages this morning. One of the request is to enable &amp;#8220;color box&amp;#8221; onload. I&amp;#8217;m assuming that this is refering to jQuery lightbox plugin.&lt;/p&gt;
&lt;p&gt;You can find details of the product at this page – &lt;a href="http://www.jacklmoore.com/colorbox" title="ColorBox - a jQuery lightbox"&gt;ColorBox - a jQuery lightbox&lt;/a&gt;. &lt;/p&gt;
&lt;p&gt;In order to have the lightbox automatically load when page is loaded, you need to add the following codes to your script.&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;
&lt;p&gt;&lt;code&gt;&amp;lt;script&amp;gt;&lt;br/&gt;$(document).ready(function(){&lt;br/&gt;  $.colorbox({&lt;br/&gt;    href: "colorbox_popup.html",&lt;br/&gt;    open: true&lt;br/&gt;  });&lt;br/&gt;});&lt;br/&gt;&amp;lt;/script&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;This should automatically load the link &amp;#8220;colorbox_popup.html&amp;#8221; once the page has already loaded.&lt;/p&gt;
&lt;p&gt;Notice that I don&amp;#8217;t use &lt;code&gt;$(selector)&lt;/code&gt;, since we want the page to load itself without having to interact with other object.&lt;/p&gt;
&lt;p&gt;Instead of loading external page, you can also use it to load html code like so:&lt;/p&gt;
&lt;blockquote&gt;
&lt;div&gt;&lt;code&gt;&lt;code&gt;&lt;span&gt;&amp;lt;script&amp;gt;&lt;br/&gt;&lt;/span&gt;&lt;span&gt;$(document).ready(function(){&lt;/span&gt;&lt;/code&gt;&lt;/code&gt;
&lt;p&gt;&lt;span&gt;  $.colorbox({&lt;/span&gt;&lt;br/&gt;&lt;span&gt;    html: &amp;#8220;&amp;lt;h1&amp;gt;hello, lightbox&amp;lt;/h1&amp;gt;&amp;#8221;,&lt;/span&gt;&lt;br/&gt;&lt;span&gt;    open: true&lt;/span&gt;&lt;br/&gt;&lt;span&gt;  });&lt;/span&gt;&lt;br/&gt;&lt;span&gt;});&lt;/span&gt;&lt;br/&gt;&lt;span&gt;&amp;lt;/script&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;p&gt;All the best!&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/40144455170</link><guid>http://azrad.tumblr.com/post/40144455170</guid><pubDate>Thu, 10 Jan 2013 10:53:00 +0800</pubDate></item><item><title>As my leader. Do you think I'm a programmer or developer?</title><description>&lt;p&gt;I like you as a programmer, but there are alot to learn. Let’s sit down and discuss.&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/40142603535</link><guid>http://azrad.tumblr.com/post/40142603535</guid><pubDate>Thu, 10 Jan 2013 10:32:34 +0800</pubDate></item><item><title>Save and strip whitespace in Textmate 2</title><description>&lt;p&gt;Thanks to macromates team for giving us free Textmate2  (for paid Textmate 1 customers). I notice that I have not covered this in my dev blog, althought I did covered this for Textmate 1 in &lt;a href="http://azrad.tumblr.com/post/4514935891/removing-whitespace-trailing-in-textmate"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;It almost like the previous one where you need to create a macro for this, so here&amp;#8217;s the steps required:&lt;/p&gt;

&lt;ol&gt;&lt;li&gt;open Bundle editor by go to Bundles &amp;gt; Edit Bundles&amp;#8230; menu&lt;/li&gt;
&lt;li&gt;then press Command-N and select Bundle. it will automatically keyed-in your name (Nurulazrad&amp;#8217;s Bundle)&lt;/li&gt;
&lt;li&gt;then press Command-N again and select Command.&lt;/li&gt;
&lt;li&gt;key in details as follows, see embed figure.&lt;br/&gt;&lt;br/&gt;&lt;img src="http://media.tumblr.com/cd7241c9d078d696aeead76cef5d529f/tumblr_inline_mfk90md0EE1qaro2x.png"/&gt;&lt;/li&gt;
&lt;li&gt;and you are done!&lt;/li&gt;
&lt;/ol&gt;&lt;p&gt;For the command, you may copy and paste from below:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#!/usr/bin/env bash&lt;/p&gt;
&lt;p&gt;[[ -f &amp;#8220;${TM_SUPPORT_PATH}/lib/bash_init.sh&amp;#8221; ]] &amp;amp;&amp;amp; . &amp;#8220;${TM_SUPPORT_PATH}/lib/bash_init.sh&amp;#8221;&lt;/p&gt;

&lt;p&gt;perl -pe &amp;#8216;s/[\t ]+$//g&amp;#8217; &lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Actually, I copied this from this Text Bundle. Under the Menu Actions &amp;gt; Converting / Stripping &amp;gt; Remove Trailing Spaces in Document / Selection command&lt;/p&gt;
&lt;p&gt;All the best!&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/38754480380</link><guid>http://azrad.tumblr.com/post/38754480380</guid><pubDate>Tue, 25 Dec 2012 08:25:39 +0800</pubDate><category>textmate2</category><category>textmate</category><category>whitespace</category></item><item><title>Archiving codes as downloadable in zip/tar format</title><description>&lt;p&gt;Most of the time we just pull repo from our Beanstalk repo when deploying to our client site. But, not all files are included due to .gitignore settings. If you are using CakePHP as your framework, it will automatically excluded the following directories like app/Config app/tmp, etc&amp;#8230;&lt;/p&gt;
&lt;p&gt;In order  to have application-1.0.zip or application-1.0.tar.gz, you need to rely on your skill playing with command line especially if you run any *nix os (mine i&amp;#8217;m using a Mac). &lt;/p&gt;
&lt;p&gt;The following will help you how to create the required archived applications.&lt;/p&gt;
&lt;p&gt;For zip file:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;# assume we have the following setup&lt;br/&gt;# ~/Sites/myproject&lt;/p&gt;
&lt;p&gt;% cd ~/Sites&lt;/p&gt;
&lt;p&gt;% zip -r9 /tmp/myproject-1.0.zip myproject -x myproject/.git\*&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;It will create a file named &amp;#8220;myproject-1.0.zip&amp;#8221; in your /tmp folder. Remember .git folder will contains all the changes done your project right from your first commit.&lt;/p&gt;
&lt;p&gt;For tar.gz file:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;#assume our setup as follow&lt;br/&gt;# ~/Sites/myproject&lt;/p&gt;
&lt;p&gt;% cd ~/Sites&lt;/p&gt;
&lt;p&gt;% tar -cvzf /tmp/myproject-1.0.tar.gz &amp;#8212;exclude=myproject\/.git myproject&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;If you notice for tar, the &amp;#8212;exclude option reads pattern, so make sure you have the right pattern in order for it to work.&lt;/p&gt;
&lt;p&gt;The advantage of this method is it reduced the file size and included all ignores files from git.&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/38454727441</link><guid>http://azrad.tumblr.com/post/38454727441</guid><pubDate>Fri, 21 Dec 2012 17:23:16 +0800</pubDate><category>git</category><category>tar</category><category>zip</category></item><item><title>madewithpaper:

Hand shadow.
by ciberfefo
</title><description>&lt;img src="http://24.media.tumblr.com/tumblr_m6sgmavmyB1ru897ho1_500.jpg"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a class="tumblr_blog" href="http://madewithpaper.fiftythree.com/post/34782304176/hand-shadow-by-ciberfefo"&gt;madewithpaper&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Hand shadow.&lt;/p&gt;
&lt;p&gt;&lt;em&gt;by&lt;/em&gt; &lt;a class="tumblr_blog" href="http://ciberfefo.tumblr.com/post/26692730604/made-with-paper"&gt;ciberfefo&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://azrad.tumblr.com/post/34819731456</link><guid>http://azrad.tumblr.com/post/34819731456</guid><pubDate>Fri, 02 Nov 2012 16:24:56 +0800</pubDate></item><item><title>git clone a specific remote branch</title><description>&lt;a href="http://stackoverflow.com/questions/1911109/git-clone-a-specific-branch"&gt;git clone a specific remote branch&lt;/a&gt;: &lt;p&gt;Due to big space in our account at &lt;a href="http://www.beanstalkapp.com" title="Beanstalkapp" target="_blank"&gt;beanstalk&lt;/a&gt;, we decided to have all projects under the same company to be created under one repo. I know this is not a good practice, but for a small company with tight budget, this is they way to go.&lt;/p&gt;
&lt;p&gt;So, since git has set the default branch as master, we need to clone a specific branch under that repo. Now I’m working on new project called DBMS2, the following is how you can retrieve the DBMS2 branch.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;mkdir dbms2; cd dbms2&lt;/p&gt;
&lt;p&gt;git init&lt;/p&gt;
&lt;p&gt;git remote add -t dbms2 origin [my.git.url]&lt;/p&gt;
&lt;p&gt;git fetch&lt;/p&gt;
&lt;p&gt;git checkout dbms2&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Thus when I do git branch, it will list dbms2 branch only. Kewl!&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/34137296839</link><guid>http://azrad.tumblr.com/post/34137296839</guid><pubDate>Tue, 23 Oct 2012 09:34:00 +0800</pubDate><category>git</category><category>specific branch</category><category>remote branch</category></item><item><title>git remove tracking local branch when push to origin</title><description>&lt;p&gt;I&amp;#8217;m not sure if the title is right or wrong. I know that there&amp;#8217;s no such thing as local tracking branch. But what I want to do is to remove the local branch from being pushed when I do &amp;#8220;&lt;code&gt;git push&lt;/code&gt;&amp;#8221;. Of course you have to do &amp;#8220;&lt;code&gt;git push -u &amp;lt;branch&amp;gt;&lt;/code&gt;&amp;#8221; first, so that git knows that you want to keep traking &amp;lt;branch&amp;gt; when you do push.&lt;/p&gt;
&lt;p&gt;From the search results, there are two (2) workable solutions.&lt;/p&gt;
&lt;p&gt;1. &lt;code&gt;git branch -d -r origin/&amp;lt;remote branch name&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#8217;m not sure if this is what I want. I don&amp;#8217;t really want to delete the branch in the remote repo but only in my local repo.&lt;/p&gt;
&lt;p&gt;2. This is the one that I did to remove my local branch copy and tracking while keeping my remote  branch in the origin/&amp;lt;branch&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;git config --unset branch.&amp;lt;branch&amp;gt;.remote&lt;br/&gt;git config --unset branch.&amp;lt;branch&amp;gt;.merge&lt;br/&gt;git branch -d &amp;lt;branch&amp;gt;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Hopes that this will help others who need to remove tracking their local branch.&lt;/p&gt;
&lt;p&gt;references:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://stackoverflow.com/questions/1070496/having-a-hard-time-understanding-git-fetch"&gt;http://stackoverflow.com/questions/1070496/having-a-hard-time-understanding-git-fetch&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="http://stackoverflow.com/questions/3046436/how-do-you-stop-tracking-a-remote-branch-in-git"&gt;http://stackoverflow.com/questions/3046436/how-do-you-stop-tracking-a-remote-branch-in-git&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><link>http://azrad.tumblr.com/post/33731663378</link><guid>http://azrad.tumblr.com/post/33731663378</guid><pubDate>Wed, 17 Oct 2012 06:15:44 +0800</pubDate><category>git</category><category>remote tracking</category></item><item><title>Avoiding Notices: When to Use isset() and empty()</title><description>&lt;a href="http://www.brandonsavage.net/avoiding-notices-when-to-use-isset-and-empty/"&gt;Avoiding Notices: When to Use isset() and empty()&lt;/a&gt;: &lt;p&gt;Good article regarding isset() and empty(). I would recommend avoid using empty() if possible and instead use strlen() for checking for empty string or array. Reason being non-assigned variables or empty assigned variables, both give the same result. I recommend you to read the article to understand when to use the isset() and empty() functions.&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/30498042390</link><guid>http://azrad.tumblr.com/post/30498042390</guid><pubDate>Thu, 30 Aug 2012 11:00:50 +0800</pubDate><category>php</category><category>isset</category><category>empty</category><category>strlen</category></item><item><title>Zsh and slow git completion</title><description>&lt;a href="http://talkings.org/post/5236392664/zsh-and-slow-git-completion"&gt;Zsh and slow git completion&lt;/a&gt;: &lt;p&gt;I noticed that using Zsh give me slow access to my git repo or my command line for that matters. However, this fix seems to speed up my access to my git.&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/29592770236</link><guid>http://azrad.tumblr.com/post/29592770236</guid><pubDate>Fri, 17 Aug 2012 10:05:51 +0800</pubDate><category>zsh</category><category>git</category><category>zshrc</category></item><item><title>Fixing Error with Pow, RVM, Rack and Rails 3</title><description>&lt;a href="http://www.jimfmunro.com/programming/fixing-error-pow-rvm-rack-rails-31/"&gt;Fixing Error with Pow, RVM, Rack and Rails 3&lt;/a&gt;: &lt;p&gt;So I decided to enable back POW for easy setting up rails app in my computer. POW allows you to have .dev which link back to your rails app directory. Also I’m using Powify gem by 37signals. Instead of using rbenv, I’m using RVM — don’t ask why.&lt;/p&gt;
&lt;p&gt;My pre-rails-3 apps works ok except for latest one. Reason being, I need to add .rvmrc and .powenv in my root application directory. Once that done, my rails app works like a charm.&lt;/p&gt;
&lt;p&gt;more links:&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href="http://pow.cx/manual.html#section_2.3"&gt;http://pow.cx/manual.html#section_2.3&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href="https://github.com/37signals/pow/issues/37"&gt;https://github.com/37signals/pow/issues/37&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;</description><link>http://azrad.tumblr.com/post/29590639503</link><guid>http://azrad.tumblr.com/post/29590639503</guid><pubDate>Fri, 17 Aug 2012 09:35:21 +0800</pubDate><category>pow</category><category>powify</category><category>rvm</category><category>rack</category><category>rails 3</category></item><item><title>Apache won't start with error - cannot modify limit</title><description>&lt;a href="http://excid3.com/blog/usrsbinapachectl-line-82-ulimit-open-files-cannot-modify-limit-invalid-argument/"&gt;Apache won't start with error - cannot modify limit&lt;/a&gt;: &lt;p&gt;Ubuntu 12.04 LTS just relased last few days, so I decided to upgrade my current Ubuntu 11.10 to this release. If you new to Ubuntu, please take note that LTS refers to Long Term Support. In short, LTS versions are the most stable for production mode and it release one in two years time.&lt;/p&gt;
&lt;p&gt;Well back to my issue, once i restart my apache2, it give me lots or error, this one refers to ULIMIT set at apachectl script. I’m no expert with Apache, but this fix is working.&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/22696191100</link><guid>http://azrad.tumblr.com/post/22696191100</guid><pubDate>Wed, 09 May 2012 11:00:37 +0800</pubDate><category>apache2</category><category>ulimit</category><category>ubuntu</category></item><item><title>Brew PHP5.3 on OS X</title><description>&lt;a href="https://github.com/josegonzalez/homebrew-php"&gt;Brew PHP5.3 on OS X&lt;/a&gt;: &lt;blockquote&gt;
&lt;p&gt;update url to =&gt; &lt;a href="https://github.com/josegonzalez/homebrew-php"&gt;https://github.com/josegonzalez/homebrew-php&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Tired of getting to re-compiled all my PHP manually, since I’m using brew for updating my rails app, just googling if the same can be done for my php app — and yes, click on the link for more details&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/21367215827</link><guid>http://azrad.tumblr.com/post/21367215827</guid><pubDate>Thu, 19 Apr 2012 12:20:00 +0800</pubDate><category>php5</category><category>brew</category><category>homebrew</category><category>mac os x</category></item><item><title>webkitbits:

Apple releases Safari 5.1.4 with improved...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_m0sbu2B5In1qzynf0o1_500.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.webkitbits.com/post/19188041243/apple-releases-safari-5-1-4-with-improved" class="tumblr_blog"&gt;webkitbits&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Apple releases Safari 5.1.4 with improved JavaScript performance on OS X Lion (via &lt;a href="http://www.theverge.com/2012/3/12/2864970/apple-safari-5-1-4-update-javascript-bug-fixes"&gt;The Verge&lt;/a&gt;)&lt;/p&gt;&lt;/blockquote&gt;</description><link>http://azrad.tumblr.com/post/19573822741</link><guid>http://azrad.tumblr.com/post/19573822741</guid><pubDate>Mon, 19 Mar 2012 23:17:07 +0800</pubDate></item><item><title>webkitbits:

Introducing Chrome for Android Beta

At last.</title><description>&lt;iframe width="400" height="225" src="http://www.youtube.com/embed/lVjw7n_U37A?wmode=transparent&amp;autohide=1&amp;egm=0&amp;hd=1&amp;iv_load_policy=3&amp;modestbranding=1&amp;rel=0&amp;showinfo=0&amp;showsearch=0" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://www.webkitbits.com/post/17215688364/introducing-chrome-for-android-beta" class="tumblr_blog"&gt;webkitbits&lt;/a&gt;:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;a href="http://" http:&gt;Introducing Chrome for Android Beta&lt;/a&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;At last.&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/18408301161</link><guid>http://azrad.tumblr.com/post/18408301161</guid><pubDate>Tue, 28 Feb 2012 08:48:45 +0800</pubDate></item><item><title>How to install Drush server-wide in less than one minute</title><description>&lt;a href="http://openspring.net/tip/how-to-install-drush-serverwide-in-less-than-one-minute"&gt;How to install Drush server-wide in less than one minute&lt;/a&gt;: &lt;p&gt;in short:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span&gt;sudo wget —quiet -O - &lt;a href="http://ftp.drupal.org/files/projects/drush-7.x-4.4.tar.gz"&gt;http://ftp.drupal.org/files/projects/drush-7.x-4.4.tar.gz&lt;/a&gt; | sudo tar -zxf - -C /usr/local/share&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;sudo drush&lt;/span&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt; enjoy!&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/13541306711</link><guid>http://azrad.tumblr.com/post/13541306711</guid><pubDate>Wed, 30 Nov 2011 18:20:50 +0800</pubDate><category>drupal</category><category>drush</category></item><item><title>Installing PECL uploadprogress Extension</title><description>&lt;a href="http://freestylesystems.co.uk/blog/installing-pecl-uploadprogress-extension-drupal-filefield-30-module"&gt;Installing PECL uploadprogress Extension&lt;/a&gt;: &lt;p&gt;I’m just updated my Drupal copy to version 7 recently and reliaze that I have not installed PECL uploadprogress library. A quick search on google give me the above url.&lt;/p&gt;
&lt;p&gt;In short, just do the following:&lt;/p&gt;
&lt;blockquote&gt;&lt;ol&gt;&lt;li&gt;Download PECL uploadprogress library (&lt;a href="http://pecl.php.net/get/uploadprogress-1.0.3.1.tgz"&gt;uploadprogress-1.0.3.1.tgz&lt;/a&gt;)&lt;/li&gt;
&lt;li&gt;tar -zxvf uploadprogress-1.0.3.1.tgz&lt;/li&gt;
&lt;li&gt;cd uploadprogress-1.0.3.1&lt;/li&gt;
&lt;li&gt;phpize&lt;/li&gt;
&lt;li&gt;./configure&lt;/li&gt;
&lt;li&gt;make&lt;/li&gt;
&lt;li&gt;sudo make install&lt;/li&gt;
&lt;/ol&gt;&lt;/blockquote&gt;
&lt;p&gt;next, you need to update your php.ini file and add the following line:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;extension=uploadprogress.so&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;final step it to restart your apache server and you’re done!&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/13541102025</link><guid>http://azrad.tumblr.com/post/13541102025</guid><pubDate>Wed, 30 Nov 2011 18:06:00 +0800</pubDate><category>drupal</category><category>pecl</category><category>uploadprogress</category></item><item><title>trappedonearth:

Steve Jobs 1955-2011 #SteveJobs #Apple...</title><description>&lt;img src="http://25.media.tumblr.com/tumblr_lsmgu09Mgu1qz4uono1_400.png"/&gt;&lt;br/&gt;&lt;br/&gt;&lt;p&gt;&lt;a href="http://trappedonearth.tumblr.com/post/11086004142"&gt;trappedonearth&lt;/a&gt;:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;strong&gt;Steve Jobs 1955-2011&lt;/strong&gt; #SteveJobs #Apple #RIP&lt;/p&gt;
&lt;p&gt;&lt;em&gt;(Creator unknown. Discovered via @LeoLaporte)&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;</description><link>http://azrad.tumblr.com/post/11086045462</link><guid>http://azrad.tumblr.com/post/11086045462</guid><pubDate>Thu, 06 Oct 2011 10:14:05 +0800</pubDate><category>Apple</category><category>technology</category><category>Steve Jobs</category><category>RIP</category><category>logo</category><category>obituary</category><category>memorial</category></item><item><title>PHP DOCUMENT_ROOT in Windows Servers</title><description>&lt;p&gt;Being a Mac user somehow makes you tend to forget others in Windows world. Recently, one of my app failed to redirect my script to proper url simply because it was not be able to detect &lt;code&gt;$_SERVER['DOCUMENT_ROOT']&lt;/code&gt; variable. I thot I have already fixed this, but unfortunately it is not or my assumptions was wrong. So, being a lazy developer, Googling surely help me and found this solution:&lt;/p&gt;
&lt;blockquote&gt;&lt;code&gt;
&lt;p&gt;// let's make sure the $_SERVER['DOCUMENT_ROOT'] variable is set&lt;/p&gt;
&lt;p&gt;if(!isset($_SERVER['DOCUMENT_ROOT'])){ if(isset($_SERVER['SCRIPT_FILENAME'])){&lt;/p&gt;
&lt;p&gt;$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])));&lt;/p&gt;
&lt;p&gt;}; };&lt;/p&gt;
&lt;p&gt;if(!isset($_SERVER['DOCUMENT_ROOT'])){ if(isset($_SERVER['PATH_TRANSLATED'])){&lt;/p&gt;
&lt;p&gt;$_SERVER['DOCUMENT_ROOT'] = str_replace( '\\', '/', substr(str_replace('\\\\', '\\', $_SERVER['PATH_TRANSLATED']), 0, 0-strlen($_SERVER['PHP_SELF'])));&lt;/p&gt;
&lt;p&gt;}; };&lt;/p&gt;
&lt;p&gt;// $_SERVER['DOCUMENT_ROOT'] is now set - you can use it as usual...&lt;/p&gt;
&lt;/code&gt;&lt;/blockquote&gt;
&lt;p&gt;Thanks to Fyneworks for the article – http://fyneworks.blogspot.com/2007/08/php-documentroot-in-iis-windows-servers.html&lt;/p&gt;</description><link>http://azrad.tumblr.com/post/10794209452</link><guid>http://azrad.tumblr.com/post/10794209452</guid><pubDate>Thu, 29 Sep 2011 11:09:14 +0800</pubDate><category>php</category><category>DOCUMENT_ROOT</category><category>PATH_TRANSLATED</category><category>$_SERVER</category></item></channel></rss>
