<?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>Gundars Mēness</title>
	<atom:link href="http://gundars.me/feed/" rel="self" type="application/rss+xml" />
	<link>http://gundars.me</link>
	<description>WEB Developer and Administrator</description>
	<lastBuildDate>Mon, 06 Feb 2012 20:58:20 +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>Correct MySQL query with PHP</title>
		<link>http://gundars.me/wordpress-php/correct-mysql-query-with-php/</link>
		<comments>http://gundars.me/wordpress-php/correct-mysql-query-with-php/#comments</comments>
		<pubDate>Mon, 06 Feb 2012 20:37:23 +0000</pubDate>
		<dc:creator>Gundars</dc:creator>
				<category><![CDATA[wordpress-php]]></category>

		<guid isPermaLink="false">http://gundars.me/?p=492</guid>
		<description><![CDATA[Who doesn&#8217;t know how to do a query, right? Well, today I spent couple of hours looking for cause of problem inside source code of WordPress plugin. Premium wordpress plugin I bought, which means they wasted both my time and money. When I finally found the mistake, it turned out to be a way they ]]></description>
			<content:encoded><![CDATA[<p>Who doesn&#8217;t know how to do a query, right? Well, today I spent couple of hours looking for cause of problem inside source code of WordPress plugin. Premium wordpress plugin I bought, which means they wasted both my time and money.</p>
<p>When I finally found the mistake, it turned out to be a way they fetched mysql query results. They were trying to fetch row as assoc array and assume it works. They were wrong. I sent them fix, they thanked me and we all will live happily ever after. But just in case someone has had or will have the same issue, here is a fool proof example of php mysql query fetching one or more rows, that will work:</p>
<pre>
&lt;?php
$sql = &quot;SELECT id FROM users WHERE name=&#039;$first_name&#039;&quot;;
$result = mysql_query($sql);
if ($result &amp;&amp; mysql_num_rows($result)==1) {
  $row = mysql_fetch_row ($result);
  $id = $row[0];
} elseif ($result &amp;&amp; mysql_num_rows($result)&gt;1) {
  while($row = mysql_fetch_array($result)) {
    $id = $row[0];
  }
}
?&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://gundars.me/wordpress-php/correct-mysql-query-with-php/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Remove the user name in top panel</title>
		<link>http://gundars.me/ubuntu/how-to-remove/remove-the-user-name-in-top-panel/</link>
		<comments>http://gundars.me/ubuntu/how-to-remove/remove-the-user-name-in-top-panel/#comments</comments>
		<pubDate>Mon, 23 Jan 2012 06:30:07 +0000</pubDate>
		<dc:creator>Gundars</dc:creator>
				<category><![CDATA[How to remove]]></category>

		<guid isPermaLink="false">http://www.ubuntu-install.com/?p=121</guid>
		<description><![CDATA[Type the following command in terminal: gconftool -s /system/indicator/me/display --type int 0 If you want to restore it, use this command:: gconftool -s /system/indicator/me/display --type int 1 If it fails, use dconf: 1) Instal it using sudo apt-get install dconf-tools 2) Remove username dconf write /apps/indicator-session/user-show-menu false 3) Log out and log in]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-126" title="withname" src="http://gundars.me/wp-content/uploads/2011/12/withname.png" alt="" width="258" height="106" /><img class="alignnone size-full wp-image-127" title="without name" src="http://gundars.me/wp-content/uploads/2011/12/without-name.png" alt="" width="244" height="102" /></p>
<p>Type the following command in terminal:</p>
<pre><strong>gconftool -s /system/indicator/me/display --type int 0</strong></pre>
<p>If you want to restore it, use this command::</p>
<pre><strong>gconftool -s /system/indicator/me/display --type int 1</strong></pre>
<h2>If it fails, use dconf:</h2>
<p>1) Instal it using <strong>sudo apt-get install dconf-tools</strong></p>
<p>2) Remove username <strong>dconf write /apps/indicator-session/user-show-menu false</strong></p>
<p>3) Log out and log in</p>
]]></content:encoded>
			<wfw:commentRss>http://gundars.me/ubuntu/how-to-remove/remove-the-user-name-in-top-panel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>KGmailNotifier</title>
		<link>http://gundars.me/ubuntu/application-indicators-gnome-applets/kgmailnotifier/</link>
		<comments>http://gundars.me/ubuntu/application-indicators-gnome-applets/kgmailnotifier/#comments</comments>
		<pubDate>Sun, 22 Jan 2012 14:55:35 +0000</pubDate>
		<dc:creator>Gundars</dc:creator>
				<category><![CDATA[Application indicators]]></category>

		<guid isPermaLink="false">http://www.ubuntu-install.com/?p=113</guid>
		<description><![CDATA[When a new mail has arrived in your inbox a small window will pop up, showing author and subject of the newest mail. The underlined link will take you right to your inbox (using your preferred browser). It also provides some additional features such as audio notification and support for LEDs on notebooks and multimedia ]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-115" title="KGmailNotifier" src="http://gundars.me/wp-content/uploads/2011/12/Screenshot-at-2011-12-22-175154.png" alt="KGmailNotifier" width="235" height="215" /></p>
<p>When a new mail has arrived in your inbox a small window will pop up, showing author and subject of the newest mail. The underlined link will take you right to your inbox (using your preferred browser).</p>
<p>It also provides some additional features such as audio notification and support for LEDs on notebooks and multimedia keyboards.</p>
<p>Find KGmailNotifier in Ubuntu Software Centre.</p>
<p>Visit <a href="http://kde-apps.org/content/show.php/KGmailNotifier?content=55375">Developers website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gundars.me/ubuntu/application-indicators-gnome-applets/kgmailnotifier/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Touchpad Indicator</title>
		<link>http://gundars.me/ubuntu/application-indicators-gnome-applets/touchpad-indicator/</link>
		<comments>http://gundars.me/ubuntu/application-indicators-gnome-applets/touchpad-indicator/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 10:38:32 +0000</pubDate>
		<dc:creator>Gundars</dc:creator>
				<category><![CDATA[Application indicators]]></category>

		<guid isPermaLink="false">http://www.ubuntu-install.com/?p=60</guid>
		<description><![CDATA[Even though new Ubuntu versions will switch your touchpad off while your typing automatically, this is still a great tool to control touchpad status from indicator. Get it from ppa:atareao/atareao and install package touchpad-indicator Visit Developers website]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-108" title="Touchpad indicator" src="http://gundars.me/wp-content/uploads/2011/12/Screenshot-at-2011-12-22-165553.png" alt="Touchpad indicator" width="301" height="165" /></p>
<p>Even though new Ubuntu versions will switch your touchpad off while your typing automatically, this is still a great tool to control touchpad status from indicator.</p>
<p>Get it from <strong>ppa:atareao/atareao</strong> and install package <strong>touchpad-indicator</strong></p>
<p>Visit <a href="https://launchpad.net/touchpad-indicator">Developers website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gundars.me/ubuntu/application-indicators-gnome-applets/touchpad-indicator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ClassicMenu Indicator</title>
		<link>http://gundars.me/ubuntu/application-indicators-gnome-applets/classicmenu-indicator/</link>
		<comments>http://gundars.me/ubuntu/application-indicators-gnome-applets/classicmenu-indicator/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 10:34:45 +0000</pubDate>
		<dc:creator>Gundars</dc:creator>
				<category><![CDATA[Application indicators]]></category>

		<guid isPermaLink="false">http://www.ubuntu-install.com/?p=56</guid>
		<description><![CDATA[Provides a simple way to get a classic GNOME-style application menu for those who prefer this over the Unity dash menu. Various installation methods described at Developers website]]></description>
			<content:encoded><![CDATA[<p><a href="http://gundars.me/wp-content/uploads/2011/12/Screenshot-at-2011-12-22-153959.png"><img class="alignnone size-full wp-image-101" title="Classic Menu applet indicator" src="http://gundars.me/wp-content/uploads/2011/12/Screenshot-at-2011-12-22-153959.png" alt="Classic Menu applet indicator" width="416" height="368" /></a></p>
<p>Provides a simple way to get a classic GNOME-style application menu for those who prefer this over the Unity dash menu.</p>
<p>Various installation methods described at <a href="http://www.florian-diesch.de/software/classicmenu-indicator/">Developers website</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gundars.me/ubuntu/application-indicators-gnome-applets/classicmenu-indicator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

