Author Archives: admin

My First iPhone app “Arabic To English Dictionary”

Arabic To English Dictionary has common words that we use in our daily life. It’s very helpful for fast learners whose native language is Arabic and want to learn English.

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

Features:
– 50,000 + Words
– Most Commonly Used Arabic Words
– Fast Search Capability
– No Need for Internet Connection

Get it Free From i Tunes Store

Arabic To English Dictionary Arabic To English Dictionary Arabic To English Dictionary Arabic To English Dictionary

English To Arabic Number Converter

Some of the middle east project which is Arabic Site our clients want Arabic Numbers Like “٩٢٠٠١٥٠١٠” which is “920015010”. Even though it’s not Arabic number but they want to use it in their sites. So in our web projects we need to convert English “920015010” to Arabic “٩٢٠٠١٥٠١٠”.

I couldn’t find good solution for that. So I made my own class

<?php
class English2ArabicNumber {

	function English2ArabicNumber()
	{

	}

	function convert($digit)
	{
		if(empty($digit))
			return '٠';

		$ar_digit = array('٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩','-'=>'','.'=>'.');

		$arabic_digit = '';

		$length = strlen($digit);

		for($i=0;$i<$length;$i++)
		{

			if(isset($ar_digit[$digit[$i]]))

				$arabic_digit .= $ar_digit[$digit[$i]];

		}
		return $arabic_digit;
	}
}

$ekram = new English2ArabicNumber();
echo $ekram->convert('12345');
?>

OUTPUT:

١٢٣٤٥

you can download the class from phpclass.org site

[Download]

Job Sites of Saudi / Gulf / Middle East

Some people posting or asking for jobs. And some or most of us don’t know where to search job in Saudi. So that’s why I tried to share some popular job site links in saudi. If you know more sites please try to write it in comments. I will put it here.

1. http://www.expatriates.com // Good for quick reply and quick job

2. http://www.bayt.com/en/saudi-arabia // One of the most popular job site for Middle East

3. http://mihnati.com

4. http://www.naukrigulf.com/

5. http://www.gulftalent.com/home/index.php

Searching for a job you need patience and confidence. Go to google and search for job in saudi in your field. You might find the company list of your field in Saudi. Take their email address or contact info then post your CV there. If they have a vacancy they will call you. Keep posting your
CV until you got a call. If you got a small offer go for it and gain some experience. If you have good experience and you didn’t changed your track inshallah you will get a good job offer. Best of luck.

N.B. I got all my jobs only by Google search. Without any circular or any job sites. I just posted my CV to the email address.

Flash(AS2) + PHP + MySql

Last couple of month was working on Flash. Became familiar with Flash and started loving it… 🙂 Then a project came they
asked for making CMS for their flash site. You can see the site http://www.zfp.com

And the game started… 🙂

Started learning AS2 and loadvars. Faced lots of difficulties and finally manged to communicate with Flash(AS2) + PHP + Mysql.
In this post I will try to give basic idea to communicate Flash(AS2) and PHP.

1. Flash(AS2)

lv_th = new LoadVars();

lv_th.onData = function(varText:String)

{

 temp = varText.split('@@');

 photo= temp[0].split('|');

 photo_title = temp[1].split('|');

 photo_description = temp[2].split('|');

};

lv_th.load("photo_gallery.php?gallery_id=5");


1. PHP+MySql


$gal_id = $_GET['gallery_id'];
$sql = "SELECT * FROM gallery WHERE gal_id=$gal_id ORDER BY gal_id";
$result = mysql_query($sql) or die(mysql_error());
$photo = array();
$photo_title = array();
$photo_description = array();

while($rows = mysql_fetch_object($result))
{
    $photo[]             = $rows->photo;
    $photo_title[]       = $rows->title;
    $photo_description[] = $rows->description;
}

print implode('|',$photo) . '@@' . implode('|',$photo_title) . '@@' .
implode('|',$photo_description);


First one is flash AS2 Code to get the data from php. It first create a new instance LoadVars();

then onload called the photo_gallery.php?gallery_id=5 and wait for the response to come.

In php we made the query based on the gallery_id and get the data and put it in three separate

array. then we implode each array values with ‘|’ and separate each array with ‘@@’.

In flash after getting the data as a string in varText variable we split it by ‘@@’ to separate the

different array values and after that separte it in ‘|’ to get each value. Now we have all the data

in photo, photo_title and photo_description array. Use the array values as you want…. 🙂

Note: In the data there should not be ‘@@’ or ‘|’. If it contains then you have to choose the separator carefully. Choose a separator which is not come as data.

Have fun with flash + php + MySql….. 😉

Obtaining a Driving License in KSA (Jeddah)

After long run Alhamdulillah I passed the exam of driving license on (16-02-2010). I struggled to pass it.  I don’t want anyone to struggle like me.  If you are planning to get a driving license in Jeddah then this is the post for you. I will try to write the procedure you should follow for applying and obtaining a driving license.

