Friday, August 21, 2009

Virtualization







To understand the main concept of virtualization, we will use a real – life example:
Presume you have four different sized people who want to go to work, you can get each one of them a vehicle that suits his route and size, this is going to cost you much and also each car will be used for a little time and then left parking. What if you put them all in one vehicle each of them with his seat that suits him and in a way or another let each "virtualizes" that the vehicle is all his. He can use the radio, the air condition and everything else in the vehicle.

Well, the second way is surely better as it is cheaper, faster and gets all what the vehicle can provide. This second way is "Virtualization" except that we will replace the four different sized men with four different operating systems that we want to use and the vehicle with a computer that has virtualization environment so each operating system sees the resources which we demonstrated as the radio and the air condition as if they were only for it.

At this point, a question has jumped into your head: How one radio will be used at the same time by four men? Well this what virtualization software does, it manages and organizes this operation. Consider it as a layer that creates four virtual tuners one for each man so when a man changes the station, the "one" radio will use the "one" Antenna to get "different" station that the man will hear on his own "headphone" leaving the other men undisturbed.

Another question: How one antenna will deliver different stations? That's the hardware part of virtualization. Instead of buying four antennas we will use only one but each man will have his own amplifier that will enable him to get the station he tuned to. If not convinced, think of it as one router that serves many users each using the internet in a completely different way.

It may come across your mind that creating the virtual tuners and the headphones is going to cost more; surely you will change your mind when you know that with no virtualization each computer will be using only 10 to 15 percent of its processing capacity and still consuming the same energy as a full used computer.

For normal user, this doesn't mean much but for IT companies and web hosting servers, this means saving millions of dollars. It is enough to know that using virtualization, each 10 up to 20 servers can be replaced with only one server. This not only saves money and time to buy and install servers but also reduces size of data centers where servers are located.

With the ever increase in data stored on web and in data bases, virtualization will be a must in order to contain all data in a reasonable cost. IT giants like Sun, VMware, Microsoft and many got that point and they are competing who can provide the cheapest and fastest virtualization technology.

Sunday, August 9, 2009

Just Started !!



First Meeting of Software Freedom Day organizers



The time was 10:00 am and the place was one of the classes of Computer Science Department (CSD), Faculty of Engineering, Alexandria University, the event was the kick off meeting of Software Freedom Day @ Alexandria University.

Let's talk about the event it self before we talk about the meeting, it is a two week event that is intended to start at 1st September 2009. The event targets every one, its main goal is not only to introduce Free Software to people but also to give them the real life experience gained by others who started using Free Software and joined Open Source communities along ago.

The Event will mainly consist of presentations and demos covering wide range of topics,
stands providing on site information and installtion, study groups and contests along with other things, so it seems that we have lots of things to do in the coming month, and you have the chance to enjoy two weeks of Free Software Mania.

Back to the meeting, it lasted for about two hours and was started by each one introducing him / her self, then Ahmed Saeed who is the head of coordination team told us everything about the event and explained to us the tasks we should be doing for the coming month. Teams were created and will be led by four coordinators: Ahmed Abd Al Aziz, Asmaa El Sayed, Yasmin Mohammed and Abd Rahman Gamal who all have previous experience in organizing many similar events.

Come and join us, you will enjoy your time and get great knowledge which may change your life forever or at least the technology you use in your daily life.

You can find more information here and you can join our group on facebook.

Check the blog and the facebook group for updated news about the event, See you all there !!

Thursday, July 30, 2009

Run .jar file on Linux




Hi everyone,

Today, I am bringing to you a very nice thing, if you have written java code on windows, exported it as a .jar file and used it on Windows but was unable to do this on linux though you have JDK installed on linux, then this is the right place for you !!

To do this surely you must have a correct and runnable java code with a main class.

Steps:
======

If you are using netbeans right click on the project and then click clean and build, on eclipse right click on the project and then choose export and choose as runnnable jar file.

This will create a .jar file in your project folder (for netbeans inside the dist folder).

You will open your nice terminal and start by creating a "launcher" which is a shell script that you create so that it can run your .jar file.

In this example I made a simple watch and the jar file is named SimpleWatch.jar, ok?


you will type:


cd /usr/local/bin


then


gksudo gedit SimpleWatchLauncher.sh


the last command will open the Text editor you copy and paste this

