<?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>acogitosis</title>
	<atom:link href="http://acogitosis.krop.pl/feed" rel="self" type="application/rss+xml" />
	<link>http://acogitosis.krop.pl</link>
	<description>polscy naukowcy udowodnili: myślenie boli</description>
	<lastBuildDate>Sat, 10 Mar 2012 02:25:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[en] Solution to Postgres JDBC driver ignoring charSet directive with SQL_ASCII database</title>
		<link>http://acogitosis.krop.pl/2011-11-18-solution-to-postgres-jdbc-driver-ignoring-charset-directive-with-sql_ascii-database</link>
		<comments>http://acogitosis.krop.pl/2011-11-18-solution-to-postgres-jdbc-driver-ignoring-charset-directive-with-sql_ascii-database#comments</comments>
		<pubDate>Fri, 18 Nov 2011 17:10:21 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[Bez kategorii]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2011-11-18-solution-to-postgres-jdbc-driver-ignoring-charset-directive-with-sql_ascii-database/</guid>
		<description><![CDATA[&#8222;New&#8221; Postgres JDBC drivers check database engine version and if it&#8217;s not below 7.3 they will ignore charSet declaration. It breaks encoding of 8-bit characters if database has SQL_ASCII encoding (which basically means DONT_CARE_ANYTHING_GOES). If your database is set to &#8230; <a href="http://acogitosis.krop.pl/2011-11-18-solution-to-postgres-jdbc-driver-ignoring-charset-directive-with-sql_ascii-database">Czytaj dalej <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>&#8222;New&#8221; Postgres JDBC drivers check database engine version and if it&#8217;s not below 7.3 they will ignore charSet declaration. It breaks encoding of 8-bit characters if database has SQL_ASCII encoding (which basically means DONT_CARE_ANYTHING_GOES). If your database is set to SQL_ASCII and in reality it stores e.g. Windows-1250 (CP1250) characters, JDBC driver will assume incorrect encoding and diacritical characters will be broken.</p>

<p>Even though I understand the reasons given by Postgres developers for this (SQL_ASCII is NOT supposed to be used with anything other than 7-bit characters and it is obsolete), the solution they&#8217;re suggesting (to dump the db, and convert it to UTF-8) is not always possible. For instance, I would have a hard time telling my customer to do it, especially because their old software might break.</p>

<p>So I&#8217;ve patched the JDBC driver to accept charSet directive in JDBC URLs and also added a method setCharset to PGSimpleDataSource.</p>

<p>Here you can download it: <a href='http://acogitosis.krop.pl/wp-content/uploads/2011/11/postgresql.jar' title='Postgres JDBC driver - charSet patched'>Postgres JDBC driver &#8211; charSet patched</a></p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2011-11-18-solution-to-postgres-jdbc-driver-ignoring-charset-directive-with-sql_ascii-database/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[en] Java: File.renameTo() doesn&#8217;t work on Linux between partitions</title>
		<link>http://acogitosis.krop.pl/2011-05-11-en-java-filerenameto-doesnt-work-on-linux-between-partitions</link>
		<comments>http://acogitosis.krop.pl/2011-05-11-en-java-filerenameto-doesnt-work-on-linux-between-partitions#comments</comments>
		<pubDate>Wed, 11 May 2011 15:50:20 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>
		<category><![CDATA[Porady]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2011-05-11-en-java-filerenameto-doesnt-work-on-linux-between-partitions/</guid>
		<description><![CDATA[I have /tmp and /home on different partitions. When trying to move a file from /tmp to /home using File.renameTo() &#8212; it fails. Turns out one has to copy and delete the file himself, renameTo works only inside single partition.]]></description>
			<content:encoded><![CDATA[<p>I have /tmp and /home on different partitions. When trying to move a file from /tmp to /home using File.renameTo() &#8212; it fails. Turns out one has to copy and delete the file himself, renameTo works only inside single partition.</p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2011-05-11-en-java-filerenameto-doesnt-work-on-linux-between-partitions/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Notka dla siebie &#8211; układanie okienek w Ubuntu</title>
		<link>http://acogitosis.krop.pl/2010-12-20-notka-dla-siebie-ukladanie-okienek-w-ubuntu</link>
		<comments>http://acogitosis.krop.pl/2010-12-20-notka-dla-siebie-ukladanie-okienek-w-ubuntu#comments</comments>
		<pubDate>Mon, 20 Dec 2010 17:28:30 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>
		<category><![CDATA[Porady]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2010-12-20-notka-dla-siebie-ukladanie-okienek-w-ubuntu/</guid>
		<description><![CDATA[http://www.giuspen.com/x-tile/]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.giuspen.com/x-tile/">http://www.giuspen.com/x-tile/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2010-12-20-notka-dla-siebie-ukladanie-okienek-w-ubuntu/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dużo RAMu na Ubuntu i sysctl.conf</title>
		<link>http://acogitosis.krop.pl/2010-12-17-duzo-ramu-na-ubuntu-i-sysctlconf</link>
		<comments>http://acogitosis.krop.pl/2010-12-17-duzo-ramu-na-ubuntu-i-sysctlconf#comments</comments>
		<pubDate>Fri, 17 Dec 2010 00:24:24 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2010-12-17-duzo-ramu-na-ubuntu-i-sysctlconf/</guid>
		<description><![CDATA[Notka dla siebie &#8211; czy takie zmiany w /etc/sysctl.conf faktycznie przyspieszą działanie Ubuntu na komputerze z mnóstwem ramu? vm.swappiness=10 vm.vfs_cache_pressure=50]]></description>
			<content:encoded><![CDATA[<p>Notka dla siebie &#8211; czy takie zmiany w /etc/sysctl.conf faktycznie przyspieszą działanie Ubuntu na komputerze z mnóstwem ramu?</p>

<p><code>vm.swappiness=10<br />
vm.vfs_cache_pressure=50
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2010-12-17-duzo-ramu-na-ubuntu-i-sysctlconf/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hmmm</title>
		<link>http://acogitosis.krop.pl/2010-12-11-hmmm</link>
		<comments>http://acogitosis.krop.pl/2010-12-11-hmmm#comments</comments>
		<pubDate>Sat, 11 Dec 2010 10:46:34 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2010-12-11-hmmm/</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.nerdtests.com/ft_nt2.php">
<img src="http://www.nerdtests.com/images/badge/nt2/36ff0af6a82a98d5.png" alt="NerdTests.com says I'm an Uber Cool Nerd King.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!">
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2010-12-11-hmmm/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[en] Fix jQuery&#8217;s $.get() not working in IE (Internet Explorer)</title>
		<link>http://acogitosis.krop.pl/2010-12-10-en-fix-jquerys-get-not-working-in-ie-internet-explorer</link>
		<comments>http://acogitosis.krop.pl/2010-12-10-en-fix-jquerys-get-not-working-in-ie-internet-explorer#comments</comments>
		<pubDate>Fri, 10 Dec 2010 21:11:42 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>
		<category><![CDATA[Porady]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2010-12-10-en-fix-jquerys-get-not-working-in-ie-internet-explorer/</guid>
		<description><![CDATA[It turns out that Internet Explorer caches AJAX requests (how clever). If you&#8217;re using $.ajax(), you can pass cache: false option to it, but if &#8211; like me &#8211; you&#8217;re using $.get() and $.post(), just use $.ajaxSetup({cache: false}); somewhere at &#8230; <a href="http://acogitosis.krop.pl/2010-12-10-en-fix-jquerys-get-not-working-in-ie-internet-explorer">Czytaj dalej <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It turns out that Internet Explorer caches AJAX requests (how clever). If you&#8217;re using $.ajax(), you can pass cache: false option to it, but if &#8211; like me &#8211; you&#8217;re using $.get() and $.post(), just use</p>

<p><code>$.ajaxSetup({cache: false});</code></p>

<p>somewhere at the start of your script.</p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2010-12-10-en-fix-jquerys-get-not-working-in-ie-internet-explorer/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[en] Using ffmpeg to convert AVI video to FLV using H.264 and reasonable bitrates</title>
		<link>http://acogitosis.krop.pl/2010-12-08-en-using-ffmpeg-to-convert-avi-video-to-flv-using-h264-and-reasonable-bitrates</link>
		<comments>http://acogitosis.krop.pl/2010-12-08-en-using-ffmpeg-to-convert-avi-video-to-flv-using-h264-and-reasonable-bitrates#comments</comments>
		<pubDate>Wed, 08 Dec 2010 20:33:33 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>
		<category><![CDATA[Porady]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2010-12-08-en-using-ffmpeg-to-convert-avi-video-to-flv-using-h264-and-reasonable-bitrates/</guid>
		<description><![CDATA[Mostly for my future reference. -threads 8 should be changed to the number of CPU cores (my i7 has 4 with HT, thus I set it to 8). ffmpeg -i input.avi -acodec libfaac -ab 48k -vcodec libx264 -vpre fast -vb &#8230; <a href="http://acogitosis.krop.pl/2010-12-08-en-using-ffmpeg-to-convert-avi-video-to-flv-using-h264-and-reasonable-bitrates">Czytaj dalej <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mostly for my future reference. -threads 8 should be changed to the number of CPU cores (my i7 has 4 with HT, thus I set it to 8).</p>

<p>ffmpeg -i input.avi -acodec libfaac -ab 48k -vcodec libx264 -vpre fast -vb 500k -threads 8 -f flv output.flv</p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2010-12-08-en-using-ffmpeg-to-convert-avi-video-to-flv-using-h264-and-reasonable-bitrates/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[en] Fixing Ubuntu boot process after restoring tar backups to newly formatted disk (with UUID changed)</title>
		<link>http://acogitosis.krop.pl/2010-07-28-en-fixing-ubuntu-boot-process-after-restoring-tar-backups-to-newly-formatted-disk-with-uuid-changed</link>
		<comments>http://acogitosis.krop.pl/2010-07-28-en-fixing-ubuntu-boot-process-after-restoring-tar-backups-to-newly-formatted-disk-with-uuid-changed#comments</comments>
		<pubDate>Wed, 28 Jul 2010 17:40:19 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>
		<category><![CDATA[Porady]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2010-07-28-en-fixing-ubuntu-boot-process-after-restoring-tar-backups-to-newly-formatted-disk-with-uuid-changed/</guid>
		<description><![CDATA[Mostly note to my self for future reference. What they don&#8217;t tell You in the tar backup tutorial is that it&#8217;s not enough to edit /etc/fstab (and their instructions for grub are for grub-legacy). Because after restoring you probably have &#8230; <a href="http://acogitosis.krop.pl/2010-07-28-en-fixing-ubuntu-boot-process-after-restoring-tar-backups-to-newly-formatted-disk-with-uuid-changed">Czytaj dalej <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Mostly note to my self for future reference.</p>

<p>What they don&#8217;t tell You in the <a href="https://help.ubuntu.com/community/BackupYourSystem/TAR">tar backup tutorial</a> is that it&#8217;s not enough to edit /etc/fstab (and their instructions for grub are for grub-legacy).</p>

<p>Because after restoring you probably have new partition UUIDs, you must:</p>

<ul>
    <li>boot livecd</li>
    <li>mount your root fs</li>
    <li><code>mount -B /dev /rootfs/dev</code>, etc. (with proc and sys at least) to be able to chroot from livecd to your root fs</li>
    <li><code>chroot /rootfs</code></li>
    <li>edit /etc/fstab and change UUIDs there (new ones you can get using <code>blkid</code></li>
    <li>do <code>sudo dpkg-reconfigure -plow grub-pc</code> to automatically upgrade grub config files, just let it install to the drive(s) it was on</li>
    <li>do <code>update-initramfs -u</code> so UUID stored inside initramfs get updated, too</li>
</ul>

<p>Then you should be able to boot it.</p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2010-07-28-en-fixing-ubuntu-boot-process-after-restoring-tar-backups-to-newly-formatted-disk-with-uuid-changed/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[en] Fixing VirtualBox 3.1, 3.2 (and others?) slowness for Ubuntu host and Windows XP guest</title>
		<link>http://acogitosis.krop.pl/2010-07-08-en-fixing-virtualbox-31-32-and-others-slowness-for-ubuntu-host-and-windows-xp-guest</link>
		<comments>http://acogitosis.krop.pl/2010-07-08-en-fixing-virtualbox-31-32-and-others-slowness-for-ubuntu-host-and-windows-xp-guest#comments</comments>
		<pubDate>Thu, 08 Jul 2010 19:30:44 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>
		<category><![CDATA[Porady]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2010-07-08-en-fixing-virtualbox-31-32-and-others-slowness-for-ubuntu-host-and-windows-xp-guest/</guid>
		<description><![CDATA[Install VirtualBox Guest Additions in Windows&#8217; safe-mode so system file protection doesn&#8217;t interfere with the installation, it&#8217;s that simple and fixed all my VirtualBox performance problems.]]></description>
			<content:encoded><![CDATA[<p>Install VirtualBox Guest Additions in Windows&#8217; <b>safe-mode</b> so system file protection doesn&#8217;t interfere with the installation, it&#8217;s that simple and fixed all my VirtualBox performance problems.</p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2010-07-08-en-fixing-virtualbox-31-32-and-others-slowness-for-ubuntu-host-and-windows-xp-guest/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[en] Fix PNG images dark in IE</title>
		<link>http://acogitosis.krop.pl/2009-06-26-en-fix-png-images-dark-in-ie</link>
		<comments>http://acogitosis.krop.pl/2009-06-26-en-fix-png-images-dark-in-ie#comments</comments>
		<pubDate>Fri, 26 Jun 2009 10:29:14 +0000</pubDate>
		<dc:creator>Grzegorz</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[Informatyka]]></category>
		<category><![CDATA[Krótkie]]></category>
		<category><![CDATA[Porady]]></category>

		<guid isPermaLink="false">http://acogitosis.krop.pl/2009-06-26-en-fix-png-images-dark-in-ie/</guid>
		<description><![CDATA[IE can&#8217;t do anything right. If you save some graphical elements to PNG, and try to put them on an area with CSS-defined color, there will be a difference even if you used the same color in the PNG &#8212; &#8230; <a href="http://acogitosis.krop.pl/2009-06-26-en-fix-png-images-dark-in-ie">Czytaj dalej <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>IE can&#8217;t do anything right. If you save some graphical elements to PNG, and try to put them on an area with CSS-defined color, there will be a difference even if you used the same color in the PNG &#8212; IE renders PNGs darker than it should.
The reason for this is misinterpretation of gAMA frame saved in PNGs that makes it possible to better color-match pictures. The fix is to remove this frame, and doing it on Ubuntu is as easy as:</p>

<p><code>aptitude install pngcrush<br/>
cd your-graphics-directory<br/>
mkdir fixed<br/>
find . -type f -exec pngcrush -d fixed -rem cHRM -rem gAMA -rem iCCP -rem sRGB {} \;<br/>
</code></p>

<p>Now you have a &#8222;fixed&#8221; directory where you have PNGs that will work properly in IE (and are a bit smaller which is a nice side effect). If you&#8217;re sure they&#8217;re ok, just do</p>

<p><code>mv fixed/* ./<br/>
rmdir fixed<br/>
</code></p>

<p>That&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://acogitosis.krop.pl/2009-06-26-en-fix-png-images-dark-in-ie/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

