YUI’ye Başlangıç: YUI Nasıl Kullanılır?

November 12, 2009 – 5:30 pm


YUI, YAHOO tarafından geliştirilen içerisinde javascript ve css kodları bulunduran gelişmiş bir arayüz kütüphanesidir. Arayüz geliştiricilerinin tüm ihtiyaçlarını karşılayacak kadar zengindir. YUI’nin nasıl kullanıldığını adım adım öğreneceğiz.

Devamını okumak için lütfen tıklayınız…

Ubuntu 9.10 ve Vodafone 3G Modem: Huawei E620

November 10, 2009 – 2:23 pm

3G modemi ilk kez Ubuntu 9.04 te denemiştim ve sonuç mükemmeldi. Hiç bir driver yüklemeden, ilk denemede internete bağlanabilmiştim. Biricik işletim sistemim Ubuntu’ya olan hayranlığım bir kat daha artmıştı. Fakat 9.10′la birlikte ben gibi bir çok Ubuntu kullanıcısı hayal kırıklığına uğradı. 9.10 da 3G modemler USB bellek olarak görünüyor. Modem olarak sisteme bağlanmadığı için internete girmek de mümkün olmuyor. Böylece Microsoft’un Windows işletim sistemleri için hazırlanmış olan bu `kendi driverını yanında taşıyan modem` modeli Ubuntu’nun yoluna taş koymuş oldu.

Yine de Unix’te çareler tükenmez. Aşağıdaki kodları sırayla çalıştırarak Ubuntu 9.10′da da modeminizi internete hazır duruma getirebilirsiniz. Fakat bu kodu çalıştırmadan önce Usb Bellek olarak sisteme bağlanan modemi ‘Safely remove’ etmemiz gerekiyor. Kodları çalıştırdıktan sonra 3G bağlantımız Network Manager’da listelenecektir. Ubuntu takımı bu hatayı düzeltene kadar malesef her açılışta bu hatayı elle düzeltmemiz gerekiyor.

sudo rmmod usb-storage
sudo modprobe -r option
sudo modprobe -r usbserial
sudo modprobe usbserial vendor=0x12d1 product=0x1001
sudo pppd ttyUSB0

IE7 Bug: On window resize relative positioned elements disappear

November 10, 2009 – 1:52 pm

If you have relative positioned or floating elements on your page, try to resize your page in IE7, you will see some elements disappear. I also know that sometimes hovering block displayed anchors causes this bug.

Problem is causeing from haslayout property of these elements. If we change haslayout property, the problem is going to be solved. An easy hack of haslayout property is applying “zoom:1″ to elements:

relative_elements_selector {
  zoom:1;
}

YUI Selector IE8 Bug and Solution

November 9, 2009 – 5:26 am

We used YUI 2.5.2 version for a long time on markafoni.com. With the new face of markafoni I decided to update YUI version. I updated YUI to 2.8rc version, but surprisingly I saw javascript errors in all IE8 pages. After googling I found the solution. The problem is was here in selector.js (or selector-min.js):

if(YAHOO.env.ua.ie && YAHOO.env.ua.ie<8)

Change to:

if(YAHOO.env.ua.ie && ((!document.documentMode && YAHOO.env.ua.ie<8) || document.documentMode < 8))

Thinkpad SL500 Ubuntu Drivers

November 5, 2009 – 5:49 pm

I recently bought a new Thinkpad SL500. I installed a fresh Ubuntu 9.10. Unfortunately media keys and bluetooth was not working. After googling I found an experimental driver for media keys and bluetooth.

Here is the solution; first download driver from http://github.com/tetromino/lenovo-sl-laptop

After unpacking it. Run commands in the folder:

make all
sudo cp lenovo-sl-laptop.ko /lib/modules/`uname -r`/kernel/drivers/misc
sudo depmod
sudo modprobe lenovo-sl-laptop

Easy way of mounting remote media/folders with sshfs

November 5, 2009 – 5:34 pm

Using ssh’s power it is very easy to mount remote folders. All you need to install sshfs package. It exist in the repository of Ubuntu. Don’t forget to add your user to Fuse group.

Step 1.

Install sshfs:

sudo apt-get install sshfs

Step 2.

Go to Ubuntu’s System -> Administrator -> Users and Groups

Add your user to fuse group.

Now you’re ready to mount remote folders. For example:

sshfs root@remoteip:/remote_path /home/user/Desktop/mnt

ProcessingJs ve HTML5 Canvas

October 19, 2009 – 4:09 pm

Web’de animasyon yapmak hiç bu kadar kolay olmamıştı. HTML5 bir gün tüm browserlar tarafından desteklenir olduğunda, basit animasyonlar yaratmak için herhangi bir araca gerek duymayacağız. Processing ve Processingjs sayesinde, HTML5 canvas üzerinde animasyon oluşturmak için bir kaç satır kod yazmak yeterli oluyor.

Okul projemi processing’de yazdıktan sonra örnek olarak bloguma da yazmaya karar verdim. Bu animasyon Internet Explorer haricindeki browserlarda görünecektir.

Linux Hosting

July 15, 2009 – 3:57 am

If you are in the process of obtaining quality web hosting and wish to do so at an affordable price you have, or most likely will, notice that Linux Hosting is one of the alternatives. This form of web hosting is highly popular and one of the reasons for this is that it only costs a couple of dollars per month. Linux Hosting is, obviously, based on the Linux Software which is open source and consequently free. When browsing the web one quickly notices that many tend to compare Linux Web Hosting with Windows Hosting which has lead to us also doing a quick comparison of the two, trying to sort them out.

Even though there are many similarities between Linux Hosting and Windows Web Hosting, a couple of things still set them apart. The differences might not be that big but they are still worth mentioning. Important to mention before we dive into these two forms of web hosting is that a lot of website owners put way too much focus on which operating system to choose rather than looking at what the web host, and its hosting plans, has to offer when it comes to features and services. From a pricing point of view it is pretty much neck and neck between Linux and Windows Hosting. Any of these two should not cost you more than $4 to $7 a month. For this amount you should get an impressive number of disk space, bandwidth and uptime. We would recommend you partnering up with the more well-known providers as you can trust them to deliver as promised.

So, let us get to what sets Linux Hosting and Windows Web Hosting apart and which one that is to prefer. When asking professionals, such as webmasters and web designers, you will almost exclusively get the answer that Linux Hosting is their top choice. This is how it is today and how it has been for quite some time now. It is not easy to say why this is but the fact that Linux has narrowed its ease-of-use gap and improved its functionality certainly has got something to do with it. Picking Windows Web Hosting is not a bad thing as it allows full allowance of ASP but from a general point of view Linux is to prefer. It is simply easier to use.

ubuntu’da youtube.com engelini aşmak için kolay bir yöntem

May 1, 2009 – 6:39 pm

sudo su
cat ip_list >> /etc/hosts

 
ip_list dosyasının içeriğini /etc/hosts dosyasına eklemek yeterli oluyor.

Aynı yöntemle tüm engelli siteleri açmak mümkün.

ip_list dosyasını buradan indirebilirsiniz

YUI 3 experimental example

September 9, 2008 – 4:59 am

As a YUI fan, I am excited about new release of YUI. There is a total diffrence between YUI 2.x and YUI 3.x. Now it is time to try new YUI 3.x

I made an experimental example using Node and Event modules. Here is the example.

Creating elements are very easy with new YUI:

Y.Node.create('<div class="class" style="style:value;">
Lorem ipsum
</div>');