<?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>klevismiho.com</title>
	<atom:link href="http://klevismiho.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://klevismiho.com</link>
	<description>Web Design Solutions in Albania</description>
	<lastBuildDate>Sun, 05 Sep 2010 16:35:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>PHP extract the first x characters of a text</title>
		<link>http://klevismiho.com/php-extract-the-first-x-characters-of-a-text/</link>
		<comments>http://klevismiho.com/php-extract-the-first-x-characters-of-a-text/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 16:35:18 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=121</guid>
		<description><![CDATA[This function extracts the first x characters of a given text, which we get from a database. This is usually performed on posts on a blog, where you don&#8217;t want to display the whole post in the homepage, but just let&#8217;s say 500 characters of the post. Ok here is the function: function extract($post_id, $length) [...]]]></description>
			<content:encoded><![CDATA[<p>This function extracts the first x characters of a given text, which we get from a database.<br />
This is usually performed on posts on a blog, where you don&#8217;t want to display the whole post in the homepage, but just let&#8217;s say 500 characters of the post. Ok here is the function:</p>
<pre class="brush: php">
function extract($post_id, $length) {
	$sql = &quot;SELECT id, LEFT(info, $length) as extraction FROM posts WHERE id = $post_id&quot;;
	$query = mysql_query($sql);

	while($row = mysql_fetch_array($query)) {
		$extraction = $row[&#039;extraction&#039;];
		$space = strrpos($extraction, &#039; &#039;);
		return substr($extraction, 0, $space);
	}
}
</pre>
<p>$post_id is the id of the post in the database.<br />
$length is the length of the extraction.</p>
<p>Then I&#8217;ve used the $space do get the position of the last occurence of a space (&#8216; &#8216;) in the $extraction.<br />
This is needed to not return a text which is broken in half (for example &#8220;this pages address is klevismi&#8221;, instead of &#8220;this pages address is klevismiho.com&#8221;).</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/php-extract-the-first-x-characters-of-a-text/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cancel Friend Request in Facebook</title>
		<link>http://klevismiho.com/cancel-friend-request-in-facebook/</link>
		<comments>http://klevismiho.com/cancel-friend-request-in-facebook/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 18:50:07 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=114</guid>
		<description><![CDATA[Method 1 First Block the person you sent your friend request, then Unblock him/her in your Privacy Settings. Method 2 Go to Account then Edit Friends There you have a list with your friends and pending friend requests. Click on the X to remove a pending friend request.]]></description>
			<content:encoded><![CDATA[<h3>Method 1</h3>
<p>First <strong>Block</strong> the person you sent your friend request, then <strong>Unblock</strong> him/her in your <strong>Privacy Settings</strong>.</p>
<h3>Method 2</h3>
<p>Go to <strong>Account</strong> then <strong>Edit Friends</strong><br />
There you have a list with your friends and pending friend requests.<br />
Click on the <strong>X</strong> to remove a pending friend request.</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/cancel-friend-request-in-facebook/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook Face Detection</title>
		<link>http://klevismiho.com/facebook-face-detection/</link>
		<comments>http://klevismiho.com/facebook-face-detection/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 10:09:49 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=112</guid>
		<description><![CDATA[I just noticed that facebook has added a new feature in the photo tagging. A face detection mechanism. The thing here is that if there is a photo with people in it, and you hover the mouse over a face, there will be a rectangle frame over the face with the caption &#8220;Tag This Photo&#8221;.]]></description>
			<content:encoded><![CDATA[<p>I just noticed that facebook has added a new feature in the photo tagging.<br />
A face detection mechanism.<br />
The thing here is that if there is a photo with people in it, and you hover the mouse over a face,<br />
there will be a rectangle frame over the face with the caption &#8220;Tag This Photo&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/facebook-face-detection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secret of Monkey Island SE X3Daudio1_6.dll missing error</title>
		<link>http://klevismiho.com/secret-of-monkey-island-se-x3daudio1_6-dll-missing-erro/</link>
		<comments>http://klevismiho.com/secret-of-monkey-island-se-x3daudio1_6-dll-missing-erro/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 23:41:37 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[Bugs & Fixes]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=109</guid>
		<description><![CDATA[The bug When I run MISE.exe, I get an error that X3Daudio1_6.dll is missing. The game won&#8217;t open. The Solution Download the Directx End-User Runtime from microsoft.]]></description>
			<content:encoded><![CDATA[<p><strong>The bug</strong></p>
<p>When I run MISE.exe, I get an error that X3Daudio1_6.dll is missing. The game won&#8217;t open.</p>
<p><strong>The Solution</strong></p>
<p>Download the Directx End-User Runtime from microsoft.</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/secret-of-monkey-island-se-x3daudio1_6-dll-missing-erro/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Top 5 PHP functions you cannot live without</title>
		<link>http://klevismiho.com/top-5-php-functions-you-cannot-live-without/</link>
		<comments>http://klevismiho.com/top-5-php-functions-you-cannot-live-without/#comments</comments>
		<pubDate>Wed, 11 Aug 2010 08:32:36 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=102</guid>
		<description><![CDATA[1. include() 2. isset() 3. mysql_query() 4. mysql_fetch_array() 5. substr()]]></description>
			<content:encoded><![CDATA[<p>1. include()<br />
2. isset()<br />
3. mysql_query()<br />
4. mysql_fetch_array()<br />
5. substr()</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/top-5-php-functions-you-cannot-live-without/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UserCake User Management System</title>
		<link>http://klevismiho.com/usercake-user-management-system/</link>
		<comments>http://klevismiho.com/usercake-user-management-system/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 10:11:28 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[Open Source for Web]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=100</guid>
		<description><![CDATA[If you need a simple user management system in php go with UserCake. Don&#8217;t confuse it with CakePHP, it has nothing to do with it. I&#8217;ve used UserCake on a project, and it was very nice to use, so I recommend it. And the best thing is that it is open source.]]></description>
			<content:encoded><![CDATA[<p>If  you need a simple user management system in php go with <a href="http://usercake.com" target="_blank">UserCake</a>.<br />
Don&#8217;t confuse it with CakePHP, it has nothing to do with it.<br />
I&#8217;ve used UserCake on a project, and it was very nice to use, so I recommend it.<br />
And the best thing is that it is open source.</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/usercake-user-management-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Steps I do to create a website for myself without a CMS.</title>
		<link>http://klevismiho.com/steps-i-do-to-create-a-website-for-myself-without-a-cms/</link>
		<comments>http://klevismiho.com/steps-i-do-to-create-a-website-for-myself-without-a-cms/#comments</comments>
		<pubDate>Sun, 08 Aug 2010 15:28:43 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=87</guid>
		<description><![CDATA[1. Brainstorming The first thing I do is a brainstorming session. I think of the features the website will have, write them down. Then I ask friends, they could have good ideas too. 2. Sketching I get a piece of an A4 paper, a pencil, and begin to sketch the layout for the website. Sometimes [...]]]></description>
			<content:encoded><![CDATA[<p><strong>1. Brainstorming</strong><br />
The first thing I do is a brainstorming session.<br />
I think of the features the website will have, write them down. Then I ask friends, they could have good ideas too.</p>
<p><strong>2. Sketching</strong><br />
I get a piece of an A4 paper, a pencil, and begin to sketch the layout for the website.<br />
Sometimes I use a graphic tablet to do the sketch on photoshop, but I really prefer paper and pencil.</p>
<p><strong>3. Photoshoping</strong><br />
From the ugly, curvy lines paper sketch, I transform it into a clean image using photoshop.<br />
Applying colors. Colors are not used at a random order. I&#8217;ll use a color wheel, and with the wheels rules I stick to a color pattern.</p>
<p><strong>4. Slicing (or not)</strong><br />
With photoshop I slice the image to fit my needs. I try to slice as few images as possible.<br />
To say the truth, slicing looks outdated to me.</p>
<p><strong>5. CSS/XHTML</strong><br />
I do a paralel work on an external css file, and the main index file. I create the layout which looks like the image in photoshop.</p>
<p><strong>6. Lorem ipsum</strong><br />
I add lorem ipsum text to the content area.</p>
<p><strong>8. Fix details</strong><br />
A little padding here, a little padding there, the link color is not right. Those kind of things I do at the end until I&#8217;m really satisfied.</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/steps-i-do-to-create-a-website-for-myself-without-a-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sonisphere Istanbul 2010</title>
		<link>http://klevismiho.com/sonisphere-istanbul-2010/</link>
		<comments>http://klevismiho.com/sonisphere-istanbul-2010/#comments</comments>
		<pubDate>Wed, 23 Jun 2010 09:41:19 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[Fun]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=68</guid>
		<description><![CDATA[Those bands will perform live from 25-28 of June 2010 in Istanbul: Metallica Rammstein Slayer Manowar Megadeth Anthrax Alice In Chains Accept Stone Sour Volbeat Gren Pentagram Murder King Hayko Cepkin Blacktooth Ete Kurttekin Rammstein was my purpose to go on this concert, so I can&#8217;t wait to see them. \m/]]></description>
			<content:encoded><![CDATA[<div style="width: 250px; float: left;"><a href="http://klevismiho.com/images/sonisphere.jpg"><img class="alignleft size-medium wp-image-69" title="Sonisphere Istanbul" src="http://klevismiho.com/images/sonisphere.jpg" alt="Sonisphere Istanbul" width="210" height="300" /></a></div>
<div style="padding-left: 20px;">
Those bands will perform live from 25-28 of June 2010 in Istanbul:</p>
<ul>
<li>Metallica</li>
<li>Rammstein</li>
<li>Slayer</li>
<li>Manowar</li>
<li>Megadeth</li>
<li>Anthrax</li>
<li>Alice In Chains</li>
<li>Accept</li>
<li>Stone Sour</li>
<li>Volbeat</li>
<li>Gren</li>
<li>Pentagram</li>
<li>Murder King</li>
<li>Hayko Cepkin</li>
<li>Blacktooth</li>
<li>Ete Kurttekin</li>
</ul>
</div>
<p>Rammstein was my purpose to go on this concert, so I can&#8217;t wait to see them. \m/</p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/sonisphere-istanbul-2010/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Happy Birthday PHP</title>
		<link>http://klevismiho.com/happy-birthday-php/</link>
		<comments>http://klevismiho.com/happy-birthday-php/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 07:14:25 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[PHP/MySQL]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=61</guid>
		<description><![CDATA[On 8 June 2010 PHP became 15 years old, keep on going PHP.]]></description>
			<content:encoded><![CDATA[<p>On 8 June 2010 PHP became 15 years old, keep on going PHP.</p>
<p><img src="/images/php_birthday.jpg" alt="PHP Cake" title="PHP Cake" /></p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/happy-birthday-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kinsey (2004)</title>
		<link>http://klevismiho.com/kinsey-2004/</link>
		<comments>http://klevismiho.com/kinsey-2004/#comments</comments>
		<pubDate>Sat, 05 Jun 2010 17:00:35 +0000</pubDate>
		<dc:creator>klevisi</dc:creator>
				<category><![CDATA[Movies]]></category>

		<guid isPermaLink="false">http://klevismiho.com/?p=58</guid>
		<description><![CDATA[This movie builds on the life of Alfred Kinsey (1894 &#8211; 1956), a biologist and sex researcher, also known as the father of the modern sexual revolution. He studies the sexual behaviour of American people in 1948 and 1953 and releases reports. His researches include sex histories of over 18.000 people. Alfred became famous because [...]]]></description>
			<content:encoded><![CDATA[<p>This movie builds on the life of Alfred Kinsey (1894 &#8211; 1956), a biologist and sex researcher, also known as the father of the modern sexual revolution. He studies the sexual behaviour of American people in 1948 and 1953 and releases reports.<br />
His researches include sex histories of over 18.000 people.<br />
Alfred became famous because at this time sex talk was a taboo, so people had a little knowledge about sex. The little knowledge made people feeling guilty and worried.<br />
He gave sex advice to many people. </p>
]]></content:encoded>
			<wfw:commentRss>http://klevismiho.com/kinsey-2004/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/


Served from: klevismiho.com @ 2010-09-05 18:02:23 -->