<?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>Sinan Yaşar&#039;s w3schools</title>
	<atom:link href="http://sinanyasar.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://sinanyasar.com/blog</link>
	<description></description>
	<lastBuildDate>Sat, 17 Apr 2010 12:39:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Javascript Canvas API ile ufak bir deneme</title>
		<link>http://sinanyasar.com/blog/?p=115</link>
		<comments>http://sinanyasar.com/blog/?p=115#comments</comments>
		<pubDate>Sat, 17 Apr 2010 12:28:35 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[Canvas API]]></category>
		<category><![CDATA[HTML5]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=115</guid>
		<description><![CDATA[HTML5 ile birlikte canvas web sayfalarında epey bir popüler olacak, ve bir çok şeyi mümkün kılacak gibi görünüyor. Şimdiye kadar sadece flash&#8217;la yapılabilen şeyler yavaş yavaş canvasla karşımıza çıkıyor. Şimdiden oyunlar özel javascript kütüphaneleri belirmeye başladı nette. Ben de JS Canvas API ile bir iki test yaptım burada da paylaşmak istedim, buyrun ufak bir canvas [...]]]></description>
			<content:encoded><![CDATA[<p>HTML5 ile birlikte canvas web sayfalarında epey bir popüler olacak, ve bir çok şeyi mümkün kılacak gibi görünüyor. Şimdiye kadar sadece flash&#8217;la yapılabilen şeyler yavaş yavaş canvasla karşımıza çıkıyor. Şimdiden <a href="http://www.youtube.com/watch?v=fyfu4OwjUEI&#038;feature=player_embedded">oyunlar</a> özel javascript kütüphaneleri belirmeye başladı nette. Ben de JS Canvas API ile bir iki test yaptım burada da paylaşmak istedim, buyrun ufak bir canvas örneği:</p>
<pre name="code" class="js">
    function draw() {
      var canvas = document.getElementById("canvas");
      canvas.height = document.height;
      canvas.width = document.width;
      if (canvas.getContext) {
        var ctx = canvas.getContext("2d");
        var i = 0;

        var t= setInterval(function() {
            ctx.fillStyle = "rgba(200," + i + "," + i + ",0.05)";
            ctx.fillRect (i, i, i, i);
            i++;
            if(i > document.height-i){clearInterval(t);}
        },10);

      }
    }
    window.onload = draw;
</pre>
<p>Bu bir kaç satırlık kod ile gayet hoş bir animasyon elde edilebiliyor, işte çıktısı:</p>
<p><iframe src="http://sinan.kodingen.com/sandbox/blogposts/canvastest.php" border="0" width="570" height="400"></iframe></p>
<p>Tabi bunu HTML5 destekleyen modern bir tarayıcıyla görebilirsiniz ancak.</p>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=115</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CSS rounded corners (with pure css)</title>
		<link>http://sinanyasar.com/blog/?p=97</link>
		<comments>http://sinanyasar.com/blog/?p=97#comments</comments>
		<pubDate>Mon, 13 Jul 2009 19:27:02 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[CSS/XHTML]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=97</guid>
		<description><![CDATA[I generally get rounded corners just with css, if browser does not support they see the content with flat corners. If rounded corners are not so critical for your site you can use these lines below. If you want to use all corners with same radius this is the easy way: .my_rounded_corners { border: 1px [...]]]></description>
			<content:encoded><![CDATA[<p>I generally get rounded corners just with css, if browser does not support they see the content with flat corners. If rounded corners are not so critical for your site you can use these lines below.</p>
<p>If you want to use all corners with same radius this is the easy way:</p>
<pre name="code" class="css">
.my_rounded_corners {
  border: 1px solid #ccc;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  -khtml-border-radius: 5px;
  border-radius: 5px;
}
</pre>
<p>but if you want to control every corner this is good:</p>
<pre name="code" class="css">
.my_rounded_corners {
  border: 1px solid #ccc;

  -moz-border-radius-topleft: 10px;
  -khtml-border-top-left-radius: 10px;
  -webkit-border-top-left-radius: 10px;
  border-top-left-radius: 10px;

  -moz-border-radius-topright: 0px;
  -khtml-border-top-right-radius: 0px;
  -webkit-border-top-right-radius: 0px;
  border-top-right-radius: 0px;

  -moz-border-radius-bottomleft: 4px;
  -khtml-border-bottom-left-radius: 4px;
  -webkit-border-bottom-left-radius: 4px;
  border-bottom-left-radius: 4px;

  -moz-border-radius-bottomright: 10px;
  -khtml-border-bottom-right-radius: 10px;
  -webkit-border-bottom-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
</pre>
<p>As you see in each set you have browser specific styles and on the fourth rows we declare in standard way by this we assume if in future the others (hopefully IE too) decide to implement the feature to have our style be ready for them too.</p>
<p>This works beautifully on Firefox, Safari, Camino, Chrome. For other browsers there are tons of other tweaks you can find by googleing.</p>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=97</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Kodingen.com sonunda online!</title>
		<link>http://sinanyasar.com/blog/?p=91</link>
		<comments>http://sinanyasar.com/blog/?p=91#comments</comments>
		<pubDate>Wed, 24 Jun 2009 21:33:51 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[CSS/XHTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[kodingen]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[ODE]]></category>
		<category><![CDATA[online code editing]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=91</guid>
		<description><![CDATA[Aylar süren geceli gündüzlü çalışmadan sonra nihayet Kodingen.com&#8217;u ilk beta versiyonuyla yayına aldık. Kodingen ile web üzerinde kodlamayı mümkün kılan bir yazılım geliştirme ortamı (Online Development Environment) hazırladık. Özetle neler yapılabileceğini aşağıdaki videoda anlatmaya çalıştık. Şimdilik sunduğumuz yazılım ortamı Apache/PHP/MySQL şeklinde, ileride RoR, Python, Perl ve birçok yazılım dilinin de oluşturulup test edilebilineceği bir yapıyı [...]]]></description>
			<content:encoded><![CDATA[<p>Aylar süren geceli gündüzlü çalışmadan sonra nihayet Kodingen.com&#8217;u ilk beta versiyonuyla yayına aldık.</p>
<p>Kodingen ile web üzerinde kodlamayı mümkün kılan bir yazılım geliştirme ortamı (Online Development Environment) hazırladık. Özetle neler yapılabileceğini aşağıdaki videoda anlatmaya çalıştık. Şimdilik sunduğumuz yazılım ortamı Apache/PHP/MySQL şeklinde, ileride RoR, Python, Perl ve birçok yazılım dilinin de oluşturulup test edilebilineceği bir yapıyı planlıyoruz.</p>
<p>İşte videosu: (İngilizce)</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="600" height="450" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=4924519&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="600" height="450" src="http://vimeo.com/moogaloop.swf?clip_id=4924519&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ff9933&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a title="http://kodingen.com" href="http://kodingen.com" target="_blank">http://kodingen.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=91</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript ve PHP için kısa &#8220;IF Statement&#8221; örnekleri (ternary IF statements)</title>
		<link>http://sinanyasar.com/blog/?p=85</link>
		<comments>http://sinanyasar.com/blog/?p=85#comments</comments>
		<pubDate>Tue, 23 Jun 2009 16:34:53 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[if statement]]></category>
		<category><![CDATA[js]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=85</guid>
		<description><![CDATA[Javascript için: Uzun yoldan: if(yaşım &#62; 50){ var ben = "Yaşlanıyorum."; }else{ var ben = "Hala gencim."; } Kısa yoldan: var ben = (yaşım &#62; 50) ? "Yaşlanıyorum." : "Hala gencim."; PHP için: Aslında syntax aynı, php&#8217;de değişkenler $ kullanılarak tanımlanıyor sadece. if($yaşım &#62; 50){ $ben = "Yaşlanıyorum."; }else{ $ben = "Hala gencim."; } Kısa [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Javascript için:</strong></p>
<p>Uzun yoldan:</p>
<pre name="code" class="js">
if(yaşım &gt; 50){
  var ben = "Yaşlanıyorum.";
}else{
  var ben = "Hala gencim.";
}
</pre>
<p>Kısa yoldan:</p>
<pre name="code" class="css">
var ben = (yaşım &gt; 50) ? "Yaşlanıyorum." : "Hala gencim.";
</pre>
<p><strong>PHP için:</strong></p>
<p>Aslında syntax aynı, php&#8217;de değişkenler $ kullanılarak tanımlanıyor sadece.</p>
<pre name="code" class="php">
if($yaşım &gt; 50){
  $ben = "Yaşlanıyorum.";
}else{
  $ben = "Hala gencim.";
}
</pre>
<p>Kısa yoldan:</p>
<pre name="code" class="php">
$ben = ($yaşım &gt; 50) ? "Yaşlanıyorum." : "Hala gencim.";
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=85</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Coda slider ve Lavalamp tabs</title>
		<link>http://sinanyasar.com/blog/?p=80</link>
		<comments>http://sinanyasar.com/blog/?p=80#comments</comments>
		<pubDate>Fri, 13 Feb 2009 14:17:06 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[CSS/XHTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Coda tabs]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=80</guid>
		<description><![CDATA[Ilk Turkce blog girdimi de bu vesileyle yapiyorum, Macintoshta development yapanlar Coda adli programi bilirler panic.com/coda. Web sayfalarinda cok guzel kayarak gelen tablar kullanilmis, bi benzerini de ben jQuery kullanarak yaptim. Bkz. burada kullandiklarim: jquery-1.2.6.min.js // jQuery core library (jquery cekirdek kutuphanesi demek pek hos gelmedi) jquery.lavalamp.js // yukaridaki tablarin arkaplanlarini oynatan jquery eki bundan [...]]]></description>
			<content:encoded><![CDATA[<p>Ilk Turkce blog girdimi de bu vesileyle yapiyorum, Macintoshta development yapanlar Coda adli programi bilirler panic.com/coda. Web sayfalarinda cok guzel kayarak gelen tablar kullanilmis, bi benzerini de ben jQuery kullanarak yaptim.</p>
<p>Bkz.<br />
<iframe width="550" height="500" style="border: 5px solid rgb(221, 221, 221);" src="../cillop_slider/"></iframe><br />
<span id="more-80"></span><br />
burada kullandiklarim:</p>
<p>jquery-1.2.6.min.js // jQuery core library (jquery cekirdek kutuphanesi demek pek hos gelmedi)<br />
jquery.lavalamp.js // yukaridaki tablarin arkaplanlarini oynatan jquery eki</p>
<p>bundan sonrasi css ve biraz jquery&#8230;</p>
<p>Ilk basta html dosyasina DOM yüklendigi zaman($(document).ready) calisacak jQuery kod parcasini ekliyoruz.</p>
<pre name="code" class="js">
$(document).ready(function() {

	//
	var sw = 450; //scroller width
	var sh = 300; //scroller height
	var sa = $(".scroll_item").length; //amount of total elements to be scrolled

	$(".scroll_item, .scroll_holder").css({'width': sw+'px', 'height': sh+'px'});
	$(".scrolling_box").css({'width': sw*sa+'px'});

	// create navigation
	for (i = 0; i < sa; i++){
			//alert(i);
			$(".menu").append("
<li><a href='#' class='scrollTrigger' id='scrollItem"+i+"'>Div "+i+"</a></li>

");
		};

	// slider effect - easing plugin not included
	$("a").click(function () {
	  var x = $("li>a.scrollTrigger").index(this);
	  $(".scrolling_box").animate({ marginLeft : -sw*x}, {duration: 200, easing: "swing" });
	});

	// lava menu
	$(".menu").lavaLamp({
		fx: "swing",
		speed: 200,
		click: function() {return false;}
	});		

});
</pre>
<p>şimdilik tam aciklayici yazacak zamanim yok bir sonraki sefere biraz daha acik anlatmaya calisacagim, tum html kodu asagidaki gibidir.</p>
<pre name="code" class="html">
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>

<script type="text/javascript" src="js/jquery-1.2.6.min.js"></script>
<script type="text/javascript" src="js/jquery.lavalamp.js"></script>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/lava.css" media="screen">
<link rel="stylesheet" type="text/css" href="css/scrollbox.css" media="screen">

<script type="text/javascript">
$(document).ready(function() {

	//
	var sw = 450; //scroller width
	var sh = 300; //scroller height
	var sa = $(".scroll_item").length; //amount of total elements to be scrolled

	$(".scroll_item, .scroll_holder").css({'width': sw+'px', 'height': sh+'px'});
	$(".scrolling_box").css({'width': sw*sa+'px'});

	// create navigation
	for (i = 0; i < sa; i++){
			//alert(i);
			$(".menu").append("
<li><a href='#' class='scrollTrigger' id='scrollItem"+i+"'>Div "+i+"</a></li>

");
		};

	// slider effect - easing plugin not included	
	$("a").click(function () {
	  var x = $("li>a.scrollTrigger").index(this);
	  $(".scrolling_box").animate({ marginLeft : -sw*x}, {duration: 200, easing: "swing" });
	});

	// lava menu
	$(".menu").lavaLamp({
		fx: "swing",
		speed: 200,
		click: function() {return false;}
	});		

});

</script>

</head>
<body>
<div class="menu_holder">
<ul class="menu"></ul>
</div>
<div class="scroll_holder">
<div class="scrolling_box">
<div class="scroll_item">
				<span class="content">
				Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				</span>
			</div>
<div class="scroll_item">
				<span class="content">
				ate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				</span>
			</div>
<div class="scroll_item">
				<span class="content">
				Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volupt, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volupt, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				</span>
			</div>
<div class="scroll_item">
				<span class="content">
				Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				</span>
			</div>
<div class="scroll_item">
				<span class="content">
				ate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				</span>
			</div>
<div class="scroll_item">
				<span class="content">
				Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volupt, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in volupt, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
				</span>
			</div>
</div>
</div>
<div class="buttons">
	<a style="color:#f325a2;" href="fancy.php">bi tane de oynak var burda!</a>
	</div>

</body>
</html>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=80</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Inline-block problem in firefox 1 &amp; 2</title>
		<link>http://sinanyasar.com/blog/?p=75</link>
		<comments>http://sinanyasar.com/blog/?p=75#comments</comments>
		<pubDate>Sat, 29 Nov 2008 00:34:40 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[CSS/XHTML]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=75</guid>
		<description><![CDATA[Inline-block is really nice feature of css2.1 and css3, but unfortunately you have to make a work-around to achive its result in firefox 2. Mozilla guys fixed it in firefox 3 but i believe there is still plenty of people using firefox 2 or older. So there is that trick which i mention&#8230; display: -moz-inline-block; [...]]]></description>
			<content:encoded><![CDATA[<p>Inline-block is really nice feature of css2.1 and css3, but unfortunately you have to make a work-around to achive its result in firefox 2. Mozilla guys fixed it in firefox 3 but i believe there is still plenty of people using firefox 2 or older. So there is that trick which i mention&#8230;</p>
<pre name="code" class="css">
	display: -moz-inline-block;
	display: inline-block;
</pre>
<p>This fixes the problem <img src='http://sinanyasar.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=75</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>yet another Mac OS and Windows comparison</title>
		<link>http://sinanyasar.com/blog/?p=70</link>
		<comments>http://sinanyasar.com/blog/?p=70#comments</comments>
		<pubDate>Sun, 23 Nov 2008 01:00:09 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[Mac OS]]></category>
		<category><![CDATA[OS]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[PC]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=70</guid>
		<description><![CDATA[I started my computer career with a commodore 64 then followed with Amiga 500, 500+, 600, 1200 and then to MS-DOS powered 286, 386, 486 and finally a Pentium 90Mhz was out with Windows 95&#8230; You probably guess the rest, 98, XP, (damn)Vista etc&#8230; In December 2007 switched to a Macbook Intel machine, i did [...]]]></description>
			<content:encoded><![CDATA[<p>I started my computer career with a commodore 64 <img src='http://sinanyasar.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  then followed with Amiga 500, 500+, 600, 1200 and then to MS-DOS powered 286, 386, 486 and finally a Pentium 90Mhz was out with Windows 95&#8230; You probably guess the rest, 98, XP, (damn)Vista etc&#8230;</p>
<p>In December 2007 switched to a Macbook Intel machine, i did not seriously think about a PowerPC machine  because of compatibility issues but when i heard that i could install also windows on a mac and use the both systems together i bought it. I don&#8217;t want to keep it long but it seems that i would not change back to Windows unless a miracle happens&#8230;</p>
<p>Briefly what i hate in Mac OS:</p>
<p><img class="alignnone size-medium wp-image-71" title="emoticon_unhappy" src="http://sinanyasar.com/blog/wp-content/uploads/2008/11/emoticon_unhappy.png" alt="" width="16" height="16" /> MAC : In Finder, it lists directories and folders together in selected order alpabetical, by type etc., which drives you crazy when browsing a folder among thousand files, not like in Windows Explorer which is a big minus for mac. There are work arounds and silly excuses of mac users which i can&#8217;t accept as a reasonable explanation. On most blogs they say proudly, a mac user is used to create a folder by a leading space to keep it on top of all files. As if it is a good thing to perform some extra work to achieve something really simple.</p>
<p><img class="alignnone size-medium wp-image-71" title="emoticon_unhappy" src="http://sinanyasar.com/blog/wp-content/uploads/2008/11/emoticon_unhappy.png" alt="" width="16" height="16" /> MAC: Maximize window, that is also silly that you can not make a window full screen with maximize (zoom) button. You have some tools to achieve that in mac but nothing is as good as os default behaviour.</p>
<p>And what i like about Mac OS:</p>
<p><img class="alignnone size-medium wp-image-72" title="emoticon_grin" src="http://sinanyasar.com/blog/wp-content/uploads/2008/11/emoticon_grin.png" alt="" width="16" height="16" /> MAC: Perfect visual experience. Very powerful graphics accelerator even with onboard intel graphics chipset. Another example about its power, on a windows PC with the same configuration you can never fast forward a movie smoother than a Mac does.</p>
<p><img class="alignnone size-medium wp-image-72" title="emoticon_grin" src="http://sinanyasar.com/blog/wp-content/uploads/2008/11/emoticon_grin.png" alt="" width="16" height="16" /> MAC: BEAUTY. After working on a Mac, if you switch to windows you feel like after using XP going back to Windows 98. I really do not even want to check something on my windows machine eventhough i really need it.</p>
<p>You can say that they had a good make up on Vista, but Vista loses already with its performance, unnecessary explanations everywhere, strange security warnings, by trying to make it user friendly they made it for use of grannies, i admit that a person who has not seen a computer before would use it better than any other system!</p>
<p>Actually i was planning to write more but i can&#8217;t recall everything now, maybe i will post later about this issue, and keeping short is sometimes better&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=70</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MooFlow JavaScript Image Carousel</title>
		<link>http://sinanyasar.com/blog/?p=63</link>
		<comments>http://sinanyasar.com/blog/?p=63#comments</comments>
		<pubDate>Wed, 24 Sep 2008 01:18:09 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[CSS/XHTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[carousel]]></category>
		<category><![CDATA[image gallery]]></category>
		<category><![CDATA[Mootools]]></category>
		<category><![CDATA[slideshow]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=63</guid>
		<description><![CDATA[Ihr Browser kann leider keine eingebetteten Frames anzeigen: Sie k&#246;nnen die eingebettete Seite &#252;ber den folgenden Verweis aufrufen: SELFHTML This here is Javascript that you should add on your page var myMooFlowPage = { start: function(){ /* MooFlow instance with the complete UI and Viewer */ var mf = new MooFlow($('MooFlow'), { startIndex: 1, reflection: [...]]]></description>
			<content:encoded><![CDATA[<p><iframe src="http://www.theultra.us/clients/qoncept/mooflow.html" width="100%" height="350" name="SELFHTML_in_a_box" style="border: 0px; overflow:hidden" scrolling="no"></p>
<p>Ihr Browser kann leider keine eingebetteten Frames anzeigen:<br />
  Sie k&ouml;nnen die eingebettete Seite &uuml;ber den folgenden Verweis<br />
  aufrufen: <a href="http://www.theultra.us/clients/qoncept/mooflow.html">SELFHTML</a></p>
<p></iframe><br />
<span id="more-63"></span></p>
<p>This here is Javascript that you should add on your page</p>
<pre name="code" class="js">
  var myMooFlowPage = {
	  start: function(){
		/* MooFlow instance with the complete UI and Viewer */
		var mf = new MooFlow($('MooFlow'), {
			startIndex: 1,
			reflection: 0.4,
			bgColor: 'transparent',
			useSlider: false,
			useAutoPlay: true,
			useCaption: true,
			useResize: true,
			useMouseWheel: true,
			useKeyInput: true,
			useViewer: true
		});
  	 mf.attachViewer();
		$$('.loadremote').addEvent('click', function(){
			mf.loadHTML(this.get('href'), this.get('rel'));
			return false;
		});
	}
  };
  window.addEvent('domready', myMooFlowPage.start);
</pre>
<p>And that is HTML code</p>
<pre name="code" class="php">
<div id="moo_container">
<div id="MooFlow">
    <a href="#" rel="link"><img src="style/images/cinema_d.png" title="" alt="go get some fish" /></a>
    <a href="#" rel="link"><img src="style/images/iphone00.png" title="" alt="go to Konzepte" /></a>
    <a href="style/images/mouse000.png" rel="image"><img src="style/images/mouse000.png" title="" alt="mouse mighty" /></a>
    <a href="#" rel="link"><img src="style/images/imac0000.png" title="" alt="go get some fish" /></a>
    <a href="#" rel="link"><img src="style/images/macpro00.png" title="" alt="go to Konzepte" /></a>
    <a href="#" rel="link"><img src="style/images/airport_.png" title="" alt="mouse mighty" /></a>
  </div>
</div>
</pre>
<p>That easy to achieve that beautiful effect!!!</p>
<p>This Javascript Mootools SlideFX implementation is so far one of the best which i come across around web, i already used in one of my projects and client loved it. You can see it <a href="http://www.theultra.us/clients/qoncept/">here</a>. So i decided to put here my experience with it.</p>
<p>There are several requisites that you have to download to make this nice Javascript carousel image gallery work. For those please <a href="http://www.outcut.de/MooFlow/">visit</a> the site of author of this nice mootools slideFX implementation</p>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=63</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenEngine meets SlideShowPro</title>
		<link>http://sinanyasar.com/blog/?p=50</link>
		<comments>http://sinanyasar.com/blog/?p=50#comments</comments>
		<pubDate>Fri, 19 Sep 2008 21:00:15 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[CMS]]></category>
		<category><![CDATA[FLASH]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[OpenEngine]]></category>
		<category><![CDATA[SlideShowPro]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=50</guid>
		<description><![CDATA[Today i wrote a module for OpenEngine CMS ver1.9(one of the best CMS&#8217;s that i have seen so far) that integrates the professional SlideShowPro. To use that module you have to have a working installation of openengine and unfortunately a licensed SlideShowPro but it costed me 20usd, so no big deal. for those who are [...]]]></description>
			<content:encoded><![CDATA[<p>Today i wrote a module for <a href="http://www.openengine.de" target="_blank">OpenEngine</a> CMS ver1.9(one of the best CMS&#8217;s that i have seen so far) that integrates the professional <a href="http://www.slideshowpro.net" target="_blank">SlideShowPro</a>.</p>
<p>To use that module you have to have a working installation of openengine and unfortunately a licensed SlideShowPro but it costed me 20usd, so no big deal.</p>
<p><strong><a href="http://www.sinanyasar.com/oe19/cms/website.php?id=/de/index.htm" target="_blank">for those who are not into details, here is the result of what this tutorial shows.</a></strong></p>
<p><span id="more-50"></span></p>
<p><strong>!!! IMPORTANT !!! Before you continue</strong> if you don&#8217;t know one of these components that i mentioned above, please download and play with them to get the best from tutorial below.</p>
<p>Assuming you know how to work on both of these components, i start to tell what i did:</p>
<p>Create following files and directories under your OE installation,</p>
<pre lang="bash">
/html/script/swfobject.js
/html/sspXML/ (make it writable [0777] )
/html/modules/ssp/
/html/modules/ssp/description.php
/html/modules/ssp/main.php
/html/modules/ssp/ssp.swf
</pre>
<p><em>(swfobject.js can be found <a href="http://code.google.com/p/swfobject/">here</a> put only swfobject.js file from the package)<br />
<strong>More Importantly you have to have ssp.swf, you can download it for 14 days trial from slideshowpro.net</strong><br />
</em></p>
<p>And make sure following have write permissions:</p>
<pre lang="bash">
/html/img/pool/
/html/img/thumbs/
</pre>
<p>Edit the description.php file as following:</p>
<pre lang="php">
<?
// Module Name
$mod_name = "SlideShow Pro";

// Module Version
$mod_version = "19.09.2008, v1.0";

// Module Author
$mod_author = "Sinan Yasar";

// Module Homepage
$mod_homepage = "http://www.sinanyasar.com";

// 1 = dynamic &#038; static
// 2 = dynamic &#038; static export of module code
// 3 = only dynamic
$mod_mode = 1;

// Generate PHP function to connect to openEngine database
$mod_useInternalDB = true;

?>
</pre>
<p>Edit main.php file as following:</p>
<pre lang="php">
<?
$link = connectDB();
$query = "SELECT * FROM ".$db_praefix."filepool GROUP BY folder_name";
$result = mysql_query($query);
$count = 1;
$select[0] = array("name" => "No directory selected","value" => "");
while ($row = mysql_fetch_array($result))
   {
   $select[$count] = array("name" => $row["folder_name"],"value" => $row["folder_key"]);
   $count ++;
   }
closeDB($link);
editSelect("page_text6",$select,"Selcet filepool directory");
$filepool_key = outputBlock("page_text6");

/* IMPORTANT! Change the URL below to absolute root of your site, this is
   necessary to have a working slideshow when the site is exported    */

$site_root = "http://localhost/oe/"
?>
<div id="flashcontent"></div>

    <script type="text/javascript">
		// <![CDATA[
		var so = new SWFObject("../html/modules/ssp/ssp.swf", "ssp.swf", "810", "672", "8.0.23", "#ffffff", true);
        so.addParam("scale", "noscale");
        so.addVariable('xmlfile', '../html/sspxml/<? echo $filepool_key ?>/images.xml&#038;xmlfiletype=Default');
        so.write("flashcontent");
		//document.write(gid_html);
		// ]]&gt;
	</script>
<?
if ($filepool_key != ''){
   $files = get_filepool_key($filepool_key);
	$dest = "../html/sspxml/".$filepool_key;
	if (is_dir($dest))
	{  }
	else
	{ mkdir ($dest, 0777); }
	$myFile = "../html/sspXML/".$filepool_key."/images.xml";
	$fh = fopen($myFile, 'w+') or die("can't open file");
	$stringData = "<gallery>\n\t<album id='2' title='' description='' lgPath='".$site_root."html/img/pool/' tnPath='".$site_root."html/img/thumbs/'>\n";
	fwrite($fh, $stringData);

	while ($row = mysql_fetch_array($files))
      {
      createThumb("../html/img/pool/".$row["asset_filename"],"../html/img/thumbs/".
      $row["asset_filename"],150,120);

      $stringData = "\t\t<img src='".$row["asset_filename"]."' alt='".$row["asset_alt"]."' title='".$row["asset_alt"]."'/>\n";
	  fwrite($fh, $stringData);
	  ?>
      </div>

      <?
      }
	$stringData = "\t</album>\n</gallery>";
	fwrite($fh, $stringData);
	fclose($fh);
   }
?>
</pre>
<p>Module is ready now, but we need to make a few extras for slideshowpro to make work with OE.</p>
<p>Assuming you have SSP (below is taken from SSP wiki)</p>
<blockquote><p>Open the FLA containing SlideShowPro for Flash. Open the Properties panel (Windows > Properties) and give the component instance a unique variable name. For this tutorial, we’ll name it my_ssp.</p>
<p>Now we need to write some ActionScript. Create a new layer in your movie timeline, and click its first frame so it’s highlighted. Open the Actions panel. If you are using the ActionScript 2 version of SlideShowPro, enter the following:</p>
<pre lang="ActionScript">
if (xmlfile) { my_ssp.xmlFilePath=xmlfile; }
if (xmlfiletype) { my_ssp.xmlFileType=xmlfiletype; }
</pre>
</blockquote>
<p>Moreover you need to add swfobect.swf to &#8220;head&#8221; section of your website, in our case to:</p>
<p>/cms/templates/_system/head.php</p>
<pre lang="PHP">
<script type="text/javascript" src="../html/script/swfobject.js"></script>
</pre>
<p>I think we&#8217;re done, it has been a long boring tutorial but the result is easy to use and charming <img src='http://sinanyasar.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>So we did all these, to get the functionality and end-result pictured below:</strong></p>
<p>In OpenEngine admin you create your directories and put your pictures:</p>
<div id="attachment_51" class="wp-caption alignnone" style="width: 310px"><a href="http://sinanyasar.com/blog/wp-content/uploads/2008/09/picture-2.png"><img src="http://sinanyasar.com/blog/wp-content/uploads/2008/09/picture-2-300x169.png" alt="filepool" title="filepool" width="300" height="169" class="size-medium wp-image-51" /></a><p class="wp-caption-text">filepool</p></div>
<p>then on the page that your module is added, you select the folder that you want to have your slideshow on:</p>
<div id="attachment_52" class="wp-caption alignnone" style="width: 310px"><a href="http://sinanyasar.com/blog/wp-content/uploads/2008/09/picture-1.png"><img src="http://sinanyasar.com/blog/wp-content/uploads/2008/09/picture-1-300x161.png" alt="select folder" title="select folder" width="300" height="161" class="size-medium wp-image-52" /></a><p class="wp-caption-text">select folder</p></div>
<p>Then you get this slideshow appearing on your page:</p>
<div id="attachment_53" class="wp-caption alignnone" style="width: 310px"><a href="http://sinanyasar.com/blog/wp-content/uploads/2008/09/picture-3.png"><img src="http://sinanyasar.com/blog/wp-content/uploads/2008/09/picture-3-300x253.png" alt="SlideShowPro" title="SlideShowPro" width="300" height="253" class="size-medium wp-image-53" /></a><p class="wp-caption-text">SlideShowPro</p></div>
<p><strong>Enjoy.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=50</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Javascript View Source</title>
		<link>http://sinanyasar.com/blog/?p=45</link>
		<comments>http://sinanyasar.com/blog/?p=45#comments</comments>
		<pubDate>Sun, 14 Sep 2008 20:45:49 +0000</pubDate>
		<dc:creator>Sinan Yasar</dc:creator>
				<category><![CDATA[CSS/XHTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[view source]]></category>

		<guid isPermaLink="false">http://sinanyasar.com/blog/?p=45</guid>
		<description><![CDATA[To view the source of a page a small javascript function can be used, put following to head section of your document. function ViewSource() { window.location = "view-source:" + window.location.href } And add this link to have a visual element to click on the page that you put the code above. View Source]]></description>
			<content:encoded><![CDATA[<p>To view the source of a page a small javascript function can be used, put following to head section of your document.</p>
<pre lang="javascript"><script type="text/javascript">
function ViewSource() {
window.location = "view-source:" + window.location.href }
</script></pre>
<p>
And add this link to have a visual element to click on the page that you put the code above.
</p>
<pre lang="html4strict">
<a href=javascript:ViewSource()>View Source</a>
</pre>
]]></content:encoded>
			<wfw:commentRss>http://sinanyasar.com/blog/?feed=rss2&amp;p=45</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
