<?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>irfaN &#187; İpuçları</title>
	<atom:link href="http://blog.irfandurmus.com/kategori/ipuclari/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.irfandurmus.com</link>
	<description>Design, Development, Climbing, Life</description>
	<lastBuildDate>Sat, 24 Jul 2010 02:31:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>jQuery Multiple Selector</title>
		<link>http://blog.irfandurmus.com/jquery-multiple-selector/</link>
		<comments>http://blog.irfandurmus.com/jquery-multiple-selector/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 23:28:35 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[jQuery]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[jquery each]]></category>
		<category><![CDATA[jquery selectors]]></category>
		<category><![CDATA[selectors]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=831</guid>
		<description><![CDATA[Bu gün jQuery multiple selector ile birlikte, not() ve :first kullanmam gerekti.
Amele yazımıyla aşağıdaki şekilde olabilecek bir kodu, daha mantıklı bir yoldan çözelim.
$&#40;'#select0'&#41;.children&#40;&#41;.not&#40;':first'&#41;.remove&#40;&#41;;
$&#40;'#select1'&#41;.children&#40;&#41;.not&#40;':first'&#41;.remove&#40;&#41;;
$&#40;'#select2'&#41;.children&#40;&#41;.not&#40;':first'&#41;.remove&#40;&#41;;
$&#40;'#select3'&#41;.children&#40;&#41;.not&#40;':first'&#41;.remove&#40;&#41;;
Aslında kompleks bir kullanım olmamasına rağmen, jQuery mantığına ters olduğu için aşağıdaki satır çalışmadı.
$&#40;'#select0, #select1, #select2, #select3'&#41;.children&#40;&#41;.not&#40;':first'&#41;.remove&#40;&#41;;
Bu şekilde kullanımda, jQuery tüm selectorlerin sonucunu alıp, daha sonra children(), daha sonra .not(&#8216;:first&#8217;)'e bakıp sondaki remove() [...]]]></description>
			<content:encoded><![CDATA[<p>Bu gün jQuery multiple selector ile birlikte, not() ve :first kullanmam gerekti.<br />
Amele yazımıyla aşağıdaki şekilde olabilecek bir kodu, daha mantıklı bir yoldan çözelim.<br />
<code class="codecolorer javascript twitlight"><span class="javascript">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#select0'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#select1'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#select2'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#select3'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code><br />
Aslında kompleks bir kullanım olmamasına rağmen, jQuery mantığına ters olduğu için aşağıdaki satır çalışmadı.<br />
<code class="codecolorer javascript twitlight"><span class="javascript">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#select0, #select1, #select2, #select3'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code></p>
<p>Bu şekilde kullanımda, jQuery tüm selectorlerin sonucunu alıp, daha sonra children(), daha sonra .not(&#8216;:first&#8217;)'e bakıp sondaki remove() functionunu çalıştırıyor.<br />
Her bir selector için .children().not(&#8216;:first&#8217;).remove(); çalıştırmamız lazım.</p>
<p>Çözüm işte burda :<br />
<code class="codecolorer javascript twitlight"><span class="javascript">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#select0, #select1, #select2, #select3'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>key<span style="color: #339933;">,</span> value<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span>value<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">children</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">not</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">':first'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">remove</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></span></code><br />
each kullanarak her bir selector için ayrı ayrı remove etmiş olduk.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/jquery-multiple-selector/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOS X Terminal renkleri nasıl tanımlanır ve değiştirilir?</title>
		<link>http://blog.irfandurmus.com/macos-x-terminal-renkleri-nasil-tanimlanir-ve-degistirilir/</link>
		<comments>http://blog.irfandurmus.com/macos-x-terminal-renkleri-nasil-tanimlanir-ve-degistirilir/#comments</comments>
		<pubDate>Sun, 31 Jan 2010 06:04:41 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[clicolor]]></category>
		<category><![CDATA[lscolors]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[macos x]]></category>
		<category><![CDATA[terminal]]></category>
		<category><![CDATA[terminal renklendirme]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=798</guid>
		<description><![CDATA[MacOS X  Terminal.app da default gelen terminal çok kullanışsız. Terminali ilk açtığınızda beyaz zeminli tüm yazılar siyah renkte, kod renklendirme dediğimiz durum tanımsız (undefined) olarak gelir. Öncelikle Terminal.app i açıp, File -&#62; Preferences -&#62; Startup sekmesinden On startup, open new window with settings kısmını Pro olarak değiştirin. Aynı pencerede Settings kısmından da bazı özelleştirmeleri yapabilirsiniz. [...]]]></description>
			<content:encoded><![CDATA[<p>MacOS X  Terminal.app da default gelen terminal çok kullanışsız. Terminali ilk açtığınızda beyaz zeminli tüm yazılar siyah renkte, kod renklendirme dediğimiz durum tanımsız (undefined) olarak gelir. Öncelikle Terminal.app i açıp, <strong>File -&gt; Preferences -&gt; Startup</strong> sekmesinden <strong>On startup, open new window with settings</strong> kısmını Pro olarak değiştirin. Aynı pencerede Settings kısmından da bazı özelleştirmeleri yapabilirsiniz. Son olarak Shell menüsünden <strong>Use Settings as Default</strong> u seçin.</p>
<p>İki komutla temel renklendirme işlemlerini yapalım, sonra detaylara gireriz.</p>
<p><code class="codecolorer bash twitlight"><span class="bash"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;export CLICOLOR=1&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.profile<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;export LSCOLORS=GxFxCxDxBxegedabagDcad&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>.profile</span></code></p>
<p>Command + Q Tuş kombinasyonu ile terminali kapatıp tekrar açıyoruz, ls -la komutunu verin, evet artık renkli terminal var.</p>
<p>Salatalık özü cilt kreminden önceki ve sonraki hali -P<br />
<span id="more-798"></span><br />
<a href="http://blog.irfandurmus.com/wp-content/uploads/2010/01/eski-terminal.jpg"><img class="alignleft size-medium wp-image-817" title="eski-terminal" src="http://blog.irfandurmus.com/wp-content/uploads/2010/01/eski-terminal-300x119.jpg" alt="" width="300" height="119" /></a><br />
<a href="http://blog.irfandurmus.com/wp-content/uploads/2010/01/yeni-terminal.jpg"><img class="alignleft size-medium wp-image-818" title="yeni-terminal" src="http://blog.irfandurmus.com/wp-content/uploads/2010/01/yeni-terminal-300x138.jpg" alt="" width="300" height="138" /></a></p>
<p>Renk tanımlamaları ikişerli gruplar halindedir. Birinci harf yazı rengini, ikinci harf ise yazının background (arkaplan) rengini oluşturuyor. Üçüncü harf, ikinci türün yazı rengini, dördüncü harf bu türün arka plan rengini oluşturuyor. Yani <strong>Gx Fx Cx Dx Bx eg ed ab ag Dc ad</strong> şeklinde ikişerli gruplama yapabiliriz. İlk iki harf (Gx) dizinlerin yazı ve background rengini oluşturur.</p>
<p>Bu sistem dosya/dizin yetkilerine göre ve dosya/dizin türlerine göre düşünülmüştür. <strong>ls -l</strong> çıktısında her satırın başında gördüğünüz <strong>drwxr-xr-x+</strong> veya <strong>-rw-r&#8211;r&#8211;</strong> benzeri harfler dosya türü ve yetkilerini gösterir. İlk harf dosya/dizin türünü gösterir, örneğin <strong>d</strong> dizin, <strong>l</strong> link olduğunu, <strong>-</strong> ise sıradan dosya olduğunu gösterir. Diğer kısım ise sahip/kullanıcılar/diğerleri şeklinde okuma, yazma ve çalıştırma izinlerini gösterir. Bu konuya çok fazla girmeden renk tanımlamalarındaki sıralamaya geçelim.</p>
<p>1. Dizin<br />
2. Link (Windows daki kısayol diyebiliriz)<br />
3. Soket<br />
4. boru (pipe)<br />
5. Çalıştırılabilir (executable)<br />
6. blok (Block)<br />
7. özel karakter (Special Character)<br />
8. setuid ile çalıştırılabilir<br />
9. setgid ile çalıştırılabilir<br />
10. sticky bit ile herkes tarafından yazılabilir<br />
11. sticky bit olmadan herkes tarafından yazılabilir</p>
<p>Türkçeleştirince iyice anlaşılmaz oldu. Aşağıda renklerin harf karşılıkları var.</p>
<p>a &#8211; Siyah<br />
b &#8211; Kırmızı<br />
c &#8211; Yeşil<br />
d &#8211; Kahverengi<br />
e &#8211; Mavi<br />
f &#8211; Mor<br />
g &#8211; Cam göbeği / Turkuaz<br />
h &#8211; Açık Gri<br />
A &#8211; Kalın Siyah (Koyu Griye çalan bir renk görünür)<br />
B &#8211; Kalın Kırmızı<br />
C &#8211; Kalın Yeşil<br />
D &#8211; Kalın Kahverengi, (Sarımtrak bir renk görünür)<br />
E &#8211; Kalın Mavi<br />
F &#8211; Kalın Mor<br />
G &#8211; Kalın Cam Göbeği / Turkuaz<br />
H &#8211; Kalın Parlak Gri (Parlak beyaz gibi görünür)<br />
x &#8211; Öntanımlı renk</p>
<p><strong>Kaynak : ls Manuel&#8217;i</strong><br />
Daha fazla bilgi için Terminal.app i açıp <strong>man ls</strong> komutunu verebilirsiniz -)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/macos-x-terminal-renkleri-nasil-tanimlanir-ve-degistirilir/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>İşe yarar vim sayfaları</title>
		<link>http://blog.irfandurmus.com/ise-yarar-vim-sayfalari/</link>
		<comments>http://blog.irfandurmus.com/ise-yarar-vim-sayfalari/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 23:45:33 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[Text Editor]]></category>
		<category><![CDATA[Yaşam]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[sahibinden]]></category>
		<category><![CDATA[sahibinden.com]]></category>
		<category><![CDATA[vim]]></category>
		<category><![CDATA[vim cheat sheet]]></category>
		<category><![CDATA[vim editor]]></category>
		<category><![CDATA[vim linkleri]]></category>
		<category><![CDATA[vim nedir]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=748</guid>
		<description><![CDATA[21 Ekim 2009 da Türkiye&#8217;nin en büyük e-ticaret platformu olan Sahibinden.com&#8216;da çalışmaya başlamıştım. TextMate&#8217;e o kadar alışmışım ki diğer editörler zor geliyor. Bende son çareyi Vim&#8217;de arıyorum.
İşte Vim için süper sayfalar:
http://tr.pardus-wiki.org/Vim
http://www.viemu.com/vi-vim-cheat-sheet.gif
http://www.linuxfocus.org/Turkce/May2000/article153.shtml
Loglayalım..
]]></description>
			<content:encoded><![CDATA[<p>21 Ekim 2009 da Türkiye&#8217;nin en büyük e-ticaret platformu olan <a href="http://www.sahibinden.com">Sahibinden.com</a>&#8216;da çalışmaya başlamıştım. TextMate&#8217;e o kadar alışmışım ki diğer editörler zor geliyor. Bende son çareyi Vim&#8217;de arıyorum.</p>
<p><strong>İşte Vim için süper sayfalar:</strong><br />
<a href="http://tr.pardus-wiki.org/Vim">http://tr.pardus-wiki.org/Vim</a><br />
<a href="http://www.viemu.com/vi-vim-cheat-sheet.gif">http://www.viemu.com/vi-vim-cheat-sheet.gif</a><br />
<a href="http://www.linuxfocus.org/Turkce/May2000/article153.shtml">http://www.linuxfocus.org/Turkce/May2000/article153.shtml</a></p>
<p>Loglayalım..</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/ise-yarar-vim-sayfalari/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>eAccelerator ve control.php</title>
		<link>http://blog.irfandurmus.com/eaccelerator-ve-control-php/</link>
		<comments>http://blog.irfandurmus.com/eaccelerator-ve-control-php/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 23:05:48 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[eAccelerator cache]]></category>
		<category><![CDATA[eAccelerator control]]></category>
		<category><![CDATA[eAccelerator yonetim]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=737</guid>
		<description><![CDATA[Burada anlattığım yöntem ve bash script ile eAccelerator kurmuşsanız scripti çalıştırdığınız dizinde eaccelerator-0.9.5.3 isminde bir klasör oluşacaktır.
Bu klasörün içerisinde bulacağınız control.php dosyası bize temel anlamda eAccelerator&#8217;ı yönetme imkanı veriyor.

/home/USERNAME/public_html dizini altında eaccelerator diye bir dizin oluşturup control.php yi bu dizine kopyalıyoruz.
Not: USERNAME, hangi domain altından ulaşmak istiyorsanız, o domaine sahip kullanıcının dizinini işaret eder.
123mkdir /home/USERNAME/public_html/eaccelerator
cp [...]]]></description>
			<content:encoded><![CDATA[<p>Burada <a href="http://blog.irfandurmus.com/whm-cpanel-sunucularda-symfony-icin-php-ve-eaccelerator/">anlattığım yöntem ve bash script</a> ile eAccelerator kurmuşsanız scripti çalıştırdığınız dizinde eaccelerator-0.9.5.3 isminde bir klasör oluşacaktır.<br />
Bu klasörün içerisinde bulacağınız control.php dosyası bize temel anlamda eAccelerator&#8217;ı yönetme imkanı veriyor.<br />
<span id="more-737"></span><br />
/home/<strong>USERNAME</strong>/public_html dizini altında eaccelerator diye bir dizin oluşturup control.php yi bu dizine kopyalıyoruz.<br />
<em><strong>Not: USERNAME, hangi domain altından ulaşmak istiyorsanız, o domaine sahip kullanıcının dizinini işaret eder.</strong></em></p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>USERNAME<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>eaccelerator<br />
<span style="color: #c20cb9; font-weight: bold;">cp</span> control.php <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>USERNAME<span style="color: #000000; font-weight: bold;">/</span>public_html<span style="color: #000000; font-weight: bold;">/</span>eaccelerator<span style="color: #000000; font-weight: bold;">/</span>control.php<br />
<span style="color: #c20cb9; font-weight: bold;">vim</span> control.php</div></td></tr></tbody></table></div>
<p>vim ile dosyayı açıp</p>
<div class="codecolorer-container php twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$user</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;admin&quot;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$pw</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;eAccelerator&quot;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Satırlarını düzenliyoruz. <strong>admin</strong> yerine kullanıcı adınızı, <strong>eAccelerator</strong> yerine ise şifrenizi yazıyorsunuz.<br />
<strong><em>Not: Vim de arama yapmak için <strong>/</strong> tuşuna basıp arayacağınız kelimeyi yazın, i tuşuna basarak yazma moduna geçin, gerekli düzenlemeleri yaptıktan sonra esc tuşuna basarak komut moduna geçip, :wq! yazarak kaydedip çıkın.</em></strong></p>
<p>İkinci adım olarak <strong>php.ini</strong> dosyanızda eAccelerator için eklenmiş satırların sonuna,<br />
<code class="codecolorer bash twitlight"><span class="bash">eaccelerator.allowed_admin_path=<span style="color: #ff0000;">&quot;/home/USERNAME/public_html/eaccelerator/control.php&quot;</span></span></code><br />
satırını ekliyoruz.</p>
<p>Apache&#8217;yi<br />
<code class="codecolorer bash twitlight"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd restart</span></code><br />
komutuyla veya<br />
<code class="codecolorer bash twitlight"><span class="bash"><span style="color: #000000; font-weight: bold;">/</span>scripts<span style="color: #000000; font-weight: bold;">/</span>restartsrv_httpd</span></code><br />
komutuyla yeniden başlatın.<br />
Artık http://example.com/eaccelerator/control.php adresinden kullanıcı adınız ve şifreniz ile eAccelerator e ulaşabilirsiniz.<br />
<a href="http://blog.irfandurmus.com/wp-content/uploads/2009/12/eaccelerator-control.jpg"><img class="alignleft size-medium wp-image-743" title="eaccelerator-control" src="http://blog.irfandurmus.com/wp-content/uploads/2009/12/eaccelerator-control-300x183.jpg" alt="eaccelerator-control" width="300" height="183" /></a><br />
Geçen gün uykusuzluktan eksik yazmışım -)..<br />
Tamamlayım dedim..</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/eaccelerator-ve-control-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WHM-cPanel Sunucularda Symfony İçin PHP ve eAccelerator</title>
		<link>http://blog.irfandurmus.com/whm-cpanel-sunucularda-symfony-icin-php-ve-eaccelerator/</link>
		<comments>http://blog.irfandurmus.com/whm-cpanel-sunucularda-symfony-icin-php-ve-eaccelerator/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 02:29:15 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pear]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[eAccelerator]]></category>
		<category><![CDATA[memcached]]></category>
		<category><![CDATA[whm]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=688</guid>
		<description><![CDATA[Var olan sisteminizin yükünü düşürmek istiyorsanız eAccelerator en iyi yöntem diyebilirim. eAccelerator derlenen PHP dosyalarını cache dizinde tutup, tekrar aynı dosyalara istek geldiğinde kodları yeniden derlemek yerine, bu dizindeki derlenmiş kodları httpd ye gönderir.
Yeni bir sisteme başlayacaksanız ve yeterli miktarda ram e ve server a para harcayabiliyorsanız memcached kullanılabilir. Memcached için özetle dağıtık önbellek sistemi [...]]]></description>
			<content:encoded><![CDATA[<p>Var olan sisteminizin yükünü düşürmek istiyorsanız eAccelerator en iyi yöntem diyebilirim. eAccelerator derlenen PHP dosyalarını cache dizinde tutup, tekrar aynı dosyalara istek geldiğinde kodları yeniden derlemek yerine, bu dizindeki derlenmiş kodları httpd ye gönderir.</p>
<p>Yeni bir sisteme başlayacaksanız ve yeterli miktarda ram e ve server a para harcayabiliyorsanız memcached kullanılabilir. Memcached için özetle dağıtık önbellek sistemi diyebiliriz (Distributed Memory Caching System). Memcached&#8217;in diğer bir dezavantajı da işin yükünü programcıya bırakmasıdır. Memcached detaylı bir konu olduğu için (WordPress stats eklentisi bile var) daha sonraya bırakıp işimize dönelim.</p>
<p>PHP ile birlikte eAccelerator derlemek için bazı parametreler girmeniz gerekiyor. WHM/cPanel sunucularda bu imkanımız <a title="WHM / cPanel" href="http://www.cpanel.net/documentation/easyapache/ea3custom_flags.html">var gibi görünsede CentOS 5.4 üzerinde işe yaramıyor</a>.</p>
<p><span id="more-688"></span></p>
<p>cpanel.net de yazdığına göre PHP5 kullanıcıları için /var/cpanel/easy/apache/rawopts/ dizini altında all_php5 isminde bir dosya oluşturuyoruz ve easyapache burada yazdığımız parametreleri komuta join ediyor.</p>
<p>Örnekleri de şöyle:<br />
&#8211;with-someoption<br />
&#8211;path-to-something=/usr/bin/something<br />
&#8211;my-option=<br />
Tabii bu şekilde sonuca ulaşılmıyor.</p>
<p><a href="http://www.webhostingtalk.com/showthread.php?t=549666">Burada</a> bulduğum scripti biraz düzenledim. Öncelikle çalışan sisteminizde eAccelerator ın olmaması gerekiyor. Eğer varsa Easy Apache ile eAccelerator u kaldırarak yeniden derlemeniz lazım.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;height:600px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br />82<br />83<br />84<br />85<br />86<br />87<br />88<br />89<br />90<br />91<br />92<br />93<br />94<br />95<br />96<br />97<br />98<br />99<br />100<br />101<br />102<br />103<br />104<br />105<br />106<br />107<br />108<br />109<br />110<br />111<br />112<br />113<br />114<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #666666; font-style: italic;">#!/bin/bash</span><br />
<br />
<span style="color: #007800;">PHP_INI</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php.ini<br />
<span style="color: #007800;">PHP_BIN</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<br />
<span style="color: #007800;">PHP_EXT</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>lib<span style="color: #000000; font-weight: bold;">/</span>php<span style="color: #000000; font-weight: bold;">/</span>extensions<br />
<span style="color: #007800;">PHPIZE</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>phpize<br />
<span style="color: #007800;">VERSION</span>=0.9.5.3<br />
<br />
<span style="color: #666666; font-style: italic;">#shared memory i kapatmak için alt satırı silebilir yada başına # koyabilirsiniz.</span><br />
<span style="color: #007800;">CUSTOM_FLAG</span>=<span style="color: #ff0000;">&quot;--with-eaccelerator-shared-memory&quot;</span><br />
<br />
<span style="color: #666666; font-style: italic;"># You do not need to adjust this, but you may if you want... (below)</span><br />
<span style="color: #007800;">TMPDIR</span>=<span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>eaccelerator-install<br />
<span style="color: #007800;">PHPCACHE</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>eaccelerator<br />
<br />
<span style="color: #c20cb9; font-weight: bold;">clear</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #007800;">$UID</span> = 0 <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;IPTAL EDILDI: Script root olarak calistirilmalidir.&quot;</span><br />
&nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$?</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>cpanel <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>cpanel <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;IPTAL EDILDI: Script cPanel sunucular icindir. [Belki scripti duzenleyerek bu bilgisayarda calistirabilirsiniz, fakat bu tavsiye edilmez.].&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$?</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;eaccelerator&quot;</span> <span style="color: #660033;">--</span> <span style="color: #007800;">$PHP_INI</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;IPTAL EDILDI: Oncelikle eAccelerator u ve tum uzantilarini sisteminizden kaldirmaniz gerekiyor.[php.ini deki eAccelerator satirlarini silmeniz yeterli olabilir]&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$?</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$PHP_EXT</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; <span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> <span style="color: #007800;">$PHP_EXT</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$PHP_INI</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$PHP_BIN</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$PHP_EXT</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> <span style="color: #007800;">$PHPIZE</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;IPTAL EDILDI: Script sizin bilgisayariniz icin yapilandirilmamis olabilir, lutfen script dosyasini acin ve 3-6 satirlarinin dogru degerleri aldigindan emin olun.&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$?</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$TMPDIR</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$TMPDIR</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$TMPDIR</span><br />
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$TMPDIR</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;wget ile ontanimli yansidan eAccelerator indiriliyor...&quot;</span><br />
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> http:<span style="color: #000000; font-weight: bold;">//</span>bart.eaccelerator.net<span style="color: #000000; font-weight: bold;">/</span>source<span style="color: #000000; font-weight: bold;">/</span><span style="color: #007800;">$VERSION</span><span style="color: #000000; font-weight: bold;">/</span>eaccelerator-<span style="color: #007800;">$VERSION</span>.tar.bz2<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-f</span> eaccelerator-<span style="color: #007800;">$VERSION</span>.tar.bz2 <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;IPTAL EDILDI: Indirme basarisiz.&quot;</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$?</span><br />
&nbsp; &nbsp; <span style="color: #000000; font-weight: bold;">else</span><br />
&nbsp; &nbsp; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;TAMAMLANDI.&quot;</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">tar</span> jfx eaccelerator-<span style="color: #007800;">$VERSION</span>.tar.bz2<br />
<span style="color: #7a0874; font-weight: bold;">cd</span> eaccelerator-<span style="color: #007800;">$VERSION</span><br />
<span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #007800;">$PHPIZE</span><br />
.<span style="color: #000000; font-weight: bold;">/</span>configure <span style="color: #660033;">--enable-eaccelerator</span>=shared <span style="color: #660033;">--with-php-config</span>=<span style="color: #007800;">$PHP_BIN</span><span style="color: #000000; font-weight: bold;">/</span>php-config <span style="color: #007800;">$CUSTOM_FLAG</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span><br />
<span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #007800;">$PHP_EXT</span><span style="color: #000000; font-weight: bold;">/</span>no-debug-non-zts-<span style="color: #000000; font-weight: bold;">*/</span>eaccelerator.so <span style="color: #007800;">$PHP_EXT</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$PHP_INI</span> <span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$PHP_INI</span>.bak<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$PHP_INI</span> dosyasi <span style="color: #007800;">$PHP_INI</span>.bak olarak yedeklendi.&quot;</span><br />
replace <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;extension_dir = <span style="color: #000099; font-weight: bold;">\&quot;</span>./<span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #ff0000;">&quot;extension_dir = <span style="color: #000099; font-weight: bold;">\&quot;</span><span style="color: #007800;">$PHP_EXT</span><span style="color: #000099; font-weight: bold;">\&quot;</span>&quot;</span> <span style="color: #660033;">--</span> <span style="color: #007800;">$PHP_INI</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; <span style="color: #007800;">$PHP_INI</span><br />
<br />
<span style="color: #000000; font-weight: bold;">;;</span>eAccelerator<br />
; <span style="color: #007800;">extension</span>=<span style="color: #ff0000;">&quot;eaccelerator.so&quot;</span><br />
<span style="color: #007800;">zend_extension</span>=<span style="color: #ff0000;">&quot;/usr/local/lib/php/extensions/eaccelerator.so&quot;</span><br />
eaccelerator.shm_size=<span style="color: #ff0000;">&quot;16&quot;</span><br />
eaccelerator.cache_dir=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$PHPCACHE</span>&quot;</span><br />
eaccelerator.enable=<span style="color: #ff0000;">&quot;1&quot;</span><br />
eaccelerator.optimizer=<span style="color: #ff0000;">&quot;1&quot;</span><br />
eaccelerator.check_mtime=<span style="color: #ff0000;">&quot;1&quot;</span><br />
eaccelerator.debug=<span style="color: #ff0000;">&quot;0&quot;</span><br />
eaccelerator.filter=<span style="color: #ff0000;">&quot;&quot;</span><br />
eaccelerator.shm_max=<span style="color: #ff0000;">&quot;0&quot;</span><br />
eaccelerator.shm_ttl=<span style="color: #ff0000;">&quot;0&quot;</span><br />
eaccelerator.shm_prune_period=<span style="color: #ff0000;">&quot;0&quot;</span><br />
eaccelerator.shm_only=<span style="color: #ff0000;">&quot;0&quot;</span><br />
eaccelerator.compress=<span style="color: #ff0000;">&quot;1&quot;</span><br />
eaccelerator.compress_level=<span style="color: #ff0000;">&quot;9&quot;</span><br />
eaccelerator.keys=<span style="color: #ff0000;">&quot;shm_only&quot;</span><br />
eaccelerator.content=<span style="color: #ff0000;">&quot;shm_only&quot;</span><br />
eaccelerator.log_file = <span style="color: #ff0000;">&quot;/var/log/httpd/eaccelerator_log&quot;</span><br />
EOT<br />
<br />
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-d</span> <span style="color: #007800;">$PHPCACHE</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span><br />
&nbsp; <span style="color: #000000; font-weight: bold;">then</span><br />
&nbsp; &nbsp; <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-rf</span> <span style="color: #007800;">$PHPCACHE</span><br />
<span style="color: #000000; font-weight: bold;">fi</span><br />
<br />
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #007800;">$PHPCACHE</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> ; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Apache yeniden baslatiliyor...&quot;</span> ; <span style="color: #7a0874; font-weight: bold;">echo</span><br />
<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>httpd restart<br />
<br />
<span style="color: #7a0874; font-weight: bold;">echo</span> ; <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Tum adimlar basariyla tamamlandi.&quot;</span> ; <span style="color: #7a0874; font-weight: bold;">echo</span><br />
<br />
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #007800;">$?</span></div></td></tr></tbody></table></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/whm-cpanel-sunucularda-symfony-icin-php-ve-eaccelerator/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Pear Symfony Update</title>
		<link>http://blog.irfandurmus.com/pear-symfony-update/</link>
		<comments>http://blog.irfandurmus.com/pear-symfony-update/#comments</comments>
		<pubDate>Sun, 13 Dec 2009 02:15:55 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Pear]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[pear channel-update]]></category>
		<category><![CDATA[pear clear-cache]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=681</guid>
		<description><![CDATA[Symfony 1.2.8 kullanıyordum, güncellemek için pear uninstall symfony/symfony-1.2 ile kaldırdıktan sonra 1.4.1 i kurayım dedim.
1234$ pear channel-discover pear.symfony-project.com
Channel &#34;pear.symfony-project.com&#34; is already initialized
$ pear install symfony/symfony-1.4.1
Failed to download symfony/symfony, version &#34;1.4.1&#34;, latest release is version 1.3.0BETA1, stability &#34;beta&#34;, use &#34;channel://pear.symfony-project.com/symfony-1.3.0BETA1&#34; to install
Himm bir terslik var bu işte

1234567$ pear clear-cache
reading directory /root/tmp/pear/cache
18 cache entries cleared
$ pear channel-update [...]]]></description>
			<content:encoded><![CDATA[<p>Symfony 1.2.8 kullanıyordum, güncellemek için <strong>pear uninstall symfony/symfony-1.2</strong> ile kaldırdıktan sonra 1.4.1 i kurayım dedim.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pear channel-discover pear.symfony-project.com<br />
Channel <span style="color: #ff0000;">&quot;pear.symfony-project.com&quot;</span> is already initialized<br />
$ pear <span style="color: #c20cb9; font-weight: bold;">install</span> symfony<span style="color: #000000; font-weight: bold;">/</span>symfony-1.4.1<br />
Failed to download symfony<span style="color: #000000; font-weight: bold;">/</span>symfony, version <span style="color: #ff0000;">&quot;1.4.1&quot;</span>, latest release is version 1.3.0BETA1, stability <span style="color: #ff0000;">&quot;beta&quot;</span>, use <span style="color: #ff0000;">&quot;channel://pear.symfony-project.com/symfony-1.3.0BETA1&quot;</span> to <span style="color: #c20cb9; font-weight: bold;">install</span></div></td></tr></tbody></table></div>
<p>Himm bir terslik var bu işte</p>
<p><span id="more-681"></span></p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pear clear-cache<br />
reading directory <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>pear<span style="color: #000000; font-weight: bold;">/</span>cache<br />
<span style="color: #000000;">18</span> cache entries cleared<br />
$ pear channel-update pear.symfony-project.com<br />
Updating channel <span style="color: #ff0000;">&quot;pear.symfony-project.com&quot;</span><br />
Channel <span style="color: #ff0000;">&quot;pear.symfony-project.com&quot;</span> is up to <span style="color: #c20cb9; font-weight: bold;">date</span><br />
$ pear <span style="color: #c20cb9; font-weight: bold;">install</span> symfony<span style="color: #000000; font-weight: bold;">/</span>symfony-1.4.1</div></td></tr></tbody></table></div>
<p>Php nin güvenlik ayarlarından dolayı bir kaç warning aldıktan sonra,</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">downloading symfony-1.4.1.tgz ...<br />
Starting to download symfony-1.4.1.tgz <span style="color: #7a0874; font-weight: bold;">&#40;</span>3,150,576 bytes<span style="color: #7a0874; font-weight: bold;">&#41;</span><br />
...............done: 3,150,576 bytes<br />
<span style="color: #c20cb9; font-weight: bold;">install</span> ok: channel:<span style="color: #000000; font-weight: bold;">//</span>pear.symfony-project.com<span style="color: #000000; font-weight: bold;">/</span>symfony-1.4.1</div></td></tr></tbody></table></div>
<p>Happy Coding -)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/pear-symfony-update/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MacOS X ve BIND ile yasaklı sitelere kesin çözüm</title>
		<link>http://blog.irfandurmus.com/macos-x-ve-bind-ile-yasakli-sitelere-kesin-cozum/</link>
		<comments>http://blog.irfandurmus.com/macos-x-ve-bind-ile-yasakli-sitelere-kesin-cozum/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 13:20:08 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[İnternet]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[bind]]></category>
		<category><![CDATA[isc]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[macos x]]></category>
		<category><![CDATA[yasaklı sitelere girmek]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=646</guid>
		<description><![CDATA[Gün geçtikçe Türkiye&#8217;nin kullanabileceği internet servisleri azalıyor. Daha önce Youtube DNS ve IP Adresleri başlıklı ve The Pirate Bay’dan Sıkıntısız Torrent Kullanabilmek başlıklı yazılar yazmıştım. Fakat her yasaklı site için bu gibi bir yöntem kullanmak oldukça zahmetli ve can sıkıcı bir iş. İleride servislerde yapılacak değişiklikler sonrasında bu yöntemler etkisiz kalacaktır.
MacOS X üzerinde default gelen [...]]]></description>
			<content:encoded><![CDATA[<p>Gün geçtikçe Türkiye&#8217;nin kullanabileceği internet servisleri azalıyor. Daha önce <a title="Youtube DNS ve IP Adresleri" href="http://blog.irfandurmus.com/youtube-dns-ve-ip-adresleri/">Youtube DNS ve IP Adresleri</a> başlıklı ve <a title="The Pirate Bay’dan Sıkıntısız Torrent Kullanabilmek" href="http://blog.irfandurmus.com/the-pirate-baydan-sikintisiz-torrent-kullanabilmek/">The Pirate Bay’dan Sıkıntısız Torrent Kullanabilmek</a> başlıklı yazılar yazmıştım. Fakat her yasaklı site için bu gibi bir yöntem kullanmak oldukça zahmetli ve can sıkıcı bir iş. İleride servislerde yapılacak değişiklikler sonrasında bu yöntemler etkisiz kalacaktır.</p>
<p>MacOS X üzerinde default gelen bind ile bu sorunu tamamen ortadan kaldırıyoruz. Terminalden aşağıdaki komutları uyguluyoruz.</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> rndc-confgen <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rndc.conf<br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> service org.isc.named start</div></td></tr></tbody></table></div>
<p>Alternatif yöntem;</p>
<div class="codecolorer-container bash twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> rndc-confgen <span style="color: #660033;">-a</span><br />
$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> service org.isc.named start</div></td></tr></tbody></table></div>
<p>System Preferences -&gt; Network -&gt; Advanced -&gt; DNS kısmına dns adresi olarak 127.0.0.1 giriyoruz.<br />
Bilgisayarımızı yeniden başlatıyoruz.</p>
<p>Detaylı bilgi için <a title="ISC" href="https://www.isc.org/node/283">ISC</a> sayfalarını kontrol edebilirsiniz.</p>
<p>Sisteminiz MacOS X değil ise, BIND kurup gerekli değişiklikleri yapıp aynı şekilde DNS bazlı yasakları aşabilirsiniz.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/macos-x-ve-bind-ile-yasakli-sitelere-kesin-cozum/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>MacOSX + MAMP + Symfony Development Ortamı Hazırlamak</title>
		<link>http://blog.irfandurmus.com/macosx-mamp-symfony-development-ortami-hazirlamak/</link>
		<comments>http://blog.irfandurmus.com/macosx-mamp-symfony-development-ortami-hazirlamak/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 03:31:21 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Symfony]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[framework]]></category>
		<category><![CDATA[mamp]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=605</guid>
		<description><![CDATA[Bir çok yerde benzeri kurulumlar anlatılıyor. Ben en basit şekilde, sisteminize dokunmadan kurulumu yazmaya çalışacam.
Bu sayfa hazırlanırken ki mevcut versionlar:
Mac OS X : 10.5.7
Mamp : 1.7.2 (ve içerisinde gelen php pear apache mysql versionları)
Symfony : 1.2.8

MAMP
Mac OS X altında MAMP çok yaygın kullanılan (Macosx Apache Mysql Php) nin baş harflerinden oluşan komple bir pakettir. Son [...]]]></description>
			<content:encoded><![CDATA[<p>Bir çok yerde benzeri kurulumlar anlatılıyor. Ben en basit şekilde, sisteminize dokunmadan kurulumu yazmaya çalışacam.</p>
<p>Bu sayfa hazırlanırken ki mevcut versionlar:<br />
Mac OS X : 10.5.7<br />
Mamp : 1.7.2 (ve içerisinde gelen php pear apache mysql versionları)<br />
Symfony : 1.2.8</p>
<p><span id="more-605"></span></p>
<p><strong>MAMP</strong></p>
<p>Mac OS X altında <a title="MAMP" href="http://www.mamp.info" target="_blank">MAMP</a> çok yaygın kullanılan (Macosx Apache Mysql Php) nin baş harflerinden oluşan komple bir pakettir. Son sürümü <a title="MAMP" href="http://www.mamp.info" target="_blank">mamp.info</a> adresinden edinebilirsiniz. Diğer programların kurulumu gibi .dmg yi sisteme mount edip ve içerisindeki .app klasörünü /Application/ klasörüne atıyoruz.</p>
<p>Mamp&#8217;ı çalıştırıp &#8216;Preferences&#8217; butonuna tıklıyoruz ve ayarlarını aşağıdaki şekilde yapıyoruz:</p>
<blockquote><p>UYARI 1 ! MAMP ın aşağıdaki ayarlarda sorunsuz çalışması için System Preferences -&gt; HTTP Sharing kısmının kapalı olduğundan emin olun. MAMP altındaki Apache ve Mysql&#8217;i tabii ki farklı portlarda da çalıştırabilirsiniz. Eğer farklı portlar tercih ederseniz dökümanın ilerisinde de o portları kullanmanız gerektiğini unutmayın!</p></blockquote>
<blockquote><p>UYARI 2 ! Unix türevi (Mac OS X, Linux, BSD) işletim sistemleri 1024 den daha küçük portlarda program çalıştırabilmek için root şifresine ihtiyaç duyarlar. Buradaki ayarları yaptıktan sonra MAMP her açılışta root şifresi (yönetici şifresi) isteyecektir. Eğer yönetici şifrenizi bilmiyorsanız normal kullanıcı şifrenizi deneyin veya MAMP altındaki Apache yi 1024 den daha yüksek (8080 veya 8888 numaralı portlar özelliksiz olmasına rağmen kolay hatırlayabilmek için genelde tercih edilir) bir portta çalıştırın.</p></blockquote>
<p><a href="http://blog.irfandurmus.com/wp-content/uploads/2009/07/mamp-port.png"><img class="alignleft size-full wp-image-607" title="mamp-port" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/mamp-port.png" alt="mamp-port" width="428" height="350" /></a></p>
<p><a href="http://blog.irfandurmus.com/wp-content/uploads/2009/07/mamp-php.png"><img class="alignleft size-full wp-image-608" title="mamp-php" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/mamp-php.png" alt="mamp-php" width="431" height="350" /></a></p>
<p><a href="http://blog.irfandurmus.com/wp-content/uploads/2009/07/mamp-http-root.png"><img class="alignleft size-full wp-image-609" title="mamp-http-root" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/mamp-http-root.png" alt="mamp-http-root" width="428" height="349" /></a></p>
<p><strong>Symfony</strong></p>
<p>Symfony kurulumu için öncelikle <strong>php.ini</strong> den php nin <strong>memory_limit</strong> değerini yükseltmemiz ve bir kaç özelliği de aktif etmemiz gerekiyor.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ nano /Applications/MAMP/conf/php5/php.ini</div></td></tr></tbody></table></div>
<p>komutunu verdikten sonra <strong>Ctrl + W</strong> tuş kombinasyonuna basarak <strong>memory_limit</strong> yazıp enter a basıyoruz. Bulduğumuz <strong>memory_limit</strong> satırının karşısındaki değeri <strong>32M</strong> yapıyoruz.<br />
Aynı şekilde <strong>Ctrl+W</strong> tuş kombinasyonlarıyla <strong>short_open_tag</strong> ve <strong>magic_quotes_gpc</strong> satırlarını bulup karşılarındaki değerleri &#8220;<strong>Off</strong>&#8221; olarak değiştiriyoruz. zend_extension=&#8221;/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/eaccelerator.so&#8221; satırının başındaki ; işaretini kaldırıyoruz.</p>
<p>Bu satırların önceki halleri :</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">memory_limit = 8M<br />
short_open_tag = On<br />
magic_quotes_gpc = On<br />
; zend_extension=&quot;/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/eaccelerator.so&quot;</div></td></tr></tbody></table></div>
<p>Bu satırların sonraki halleri :</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">memory_limit = 32M<br />
short_open_tag = Off<br />
magic_quotes_gpc = Off<br />
zend_extension=&quot;/Applications/MAMP/bin/php5/lib/php/extensions/no-debug-non-zts-20050922/eaccelerator.so&quot;</div></td></tr></tbody></table></div>
<p>Düzenlemeleri yaptıktan sonra <strong>Ctrl + X</strong> tuş kombinasyonuna sonra <strong>Y</strong> harfine sonra da enter a basarak kaydedip çıkıyoruz.</p>
<blockquote><p>NOT : Eğer version değişikliklerinden dolayı bu düzenlemeleri yaptığınız halde problem yaşıyorsanız <a title="Symfony Project Resmi Sayfası" href="http://www.symfony-project.org" target="_blank">Symfony</a> sayfalarında PHP ayarlarınızı kontrol edebileceğiniz check_configuration.php dosyasını bulabilirsiniz. Symfony 1.2.8 sürümünü MAMP harici bir sisteme kurmaya çalışıyorsanız php.ini konfigürasyon scriptini şuradan edinebilirsiniz:</p>
<p><a title="Symfony 1.2.8 için php.ini test scripti" href="http://irfandurmus.com/files/check_configuration.php.zip">Symfony 1.2.8 için php.ini kontrol scripti</a></p>
<p>Scripti herhangi bir yere açtıktan sonra scriptin bulunduğu dizine cd komutu yardımıyla giderek;</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ /Applications/MAMP/bin/php5/bin/php check_configuration.php</div></td></tr></tbody></table></div>
<p>komutunu verin. Eğer aşağıdaki gibi bir çıktı görüyorsanız php.ini ayarlarınız sorunsuz demektir:</p>
<blockquote><p>********************************<br />
*                              *<br />
*  symfony requirements check  *<br />
*                              *<br />
********************************</p>
<p>php.ini used by PHP: /Applications/MAMP/conf/php5/php.ini</p>
<p>** WARNING **<br />
*  The PHP CLI can use a different php.ini file<br />
*  than the one used with your web server.<br />
*  If this is the case, please launch this<br />
*  utility from your web server.<br />
** WARNING **</p>
<p>** Mandatory requirements **</p>
<p>OK        PHP version is at least 5.2.4</p>
<p>** Optional checks **</p>
<p>OK        PDO is installed<br />
OK        PDO has some drivers installed: sqlite2, sqlite, pgsql, mysql<br />
OK        PHP-XML module is installed<br />
OK        XSL module is installed<br />
OK        The token_get_all() function is available<br />
OK        The mb_strlen() function is available<br />
OK        The iconv() function is available<br />
OK        The utf8_decode() is available<br />
OK        A PHP accelerator is installed<br />
OK        php.ini has short_open_tag set to off<br />
OK        php.ini has magic_quotes_gpc set to off<br />
OK        php.ini has register_globals set to off<br />
OK        php.ini has session.auto_start set to off<br />
OK        PHP version is not 5.2.9</p></blockquote>
</blockquote>
<p>php.ini dosyamızı ayarladığımıza göre sıra geldi PEAR işlemlerine. Sisteminizde kurulu pear ve/veya php zaten vardır. Biz bunlara hiç dokunmayacağız. İleride onları kullanmak zorunda kalabilirsiniz veya farklı php sürümünü farklı konfigürasyonlarla kullanmanız gerekebilir.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd /Applications/MAMP/bin/php5/bin/<br />
$ ./pear channel-discover pear.symfony-project.com</div></td></tr></tbody></table></div>
<p>komutlarını verdikten sonra</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Adding Channel &quot;pear.symfony-project.com&quot; succeeded<br />
Discovery of channel &quot;pear.symfony-project.com&quot; succeeded</div></td></tr></tbody></table></div>
<p>çıktısını veya işlemin hatasız tamamlandığını söyleyen benzer bir çıktı görmeniz gerekiyor.<br />
Şimdi symfony i pear yardımıyla kuralım.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ./pear install symfony/symfony-1.2.8</div></td></tr></tbody></table></div>
<p>yine işlemin hatasız tamamlandığını söyleyen</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">install ok: channel://pear.symfony-project.com/symfony-1.2.8</div></td></tr></tbody></table></div>
<p>gibi bir çıktı görmeniz gerekiyor. Şimdi symfony için link oluşturalım;</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo ln -sf /Applications/MAMP/bin/php5/bin/symfony /usr/bin/symfony</div></td></tr></tbody></table></div>
<p>komutunu yazdıktan sonra root şifrenizi giriyorsunuz,  /usr/bin/ altına symfony isimli linkimiz oluşuyor. Kurulumu bitirdik sayılır, şimdi yeni bir proje oluşturup test edelim. Ben http kök için /Users/irfan/Sites/ dizinini kullanıyorum.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd ~/Sites/<br />
$ mkdir sftest<br />
$ cd sftest<br />
$ symfony generate:project sftest</div></td></tr></tbody></table></div>
<p>Proje için oluşturulan dosya ve dizinlerin çıktılarını göreceksiniz. Şimdi projemizin sağlıklı çalışması için Apache ve hosts dosyamızda küçük bir iki ayar yapacağız.</p>
<p><strong>Apache Ayarları</strong></p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ nano /Applications/MAMP/conf/apache/httpd.conf</div></td></tr></tbody></table></div>
<p>komutu ile httpd.conf u açıp aşağıdaki satırları kendinize göre düzenleyip dosyanın sonuna ekleyin.<br />
Değiştirmeniz gereken direktifler DocumentRoot, Directory, ServerName veya daha fazlası (Örneğin Apache portu) olabilir.</p>
<p>Aşağıdaki satırları düzenlemek için uğraşmak istemiyorsanız yeni oluşturduğunuz proje içerisinde config/vhost.sample dosyasını düzenleyerek de kullanabilirsiniz.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># sftest projem icin http.conf satırları<br />
NameVirtualHost 127.0.0.1:80<br />
Listen 127.0.0.1:80<br />
&amp;lt;VirtualHost 127.0.0.1:80&amp;gt;<br />
ServerName sftest<br />
DocumentRoot &quot;/Users/irfan/Sites/sftest/web&quot;<br />
DirectoryIndex index.php<br />
&amp;lt;Directory &quot;/Users/irfan/Sites/sftest/web&quot;&amp;gt;<br />
AllowOverride All<br />
Allow from All<br />
&amp;lt;/Directory&amp;gt;<br />
Alias /sf &quot;/Applications/MAMP/bin/php5/lib/php/data/symfony/web/sf&quot;<br />
&amp;lt;Directory &quot;/Applications/MAMP/bin/php5/lib/php/data/symfony/web/sf&quot;&amp;gt;<br />
AllowOverride All<br />
Allow from All<br />
&amp;lt;/Directory&amp;gt;<br />
&amp;lt;/VirtualHost&amp;gt;</div></td></tr></tbody></table></div>
<p><strong>DNS Resolve Ayarları</strong><br />
Buraya kadar herşey yolunda gittiyse</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ sudo nano /etc/hosts</div></td></tr></tbody></table></div>
<p>komutuyla hosts dosyanızı açın ve içerisine</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">127.0.0.1 &nbsp; sftest</div></td></tr></tbody></table></div>
<p>satırını ekleyin.</p>
<p><strong>Sona Doğru..</strong><br />
MAMP çalışıyor ise <strong>Stop Servers</strong> butonuna basarak servisleri durdurun. Daha sonra <strong>Start Servers</strong> butonuna basarak başlatın. MAMP çalışmıyor ise çalıştırın. Tarayıcınızla http://sftest adresine girin. Aşağıdaki gibi <strong>404 Not Found hatası alıyorsanız herşey yolunda demektir</strong> -) Korkmayın bu hatayı da gidereceğiz -)</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Not Found<br />
The requested URL /index.php was not found on this server.<br />
Apache/2.0.59 (Unix) PHP/5.2.6 DAV/2 Server at sftest Port 80</div></td></tr></tbody></table></div>
<p>Şimdi projemizi oluşturduğumuz klasöre geri dönüp base app ı (temel sistemi) kuruyoruz.</p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ cd ~/Sites/sftest<br />
$ symfony generate:app base</div></td></tr></tbody></table></div>
<p>Hepsi bu kadar. Tarayıcınızda açtığınız http://sftest/ sayfasını yeniden yükleyin ve aşağıdaki mutlu son -)</p>
<p><a href="http://blog.irfandurmus.com/wp-content/uploads/2009/07/symfony-ana-ekran.png"><img class="alignleft size-medium wp-image-618" title="symfony-ana-ekran" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/symfony-ana-ekran-300x215.png" alt="symfony-ana-ekran" width="300" height="215" /></a></p>
<p>Burada symfony hakkında herşeyi anlatabilecek kadar ne zamanım ne de enerjim var. <a href="http://www.symfony-project.org/">http://www.symfony-project.org/</a> adresini daha güncel bilgiler için mutlaka inceleyin.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/macosx-mamp-symfony-development-ortami-hazirlamak/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3.5: Yeni sekme butonu</title>
		<link>http://blog.irfandurmus.com/firefox-35-yeni-sekme-butonu/</link>
		<comments>http://blog.irfandurmus.com/firefox-35-yeni-sekme-butonu/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 10:00:48 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[Açık Kaynak]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox hack]]></category>
		<category><![CDATA[yeni sekme butonu]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=569</guid>
		<description><![CDATA[Firefox 3.5 ile birlikte gelen yeni sekme butonunu ben hiç sevmedim. IE7 çakması olmuş diyebilirim. Tercihler kısmında da bu butonu kaldırabileceğiniz bir seçeneğiniz yok.


1. Butonu manuel kaldırmak :
~/Library/Application Support/Firefox/Profiles/xxxxxx.default/chrome/ klasörüne giriyoruz. Burada userChrome.css dosyası var ise aşağıdaki tek satırı dosyanın sonuna ekliyoruz.

1.tabs-newtab-button { display: none !important; }
Eğer chrome klasörü içerisinde userChrome.css dosyası yok ise, buraya [...]]]></description>
			<content:encoded><![CDATA[<p>Firefox 3.5 ile birlikte gelen yeni sekme butonunu ben hiç sevmedim. IE7 çakması olmuş diyebilirim. Tercihler kısmında da bu butonu kaldırabileceğiniz bir seçeneğiniz yok.</p>
<p><span id="more-569"></span></p>
<p><img class="alignleft size-full wp-image-574" title="yeni-sekme-butonu" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/yeni-sekme-butonu.jpg" alt="yeni-sekme-butonu" width="498" height="287" /></p>
<p><strong>1. Butonu manuel kaldırmak :</strong></p>
<p><strong>~/Library/Application Support/Firefox/Profiles/xxxxxx.default/chrome/</strong> klasörüne giriyoruz. Burada <strong>userChrome.css</strong> dosyası var ise aşağıdaki tek satırı dosyanın sonuna ekliyoruz.</p>
<p><a href="http://blog.irfandurmus.com/wp-content/uploads/2009/07/chrome-dizini.jpg"><img class="alignleft size-medium wp-image-577" title="chrome-dizini" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/chrome-dizini-300x89.jpg" alt="chrome-dizini" width="300" height="89" /></a></p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">.tabs-newtab-button { display: none !important; }</div></td></tr></tbody></table></div>
<p>Eğer chrome klasörü içerisinde userChrome.css dosyası yok ise, buraya userChrome.css isminde yeni bir dosya oluşturuyoruz. ve içerisine aşağıdaki 2 satırı yazıyoruz.</p>
<p><a href="http://blog.irfandurmus.com/wp-content/uploads/2009/07/duzenlenmis-chromecss-dosyasi.jpg"><img class="alignleft size-medium wp-image-580" title="duzenlenmis-chromecss-dosyasi" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/duzenlenmis-chromecss-dosyasi-300x117.jpg" alt="duzenlenmis-chromecss-dosyasi" width="300" height="117" /></a></p>
<div class="codecolorer-container text twitlight" style="overflow:auto;white-space:nowrap;border: 1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">@namespace url(&quot;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul&quot;);<br />
.tabs-newtab-button { display: none !important; }</div></td></tr></tbody></table></div>
<p><strong>2. Eklenti ile kaldırmak:</strong></p>
<p>Yok ben uğraşamam derseniz, <a title="Shawn Wilsher" href="http://shawnwilsher.com">Shawn Wilsher</a>&#8216;in yazdığı <a title="Firefox Yeni Sekme Butonu Kaldıran Eklenti" href="https://addons.mozilla.org/en-US/firefox/addon/10535">remove new tab button</a> eklentisi ile yeni sekme butonunu kaldırabilirsiniz.</p>
<p>İster eklenti ile ister manuel olarak kaldırın, firefox u yeniden başlatmayı unutmayın -P</p>
<p>Her iki şekilde de sonuç :</p>
<p><a href="http://blog.irfandurmus.com/wp-content/uploads/2009/07/yeni-firefox-sekmesiz.jpg"><img class="alignleft size-full wp-image-583" title="yeni-firefox-sekmesiz" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/yeni-firefox-sekmesiz.jpg" alt="yeni-firefox-sekmesiz" width="498" height="287" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/firefox-35-yeni-sekme-butonu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Firefox 3.5 ve Multi Touch</title>
		<link>http://blog.irfandurmus.com/firefox-35-ve-multi-touch/</link>
		<comments>http://blog.irfandurmus.com/firefox-35-ve-multi-touch/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:06:20 +0000</pubDate>
		<dc:creator>irfaN</dc:creator>
				<category><![CDATA[Açık Kaynak]]></category>
		<category><![CDATA[İpuçları]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[firefox hack]]></category>
		<category><![CDATA[mutli touch]]></category>

		<guid isPermaLink="false">http://blog.irfandurmus.com/?p=561</guid>
		<description><![CDATA[Multitouch Mac Book ve Mac Book Pro kullanıcıları için Firefox 3.5 ile gelen güzel bir özellik var. Standartta kapalı olarak gelen bu özelliği basit bir iki adımla aktif edebilirsiniz. Bu özelliği aktif ettikten sonra, iki parmağınızı multi touch pad&#8217;iniz üzerinde çevirerek sekmeler arasında gezebileceksiniz.

Firefox ayarlarına ulaşabilmek için, yeni bir pencere veya sekme açın ve about:config [...]]]></description>
			<content:encoded><![CDATA[<p>Multitouch Mac Book ve Mac Book Pro kullanıcıları için Firefox 3.5 ile gelen güzel bir özellik var. Standartta kapalı olarak gelen bu özelliği basit bir iki adımla aktif edebilirsiniz. Bu özelliği aktif ettikten sonra, iki parmağınızı multi touch pad&#8217;iniz üzerinde çevirerek sekmeler arasında gezebileceksiniz.</p>
<p><span id="more-561"></span></p>
<p>Firefox ayarlarına ulaşabilmek için, yeni bir pencere veya sekme açın ve <strong>about:config</strong> yazın enter e basın. Çok dikkatli olmanızı söyleyen uyarıyı kabul ettikten sonra, çıkan ekranda süzgeç kısmına &#8216;<strong>twist</strong>&#8216; yazıyoruz ve aşağıdaki ekrana ulaşıyoruz.</p>
<p><img class="alignleft size-full wp-image-562" style="border: 0pt none; margin: 0px;" title="firefox-35" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/firefox-35.png" alt="firefox-35" width="557" height="141" /></p>
<p><strong>browser.gesture.twist.left</strong> ve <strong>browser.gesture.twist.right</strong> satırlarına değer olarak <strong>Browser:PrevTab</strong> ve <strong>Browser:NextTab</strong> yazıyoruz. Görünüşü aşağıdaki gibi olmalı.</p>
<p><img class="alignleft size-full wp-image-563" style="border: 0pt none; margin: 0px;" title="firefox-35-2" src="http://blog.irfandurmus.com/wp-content/uploads/2009/07/firefox-35-2.png" alt="firefox-35-2" width="555" height="137" /></p>
<p>Firefox&#8217;u kapatıp tekrar açıyoruz. Hepsi bu kadar, artık iki parmağınızı Touch Pad iniz üzerinde çevirerek sekmeler arasında gezebilirsiniz.</p>
<p>&#8220;Multi Touch da neymiş ? Bir tek iPhoto.app, Preview.app gibi yerlerde işe yarıyor.&#8221; diyenlere Mozilla Derneği&#8217;nin kapağı olsun bu da -) Zamanla bir çok program desteklemeye başlayacak ve ileriki yıllarda Multi Touch Track Pad vazgeçilmez olacak.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.irfandurmus.com/firefox-35-ve-multi-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