#! /bin/bash
cd /home/khaled/NetBeansProjects/SimpleWatch/dist
java -jar /home/khaled/NetBeansProjects/SimpleWatch/dist/SimpleWatch.jar


Of course you will replace "/home/khaled/NetBeansProjects/SimpleWatch/dist" with the path of the directory that contains your .jar file

Save and exit the Text editor






Type this in the terminal (Make sure you are in /usr/local/bin)

sudo chmod +x /usr/local/bin/SimpleWatchLauncher.sh



That's it you are done !!!


now open your terminal and type:

cd /usr/local/bin/


Click enter
then type


SimpleWatchLauncher.sh



Your application will Run isA and you will now that Java is really platform independent :D

Wednesday, July 29, 2009

فرانكو لعربي







عاملين إيه ؟
البوست ده أصلا أنا كاتبه كله فرانكو مش كاتب ولا كلمة فيه بالحروف العربي اللي على الكيبورد !! إزاي بقى ده عن طريق برنامج جامد جدا مايكروسوفت نزلته اسمه Maren البرنامج ده تقدر تخليه يحول الكلام الفرانكو إلى عربي وإنت بتكتب والصراحة البرنامج جامد جدا و التوقع بتاعه رائع جدا لكن في حاجة مهمة كنت عاوز أقولها إن على اد ماالبرنامج ده و ال برامج اللي زيه بتخلينا نكتب عربي أكتر على الانترنت على اد ماهي يخلينا نستغنى تماما عن الحروف العربي وتقريبا ننساها لاننا كده بجد عمرنا ماهانسخدم الزراير العربي على الكيبورد لاننا ياما هانكتب فرانكو أصلا أو هانكتب فرانكو مترجم عربي

عموما البرنامج جامد جدا وأكيد هستخدموا بالذات في بوستس على البلوج هنا في اللابل الجديد اللي اسمه بالعربي
الحاجة برده الجديدة إن مايكروسوفت نزلت البرنامج ده ببلاش يمكن عشان عارفة إن قليل قوي من المستخدمين العرب ممكن يدفعوا فلوس مقابل سفتوار بس ياريت مايكروسوفت تنزل نسخ تشتغل على انظمة تانية غير الويندوز زي لينكس وأبونتيو وكمان ماك .... يا رب



ممكن تنزل البرنامج من اللينك ده

واتفرج على الفيديو اللذيذ ده كمان عن البرنامج


سلام

Tuesday, July 7, 2009

Clean you Vista










Hi everyone,

If you are using Windows Vista like me, you may have noticed that the free space on your C drive where you installed Windows decreases even if you install no new software on it. This is caused by many things, the most important ones are temporary internet files which are files stored on your hard to enable you surf the internet faster, Temp folder which may be up to five GB which saves configurations about applications you ran on your computer, the hibernate files which enables your computer to hibernate.

You can clean them up and free space so you can speed up your system by using the clean up disk tool
Start -> Accessories -> System tools -> Disk Clean Up

Any way if you really want to clean every thing and get more space, I recommend a tool called CCleaner (Crap Cleaner), it just Free 3.8 MBytes and still it cleans your folders safely and fast, it cleaned about 9 GB from my C Drive !!!

Go to CCleaner

Sunday, June 21, 2009

لون روحى











أقف أمامها , أمرر أصابعى على إفريزها الذهبى , أتحسس حروف اسمى التى نقشت بعناية . اقترب قليلا ً لأشتم رائحة الألوان و القماش , ما زالت الرائحة كما كانت عندما أدركتها أول مرة .

"أسف و لكنى لا استطيع منع نفسى" هكذا همست إلى اللوحة و أنا أعلم أنها ستتفهمنى . نظرت إلى الفرشاة الموضوعة بحرص على الترابيزة المجاورة ... بدأت التقط علب الألوان و انزع عنها ذلك الغلاف الشفاف و عينى تمتلىء بالدموع , صوت بداخلى يتوسلنى لماذا تريد أن تعبث بها ؟ لقد تركت القدر يرسمها لك طوال السنين الماضية كان يصلحها هو كلما أفسدها . كنت دائما ً تسخر من الأخرين إذا رأيتهم يغيرون لوحاتهم بإيديهم و تندهش منهم و هم يزيلون ما أضافوه للتو , تتمزق لوحاتهم يرقعونها بجلودهم , يحاولون فى يأس استعادة عذريتها التى أضاعوها منذ سنين.

