Archive for the ‘Mix’ category

Job Sites of Saudi / Gulf / Middle East

June 28th, 2010

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.

GD Star Rating
loading...
GD Star Rating
loading...

Flash(AS2) + PHP + MySql

June 26th, 2010

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….. ;)

GD Star Rating
loading...
GD Star Rating
loading...

Obtaining a Driving License in KSA (Jeddah)

February 16th, 2010

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

ج = 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: There is some blogs about obtaining driving licesne in Jeddah. But those are written in 2007 or 2008. But now the things and procedure is changed. I just passed on 16th Feb 2010. So now the above procedures are followed. And the validity of the license is 10 years. No worry for 10 years. Have a safe drive and life…..:)

** I passed driving test few months ago. I tried to know the procedure from online but
I couldn’t got any help. And I suffered to know the actual procedure. That’s why I just
shared the procedure so people who is getting new license they will get the correct information. That’s all. I am not a trainer nor this website is providing or keeping any relation with Dallah. I just want to help out the people who don’t have the correct information. Thank you.

GD Star Rating
loading...
GD Star Rating
loading...

JeddahGeeks First meetup(Nov,09)

December 6th, 2009

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.

GD Star Rating
loading...
GD Star Rating
loading...

FirePHP with FireBug

September 28th, 2009

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/

GD Star Rating
loading...
GD Star Rating
loading...

CKEditor the new version of FCKEditor and new file manager CKFinder

September 14th, 2009

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
GD Star Rating
loading...
GD Star Rating
loading...

Who Moved My Cheese?

March 5th, 2009

I just read a book today.“Who Moved My Cheese?”-by Spencer Jhonson. This book is really great. I am sure it will change your life and make you adopt with change. Just go through the book it will not take more than 1 and half hour. But this book may be change lot in your whole life. Just let me know what do you think which one is your character in the book. I just give a brief about the book taken from the book.

Parts of All of Us

The Simple and The Complex

The four imaginary characters

depicted in this story —

the mice: “Sniff” and “Scurry;’ and

the Little people: “Hem” and “Haw” —

are intended to represent the simple and

the complex parts of ourselves, regardless of

our age, gender, race or nationality.

Sometimes we may act like

Sniff

Who sniffs out change early, or

Scurry

Who scurries into action, or

Hem

Who denies and resists change as he fears

it will lead to something worse, or

Haw

Who learns to adapt in time when he sees

changing can lead to something

better!

Whatever parts of us we choose to use,

we all share something in common:

a need to find our way in the Maze

and succeed in changing times.

Who Moved My Cheese?

Who Moved My Cheese? is the story of four characters living in a “Maze” who face unexpected change when they discover their “Cheese” has disappeared. Sniff and Scurry, who are mice, and Hem and Haw, little people the size of mice, each adapt to change in their “Maze” differently. In fact, one doesn’t adapt at all…

This timeless allegory reveals profound truths to individuals and organizations dealing with change. We each live in a “Maze”, a metaphor for the companies or organizations we work with, the communities we live in, the families we love places where we look for the things we want in life, “Cheese”. It may be an enjoyable career, loving relationships, wealth, or spiritual peace of mind. With time and experience, one character eventually succeeds and even prospers from the change in his “Maze”.In an effort to share what he has learned along the way, he records his personal discoveries on the maze walls, the “Handwriting on the Wall”. Likewise, when we begin to see the “writing on the wall”, we discover the simplicity and necessity of adapting to change.

Download Link

GD Star Rating
loading...
GD Star Rating
loading...

7 things you may not know about me!!

February 24th, 2009

originally started by tony bibbs it is a funny thing indeed. I was tagged by nurul ferdous. Here is my seven secrets those some of you may don’t know.

1) I become fat. J
2) I am wearing glass.
3) I jump from class 3 to class 5. I missed class 4
L
4) My aim was to be a pilot. But now i am pilot of PHP.
5) I am in KSA from 1991. But my mind is in my country.
6) Sleep too much. I mean a lazy guy.
7) Trying to avoid bad habits and become a hard worker.

Here is 7 person I am tagging them
1) A.N.M. Saiful
2) Mahmud Ahsan
3) Arif Hossain
4) Sadiqur Rahman
5) Wei Dai
6) el NiNo
7) abir

And here goes the rules:

- Link your original tagger(s), and list these rules on your blog.
- Share seven facts about yourself in the post – some random, some weird.
- Tag seven people at the end of your post by leaving their names and the links to their blogs.
- Let them know they’ve been tagged by leaving a comment on their blogs and/or Twitter.

GD Star Rating
loading...
GD Star Rating
loading...

Use any font in your website using SIFR

February 9th, 2009


You like to use your favorite font in your website. But if the user doesn’t have that font installed in his computer then it will not show the proper font. What will you do now? Is there any solution of using font in a website that will show any browser and any pc correctly?
http://wiki.novemberborn.net/sifr3

Yup there is some solution of it. SIFR is one of it. Which recommended by W3C. I use it in one of my website(http://www.toasted2go.com/demo3/). It works well. But it takes little time to load the webpage because of flash. It’s free. You can download the package and know detail about SIFR from following link. Hope you will enjoy it. If you face any problem to use it feel free to ask me.

GD Star Rating
loading...
GD Star Rating
loading...

Redirect visitors to new Page

February 2nd, 2009

Sometime we need to redirect a visitor to another webpage. There is so many solution to redirect a user. I will show some of them which I know.

HTML

Code

<html>
<head>
<title>Html Redirect Page</title>
<meta http-equiv=”REFRESH” content=”5; url=http://www.mydomain.com”>
</ head >
<body>
You will be redirect within 5 seconds..
</body>
</html>

Description

<meta http-equiv=”REFRESH” content=”5; url=http://www.mydomain.com”>

// This is the part which is redirecting the current page to www.mydomain.com

content=”5; // This means it will wait 5 second and then redirect. you can increase and decrease this number.

PHP

Code

header(“Location: index.php“);

// You have to call this line before any output.

JavaScript

Code

<SCRIPT language=”JavaScript1.1″>
Redirect to main Page
location.replace(“index.php”);
</SCRIPT>

In some server non of above work as redirection. I don’t know why. But the following code work well. Does
anyone know why?

<?php
header(“Pragma: public”);
header(“Expires: 0″);
header(“Cache-Control: must-revalidate, post-check=0, pre-check=0″);
header (“Location: http://www.mydomain.com/”.time());
?>

GD Star Rating
loading...
GD Star Rating
loading...