<?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>Milan&#039;s Pages</title>
	<atom:link href="http://miio.net/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://miio.net/wordpress</link>
	<description>Just another personal pages</description>
	<lastBuildDate>Mon, 01 Mar 2010 08:15:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Update MySQL table from a file</title>
		<link>http://miio.net/wordpress/2010/01/19/update-mysql-table-from-a-file/</link>
		<comments>http://miio.net/wordpress/2010/01/19/update-mysql-table-from-a-file/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 19:16:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[English]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://miio.net/wordpress/?p=77</guid>
		<description><![CDATA[Imagine that you got a file with a list of keys that specifies entries in some table that need to be set to some value. The problem is that the list is huge and the table itself is huge too. And as usual, your job needs to be done quickly.  There is one way how [...]]]></description>
			<content:encoded><![CDATA[<p>Imagine that you got a file with a list of keys that specifies entries in some table that need to be set to some value. The problem is that the list is huge and the table itself is huge too. And as usual, your job needs to be done quickly.  There is one way how to do the job with MySQL:</p>
<pre>create table tmp (entry text);</pre>
<pre>load data infile '/tmp/input.txt' into table tmp
ignore 1 lines
(@var)
set entry=substring(@var, 15, 6);</pre>
<pre>update data,tmp set data.something=something
 where tmp.entry=data.key;</pre>
<pre>drop table tmp;</pre>
<p>If you get complains about &#8216;file not found&#8217; try to use &#8216;load local data&#8217; instead of &#8216;load data&#8217;. And don&#8217;t forget that you are not limited on to update only one column to a constant, you can load other values from the input file and update table accordingly too.</p>
]]></content:encoded>
			<wfw:commentRss>http://miio.net/wordpress/2010/01/19/update-mysql-table-from-a-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Převod výpisu z účtu Fio záložny do QIF</title>
		<link>http://miio.net/wordpress/2010/01/04/prevod-vypisu-z-uctu-fio-zalozny-do-qif/</link>
		<comments>http://miio.net/wordpress/2010/01/04/prevod-vypisu-z-uctu-fio-zalozny-do-qif/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 19:04:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Czech]]></category>

		<guid isPermaLink="false">http://miio.net/wordpress/?p=66</guid>
		<description><![CDATA[Použití výpisu z Fio záložny ve formátu CSV v KMyMoney nebo jiném programu umožnujícím import dat ve formátu QIF.]]></description>
			<content:encoded><![CDATA[<p><a href="http://fio.cz">Fio záložna</a> umožnuje stáhnout výpis z účtu ve formatu CSV. Tento format je velice flexibilní, ale není možné ho přímo použít v žádné aplikaci.</p>
<p>Proto jsem vytvořil program který převede záznam ve formátu CSV do formátu <a href="http://en.wikipedia.org/wiki/Quicken_Interchange_Format">QIF</a>. <a href="http://en.wikipedia.org/wiki/Quicken_Interchange_Format">QIF</a> je formát který je čitelný v různých programech včetně domácích účetníctvích jako je <a href="http://kmymoney2.sourceforge.net/index-home.html">KMyMoney</a>. <a href="http://kmymoney2.sourceforge.net/index-home.html">KMyMoney</a> je Linuxový program pro domácí účetnictví a vybral jsem si ho protože podporuje účty v různých měnách.</p>
<p>Program je ke stažení <a href="http://miio.net/files/fio/net.miio-fiocsvtoqif-jar-with-dependencies.jar">zde</a>.  Zdrojové soubory jsou <a href="http://miio.net/files/fio/FioCsvToQif.tar.gz">zde</a> a knihovna <a href="http://nicolas.marchildon.net/gnu_qif/">gnu.qif</a> potřebná pro běh tohoto programu je <a href="http://miio.net/files/fio/gnu.qif.tar.gz">zde</a>.  License je GPLv2 a jako obvykle upozorňuji že se zříkám jakékoliv odpovědnosti za cokoliv se stane při použítí tohoto programu nebo dat jím vytvořených. Použití pouze na vlastní nebezpečí.</p>
<p>Jedná se o aplikaci v Javě pro příkazovou řádku. První parameter je jméno vstupního souboru nebo adresáře absahujícího soubory s koncovkou csv. Druhý parameter je název výstupního souboru. Konfigurační soubor ~/.fiocsvtoqif musí obsahovat čísla vlastních účtů a středníkem oddělenou značku měny ve kterém je účet veden. Příklad je zde:</p>
<pre>280001234 / 2010;CZK
240001234 / 2010;CZK
290001234 / 2010;EUR</pre>
]]></content:encoded>
			<wfw:commentRss>http://miio.net/wordpress/2010/01/04/prevod-vypisu-z-uctu-fio-zalozny-do-qif/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Livestation on Linux</title>
		<link>http://miio.net/wordpress/2009/09/21/livestation-on-linux/</link>
		<comments>http://miio.net/wordpress/2009/09/21/livestation-on-linux/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 05:15:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[English]]></category>

		<guid isPermaLink="false">http://miio.net/wordpress/?p=62</guid>
		<description><![CDATA[Livestation and sound on Linux with pulse audio how to.]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.livestation.com">Livestation</a> is now available on Linux as a <strong>native application</strong> using Qt4 and OpenAl. It is pretty application that allows you <strong>to watch many, mostly news, TV channels</strong>.</p>
<p>It&#8217;s integration with Linux is perfect and it&#8217;s dependency on Qt4 is something I really support <img src='http://miio.net/wordpress/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  because it nicely fits with my KDE4 desktop. The application uses OpenAl libraries to do audio. Installation package contains all necessary libraries in form of shared libraries, so it is even possible to remove them and use only system libraries!</p>
<p>My distribution (OpenSuse) uses Pulse over Alsa and the problem is that the OpenAl library coming with Livestation (libopenal.so.0) is a little bit older and doesn&#8217;t support pulse audio.</p>
<p><strong>The fix is simple:</strong></p>
<p>Install 32-bit OpenAl library (libopenal0-soft-32bit package on OpenSuse), remove OpenAl library provided by Livestation installation and create following configuration file for OpenAl at /etc directory (it is assumed that you have installed Livestation to /opt/Livestation before and you are performing following commands as a root user):</p>
<pre>rm /opt/Livestation/lib/libopenal.so.0
echo '#drivers=pulse' &gt;&gt; /etc/openal/alsoft.conf</pre>
<p><strong>Problem solved!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://miio.net/wordpress/2009/09/21/livestation-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
