<?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>I am the creator of Razuna, a developer, a public speaker, a hobbyist photographer and love to help startups.</description>
	<lastBuildDate>Sat, 05 May 2012 16:21:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</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>Information Overflow</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/kUIuwf8LamY/</link>
		<comments>http://thenitai.com/2012/04/25/information-overflow/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 10:01:09 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Internet Zeitgeist]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=1077</guid>
		<description><![CDATA[Stuck in my mind, can&#8217;t move hands, just starring at the screen and getting horrified what could happen if this state continues on&#8230; Fail to get inspired by people around me. How they try to engage me. Hate their good meaning cheer up words that all will be fine&#8230; I know, this is just a [...]]]></description>
			<content:encoded><![CDATA[<p>Stuck in my mind, can&#8217;t move hands, just starring at the screen and getting horrified what could happen if this state continues on&#8230;</p>
<p>Fail to get inspired by people around me. How they try to engage me. Hate their good meaning cheer up words that all will be fine&#8230;</p>
<p>I know, this is just a temporary state, but a state that has been going on the last couple of years&#8230;</p>
<p>Information overflow&#8230;</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/kUIuwf8LamY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2012/04/25/information-overflow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2012/04/25/information-overflow/</feedburner:origLink></item>
		<item>
		<title>OpenBD and MongoDB: Can’t get easier then this</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/lPXSM2J3Sto/</link>
		<comments>http://thenitai.com/2012/03/31/openbd-and-mongodb-cant-get-easier-then-this/#comments</comments>
		<pubDate>Sat, 31 Mar 2012 10:54:59 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[CFML]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[coldfusion]]></category>
		<category><![CDATA[mongodb]]></category>
		<category><![CDATA[openbd]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=1047</guid>
		<description><![CDATA[I&#8217;m currently working on a project that uses MongoDB (yes, that&#8217;s the awesome NoSQL database everyone talks about). Now, my favorites language of choice (CFML) and especially my favorite open source CFML engine OpenBD, has support for MongoDB built in which makes it a snap to use for any ColdFusion developer. MongoDB&#8217;s query syntax is [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m currently working on a project that uses <a href="http://www.mongodb.org" target="_blank">MongoDB</a> (yes, that&#8217;s the awesome NoSQL database everyone talks about). Now, my favorites language of choice (CFML) and especially my favorite <a href="http://www.openbd.org" target="_blank">open source CFML engine OpenBD</a>, has support for MongoDB built in which makes it a snap to use for any ColdFusion developer.</p>
<p>MongoDB&#8217;s query syntax is quite different then the SQL you might got used to. A good overview how to find (select) records with MongoDB can be found at <a href="http://www.mongodb.org/display/DOCS/SQL+to+Mongo+Mapping+Chart" target="_blank">SQL to Mongo Mapping Chart</a>. In short, the MongoDB find() syntax is close to the &#8220;chained&#8221; commands you might know from the likes of JQuery. Important to remember is that 99% of the time everything you pass to MongoDB is a JSON structure and has a JSON like syntax.</p>
<p>Since OpenBD is using the Java Driver and we apply a CFML tag for it, the query syntax differs slightly from the one you would enter in a mongo shell. Please find below some examples.</p>
<h4>Find all records</h4>
<pre class="brush: coldfusion; title: ; notranslate">&lt;cfset myarray = MongoCollectionfind(
   datasource=&quot;mongosource&quot;,
   collection=&quot;users&quot;,
   query={}
)&gt;</pre>
<p>The above MongoCollectionfind() will return an Array with all records of the Collection and all fields.</p>
<h4>Return only certain fields</h4>
<p>It&#8217;s a common practice not to return all fields as in a &#8220;SELECT column1, column2 FROM…&#8221;. With MongoCollectionfind() you would do something like:</p>
<pre class="brush: coldfusion; title: ; notranslate">&lt;cfset myarray = MongoCollectionfind(
datasource=&quot;mongosource&quot;,
collection=&quot;users&quot;,
query={},
fields={email:true,firstname:true}
)&gt;</pre>
<p>Again the MongoCollectionfind() would return an Array with all records, but this time only with the columns &#8220;email&#8221; and &#8220;firstname&#8221;. Note: The unique value of &#8220;_id&#8221; is always returned!</p>
<h4>Find a specific user</h4>
<p>Of course, returning all records is 99% of the time not wanted. MongoDB has a very sophisticated approach to finding records. As you can see from the SQL to MongoDB map. Ok, now let&#8217;s find user by his eMail address.</p>
<pre class="brush: coldfusion; title: ; notranslate">&lt;cfset myarray = MongoCollectionfind(
datasource=&quot;mongosource&quot;,
collection=&quot;users&quot;,
query=({email:&quot;nitai@openbd.com&quot;}),
fields={email:true,firstname:true}
)&gt;</pre>
<p>To find the user with his eMail address AND his first name you would do:</p>
<pre class="brush: coldfusion; title: ; notranslate">&lt;cfset myarray = MongoCollectionfind(
datasource=&quot;mongosource&quot;,
collection=&quot;users&quot;,
query=({email:&quot;nitai@openbd.com&quot;,firstname:&quot;nitai&quot;}),
fields={email:true,firstname:true}
)&gt;</pre>
<p>The same find() as above but this time with OR would be:</p>
<pre class="brush: coldfusion; title: ; notranslate">&lt;cfset myarray = MongoCollectionfind(
datasource=&quot;mongosource&quot;,
collection=&quot;users&quot;,
query=( { $or : [ { email : &quot;nitai@openbd.com&quot; } , { first_name : &quot;nitai&quot; } ] } ),
fields={email:true,firstname:true}
)&gt;</pre>
<p>As you can see form the examples above, working with OpenBD and the MongoDB syntax is straight forward and easy. Hope this helps.</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/lPXSM2J3Sto" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2012/03/31/openbd-and-mongodb-cant-get-easier-then-this/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2012/03/31/openbd-and-mongodb-cant-get-easier-then-this/</feedburner:origLink></item>
		<item>
		<title>htaccess being hacked and detecting malware on Linux</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/Q5ZYQ99x0ow/</link>
		<comments>http://thenitai.com/2012/02/19/htaccess-being-hacked-and-detecting-malware-on-linux/#comments</comments>
		<pubDate>Sun, 19 Feb 2012 00:19:29 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[hacked]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[malware]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=961</guid>
		<description><![CDATA[Unfortunately, I&#8217;ve had to learn a thing or two about server intrusion, .htaccess being hacked, backdoors and more in the last days. Well, one could say it is a good education&#8230; In any case, one of the major issues I was confronted with, is that on one PHP based server (with WordPress) the .htaccess file [...]]]></description>
			<content:encoded><![CDATA[<p>Unfortunately, I&#8217;ve had to learn a thing or two about server intrusion, .htaccess being hacked, backdoors and more in the last days. Well, one could say it is a good education&#8230; In any case, one of the major issues I was confronted with, is that on one PHP based server (with WordPress) the .htaccess file was manipulated. The hack wasn&#8217;t obvious, since it was targeted to any user coming to the site from a search engine and then being redirected to some (random) russian site.</p>
<p>Now, removing the .htaccess file, editing it or changing the file permission did not help, as the file itself was being reset to the hacked version every 30 minutes or so. It was obvious that someone was able to upload a backdoor to the server and calling the file remotely. The question was now, how to find the infected file or uploaded on in order to close the hole?</p>
<p>Luckily, the people at <a href="http://www.rfxn.com/projects/linux-malware-detect/" target="_blank">R-FX Network made the malware script available</a> (under the GPL open source license), that lets you scan your server for any malware and infected files. It uses many different scans to find any malware. I especially like, that users can send their infected files to them and they then update the scanner engine. Very effective method to keep your server secure.</p>
<p>In my case, the malware script quickly found the file in question, which was then quarantined. Since then, the WordPress blog worked again. Needless to say, just running this script wont secure your server. You need to have a firewall in place, update your server regularly, read your logs and so on.</p>
<p>If you want to read more about the difference way of hack and how to protect the server I&#8217;ve found <a href="http://blog.unmaskparasites.com/2011/05/05/thousands-of-hacked-sites-seriously-poison-google-image-search-results/" target="_blank">this blog post</a> from <a href="http://www.unmaskparasites.com/">Unmask Parasites</a> very valuable. Also, they have a <a href="http://blog.unmaskparasites.com/2012/01/11/matt-cutts-on-malware/" target="_blank">video of Matt Cutts talking about malware</a>.</p>
<p>&nbsp;</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/Q5ZYQ99x0ow" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2012/02/19/htaccess-being-hacked-and-detecting-malware-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2012/02/19/htaccess-being-hacked-and-detecting-malware-on-linux/</feedburner:origLink></item>
		<item>
		<title>Your PHP installation appears to be missing the MySQL extension which is required by WordPress and some other PHP strangeness</title>
		<link>http://feedproxy.google.com/~r/thenitai/~3/1QQz6HmgA0M/</link>
		<comments>http://thenitai.com/2012/02/17/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress-and-some-other-php-strangeness/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 10:48:41 +0000</pubDate>
		<dc:creator>Nitai</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php5]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://thenitai.com/?p=954</guid>
		<description><![CDATA[I just went trough some issues with a PHP5 installation on some of our WordPress servers. To spare you of the details, why I had to do that, I simply post the solutions here (strange enough searching for these issues online gives you &#8220;trillions&#8221; of results, but no solution&#8230;). 1. Removing PHP5 and re-installing When [...]]]></description>
			<content:encoded><![CDATA[<p>I just went trough some issues with a PHP5 installation on some of our WordPress servers. To spare you of the details, why I had to do that, I simply post the solutions here (strange enough searching for these issues online gives you &#8220;trillions&#8221; of results, but no solution&#8230;).</p>
<p><strong>1. Removing PHP5 and re-installing</strong></p>
<p>When you are in need to remove and re-install PHP5, you should use the &#8220;&#8211;purge&#8221; parameter like; &#8220;apt-get &#8211;purge remove php5&#8243;. Now, while this seams to work and when you re-install PHP5 it strangely gives you feedback of &#8220;Not replacing deleted config file /etc/php5/apache2/php.ini&#8221; during re-installation.</p>
<p>In short, the re-installation does NOT install a php.ini file. While this might not be a issue for some, it was in my case. Luckily, there are some default php.ini files that one can copy. Depending on your server they might be in different places (mine were at /usr/share/php5). So, all there was to do is to copy the file with: &#8220;cp /usr/share/php5/php.ini-production /etc/php5/apache2/php.ini&#8221;.</p>
<p><strong>2. Your PHP installation appears to be missing the MySQL extension which is required by WordPress</strong></p>
<p>While the above might not be major issue, the message I received from our WordPress installation of &#8220;Your PHP installation appears to be missing the MySQL extension which is required by WordPress&#8221; was worrying. Nothing that I tried, re-installing PHP5, enabling modules, checking Apache and MySQL solved it. Also, searching for this online, did not help at all, since almost every entry simply tells you to re-install php5.</p>
<p>Ok, so how did I get it solved? After hours of hours the solution is too simple. All I had to do, was to explicitly, enable the extension in the php.ini file with:</p>
<p>extension=mysql.so<br />
extension=mysqli.so</p>
<p>Saved the file, restarted Apache and finally I got the MySQL parameters in the PHP Info page and all blogs worked again. One would think that the apt-get installation routine would do this automatically since I was using &#8220;apt-get install php5-mysql&#8221;, but alas as I found out the hard way, this is not so.</p>
<p>Hope this helps someone out there.</p>
<img src="http://feeds.feedburner.com/~r/thenitai/~4/1QQz6HmgA0M" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://thenitai.com/2012/02/17/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress-and-some-other-php-strangeness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://thenitai.com/2012/02/17/your-php-installation-appears-to-be-missing-the-mysql-extension-which-is-required-by-wordpress-and-some-other-php-strangeness/</feedburner:origLink></item>
		<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: 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. [...]]]></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>
<pre class="brush: plain; title: ; notranslate">Cannot run program &quot;chmod&quot;: java.io.IOException: error=24, Too many open files</pre>
<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>
<pre class="brush: coldfusion; title: ; notranslate">&lt;cfinclude action=&quot;create&quot; directory=&quot;...&quot; mode=&quot;775&quot;&gt;</pre>
<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: 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>
<pre class="brush: plain; title: ; notranslate">update table
set
column = replace(column,'thistext','thattext')
</pre>
<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>
	</channel>
</rss>

