<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments for KADIMI</title>
	<atom:link href="http://www.kadimi.com/en/comments/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kadimi.com/en</link>
	<description>[Web developper, Linux addict, Technical translator...]</description>
	<lastBuildDate>Sat, 07 Jan 2012 07:53:27 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>Comment on Generate a negative random number using JavaScript by Rio Astamal</title>
		<link>http://www.kadimi.com/en/negative-random-87#comment-326</link>
		<dc:creator>Rio Astamal</dc:creator>
		<pubDate>Sat, 07 Jan 2012 07:53:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=87#comment-326</guid>
		<description>Great explaination! Thanks.</description>
		<content:encoded><![CDATA[<p>Great explaination! Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL World Cities database installation by Nabil</title>
		<link>http://www.kadimi.com/en/mysql-cities-690#comment-324</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Wed, 30 Nov 2011 14:28:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=690#comment-324</guid>
		<description>Sorry I didn&#039;t answer earlier I was busy. Please read my post again, I said:
&lt;blockquote&gt;Once you have downloaded the compressed database, extract the file worldcitiespop.txt [...]&lt;/blockquote&gt;</description>
		<content:encoded><![CDATA[<p>Sorry I didn&#8217;t answer earlier I was busy. Please read my post again, I said:</p>
<blockquote><p>Once you have downloaded the compressed database, extract the file worldcitiespop.txt [...]</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL World Cities database installation by laslo</title>
		<link>http://www.kadimi.com/en/mysql-cities-690#comment-323</link>
		<dc:creator>laslo</dc:creator>
		<pubDate>Wed, 30 Nov 2011 14:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=690#comment-323</guid>
		<description>Hi, I found the solution : the file is twice zipped (tar.gz), but in the wrong way.

So here is the process : gunzip the tar.gz file. You gonna have a worldcitiespop.txt. Rename this file as a tar.gz. Gunzip (force if it&#039;s required) this file. You gonna obtain a worldcitiespop.tar file. Rename this file as a txt and here is it!</description>
		<content:encoded><![CDATA[<p>Hi, I found the solution : the file is twice zipped (tar.gz), but in the wrong way.</p>
<p>So here is the process : gunzip the tar.gz file. You gonna have a worldcitiespop.txt. Rename this file as a tar.gz. Gunzip (force if it&#8217;s required) this file. You gonna obtain a worldcitiespop.tar file. Rename this file as a txt and here is it!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL World Cities database installation by laslo</title>
		<link>http://www.kadimi.com/en/mysql-cities-690#comment-318</link>
		<dc:creator>laslo</dc:creator>
		<pubDate>Sat, 12 Nov 2011 16:11:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=690#comment-318</guid>
		<description>Hi,

Your command does not work, the file (worldcitiespop) seems to be bytecode inside. Does the file double compressed or database bytecode? How to import this new version?

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Your command does not work, the file (worldcitiespop) seems to be bytecode inside. Does the file double compressed or database bytecode? How to import this new version?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Age from date of birth in Drupal 7 by Amine</title>
		<link>http://www.kadimi.com/en/age-from-date-of-birth-in-drupal-7-777#comment-316</link>
		<dc:creator>Amine</dc:creator>
		<pubDate>Sun, 06 Nov 2011 16:28:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=777#comment-316</guid>
		<description>The answer is here:

http://en.wikipedia.org/wiki/1901#Significance_of_1901_for_modern_computers

It&#039;s due to 32bit Unix systems not able to go back than 1901-12-13 20:45:52 UTC and up to 2038-01-19 03:14:02 UTC</description>
		<content:encoded><![CDATA[<p>The answer is here:</p>
<p><a href="http://en.wikipedia.org/wiki/1901#Significance_of_1901_for_modern_computers" rel="nofollow">http://en.wikipedia.org/wiki/1901#Significance_of_1901_for_modern_computers</a></p>
<p>It&#8217;s due to 32bit Unix systems not able to go back than 1901-12-13 20:45:52 UTC and up to 2038-01-19 03:14:02 UTC</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL World Cities database installation by Laslo</title>
		<link>http://www.kadimi.com/en/mysql-cities-690#comment-315</link>
		<dc:creator>Laslo</dc:creator>
		<pubDate>Sun, 06 Nov 2011 16:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=690#comment-315</guid>
		<description>Hi,

I tried you script but unfortunately it seems not working. In fact, when I extract the txt from the tar.gz, my txt content seems to be bytecode. So, when I import it, the content of my database is unreadable.

I also sent an email and a posted a question on maxmind forum, but no answer. I know that it looks newbee, but anybody could help me?

Thanks,</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I tried you script but unfortunately it seems not working. In fact, when I extract the txt from the tar.gz, my txt content seems to be bytecode. So, when I import it, the content of my database is unreadable.</p>
<p>I also sent an email and a posted a question on maxmind forum, but no answer. I know that it looks newbee, but anybody could help me?</p>
<p>Thanks,</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Age from date of birth in Drupal 7 by Nabil</title>
		<link>http://www.kadimi.com/en/age-from-date-of-birth-in-drupal-7-777#comment-314</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Mon, 31 Oct 2011 11:41:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=777#comment-314</guid>
		<description>It works for dates later than &#039;12/14/1901&#039;... I don&#039;t know why, I will update as soon as I know something:

&lt;pre lang=&quot;PHP&quot;&gt;
echo $age = ( time() - strtotime(&#039;12/14/1901&#039;) )/ 86400 / 365.25; // 109.87949428981
echo $age = ( time() - strtotime(&#039;01/01/1901&#039;) )/ 86400 / 365.25; // 41.830216461328
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>It works for dates later than &#8217;12/14/1901&#8242;&#8230; I don&#8217;t know why, I will update as soon as I know something:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$age</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'12/14/1901'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span> <span style="color: #cc66cc;">86400</span> <span style="color: #339933;">/</span> <span style="color:#800080;">365.25</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 109.87949428981</span>
<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$age</span> <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span> <span style="color: #990000;">time</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #990000;">strtotime</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'01/01/1901'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span> <span style="color: #cc66cc;">86400</span> <span style="color: #339933;">/</span> <span style="color:#800080;">365.25</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// 41.830216461328</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>Comment on Age from date of birth in Drupal 7 by gimi</title>
		<link>http://www.kadimi.com/en/age-from-date-of-birth-in-drupal-7-777#comment-313</link>
		<dc:creator>gimi</dc:creator>
		<pubDate>Thu, 27 Oct 2011 23:08:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=777#comment-313</guid>
		<description>This is wrong.
How about if the birthday is before 1970, where you cannot use strtotime</description>
		<content:encoded><![CDATA[<p>This is wrong.<br />
How about if the birthday is before 1970, where you cannot use strtotime</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on MySQL World Cities database installation by WorldCitiesDatabase.Info</title>
		<link>http://www.kadimi.com/en/mysql-cities-690#comment-263</link>
		<dc:creator>WorldCitiesDatabase.Info</dc:creator>
		<pubDate>Tue, 17 May 2011 19:14:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=690#comment-263</guid>
		<description>Most people don&#039;t really need a database of over 2 million cities unless they really plan to do a geographical survey. It is important to stay realistic about the locations that users are going to be looking for. 

When I was looking for a decent database of world cities for my web project, I tried using all of the free city databases out there. I even paid for a couple of them.

But none of them satisfied me. They either had too much useless information (like longitudes, administrative subdivisions for tiny countries, or thousands and thousands of entries for small countries) or too little.

This is why I decided to create my own database.

After that was done I decided to share the results of my work with the world.

I offer my database both in Excel and SQL formats. It has over 40,000 of U.S. cities and a total of over 70,000 cities. To me it is the perfect balance between completeness and usefulness.

And you can&#039;t go wrong with a database that only costs $4.99!

If you are interested, visit http://worldcitiesdatabase.info and see if my database is right for you.</description>
		<content:encoded><![CDATA[<p>Most people don&#8217;t really need a database of over 2 million cities unless they really plan to do a geographical survey. It is important to stay realistic about the locations that users are going to be looking for. </p>
<p>When I was looking for a decent database of world cities for my web project, I tried using all of the free city databases out there. I even paid for a couple of them.</p>
<p>But none of them satisfied me. They either had too much useless information (like longitudes, administrative subdivisions for tiny countries, or thousands and thousands of entries for small countries) or too little.</p>
<p>This is why I decided to create my own database.</p>
<p>After that was done I decided to share the results of my work with the world.</p>
<p>I offer my database both in Excel and SQL formats. It has over 40,000 of U.S. cities and a total of over 70,000 cities. To me it is the perfect balance between completeness and usefulness.</p>
<p>And you can&#8217;t go wrong with a database that only costs $4.99!</p>
<p>If you are interested, visit <a href="http://worldcitiesdatabase.info" rel="nofollow">http://worldcitiesdatabase.info</a> and see if my database is right for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on JavaScript round float to n decimal points by Nabil</title>
		<link>http://www.kadimi.com/en/round-float-349#comment-255</link>
		<dc:creator>Nabil</dc:creator>
		<pubDate>Wed, 06 Apr 2011 17:20:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.kadimi.com/en/?p=349#comment-255</guid>
		<description>This is very clean, if val is not a number the function will return NaN (Not a Number)

Thanks Chat!</description>
		<content:encoded><![CDATA[<p>This is very clean, if val is not a number the function will return NaN (Not a Number)</p>
<p>Thanks Chat!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