Applying Procedure

1. You need 1 set of photocopy of your passport.

2. You need 1 photocopy of your IQAMA (ID card).

3. You need 6 passport size pictures.

4. You need to make a file with all this document and fill the application

form. You need 400 SR for the license which you have to pay in Bank or you pay to dalal 50 SR they will do the payment for you.

Best way to do this you should give 10 SR to a dalal there they

 

will fill the form for you and make the file ready.

 

5. Those guys will tell where should you go. After that each counter of the dallah will give you all the direction of which counter you go.

6. After that they will take a small test of reverse parking. Note: Remember to put seat belt and check the mirrors. Those car is new Camry Car. So careful about the accelerator. It’s so soft.  Most of the people mistakes car starts goes off. This is really bad luck.

7. After the test they will give you a mark from four (أ,ب,ض,ج).

أ =  1 day class

ب = 5 days class

ض = 15 days class

30 days = ج 1 month class

8. After that you have to pay for the class which is 435 SR.

9. Then they will give you the class and all the instructions you need.

Passing Tips

1. Don’t be afraid in front of police. Most of the people they afraid and there leg shakes. And then they failed.

2. For signal test in the class they will tell you the same questions which

will appear in the exam. They will tell you the first 10 questions which

will appear in the exam. So try to note those questions and buy a signal paper.

You cant do a mistake in first 10 questions. You have choice of 5 mistakes after

The 10 question but not the first 10 questions. So don’t do any mistake that time.

Best of luck for your exam. If you need any information just post a comment.

—————————————————————————————————-

Note: New Updates by Syed Yahya Jamal

—————————————————————————————————-

I would like to give you the update information to facilitate you for any innconveniance/bother. All above information is very unique what my brothers noted in this blog but now a days some of them have changed.

when intend to take admission for license you should take Passport, Iqama Photo copy and six pictures. as you reached to Dallah there are many dalal will follow you but I inform the educated people who can fill their forms by self that don’t go with them enter directly to Office by yourself and also help other if they meet you there.

you take forms from the information counter (the 1st one) and fill it by yourself there is notthing difficult if not possible then then check a arabic person sit in the waiting chairs and request him to fill your forms. then they give you another form and send you for medical room but it will be good if you know your Blood Group you only tell him you blood group and then you will be check by eye doctors then go back to this information counter and then enter to initial Driving test ground they will check you driving that how many days will be fit for you (in this case you should be careful when you get down to car fasten your belt and arrange side and midle miror) when they write training days on your form.
Then you will be refer to driving fee counter, you submit only your school fees by your self not by dalal bcz they charge extra 50 riyal and not submit the license fee bcz the dalal charge 50 riyal more for the license. when you submitt your school fee then go to Al Raji bank or Al Riyadh bank but 1st check your friends who have ATM Card of the mentioned bank and submitt your fees direct (80 Riyal for 2 years, 200 Riyal for 5 years and 400 Riyal for 10 year license).

This is very easy to pass driving test but it depend on your confidence. you must keep your confidence up. after finishing driving school you will be advised to come this date.

you should reach at 7 O’clock bcz after 7 they close the gate and start some dua if you remember and pray to Allah to pass you easily and bring this exam easy for you. when you sit with police for try, recite 4 last sura and blow it to police and gurented say that you will be sucess but with this you should follow the below points:
1. Fasten your belt
2. arrange all miror according your choice
3. Your set adjustment.
4. check hand break.
5. give small accelator to conform that car is switch on or not.
6. be careful when you pass the signs. you should stop if necessary when you see signs.

After pass the drivinig test you will be inform to go Room No.8 this the computer signals room. when you stand in frot of computer you must recite some quran verses or surat or dua and start with name of Allah. I assure you that you will must pass when you start with name of Allah and dua. now a days they changed the computer procedures. you have to allowed 5 mistak and you can do mistake any where i.e in 1st step or after 10 now no problem. but you will have only 30 minutes and you should salove 15 question in this time. therefore when you sure on your answer click the right answer bcz you have alot of time. I finish my computer with in 8 minutes. don’t be affraid.

I wish you best of luck with acquiring your driving license.

Latest information regarding driving licensehttp://www.saudi-driving-license.info/procedure.php

How to get a driving license in Riyadh,Saudi Arabia?

You need to go to Dallah driving school which is near Dallah Hospital on King Fahad Highway. Take any taxi and ask him to take you there.

Before going to the License Office you need following things:

