<?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>java Archives - Sky&#039;s Blog</title>
	<atom:link href="https://blog.red7.com/tag/java/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.red7.com/tag/java/</link>
	<description>Communicating in a networked world</description>
	<lastBuildDate>Tue, 03 Jan 2017 20:45:46 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://blog.red7.com/wp-content/uploads/2018/01/skyhi-wind-icon-256x256-120x120.png</url>
	<title>java Archives - Sky&#039;s Blog</title>
	<link>https://blog.red7.com/tag/java/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Slicehost- Tomcat installation on a tiny virtual server</title>
		<link>https://blog.red7.com/slicehost-tomcat-installation-on-a-tiny-virtual-server/</link>
					<comments>https://blog.red7.com/slicehost-tomcat-installation-on-a-tiny-virtual-server/#respond</comments>
		
		<dc:creator><![CDATA[sky]]></dc:creator>
		<pubDate>Mon, 07 Sep 2009 16:00:48 +0000</pubDate>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Geeks only!]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JSP]]></category>
		<category><![CDATA[Slicehost]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[virtual host]]></category>
		<category><![CDATA[virtual server]]></category>
		<category><![CDATA[VPS]]></category>
		<guid isPermaLink="false">http://sky.dlfound.org/?p=1879</guid>

					<description><![CDATA[<p>Geek alert! This article is for Slicehost geeks only. Talk about playing on the edge, I almost fell off this time. I have eight slices (virtual servers, that is) on Slicehost (which is now owned by Rackspace) and believe me they are tiny![1] But they can serve low-volume to medium-volume web sites pretty well. For [&#8230;]</p>
<p>The post <a href="https://blog.red7.com/slicehost-tomcat-installation-on-a-tiny-virtual-server/">Slicehost- Tomcat installation on a tiny virtual server</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><span style="color: #800000;"><em><img decoding="async" class="size-full wp-image-583 alignleft" style="border: 0pt none; margin: 2px 12px;" title="Slicehost" src="/wp-content/uploads/2009/01/picture-2.png" alt="Slicehost" width="40" height="45" /> <span style="color: #ff9900;">Geek alert! This article is for <strong>Slicehost</strong> geeks only.</span></em></span></p>
<p>Talk about playing on the edge, I almost fell off this time. I have eight <em>slices</em> (virtual servers, that is) on <a href="http://slicehost.com/" target="_blank">Slicehost</a> (which is now owned by Rackspace) and believe me they are tiny!<sup>[1]</sup> But they can serve low-volume to medium-volume web sites pretty well. For instance, <a href="http://www.shapingyouth.org/" target="_blank">Shaping Youth</a> (several thousand visitors a day) and <a href="http://girlshorseclub.com/" target="_blank">GirlsHorseClub</a> are on these little servers and they serve up pretty rapidly.<sup>[2]</sup> Nice thing about Slicehost is that any host can be scaled up from the tiny size to 16x that size, and because it’s cloud computing, you can also bring up multiple instances of any server and have them share load. This allows me to implement the traditional three-tiered architecture (web/application/database) quite well without having to worry about whether my servers will be able to handle the load because I can scale ’em up whenever I need to.</p>
<p>But, the catch is that when you start with the tiniest slice (256MB RAM) you really have to fine-tune your operating system and applications in order to get good performance out of them.<span id="more-1879"></span></p>
<p>This has led me to some fun discoveries about 1) how to make Apache work in a really tight space; 2) how to add additional web serving using NGINX (engine-X); 3) how to run MySQL in less space; and finally 4) how to use Java and Tomcat wedged into a non-existent memory slice.</p>
<p>Today’s lesson for me was installing Tomcat 5.5 on Slicehost. I started by reading <a href="http://www.mkyong.com/tomcat/how-to-install-tomcat-in-ubuntu/" target="_blank">How to Install Tomcat on Ubuntu</a> in the mkyong blog. Not bad at all. The essence is to first find out what version of Tomcat is available on your slice:</p>
<blockquote><p>sudo apt–cache search tomcat</p></blockquote>
<p>Then install that version and the admin app for it:</p>
<blockquote><p>apt–get ––fix–missing install tomcat5.5<br />
apt–get ––fix–missing install tomcat5.5-webapps<br />
apt–get ––fix–missing install tomcat5.5-admin</p></blockquote>
<p>Then I like to have /usr/local/tomcat defined (like on all my other servers):</p>
<blockquote><p>ln –s /usr/share/tomcat5.5/server/ /usr/local/tomcat</p></blockquote>
<p>That was about all it took. It serves by default on port 8180 &#8211; and the admin app was there and ready to go. My next step was to port a Java app that I have been running on bigger servers over to this little server. That actually worked quite well, requiring about 6 hours to port, recompile (to eliminate a few warnings) and test.</p>
<hr class="hr_dashed" />[1] Six of them are 256MB (RAM) and two are 512MB.</p>
<p>[2] These two slices actually had to be boosted to 512MB recently in order to handle anticipated high traffic. But I can reduce their size after the stress-out period passes.</p>
<p>The post <a href="https://blog.red7.com/slicehost-tomcat-installation-on-a-tiny-virtual-server/">Slicehost- Tomcat installation on a tiny virtual server</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.red7.com/slicehost-tomcat-installation-on-a-tiny-virtual-server/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1879</post-id>	</item>
		<item>
		<title>MySQL and Java &#8211; two birds with one stone</title>
		<link>https://blog.red7.com/mysql-and-java-two-birds-with-one-stone/</link>
					<comments>https://blog.red7.com/mysql-and-java-two-birds-with-one-stone/#respond</comments>
		
		<dc:creator><![CDATA[sky]]></dc:creator>
		<pubDate>Wed, 22 Apr 2009 08:16:47 +0000</pubDate>
				<category><![CDATA[Software and online tools]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[oracle]]></category>
		<category><![CDATA[sun microsystems]]></category>
		<guid isPermaLink="false">http://sky.dlfound.org/?p=1248</guid>

					<description><![CDATA[<p>The old phrase “killing two birds with one stone” &#8211; yeah it sounds impossible when you think about it realistically &#8211; ka-bing, ka-bing, there they go. But Oracle may succeed in killing off both Java and MySQL after its acquisition of Sun Microsystems. Or at least sidelining both into stagnation in favor of big-ticket licensed [&#8230;]</p>
<p>The post <a href="https://blog.red7.com/mysql-and-java-two-birds-with-one-stone/">MySQL and Java &#8211; two birds with one stone</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignleft size-full wp-image-1126" style="border: 0pt none; margin-top: 2px; margin-bottom: 2px;" title="Java" src="/wp-content/uploads/2009/04/java.jpg" alt="Java" width="96" height="96" />The old phrase “killing two birds with one stone” &#8211; yeah it sounds impossible when you think about it realistically &#8211; ka-bing, ka-bing, there they go. But Oracle may succeed in killing off both Java and MySQL after its acquisition of Sun Microsystems. Or at least sidelining both into stagnation in favor of big-ticket licensed Oracle products.</p>
<p>In 1999 to 2001 I was responsible for purchasing Oracle licenses for a large organization with large plans. We paid hundreds of thousands of dollars (US) for initial and continuing licenses on Oracle database software. The stuff was industrial-strength. But since then I’ve used (the free) MySQL dozens of times for small-to-medium size sites. And several systems I’ve used or designed have been Java-based as well. The availability of these free tools is critical to the existence of millions of web sites around the world.<span id="more-1248"></span></p>
<p>My guess is that we will see the current versions of both Java and MySQL continue to be available free-of-charge, but that at some point future versions of each may be offered only under paid licenses, though I predict that these licenses will <em>not</em> be rapaciously priced. And I think this is more likely for MySQL than for Java. <a href="http://www.linux-mag.com/cache/7309/1.html" target="_blank">Some others agree with me</a> that Oracle will treat MySQL as an entry-level system and use various methods to get developers to migrate to Oracle systems over time.</p>
<p>In terms of Java, well Java’s direction is governed by a user-centered community &#8211; the <a href="http://jcp.org/" target="_blank">Java Community Process</a>. Java is open source. We don’t know whether Oracle will (continue to) support this open source process. Oracle already has invested a lot in development using Java and strongly supported it while it was championed by Sun. So the consensus is that they won’t kill Java. And it seems to me that <a href="http://itmanagement.earthweb.com/osrc/article.php/3816411/Does-Oracle-Sun-Help-Open-Source.htm" target="_blank">people are cautiously optimistic</a> about the potential for Oracle’s continued support of Java.</p>
<p>Let’s see how this plays out.</p>
<p>The post <a href="https://blog.red7.com/mysql-and-java-two-birds-with-one-stone/">MySQL and Java &#8211; two birds with one stone</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.red7.com/mysql-and-java-two-birds-with-one-stone/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1248</post-id>	</item>
		<item>
		<title>Did PHP kill the Java radio star?</title>
		<link>https://blog.red7.com/did-php-kill-the-java-radio-star/</link>
					<comments>https://blog.red7.com/did-php-kill-the-java-radio-star/#respond</comments>
		
		<dc:creator><![CDATA[sky]]></dc:creator>
		<pubDate>Fri, 10 Apr 2009 18:22:46 +0000</pubDate>
				<category><![CDATA[Software and online tools]]></category>
		<category><![CDATA[Technology and geeky stuff]]></category>
		<category><![CDATA[google apps]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[Slicehost]]></category>
		<category><![CDATA[web applications]]></category>
		<category><![CDATA[web apps]]></category>
		<category><![CDATA[zend]]></category>
		<guid isPermaLink="false">http://sky.dlfound.org/?p=1116</guid>

					<description><![CDATA[<p>Java for big honkin' apps and PHP for quick-and-dirty little apps? But maybe PHP has been able to displace Java from its dominance of the large web-app world...</p>
<p>The post <a href="https://blog.red7.com/did-php-kill-the-java-radio-star/">Did PHP kill the Java radio star?</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img decoding="async" class="alignleft size-full wp-image-1126" title="Java" src="/wp-content/uploads/2009/04/java.jpg" alt="Java" width="96" height="96" /><img loading="lazy" decoding="async" class="alignleft size-full wp-image-1127" style="border: 0pt none; margin: 2px 12px;" title="PHP" src="/wp-content/uploads/2009/04/php.jpg" alt="PHP" width="96" height="96" />Responding to Infoworld <em><a href="http://www.infoworld.com/d/open-source/did-php-kill-java-radio-star-764" target="_blank">Did PHP kill the Java radio star?</a></em></p>
<p><a href="http://news.cnet.com/8301-13846_3-10213673-62.html" target="_blank">Zend&#8217;s CEO, Andi Gutmans, claims that PHP is disrupting Java</a>. Meaning that PHP has gotten a significant toehold and is dislodging Java from its position as the granddaddy of server-side web applications frameworks[1]. I take the word <em>disrupting</em> in its modern sense of <em>disruptive technology</em> &#8211; a technology that significantly differs from the standard paradigm and whose effect would have been hard to predict, based on the “rules” of the standard paradigm.</p>
<p>I am a long-time Java-user (9 years) and I agree that PHP is a real contender in the web applications sphere&#8230; and would like to make some additional observations.<span id="more-1116"></span></p>
<p>I suppose that if you don’t know what PHP and Java are, you might consider this article total gibberish. So let’s fix that. If you’d like to read up and learn about PHP and Java, try Wikipedia [<a href="http://wikipedia.org/wiki/php" target="_blank">PHP</a>] and [<a href="http://en.wikipedia.org/wiki/Java_(software_platform)" target="_blank">Java</a>] articles for starters.</p>
<p>Here’s additional elucidation&#8230;</p>
<p><strong>PHP</strong><strong>:</strong> &#8230; is a programming language that is embedded within web pages (on the server) whose purpose is to embody the “logic” of the web application and ultimately emit HTML pages. When PHP statements are executed they do things like connect to databases, make computations, and modify and format the information for display on the web page. Ultimately the output is HTML (and javascript) like any other page. PHP developed as a <em>scripting language</em>, and one characteristic of scripting is that the server “interprets” (or compiles) each PHP page from scratch each time the page is requested by a web browser. That’s <span style="text-decoration: underline;">each time</span> a page is requested. That makes for quick development and modification of PHP pages, but it’s not very efficient from the standpoint of server efficiency.</p>
<p><strong>Java</strong>: Similarly, Java language statements can be embedded in web pages (on the server) to connect to databases, read files, and modify and format information for display.  Java provides (runs within) a framework<sup>[1]</sup> that precompiles its programming language statements to a compact form which can be very quickly executed by the server. One common framework is <em>Java Server Pages</em> [JSP] running under the control of systems like JBoss or Tomcat. The other big difference, compared to PHP, is that Java pages (JSP pages in my case) are “persistent” and once a page is compiled and then loaded, it stays in memory and can be executed super-quickly for thousands of viewers without recompilation or reloading &#8211; while PHP pages have to be compiled for each of the thousands of viewers.</p>
<p>And the bottom line is that <a href="http://www.zend.com/" target="_blank">Zend</a>, the company, provides an “optimizer” and its own framework that vastly improves the performance of PHP pages, thus making PHP much more competitive with Java. So Andi is right. PHP is really disrupting Java’s hold on the web application market.</p>
<p>Working in the cloud<sup>[2]</sup>, as I do now, I have found it’s easier to find a cloud supplier who provides a PHP right-out-of-the-box solution than a Java solution. Or maybe it’s just easier to configure PHP (like on the Ubuntu Linux servers I use at Slicehost). But Slicehost is promising us a Java solution soon. Probably more important, <a href="http://www.infoworld.com/d/cloud-computing/google-adds-java-app-engine-cloud-service-758?source=NLC-DAILY" target="_blank">Google has announced they’re workin’ on a Java solution to be positioned within their <em>App Engine</em></a> and I see more and more clients using Google Apps every day.</p>
<p>So what’s the bottom line? PHP has really come up the curve, especially with the <em>Zend Framework</em> and <em>Zend Server</em> in the picture. I&#8217;d say that development progresses a little faster in PHP than in Java &#8211; while you’re developing the database and other support &#8211; but when you’re developing the PHP or JSP pages themselves, the two approaches get pretty similar traction. During development and debugging, you can make a change to a page and instantly view the result of your change. Once you’ve deployed the solution and there are thousands of users, then the Java-based app is probably a bit easier on the server and has greater capacity.</p>
<hr />
<p>[1] A framework is a set of cooperating programs that together provide underlying support services for a computer application (“application” in the sense of a computer program that gets some big task done). I’m talking about web applications here &#8211; meaning applications running on big servers in the cloud and used by people through web browsers.</p>
<p>[2] <em>Cloud computing</em> is “computing as a service” without the customer having to worry about servers or other hardware &#8211; you just purchase as much computing as you need.</p>
<p>The post <a href="https://blog.red7.com/did-php-kill-the-java-radio-star/">Did PHP kill the Java radio star?</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.red7.com/did-php-kill-the-java-radio-star/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1116</post-id>	</item>
		<item>
		<title>Evangelism and process planning</title>
		<link>https://blog.red7.com/evangelism-and-process-planning/</link>
					<comments>https://blog.red7.com/evangelism-and-process-planning/#respond</comments>
		
		<dc:creator><![CDATA[sky]]></dc:creator>
		<pubDate>Sun, 17 Jul 2005 17:55:37 +0000</pubDate>
				<category><![CDATA[Making organizations work]]></category>
		<category><![CDATA[Drupal]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[Plone]]></category>
		<guid isPermaLink="false">http://sky.dlfound.org/?p=25</guid>

					<description><![CDATA[<p>Geeks love their toys (me too!). We all have a technology-based solution for our NPOs problems. A pet solution and pet software that we're willing to promote at great length, anytime anyone gives us the opportunity. But what <i>really</i> ensures the success of our project? It's not software!</p>
<p>The post <a href="https://blog.red7.com/evangelism-and-process-planning/">Evangelism and process planning</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img loading="lazy" decoding="async" class="size-full wp-image-1126 alignleft" style="border: 0pt none; margin: 2px 12px;" title="Java" src="/wp-content/uploads/2009/04/java.jpg" alt="Java" width="96" height="96" /></p>
<p><em>Use Linux! Use Windows because everyone else does and Microsoft isn&#8217;t going to go away. Use Java because it runs everywhere. Use Plone/Zope. Use Drupal. Use Open Source. Use commercial products because they&#8217;re well-supported. Use Freeware.</em></p>
<p>On and on we go, extolling the virtues of the various software systems we might use to build a new web site for our particular <a href="http://en.wikipedia.org/wiki/Community_of_practice">community of practice</a>.</p>
<p>It&#8217;s a fun discussion for geeks everywhere. Promoting our favorite systems. (Mine is Java and ODBC databases.) But, where does it get us in the NPO world?</p>
<p><span id="more-25"></span><br />
Well, frequently we build our fancy systems and &#8220;nobody comes to the party.&#8221; The system is up and running (perhaps except for some small component that &#8220;I&#8217;ll fix next week&#8221;) and the community never arrives or starts using the wonderful tool we&#8217;ve put in place.</p>
<p>What happened? Was this a waste of time for us, or did we benefit from all of the learning about the new software system? (I did one of these last week where I learned how to install an SSL digital certificate &#8211; it took me  alot of time and I learned a lot, and now something really wonderful, all transmissions to and from the computer can be encrypted! &#8211; but will anyone use it?)</p>
<p>How can we avoid this terrible waste of time? If such it is.</p>
<p>Well, I contend that the solution is called &#8220;analysis and planning.&#8221; The <em>analysis</em> portion involves getting your community of potential users together and asking them &#8220;what do you really want to do, or what do you expect this online system to support your doing in the real world? Think about and answer this question from the human standpoint.&#8221; Are you expecting the system to support an interchange of ideas among a community of 50 people? If so, then are all those people online? Are they all willing to check the web site every day? Are they talkative and knowledgeable and will they contribute to the common store of knowledge that will be accumulating at the web site?</p>
<p>The <em>planning</em> portion involves looking at the &#8220;<a href="http://en.wikipedia.org/wiki/Workflow">workflow</a>&#8221; of the process. That is, determining who will be in charge of suppling the information needed by the system, how that information will flow thru drafting, writing, approval, publication, maintenance/updating, and eventually deletion. What&#8217;s the use of having a big powerful content-management system, for instance, to manage the creation and dissemination of newsletters, if you dont&#8217; have someone who will reliably create the newsletter? And someone who will be there to edit them and polish them and make them readable? And to send them out to the population of users when the time is appropriate?</p>
<p>So, let me stress that this <a>planning activity</a>, and the examination of the <em>human systems</em> that will surround your technology-based system once it&#8217;s in operation, is probably even more important than the choice of software tool.</p>
<p>[Note that I&#8217;ve include a number of reference to WikiPedia in this entry. It&#8217;s a great place to explore some of these concepts, get some ideas, and then branch out to more detailed explanations.]</p>
<p>[Minor edits 2009-04-16]</p>
<p>The post <a href="https://blog.red7.com/evangelism-and-process-planning/">Evangelism and process planning</a> appeared first on <a href="https://blog.red7.com">Sky&#039;s Blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.red7.com/evangelism-and-process-planning/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">25</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 

Served from: blog.red7.com @ 2026-03-28 23:33:04 by W3 Total Cache
-->