<?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/"
	>

<channel>
	<title>snipeworld.com</title>
	<atom:link href="http://snipeworld.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://snipeworld.com</link>
	<description>The right man in the right place</description>
	<lastBuildDate>Tue, 26 Jan 2010 12:17:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Dynamically parameters in Ajax.Autocompleter</title>
		<link>http://snipeworld.com/2009/11/17/dynamically-parameters-in-ajax-autocompleter/</link>
		<comments>http://snipeworld.com/2009/11/17/dynamically-parameters-in-ajax-autocompleter/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 20:11:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[scriptaculous]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=129</guid>
		<description><![CDATA[Two days ago I had a problem with Ajax.Autocompleter (from script.aculo.us library). I needed to use dynamically parameters sending in request to the server. Basically they are created only statically when class is set up. To change this behaviour use this solution:
new Ajax.Autocompleter(
    'search',
    'autocomplete_choices',
    'index.php?controller=search&#38;action=autocomplete, [...]]]></description>
			<content:encoded><![CDATA[<p>Two days ago I had a problem with Ajax.Autocompleter (from <a rel="nofollow" href="http://script.aculo.us">script.aculo.us</a> library). I needed to use dynamically parameters sending in request to the server. Basically they are created only statically when class is set up. To change this behaviour use this solution:</p>
<pre>new Ajax.Autocompleter(
    'search',
    'autocomplete_choices',
    'index.php?controller=search&amp;action=autocomplete, {
        paramName: 'name',
        callback: function(element, entry) {
            return entry+"&amp;"+Form.Element.serialize('type');
        }
    }
);</pre>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/11/17/dynamically-parameters-in-ajax-autocompleter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to capitalize UTF-8 string in PHP?</title>
		<link>http://snipeworld.com/2009/11/06/how-to-capitalize-utf-8-string-in-php/</link>
		<comments>http://snipeworld.com/2009/11/06/how-to-capitalize-utf-8-string-in-php/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 07:17:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=121</guid>
		<description><![CDATA[Sometimes I have to capitalize words in my pages. The problem is these words are encoded in UTF-8. Simple solution to resolve it:
$word = 'kędzierzyn-koźle';
$word = mb_convert_case($word, MB_CASE_TITLE, 'UTF-8');
]]></description>
			<content:encoded><![CDATA[<p>Sometimes I have to capitalize words in my pages. The problem is these words are encoded in UTF-8. Simple solution to resolve it:</p>
<pre>$word = 'kędzierzyn-koźle';
$word = mb_convert_case($word, MB_CASE_TITLE, 'UTF-8');</pre>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/11/06/how-to-capitalize-utf-8-string-in-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mac OS X moving by word in terminal</title>
		<link>http://snipeworld.com/2009/11/03/mac-os-x-moving-by-word-in-terminal/</link>
		<comments>http://snipeworld.com/2009/11/03/mac-os-x-moving-by-word-in-terminal/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 07:23:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=116</guid>
		<description><![CDATA[I had a problem with moving forward and backward by word (like CTRL+left, CTRL+right in others terminals) using Mac OS X system terminal. The solution to resolve it is very simple   Open Preferences » Settings » Keybord and add key mappping:
Option + cursor left = \033b
Option + cursor right = \033f
]]></description>
			<content:encoded><![CDATA[<p>I had a problem with moving forward and backward by word (like CTRL+left, CTRL+right in others terminals) using Mac OS X system terminal. The solution to resolve it is very simple <img src='http://snipeworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Open Preferences » Settings » Keybord and add key mappping:</p>
<pre>Option + cursor left = \033b</pre>
<pre>Option + cursor right = \033f</pre>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/11/03/mac-os-x-moving-by-word-in-terminal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to use ramdisk in Firefox on Mac OS X 10.5 Leopard</title>
		<link>http://snipeworld.com/2009/10/22/how-to-use-ramdisk-in-firefox-on-mac-os-x-10-5-leopard/</link>
		<comments>http://snipeworld.com/2009/10/22/how-to-use-ramdisk-in-firefox-on-mac-os-x-10-5-leopard/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 17:26:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=108</guid>
		<description><![CDATA[Using ram as cachedisk in firefox increases productivity of flash (ex. watching youtube).
First you have to do is create ramdisk using this command:
# diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`
Next step is specify path to ramdisk in Firefox. Open new tab (or window) and type about:config.
Now you have to add new variable called browser.cache.disk.parent_directory [...]]]></description>
			<content:encoded><![CDATA[<p>Using ram as cachedisk in firefox increases productivity of flash (ex. watching youtube).</p>
<p>First you have to do is create ramdisk using this command:</p>
<pre># diskutil erasevolume HFS+ "ramdisk" `hdiutil attach -nomount ram://1165430`</pre>
<p>Next step is specify path to ramdisk in Firefox. Open new tab (or window) and type <strong>about:config</strong>.</p>
<p>Now you have to add new variable called <strong>browser.cache.disk.parent_directory</strong> with path to your created disk.</p>
<p>Set size of files which will be saved in your diskspace (<strong>browser.cache.disk.capacity</strong>) &#8211; for example 1165430 (550Mb).</p>
<p>To enable memory caching click double on <strong>browser.cache.memory.enable</strong>.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/10/22/how-to-use-ramdisk-in-firefox-on-mac-os-x-10-5-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to run screen as daemon?</title>
		<link>http://snipeworld.com/2009/10/15/how-to-run-screen-as-daemon/</link>
		<comments>http://snipeworld.com/2009/10/15/how-to-run-screen-as-daemon/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:07:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[OS]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=104</guid>
		<description><![CDATA[Use this command:
$ screen -dmS screen_name command
]]></description>
			<content:encoded><![CDATA[<p>Use this command:</p>
<pre>$ screen -dmS screen_name command</pre>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/10/15/how-to-run-screen-as-daemon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python __iter__ performance</title>
		<link>http://snipeworld.com/2009/10/07/python-__iter__-performance/</link>
		<comments>http://snipeworld.com/2009/10/07/python-__iter__-performance/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 09:10:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=100</guid>
		<description><![CDATA[$ python -m timeit -r 1000 -s "bla=[1,2,3]" "for item in bla:" "  item"
1000000 loops, best of 1000: 0.306 usec per loop
$ python -m timeit -r 1000 -s "bla=[1,2,3]" "lista=bla.__iter__()" "while True:" "  try:" "    lista.next()" "  except:" "    break"
100000 loops, best of 1000: 3.13 usec per loop
__iter__ + try..except + while is round 11x [...]]]></description>
			<content:encoded><![CDATA[<pre>$ python -m timeit -r 1000 -s "bla=[1,2,3]" "for item in bla:" "  item"
1000000 loops, best of 1000: 0.306 usec per loop</pre>
<pre>$ python -m timeit -r 1000 -s "bla=[1,2,3]" "lista=bla.__iter__()" "while True:" "  try:" "    lista.next()" "  except:" "    break"
100000 loops, best of 1000: 3.13 usec per loop</pre>
<p>__iter__ + try..except + while is round 11x slower than &#8220;for in&#8221; loop.</p>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/10/07/python-__iter__-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to replace text in many files?</title>
		<link>http://snipeworld.com/2009/10/06/how-to-replace-text-in-many-files/</link>
		<comments>http://snipeworld.com/2009/10/06/how-to-replace-text-in-many-files/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 12:27:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>
		<category><![CDATA[Perl]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=97</guid>
		<description><![CDATA[perl -pi -w -e 's/source_text/destination_text/g;' *.php
]]></description>
			<content:encoded><![CDATA[<pre>perl -pi -w -e 's/source_text/destination_text/g;' *.php</pre>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/10/06/how-to-replace-text-in-many-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to flush dns cache in Mac OS X Leopard ?</title>
		<link>http://snipeworld.com/2009/10/06/how-to-flush-dns-cache-in-mac-os-x-leopard/</link>
		<comments>http://snipeworld.com/2009/10/06/how-to-flush-dns-cache-in-mac-os-x-leopard/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 06:24:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=92</guid>
		<description><![CDATA[$ dscacheutil -flushcache
]]></description>
			<content:encoded><![CDATA[<pre>$ dscacheutil -flushcache</pre>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/10/06/how-to-flush-dns-cache-in-mac-os-x-leopard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tip: Listing only directories using ls and grep</title>
		<link>http://snipeworld.com/2009/10/02/tip-listing-only-directories-using-ls-and-grep/</link>
		<comments>http://snipeworld.com/2009/10/02/tip-listing-only-directories-using-ls-and-grep/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 08:02:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=86</guid>
		<description><![CDATA[Just use small snippet:
$ ls -l &#124; grep "^d"
]]></description>
			<content:encoded><![CDATA[<p>Just use small snippet:</p>
<pre>$ ls -l | grep "^d"</pre>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/10/02/tip-listing-only-directories-using-ls-and-grep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution to enable apache mod_rewrite under Ubuntu</title>
		<link>http://snipeworld.com/2009/06/01/solution-to-enable-apache-mod_rewrite-under-ubuntu/</link>
		<comments>http://snipeworld.com/2009/06/01/solution-to-enable-apache-mod_rewrite-under-ubuntu/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 10:32:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[mod rewrite]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=80</guid>
		<description><![CDATA[If mod rewrite is not working in your apache server under Ubuntu:
Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration
You have to run the following command in a terminal:
sudo a2enmod rewrite
  
]]></description>
			<content:encoded><![CDATA[<p>If mod rewrite is not working in your apache server under Ubuntu:</p>
<pre>Invalid command 'RewriteEngine', perhaps mis-spelled or defined by a module not included in the server configuration</pre>
<p>You have to run the following command in a terminal:</p>
<pre>sudo a2enmod rewrite</pre>
<p> <img src='http://snipeworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/06/01/solution-to-enable-apache-mod_rewrite-under-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
