Free Virtualization Solutions

February 12, 2010 – 2:53 am

There are times when you want to test an application or a God knows what computer trick but feel reluctant to turning your own computer in a guinea pig. And you know what? It’s only natural that you don’t want to jeopardize the “sanity” and performance of your system simply because you read a computer freak tutorial on how to customize the system by hacking the registry.

I know that making an image of system partition is a great safety net that can reverse the state of the machine to a previous, healthy state, but it almost always happens that you want to preserve all the applications installed and not bother with this later. I mean it is not as if you made a system image immediately after installing a program.

So a very handy solution that has been around for years is virtualization of your machine. The solution can be employed successfully for all sorts of computer tricks testing without affecting your real machine in any way. With the right software, you can make yourself a brand new computer loaded with Windows or Linux OS. Virtual Machines (VM), which are generally called ‘guest’ make for a very good testing environment as nothing is leaked into the real computer, also called ‘host’.

The principle is simple: borrow the resources of the real machine and use them in the virtual machine. You get to select the amount of RAM
the new system will run on, the disk space and the basic peripherals. Regarding disk space, the hard disk image can be dynamically expanding, meaning that its size will grow according to guest OS needs or it can be fix and user defined (it will not take more space than you allot).

An operating system running in a virtual machine will look and feel just like the real thing. You have full control over the way it behaves and there is little effort into it. Actually, all you have to do is install the operating system and that is it.

There aren’t too many applications tailored for creating virtual machines, but the two I recommend are definitely doing a great job as they are both easy to handle and harness. The first one is Virtual Box from InnoTek. The second comes from Microsoft itself under the form of Virtual PC.

If you are in a hurry, I would recommend Virtual PC from Microsoft combined with the XP image available from the same developer. XP is already installed and all you have to do is mount the image and start working. Now, there is a downside to this: XP cannot be updated online and you will have to wait until Microsoft issues a new, updated image.

But, you can always use your own copy of XP for this and benefit from all the updates you want immediately after their release. The great thing with Virtual PC is that you no longer need to define a ‘host’ key in order to make the swap between ‘guest’ and ‘host’ machine and you can drag and drop stuff from ‘host’ to guest with absolutely no problem.

VirtualBox virtualization settings
This would not happen on VirtualBox, but it comes with its own advantages in what concerns functionality. I would try both of them as they are absolutely free and the wizards included will guide you thorough every step to make it easier to create a virtual machine.

You must have all guessed the advantages of a virtual machine by now, but I will reveal them to you anyway. First off you can avoid putting your machine at risk when testing various applications. Just imagine testing an anti-virus’ capabilities of catching in-the-wild nasties. There is absolutely no risk of contaminating the real system as all the malware is contained in VM’s virtual disk.

Also, if you are into surfing unsafe websites, a VM offers security for host machine unaffecting it in any way. We all know how users which are less skilled in the ‘art of computering’ make all sorts of downloads and install various apps (and many times it happens for them not to be too safe) to the default location (generally this is on system drive) thus making a huge dent in your computer’s performance. You can avoid all that by teaching them the ways of a virtual machine.

Not to mention that if you want to try out an application that only works on other operating systems your real machine is equipped with, virtualization is the best solution on the market. The same is available for giving a shot to other operating systems, like Linux.

However, before creating a virtual machine, make sure you have sufficient RAM on the host computer. Though this resource will be utilized only when VM is started, I am sure you want ‘guest’ machine to run as smooth as possible. For this you want to allocate as much RAM as the VM operating system requires and still have some for the ‘host’.

Test your applications and tricks in a safe virtual environment before running them on the real thing. It will take a bit longer to reach a result, but at least it is a risk-free operation, plus – the two solutions presented above perform beautifully and come absolutely free of charge.

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