<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Anatoliy Belsky - Web</title>
    <link>http://belsky.info/</link>
    <description>That's what I'm thinking ...  </description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.2.1 - http://www.s9y.org/</generator>
    
    

<item>
    <title>Using great Geonames database for geographical data handling</title>
    <link>http://belsky.info/archives/29-Using-great-Geonames-database-for-geographical-data-handling.html</link>
            <category>Bash</category>
            <category>Linux</category>
            <category>PostgreSQL</category>
            <category>Web</category>
    
    <comments>http://belsky.info/archives/29-Using-great-Geonames-database-for-geographical-data-handling.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=29</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    This time I needed some geographical data evaluation for one of my current projects. The data used to be opensource and as possible qualitative and complete. After spending some time in front of the famous search engine window there was a solution: &lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://www.geonames.org/&quot;&gt;http://www.geonames.org/&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
That&#039;s the first sentence from the site:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote&gt;The GeoNames geographical database covers all countries and contains over eight million placenames that are available for download free of charge.&lt;/blockquote&gt;&lt;br /&gt;
&lt;br /&gt;
Geonames is used by number of sites. Besides data it has also web services and code libraries in many programming languages to access them. &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/29-Using-great-Geonames-database-for-geographical-data-handling.html#extended&quot;&gt;Continue reading &quot;Using great Geonames database for geographical data handling&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 03 Jun 2010 13:57:19 +0200</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/29-guid.html</guid>
    
</item>
<item>
    <title>Making server side playlist with PHP</title>
    <link>http://belsky.info/archives/26-Making-server-side-playlist-with-PHP.html</link>
            <category>Linux</category>
            <category>PHP5</category>
            <category>Web</category>
    
    <comments>http://belsky.info/archives/26-Making-server-side-playlist-with-PHP.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=26</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=26</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    Hi again,&lt;br /&gt;
&lt;br /&gt;
whole last week I was mad about hearing music. I&#039;ve heared tons of mp3&#039;s and radio stations over the internet.  After a couple of days hearing music at work and at home I was really bored with creating and syncronizing playlists/files. Based on this, I came to the idea to make an online playlist which I would must update only one time and in one place and it would be accessible from anywhere. The idea was easy brougth out with PHP. So just a light reading for you:&lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/26-Making-server-side-playlist-with-PHP.html#extended&quot;&gt;Continue reading &quot;Making server side playlist with PHP&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 02 Oct 2008 19:36:35 +0200</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/26-guid.html</guid>
    
</item>
<item>
    <title>Domains avaliability checker</title>
    <link>http://belsky.info/archives/17-Domains-avaliability-checker.html</link>
            <category>Bash</category>
            <category>Linux</category>
            <category>Web</category>
    
    <comments>http://belsky.info/archives/17-Domains-avaliability-checker.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=17</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    About a month ago I&#039;ve written a simple domain checker, which is using whois.net to get the domains availiable. The main goal was to find free 3-symbols domains. &lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;b&gt;BASH:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;bash&quot; style=&quot;color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;padding-left: 3px;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sh&lt;/span&gt; &lt;/span&gt;
&amp;#160;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$#&lt;/span&gt; -lt &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt;
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;usage: `basename $0` extension
Check domains avaliability
&amp;#160;
examples:
`basename $0` com
&amp;quot;&lt;/span&gt;;
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;
&amp;#160;
&lt;span style=&quot;color: #007800;&quot;&gt;EXT=&lt;/span&gt;$&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;;
&lt;span style=&quot;color: #007800;&quot;&gt;LAST_FILENAME=&lt;/span&gt;/tmp/dc_&lt;span style=&quot;color: #007800;&quot;&gt;$USER&lt;/span&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$EXT&lt;/span&gt;.&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;last&lt;/span&gt;
&amp;#160;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; -f &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$LAST_FILENAME&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;LAST_DOMAIN=&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cat&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$LAST_FILENAME&lt;/span&gt;`; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt; 
&amp;#160;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;for&lt;/span&gt; DOMAIN &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;in&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;..&lt;span style=&quot;color: #000000;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;a..z&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;,-&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;..&lt;span style=&quot;color: #000000;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;a..z&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;,-&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;..&lt;span style=&quot;color: #000000;&quot;&gt;9&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;,&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;a..z&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;,-&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;do&lt;/span&gt;
    &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DOMAIN&amp;quot;&lt;/span&gt; \&amp;lt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$LAST_DOMAIN&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;continue&lt;/span&gt;; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;
