<?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>goran mitev</title>
	<atom:link href="http://goranmitev.com/feed" rel="self" type="application/rss+xml" />
	<link>http://goranmitev.com</link>
	<description>Freelance PHP/Ajax Web Developer and Wordpress Expert</description>
	<lastBuildDate>Tue, 10 May 2011 20:09:49 +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>Fix upside down camera image on openSuse 11.4 64-bit</title>
		<link>http://goranmitev.com/fix-upside-down-camera-image-on-opensuse-11-4-64-bit</link>
		<comments>http://goranmitev.com/fix-upside-down-camera-image-on-opensuse-11-4-64-bit#comments</comments>
		<pubDate>Tue, 10 May 2011 20:03:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=292</guid>
		<description><![CDATA[This quick fix applies to owners of Asus laptops mostly with uvcvideo driver on openSuse 11.4 64 bit. The main point is to flip the camera image to be ok on Skype. First check if you have libv4l-32bit package installed (with the required dependencies). Then create or edit an application launcher and in the Application [...]]]></description>
			<content:encoded><![CDATA[<p>This quick fix applies to owners of Asus laptops mostly with uvcvideo driver on openSuse 11.4 64 bit. The main point is to flip the camera image to be ok on Skype. First check if you have libv4l-32bit package installed (with the required dependencies). Then create or edit an application launcher and in the Application tab  for command enter:</p>
<pre> export LIBV4LCONTROL_FLAGS=3 &amp;&amp; LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so skype</pre>
<p>That&#8217;s it. Here is a screenshot for better view.</p>
<p><img class="alignleft size-full wp-image-295" title="snapshot5" src="http://goranmitev.com/wp-content/uploads/2011/05/snapshot5.png" alt="" width="697" height="433" /></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/fix-upside-down-camera-image-on-opensuse-11-4-64-bit/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set mysql password after install</title>
		<link>http://goranmitev.com/set-mysql-password-after-install</link>
		<comments>http://goranmitev.com/set-mysql-password-after-install#comments</comments>
		<pubDate>Wed, 23 Mar 2011 08:53:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=279</guid>
		<description><![CDATA[mysqladmin -u root password new-password]]></description>
			<content:encoded><![CDATA[<pre>mysqladmin -u root password new-password</pre>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/set-mysql-password-after-install/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Formatting date values returned from MYSQL table to more readable format including time</title>
		<link>http://goranmitev.com/formatting-date-values-returned-from-mysql-table-to-more-readable-format-including-time</link>
		<comments>http://goranmitev.com/formatting-date-values-returned-from-mysql-table-to-more-readable-format-including-time#comments</comments>
		<pubDate>Tue, 01 Mar 2011 15:17:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=271</guid>
		<description><![CDATA[echo date("d-m-Y : G-i",strtotime('2011-02-26 09:47:11');]]></description>
			<content:encoded><![CDATA[<pre name="code" class="php">
echo date("d-m-Y : G-i",strtotime('2011-02-26 09:47:11');
</pre>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/formatting-date-values-returned-from-mysql-table-to-more-readable-format-including-time/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List All Hooked Functions in WordPress</title>
		<link>http://goranmitev.com/list-all-hooked-functions-in-wordpress</link>
		<comments>http://goranmitev.com/list-all-hooked-functions-in-wordpress#comments</comments>
		<pubDate>Fri, 18 Feb 2011 13:49:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=266</guid>
		<description><![CDATA[function list_hooked_functions($tag=false){ global $wp_filter; if ($tag) { $hook[$tag]=$wp_filter[$tag]; if (!is_array($hook[$tag])) { trigger_error("Nothing found for '$tag' hook", E_USER_WARNING); return; } } else { $hook=$wp_filter; ksort($hook); } echo '&#60;pre&#62;'; foreach($hook as $tag =&#62; $priority){ echo "&#60;br /&#62;&#38;gt;&#38;gt;&#38;gt;&#38;gt;&#38;gt;\t&#60;strong&#62;$tag&#60;/strong&#62;&#60;br /&#62;"; ksort($priority); foreach($priority as $priority =&#62; $function){ echo $priority; foreach($function as $name =&#62; $properties) echo "\t$name&#60;br /&#62;"; } } echo [...]]]></description>
			<content:encoded><![CDATA[<pre name="code" class="php">
function list_hooked_functions($tag=false){
 global $wp_filter;
 if ($tag) {
 $hook[$tag]=$wp_filter[$tag];
 if (!is_array($hook[$tag])) {
 trigger_error("Nothing found for '$tag' hook", E_USER_WARNING);
 return;
 }
 }
 else {
 $hook=$wp_filter;
 ksort($hook);
 }
 echo '&lt;pre&gt;';
 foreach($hook as $tag =&gt; $priority){
 echo "&lt;br /&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;\t&lt;strong&gt;$tag&lt;/strong&gt;&lt;br /&gt;";
 ksort($priority);
 foreach($priority as $priority =&gt; $function){
 echo $priority;
 foreach($function as $name =&gt; $properties) echo "\t$name&lt;br /&gt;";
 }
 }
 echo '&lt;/pre&gt;';
 return;
}
[/php]</pre>
<p>source: <a href="http://www.smashingmagazine.com/2009/08/18/10-useful-wordpress-hook-hacks/" target="_blank">http://www.smashingmagazine.com/2009/08/18/10-useful-wordpress-hook-hacks/</a></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 351px; width: 1px; height: 1px; overflow: hidden;">
<h3>List All Hooked Functions</h3>
</div>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/list-all-hooked-functions-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Easiest &#8220;check all&#8221; with jQuery</title>
		<link>http://goranmitev.com/easiest-check-all-with-jquery</link>
		<comments>http://goranmitev.com/easiest-check-all-with-jquery#comments</comments>
		<pubDate>Thu, 13 Jan 2011 12:35:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=239</guid>
		<description><![CDATA[The jquery code: &#60;script type="text/javascript"&#62; $(function () { $('.checkall').click(function () { $('.chk').attr('checked', this.checked); }); }); &#60;/script&#62; The html: &#60;input type="checkbox" class="checkall"/&#62; &#60;input type="checkbox" value="1" class="chk"/&#62; &#60;input type="checkbox" value="2" class="chk"/&#62; &#60;input type="checkbox" value="3" class="chk"/&#62; &#60;input type="checkbox" value="4" class="chk"/&#62;]]></description>
			<content:encoded><![CDATA[<p>The jquery code:</p>
<pre name="code" class="javascript">&lt;script type="text/javascript"&gt;
$(function () {
    $('.checkall').click(function () {
        $('.chk').attr('checked', this.checked);
    });
});
&lt;/script&gt;</pre>
<p>The html:</p>
<pre name="code" class="html">&lt;input type="checkbox" class="checkall"/&gt;
&lt;input type="checkbox" value="1" class="chk"/&gt;
&lt;input type="checkbox" value="2" class="chk"/&gt;
&lt;input type="checkbox" value="3" class="chk"/&gt;
&lt;input type="checkbox" value="4" class="chk"/&gt;
</pre>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/easiest-check-all-with-jquery/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get subcategories of a category in WordPress</title>
		<link>http://goranmitev.com/get-subcategories-of-a-category-in-wordpress</link>
		<comments>http://goranmitev.com/get-subcategories-of-a-category-in-wordpress#comments</comments>
		<pubDate>Sun, 26 Dec 2010 21:43:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=230</guid>
		<description><![CDATA[Due to a bug in WordPress 3.0 this returns empty array: $cats = get_categories("child_of=1"); So you can use this code instead: $parent = 1;// your category parent ID $where = "AND tt.parent = '$parent'"; $in_taxonomies = "'category'"; $orderby = 't.name'; $order = 'ASC'; $limit = 'LIMIT 0,1000'; $query = "SELECT t.name FROM $wpdb-&#62;terms AS t [...]]]></description>
			<content:encoded><![CDATA[<p>Due to a bug in WordPress 3.0 this returns empty array:</p>
<pre name="code" class="php">$cats = get_categories("child_of=1");</pre>
<p>So you can use this code instead:</p>
<pre name="code" class="php">$parent = 1;// your category parent ID
$where = "AND tt.parent = '$parent'";
$in_taxonomies = "'category'";
$orderby = 't.name';
$order = 'ASC';
$limit = 'LIMIT 0,1000';
$query = "SELECT t.name FROM $wpdb-&gt;terms AS t INNER JOIN
    $wpdb-&gt;term_taxonomy AS tt ON t.term_id = tt.term_id
    WHERE tt.taxonomy IN ($in_taxonomies) $where ORDER BY $orderby $order $limit";
$categories = $wpdb-&gt;get_results($query);</pre>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/get-subcategories-of-a-category-in-wordpress/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Detect Ajax Request in PHP</title>
		<link>http://goranmitev.com/detect-ajax-request-in-php</link>
		<comments>http://goranmitev.com/detect-ajax-request-in-php#comments</comments>
		<pubDate>Wed, 22 Dec 2010 07:20:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=224</guid>
		<description><![CDATA[if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) &#38;&#38; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') { echo "yes"; exit; }]]></description>
			<content:encoded><![CDATA[<pre name="code" class="php">if(!empty($_SERVER['HTTP_X_REQUESTED_WITH']) &amp;&amp; strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest') {
 echo "yes";
 exit;
}</pre>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/detect-ajax-request-in-php/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding a class to first and last menu items to WordPress menu</title>
		<link>http://goranmitev.com/adding-a-class-to-first-and-last-menu-items</link>
		<comments>http://goranmitev.com/adding-a-class-to-first-and-last-menu-items#comments</comments>
		<pubDate>Mon, 13 Dec 2010 11:41:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[blog]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=218</guid>
		<description><![CDATA[Add this code to your functions.php file: function addFirstLastClass($pageList) { // pattern to focus on just lis $allLisPattern = '/&#60;li(.*)&#60;\/li&#62;/s'; preg_match($allLisPattern,$pageList,$allLis); $liClassPattern =  "/&#60;li[^&#62;]+class=\"([^\"]+)/i"; // first let's break out each li $liArray = explode("\n", $allLis[0]); // count to get last li $liArrayCount = count($liArray); preg_match($liClassPattern, $liArray[0], $firstMatch); $newFirstLi = str_replace($firstMatch[1], $firstMatch[1] . " first-menu-item", $liArray[0]); [...]]]></description>
			<content:encoded><![CDATA[<p>Add this code to your functions.php file:</p>
<pre name="code" class="php">function addFirstLastClass($pageList) {

 // pattern to focus on just lis
 $allLisPattern = '/&lt;li(.*)&lt;\/li&gt;/s';
 preg_match($allLisPattern,$pageList,$allLis);
 $liClassPattern =  "/&lt;li[^&gt;]+class=\"([^\"]+)/i";

 // first let's break out each li
 $liArray = explode("\n", $allLis[0]);

 // count to get last li
 $liArrayCount = count($liArray);

 preg_match($liClassPattern, $liArray[0], $firstMatch);
 $newFirstLi = str_replace($firstMatch[1], $firstMatch[1] . " first-menu-item", $liArray[0]);

 if($liArrayCount &gt; 1){
 $lastLiPosition = $liArrayCount - 1;

 preg_match($liClassPattern, $liArray[$lastLiPosition], $lastMatch);
 $newFirstLi = str_replace($firstMatch[1], $firstMatch[1] . " first-menu-item", $liArray[0]);
 $newLastLi = str_replace($lastMatch[1], $lastMatch[1] . " last-menu-item", $liArray[$lastLiPosition]);
 }

 // replace first and last of the li array with new lis
 // rebuild newPageList
 // set first li
 $newPageList = $newFirstLi . '';
 $i = 1;
 while ($i &lt; $lastLiPosition) {
 $newPageList .= $liArray[$i];
 $i++;
 }
 // set last li
 $newPageList .= $newLastLi;

 // lastly, replace old list with new list
 $pageList = str_replace($allLis[0], $newPageList, $pageList);
 return $pageList;
}
add_filter('wp_nav_menu', 'addFirstLastClass');</pre>
<p>Thanks to <a href="http://www.eliotk.net/">Eliot Kristan</a></p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/adding-a-class-to-first-and-last-menu-items/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No sound in Pidgin in openSuse 11.2</title>
		<link>http://goranmitev.com/no-sound-in-pidgin-in-opensuse-11-2</link>
		<comments>http://goranmitev.com/no-sound-in-pidgin-in-opensuse-11-2#comments</comments>
		<pubDate>Tue, 03 Aug 2010 21:12:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[pidgin]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=144</guid>
		<description><![CDATA[If none of the options available produce sound in Pidgin, choose command and enter aplay %s.]]></description>
			<content:encoded><![CDATA[<p>If none of the options available produce sound in Pidgin, choose <strong>command </strong>and enter <strong>aplay %s.</strong></p>
<p><strong><br />
</strong></p>
<p style="text-align: center;"><strong><img class="size-full wp-image-147 aligncenter" title="snapshot1" src="http://goranmitev.com/wp-content/uploads/2010/08/snapshot1.png" alt="" width="591" height="472" /><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/no-sound-in-pidgin-in-opensuse-11-2/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Twitter Oauth Connect PHP Class</title>
		<link>http://goranmitev.com/twitter-oauth-connect-php-class</link>
		<comments>http://goranmitev.com/twitter-oauth-connect-php-class#comments</comments>
		<pubDate>Tue, 13 Jul 2010 16:39:12 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[projects]]></category>
		<category><![CDATA[oauth]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[twitter]]></category>

		<guid isPermaLink="false">http://goranmitev.com/?p=124</guid>
		<description><![CDATA[As I found many of the available PHP libraries too complicated, I decided to write small and only one PHP class for connecting with the Twitter API via Oauth. I used several ideas from the already available classes and libraries, and I came up with this one. See the demo and download it if you [...]]]></description>
			<content:encoded><![CDATA[<p>As I found many of the available PHP libraries too complicated, I decided to write small and only one PHP class for connecting with the Twitter API via Oauth. I used several ideas from the already available classes and libraries, and I came up with this one. See the demo and download it if you want.<span id="more-124"></span></p>
<h3>Download</h3>
<p><a href="http://goranmitev.com/downloads/twitteroauthconnect.tar.gz">Download here</a> version 1.0. It&#8217;s <strong>.tar.gz</strong> archive including 5 files.</p>
<h3>Demo</h3>
<p>See the demo pages I&#8217;ve setup <a href="http://goranmitev.com/demos/twitteroauthconnect/">here</a>. The access tokens are saved in session and not stored permanently.</p>
<h3>How to use it?</h3>
<p>In order to use this class you need to register an application on Twitter. You can do that <a href="http://dev.twitter.com/" target="_blank">here</a>. After you register your app, you will need to download the <a href="http://goranmitev.com/downloads/twitteroauthconnect.tar.gz">archive file</a> and extract it and upload the files to your web server.</p>
<h3>Configuring</h3>
<p>Open the file TwitterOauthConnect.php and change the details describing you app, that is the Consumer Key, Consumer Secret, and the callback url to point to the callback.php file. Use the rest of the files from the archive to configure your installation by your needs.</p>
<h3>Licence</h3>
<p>No license. Use it freely and if you find it useful consider linking to this website.</p>
<h3>Contributing</h3>
<p>Right now the comments are the only option. Maybe in the future I will consider any public free source control hosting.</p>
]]></content:encoded>
			<wfw:commentRss>http://goranmitev.com/twitter-oauth-connect-php-class/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