ظلت لوحتى هى الأكمل و الأجمل , كلما يسألنى أحدهم كيف استطعت أن تحافظ عليها أجيب بأنى فى الأساس لم ألمسها قط , ينظر إلى باستغراب يتمتم ببعض كلمات " أحمق ... مغفل ... مجنون ... " , لكنى لم أهتم أبدا ًبما يقولون , و ليس كلامهم هو الذى يحرك يدى الأن و هى تخلط الألوان استعدادا ً لأن ارسم على لوحتى لأول مرة .

- حلوة أوى اللوحة , بس أنت فين ؟
- ايه !! أنا فين ؟؟!
- أه أنت فين ؟؟
أخذت أبحث بين هذه الوجوه المنتشرة على سطح اللوحة و لكنى لم أجد نفسى .
- مششش عارف تلاقينى هنا و لا هناك بس مش باين , ما أنا قولتيلك أنا عمرى ما جيت جنبها !!


لم ترد و لكنى رأيت فى عينيها ابتسامتى البلهاء , تردد نظرها بينى و بين اللوحة , شعرت بخيبة أمل أطلقتها فى تنهيدة حزينة حارة مازالت تلهب جبينى , رحلت و لم تأت ثانية .
شعرت برعشة اسقطت الفرشاة من يدى , انحنيت لالتقطها فاختلطت الألوان فقد كل لون وجوده و ذاب فى وجود الألوان الأخرى , لا يهم سارسم نفسى الأن بأى لون أيا ً كان , و لكن أين اضع نفسى ؟ فى المنتصف سأكون قريبا ً من كل شى ء , و لكنها فى طرف اللوحة " ارسم نفسك بجوارها إنك تفعل كل هذا من أجلها " .

حسنا ً, انا الأن فى لوحتى بالقرب منها , لا شىء تغير ما زلت لا أراها و ما زالت حياتى كما هى , لا فرق إلا هذا اللون الغريب الذى رسمت به نفسى , إنه يسيطر على اللوحة , طرد كل الألوان على الإطار الذهبى , لن أزيله و ليحدث ما يحدث , لن أزيله مع أنه دهس جسدها الجميل و ألقى به على الأرض , لن أزيله مع أنه هو الذى دمر حياتى , كيف أزيله و هو حياتى و ليس اللوحة فلتذهب اللوحة للجحيم و يبقى لون روحى .





Thursday, June 4, 2009

3 in 1 xampp = PHP + MySQL + Apache

Hi every one,
Well I was assigned to build a web site that uses php and MySQL to register users
who will be students and professors and show them courses and other options.
Any way, I needed to setup all of php, MySQL and Apache (as a server). I looked up on the internet and it wasn't that easy. Yes you will download the three of them easily as they are all free, but it will need a lot of work in order to integrate them with each other and run them.
In order to get rid of all of these nasty stuff, all you have to do is to download and install a package called xampp whih includes all the above tools and it is very easy to install and use as well.

Here are the steps to have your own server where you can build a database and PHP files:

1 - You have to download xampp, it is open source so you will find the suitable version for your machine. just go to xampp home page

2 - Choose the version that suits your operating system - xampp is avaliable for Windows, Linux, MAC and Solaris -

3 - You can download the installer or the zip or the exe. I recommend the installer, it is easy and safe, also it is only 35 MB.




4 - Run the installation normally, it would be better not to install it in C because you may get bothered for security options on Vista.

5 - After the installation is done, go to the folder where you installed xampp, run the xammp controller



6 - You should have a window like this:



7 - If the Apache server is not runing, just click on start, do the same for mysql in case you need it.



You will find it on your tool bar





8 - Now it is all set for us to run the server, just go to your internet browser
and tyoe this in the address bar:
http://localhost/xampp/index.php

If you have the same as this then every thing is set you can build your own php NOW.




9 - Now let's build our site:

- Make a new folder that should contain all the pages, we will name it MyWeb

You have to make this new folder as a subfolder in the folder named htdocs you can find this folder in the folder where you installed xampp.



- download this file called firsPage.php

Put firstPage.php in the folder MyWeb that we created at the previous step.

10 - Write this url in your address bar
http://localhost/MyWeb/firstPage.php
and click Enter

Yes you just did it !!



If you have any comments or questions, don't hesitate


HOPE THIS HELPED, THANKS FOR READING