<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Code in my Bug! &#187; programming</title>
	<atom:link href="http://projectbee.org/blog/archive/category/programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://projectbee.org/blog</link>
	<description>Bipin&#039;s experiments with life, society, programming, hacking, &#38; other stuff</description>
	<lastBuildDate>Mon, 23 Jan 2012 18:49:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Download PHP tidy extension for Mac OS X</title>
		<link>http://projectbee.org/blog/archive/download-php-tidy-extension-for-mac-os-x/</link>
		<comments>http://projectbee.org/blog/archive/download-php-tidy-extension-for-mac-os-x/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 18:47:42 +0000</pubDate>
		<dc:creator>Bipin Upadhyay</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://projectbee.org/blog/?p=227</guid>
		<description><![CDATA[Yeah, I bought a Macbook Air I cannot deny that it&#8217;s an awesome device and all that, but I&#8217;m still getting used to a new OS. The major work&#8217;s rediscovering the right tools and, of course, learning OS X&#8217;s keyboard shortcuts. Thankfully, it seems like a nice OS and all the work seems worth it. [...]]]></description>
			<content:encoded><![CDATA[<p>Yeah, I bought a Macbook Air <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I cannot deny that it&#8217;s an awesome device and all that, but I&#8217;m still getting used to a new OS. The major work&#8217;s rediscovering the right tools and, of course, learning OS X&#8217;s keyboard shortcuts. Thankfully, it seems like a nice OS and all the work seems worth it.</p>
<p>&nbsp;</p>
<div id="attachment_229" class="wp-caption alignleft" style="width: 355px"><a href="http://www.flickr.com/photos/mind-hacker/2726423319/lightbox/" target="_blank"><img class=" wp-image-229" style="margin-right: 18px;" title="by http://www.flickr.com/photos/mind-hacker/2726423319/lightbox/" src="http://projectbee.org/blog/wp-content/uploads/2012/01/2726423319_3034b606d1.jpg" alt="Friggin' spinning wheel" width="345" height="392" /></a><p class="wp-caption-text">by http://www.flickr.com/photos/mind-hacker/2726423319/lightbox/</p></div>
<p>That said, I now have a technology startup and cannot afford to just keep on &#8216;learning&#8217;. And that&#8217;s why small problems become big issues. All I needed was <a href="http://pecl.php.net/package/tidy" target="_blank"><strong>PHP-tidy</strong></a> to get on with life. Little did I know that it&#8217;d take up half of my day. So I&#8217;m putting it up here for people to download.</p>
<p>As most people, I got <a href="http://www.mamp.info/en/" target="_blank">MAMP</a> to avoid unnecessary complications and get on with &#8220;the code that matters to me&#8221;. MAMP is pre-packaged Apache-MySQL-PHP stack for Mac. My beef with the project is that they seem to be focusing on things that don&#8217;t really matter a lot to the target audience, like shiny-gui interface to configure document root, specify ports etc.. However, they seem to ignore few major bugs which seem to date around 2009.</p>
<ol>
<li>They do not package tidy extension, even though there have been requests in the forum.</li>
<li>Their &#8220;pear.conf&#8221; configuration file&#8217;s broken, due to which neither pear nor pecl binary works, so tidy installation using pecl didn&#8217;t work either. The fix is a simple edit to the php_dir param though.</li>
<li>Sadly, pecl still fails due to some issue with phpize.</li>
<li>One solution is to compile PHP with tidy. However, <a href="http://lucasforge.bmeme.com/2010/07/how-enable-the-php-tidy-extension-for-mamp/" target="_blank">there apparently is (or was) some bug with tidy</a>, so I decided to avoid it and look around a little more.</li>
<li>Then, I found <a href="http://allensservices.com/php-tidy-on-mamp" target="_blank">this post</a> that recommends using pre-compiled php-tidy binary that comes bundled along with Zend Studio IDE. I decided to check it out, and thankfully, it worked.</li>
</ol>
<p>Sigh! Such a crazy way to solve a simple problem.</p>
<p>Anyways, since tidy is an open source project, I figured it may not be illegal to put the binary up for download. (Zend Studio is NOT free.)</p>
<h3>You may <a href="https://dl.dropbox.com/u/14915270/tidy.so">download php tidy for OS X (tested on Lion)  from my public Dropbox folder</a>.</h3>
Similar Posts:<ul><li><a href="http://projectbee.org/blog/archive/drive-by-download-where-network-security-meets-webappsec/" rel="bookmark" title="November 2, 2007">Drive-by Download: Where Network Security Meets WebAppSec</a></li>

<li><a href="http://projectbee.org/blog/archive/apache-mysqlphp-installation-configuration-tutorial-for-beginners/" rel="bookmark" title="February 25, 2006">Apache-MySQLPHP Installation &#38; Configuration Tutorial for Beginners :)</a></li>

<li><a href="http://projectbee.org/blog/archive/grabbing-video-from-youtube/" rel="bookmark" title="January 6, 2007">Grabbing Video from Youtube.</a></li>

<li><a href="http://projectbee.org/blog/archive/the-web-is-broken/" rel="bookmark" title="October 12, 2007">The Web is Broken</a></li>

<li><a href="http://projectbee.org/blog/archive/rediffmail-bug-anyone-interested/" rel="bookmark" title="May 19, 2007">Rediffmail Bug. Anyone Interested?</a></li>
</ul><!-- Similar Posts took 4.961 ms -->]]></content:encoded>
			<wfw:commentRss>http://projectbee.org/blog/archive/download-php-tidy-extension-for-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP protocol and other stuff that power the web</title>
		<link>http://projectbee.org/blog/archive/http-protocol/</link>
		<comments>http://projectbee.org/blog/archive/http-protocol/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 10:38:02 +0000</pubDate>
		<dc:creator>Bipin Upadhyay</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[webappsec]]></category>

		<guid isPermaLink="false">http://projectbee.org/blog/?p=212</guid>
		<description><![CDATA[Here&#8217;s a presentation that I&#8217;d delivered at a null Mumbai Chapter meet. It&#8217;d received pretty good response, so putting it up here as well Similar Posts:SecurityCamp is here, where are you? The Web is Broken Reviving OWASP Bangalore Chapter OWASP AppSec Conf Delhi &#8211; Day 1 SecurCamp and back.]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a presentation that I&#8217;d delivered at a null Mumbai Chapter meet. It&#8217;d received pretty good response, so putting it up here as well</p>
<object type='application/x-shockwave-flash' wmode='opaque' data='http://static.slideshare.net/swf/ssplayer2.swf?id=5077640&doc=httpprotocolandotherstuff-100828152113-phpapp02' width='811' height='665'><param name='movie' value='http://static.slideshare.net/swf/ssplayer2.swf?id=5077640&doc=httpprotocolandotherstuff-100828152113-phpapp02' /><param name='allowFullScreen' value='true' /></object>
Similar Posts:<ul><li><a href="http://projectbee.org/blog/archive/securitycamp-is-here-where-are-you/" rel="bookmark" title="June 25, 2008">SecurityCamp is here, where are you?</a></li>

<li><a href="http://projectbee.org/blog/archive/the-web-is-broken/" rel="bookmark" title="October 12, 2007">The Web is Broken</a></li>

<li><a href="http://projectbee.org/blog/archive/reviving-owasp-bangalore-chapter/" rel="bookmark" title="June 29, 2008">Reviving OWASP Bangalore Chapter</a></li>

<li><a href="http://projectbee.org/blog/archive/owasp-appsec-conf-delhi-day-1/" rel="bookmark" title="August 21, 2008">OWASP AppSec Conf Delhi &#8211; Day 1</a></li>

<li><a href="http://projectbee.org/blog/archive/securcamp-and-back/" rel="bookmark" title="July 12, 2008">SecurCamp and back.</a></li>
</ul><!-- Similar Posts took 4.568 ms -->]]></content:encoded>
			<wfw:commentRss>http://projectbee.org/blog/archive/http-protocol/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Proposal for a new Array Syntax in PHP</title>
		<link>http://projectbee.org/blog/archive/proposal-for-a-new-array-syntax-in-php/</link>
		<comments>http://projectbee.org/blog/archive/proposal-for-a-new-array-syntax-in-php/#comments</comments>
		<pubDate>Sun, 13 Jan 2008 15:04:24 +0000</pubDate>
		<dc:creator>Bipin 3 Upadhyay</dc:creator>
				<category><![CDATA[news]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[education]]></category>
		<category><![CDATA[rasmus]]></category>

		<guid isPermaLink="false">http://codeinmybug.wordpress.com/2008/01/13/proposal-for-a-new-array-syntax-in-php/</guid>
		<description><![CDATA[A new array syntax has been proposed (for quite some time) for defining arrays in PHP. Currently, we use array() construct to create an array. Some examples could be: $myArray = array(1, 2, 3, 4, 5); $yourArray = array(1 =&#62; &#8220;one&#8221;, 2 =&#62; &#8220;two&#8221;, &#8220;three&#8221;); $herArray = array(1, 2, 3, array(4 =&#62; &#8220;four&#8221;, &#8220;five&#8221;)); The [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright" style="float: right;" src="http://projectbee.org/blog/wp-content/uploads/2008/01/php.gif" alt="PHP Logo" width="129" height="72" align="right" />A new array syntax has been proposed (for quite some time) for defining arrays in PHP. Currently, we use <a href="http://in2.php.net/manual/en/function.array.php">array()</a> construct to create an array. Some examples could be:</p>
<blockquote><p><em>$myArray = array(1, 2, 3, 4, 5);<br />
$yourArray = array(1 =&gt; &#8220;one&#8221;, 2 =&gt; &#8220;two&#8221;, &#8220;three&#8221;);<br />
$herArray = array(1, 2, 3, array(4 =&gt; &#8220;four&#8221;, &#8220;five&#8221;));</em></p></blockquote>
<p>The proposal is to use square brackets ( <strong>[ ] </strong>) to define an array. If passed, we would be able rewrite the above examples as:</p>
<blockquote><p><em><br />
$myArray = [1, 2, 3, 4, 5];<br />
$yourArray = [1 =&gt; "one", 2 =&gt; "two", "three");<br />
$herArray = [1, 2, 3, [4 =&gt; "four", "five"]];</em></p></blockquote>
<p>There&#8217;s a good deal of discussion going on in the internal mailing list with almost equal number of people voting &#8220;for&#8221; and &#8220;against&#8221; it. <a href="http://aspn.activestate.com/ASPN/Mail/Message/php-Dev/3598121">Rasmus, isn&#8217;t not very supportive, yet has voted for the new proposal</a>.</p>
<p>To be pretty honest, I am still not very sure if it&#8217;s going to be worth the trade-offs.<br />
Anyhoo! Let&#8217;s wait and watch. <img src='http://projectbee.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
Similar Posts:<ul><li><a href="http://projectbee.org/blog/archive/reviving-owasp-bangalore-chapter/" rel="bookmark" title="June 29, 2008">Reviving OWASP Bangalore Chapter</a></li>

<li><a href="http://projectbee.org/blog/archive/how-to-implementing-shindig/" rel="bookmark" title="September 30, 2008">[How To] Implementing Shindig.</a></li>

<li><a href="http://projectbee.org/blog/archive/what-a-new-year-gift/" rel="bookmark" title="January 5, 2008">What a new year Gift! :)</a></li>

<li><a href="http://projectbee.org/blog/archive/no-more-lectures-now/" rel="bookmark" title="July 26, 2008">No more lectures now&#8230;</a></li>

<li><a href="http://projectbee.org/blog/archive/owasp-appsec-conf-delhi-day-2-and-more/" rel="bookmark" title="September 4, 2008">OWASP AppSec Conf Delhi &#8211; Day 2; and more</a></li>
</ul><!-- Similar Posts took 4.521 ms -->]]></content:encoded>
			<wfw:commentRss>http://projectbee.org/blog/archive/proposal-for-a-new-array-syntax-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
