Archive for the ‘Web Development’ Category
Friday, February 12th, 2010
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.
Posted in Web Development | No Comments »
Thursday, November 12th, 2009
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.
Posted in Web Development, javascript, yui | No Comments »
Tuesday, November 10th, 2009
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;
}
Posted in Web Development, css | No Comments »
Monday, November 9th, 2009
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))
Posted in Web Development, javascript, yui | No Comments »
Thursday, November 5th, 2009
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
Posted in Web Development, linux, ubuntu | No Comments »
Monday, October 19th, 2009
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.
Posted in Web Development | 1 Comment »
Wednesday, July 15th, 2009
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.
Posted in Web Development, hosting, linux | No Comments »
Tuesday, September 9th, 2008
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>');
Posted in Web Development, javascript, yui | 1 Comment »