tag:blogger.com,1999:blog-6445295848907044352024-02-20T15:20:27.441-08:00Ethem SULANDilleri öğrenirken yazdığım kodlardır. Çok az bir kısmı alıntı olabilir hatırlamıyorum tam olarak.Belki işinize yarar diye paylaştım.ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.comBlogger218125tag:blogger.com,1999:blog-644529584890704435.post-42451342995752062762011-09-25T02:02:00.000-07:002011-10-08T02:30:59.011-07:00How to mount a remote file system using sshfs on Linux<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/-GCTwzWAd_SU/Tn7sgMgnWaI/AAAAAAAABJ8/XWV4qSuiQyY/s1600/conf.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="234" src="http://2.bp.blogspot.com/-GCTwzWAd_SU/Tn7sgMgnWaI/AAAAAAAABJ8/XWV4qSuiQyY/s320/conf.png" width="320" /></a></div><br />
Install <b>sshfs</b><br />
1. <b>sudo apt-get install sshfs </b><br />
<b><br />
</b><br />
Name of created directory is "<b>mount</b>".<br />
2. <b>mkdir </b><b>/home/ubuntu/mount</b><br />
<b><br />
</b><br />
Open the fuse.conf file with the <b>gedit</b><br />
3. <b>sudo gedit /etc/ld.so.conf.d/fuse.conf</b><br />
<b><br />
</b><br />
Save the following line into opened file: <b>/usr/local/lib </b><br />
<b><br />
</b><br />
<b><span class="Apple-style-span" style="font-weight: normal;">The following command helps to mount remote filesystem on your computer</span></b><br />
4. <b>sshfs ethemsulan@blabla.osa-tek.com:/ /home/ubuntu/mount</b><br />
<b><br />
</b><br />
The following line can be used to fix the permission denied restriction.<br />
5. <b>sudo chmod a+rwx /etc/fuse.conf</b><br />
<b><br />
</b><br />
<b>chmod 777 </b>helps you to give all the permission your mount directory.<br />
6. <b>chmod 777 /home/ubuntu/mount</b><br />
<br />
If you want to unmount remote directory from your computer, you can use the following command line<br />
<b>sudo fusermount -u /home/ubuntu/mount</b>ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-20242149911191632292011-07-27T04:50:00.000-07:002011-09-25T03:36:10.310-07:00fuse: mountpoint is not empty fuse: if you are sure this is safe, use the 'nonempty' mount optionUubuntu da consolda serveri <b>mount</b> ederken <br />
<b>sshfs ethem@ethemsulan.com:/ /home/osatek/mount/ </b><br />
aşağıdaki gibi bir hata aldım.<br />
<b>fuse: mountpoint is not empty<br />
fuse: if you are sure this is safe, use the 'nonempty' mount option</b><br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/-xXdUFzv5x8g/Tn8EFCYV0SI/AAAAAAAABKA/RJAZe4jhkWs/s1600/ot.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="106" src="http://1.bp.blogspot.com/-xXdUFzv5x8g/Tn8EFCYV0SI/AAAAAAAABKA/RJAZe4jhkWs/s320/ot.png" width="320" /></a></div><br />
Bunun çözümü<br />
<b>sshfs -o nonempty ethem@ethemsulan.com:/ /home/osatek/mount/</b> <br />
<br />
komutu çalıştırmaktır.ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-36365805507689106072011-04-10T09:18:00.000-07:002011-04-10T09:22:51.351-07:00Operada Metin Çift Tıklandığında Içerik Menüsünü Devre Dışı BırakmaHerhangi bir kelimeyi çift tıkladığınızda <b>Opera</b> içerik menüsünü gösteriyor. Bunu <b>disable</b> etmek için aşağıdaki yolu izleyin.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/-XCji1EjlXGw/TaHYT8bnqvI/AAAAAAAABJM/pJv4yLJ2qM0/s1600/click.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="211" src="http://4.bp.blogspot.com/-XCji1EjlXGw/TaHYT8bnqvI/AAAAAAAABJM/pJv4yLJ2qM0/s320/click.png" width="320" /></a></div><br />
<b>Menu-->Settings-->Preferences-->Toolbars-->Advanced-->Opera standard</b> seçip<br />
<b>Double-click text to display context menu</b> de seçili olan ticki kaldırın ve ok buttonu tıklayın.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/-ezbGyX4G5so/TaHULH4vzqI/AAAAAAAABJI/Ndn7RNP6Irs/s1600/opera.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="218" src="http://3.bp.blogspot.com/-ezbGyX4G5so/TaHULH4vzqI/AAAAAAAABJI/Ndn7RNP6Irs/s320/opera.png" width="320" /></a></div>ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-44984537679144147942011-03-20T08:48:00.001-07:002011-03-20T09:16:24.630-07:00Linq Select–Insert–Update–Delete<p>Önceki yazımızda eklediğimiz <a href="http://esulan.blogspot.com/2011/03/adonet-entity-data-model-ekeleme-islemi.html"><font color="#000000"><strong>ADO.NET Entity Data Model</strong></font></a> ile linq kullanarak select – insert –update –delete (CRUD)  işlemleri yapıcaz.</p> <p><strong>İlk olarak<font color="#0000ff"> Insert </font>işlemine bakalım : </strong> <hr /></p> <pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">Sample1Container context = <span style="color: #0000ff">new</span> Sample1Container();<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> Ogrenci ogrenci = <span style="color: #0000ff">new</span> Ogrenci();<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> ogrenci.ogrenciAdi = "<span style="color: #8b0000">Ali</span>";<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> ogrenci.ogrenciSoyadi = "<span style="color: #8b0000">YİĞİT</span>";<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> context.AddToOgrenci(ogrenci);<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> context.SaveChanges();</pre></pre><br /><br /><table border="0" cellspacing="0" cellpadding="2" width="400"><tbody><br /> <tr><br /> <td valign="top" width="400">Sample1Container isminin buradan görebilirsiniz. namespace altında bulunan class ımızın ismi.<a href="http://lh6.ggpht.com/_-OGP34wcMZ8/TYYhr1OU-JI/AAAAAAAAACc/sSXxlx8kQa0/s1600-h/image%5B2%5D.png"> <br /> <br /><img style="background-image: none; border-right-width: 0px; padding-left: 0px; padding-right: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px; padding-top: 0px" title="image" border="0" alt="image" src="http://lh5.ggpht.com/_-OGP34wcMZ8/TYYhsb-9KoI/AAAAAAAAACg/TrYCI56PFkI/image_thumb.png?imgmax=800" width="244" height="142" /></a></td><br /> </tr><br /> </tbody></table><br /><br /><p><strong><font color="#0000ff"><font color="#000000">Şimdi</font> Delete </font>işlemine bakalım : </strong><br /><br /> <hr /></p><br /><br /><br /><br /><p> </p><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">Sample1Container context = <span style="color: #0000ff">new</span> Sample1Container();<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> <span style="color: #0000ff">int</span> SilinecekOgrenciID = 2; <span style="color: #008000">// Buarada ben OgrenciID sini manuel olarak verdim </span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> Ogrenci TblOgrenci = context.Ogrenci.Where(p => p.ogrenciId == SilinecekOgrenciID).First(); <span style="color: #008000">// Burada silinecek ogrenci ıd sini gösteriyoruz </span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> context.DeleteObject(TblOgrenci); <span style="color: #008000">// silme işlemini de burada yapıyoruz.</span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> context.SaveChanges(); </pre></pre><br /><br /><pre> </pre><br /><br /><pre><strong><font color="#0000ff">Update </font>işlemine bakalım :<hr /></strong></pre><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">Sample1Container context = <span style="color: #0000ff">new</span> Sample1Container();<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> <span style="color: #0000ff">int</span> OgrenciID = 2; <span style="color: #008000">// Buarada ben OgrenciID sini manuel olarak verdim </span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> Ogrenci TblOgrenci = context.Ogrenci.Where(p => p.ogrenciId == OgrenciID).First(); <span style="color: #008000">// Burada Güncellenecek ogrenci ıd sini gösteriyoruz </span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> TblOgrenci.ogrenciAdi = "<span style="color: #8b0000">Hasan</span>"; <span style="color: #008000">// Daha önce Ali olan öğrenci ismi Hasan olarak değiştiriyoruz.</span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> ogrenci.ogrenciSoyadi = "<span style="color: #8b0000">KARA</span>"; <span style="color: #008000">// Daha önce YİĞİT olan öğrenci Soyismi KARA olarak değiştiriyoruz.</span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> context.SaveChanges(); </pre></pre><br /><br /><pre><strong><font color="#0000ff">Select </font>işlemine bakalım :<hr /></strong></pre><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px">Sample1Container context = <span style="color: #0000ff">new</span> Sample1Container();<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> <span style="color: #0000ff">int</span> OgrenciID = 2; <span style="color: #008000">// Buarada ben OgrenciID sini manuel olarak verdim </span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> <span style="color: #008000">//Burada sadece bir öğrencinin bilgilerini çekiyoruz.</span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> var OgrenciBilgi = context.Ogrenci.Where(p => p.ogrenciId == OgrenciID).ToList() ;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> <span style="color: #008000">//Burada tüm db de bulunan öğrenci bilgilerini çekiyoruz.</span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> var TumOgrenciBilgileri = context.Ogrenci.ToList();<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> <span style="color: #008000">//sqlDataAdapter da olduğu gibi verilei çekip sonra while döngüsünde read() metodu ile okuma işleminin aynısı. </span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> <span style="color: #0000ff">foreach</span> (var Ogrenci <span style="color: #0000ff">in</span> TumOgrenciBilgileri)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> Response.Write("<span style="color: #8b0000">Ogrenci Adı :</span>" + Ogrenci.ogrenciAdi.ToString());<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> Response.Write("<span style="color: #8b0000">Ogrenci Soyadı :</span>" + Ogrenci.ogrenciSoyadi.ToString());<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 12px"> }</pre></pre><br /><br /><p>Birdahaki yazıda görüşmek üzere….</p> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-24831484203489762102011-03-20T08:13:00.001-07:002011-03-20T08:13:31.609-07:00ADO.NET Entity Data Model Ekeleme İşlemi<p><a href="http://lh3.ggpht.com/_-OGP34wcMZ8/TYYZeROLWJI/AAAAAAAAABU/oZfbV_nJZvA/s1600-h/image%5B50%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh6.ggpht.com/_-OGP34wcMZ8/TYYZfIcneLI/AAAAAAAAABY/4sW0b9PeXjU/image_thumb%5B22%5D.png?imgmax=800" width="240" height="192" /></a></p> <p>Projemizi sağ tıklayıp Add – New Item diyoruz</p> <p><a href="http://lh3.ggpht.com/_-OGP34wcMZ8/TYYZfuHmExI/AAAAAAAAABc/h2IsWDFCoLo/s1600-h/image%5B51%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh3.ggpht.com/_-OGP34wcMZ8/TYYZgP6kZyI/AAAAAAAAABk/Sdtn1hkHooA/image_thumb%5B23%5D.png?imgmax=800" width="240" height="146" /></a></p> <p>Karşımıza çıkan ekranda ADO.NET Entity Data Model seçiyoruz. İsmini belirtip Add diyoruz. Ben adını sample1 dedim.</p> <p> </p> <p><a href="http://lh3.ggpht.com/_-OGP34wcMZ8/TYYZgi1uHJI/AAAAAAAAABo/cdf095JhIcA/s1600-h/image%5B52%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh6.ggpht.com/_-OGP34wcMZ8/TYYZhG2LJiI/AAAAAAAAABs/GsrH9hDJrVU/image_thumb%5B24%5D.png?imgmax=800" width="240" height="214" /></a></p> <p>Buradan Generate From Database yi seçiyoruz ve Next diyoruz.</p> <p><a href="http://lh6.ggpht.com/_-OGP34wcMZ8/TYYZhoptnZI/AAAAAAAAABw/vvtk7HPqCb8/s1600-h/image%5B53%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh4.ggpht.com/_-OGP34wcMZ8/TYYZh59av8I/AAAAAAAAAB0/O59uk01niL4/image_thumb%5B25%5D.png?imgmax=800" width="164" height="240" /></a></p> <p> </p> <p>Burada server name kısmında Sql Serverimizin adını bulup seçiyoruz. İsimlerin listelenmem gibi durumu olabiliyor bu durumda server name kısmına .(nokta) kotmanız yeterli olacaktır. Makinanızda bulunan Sql Serverinizi otomatik olarak bulacaktır. </p> <p><a href="http://lh4.ggpht.com/_-OGP34wcMZ8/TYYZiRKo1XI/AAAAAAAAAB4/DjaUH_hkXAE/s1600-h/image%5B54%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh5.ggpht.com/_-OGP34wcMZ8/TYYZi3lrF7I/AAAAAAAAAB8/vvonFHRI2Ew/image_thumb%5B26%5D.png?imgmax=800" width="164" height="240" /></a></p> <p>Server isimini seçtikten sonra altta bulunan database name yi seçiniz ve Ok diyiniz.</p> <p><a href="http://lh5.ggpht.com/_-OGP34wcMZ8/TYYZksqsC7I/AAAAAAAAACE/rywlz7rpQJI/s1600-h/image%5B55%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh5.ggpht.com/_-OGP34wcMZ8/TYYZkwvzOEI/AAAAAAAAACI/UZDq7YhOLQ0/image_thumb%5B27%5D.png?imgmax=800" width="240" height="214" /></a></p> <p> </p> <p>gelen ekranda connection string bilgilerini ve altta entity connection ismini göreceksiniz.</p> <p>next diyoruz.</p> <p> </p> <p><a href="http://lh6.ggpht.com/_-OGP34wcMZ8/TYYZlRn26jI/AAAAAAAAACM/z6qY_1k4CHc/s1600-h/image%5B56%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh5.ggpht.com/_-OGP34wcMZ8/TYYZlkvYDUI/AAAAAAAAACQ/Cz0MWZ9FTa4/image_thumb%5B28%5D.png?imgmax=800" width="240" height="214" /></a></p> <p> </p> <p>burada seçtiğiniz db ye ait tablolar Tables sekmesinin altında göreceksiniz. Buradan projede kullanmak istediğiniz tabloları seçerek Fnish diyiniz.</p> <p><a href="http://lh5.ggpht.com/_-OGP34wcMZ8/TYYZmEJK_6I/AAAAAAAAACU/7Og4M27e1nc/s1600-h/image%5B57%5D.png"><img style="display: inline" title="image" alt="image" src="http://lh6.ggpht.com/_-OGP34wcMZ8/TYYZmuwxiBI/AAAAAAAAACY/XjbxH2muoFY/image_thumb%5B29%5D.png?imgmax=800" width="240" height="138" /></a></p> <p>Sample1.edmx te seçtiğiniz dblerin diagramını görecelsiniz.</p> <p>Eklem işlemi bu kadar. Bundan sonra edmx’ı kullanmak kalıyo onuda ilerki konularda göreceksiniz.</p> Unknownnoreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-80693750172209902572010-12-26T05:01:00.000-08:002010-12-26T05:01:05.684-08:00How to install .bin and .sh file in Linux(jdk-6u23-linux-i586.bin and netbeans-7.0beta-ml-linux.sh)Bu örnekte <a href="http://www.oracle.com/technetwork/java/javase/downloads/index.html">JDK 6u23</a> .bin uzantılı dosyayı Desktop'a indirdim.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_X8UzuHTr2CU/TRc3vG7xgfI/AAAAAAAABIM/deEdnJNyU6w/s1600/jdk.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="135" src="http://3.bp.blogspot.com/_X8UzuHTr2CU/TRc3vG7xgfI/AAAAAAAABIM/deEdnJNyU6w/s320/jdk.png" width="320" /></a></div><br />
Desktopta indirilen <b>jdk-6u23-linux-i586.bin</b> dosyasının bulunduğu yere aşağıdaki komut ile gittim.<br />
<br />
<b>ubuntu@ethem:~$ cd /home/ubuntu/Desktop/</b><br />
<b>root@ethem:/home/ubuntu/Desktop# sh jdk-6u23-linux-i586.bin</b><br />
komutu ile klasöre çıkartıldı.<br />
<b>root@ethem:/home/ubuntu/Desktop# mv jdk1.6.0_23 /usr/lib</b><br />
ile /usr/lib in altına yani NetBeans'in default olarak JDK'yı aradığı sistem klasörüne ekledim.<br />
<br />
Sonra <a href="http://netbeans.org/community/releases/70/">NetBeans 7.0 Beta</a> Desktopa indirdim. Buda .sh uzantılıdır. Hem .sh hem de .bin dosyalar aynı komut yani sh fileName.sh or sh fileName.bin aynı şekildedir.<br />
<b>root@ethem:/home/ubuntu/Desktop# sh netbeans-7.0beta-ml-linux.sh</b> yazınca aşağıdaki resimde görüldüğü gibi bir kurulum ekranı geliyor.<br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc3Qw4XEMI/AAAAAAAABII/kbAYk4HCkGg/s1600/netbeans.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="307" src="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc3Qw4XEMI/AAAAAAAABII/kbAYk4HCkGg/s320/netbeans.png" width="320" />Dosyalar</a></div><br />
Next ile kuruyoruz.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc5QIM4KgI/AAAAAAAABIQ/wNhIAv5JUx0/s1600/shbin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc5QIM4KgI/AAAAAAAABIQ/wNhIAv5JUx0/s320/shbin.png" width="320" /></a></div><br />
Dosyalar /usr/local altına atılıyor.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://3.bp.blogspot.com/_X8UzuHTr2CU/TRc6zowGUPI/AAAAAAAABIc/c9ruknWA5sE/s1600/uninstall.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="296" src="http://3.bp.blogspot.com/_X8UzuHTr2CU/TRc6zowGUPI/AAAAAAAABIc/c9ruknWA5sE/s320/uninstall.png" width="320" /></a></div><br />
Aşğıdaki resimde görüldüğü gibi kurduk. Netbeans-7.0 beta klasörüne girip <b>uninstall.sh </b>çit tıklayıp gelen ekranda <b>Run </b>buttonu tıklayıp kaldırabilirsiniz.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc6OPFudRI/AAAAAAAABIU/aGahAN6IvQ4/s1600/run.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="103" src="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc6OPFudRI/AAAAAAAABIU/aGahAN6IvQ4/s320/run.png" width="320" /></a></div><br />
Run tıklandıktan sonra Apache ve GlassFish'i de seçip kaldırabilirsiniz.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc6azfGtnI/AAAAAAAABIY/P4UFQpBNvWI/s1600/uninstallnetbe.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="248" src="http://1.bp.blogspot.com/_X8UzuHTr2CU/TRc6azfGtnI/AAAAAAAABIY/P4UFQpBNvWI/s320/uninstallnetbe.png" width="320" /></a></div>ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-63360658352265458272010-12-20T04:18:00.000-08:002010-12-20T04:18:40.363-08:00Ubuntu Tweak Linux'u Kolayca Kullanma Yazilimi<a href="http://ubuntu-tweak.com/">Ubuntu Tweak</a> .deb paktini indirip çift tıklayarak kurun.<br />
Sonra <b>Applications-->System Tools-->Ubuntu Tweak</b>'i çalıştırın.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_X8UzuHTr2CU/TQ9DBUUDzsI/AAAAAAAABH4/uIlwsf1dTVE/s1600/0.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="206" src="http://2.bp.blogspot.com/_X8UzuHTr2CU/TQ9DBUUDzsI/AAAAAAAABH4/uIlwsf1dTVE/s320/0.png" width="320" /></a></div>Aşağıdaki resimde görüldüğü gibi yapılandırmak istediğinizi seçip <b>unlock</b> buttonu tıklayıp root parolasını girdikten sonra değişikleri kolaylıkla gerçekleştirebilrisiniz. Package Cleaner işime yaradığı için gösterdim. Programlar kaldırınca bazı config dosyaları veya paketler kalıyor. Bu yazılım ubuntu yapılandırmaları için kolaylık sağlalıyor.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_X8UzuHTr2CU/TQ9FEaQudEI/AAAAAAAABIA/Co9bUrGOi10/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://4.bp.blogspot.com/_X8UzuHTr2CU/TQ9FEaQudEI/AAAAAAAABIA/Co9bUrGOi10/s320/1.png" width="270" /></a></div> Temizlemek istediğiniz paketleri seçip <b>cleanup</b> buttonu tıklamanız yeterli.<br />
<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_X8UzuHTr2CU/TQ9E75BR0wI/AAAAAAAABH8/EGgbcXTx-9o/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="292" src="http://4.bp.blogspot.com/_X8UzuHTr2CU/TQ9E75BR0wI/AAAAAAAABH8/EGgbcXTx-9o/s320/2.png" width="320" /></a></div>ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-36174724036147796762010-10-11T09:55:00.000-07:002011-02-11T09:55:14.916-08:00Linux'ta Mozilla Thunderbird'i Arka Planda Çalıştırmak<a href="http://www.mozillamessaging.com/en-US/">Mozilla Thunderbird</a>'i indirip yükleyin. Ubuntuda <b>Application-->Ubuntu Software Center </b>dan yükleyebilirsiniz.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_X8UzuHTr2CU/TLM9uC8vmvI/AAAAAAAABG8/K0AyaDP_FPI/s1600/C:%5Cfakepath%5Cubuntu.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="101" src="http://4.bp.blogspot.com/_X8UzuHTr2CU/TLM9uC8vmvI/AAAAAAAABG8/K0AyaDP_FPI/s320/C:%5Cfakepath%5Cubuntu.png" width="320" /></a></div>Thunderbird'i açıp <b>Tool-->Add-ons-->Get-Add-ons</b> arama kısmına <b>minimize on start and close </b>yazıp eklentiyi kurun. <br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_X8UzuHTr2CU/TLM-44-qy8I/AAAAAAAABHA/9OBwpV6RF9w/s1600/C:%5Cfakepath%5Cyukle.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="252" src="http://2.bp.blogspot.com/_X8UzuHTr2CU/TLM-44-qy8I/AAAAAAAABHA/9OBwpV6RF9w/s320/C:%5Cfakepath%5Cyukle.png" width="320" /></a></div>Aynı şekilde <b>Get-Add-ons</b> alanına <b>Minimize To Tray Plus</b> eklentisini de Thunderbird kapandığında Ubuntu da sağ üst köşede görünmesi için kurabilirsiniz. Kurulum tamamlandıktan sonra<b> Extensions-->Preferences-->Always minimize</b>... kutucuğunu işaretleyip kapatın.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_X8UzuHTr2CU/TLM_0So5niI/AAAAAAAABHE/dQ-dQOa-9jM/s1600/C:%5Cfakepath%5Cminimize.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="320" src="http://1.bp.blogspot.com/_X8UzuHTr2CU/TLM_0So5niI/AAAAAAAABHE/dQ-dQOa-9jM/s320/C:%5Cfakepath%5Cminimize.png" width="267" /></a></div>Aşağıdaki resimlerde görüldüğü gibi arkaplanda çalışır ve size mesaj geldiğinde uyarırı sizi.<br />
<div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_X8UzuHTr2CU/TLNA0Ucr0YI/AAAAAAAABHI/MkIxwA1Ze_M/s1600/C:%5Cfakepath%5Cmin.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="101" src="http://4.bp.blogspot.com/_X8UzuHTr2CU/TLNA0Ucr0YI/AAAAAAAABHI/MkIxwA1Ze_M/s320/C:%5Cfakepath%5Cmin.png" width="320" /></a></div><div class="separator" style="clear: both; text-align: center;"><a href="http://4.bp.blogspot.com/_X8UzuHTr2CU/TLNA7bXozeI/AAAAAAAABHM/NRr2nenkpfM/s1600/C:%5Cfakepath%5Ccalisiyor.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="http://4.bp.blogspot.com/_X8UzuHTr2CU/TLNA7bXozeI/AAAAAAAABHM/NRr2nenkpfM/s1600/C:%5Cfakepath%5Ccalisiyor.png" /></a></div>ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-70009339927774862682010-10-06T15:18:00.000-07:002010-11-29T15:18:57.787-08:00Linux'ta Stardict Sözlüğü Babylon<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://2.bp.blogspot.com/_X8UzuHTr2CU/TKzzh_9GnbI/AAAAAAAABGw/spW2EP_9VG0/s1600/C:%5Cfakepath%5Cstardict.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="221" src="http://2.bp.blogspot.com/_X8UzuHTr2CU/TKzzh_9GnbI/AAAAAAAABGw/spW2EP_9VG0/s320/C:%5Cfakepath%5Cstardict.png" width="320" /></a></div>Ubuntu için <b>sudo apt-get install stardict </b>consola yazıp stardict sözlük parogramını yükleyin. <a href="http://dl.dropbox.com/u/13292036/stardict_sozluk.zip">Stardict sözlüklerini</a> indirin ve rardan çıkartın. <b>sudo mv /home/ubuntu/Desktop/stardict_sozluk/ /usr/share/stardict/dic/</b> komut ile share/startdic/dic altına sözlükleri atın. Daha sonra <b>chmod 777 -R /usr/share/stardict/dic/ </b>komutunu çalıştırın<b>. </b>Sonra Application-->Accessories-->Stardic sağ alt köşede sağdan ikinci sırada Manage dictionaries den sözlüklerin sırasını düzenleyin ve default gelen sözlükleri kaldırın. Kelime seçtiğiniz de otomatik olarak algılar ve anlamını yazar. <a href="http://www.brothersoft.com/publisher/stardict.html">Diğer işletim sistemleri için indirin</a>. Stardict open source bir yazılımdır.<br />
<div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"></div><div class="separator" style="clear: both; text-align: center;"><a href="http://1.bp.blogspot.com/_X8UzuHTr2CU/TKz0f0m2xzI/AAAAAAAABG0/R91Xdet5WhU/s1600/C:%5Cfakepath%5Cotomatik.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="144" src="http://1.bp.blogspot.com/_X8UzuHTr2CU/TKz0f0m2xzI/AAAAAAAABG0/R91Xdet5WhU/s320/C:%5Cfakepath%5Cotomatik.png" width="320" /></a></div>ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-72897359246156566532010-10-04T14:49:00.001-07:002010-10-04T14:49:49.192-07:00JavaScript Email Kontrolü<p><a href="http://www.ethemsulan.com/2010/09/array-random-forwhile-and-isnan-function-javascript-example.html">JavaScript Array, Random, isNaN, for while</a> içeren örneğe bakabilirsiniz.</p> <pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%@page contentType="<span style="color: #8b0000">text/html</span>" pageEncoding="<span style="color: #8b0000">UTF-8</span>"%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><html><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <meta http-equiv="<span style="color: #8b0000">Content-Type</span>" content="<span style="color: #8b0000">text/html; charset=UTF-8</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <title>JSP Page</title><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <!-- indexOf("<span style="color: #8b0000">@</span>",0) 0 dan başlar string sonuna kadar tarar.Eğer @ karekterine rastlarsa <span style="color: #0000ff">true</span> yani 1 dönderir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Rastalamazsa -1 dönderir--><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <script language="<span style="color: #8b0000">javascript</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">function</span> adres()<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">if</span>(<span style="color: #0000ff">document</span>.forms[0].mail.value.indexOf("<span style="color: #8b0000">@</span>", 0)!=-1 && <span style="color: #0000ff">document</span>.forms[0].mail.value.indexOf("<span style="color: #8b0000">.</span>", 0)!=-1)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">alert</span>("<span style="color: #8b0000">Maila dresinizi dogru girdiniz</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">alert</span>("<span style="color: #8b0000">Yanlış email formatı</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </script><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <form <span style="color: #0000ff">name</span>="<span style="color: #8b0000">formum</span>" action="<span style="color: #8b0000">GidilecekSayfa.jsp</span>" method="<span style="color: #8b0000">POST</span>" onsubmit="<span style="color: #8b0000">return adres()</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <input type="<span style="color: #8b0000">text</span>" <span style="color: #0000ff">name</span>="<span style="color: #8b0000">mail</span>" value="<span style="color: #8b0000"></span>" /><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <input type="<span style="color: #8b0000">submit</span>" value="<span style="color: #8b0000">Gonder</span>" /><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </form><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></html></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-14496472364938760772010-10-04T14:44:00.001-07:002010-10-04T14:44:47.303-07:00JavaScript Form Kontrolü<pre><a href="http://www.ethemsulan.com/2010/10/jsp-ile-ajax-ve-persist-ormdao.html">Ajax</a> javascript objesine bakmak için tıklayın.</pre><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%@page contentType="<span style="color: #8b0000">text/html</span>" pageEncoding="<span style="color: #8b0000">UTF-8</span>"%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><html><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <meta http-equiv="<span style="color: #8b0000">Content-Type</span>" content="<span style="color: #8b0000">text/html; charset=UTF-8</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <title>JSP Page</title><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <script language="<span style="color: #8b0000">javascript</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%-- DOM(Document Object Model): Tarayıcı ekranında nesnelerin oluşturduğu hiyerarşidir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">En üstte <span style="color: #0000ff">window</span> yani tarayıcı ekranı <span style="color: #0000ff">var</span>.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Javada da buna benzer bir yapı <span style="color: #0000ff">var</span>.En üstte object nesnesi <span style="color: #0000ff">var</span>.Bütün nesneler object nesnesinden türetilmiştir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><span style="color: #0000ff">document</span>.forms[tamSayi] ilk formdan başlayarak 0,1,2.. şeklinde temsil edilir.Yani ikinci bir form olsaydı<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><span style="color: #0000ff">document</span>.forms[1] ile erişirdim.Başka yol ise <span style="color: #0000ff">document</span>.formIsmi.formaAitEleman şeklinde erişiriz.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">--%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">function</span> kontrol(){<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">if</span>(<span style="color: #0000ff">document</span>.birinci.ad.value=='')<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">alert</span>("<span style="color: #8b0000">Ad alanı boş geçilemez</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<span style="color: #0000ff">else</span> <span style="color: #0000ff">if</span>(<span style="color: #0000ff">document</span>.birinci.soyad.value=='')<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">alert</span>("<span style="color: #8b0000">Soyad alanı boş geçilemez</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<span style="color: #0000ff">else</span> <span style="color: #0000ff">if</span>(!<span style="color: #0000ff">isNaN</span>(<span style="color: #0000ff">document</span>.forms[0].yas.value))<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">alert</span>("<span style="color: #8b0000">Yaşınız sayı olmalı</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">return</span> <span style="color: #0000ff">false</span>;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<span style="color: #0000ff">else</span>{<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">return</span> <span style="color: #0000ff">true</span>;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </script><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <form <span style="color: #0000ff">name</span>="<span style="color: #8b0000">birinci</span>" action="<span style="color: #8b0000">DegerleriKaydet.jsp</span>" method="<span style="color: #8b0000">GET</span>" onsubmit="<span style="color: #8b0000">kontrol()</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Ad:<input type="<span style="color: #8b0000">text</span>" <span style="color: #0000ff">name</span>="<span style="color: #8b0000">ad</span>" value="<span style="color: #8b0000"></span>" /><br><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Soyad:<input type="<span style="color: #8b0000">text</span>" <span style="color: #0000ff">name</span>="<span style="color: #8b0000">soyad</span>" value="<span style="color: #8b0000"></span>" /><br><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Yas:<input type="<span style="color: #8b0000">text</span>" <span style="color: #0000ff">name</span>="<span style="color: #8b0000">yas</span>" value="<span style="color: #8b0000"></span>" /><br><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <input type="<span style="color: #8b0000">submit</span>" value="<span style="color: #8b0000">Yazdir</span>"/><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </form><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></html></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-35000878258565473972010-10-04T14:40:00.001-07:002010-10-04T14:40:57.498-07:00create custom JavaScript method<pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%@page contentType="<span style="color: #8b0000">text/html</span>" pageEncoding="<span style="color: #8b0000">UTF-8</span>"%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><html><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <meta http-equiv="<span style="color: #8b0000">Content-Type</span>" content="<span style="color: #8b0000">text/html; charset=UTF-8</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <title>JSP Page</title><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <script language="<span style="color: #8b0000">javascript</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> carpma=<span style="color: #0000ff">new</span> <span style="color: #0000ff">Function</span>("<span style="color: #8b0000">x</span>", "<span style="color: #8b0000">y</span>", "<span style="color: #8b0000">z</span>","<span style="color: #8b0000">return x*y+z;</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> sonuc=carpma(3,4,6);<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">alert</span>("<span style="color: #8b0000">New ile uretilen functionun degeri: </span>"+sonuc);<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">function</span> degerToplama(a,b)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">return</span> a+b;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000">Toplama functionun degeri: </span>"+Toplama(45,3));<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </script><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></html></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-69424468921823299862010-10-04T14:19:00.001-07:002010-10-04T14:19:01.546-07:00JavaScript:void Method<pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%@page contentType="<span style="color: #8b0000">text/html</span>" pageEncoding="<span style="color: #8b0000">UTF-8</span>"%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><html><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <meta http-equiv="<span style="color: #8b0000">Content-Type</span>" content="<span style="color: #8b0000">text/html; charset=UTF-8</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <title>JSP Page</title><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <script language="<span style="color: #8b0000">javascript</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">function</span> cagirlacakMetot()<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> girilenDeger=<span style="color: #0000ff">prompt</span>("<span style="color: #8b0000">Bir deger girin</span>", "<span style="color: #8b0000"></span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000">Girilen deger: </span>"+girilenDeger);<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </script><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><!-- javascript:<span style="color: #0000ff">void</span>(cagrilacakMetodIsimi(parametre)); şeklinde <span style="color: #0000ff">var</span> olan bir metodu çağırabilirsiniz--><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <a href="<span style="color: #8b0000">javascript:void(cagirlacakMetot())</span>">Link tiklayarak metodu cagir</a><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></html></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-531950831845640732010-10-04T13:58:00.001-07:002010-10-04T13:58:36.308-07:00JavaScript Local and Global Instance<pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%@page contentType="<span style="color: #8b0000">text/html</span>" pageEncoding="<span style="color: #8b0000">UTF-8</span>"%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><html><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <meta http-equiv="<span style="color: #8b0000">Content-Type</span>" content="<span style="color: #8b0000">text/html; charset=UTF-8</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <title>JSP Page</title><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><!--<span style="color: #0000ff">var</span> ile metod dışında tanımlanan değişken global olur<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Aynı şekilde metod içinde tanımlanan değişken local olur.--><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <script language="<span style="color: #8b0000">javascript</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> globalDeg=<span style="color: #0000ff">prompt</span>("<span style="color: #8b0000">Global deger gir;</span>", "<span style="color: #8b0000">global</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000">Global fegerimiz: </span>"+globalDeg);<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">function</span> localDeg()<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> localDeg=<span style="color: #0000ff">prompt</span>("<span style="color: #8b0000">Local degisken gir:</span>", "<span style="color: #8b0000">local</span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000"><br>local ve global degislenler mutlaka var ile tanimlanmalidirlar: </span>"+localDeg);<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> localDeg();<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </script><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></html></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-20676146265660643652010-10-04T13:52:00.001-07:002010-10-04T13:55:03.069-07:00JavaScript split(), substring() ve Düzenli İfade Örneği<p><a href="http://www.ethemsulan.com/2009/12/javada-splitstring-ayrma-ve-trimbosluk.html">Java split() metoduna</a> bakabilirsiniz. JavaScript ve java  kullanım açısından benzerdir. Ikisi çok farklı şeylerdir.JavaScript bir script dili iken yani web sayfalarını daha dinamik yapmak için kullanırken java bir platformdur. Java ile web uygulamalarıdan tutun da mobile uygulamalara kadar çeşitli uygulamalar geliştirebilirsiniz.</p> <pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%@page contentType="<span style="color: #8b0000">text/html</span>" pageEncoding="<span style="color: #8b0000">UTF-8</span>"%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><html><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <meta http-equiv="<span style="color: #8b0000">Content-Type</span>" content="<span style="color: #8b0000">text/html; charset=UTF-8</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <title>JSP Page</title><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <script type="<span style="color: #8b0000">text/javascript</span>" language="<span style="color: #8b0000">javascript</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> string="<span style="color: #8b0000">Ben Keşan kültürünü seviyorum</span>";<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000">Bir alt string: </span>"+string.substring(4, 9).bold().fontcolor('red').italics());<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> il="<span style="color: #8b0000">Edirne web sayfasına gider</span>";<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000"><br></span>"+il.link("<span style="color: #8b0000">http://www.edirne.com.tr</span>")+"<span style="color: #8b0000"><br></span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> isimStringi="<span style="color: #8b0000">Trakya@Bölgesi,Edirne#Keşan</span>";<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> regex=/[#@,]/;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> parcalar=isimStringi.split(regex);<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> i=0;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">while</span>(i<parcalar.<span style="color: #0000ff">length</span>)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> {<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write(i+"<span style="color: #8b0000">. eleman: </span>"+parcalar[i]+"<span style="color: #8b0000"><br></span>");<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> i++;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> }<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000"><br>'web' kelimesini bulundugu yerin indexi: </span>"+il.search(/web/));<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </script><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></html></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-30794376038817033802010-10-04T13:34:00.001-07:002010-10-04T13:37:54.423-07:00JavaScript to String() Method Override<pre><a href="http://www.ethemsulan.com/2010/09/java-ile-taban-donusturme-ornegi.html">Java ile taban dönüştürme</a> örneğine bakabilirsiniz.Yazdığım kod toString(radix) metodu gibi taban dönüştürmeyi gerçekleştiriyor</pre><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><%@page contentType="<span style="color: #8b0000">text/html</span>" pageEncoding="<span style="color: #8b0000">UTF-8</span>"%><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><html><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <title>JSP Page</title><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <script type="<span style="color: #8b0000">text/javascript</span>" language="<span style="color: #8b0000">javascript</span>"><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> sayi=8;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000">8 stringe donusturuldu: </span>"+sayi.<span style="color: #0000ff">toString</span>());<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">var</span> sayi2=23;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000"><br>Sayi2 2 lik tabana gosterimi: </span>"+sayi2.<span style="color: #0000ff">toString</span>(2));<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000"><br>Sayi degiskeni 2 lik tanabda gosterimi: </span>"+sayi.<span style="color: #0000ff">toString</span>(2));<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"><span style="color: #008000">//toString(donusturlecek taban 2-36 arasi) metodu ovverride edilmis.Yani hem sayilari stringe hem de taban donusturuyor.</span><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">document</span>.write("<span style="color: #8b0000"><br>Sayi2 degiskenin 6 lik tabanda gosterimi: </span>"+sayi2.<span style="color: #0000ff">toString</span>(6));<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </script><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </head><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> </body><br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></html></pre></pre><br />toString metodu hem sayi tabanına dönüştürme hem de var olan sayıyı stringe dönüştürmeyi sağlıyor. ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-78811884467556870272010-09-06T05:32:00.001-07:002010-10-06T15:28:33.282-07:00How to Changing DNS Server in UbuntuUbuntuda DNS ayarlarını değiştirerek yasaklı sitelere erişilebilir.Youtube gibi siteler. <br />
Sistem—>Tercihler—>Ağ Bağlantıları tıklayarak ağınızı seçip düzenleyi tıklayın.IPV4 Ayarları—>Yöntem—>Sadece Otomatik(DHCP) adreslerini seçin. DNS Sunucuları kısmına aşağıdaki adreslerin arasına virgül koyarak yazuın ve en altta Tüm kullanıcılar tarafından kullanılabiliri seçin ve Uygula tıklayın.<br />
87.118.111.215 <br />
81.174.67.134<br />
<a href="http://lh3.ggpht.com/_X8UzuHTr2CU/TITfXbThCjI/AAAAAAAABGg/azrHpbL1gwk/s1600-h/a1%5B2%5D.png"><img alt="a1" border="0" height="96" src="http://lh3.ggpht.com/_X8UzuHTr2CU/TITfYQQJUwI/AAAAAAAABGk/5ISZfbr6VAs/a1_thumb.png?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="a1" width="244" /></a> <br />
<a href="http://lh5.ggpht.com/_X8UzuHTr2CU/TITfZudeViI/AAAAAAAABGo/-413PTqyVGU/s1600-h/a2%5B2%5D.png"><img alt="a2" border="0" height="244" src="http://lh4.ggpht.com/_X8UzuHTr2CU/TITfaVLi21I/AAAAAAAABGs/3qWn-i3Wxbo/a2_thumb.png?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="a2" width="235" /></a>ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-67491133083946137362010-09-01T03:47:00.001-07:002010-10-06T15:27:37.358-07:00How to install umbrello UML Modeller on UbuntuConsola <b>sudo apt-get install umbrello </b>yazıp tıklayın.Parola girişi çıkar.Parolanızı girdikten sonra entere basın. Tekrar bir uyarı gelir E/H şeklinde. Consola <b>e veya E</b> yazıp entere basınca umrello kurulumu tamamlanıyor.<br />
<a href="http://lh6.ggpht.com/_X8UzuHTr2CU/TH4vUXp6i4I/AAAAAAAABGQ/zJJcFAHrc80/s1600-h/umbrello%5B2%5D.png"><img alt="umbrello" border="0" height="51" src="http://lh4.ggpht.com/_X8UzuHTr2CU/TH4vUsWvORI/AAAAAAAABGU/4b_o1gVtpj0/umbrello_thumb.png?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="umbrello" width="244" /></a> <br />
Uygulamalar-->Programlama-->Umbrello tiklayarak çalıştırın.<br />
<a href="http://lh6.ggpht.com/_X8UzuHTr2CU/TH4vVqHNSHI/AAAAAAAABGY/5NHOmXXyHds/s1600-h/umrello%5B2%5D.png"><img alt="umrello" border="0" height="129" src="http://lh5.ggpht.com/_X8UzuHTr2CU/TH4vWOQiypI/AAAAAAAABGc/6WDIYKrVyBE/umrello_thumb.png?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="umrello" width="244" /></a><br />
Oluşturulan diagramlara ait kodlarını da çıkartma özelliği var.ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-89734780167779922142010-08-29T23:52:00.001-07:002010-10-06T15:28:15.270-07:00How to install Navicat in Ubuntu 10.04Bir çok database arayüzleri programları var. Bunların içinde en beğendiğim arayüz navicattir. Bir çok database ile ilgili işlemi gerçekleştirmeye yardımcı olan bir programdır. Navicat linux sürümünü indir: <a href="http://www.navicat.com/download/download.html" title="http://www.navicat.com/download/download.html">http://www.navicat.com/download/download.html</a><br />
Uygulamalar-->Ubuntu Yazılım Merkezi arama kısmına 7zip yaz ve programı yükle.<br />
<a href="http://lh3.ggpht.com/_X8UzuHTr2CU/THtVNhh51CI/AAAAAAAABF4/dYgFO7p7O7Q/s1600-h/7zip%5B2%5D.png"><img alt="7zip" border="0" height="148" src="http://lh6.ggpht.com/_X8UzuHTr2CU/THtVOqfg_UI/AAAAAAAABF8/-QjSTEJkbRI/7zip_thumb.png?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="7zip" width="244" /></a> <br />
Sonra indirilen .tar.gz dosyasını sağ tıkla ve masaüstüne buraya çıkart seçeneğinden tardan çıkart.Consola<br />
ubuntu@Ethem:~$ <b>cd /home/ubuntu/Masaüstü/</b><br />
ubuntu@Ethem:~/Masaüstü$ <b>sudo mv navicat9_lite_en.tar.gz /usr/share/</b><br />
kalın yazılan kodları yaz.<br />
Note: Masaüstünde tardan çıkartıktan sonra dizinin içine girip start_navicat i tıklayıp çalıştırabilirisniz. Yanlışlıkla dizini silmemek için share dizinine almakta fayda var.<br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/THtVPiMC0jI/AAAAAAAABGA/BHSC-j1mqiw/s1600-h/Navicat%5B2%5D.png"><img alt="Navicat" border="0" height="220" src="http://lh5.ggpht.com/_X8UzuHTr2CU/THtVQmAXkSI/AAAAAAAABGE/QtkCnpxCbFs/Navicat_thumb.png?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="Navicat" width="244" /></a> <br />
Sol menude görülen Dosya Sistemi-->Usr-->Share-->Navicat klasörünün içine girin ve start_navicat tıklayıp navicatı çalıştırın. Her sefer buraya girmek yerine start_navicat seçip üst panele taşıyabilirisniz.Tutup panele bırakınca aşağıdaki resim gibi bir pencere çıkar ve bir isim verip kapatın. Bundan sonra sadece üst panelden tıklayıp çalıştırabilirsiniz.<br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/THtVRtqCpkI/AAAAAAAABGI/w7yBQATcQE0/s1600-h/ustpanel%5B2%5D.png"><img alt="ustpanel" border="0" height="142" src="http://lh3.ggpht.com/_X8UzuHTr2CU/THtVSmeN_PI/AAAAAAAABGM/gb6ChO8etZ0/ustpanel_thumb.png?imgmax=800" style="border-bottom: 0px; border-left: 0px; border-right: 0px; border-top: 0px; display: inline;" title="ustpanel" width="244" /></a> <br />
Eğer default resmi benim gibi değiştirmek istiyorsanız sarı Navicat resmi görünen alanı tıklayıp istediğiniz bir resmi seçin.ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-75434412912508531552010-06-29T14:16:00.001-07:002010-10-27T15:14:35.419-07:00Blog Sitesi Nasıl Yapılır(How to create a blog site)Şu adresi tıklayın: <a href="https://www.blogger.com/start" title="https://www.blogger.com/start">https://www.blogger.com/start</a> <a href="http://lh4.ggpht.com/_X8UzuHTr2CU/TCorRuGTMcI/AAAAAAAABDQ/0KUXbkKrpqM/12.jpg?imgmax=800"><img alt="1" border="0" height="107" src="http://lh4.ggpht.com/_X8UzuHTr2CU/TCornWBkAWI/AAAAAAAABDU/FXgkL-iGwXE/1_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="1" width="244" /></a> <br />
Bloğ oluşturun buttonu tıklayın.<a href="http://prntscr.com/izwh" title="http://prntscr.com/izwh">http://prntscr.com/izwh</a><br />
<a href="http://lh6.ggpht.com/_X8UzuHTr2CU/TCorok_17gI/AAAAAAAABDY/cYPvvzSbD0Y/22.jpg?imgmax=800"><img alt="2" border="0" height="197" src="http://lh6.ggpht.com/_X8UzuHTr2CU/TCor_N7v7II/AAAAAAAABDc/-SESlvE1XsU/2_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="2" width="244" /></a> <a href="http://prntscr.com/izx3" title="http://prntscr.com/izx3">http://prntscr.com/izx3</a><br />
Google hesabınız varsa giriş yapın yoksa google hesabı oluşturun.<br />
<a href="http://lh6.ggpht.com/_X8UzuHTr2CU/TCosARIWD2I/AAAAAAAABDg/G64EVuelKoM/32.jpg?imgmax=800"><img alt="3" border="0" height="212" src="http://lh4.ggpht.com/_X8UzuHTr2CU/TCosWMBlXII/AAAAAAAABDk/ySsg4X9FerI/3_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="3" width="244" /></a> <a href="http://prntscr.com/izxi" title="http://prntscr.com/izxi">http://prntscr.com/izxi</a><br />
Blog başlığı yazın ve bloga isim verin mesela ethemsulan gibi.Sonra uygun olup olmadığını kontrol edin.<br />
<a href="http://lh5.ggpht.com/_X8UzuHTr2CU/TCosXgU88uI/AAAAAAAABDo/GzKX9fpw81k/42.jpg?imgmax=800"><img alt="4" border="0" height="209" src="http://lh6.ggpht.com/_X8UzuHTr2CU/TCphH0jEp-I/AAAAAAAABDs/eEMC7pSbc5A/4_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="4" width="244" /></a><a href="http://prntscr.com/izy0" title="http://prntscr.com/izy0">http://prntscr.com/izy0</a><br />
Istediğiniz bir tema seçin.<br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/TCphI8C6TFI/AAAAAAAABDw/dyzBh4F6hEM/s1600-h/52.jpg"><img alt="5" border="0" height="106" src="http://lh6.ggpht.com/_X8UzuHTr2CU/TCphJ_JA0PI/AAAAAAAABD0/nZ5z1v13M94/5_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="5" width="244" /></a> <a href="http://prntscr.com/izyb" title="http://prntscr.com/izyb">http://prntscr.com/izyb</a><br />
Bloğunuza yazı buradan d ayazabilirisniz ama windows live writer aracı kullanmanızı tafsiye ederim.<br />
Msn ile yüklememişseniz <a href="http://windowslivewriter.spaces.live.com/" title="http://windowslivewriter.spaces.live.com/">http://windowslivewriter.spaces.live.com/</a> indirin ve yükleyin.<br />
<a href="http://lh6.ggpht.com/_X8UzuHTr2CU/TCphLb2WPrI/AAAAAAAABD4/XJ4VwVgNyoo/s1600-h/65.jpg"><img alt="6" border="0" height="82" src="http://lh5.ggpht.com/_X8UzuHTr2CU/TCphMDD6nxI/AAAAAAAABD8/NHN9ygWwioE/6_thumb1.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="6" width="244" /></a> <a href="http://prntscr.com/izzb" title="http://prntscr.com/izzb">http://prntscr.com/izzb</a><br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/TCphM-py1JI/AAAAAAAABEA/a2Hpz4mObA8/s1600-h/72.jpg"><img alt="7" border="0" height="111" src="http://lh5.ggpht.com/_X8UzuHTr2CU/TCphOwq_0rI/AAAAAAAABEE/DIOsO3wi6vM/7_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="7" width="244" /></a> <a href="http://prntscr.com/izzl" title="http://prntscr.com/izzl">http://prntscr.com/izzl</a><br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/TCphTKjJSNI/AAAAAAAABEI/SvK-iXYFJbU/s1600-h/82.jpg"><img alt="8" border="0" height="209" src="http://lh3.ggpht.com/_X8UzuHTr2CU/TCphUa97Q5I/AAAAAAAABEM/ptA4ZSYtvgU/8_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="8" width="244" /></a> <a href="http://prntscr.com/j00d" title="http://prntscr.com/j00d">http://prntscr.com/j00d</a><br />
Bende şu an yüklü olmasaydı kutucuğu işaretleyip yüklerdim.<br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/TCphVGQ1CDI/AAAAAAAABEQ/ZbUs51DcSa4/s1600-h/92.jpg"><img alt="9" border="0" height="71" src="http://lh4.ggpht.com/_X8UzuHTr2CU/TCphVia7JMI/AAAAAAAABEU/t8bRQ2SXvfU/9_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="9" width="244" /></a><a href="http://prntscr.com/j00r" title="http://prntscr.com/j00r">http://prntscr.com/j00r</a> <br />
Windows live writeter Bloglar—>Blog hesabı ekle yi tıklayın.<br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/TCphW_ueWUI/AAAAAAAABEY/UISmJlr4E30/s1600-h/102.jpg"><img alt="10" border="0" height="211" src="http://lh4.ggpht.com/_X8UzuHTr2CU/TCphXtNHSnI/AAAAAAAABEc/DmFpS72IklM/10_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="10" width="244" /></a> <a href="http://prntscr.com/j017" title="http://prntscr.com/j017">http://prntscr.com/j017</a><br />
Başka blog hizmetini seçin.<br />
<a href="http://lh5.ggpht.com/_X8UzuHTr2CU/TCphYqqcu7I/AAAAAAAABEg/pYSFpy30rxk/112.jpg?imgmax=800"><img alt="11" border="0" height="211" src="http://lh3.ggpht.com/_X8UzuHTr2CU/TCphuUSrARI/AAAAAAAABEk/1mJv0P3Ng5c/11_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="11" width="244" /></a><a href="http://prntscr.com/j01d" title="http://prntscr.com/j01d">http://prntscr.com/j01d</a><br />
Oluşturduğunuz blog adresini girin ve google hesabınızın bilgilerini girin.<br />
<a href="http://lh3.ggpht.com/_X8UzuHTr2CU/TCphvRdnT6I/AAAAAAAABEo/VRkP-mRTrzo/122.jpg?imgmax=800"><img alt="12" border="0" height="210" src="http://lh5.ggpht.com/_X8UzuHTr2CU/TCpiFJOaGqI/AAAAAAAABEs/HmVxUyekA94/12_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="12" width="244" /></a><a href="http://prntscr.com/j01g" title="http://prntscr.com/j01g">http://prntscr.com/j01g</a><br />
Blogğunuz başlığı nasıl görünsün.Örneğin Mehmet Ethem SULAN benimki.<br />
<a href="http://lh6.ggpht.com/_X8UzuHTr2CU/TCpiFyIgJuI/AAAAAAAABEw/OYj0UupILgs/s1600-h/142.jpg"><img alt="14" border="0" height="244" src="http://lh6.ggpht.com/_X8UzuHTr2CU/TCpiHuSFlxI/AAAAAAAABE0/xtyRe-jlnWY/14_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="14" width="195" /></a> <a href="http://prntscr.com/j01s" title="http://prntscr.com/j01s">http://prntscr.com/j01s</a><br />
Şimdi de kodların resnkli görünmesi için Eklenti Ekle tıklayın.<br />
<a href="http://lh3.ggpht.com/_X8UzuHTr2CU/TCpiIR8LLBI/AAAAAAAABE4/JqEkW1PzxYo/152.jpg?imgmax=800"><img alt="15" border="0" height="93" src="http://lh6.ggpht.com/_X8UzuHTr2CU/TCpiecJiHRI/AAAAAAAABE8/I64dVpTptOY/15_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="15" width="244" /></a><br />
<a href="http://prntscr.com/j01y" title="http://prntscr.com/j01y">http://prntscr.com/j01y</a><br />
Gidilen sayfada Tüm diller kısmını seçin ve ikinci sayfada Source Code Formatter yükleyin.<br />
<a href="http://lh4.ggpht.com/_X8UzuHTr2CU/TCpifJQN7gI/AAAAAAAABFA/1I0_-mvdwFg/s1600-h/162.jpg"><img alt="16" border="0" height="81" src="http://lh6.ggpht.com/_X8UzuHTr2CU/TCpif0o8rQI/AAAAAAAABFE/u5doPytVhDs/16_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="16" width="244" /></a> <a href="http://prntscr.com/j02i" title="http://prntscr.com/j02i">http://prntscr.com/j02i</a><br />
Şimdi de bir yazı yayınlamak için Source Code yi tıklayın.<br />
<a href="http://lh3.ggpht.com/_X8UzuHTr2CU/TCpigTOTvcI/AAAAAAAABFI/34b8UyNyMJc/s1600-h/172.jpg"><img alt="17" border="0" height="240" src="http://lh6.ggpht.com/_X8UzuHTr2CU/TCpih_MQR6I/AAAAAAAABFM/XhRI8svij3k/17_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="17" width="172" /></a> <a href="http://prntscr.com/j02l" title="http://prntscr.com/j02l">http://prntscr.com/j02l</a><br />
hangi dilde kod yazmışsanız onu seçin ve kodunuzu kopyalayıp yapıştırın ve inser ile windows live writer yayınlama sayfasına ekleyin kodunuzu.<br />
<a href="http://lh5.ggpht.com/_X8UzuHTr2CU/TCpii_NfDtI/AAAAAAAABFQ/aTHfWT9cZc0/s1600-h/182.jpg"><img alt="18" border="0" height="192" src="http://lh3.ggpht.com/_X8UzuHTr2CU/TCpijih-Q6I/AAAAAAAABFU/8lKWG1kr_KU/18_thumb.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="18" width="244" /></a> <a href="http://prntscr.com/j02r" title="http://prntscr.com/j02r">http://prntscr.com/j02r</a> sol tarfa kodu yapıştırın ve insert buttonu tıklayın.Bu seçilen dile ait ayrılmış isimleri renkelndiriyor.<br />
<a href="http://lh5.ggpht.com/_X8UzuHTr2CU/TCpij1eTKMI/AAAAAAAABFY/XFtKCSaWs7w/s1600-h/r2.png"><img alt="r" border="0" height="84" src="http://lh4.ggpht.com/_X8UzuHTr2CU/TCpikurXrFI/AAAAAAAABFc/8solHtA8gTY/r_thumb.png?imgmax=800" style="border-width: 0px; display: inline;" title="r" width="190" /></a> <a href="http://prntscr.com/j035" title="http://prntscr.com/j035">http://prntscr.com/j035</a><br />
Sol alt köşede Kategori Ekle tıklayıp yazınızın kategirisni belirleyin.<br />
<a href="http://lh3.ggpht.com/_X8UzuHTr2CU/TCpilaajKPI/AAAAAAAABFg/Qs188QP5V1Y/s1600-h/135.jpg"><img alt="13" border="0" height="136" src="http://lh5.ggpht.com/_X8UzuHTr2CU/TCpimNP-AiI/AAAAAAAABFk/7RCEVjlvKpM/13_thumb1.jpg?imgmax=800" style="border-width: 0px; display: inline;" title="13" width="244" /></a> <a href="http://img689.imageshack.us/img689/3284/5de359513a154defb86732d.png" title="http://img689.imageshack.us/img689/3284/5de359513a154defb86732d.png">http://img689.imageshack.us/img689/3284/5de359513a154defb86732d.png</a><br />
Son olarak yazdığınızı Yukarda belirtilen yayınla tıklayınca bloğunuzda yayınlanır.ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-85225526075707128382010-06-19T20:22:00.001-07:002010-06-19T20:28:01.447-07:00IPSEC, Yönlendirme Teknikleri, OSI ve TCP Arasındaki Farklar, TC/IP Katmanları<p><strong>IPSEC(Internet Protocol Security)</strong> </p> <pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">IPV4 çıkışında güvenlik ön planda tutulmamıştı. <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Internet’in yaygınlaşmasıyla güvenlik önemli bir hal aldı.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Asıl IPV6 için çıkartılan IPSEC IPV4’tede kullanmak <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">üzere değiştirildi.Asıl çıkış amacı IPV6’da güvenliği<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> sağlamaktır. IPSEC’te şifreleme ve filtreleme bir<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> arada kullanılarak bilgilerin güvenliği sağlanılıyor.</pre></pre><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Güvenlik anlaşmaları : Ipsec’in trafiği nasıl <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">koruyacağını belirler.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Bu problemin çözümü için internet anahtar değişim<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> protocolu IKE geliştirilmiştir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">IPSEC protocolleri IP datagramlarının gizliliğini <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">korumak için standart şifreleme algoritmalarını<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> kullanırlar. IP datagramların koruması için ihtiyaç <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">duyulan bütün bu parametreler bir güvenlik <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">anlaşmasında(security association) saklanılır.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Güvenlik anlaşması kaynak ve hedef IP adreslerini <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">tanımladığından çift yönlü IPSEC iletişiminde sadece bir<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> yöndeki trafikte koruma sağlayabilir. IPSEC her iki yönde <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">de koruma sağlamak için iki adet tek yönlü güvenlik <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">anlaşmasına ihtiyaç duyar. Güvenlik anlaşması sadece IPSEC <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">trafiğinin nasıl koruyacağını belirler.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">2 farklı protocol kullanır.Bunlar : AH ve ESP<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Bu protocolleri kullanma amacı : Iletişimin doğruluğunu<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> kanıtlamak, bütünlük ve gizliliğinden emin olmak içindir. <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Tüm IP datagramlarını koruyabileceği gibi sadece daha üst<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> katmanalrın protocollerini de koruyabilir.Bu durumlar<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> için karşılık gelen modlar 1. Tünel 2.Taşıma dır.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Tünel modunda, ıp datagramını ıpsec protocolunu kullanarak <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">yeni bir ıp datagramı tarafından tamamen kapsüllenir(wan’lar arasında)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Taşıma modunda ise ip datagramının sadece kullanıcı <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">verisi(payload), ipsec protokolü tarafından ip başlığı ile daha <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">üst katman protocol başlığı arasına yerleştirilerek <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">işlenir(LAN üzerinde yapılan ipsec uygulamaları)</pre> Modlar : <a title="http://prntscr.com/hos8" href="http://prntscr.com/hos8">http://prntscr.com/hos8</a></pre><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Bütünlük koruma : IPSEC protokolleri ipdatagramının bütünlüğünü <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">korumak için hash mesaj doğrulama kodlarını (HMAC) kullanırlar.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">MD5 ve SHA gibi hash algoritmaları kullanarak ip datagramını <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">ve bir gizli anahtarı temel alan HMAC çıkartılır.Amaç verinin<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> değiştirilmesini engellemektir.oluşturulan HMAC, ipsec <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">protocol başlığına eklenir ve paketin alıcısı, eğer eğer<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> gizli anahtara erişimi varsa bu HMAC’ı kontrol edebilir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Gizlilik : Ipsec protokolleri, ip datagramlarının gizliliğini <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">korumak için standart olarak, simetrik şifreleme algoritmaları<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> kullanır.Günümüğzde genel olarak 3DES,AES, Blowfish gibi <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">güçlü algoritmalar kullanılır.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Ipsec protokollerini karşılıklı olarak kapsülleyip açabilen<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> eşlerin gizli anahtarı algoritmaları ve iletişiminde <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">izin verilen ip adreslerini saklamak için bir yönteme <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">ihtiyaçları vardır.Ip datagramlarının korunması için ihtiyaç<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> duyulan bu parametreler bir güvenlik anlaşmasında <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">saklanılır(SA).Güvenlik anlaşmaları sırayla güvenlik <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">anlaşmaları vt sinde(SAD) da saklanırlar.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">• Her bir güvenlik anlaşması aşağıdaki parametreleri tanımlar;<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">1.Oluşan ipsec başlığının hedef ve kaynak ip adresleri.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Bu adresler, paketleri koruyan ipsec eşlerinin ip adresleridir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">2.Ipsec protokolü(AH veya ESP) bazen sıkıştırmada desteklenir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">3.Ipsec protokolünün kullandığı gizli anahtar ve protokol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">4.Günlük parametre dizinini(SPI) : Bu güvenlik anlaşmasını<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> belirleyen 32 bit sayı.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">•Bazı SAD gerçeklenimleri başka parametrelerinde saklanmasına izin verir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">1.Ipsec modu(tünel ya da taşıma)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">2.Cevap ataklarına karşı koruma sağlayan kayan pencerenin büyüklüğü<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">3.Güvenlik anlaşmasının geçerlilik süresi<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">•Güvenlik anlaşması kaynak ve hedef ip adresini tanımladığında<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> çift yönlü iletişiminde sadece bir yöndeki trafikte koruma<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> sağlayabilir.Ipsec 2 yönde de koruma sağlamak için 2<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> adet tek yönlü güvenlik anlaşmasına ihtiyaç duyar.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">•Güvenlik anlaşması elle yapılandırılması hataya yatkın ve çok da güvenli değil.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">•Gizli anahtarın ve şifreleme algoritmaların VPN deki tüm<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> eşler arasında paylaşamsı gerekir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">•Ipsec protokol ailesi 2 bağımsız ip protokolünden oluşur.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">1.Kimlik kanıtlama başlığı(AH) : 51 nolu protokol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">2.Kapsüllenen güvenlik yükü(ESP) : 50 nolu protokol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">•AH(Authentication Header)(Kimlik Kanıtlama Başlığı) : <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">AH protokolü ip datagramının bütünlüğünü korur.Bunu yapabilmek<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> için datagramının HMAC’ini hesaplar.HMAC hesaplanırken, gizli <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">anahtar, paketteki kullanıcı verisi ve ip başlığındaki ip adresi<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> gibi değişmeyen bölümler temel alınır.Bu bilgi daha sonra paketin <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">AH başlığına eklenir.</pre></pre><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">TCP/IP protocol takımında, veri iletişimi için nelerin gerekli <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">olduğunu ve bunların nasıl gerçekleştirileceği tanımlanmıştır.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Katmanlar ve bu katmanlarda çalışacak(IP, TCP gibi)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> protocoller belirlenmiştir.OSI referans modelindeyse sadece<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> veri iletişimi için gerekli olan şeyler belirlenmiştir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Protocol : Katmanlar arası konuşmayı düzenleyen kurallar topluluğudur.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> AH : Kimlik kanıtlama başlığı<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">ESP : Kapsüllenen güvenlik yükü.ESP protokolü hem hmac<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> kullanarak paketin bütünlüğünü hem de şifreleme kullanrak <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">paketin gizliliğini garanti eder.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">NAT : Ağ adres çeviricisi<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">TCP : Transmission control protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">IP : Internet protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">DNS : Domain Name System<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">http : Hyper Text Transfer Protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">HTTPS : Secure http<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">FTP : File Transfer Protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">SFTP : Secure FTP<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">SNMP : Simple Network Managment Protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">DHCP : Dynamic Host Configuration Protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">NFS : Network File System<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">LPD : Line Printer Daemon<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">SMTP : Simple Mail Transfer Protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">POP3 : Post Office Protocol 3<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Telnet : Telecommunication Network<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">SLIP : Serial Line Internet Protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">PPP : Point-to-point Protocol<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">UDP : User Datagram Protocol</pre></pre><br /><br /><p><strong>Yönlendirme</strong></p><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">1.Static 2.Dinamik 3.Kaynaktan yönlendirme <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">4.Hop by hop yönlendirme<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> Yönlendirme Teknikleri<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">1-En kısa yolu bulma algoritması : Bilgisayar ağlarında iki<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> nokta arasındaki en kısa yolu bulurken ölçüt olarak:<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">a-Bağlantı noktaları arasındaki coğrafi uzaklık<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">b-Geçilen düğüm(sekme) sayısı<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">c-Hatalar üzerinde ortaya çıkan aktarım süreleri, <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">gecikme değerleri sonuçta amacımız, kullanılan ölçüte <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">bağlı olarak kaynak noktasından varış noktasına<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> en kısa yolun bulunmasıdır.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">2.Flooding : Bu yöntemde bir düğüme ulaşan paketin <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">kopyaları çıkarılır ve bu kopyalar paketin geldiği <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">bağlantı(hat) dışındaki tüm bağlantılardan gönderilir.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">3.Distance Vector Routing : Uzaklık vektörü yönlendirmesi<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> dinamik yönlendirme algoritmasıdır. Bu teknikte her <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">yönlendirici bir yönlendirme tablosu tutar.Bu tabloda ağdaki <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">her yönlendirici için bir satır bulunur. Her satırda ilgili <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">yönlendiricinin tablonun bulunduğu yönlendiriciye olan <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">uzaklığı ve ilgili yönlendirmeye hangi çıkış hattı üzerinden <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">ulaşılacağı bilgisi saklanılır.Uzaklık vektörü <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">yönlendirmesinde her yönlendirici(peryodik olarak) her <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">T milisaniyede bir kendi tablosunda bulunan ölçüt değerlerini<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> komşularına gönderir ve benzer bir tabloyu da komşusundan alır.</pre></pre><br /><br /><p><strong>RSA(Anahtar Üretimi)</strong></p><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Örnek: 123 şifreleyip göndermek için verilen p=61, <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">q=53 n=p*q=3233 <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">q=(p-1)(q-1)=60*52=3120 1<e13120 olacak şekilde 3120 <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">ile arasında asal 17’yi seçelim. d*17=1(mod 3120) <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">olması için d=2753 bulunur.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Açık anahtar (3233, 17) şifreleme c=m^e(mod n) <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Gizli anahtar 2753 deşifreleme m=c^d(mod n)<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Bunlar verilir<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">C=123^17 (mod 3233)=855 bu şifrelenmiş hali. <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">855 i deşifrelemek için m=855^2753(mod 3233)=123</pre></pre><br /><br /><p><strong>TC/IP Katmanları</strong></p><br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Uygulama : Telnet,FTP,SMTP,DNS<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Taşıma : TCP, UDP<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Ağ : IP/Arp, ICMP,IGMP<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">Fiziksel : Arpnet, LAN</pre></pre><br /><strong>OSI ve TCP Arasındaki Farkla</strong> <br /><br /><pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">1.OSI’de özel bir protocol eğilimi yok.Ama TCP/IP protocol kullanır.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">2.OSI VE TCP/IP modellerindeki katman sayıları farklıdır.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">3.OSI modelinde(oturum ve sunum katmanları hariç) <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">bilgisayar ağlarını tartışmak ve tasarlamak için yararlı <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">bir başvuru modelidir. TCP/IP yeni ağ tasarımı için <br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">faydalı bir model olmuştur.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">4.OSI’de hizmet, arayüz ve protocollarda net hizmet farkı<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> belirlenmiş. TCP/IP net bir ayrım yapmamış.<br /></pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">5.OSI VE TCP hizmet türü</pre></pre><br /><br /><p>Bağlantı hızları: <a title="http://prntscr.com/hosj" href="http://prntscr.com/hosj">http://prntscr.com/hosj</a></p> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-72103083755981902872010-06-18T02:04:00.001-07:002010-06-18T02:59:14.610-07:00SAL ile while Örneği<p>int toplam=0;</p> <p>int i=0;</p> <p>while(i<=10){</p> <p>i=i+1;</p> <p>toplam=toplam+i;</p> <p>}</p> <p>printf(toplam);</p> <p>C kodunun SAL karşılığı</p> <blockquote> <p>.data</p> </blockquote> <p>toplam:               .word 0</p> <p>i:                         .word 0</p> <blockquote> <p>.txt</p> </blockquote> <p>_while:                bgt            i,10, endwhile</p> <p>                           add            i,i,1</p> <p>                           add            toplam, toplam, i</p> <p>                           b                _whil</p> <p>endwhile:           put            toplam</p> <p>                           done</p> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-82485890220568099342010-06-03T11:59:00.001-07:002010-06-03T11:59:14.183-07:00Python ile Girilen Değeri Dosya Yoksa Oluşturup Sonuna Ekleyen Örnek<pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">#!/usr/bin/python</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"># acma modu a secilince eger dosya yoksa olusturur.</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">#dosya varsa sonuna ekleme yapar.</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">url=<span style="color: #0000ff">open</span>("<span style="color: #8b0000">./ds.txt</span>","<span style="color: #8b0000">a</span>");</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">str=<span style="color: #0000ff">raw_input</span>("<span style="color: #8b0000">Dosyaya yazmak icin bir cumle girin : </span>");</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">devam="<span style="color: #8b0000">e</span>"</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">while devam=="<span style="color: #8b0000">e</span>":</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> url.<span style="color: #0000ff">write</span>(str);</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> url.<span style="color: #0000ff">write</span>("<span style="color: #8b0000">\n</span>");</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> devam=<span style="color: #0000ff">raw_input</span>("<span style="color: #8b0000">Devam etmek icin 'e' yazin : </span>");</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> <span style="color: #0000ff">if</span> devam=="<span style="color: #8b0000">e</span>":</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"> str=<span style="color: #0000ff">raw_input</span>("<span style="color: #8b0000">Dosya icin bir cumle girin : </span>");</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px">url.<span style="color: #0000ff">close</span>();</pre><pre style="background-color: #ffffff; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; font-size: 11px"></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-68521627524653446702010-06-02T16:48:00.001-07:002010-06-02T16:48:44.734-07:00Random ile Üretilen Sayılardan En Çok Tekrarlanan Sayıyı Bulan Python Kodu<pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">#!/usr/bin/env python</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">#random modülünü <span style="color: #0000ff">import</span> ettik</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"><span style="color: #0000ff">import</span> random;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">liste=[];</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">tekrarlanan=0;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">sayi=0;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">#randint(baslangic,son) arasinda deger uretir</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">for i in range(1,30):</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> x=random.randint(1,15)</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> liste.append(x);</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> <span style="color: #0000ff">if</span> liste.<span style="color: #0000ff">count</span>(x)>tekrarlanan:</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> tekrarlanan=liste.<span style="color: #0000ff">count</span>(x);</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> sayi=x;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"><span style="color: #0000ff">print</span> sayi,"<span style="color: #8b0000"> sayisi: </span>",tekrarlanan,"<span style="color: #8b0000"> kez tekraralnadi</span>";</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">liste.sort();</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"><span style="color: #0000ff">print</span> liste;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com0tag:blogger.com,1999:blog-644529584890704435.post-8104147081745205062010-06-02T16:43:00.001-07:002010-06-02T16:43:21.706-07:00Rastgele Sayı Üreten Python Kodu<p>Python ile rastgele üretilen sayıları diziye attık ve en büyük ücüncü sayıyı ekrana yazan kdo örneği</p> <pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">#!/usr/bin/env python</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"><span style="color: #0000ff">import</span> random;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">buyuk_sayi=0;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">liste=[];</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">for i in range(20):</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> a=random.randint(1,10);</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> liste.append(a);</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">liste.sort();</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"><span style="color: #0000ff">print</span> liste;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff">for i in liste:</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> <span style="color: #0000ff">if</span> liste.<span style="color: #0000ff">count</span>(i)<>1:</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> for k in range(1,liste.<span style="color: #0000ff">count</span>(i)):</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"> liste.remove(i);</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"><span style="color: #0000ff">print</span> liste;</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"><span style="color: #0000ff">print</span> "<span style="color: #8b0000">en buyuk ucuncu sayi :</span>",liste[-3];</pre><pre style="font-size: 12px; margin: 0em; width: 100%; font-family: consolas,'Courier New',courier,monospace; background-color: #ffffff"></pre></pre> ethemsulanhttp://www.blogger.com/profile/18012516362957365761noreply@blogger.com2