1. Original Iqamah.
2. Photocopy of Iqama.
3. Photocopy of Passport.
4. Driving License of your country
5. If expatriate, translation of foreign driving license in Arabic from an approved translation institute.
6. Passport size photographs
7. Medical report (Blood Group Test)
8. License Fee (400 SR pay it Riyadh bank/ATM for your iqama id and keep the voucher)

 
Once you have above mentioned things, just take a taxi and ask him to take you to Old Dallah Driving School. Taxi will take 15-20 Saudi Riyals. You are suggested to go there earlier in the morning (reach by 7 am).

Now go to shop next to the entrance gate. (You will be approached by persons for license payment in bank. They will asking 430 SR or 450 SR as fees for bank payment. Dont turn to them as you had already completed that in Item #8)

From shop, you will get application form which will be filled for you in Arabic then and enclosed in file cover . Total cost for you is 15 riyals

Now go to Room number 2 in the license office. The person on extreme left will do Eye-sight test. The person on extreme right counter will check your forms, stamp and send you to “License Check” counter. Here one more person will put a stamp on your application and send you for “first try”. This trial place is behind the building where you are standing.

There will be a car or more and person will be sitting inside. He will ask you to drive the car a little ahead and then reverse a little. Don’t worry it is just to see whether you have ever touched the car or not. The person inside will make his comments on your application.

Now come back to room # 2 and deposit SR 100. He will take your file and ask you to attend a 3 hour class. There will be a three hour class in which you will be taught the basics and after that there will be a computer test. Attend the class very carefully and also read all the things written on front and backside of the chart they give you during the class.

The questions will be mainly Identification of different signals and general driving rules. Signals & Traffic Rules can be viewed from Riyadh Traffic Site

The questions that are going to be asked for the touch screen computer test, will be mentioned during the class by the training instructor. After class they will take you to a room where you will wait for the test to start.

There would be 20 questions and you have to answer them in 30 minutes. If you make any mistake in the first ten questions, then you are failed. In next 10 questions you have to give only five correct answers.

If you clear the computer test then they will test your driving. Congratulations, if you clear the test. By the way, it is very easy test. You just have to drive the car for some meters or you might have to do some simple reverse etc. Cars are of model “Cadillac Custom/Camry 2006”. Cars are with gears; not automatic.

Go to room number 1 (main room) and just on your left there is a place where “License Delivery” is written. Get your counter number from here and the go to the counter. Now wait until they deliver you the New Driving License.

Congratulations!!! You can drive the car in Kingdom for the next 10 years from Now.

Total Expenses

Taxi fare (1 day) = 30 SR
Photo Pictures = 15 SR
Blood Group Test = 15 SR
File Cover, Application form filling = 8 SR
Photocopies = 2 SR
Training Fee = 100 SR
License Fee = 400 SR
Foreign License Translation = 20 SR
——————————————-
Total License Expenses = 590 SR
===========================================
Your license is valid for 10 years
———————————————————————————

Became ZCE

I am very happy to see my name listed under Bangladesh In Zend Yellow page of ZCE. I passed the exam in first chance. Thanks to Allah and to all previous ZCE of my country. I get inspired mostly from them either by talking with them or by reading their blogs. And of course thanks goes to my class mates and friends. One of my friend is also ZCE (Mahmud Ahsan).

I bought the Zend Exam Voucher on 3rd February 2009. But for so many reasons I was unable to attend the exam and the most big reason is my laziness…:) I rescheduled the exam may be for 50 times but as my laziness comes up so I couldn’t give the exam. 3rd February 2010 is the last date of the exam and if I unable to attend the exam it will expire. So I was in a pressure to give the exam and I attend the exam on 2nd February before one day of expiry Alhamdulillah passed the exam. Now let me share with you what I did to prepare myself. But it may work with you or may not. The way of thinking of the entire human is not the same. So follow what you feel better way to prepare yourself.

First of all as all the ZCE’s will suggest you the same thing to read the
Zend Certification Guide and Use the test exam.

1.  Finish one topic from the Zend Certification Guide and search it in php.net
for details. Quote or write the things which you can use as just quick review. Do it
for all the topics of 1 Chapter and pin it. After that go to the Second Chapter follow
the same thing and review the first chapter at the same time so you won’t forget
the thing. After finishing 12th Chapter you will have 12 clips in your hand for quick review.

2.  Now you will see some of the sub topics of the 12 topics listed in Zend Site which is not
there in Zend Certification Guide. So now you have to go for Google search or php.net to learn those
things and write quotes in your note.

3. After finishing all those things now check out if you missed any subtopics. If you saw that everything is done then fix your mind to give a mock test. But 5 mock tests from zend site and give one test. After that you will realize the type of questions and lake of your knowledge in a chapter. Go now study those chapters again if you got grade pass or fail. After finishing give a second mock test. If you got excellent in all the chapter now you are ready to face the real exam. Schedule the real exam and go for it.

Rather than this you can check the following resource which I followed parallelly.

Some sample Questions Link ( I don’t know this is legal or not. If it’s illigal plz let me know so i will remove the link)
Link 1
Link 2

