<?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 &#187; English</title>
	<atom:link href="http://miio.net/wordpress/category/english/feed/" rel="self" type="application/rss+xml" />
	<link>http://miio.net/wordpress</link>
	<description>Just another personal pages</description>
	<lastBuildDate>Fri, 24 Sep 2010 17:34:09 +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>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>

