<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>TheNitai</title>
	
	<link>http://thenitai.com</link>
	<description>Digital Asset Management, Coldfusion, Java, OpenSource, Linux, Entrepreneur</description>
	<lastBuildDate>Sat, 04 Feb 2012 13:09:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/thenitai" /><feedburner:info uri="thenitai" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>thenitai</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Why Coldfusion / CFML has its place and is worth to learn it</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/dLj9VtwEAAg/</link>
		<comments>http://thenitai.com/2012/02/04/why-coldfusion-cfml-has-its-place-and-is-worth-to-learn-it/#comments</comments>
		<pubDate>Sat, 04 Feb 2012 13:09:48 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[CFML]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[application server]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[openbd]]></category>
		<category><![CDATA[railo]]></category>
		<category><![CDATA[web application]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=945</guid>
		<description><![CDATA[I actually never indulge in conversations why one programming language is better then another, because what is right to you, does not automatically mean, it is right for someone else. So, for me ColdFusion, or as we call the language itself &#8211; CFML, works very well. Nevertheless, in this post I like to clear up [...]]]></description>
			<content:encoded><![CDATA[<p>I actually never indulge in conversations why one programming language is better then another, because what is right to you, does not automatically mean, it is right for someone else. So, for me ColdFusion, or as we call the language itself &#8211; CFML, works very well.</p>
<p>Nevertheless, in this post I like to clear up some confusion that has been around. I can see where the confusion comes from as Coldfusion has gone from Allaire to Macromedia and is now &#8220;in the hands&#8221; of Adobe.</p>
<p>In any case, here are some reasons why CFML is still worth for you to learn.</p>
<ul>
<li><strong>CFML is open source and yes you can use it for free.</strong> I guess, many people are put off by the fact that Coldfusion has had a big price tag on it in the past. True, given the nature of PHP, Java, Phyton, Ruby, etc. being free, there was actually no reason to shell out your hard earned buck for some application server and on top of it even learn the language. Thanks to the short sighted business decisions of Macromedia and now Adobe or shall we say with the greedy money making mentality of its management, Coldfusion has been faced with a drainage of developers.<br />
Fortunately, this has all changed with the advent of <a href="http://openbd.org" target="_blank">OpenBD &#8211; the first real open source CFML server</a>, followed shortly by <a href="http://www.getrailo.org/" target="_blank">Railo</a>, another popular open source CFML server. In other words, to learn CFML and to deploy your applications, is now free and free to be.</li>
<li><strong>Write less code.</strong> Compared to PHP, Java, C++, even Ruby and Python &#8211; CFML allows you to write the same program with much much fewer lines of code. Why would you want spend your precious time writing more code when you can do it for less? As a matter of fact, you can write your application in CFML so efficiently, that the same application written by you alone would probably need a team with Java, Ruby, etc. This is a proven fact.</li>
<li><strong>Well designed.</strong> The CFML language is well designed and many required functions already exists for you to use. There is no need to write a wrapper for a email sending function. I mean, you don&#8217;t even need a framework, to achieve a simple tag like &#8220;&lt;cfmail&#8230;&gt;&#8221;. There is no obnoxious, framework to learn or write functions for this. Compare this to Java, PHP, Ruby, etc. you are very well off with CFML. (again all without a framework)</li>
<li><strong>Build web applications fast.</strong> Due to the nature of writing less code with CFML and with the built in function, you will be writing your next web application in weeks, instead of months. On top of that, you will have a full scalable enterprise model on your hand to scale when your startup takes off. Heard about the stories of PHP web apps, that had to be converted to xyz language just to scope with the traffic. Again, if you would deploy your web application with <a href="http://openbd.org" target="_blank">CFML and OpenBD</a>, you can deploy on any Java application server (Tomcat, JBoss, Websphere, etc.), connect to any database (MongoDB, H2, Oracle, MySQL, MS SQL, DB2, you name it&#8230;) and have your cluster, load balancing, caching setup done.</li>
</ul>
<p>If you are in for writing less code and building your next web application the fast way, then I simply urge you to give CFML a try. I&#8217;m certain that you will get your project done in half the time then in another language. There is simply nothing to loose for you!</p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/dLj9VtwEAAg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2012/02/04/why-coldfusion-cfml-has-its-place-and-is-worth-to-learn-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2012/02/04/why-coldfusion-cfml-has-its-place-and-is-worth-to-learn-it/</feedburner:origLink></item>
		<item>
		<title>Simply awesome: How great software is being done</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/YfOpKC3yx-8/</link>
		<comments>http://thenitai.com/2012/01/31/simply-awesome-how-great-software-is-being-done/#comments</comments>
		<pubDate>Tue, 31 Jan 2012 17:04:01 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[entrepreneur]]></category>
		<category><![CDATA[Internet Zeitgeist]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=937</guid>
		<description />
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0163004531e0970d-800wi"><img class="aligncenter" title="How great software is being done" src="http://geekandpoke.typepad.com/.a/6a00d8341d3df553ef0163004531e0970d-800wi" alt="" width="504" height="713" /></a></p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/YfOpKC3yx-8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2012/01/31/simply-awesome-how-great-software-is-being-done/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2012/01/31/simply-awesome-how-great-software-is-being-done/</feedburner:origLink></item>
		<item>
		<title>CFML and Cannot run program “chmod”: java.io.IOException: error=24, Too many open files</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/cwGgcbVCwjI/</link>
		<comments>http://thenitai.com/2011/12/31/cfml-and-cannot-run-program-chmod-java-io-ioexception-error24-too-many-open-files/#comments</comments>
		<pubDate>Sat, 31 Dec 2011 13:05:54 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[CFML]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[openbd]]></category>
		<category><![CDATA[too many open files]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=919</guid>
		<description><![CDATA[Migrating one of my customers the other day, bought up an ugly error when I had to create 2000 directories on one go. The error was: Cannot run program &#34;chmod&#34;: java.io.IOException: error=24, Too many open files While, &#8220;too many open files&#8221; usually means one can raise the limit of open files under Linux (check out [...]]]></description>
			<content:encoded><![CDATA[<p>Migrating one of my customers the other day, bought up an ugly error when I had to create 2000 directories on one go. The error was:</p>
<p><code>Cannot run program &quot;chmod&quot;: java.io.IOException: error=24, Too many open files</code></p>
<p>While, &#8220;too many open files&#8221; usually means one can raise the limit of open files under Linux (check out ulimit -a) it unfortunately did not help in this situation. I even rebooted the whole server and made sure that no other service was running, except Java that is. Still no success.</p>
<p>I then looked at my code in the CFML (Coldfusion) template. In order to create the directories I used a simply:</p>
<p><code>&amp;lt; cfinclude action=&quot;create&quot; directory=&quot;...&quot; mode=&quot;775&quot; &amp;gt;</code></p>
<p>Normal code, right? Well, as it turns out, I simply had to remove the &#8220;mode&#8221; part in order to overcome this error. Not sure, why this caused a &#8220;too many open files&#8221; error, but it worked in my situation. I can only imagine that the server tried to put all 2000 directories into memory and then write them in one go (I have a high value for the open files limit set and 12GB RAM).</p>
<p>In any case, hope this helps someone out here.</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/cwGgcbVCwjI" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/12/31/cfml-and-cannot-run-program-chmod-java-io-ioexception-error24-too-many-open-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/12/31/cfml-and-cannot-run-program-chmod-java-io-ioexception-error24-too-many-open-files/</feedburner:origLink></item>
		<item>
		<title>Javascript and encoding</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/f2K4naql1d0/</link>
		<comments>http://thenitai.com/2011/12/30/javascript-and-encoding/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 11:15:31 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[functions]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[url values]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=915</guid>
		<description><![CDATA[As a developer of web applications you (should) know that your users will not always enter the data you expect in a form field. When you post the form with a normal submit, then the browser will take care of the encoding for you, but what about AJAX calls? Say, you need to grab a form [...]]]></description>
			<content:encoded><![CDATA[<p>As a developer of web applications you (should) know that your users will not always enter the data you expect in a form field. When you post the form with a normal submit, then the browser will take care of the encoding for you, but what about AJAX calls? Say, you need to grab a form value and need to pass it on in a AJAX call, then you need to take care of the encoding.</p>
<p>Javascript gives you 3 functions to encode your values. These are <strong>escape()</strong>, <strong>escapeURI()</strong> and <strong>encodeURIComponent()</strong>. Now, probably like a lot of others, I have only known about the escape() function and used to use that function to encode my URL values. Until the other day, when I had to preserve a &#8220;+&#8221; and a &#8220;/&#8221; in a value. Apparently, there is a fundamental difference between them.</p>
<p><strong>escape:</strong></p>
<p>In all browsers that support JavaScript, you can use the escape function. This function works as follows: digits, Latin letters and the characters + &#8211; * / . _ @ remain unchanged; all other characters in the original string are replaced by escape-sequences %XX, where XX is the ASCII code of the original character.</p>
<p><strong>escapeURI &amp; encodeURIComponent</strong></p>
<p>In addition to escape, modern browsers support two more functions for URL-encoding: encodeURI and encodeURIComponent. These functions are similar to escape, except that they leave intact some characters that escape encodes (e.g. apostrophe, tilde, parentheses); moreover, encodeURIComponent encodes some characters (+ / @) that escape leaves intact. Unlike escape, that produces %uXXXX, encodeURI and encodeURIComponent will encode the capital Cyrillic letter A as %D0%90, and the euro sign (€) as %E2%82%AC.</p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/f2K4naql1d0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/12/30/javascript-and-encoding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/12/30/javascript-and-encoding/</feedburner:origLink></item>
		<item>
		<title>Actions of a entrepreneur</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/hOxe0NJSGLo/</link>
		<comments>http://thenitai.com/2011/12/27/actions-of-a-entrepreneur/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 11:04:40 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[efficiency]]></category>
		<category><![CDATA[entrepreneur]]></category>
		<category><![CDATA[Internet Zeitgeist]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=905</guid>
		<description><![CDATA[I&#8217;ve found this and simply had to share it. This outlines a lot what an entrepreneur has to do. Have fun building businesses, I sure have]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found this and simply had to share it. This outlines a lot what an entrepreneur has to do. Have fun building businesses, I sure have <img src='http://thenitai.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p><img class="aligncenter" title="Actions for an entrepreneur" src="http://thenextweb.com/wp-content/blogs.dir/1/files/2011/12/rules-of-creators-life-1-520x690.png" alt="" width="520" height="690" /></p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/hOxe0NJSGLo" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/12/27/actions-of-a-entrepreneur/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/12/27/actions-of-a-entrepreneur/</feedburner:origLink></item>
		<item>
		<title>How to search &amp; replace in MySQL</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/KYHIJEpNweg/</link>
		<comments>http://thenitai.com/2011/11/29/how-to-search-replace-in-mysql/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 16:04:34 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=885</guid>
		<description><![CDATA[Thinking of a way to quickly search &#38; replace data in a MySQL column got me to this solution: update table set column = replace(column,&#039;thistext&#039;,&#039;thattext&#039;) With this method I was quickly able to change millions of records today. Quick and easy.]]></description>
			<content:encoded><![CDATA[<p>Thinking of a way to quickly search &amp; replace data in a MySQL column got me to this solution:</p>
<p><pre><code>update table
set 
column = replace(column,&#039;thistext&#039;,&#039;thattext&#039;)
</code></pre></p>
<p>With this method I was quickly able to change millions of records today. Quick and easy.</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/KYHIJEpNweg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/11/29/how-to-search-replace-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/11/29/how-to-search-replace-in-mysql/</feedburner:origLink></item>
		<item>
		<title>Prevent BBedit to open last documents</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/Vc-sPlvLdeY/</link>
		<comments>http://thenitai.com/2011/11/28/prevent-bbedit-to-open-last-documents/#comments</comments>
		<pubDate>Mon, 28 Nov 2011 13:19:46 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[bbedit]]></category>
		<category><![CDATA[macos x]]></category>
		<category><![CDATA[operating system]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=882</guid>
		<description><![CDATA[Since MacOS X Lion (10.7.x) we are &#8220;blessed&#8221; by the general option that documents we have worked on the last time are automatically opened the next time we start up an application. While we can argue if that is a boon or not, I personally don&#8217;t like this &#8220;feature&#8221;. Especially, when the last opened document [...]]]></description>
			<content:encoded><![CDATA[<p>Since MacOS X Lion (10.7.x) we are &#8220;blessed&#8221; by the general option that documents we have worked on the last time are automatically opened the next time we start up an application.</p>
<p>While we can argue if that is a boon or not, I personally don&#8217;t like this &#8220;feature&#8221;. Especially, when the last opened document has had errors or crashed the application.</p>
<p>Today, I was not able to open a document in BBedit and it crashed completely. But sure enough, the next time I opened BBedit again it tried to open the same file again, resulting in crashing again.</p>
<p>After some trial and error I figured that holding down the shift key during the startup of BBedit it will disable loading of previous documents. I hope this helps someone else out there.</p>
<p>Yes, I know there are ways to disable this globally. But in case one does not want to disable this feature globally.</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/Vc-sPlvLdeY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/11/28/prevent-bbedit-to-open-last-documents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/11/28/prevent-bbedit-to-open-last-documents/</feedburner:origLink></item>
		<item>
		<title>How to wait until a file is downloaded or why cfthread is a bad idea within a cfloop</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/ymGBGFdyUFw/</link>
		<comments>http://thenitai.com/2011/09/13/how-to-wait-until-a-file-is-downloaded-or-why-cfthread-is-a-bad-idea-within-a-cfloop/#comments</comments>
		<pubDate>Tue, 13 Sep 2011 21:23:12 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[CFML]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[openbd]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=848</guid>
		<description><![CDATA[I just run into an issue where one of our servers was totally bogged down when users started to download 100 or more files. See, the problem is that we had to check that each file was downloaded successfully before processing with the rest of the code. In other words; 1) Query for files that need [...]]]></description>
			<content:encoded><![CDATA[<p>I just run into an issue where one of our servers was totally bogged down when users started to download 100 or more files. See, the problem is that we had to check that each file was downloaded successfully before processing with the rest of the code. In other words;</p>
<p>1) Query for files that need to be downloaded<br />
2) Loop over the records<br />
3) Within loop download the file<br />
4) check if file has been downloaded successfully<br />
5) continue with the code.</p>
<p>In Coldfusion (or CFML to be general) your code would look like:</p>
<p>&lt;cfloop query&#8230;&gt;<br />
&lt;cfthread&#8230;&gt;<br />
&lt;cfhttp&#8230;&gt;<br />
&lt;cfthread action=&#8221;join&#8221;&#8230;&gt;</p>
<p>As I mentioned above, we need to check if the file has been downloaded successfully before continuing with the next download. That&#8217;s why  there is a cfthread in this code.  Now, while this might be a good idea with small download, it has a hazardous effect if you will trigger 1000 downloads, which again would create 1000 threads!!!</p>
<p>So, there are actually 2 things I&#8217;ve learned from this:</p>
<ol>
<li>There is no need for the cfthread. Since cfhttp will halt the code process until the file has been downloaded, creating the thread is not needed.</li>
<li>Creating a thread within the iteration of your resultset (cfloop) is a VERY  bad idea!</li>
</ol>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/ymGBGFdyUFw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/09/13/how-to-wait-until-a-file-is-downloaded-or-why-cfthread-is-a-bad-idea-within-a-cfloop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/09/13/how-to-wait-until-a-file-is-downloaded-or-why-cfthread-is-a-bad-idea-within-a-cfloop/</feedburner:origLink></item>
		<item>
		<title>Prevent high CPU usage on MacOS X Lion</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/dYQZgB-6yEA/</link>
		<comments>http://thenitai.com/2011/09/06/prevent-high-cpu-usage-on-macos-x-lion/#comments</comments>
		<pubDate>Tue, 06 Sep 2011 12:47:58 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[high cpu]]></category>
		<category><![CDATA[launchdaemons]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=840</guid>
		<description><![CDATA[Since upgrading to MacOS X 10.7 Lion and its update to 10.7.1, I&#8217;ve have had my fan coming on a lot of times. Something I have hardly every experienced with Snow Leopard. It seams that many are also experiencing this issue as the Apple discussion boards prove. One of the &#8220;solutions&#8221; that have worked for me is [...]]]></description>
			<content:encoded><![CDATA[<p>Since upgrading to MacOS X 10.7 Lion and its update to 10.7.1, I&#8217;ve have had my fan coming on a lot of times. Something I have hardly every experienced with Snow Leopard. It seams that many are also experiencing this issue as the <a href="https://discussions.apple.com/thread/3191053?start=45&amp;tstart=0" target="_blank">Apple discussion boards</a> prove.</p>
<p>One of the &#8220;solutions&#8221; that have worked for me is to disable spotlight (I really don&#8217;t need it) with the following command (issued in the terminal):</p>
<blockquote><p>sudo mdutil -a -i off</p></blockquote>
<p>Another one was to remove any spotlight plugins that applications like Microsoft Office, Parallels, etc. put into your &#8220;/Library/Spotlight&#8221; folder. This helped big time.</p>
<p>Last but not least, you can also remove any processes that are being launched during startup which might cause a high CPU usage. In my case, I disable a couple of launchdaemons. The command to do so is:</p>
<blockquote><p>sudo launchctl unload -w /Library/LaunchDaemons/{application}</p></blockquote>
<p>Say, you want to remove the startup parallels daemon you would do a:</p>
<blockquote><p>sudo launchctl unload -w /Library/LaunchDaemons/com.parallels.desktop.launchdaemon.plist</p></blockquote>
<p>Hope this helps anybody out there. After all, there is still hope that Apple finally brings the much needed update that helps fix some issues that came up in MacOS X Lion.</p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/dYQZgB-6yEA" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/09/06/prevent-high-cpu-usage-on-macos-x-lion/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/09/06/prevent-high-cpu-usage-on-macos-x-lion/</feedburner:origLink></item>
		<item>
		<title>Ubuntu 10.04 LTS server always selecting older kernel despite updates</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/8aOzgZ7ehdg/</link>
		<comments>http://thenitai.com/2011/07/17/ubuntu-10-04-lts-server-always-selecting-older-kernel-despite-updates/#comments</comments>
		<pubDate>Sun, 17 Jul 2011 12:42:38 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[LTS]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[updates]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=813</guid>
		<description><![CDATA[I hit a really strange issue for some time now with one of my Ubuntu 10.04 LTS servers where, despite doing recent kernel updates (the latest is 2.6.32-33) it always booted into the kernel 2.6.32-28. No matter what I did (update-grub, etc.), the server was sticked to 2.6.32-28. After searching and reading a lot of posts and [...]]]></description>
			<content:encoded><![CDATA[<p>I hit a really strange issue for some time now with one of my Ubuntu 10.04 LTS servers where, despite doing recent kernel updates (the latest is 2.6.32-33) it always booted into the kernel 2.6.32-28. No matter what I did (update-grub, etc.), the server was sticked to 2.6.32-28.</p>
<p>After searching and reading a lot of posts and wiki pages I still couldn&#8217;t find a solution for it (most blogs and wiki pages talk about compiling a new kernel or installing a new one, but none talked about selecting the proper kernel or fixing it manually).</p>
<p>But since I had some other server, that booted into the correct kernel issue, I luckily had some config files to compare. The one that I was after is the &#8220;menu.lst&#8221; which is a GRUB file and is located at &#8220;/boot/grub&#8221;. Looking at the menu.lst from the working server and comparing it to the &#8220;not working&#8221; one, revealed that the &#8220;non working&#8221; one had UUID&#8217;s declared for each server while the working one not UUID but &#8220;root (hd0,0)&#8221; and hard coded root paths of &#8220;/dev/sda3&#8243;.</p>
<p>Working config:<br />
<pre><code>title&nbsp;&nbsp; Ubuntu 10.04.2 LTS, kernel 2.6.32-33-server
root&nbsp;&nbsp;&nbsp;&nbsp;(hd0,0)
kernel&nbsp;&nbsp;/vmlinuz-2.6.32-33-server root=/dev/sda3 ro quiet splash
initrd&nbsp;&nbsp;/initrd.img-2.6.32-33-server
quiet
</code></pre></p>
<p>Not-Working config:<br />
<pre><code>title&nbsp;&nbsp; Ubuntu 10.04.2 LTS, kernel 2.6.32-33-server
uuid&nbsp;&nbsp;9823d540-6bf0-467a-8640-39d33c7544fb
kernel&nbsp;&nbsp;/vmlinuz-2.6.32-33-server root=UUID=d9e79ad9-6d53-4cb5-85d6-e9f1eea712f2 ro quiet splash 
initrd&nbsp;&nbsp;/initrd.img-2.6.32-33-server
quiet
</code></pre></p>
<p>As you can see from the this, the UUID and the root are quite different. I can&#8217;t actually explain why this configuration took place on this particular server. This is even more surprising since both servers are being &#8220;kept in sync&#8221; (with updates and such).</p>
<p>In any case, the resolution (for me at least) was to copy certain parameters over to the &#8220;not-working&#8221; menu.lst. Those were, the root path (/devsda3), the &#8220;root (hd0,0)&#8221;, the &#8220;groot=(hd0,0)&#8221; plus the &#8220;kopt=root=/dev/sda3 ro&#8221; lines.</p>
<p>It took a long time to fix this issue and and I hope this helps someone else.</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/8aOzgZ7ehdg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2011/07/17/ubuntu-10-04-lts-server-always-selecting-older-kernel-despite-updates/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2011/07/17/ubuntu-10-04-lts-server-always-selecting-older-kernel-despite-updates/</feedburner:origLink></item>
	</channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using memcached
Page Caching using memcached
Database Caching using memcached
Object Caching 1116/1216 objects using memcached

Served from: thenitai.com @ 2012-02-04 14:10:05 -->

