<?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>Davey Shafik &#187; java</title>
	<atom:link href="http://daveyshafik.com/archives/tag/java/feed" rel="self" type="application/rss+xml" />
	<link>http://daveyshafik.com</link>
	<description>As close to my brain as you can safely get...</description>
	<lastBuildDate>Tue, 02 Feb 2010 05:48:39 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Fixing ZDE 5.5 in Snow Leopard</title>
		<link>http://daveyshafik.com/archives/721-fixing-zde-5-5-in-snow-leopard.html</link>
		<comments>http://daveyshafik.com/archives/721-fixing-zde-5-5-in-snow-leopard.html#comments</comments>
		<pubDate>Mon, 31 Aug 2009 03:01:50 +0000</pubDate>
		<dc:creator>Davey Shafik</dc:creator>
				<category><![CDATA[tagged]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[zde]]></category>
		<category><![CDATA[zde 5.5]]></category>
		<category><![CDATA[zend studio]]></category>
		<category><![CDATA[zend studio 5.5]]></category>

		<guid isPermaLink="false">http://daveyshafik.com/?p=721</guid>
		<description><![CDATA[<p>If you are still using Zend Studio 5.5, and recently upgrade to Snow Leopard, you will have spotted pretty quickly there is a pretty severe display bug when selecting text.</p>
<p>The reason for this, is that Snow Leopard only ships with Java 1.6 and 1.3 (wtf?)</p>
<pre class="brush: sh">
$ ls -al
total 47
drwxr-xr-x  12 root   wheel  408 Aug 30 22:08 .
drwxr-xr-x  11 root   wheel  374 Aug 29 10:27 ..
lrwxr-xr-x   1 root   wheel    5 Aug 29 10:26</pre><p>…</p>]]></description>
			<content:encoded><![CDATA[<p>If you are still using Zend Studio 5.5, and recently upgrade to Snow Leopard, you will have spotted pretty quickly there is a pretty severe display bug when selecting text.</p>
<p>The reason for this, is that Snow Leopard only ships with Java 1.6 and 1.3 (wtf?)</p>
<pre class="brush: sh">
$ ls -al
total 47
drwxr-xr-x  12 root   wheel  408 Aug 30 22:08 .
drwxr-xr-x  11 root   wheel  374 Aug 29 10:27 ..
lrwxr-xr-x   1 root   wheel    5 Aug 29 10:26 1.3 → 1.3.1
drwxr-xr-x   3 root   wheel  102 Jul 20 19:35 1.3.1
lrwxr-xr-x   1 root   wheel   10 Aug 29 10:26 1.5 → CurrentJDK
lrwxr-xr-x   1 root   wheel   10 Aug 29 10:26 1.5.0 → CurrentJDK
lrwxr-xr-x   1 root   wheel    5 Aug 29 10:26 1.6 → 1.6.0
drwxr-xr-x   7 root   wheel  238 Aug 29 10:26 1.6.0
drwxr-xr-x   8 root   wheel  272 Aug 29 10:27 A
lrwxr-xr-x   1 root   wheel    1 Aug 29 10:27 Current → A
lrwxr-xr-x   1 root   wheel    3 Aug 29 10:26 CurrentJDK → 1.6
</pre>
<p>As you can see, except for the 1.3 JDK, everything else symlinks to 1.6.0. Now, ZDE will not run with 1.3, and is broken in 1.6, so how do you fix this?</p>
<p>The answer, can be found here: <a href="http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard">http://wiki.oneswarm.org/index.php/OS_X_10.6_Snow_Leopard</a></p>
<p>I am replicating it here, as it looks like it&#8217;ll be a temporary problem for them and is likely to disappear.</p>
<p><strong>Update (9/13/2009):</strong> See <a href="http://chxor.chxo.com/post/183013153/installing-java-1-5-on-snow-leopard">this post</a> for details on getting the Java 1.5 binaries from Apple themselves.</p>
<p>It essentially comes down to this: Grab the Java 1.5 JDK from Leopard (original) and then tell OSX to use the 32bit version by default.</p>
<p>This is all done through the Terminal.</p>
<p>So, first, grab the 1.5.0 leopard tarball and unpack (if the link below stops working, <a href="/contact-me">contact me</a> for a mirror):</p>
<pre class="brush: plain">
cd /tmp/
wget http://www.cs.washington.edu/homes/isdal/snow_leopard_workaround/java.1.5.0-leopard.tar.gz
tar -xvzf java.1.5.0-leopard.tar.gz
</pre>
<p>Next, move the folder to the standard JVM location on OSX (this will require your user password):</p>
<pre class="brush: sh">
sudo mv 1.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0-leopard
</pre>
<p>Then remove the current 1.5.0 symlink and point a new one to our new <code>1.5.0-leopard</code> directory.</p>
<pre class="brush: sh">
cd /System/Library/Frameworks/JavaVM.framework/Versions/
sudo rm 1.5.0
sudo ln -s 1.5.0-leopard 1.5.0
</pre>
<p>Next (and this isn&#8217;t in the original document), set permissions:</p>
<pre class="brush: sh">
sudo chown -R root:wheel ./1.5.0-leopard
</pre>
<p>Finally, open up the <code>Java Preferences</code> app in <code>/Applications/Utilities</code>, and in the Java Applications section, drag the &#8220;J2S2 5.0        32bit&#8221; version to the top.</p>
<p>After doing all this, restart ZDE and the selection bug is gone!</p>
<p>- Davey</p>
]]></content:encoded>
			<wfw:commentRss>http://daveyshafik.com/archives/721-fixing-zde-5-5-in-snow-leopard.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>ZDE 5.5 On OSX</title>
		<link>http://daveyshafik.com/archives/717-zde-5-5-on-osx.html</link>
		<comments>http://daveyshafik.com/archives/717-zde-5-5-on-osx.html#comments</comments>
		<pubDate>Fri, 28 Aug 2009 17:06:52 +0000</pubDate>
		<dc:creator>Davey Shafik</dc:creator>
				<category><![CDATA[tagged]]></category>
		<category><![CDATA[crashes]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[zde]]></category>
		<category><![CDATA[zde 5.5]]></category>
		<category><![CDATA[zend]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://daveyshafik.com/?p=717</guid>
		<description><![CDATA[<p>Even though I am in the process of trying to replace it, Zend Studio 5.5 is still my day-to-day IDE for development. However, on OSX Leopard, it has seemed for a while, like the app was decaying — growing progressively crashier the more I used it. Literally, to the point where I could use it.</p>
<p>I think, however, I have solved the issue.</p>
<p>Simply edit <code>/Applications/Zend/ZendStudio-5.5.1/bin/runStudio_mac.sh</code> and make the following change:</p>
<pre class="brush: sh">
java -Xms16m -Xmx256m -cp ZendIDE.jar:MRJToolkitStubs.zip:sftp.jar:axis.jar:commons-discovery-0.2.jar:commons-logging-1.0.4.jar:javaxzombie.jar:jaxrpc.jar:saaj.jar:wsdl4j-1.5.1.jar:jhall.jar:../docs/help.zip com.zend.ide.desktop.Main
</pre><p>…</p>]]></description>
			<content:encoded><![CDATA[<p>Even though I am in the process of trying to replace it, Zend Studio 5.5 is still my day-to-day IDE for development. However, on OSX Leopard, it has seemed for a while, like the app was decaying — growing progressively crashier the more I used it. Literally, to the point where I could use it.</p>
<p>I think, however, I have solved the issue.</p>
<p>Simply edit <code>/Applications/Zend/ZendStudio-5.5.1/bin/runStudio_mac.sh</code> and make the following change:</p>
<pre class="brush: sh">
java -Xms16m -Xmx256m -cp ZendIDE.jar:MRJToolkitStubs.zip:sftp.jar:axis.jar:commons-discovery-0.2.jar:commons-logging-1.0.4.jar:javaxzombie.jar:jaxrpc.jar:saaj.jar:wsdl4j-1.5.1.jar:jhall.jar:../docs/help.zip com.zend.ide.desktop.Main
</pre>
<p>becomes:</p>
<pre class="brush: sh">
/System/Library/Frameworks/JavaVM.framework/Versions/1.5/Home/bin/java -Xms16m -Xmx256m -cp ZendIDE.jar:MRJToolkitStubs.zip:sftp.jar:axis.jar:commons-discovery-0.2.jar:commons-logging-1.0.4.jar:javaxzombie.jar:jaxrpc.jar:saaj.jar:wsdl4j-1.5.1.jar:jhall.jar:../docs/help.zip com.zend.ide.desktop.Main
</pre>
<p>This just explicitly makes it use JVM 1.5, which is, after all, what it was built for.</p>
<p>Once I did this, it became snappy again, and seems to be far less crash-prone, hurrah!</p>
<p>- Davey</p>
]]></content:encoded>
			<wfw:commentRss>http://daveyshafik.com/archives/717-zde-5-5-on-osx.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Making the case for PHP</title>
		<link>http://daveyshafik.com/archives/640-making-the-case-for-php.html</link>
		<comments>http://daveyshafik.com/archives/640-making-the-case-for-php.html#comments</comments>
		<pubDate>Sat, 06 Jun 2009 01:54:46 +0000</pubDate>
		<dc:creator>Davey Shafik</dc:creator>
				<category><![CDATA[tagged]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[business]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[language]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[projects]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://daveyshafik.com/?p=640</guid>
		<description><![CDATA[<p>One of the biggest decisions you can make for any project is the environment it which the project will be written.</p>
<p>Most developers mistake the word environment for the word &#8220;technology&#8221; or &#8220;software&#8221;. For example, you develop in a &#8220;JSP environment&#8221;, or a &#8220;LAMP environment&#8221;. This is a crucial mistake that is made time and time again, and unfortunately, it hurts companies because the decision makers either make the same mistake, or they listen to those making the mistake.</p>
<p>I&#8217;ve…</p>]]></description>
			<content:encoded><![CDATA[<p>One of the biggest decisions you can make for any project is the environment it which the project will be written.</p>
<p>Most developers mistake the word environment for the word &#8220;technology&#8221; or &#8220;software&#8221;. For example, you develop in a &#8220;JSP environment&#8221;, or a &#8220;LAMP environment&#8221;. This is a crucial mistake that is made time and time again, and unfortunately, it hurts companies because the decision makers either make the same mistake, or they listen to those making the mistake.</p>
<p>I&#8217;ve said numerous times, that you can use any language to do anything. Yes, there are practical limits, using C to write a dynamic website isn&#8217;t a great idea, nor is using PHP for password cracking. Each language has it&#8217;s own strengths and weaknesses; good developers however, know what these are and work with their strengths and work around their weaknesses. This post isn&#8217;t going to focus much on languages; I figure everybody reading has already chosen PHP and knows why.</p>
<p>What I will say is this: Ruby, Python, PHP, Perl, Java and .NET all bring the same capabilities to the table (some things are easier in some, and some more difficult in others). You can create any solution you want in each of these languages, in an efficient, well thought out, well developed way. Yahoo! could be written in Python. How do we know this? because Google uses it. Microsoft uses .NET for it&#8217;s web presence, and while you might not like to use it, it still stands up to more stress than most of the websites on the internet.</p>
<p>With this in mind, I then would say that the language capabilities themselves, are the <strong>least</strong> important factor in choosing your environment.</p>
<p>This then brings me neatly to what else that environment encompasses. These, to me, fall into three categories. People, knowledge and penetration.</p>
<h3>Access to People</h3>
<p>To put it bluntly, if you can&#8217;t find the people to write your code, you&#8217;re screwed. While you may know what you&#8217;re doing, and you have enough people now: your team will <em>need</em> to grow. If you can&#8217;t find people around you to hire, then what? </p>
<p>There are estimates that for every 100 PHP developers, there are 42 Perl developers, there are 12 Python developers and 4 Ruby developers. (see: <a href="http://www.odinjobs.com/blogs/careers/entry/how_many_perl_php_python">here</a>)</p>
<p>Some will say that this is because there is a lot of <strong>bad</strong> PHP developers. I will agree to a point, but that point is that there are just so damn many, that there are still more <strong>great</strong> developers to pick from than with other languages.</p>
<h3>Access to Knowledge</h3>
<p>While this one is more subjective, I believe that the sheer number of PHP developers generate far more useful knowledge from which to learn, cherry pick ideas and utilize them. Add to that the extensive number of books, and our excellent php|architect magazine; as well as the training and teachings provided by MTA, Zend and ibuildings, we have more going for us than most every other language with, I think, the exception of Java in terms of professionally backed learning.</p>
<h3>Market Penetration</h3>
<p>Simply put, the availability of PHP as a platform is there from the cheapest virtualhost, to the most expensive dedicated systems. It has gained wide acceptance from smaller companies, because it is cheap and reliable, and from enterprise companies such as IBM, Oracle and even Microsoft because they see that the ability is there for PHP to operate in that space and a huge number of developers willing to make that happen.</p>
<h3>Conclusion</h3>
<p>No other language can claim this trifecta, sure, there are a lot of .NET and Java developers, but a lot that goes on happens behind closed doors in big enterprises, and the knowledge is not shared. And while this isn&#8217;t true of Python, or Ruby, they lack in numbers and knowledge comparatively. This is why I choose PHP.</p>
<p>- Davey</p>
]]></content:encoded>
			<wfw:commentRss>http://daveyshafik.com/archives/640-making-the-case-for-php.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Detailed IDE Reviews: How do you want to do this?</title>
		<link>http://daveyshafik.com/archives/557-detailed-ide-reviews.html</link>
		<comments>http://daveyshafik.com/archives/557-detailed-ide-reviews.html#comments</comments>
		<pubDate>Tue, 17 Mar 2009 00:18:08 +0000</pubDate>
		<dc:creator>Davey Shafik</dc:creator>
				<category><![CDATA[tagged]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[ide]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[komodo]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xul]]></category>
		<category><![CDATA[zend studio]]></category>

		<guid isPermaLink="false">http://pixelated-dreams.com/?p=557</guid>
		<description><![CDATA[<p>So, dear readers, I&#8217;m doing the IDE reviews for all of you guys and there&#8217;s two ways I can proceed:</p>
<p>I can take each of the requirements and do a single post per requirement with a writeup about it in detail for each of the 4 IDEs — then I was thinking for each new IDE I try, I can hit those same points. <strong>Or</strong> I can write up specifically on a single editor at a time, covering all of…</p>]]></description>
			<content:encoded><![CDATA[<p>So, dear readers, I&#8217;m doing the IDE reviews for all of you guys and there&#8217;s two ways I can proceed:</p>
<p>I can take each of the requirements and do a single post per requirement with a writeup about it in detail for each of the 4 IDEs — then I was thinking for each new IDE I try, I can hit those same points. <strong>Or</strong> I can write up specifically on a single editor at a time, covering all of the requirements and I will also then review anything else about the editor etc.</p>
<p>I&#8217;d like to do a single post on the cross-platform technologies in play (Java Vs XUL) and on the Eclipse and Netbeans platforms (outside of any PHP plugins), but these fall outside of the scope of the original intention of reviewing the IDEs.</p>
<p>There are several incarnations of Eclipse I would like to review: Zend Studio for Eclipse, Aptana and PHPEclipse, I think perhaps I need a comparison table for Eclipse solutions on their own <img src='http://daveyshafik.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Thoughts?</p>
<p>- Davey</p>
]]></content:encoded>
			<wfw:commentRss>http://daveyshafik.com/archives/557-detailed-ide-reviews.html/feed</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>
