<?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>Mgr. Karel Attl</title>
	<atom:link href="http://karelattl.cz/feed/" rel="self" type="application/rss+xml" />
	<link>http://karelattl.cz</link>
	<description>Vývoj software a webová řešení</description>
	<lastBuildDate>Thu, 10 May 2012 12:15:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Install Sun Java 6 on Ubuntu</title>
		<link>http://karelattl.cz/2011/07/install-sun-java-6-on-ubuntu/</link>
		<comments>http://karelattl.cz/2011/07/install-sun-java-6-on-ubuntu/#comments</comments>
		<pubDate>Sat, 23 Jul 2011 15:42:36 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Programování]]></category>

		<guid isPermaLink="false">http://karelattl.cz/?p=226</guid>
		<description><![CDATA[Run these commands: sudo add-apt-repository ppa:ferramroberto/java sudo apt-get update sudo apt-get install sun-java6-jre sun-java6-plugin sudo apt-get install sun-java6-jdk]]></description>
			<content:encoded><![CDATA[<p>Run these commands:</p>
<pre>sudo add-apt-repository ppa:ferramroberto/java
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin
sudo apt-get install sun-java6-jdk</pre>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2011/07/install-sun-java-6-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable mod rewrite in Apache2 on Linux</title>
		<link>http://karelattl.cz/2011/07/enable-mod-rewrite-in-apache2-on-linux/</link>
		<comments>http://karelattl.cz/2011/07/enable-mod-rewrite-in-apache2-on-linux/#comments</comments>
		<pubDate>Sun, 10 Jul 2011 15:00:24 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Programování]]></category>

		<guid isPermaLink="false">http://karelattl.cz/?p=210</guid>
		<description><![CDATA[First, run sudo a2enmod rewrite You have to restart Apache now: sudo /etc/init.d/apache2 restart Then edit/etc/apache2/sites-available/default: &#60;Directory /var/www/&#62; Options Indexes FollowSymLinks MultiViews # changed from None to FileInfo AllowOverride FileInfo Order allow,deny allow from all &#60;/Directory&#62;]]></description>
			<content:encoded><![CDATA[<p>First, run</p>
<p><span class="Apple-style-span" style="font-family: monospace;">sudo a2enmod rewrite</span></p>
<p>You have to restart Apache now:</p>
<pre><code>sudo /etc/init.d/apache2 restart </code></pre>
<p>Then edit<code>/etc/apache2/sites-available/default</code>:</p>
<pre><code>&lt;Directory /var/www/&gt; Options Indexes FollowSymLinks MultiViews
# changed from None to FileInfo
AllowOverride FileInfo
Order allow,deny allow from all
&lt;/Directory&gt;</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2011/07/enable-mod-rewrite-in-apache2-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix Apache Could not reliably determine&#8230;</title>
		<link>http://karelattl.cz/2011/07/fix-apache-could-not-reliably-determine/</link>
		<comments>http://karelattl.cz/2011/07/fix-apache-could-not-reliably-determine/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 19:00:22 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Programování]]></category>

		<guid isPermaLink="false">http://karelattl.cz/?p=207</guid>
		<description><![CDATA[If you suffer with following message when restarting Apache, the solution is following:  * Restarting web server apache2 apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName &#8230; waiting apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName sudo nano /etc/apache2/httpd.conf and add [...]]]></description>
			<content:encoded><![CDATA[<p title="Fix Apache Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName Error">If you suffer with following message when restarting Apache, the solution is following:</p>
<p> * Restarting web server apache2</p>
<p>apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName<br />
&#8230; waiting apache2: Could not reliably determine the server&#8217;s fully qualified domain name, using 127.0.1.1 for ServerName</p>
<pre>sudo nano /etc/apache2/httpd.conf</pre>
<p>and add the line</p>
<pre>ServerName localhost</pre>
<p>After that you can do following without warning.</p>
<pre>sudo /etc/init.d/apache2 restart</pre>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2011/07/fix-apache-could-not-reliably-determine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not working phpmyadmin on LAMP</title>
		<link>http://karelattl.cz/2011/07/not-working-phpmyadmin-on-lamp/</link>
		<comments>http://karelattl.cz/2011/07/not-working-phpmyadmin-on-lamp/#comments</comments>
		<pubDate>Sat, 09 Jul 2011 18:42:05 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Programování]]></category>

		<guid isPermaLink="false">http://karelattl.cz/?p=204</guid>
		<description><![CDATA[In case phpmyadmin cannot be accesible after installation do the following: sudo dpkg-reconfigure -plow phpmyadmin sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf sudo /etc/init.d/apache2 reload http://www.howtoforge.com/ubuntu_lamp_for_newbies]]></description>
			<content:encoded><![CDATA[<p>In case phpmyadmin cannot be accesible after installation do the following:</p>
<pre>sudo dpkg-reconfigure -plow phpmyadmin
sudo ln -s /etc/phpmyadmin/apache.conf /etc/apache2/conf.d/phpmyadmin.conf
sudo /etc/init.d/apache2 reload</pre>
<p><a href="http://www.howtoforge.com/ubuntu_lamp_for_newbies">http://www.howtoforge.com/ubuntu_lamp_for_newbies</a></p>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2011/07/not-working-phpmyadmin-on-lamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Tomcat6 to be able running in Eclipse on Ubuntu</title>
		<link>http://karelattl.cz/2011/07/installing-tomcat6-to-be-able-running-in-eclipse-on-ubuntu/</link>
		<comments>http://karelattl.cz/2011/07/installing-tomcat6-to-be-able-running-in-eclipse-on-ubuntu/#comments</comments>
		<pubDate>Wed, 06 Jul 2011 18:58:53 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Programování]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tomcat]]></category>

		<guid isPermaLink="false">http://karelattl.cz/?p=196</guid>
		<description><![CDATA[I&#8217;ve run through several issues while trying to set Tomcat 6 running embedded in Eclipse on Ubuntu 11.04. This solution worked for me. sudo apt-get install tomcat6 tomcat6-* sudo ln -s /var/lib/tomcat6/conf /usr/share/tomcat6/conf sudo ln -s /etc/tomcat6/policy.d/03catalina.policy /usr/share/tomcat6/conf/catalina.policy sudo ln -s /var/log/tomcat6 /usr/share/tomcat6/log sudo chmod -R 777 /usr/share/tomcat6/conf After running this you are now able [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve run through several issues while trying to set Tomcat 6 running embedded in Eclipse on Ubuntu 11.04. This solution worked for me.</p>
<pre>sudo apt-get install tomcat6 tomcat6-*</pre>
<pre>sudo ln -s /var/lib/tomcat6/conf /usr/share/tomcat6/conf
sudo ln -s /etc/tomcat6/policy.d/03catalina.policy /usr/share/tomcat6/conf/catalina.policy
sudo ln -s /var/log/tomcat6 /usr/share/tomcat6/log
sudo chmod -R 777 /usr/share/tomcat6/conf</pre>
<p>After running this you are now able to embed Tomcat in Eclipse and use it as usually. Pffff.</p>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2011/07/installing-tomcat6-to-be-able-running-in-eclipse-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer &#8211; animated GIF stops animation on page unload</title>
		<link>http://karelattl.cz/2011/07/internet-explorer-animated-gif-stops-animation-on-page-unload/</link>
		<comments>http://karelattl.cz/2011/07/internet-explorer-animated-gif-stops-animation-on-page-unload/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 12:56:23 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Programování]]></category>
		<category><![CDATA[GIF]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[onbeforeunload]]></category>

		<guid isPermaLink="false">http://karelattl.cz/?p=184</guid>
		<description><![CDATA[When unloading a page with animated GIF, this image stops its animation in the moment of sending new redirect request. Luckily there is a workaround. function refreshAnimatedImage() { var image = document.getElementById('animated-image-id'); image.src = image.src; } window.onbeforeunload = function() { window.setTimeout(refreshAnimatedImage, 1); }]]></description>
			<content:encoded><![CDATA[<p>When unloading a page with animated GIF, this image stops its animation in the moment of sending new redirect request. Luckily there is a workaround.</p>
<pre lang="javascript" class="1">
function refreshAnimatedImage() {
	var image = document.getElementById('animated-image-id');
        image.src = image.src;
}
window.onbeforeunload = function() {
	window.setTimeout(refreshAnimatedImage, 1);
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2011/07/internet-explorer-animated-gif-stops-animation-on-page-unload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress &#8211; obsah na stránce a jejích potomcích</title>
		<link>http://karelattl.cz/2009/01/wordpress-obsah-na-strance-a-jejich-potomcich/</link>
		<comments>http://karelattl.cz/2009/01/wordpress-obsah-na-strance-a-jejich-potomcich/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 16:49:43 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[návod]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.karelattl.cz/?p=73</guid>
		<description><![CDATA[Problém Chceme zobrazit nějaký konkrétní obsah na stránce a všech jejích potomcích. Například obrázek, který bude shodný pro všechny stránky, které tématicky zapadají do jedné kategorie webu. To znamená na rodičovské stránce a zároveň všech jejích podstránkách. Řešení Nejdříve je třeba vyrobit funkci, která zjistí kořenového rodiče podstránky. Tu vložíme do souboru functions.php. Vypadat bude [...]]]></description>
			<content:encoded><![CDATA[<h2>Problém</h2>
<p>Chceme zobrazit nějaký konkrétní obsah na stránce a všech jejích potomcích. Například obrázek, který bude shodný pro všechny stránky, které tématicky zapadají do jedné kategorie webu. To znamená na rodičovské stránce a zároveň všech jejích podstránkách.</p>
<h2>Řešení</h2>
<p>Nejdříve je třeba vyrobit funkci, která zjistí kořenového rodiče podstránky. Tu vložíme do souboru functions.php. Vypadat bude následovně:</p>
<p><code>function get_root_parent($page_id)<br />
{<br />
</code><code> </code><code>global $wpdb;<br />
$parent = $wpdb-&gt;get_var("SELECT post_parent FROM $wpdb-&gt;posts WHERE post_type='page' AND ID = '$page_id'");<br />
if ($parent == 0)</code><code><br />
return $page_id;</code><code><br />
else<br />
return get_root_parent($parent);<br />
}</code></p>
<p>Rekurzivně projde všechny rodiče až po toho posledního, kořenového.</p>
<p>A nakonec v místě, ve kterém chceme v šabloně zobrazovat obsah zavoláme s příslušným IDčkem nějakou podobnou konstrukci</p>
<p><code>&lt;?php if ($post-&gt;ID == 4 || get_root_parent($post-&gt;ID) == 4) { ?&gt;<br />
// obsah<br />
&lt;?php } ?&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2009/01/wordpress-obsah-na-strance-a-jejich-potomcich/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automatické odpojení GPRS na HTC Vox</title>
		<link>http://karelattl.cz/2008/10/automaticke-odpojeni-gprs-na-htc-vox/</link>
		<comments>http://karelattl.cz/2008/10/automaticke-odpojeni-gprs-na-htc-vox/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 15:16:38 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Windows Mobile]]></category>
		<category><![CDATA[gprs]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[návod]]></category>
		<category><![CDATA[s710]]></category>
		<category><![CDATA[vox]]></category>

		<guid isPermaLink="false">http://attl.nazory.cz/?p=44</guid>
		<description><![CDATA[Windows Mobile mají jednu nepříjemnou vlastnost. Pokud se připojíte na GPRS/EDGE a pak ukončíte program, který jej používal, zůstane připojení i nadále aktivní. Když nic jiného, mírně to vybíjí baterii. Řešení je opět v registrech. V HKEY_LOCAL_MACHINECommConnMgrPlannerSettings se nachází klíč SuspendResume - stačí buď smazat tento klíč nebo jej přejmenovat na něco jiného. Pak dojde [...]]]></description>
			<content:encoded><![CDATA[<p>Windows Mobile mají jednu nepříjemnou vlastnost. Pokud se připojíte na GPRS/EDGE a pak ukončíte program, který jej používal, zůstane připojení i nadále aktivní. Když nic jiného, mírně to vybíjí baterii. Řešení je opět v registrech.</p>
<p>V <span class="postbody"><strong>HKEY_LOCAL_MACHINECommConnMgrPlannerSettings</strong> se nachází klíč </span><em>SuspendResume </em><span class="postbody">- stačí buď smazat tento klíč nebo jej přejmenovat na něco jiného. Pak dojde k okamžitému odpojení GPRS hned po ukončení programu, který jej využíval.<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2008/10/automaticke-odpojeni-gprs-na-htc-vox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Chyba podsvícení po instalaci CorePlayeru</title>
		<link>http://karelattl.cz/2008/05/chyba-podsviceni-po-instalaci-coreplayeru/</link>
		<comments>http://karelattl.cz/2008/05/chyba-podsviceni-po-instalaci-coreplayeru/#comments</comments>
		<pubDate>Sat, 10 May 2008 09:32:14 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Windows Mobile]]></category>
		<category><![CDATA[core player]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[návod]]></category>

		<guid isPermaLink="false">http://attl.nazory.cz/?p=43</guid>
		<description><![CDATA[Instalace CorePlayer nebo TomTom 5.2 na Windows Mobile vede k rozhození podsvícení &#8211; telefon nezhasne displej. Je to známý bug WM, řešení se ukrývá v registrech. Stačí nastavit (popřípadě ji vytvořit, pokud neexistuje) hodnotu klíče Display, který se nachází v HKCUControl PanelPower např. na 30. Číslo znamená počet vteřin, za které displej úplně zhasne.]]></description>
			<content:encoded><![CDATA[<p>Instalace CorePlayer nebo TomTom 5.2 na Windows Mobile vede k rozhození podsvícení &#8211; telefon nezhasne displej. Je to známý bug WM, řešení se ukrývá v registrech.</p>
<p><span id="intelliTxt">Stačí nastavit (popřípadě ji vytvořit, pokud neexistuje) hodnotu klíče <em>Display</em>, který se nachází v <strong>HKCUControl PanelPower </strong>např. na <strong>30</strong>. Číslo znamená počet vteřin, za které displej úplně zhasne. </span></p>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2008/05/chyba-podsviceni-po-instalaci-coreplayeru/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Vypnutí threaded SMS ve Windows Mobile 6.1</title>
		<link>http://karelattl.cz/2008/05/vypnuti-threaded-sms-ve-windows-mobile-61/</link>
		<comments>http://karelattl.cz/2008/05/vypnuti-threaded-sms-ve-windows-mobile-61/#comments</comments>
		<pubDate>Fri, 09 May 2008 20:01:04 +0000</pubDate>
		<dc:creator>Karel Attl</dc:creator>
				<category><![CDATA[Windows Mobile]]></category>
		<category><![CDATA[htc]]></category>
		<category><![CDATA[návod]]></category>
		<category><![CDATA[sms]]></category>

		<guid isPermaLink="false">http://attl.nazory.cz/2008/05/09/vypnuti-threaded-sms-ve-windows-mobile-61/</guid>
		<description><![CDATA[Jednou z nových features ve WM6.1 je i &#8222;vláknový&#8220; (threaded, teď mě nenapadá vhodnější slovo) přístup ke čtení SMS. Osobně to nepovažuji za zrovna nejlepší řešení, protože pokaždé při spuštění Messagingu telefon sahá na SMS a uspořádává je podle odesilatele. Je sice o něco rychlejší vyhledávání, protože SMS jsou tak rozděleny jen podle odesilatelů, na [...]]]></description>
			<content:encoded><![CDATA[<p>Jednou z nových features ve WM6.1 je i &#8222;vláknový&#8220; (threaded, teď mě nenapadá vhodnější slovo) přístup ke čtení SMS. Osobně to nepovažuji za zrovna nejlepší řešení, protože pokaždé při spuštění Messagingu telefon sahá na SMS a uspořádává je podle odesilatele. Je sice o něco rychlejší vyhledávání, protože SMS jsou tak rozděleny jen podle odesilatelů, na druhou stranu to ale celou aplikaci neuvěřitelně zpomaluje.</p>
<p>Threaded SMS lze vypnout v registrech, a to přidáním klíče <em>SMSInboxThreadingDisabled</em>.</p>
<p>Pro vypnutí vytvořte tento klíč v <strong>HKCU/Software/Microsoft/Inbox/SettingsOEM/</strong> a nastavte jeho hodnotu na <strong>1</strong>.</p>
<p>Zpětné obnovení probíhá buď nastavením na <strong>0 </strong>nebo smazáním klíče.</p>
<p>Pokud by nefungovalo, druhá možnost je</p>
<p><strong>HKCUSoftwareMicrosoftInboxSettings</strong> a DWORD <em>SMSAvailable </em>nastavit na 0. Zapnutí threaded sms proběhne nastavením na 1.</p>
]]></content:encoded>
			<wfw:commentRss>http://karelattl.cz/2008/05/vypnuti-threaded-sms-ve-windows-mobile-61/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