&amp;#160;
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;trap&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;echo $DOMAIN &amp;gt; $LAST_FILENAME;exit;&amp;quot;&lt;/span&gt; SIGHUP SIGINT SIGTERM
&amp;#160;
    &lt;span style=&quot;color: #007800;&quot;&gt;STATUS_STRING=&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;wget&lt;/span&gt; -qO - http://www.whois.net/whois_new.cgi\?d\=&lt;span style=&quot;color: #007800;&quot;&gt;$DOMAIN&lt;/span&gt;\&amp;amp;tld\=&lt;span style=&quot;color: #007800;&quot;&gt;$EXT&lt;/span&gt; | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;grep&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;Status&#039;&lt;/span&gt;`
&amp;#160;
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$STATUS_STRING&amp;quot;&lt;/span&gt; | &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;grep&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&#039;free&#039;&lt;/span&gt; &amp;amp;&amp;amp; 
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$DOMAIN.$EXT&amp;quot;&lt;/span&gt; &amp;gt;&amp;gt; ~/domains_found_&lt;span style=&quot;color: #007800;&quot;&gt;$EXT&lt;/span&gt;.txt &amp;amp;&amp;amp; 
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;the domain is free: $DOMAIN.$EXT&amp;quot;&lt;/span&gt; | mail -c my@mail.com -s &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;free domain&amp;quot;&lt;/span&gt; other@mail.com
&amp;#160;
    &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;sleep&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;7&lt;/span&gt;
&amp;#160;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;done&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;
&lt;br /&gt;
The thing is very simple and the results can be kept on. Additionally it sends mail messages about each found domain. Lets see, what it brought for the .de domains ( about 9000 free domains was found &lt;img src=&quot;http://belsky.info/templates/default/img/emoticons/wink.png&quot; alt=&quot;;-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; ) &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/17-Domains-avaliability-checker.html#extended&quot;&gt;Continue reading &quot;Domains avaliability checker&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 12 Mar 2008 22:44:06 +0100</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/17-guid.html</guid>
    
</item>
<item>
    <title>I know the future weather</title>
    <link>http://belsky.info/archives/9-I-know-the-future-weather.html</link>
            <category>Perl</category>
            <category>Web</category>
    
    <comments>http://belsky.info/archives/9-I-know-the-future-weather.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=9</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=9</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    A simply and cool script for the weather forecast. May be even correct &lt;img src=&quot;http://belsky.info/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
&lt;br /&gt;
.. thanks to Weather::Underground perl module&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;&lt;b&gt;PERL:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;pre class=&quot;perl&quot; style=&quot;color: #000066; border: 1px solid #d0d0d0; background-color: #f0f0f0;padding-left: 3px;&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/usr/bin/perl&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;use&lt;/span&gt; Weather::&lt;span style=&quot;color: #006600;&quot;&gt;Underground&lt;/span&gt;;&lt;/pre&gt;&lt;/div&gt; &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/9-I-know-the-future-weather.html#extended&quot;&gt;Continue reading &quot;I know the future weather&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 23 Dec 2007 23:16:11 +0100</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/9-guid.html</guid>
    
</item>
<item>
    <title>Stop image hotlinking with Perl</title>
    <link>http://belsky.info/archives/5-Stop-image-hotlinking-with-Perl.html</link>
            <category>Perl</category>
            <category>Web</category>
    
    <comments>http://belsky.info/archives/5-Stop-image-hotlinking-with-Perl.html#comments</comments>
    <wfw:comment>http://belsky.info/wfwcomment.php?cid=5</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://belsky.info/rss.php?version=2.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    

    <author>nospam@example.com (Anatoliy Belsky)</author>
    <content:encoded>
    Sometimes there are things, which can bring everyone to the rage accumulation. For example if traffic of the server is exceeded because of hotlinking and it&#039;s measured at least in hundreds of megabytes. | So, for me this is only a story about someone else because I&#039;m always using the following script, if the traffic of the server is not unlimited. I&#039;ve used Perl to convert or resize images, because according my measurements Perl was doing this at least twice as fast as PHP and more qualitatively as PHP (this concerns anyhow PHP4). Only the one  weakness can prevent you from using this script - it works with HTTP_REFERER server variable and since some browsers, firewalls or proxies for any reasons don&#039;t sending this field to the webserver, you can punish innocent people, who want only to see your images. But the advantages are evident - you can place your images out of the web space and show them only if they has been called from your web site. Lets go on. &lt;br /&gt;&lt;a href=&quot;http://belsky.info/archives/5-Stop-image-hotlinking-with-Perl.html#extended&quot;&gt;Continue reading &quot;Stop image hotlinking with Perl&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 23 Dec 2007 21:04:48 +0100</pubDate>
    <guid isPermaLink="false">http://belsky.info/archives/5-guid.html</guid>
    
</item>

</channel>
</rss>