Review of 12 Chapter Other ZCE’s Blog
Read The Web

The Paul Paul Reinheimer Review Guide is also very useful

Download Link

Check out Frank ZCE Preparation. It also helped me lot.

Frank Blog

Download Frank Hand Note

I cant share anything else as I agreed with zend not to share. But believe me if you
are a PHP programmer for 6 month or 1 years it wont take you more then 12 days
for 12 chapter I mean for zend preparation. Thank you. Best of luck….:)

JeddahGeeks First meetup(Nov,09)

Some of my Jeddah friends Arranged a group called JeddahGeeks. Where Web developer, designer and entrepreneurs can share their knowledge, thoughts and experience. So we can learn something and gain some knowledge from some real geeks. In Our first meet up(13th November) I give a small speech on “How to Become a PHP Geek?”. I am inspired by the event of PHPExperts Seminar of Bangladesh. The presentation of Emran Hasan Brother on How Becoming a kick-ass PHP ninja gave me more inspiration to make this presentation. You can see the presentation below. As this is my first presentation any criticize and suggestion will be appreciated.

FirePHP with FireBug

Last Couple of months I was using Firebugs ad-dons of Fire Fox.  It helped me lot to debug my css. It’s simply great help for me. Today I came to know about new ad-dons FirePHP which can be used with FireBug. You can debug your php code in your browser. It sounds cool. You don’t have to use print_r or var_dump to debug your php code and massed up your site by dumping your array.

It’s great to use it like same as firebug. Hope it will be useful for php programmers.

To use FirePHP you need the following thigs

After installing those three you should download the FirePHPCore from http://www.firephp.org/HQ/Install.htm.

Setup

Let’s assume your document root is /www/ and it is in your PHP include path.

Step 1 Locate the server library

Locate the /lib/FirePHPCore folder in the FirePHPCore archive and move it into your document root.

/www/FirePHPCore/fb.php
/www/FirePHPCore/FirePHP.class.php
/www/FirePHPCore/LICENSE

You can skip this step if you are using PEAR. Make sure the PEAR repository is in your include path.

Step 2 Include the server library

Create a file at /www/Index.php and open it in your editor.

require_once(‘FirePHPCore/FirePHP.class.php’);

Step 3 Start output buffering

ob_start();

Now That’s it. It’s now time to play. Your first Log Message

$firephp = FirePHP::getInstance(true);

$var = array('i'=>10, 'j'=>20);

$firephp->log($var, 'Iterators');

Console_HelloWorld_Screenshot
FirePHP Official Site:  http://www.firephp.org

The Site I got the information: http://sixrevisions.com/web-development/how-to-debug-php-using-firefox-with-firephp/

CKEditor the new version of FCKEditor and new file manager CKFinder

Last couple of days I was using FCKEditor. And i found it really good. Client likes it.  I also become fan of it.
Recently I came to know that there is new version of FCKEditor. Which is called CKEditor 3.0. This is new
of FCKEditor. It is faster and much easy to use. FCKEditor in PHP you have to include PHP codes. But CKEdiotr
you just have to include a js file in header that’s it. You can use it to any text area. It has lots of new features
and really faster than the FCKEditor. Hope I will go for CKEditor for next days until there is something new.
Really loved it’s UI and flexibility.

The officicial site of CKEditor.

CKEditor 3.0
CKEditor 3.0

There is another release of File Manager Which is called CKFinder

CKFinder
CKFinder

After long time get back to on track….

Hi Everyone. After long time again back to my blog. Long time didn’t post anything in my blog. Feeling again have to restart it.
Lot’s of thing happend in this last days of my life. Let’s try to share some incident and co-incident of my life…:)

1. Left TAMM my on 5th March 2009. Feel really bad when I was leaving. Because
that was my first company. They guys and my team was really good. Realy missed you guys. Take Care. Hope
we will meet one day again.

2. Joined Glue Tube on 7th March 2009.  And enjoying the environment and the guys really good. Got some friends and feeling
better. Became like family member.

3. Planning to go for retirement after 2025….:) No more web application development. May be will spend rest of life with kids and
real social work. I love kids too much because for some unknown reason any child likes me. Even if I hurt them. hahahahaha. So will
spend time with them.

4. Missing my country too much. My all friends. Really missed the hostel life. Now understanding the meaning of student life.
That life simply awesome…:) Missed u all my friends.

5. Day by day become addicted with Jeddah. Getting new friends and the work environment. Enjoying the work. Really thanks to Allah to
give me support always in every step of my life. He is my best friend…;)

6. Dreaming to buy a RAV4 and also a mac book pro.

7. Don’t want Windows anymore. Want to use Open Source products. Trying Ubuntu. Hope this will divert me from windows….:)

Can’t remember anything else… For now that’s all. Will try to share something always.. bye for now…;)