<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Jarik's Weblog</title>
	<atom:link href="http://jarik.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://jarik.wordpress.com</link>
	<description>IT, PHP, JavaScript, Linux, HTML , CSS</description>
	<lastBuildDate>Tue, 27 Oct 2009 14:10:36 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='jarik.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/dcffca1c1bc67d1ce5e3d03cd289779d?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Jarik's Weblog</title>
		<link>http://jarik.wordpress.com</link>
	</image>
			<item>
		<title>Insert (embed) Google map with saved position and zoom level</title>
		<link>http://jarik.wordpress.com/2009/10/27/insert-embed-google-map-with-saved-position-and-zoom-level/</link>
		<comments>http://jarik.wordpress.com/2009/10/27/insert-embed-google-map-with-saved-position-and-zoom-level/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 14:10:36 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[Google maps]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=37</guid>
		<description><![CDATA[When making maps through &#8220;My Maps&#8221; and using &#8220;Paste HTML to embed in website&#8221; field to post it to you site, final map is often not zoomed properly, and can be positioned not very well&#8230; To overcome this, find the src=&#8221;" property of iframe tag you just copy-pasted and change its value (what goes after [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=37&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>When making maps through &#8220;My Maps&#8221; and using &#8220;Paste HTML to embed in website&#8221; field to post it to you site, final map is often not zoomed properly, and can be positioned not very well&#8230; To overcome this, find the <strong>src=&#8221;"</strong> property of iframe tag you just copy-pasted and change its value (what goes after <strong>src=&#8221;</strong> and next <strong>&#8220;</strong>) with URL from &#8220;Paste link in email or IM&#8221; field.</p>
<p>Thats it :)</p>
<p>Example:</p>
<p>Paste HTML to embed in website:</p>
<blockquote><p>&lt;iframe width=&#8221;425&#8243; height=&#8221;350&#8243; frameborder=&#8221;0&#8243; scrolling=&#8221;no&#8221; marginheight=&#8221;0&#8243; marginwidth=&#8221;0&#8243; src=&#8221;<strong>http://maps.google.com/maps/ms?ie=UTF8&amp;amp;hl=en&amp;amp;msa=0&amp;amp;msid=102719723394616996847.00046f832873f2afd6c03&amp;amp;ll=55.273186,23.354578&amp;amp;spn=1.250365,4.485588&amp;amp;output=embed</strong>&#8220;&gt;&lt;/iframe&gt;&lt;br /&gt;&lt;small&gt;View &lt;a href=&#8221;http://maps.google.com/maps/ms?ie=UTF8&amp;amp;hl=en&amp;amp;msa=0&amp;amp;msid=102719723394616996847.00046f832873f2afd6c03&amp;amp;ll=55.273186,23.354578&amp;amp;spn=1.250365,4.485588&amp;amp;source=embed&#8221; style=&#8221;color:#0000FF;text-align:left&#8221;&gt;Map&lt;/a&gt; in a larger map&lt;/small&gt;</p></blockquote>
<p>Change bold text with text from Paste link in email or IM:</p>
<blockquote><p><strong>http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=102719723394616996847.00046f832873f2afd6c03&amp;ll=54.7067</strong><strong>72,25.213623&amp;spn=0.211449,0.497818&amp;z=11</strong></p></blockquote>
<p>PS. By the way if you have some other tips like this, you are welcome to post them in comments.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/37/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/37/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/37/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=37&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2009/10/27/insert-embed-google-map-with-saved-position-and-zoom-level/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
		<item>
		<title>Change encoding of all files in folder on Unix, Linux or MacOS</title>
		<link>http://jarik.wordpress.com/2009/04/05/change-encoding-of-all-files-in-folder-on-unix-linux-or-macos/</link>
		<comments>http://jarik.wordpress.com/2009/04/05/change-encoding-of-all-files-in-folder-on-unix-linux-or-macos/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 10:07:24 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MacOS]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=35</guid>
		<description><![CDATA[Here is some simple bash script to bulk change encoding of all files in directory. It uses iconv for change of encoding.
#!/bin/bash
if [ $# -ne 3 ]; then
echo &#8220;usage: &#8220;$0&#8243; dest_directory original_encoding destination_encoding&#8221;
exit
fi;
dir=$1
from=$2
to=$3
if [ ! -d $dir ]; then
mkdir $dir
fi
for f in $( ls . ); do
if [ -f $f ]; then
iconv -f $from -t [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=35&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Here is some simple bash script to bulk change encoding of all files in directory. It uses iconv for change of encoding.</p>
<blockquote><p>#!/bin/bash</p>
<p>if [ $# -ne 3 ]; then<br />
echo &#8220;usage: &#8220;$0&#8243; dest_directory original_encoding destination_encoding&#8221;<br />
exit<br />
fi;</p>
<p>dir=$1<br />
from=$2<br />
to=$3</p>
<p>if [ ! -d $dir ]; then<br />
mkdir $dir<br />
fi</p>
<p>for f in $( ls . ); do<br />
if [ -f $f ]; then<br />
iconv -f $from -t $to $f &gt; $dir$f<br />
fi<br />
done</p></blockquote>
<p>To run it, create a file recode.sh and paste above code into it. Then in terminal run</p>
<blockquote><p>chmod +x recode.sh</p></blockquote>
<p>adn then just</p>
<blockquote><p>./recode.sh encoded_dir/ ISO-8859-13 UTF-8</p></blockquote>
<p>Command mentioned above recodes all files in current directory from  ISO-8859-13 encoding to UTF-8 and copies new files to encoded_dir/ directory.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/35/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/35/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/35/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=35&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2009/04/05/change-encoding-of-all-files-in-folder-on-unix-linux-or-macos/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
		<item>
		<title>Optimize MySQL</title>
		<link>http://jarik.wordpress.com/2009/03/05/optimize-mysql/</link>
		<comments>http://jarik.wordpress.com/2009/03/05/optimize-mysql/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 15:32:05 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=33</guid>
		<description><![CDATA[To get some really good advices on your MySQL DB on server run these commands:
wget http://mysqltuner.com/mysqltuner.pl
chmod +x mysqltuner.pl
./mysqltuner.pl
Of course this would work only on unix server (not Windows;)) and you should have wget installed
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=33&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To get some really good advices on your MySQL DB on server run these commands:</p>
<blockquote><p>wget http://mysqltuner.com/mysqltuner.pl</p>
<p>chmod +x mysqltuner.pl</p>
<p>./mysqltuner.pl</p></blockquote>
<p>Of course this would work only on unix server (not Windows;)) and you should have wget installed</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=33&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2009/03/05/optimize-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
		<item>
		<title>Don&#8217;t send emails of CRON jobs in Plesk control pannel</title>
		<link>http://jarik.wordpress.com/2009/02/22/dont-send-emails-of-cron-jobs-in-plesk-control-pannel/</link>
		<comments>http://jarik.wordpress.com/2009/02/22/dont-send-emails-of-cron-jobs-in-plesk-control-pannel/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 15:17:33 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=30</guid>
		<description><![CDATA[If you use Plesk control panel to create CRON jobs and don&#8217;t want results to be sent to you by email, in Command field add &#8221; &#62; /dev/null&#8221;. For example:
php cron/my_script.php &#62; /dev/null/
This will not send you result, bt will send email if there were some errors. If you don&#8217;t wan&#8217;t to get any errors [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=30&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you use Plesk control panel to create CRON jobs and don&#8217;t want results to be sent to you by email, in Command field add &#8221; &gt; /dev/null&#8221;. For example:</p>
<blockquote><p>php cron/my_script.php &gt; /dev/null/</p></blockquote>
<p>This will not send you result, bt will send email if there were some errors. If you don&#8217;t wan&#8217;t to get any errors just add &#8221; &gt; /dev/null 2&gt;&amp;1&#8243;. For example</p>
<blockquote><p>php cron/my_script.php &gt; /dev/null 2&gt;&amp;1</p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=30&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2009/02/22/dont-send-emails-of-cron-jobs-in-plesk-control-pannel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
		<item>
		<title>Install yum on CentOS 5 (hostex VD-S)</title>
		<link>http://jarik.wordpress.com/2009/02/21/install-yum-on-centos-5-hostex-vd-s/</link>
		<comments>http://jarik.wordpress.com/2009/02/21/install-yum-on-centos-5-hostex-vd-s/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 21:47:33 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=28</guid>
		<description><![CDATA[If you got a hosting with CentOS 5, but without yum, just execute commands provided below and you&#8217;ll have a superb tool for installing new software with all dependecies.
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-libs-0.125-3.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-1.1.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-21.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2.1.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.1.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.125-3.el5.i386.rpm
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2-48.el5.i386.rpm
rpm [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=28&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If you got a hosting with CentOS 5, but without yum, just execute commands provided below and you&#8217;ll have a superb tool for installing new software with all dependecies.</p>
<blockquote><p>rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-libs-0.125-3.el5.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/gmp-4.1.4-10.el5.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/readline-5.1-1.1.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-2.4.3-21.el5.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-iniparse-0.2.3-4.el5.noarch.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-2.6.26-2.1.2.1.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/libxml2-python-2.6.26-2.1.2.1.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/expat-1.95.8-8.2.1.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-elementtree-1.2.6-5.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/sqlite-3.3.6-2.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-sqlite-1.1.7-1.2.1.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/elfutils-0.125-3.el5.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/rpm-python-4.4.2-48.el5.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/m2crypto-0.16-6.el5.2.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/python-urlgrabber-3.1.0-2.noarch.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-metadata-parser-1.1.2-2.el5.i386.rpm<br />
rpm -Uvh http://mirror.centos.org/centos-5/5/os/i386/CentOS/yum-3.2.8-9.el5.centos.1.noarch.rpm</p></blockquote>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=28&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2009/02/21/install-yum-on-centos-5-hostex-vd-s/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
		<item>
		<title>How to open password protected shared (samba) folders (MacOS)</title>
		<link>http://jarik.wordpress.com/2009/01/10/how-to-open-password-protected-shared-samba-folders/</link>
		<comments>http://jarik.wordpress.com/2009/01/10/how-to-open-password-protected-shared-samba-folders/#comments</comments>
		<pubDate>Sat, 10 Jan 2009 15:27:03 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[MacOS]]></category>
		<category><![CDATA[credentials]]></category>
		<category><![CDATA[finder]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[shared folder]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=22</guid>
		<description><![CDATA[If, in Finder, you&#8217;ll try to open shared folder (in my case, it is shared on windows machine) it just won&#8217;t open. To enter your credentials, open Finder, in menu select Go -&#62; Connect to server. And in &#8220;Server Address&#8221; field enter &#8220;sbm://&#8221;(without quotes) and IP address or name of computer with shares. For example 
smb://192.168.0.1
Then, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=22&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>If, in Finder, you&#8217;ll try to open shared folder (in my case, it is shared on windows machine) it just won&#8217;t open. To enter your credentials, open Finder, in menu select Go -&gt; Connect to server. And in &#8220;Server Address&#8221; field enter &#8220;sbm://&#8221;(without quotes) and IP address or name of computer with shares. For example </p>
<blockquote><p>smb://192.168.0.1</p></blockquote>
<p>Then, press Browse or Connect and computer will ask you for a username and password. Just enter your credentials and Voila! You have just connected to password protected shared folder ;)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=22&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2009/01/10/how-to-open-password-protected-shared-samba-folders/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get the last day of month in Excel</title>
		<link>http://jarik.wordpress.com/2008/10/13/how-to-get-the-last-day-of-month-in-excel/</link>
		<comments>http://jarik.wordpress.com/2008/10/13/how-to-get-the-last-day-of-month-in-excel/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 11:59:41 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[MS Excel]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[formula]]></category>
		<category><![CDATA[Microsoft Excel]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=16</guid>
		<description><![CDATA[I&#8217;ve searched for such functin in standard excel Date and Time functions but haven&#8217;t found anything. 1 minute of googling and very clear and short answer was foun in Understanding Nothing blog:
If a date is written in a cell A8 then the formula is
=DATE(YEAR(A8), MONTH(A8)+1, 0)
Shortly, this means that we are getting the date of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=16&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve searched for such functin in standard excel Date and Time functions but haven&#8217;t found anything. 1 minute of googling and very clear and short answer was foun in <a href="http://nothing.tmtm.com/archives/1379">Understanding Nothing blog</a>:<br />
If a date is written in a cell A8 then the formula is<br />
<code>=DATE(YEAR(A8), MONTH(A8)<strong>+1</strong>, <strong>0</strong>)</code></p>
<p>Shortly, this means that we are getting the date of 0th day of the next month or saying in peoples&#8217; language, the last day of given month.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=16&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2008/10/13/how-to-get-the-last-day-of-month-in-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
		<item>
		<title>Insert filter selects into the document (MS Excel)</title>
		<link>http://jarik.wordpress.com/2008/08/18/insert-filter-selects-into-the-document-ms-excel/</link>
		<comments>http://jarik.wordpress.com/2008/08/18/insert-filter-selects-into-the-document-ms-excel/#comments</comments>
		<pubDate>Mon, 18 Aug 2008 08:36:41 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[MS Excel]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[tips & tricks]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=7</guid>
		<description><![CDATA[Inserting filter select fields in excel is very simple but I always forget it&#8230; :)
Let`s take some simple data for example:
Now select header row:
In &#8220;Home&#8221; pane press &#8220;Sort &#38; Filter&#8221; and select Filter:
That&#8217;s all! Now you can filter rows by contents:
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=7&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Inserting filter select fields in excel is very simple but I always forget it&#8230; :)<br />
Let`s take some simple data for example:<br />
<div id="attachment_8" class="wp-caption alignnone" style="width: 310px"><a href="http://jarik.files.wordpress.com/2008/08/untitled-1.gif"><img src="http://jarik.files.wordpress.com/2008/08/untitled-1.gif?w=300&#038;h=220" alt="Microfot Excel 2007" width="300" height="220" class="size-medium wp-image-8" /></a><p class="wp-caption-text">Microfot Excel 2007</p></div><br />
Now select header row:<br />
<div id="attachment_9" class="wp-caption alignnone" style="width: 310px"><a href="http://jarik.files.wordpress.com/2008/08/untitled-2.gif"><img src="http://jarik.files.wordpress.com/2008/08/untitled-2.gif?w=300&#038;h=220" alt="Microfot Excel 2007" width="300" height="220" class="size-medium wp-image-8" /></a><p class="wp-caption-text">Microfot Excel 2007</p></div><br />
In &#8220;Home&#8221; pane press &#8220;Sort &amp; Filter&#8221; and select Filter:<br />
<div id="attachment_10" class="wp-caption alignnone" style="width: 310px"><a href="http://jarik.files.wordpress.com/2008/08/untitled-3.gif"><img src="http://jarik.files.wordpress.com/2008/08/untitled-3.gif?w=300&#038;h=220" alt="Microsoft Excel Filter tips" width="300" height="220" class="size-medium wp-image-10" /></a><p class="wp-caption-text">Microsoft Excel Filter tips</p></div><br />
That&#8217;s all! Now you can filter rows by contents:<br />
<div id="attachment_11" class="wp-caption alignnone" style="width: 310px"><a href="http://jarik.files.wordpress.com/2008/08/untitled-4.gif"><img src="http://jarik.files.wordpress.com/2008/08/untitled-4.gif?w=300&#038;h=263" alt="Microsoft Excel Filter tips" width="300" height="263" class="size-medium wp-image-11" /></a><p class="wp-caption-text">Microsoft Excel Filter tips</p></div><br />
<div id="attachment_12" class="wp-caption alignnone" style="width: 310px"><a href="http://jarik.files.wordpress.com/2008/08/untitled-5.gif"><img src="http://jarik.files.wordpress.com/2008/08/untitled-5.gif?w=300&#038;h=194" alt="MicrosoftExcel filter tips" width="300" height="194" class="size-medium wp-image-12" /></a><p class="wp-caption-text">MicrosoftExcel filter tips</p></div></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jarik.wordpress.com/7/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jarik.wordpress.com/7/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=7&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2008/08/18/insert-filter-selects-into-the-document-ms-excel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>

		<media:content url="http://jarik.files.wordpress.com/2008/08/untitled-1.gif?w=300" medium="image">
			<media:title type="html">Microfot Excel 2007</media:title>
		</media:content>

		<media:content url="http://jarik.files.wordpress.com/2008/08/untitled-2.gif?w=300" medium="image">
			<media:title type="html">Microfot Excel 2007</media:title>
		</media:content>

		<media:content url="http://jarik.files.wordpress.com/2008/08/untitled-3.gif?w=300" medium="image">
			<media:title type="html">Microsoft Excel Filter tips</media:title>
		</media:content>

		<media:content url="http://jarik.files.wordpress.com/2008/08/untitled-4.gif?w=300" medium="image">
			<media:title type="html">Microsoft Excel Filter tips</media:title>
		</media:content>

		<media:content url="http://jarik.files.wordpress.com/2008/08/untitled-5.gif?w=300" medium="image">
			<media:title type="html">MicrosoftExcel filter tips</media:title>
		</media:content>
	</item>
		<item>
		<title>Make backup of MySQL databases</title>
		<link>http://jarik.wordpress.com/2008/07/19/make-backup-of-mysql-databases/</link>
		<comments>http://jarik.wordpress.com/2008/07/19/make-backup-of-mysql-databases/#comments</comments>
		<pubDate>Sat, 19 Jul 2008 17:28:22 +0000</pubDate>
		<dc:creator>jarik</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://jarik.wordpress.com/?p=3</guid>
		<description><![CDATA[Recently I have bought virtual server for several sites but backups are not free. So I decided to write few scripts that can be run with cronjob to save backups that can be later dowloaded vie ftp manually or even uploaded by another script to some other server.
This time I will show you how to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=3&subd=jarik&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Recently I have bought virtual server for several sites but backups are not free. So I decided to write few scripts that can be run with cronjob to save backups that can be later dowloaded vie ftp manually or even uploaded by another script to some other server.</p>
<p>This time I will show you how to make backups of <a href="http://www.mysql.com">MySQL</a> databases. The most simple way to make backup of all databases is<br />
<code>mysqldump --all-databases &gt; file.sql</code><br />
It&#8217;s not very convinient if you have several databases ant want to make use of backups not only if you&#8217;ll need to restore all of them.</p>
<p>So I wrote simple <a href="http://steve-parker.org/sh/intro.shtml">script</a> that makes backups of databases to different compressed (gziped) files and stores only last n backups.</p>
<p><em>mysqlbakcup.sh:</em></p>
<blockquote><pre>#! /bin/sh
#path to config file with database names
dbs="dbs.conf"
#Name of created directory
dir=`date +%Y-%m-%d_%H%M%S/`
#Directories with old backups to leave untouched by cleaner
dirsleave=3

if [ ! -d ${dir} ]
then
  mkdir ${dir}
fi
for i in `cat ${dbs}`
do
  mysqldump ${i} | gzip &gt; ${dir}${i}.sql.gz
done
dirsleft=0
for i in `ls -r`
do
  if [ -d ${i} ]
  then
    dirsleft=`expr ${dirsleft} + 1`
    if [ "${dirsleft}" -gt "${dirsleave}" ]
    then
      rm -r -f ${i}
    fi
  fi
done
</pre>
</blockquote>
<p>That&#8217;s it. Now fill dba.conf file.</p>
<p><em>dbs.conf:</em></p>
<blockquote><p>database1</p>
<p>database2</p></blockquote>
<p>In dbs.conf just write the list of names of databases to backup.</p>
<p>This script leaves last 3 backups and deletes older ones. So you can choose how often to run it. I&#8217;m doing it every night.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/jarik.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/jarik.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jarik.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jarik.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jarik.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jarik.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jarik.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jarik.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jarik.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jarik.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jarik.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jarik.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jarik.wordpress.com&blog=4268429&post=3&subd=jarik&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://jarik.wordpress.com/2008/07/19/make-backup-of-mysql-databases/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c140c9cb788045afe21dd5f268075173?s=96&#38;d=monsterid&#38;r=X" medium="image">
			<media:title type="html">jarik</media:title>
		</media:content>
	</item>
	</channel>
</rss>