Followers

Saturday, July 04, 2009

php5 handler

Common question as people are suffering the PHP4 EOL!

Question: How to set php5 handler?

Answer:
using CPANEL, click on Apache Handler, and add

Handler:
application/x-httpd-php5
Extension:
.php


and you are done.

there are other ways using the .htaccess or apache conf but cpanel has made it easier!

Wednesday, February 04, 2009

Prototype Form Validation

Tags: prototype, validation, dhtml

Utilizing DHTML abilities is one of the trendy features that when used with AJAX, you get to claim using some "buzz words" technology!

What a buzz word could be related to Ajax and DHTML?
as you might figured out already, Web 2.0!

Many web applications are becoming more user friendly as they are employing the DHTML technique but with a lot of work being done on the CLIENT side to validate user's input and saving a round-trip to the server for validation. Then there comes the need for a Javascript framework that makes controlling DHTML an ease of mind.

Prototype is one of the most known javascript frameworks, and is being used in different sites in combination with Sscriptaculous (mainly to add effects and animations). However, other useul extensions are available, Easy Field Validation is one of the most useful ones, and a must for any website utilizing forms and inline-edit-boxes.

The website for the script is here:
http://tetlaw.id.au/view/javascript/really-easy-field-validation

it has a demo, documentation, and other scripts.

Utilizing the script is very easy, althuogh mentioned in the main website, I will put this as a simple example:

excerpt form.html file:




<script src="prototype.js"></script>

<script src="effect.js"></script>

<script src="validation.js"></script>

:

:



<form id="'test_form'" action="'#'">

<input name="'name'" class="'required'">

<input name="'email'" class="'required">

<input type="'submit'" value="'Submit'">

</form>

:

:

<script>

new Validation(test_form, {onSubmit:false,stopOnFirst:true, immediate : true});

</script>

and you are using a very useful javascript extension!!

Enjoy.

Monday, January 26, 2009

Free Service: CSS for Firefox and Internet Explorer

Tags: CSS Firefox Internet Explorer (IE)

Those involved in designing web pages have faced a lot of difficulties managing different rendering engines, namely found in Firefox and Internet Explorer, the two most used browsers according to some published researches.

A service was started over three years is being still offered in a new application. All you have to do is to sign up to create your new account, and start testing your code.



as you can see, most of the A+ Browsers are supported, and you wont have to worry about CSS compatibility anymore.

Start here: http://litmusapp.com/browser-testing

Saturday, January 24, 2009

FastCGI Extension by Microsoft to run PHP on IIS

TAGs: IIS, FastCGI, PHP

Microsoft has recently made FastCGI Extension available for download from its downloads site, that will enable IIS to run scripting languages other than asp.net, for example PHP.

As described by Microsoft

Brief Description
The FastCGI Extension for Internet Information Services (IIS) 6.0 and 5.1 enables popular application frameworks (such as PHP) to be hosted on the IIS web server in a high-performance and reliable way.


The FastCGI Extension for IIS 6.0 and 5.1 enables popular application frameworks that support FastCGI protocol to be hosted on the IIS web server in a high-performance and reliable way. FastCGI provides a high-performance alternative to the Common Gateway Interface (CGI), a standard way of interfacing external applications with Web servers that has been supported as part of the IIS feature-set since the very first release.

CGI programs are executables launched by the web server for each request in order to process the request and generate dynamic responses that are sent back to the client. Because many of these frameworks do not support multi-threaded execution, CGI enables them to execute reliably on IIS by executing exactly one request per process. Unfortunately, it provides poor performance due to the high cost of starting and shutting down a process for each request.

FastCGI addresses the performance issues inherent to CGI by providing a mechanism to reuse a single process over and over again for many requests. Additionally, FastCGI maintains compatibility with non-thread-safe libraries by providing a pool of reusable processes and ensuring that each process will only handle one request at a time.


An important note for running FastCGI, that IIS 6.0 or 5.1 must be enabled on the operating system in order to be able to use FastCGI Extension. There is another FastCGI extension to make APACHE handle the desiered file extensions by FastCGI.

Tuesday, January 20, 2009

HOWTO: Using xdebug and PHPEclipse for PHP debugging on Windows

TAGS: php xdebug phpeclipse

After struggling for a while to get the ability of debugging PHP scripts, reading here and there on xdebug wiki, and other php developers websites, I finally managed to assemble the needed information into this HOWTO which I hope is going to help someone to setup the proper environment for using PHPEclipse and xdebug to debug PHP scripts.

To debug using xdebug extension and PHPEclipse editor on windows (vista or other versions should equally the same) there are two main steps:

A- Installation of xdebug.
B- Preparing PHPEclipse.

Follow the steps exactly as explained and you will be safe.

= = = = = = = = = = = = = = =

A- Installation of xdebug:

If you are familiar with php extensions, just download the xdebug extension and modify php.ini to load it as a zend extension, and skip reading to section B.

In details, follow these five steps:

1- Download the xdebug http://www.xdebug.org/download.php.
make sure to select the proper version matching the server threaded mode.
I am using WampManager 2.0 ( which is bundled with PHP5, MySQL, Apache 2.x)

2- Extract the dll file and put in the ext folder of your PHP.
(in my case, c:\wamp\bin\php\php5.2.5\ext\php_xdebug.dll , match your php version and path)

3- Open php.ini and put these lines at the end of the file

zend_extension_ts = "C:\wamp\bin\php\php5.2.5\ext\php_xdebug.dll"
xdebug.remote_enable=1


(remember, the path must match your php installation path)

NOTE:
extension=php_xdebug.dll
to load xdebug as an extension instead of a zend_extension was not helpful! I tried it and wasted time trying to make it work, avoid it unless you know what you are doing.


4- Restart Apache.
With WampManager, it is as easy as a click on the WampManager Icon and choosing Restart All Services.


5- After Apache restarts, open the phpinfo page to check out xdebug is loaded properly.
if you dont have a phpinfo page, just create a new phpinfo.php file as follows:



If the dll was inserted in the correct path, and the php.ini was updated correctly, then you will see the following:

This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
with eAccelerator v0.9.5.3, Copyright (c) 2004-2006 eAccelerator, by eAccelerator
with Xdebug v2.0.4, Copyright (c) 2002-2008, by Derick Rethans



If you can not see that line, go over the steps.
1- Check your Apache version.
2- Check your PHP version.
3- Check the dll name (that it has no version number, only php_xdebug.dll).
4- Download the correct xdebug version if needed and repeat the above steps.

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

B- Using xdebug in PHPEclipse

1- Create a script you want to debug.

2- Create brake points by a Double Click on the line margin, or right click -> Toggle Breakpoint.


You will notice small blue dot at each breakpoint location.


3- Open Debug Configurations ( in Run menu).



4- Double Click the PHP Debug Remote Script option.

5- Specify the IDE identification string , for example: testID.
(it is the ID we will use to start debugging later on, important to choose something easy to retype).



The project name is filled automatically, and you can type the folder name which the script will be saved it, if you have not created a project already.

6- Click on PATHMAP tab.

7- Click on NEW and type the path to your script.


8- Click Debug button.
(the window will close and you will be taken back to the PHP editor).




9- Click on Debug Perspective Button (found on the top right corner, if not, window -> show perspective -> debug).



the perspective will be empty but of the original code.


10- Point your browser to the test.php script

in my case, http://localhost/debug/test.php



So far, no debugging session has started, check the PHPEclipse:



but once you click on debug, which passes
?XDEBUG_SESSION_START=testID&test=1
the debug session will start. You will notice the perspective windows in PHPEclipse starting to populate with debug info and variable values.



Stepping in / out is possible by clicking the yellow arrows in the Debug perspective.


That's it. Enjoy :)

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = =

Saturday, January 10, 2009

Yahoo! Media Player Widget

A nice release from Yahoo!
http://mediaplayer.yahoo.com/

Yahoo released a new widget which allows any web owner to play media (sound or video) files with a simple link to include the media player into any webpage, and giving full control over the player.


Pros:
- Lay web users would be able to embed media easily.
- Nice slim player that can be hidden once unneeded.

Cons:
- XSS / CSRF exploits.
- Floating Player does not continue playing if a link is clicked.

Thursday, July 17, 2008

Update your login!!

Google has updated BlogSpot without letting us bloggers know before it started this update what should we do to combine the old login with a new login. I have an ad-sense account and was infored of the changes to be comitted and that was fine. Yeah, i did not think Blogspot would be required to change login name to an email!!

anyhow..
i forgot what i was going to post, so later!

Sunday, October 08, 2006

SAT Math Videos

SAT Math Videos

I, usually, bring websites about the brain because I like to read about the brain and smart ways of doing things. However, this time it is about Math! Math is another interesting subject and this website seems to have a lot about strategies to solve math problems. I have not checked it yet, but hopefully once am done with GRE i will.

Enjoy math ;)

Monday, October 02, 2006

Multiple Intelligences

Multiple Intelligences



If you are interested in learning processes , you certainly are interested in knowing this theory about multiple intelligences. Howard Gardner, author of Frames of Mind and co-director of Project Zero at Harvard University, presented 7 kinds of intellgince in his theory of Multiple Intelligences.

How can this this theory help people communicate?
Assuming you are talking to a visual person, who understands better if you use drawings, colors, and pictures better than when you use audio, or other ways; which way would you choose to communicate with your friend?

The theory does not claim that people do not have the potential of possessing the intelligence in different fields, or types. On the contrary, it states that people my have multiple intelligences, and one of these different intelligences might be dominante.

I am still reading about this topic, but for sure I can invite you to read about it! The simplest reason is knowing how to be SMART! and of course CREATIVE.

Let me know when u get an idea to discuess :)

see ya ;)

Friday, September 01, 2006

Amphibia Expeditions

Amphibia Expeditions

We have been offering our services and knowledge of Ecuador, for eight years, through very well known travel agents and tour operators, such as Andean Travel Company, Geckos, Travel Plan, Peregrine, and Kempery. Eventually, we decided to directly contact the clients and build better relationships for years to come. Our main goal is to provide best touring guide to Ecuador visitors. Nevertheless, we have included projects to help local families and children, especially those living in poverty. You are indirectly participating in these projects as well, because we donate about 20% of our income to social services and families in need. We try our best to utilize our knowledge in both directions, serving clients and helping local people. Your feedback and suggestions, to better perform or present new services, will be highly appreciated.


A website for the Tours Operator company.


website: http://www.amphibiaexpeditions.com

keywords:
Ecuador Galpagos Islands, Amazon Rain Forest, Andean Mountains andlocal Communities. The best Eco-Tour experience and travel adventure withAmphibia Expeditions in South America.

Travel adventures to Asia, China, India, Africa, Egypt, South America, Central America, Latin America - Gecko's Adventures

Thursday, July 06, 2006

Digital Hearing Aids - Design Challenges and Recommended Devices

Digital Hearing Aids - Design Challenges and Recommended Devices:

I am supposed to compose about SENSORINEURAL deafness and digital HEARING AIDS!

am really lost between what i know and what i shall read but hopefully tomorrow it's gonna be easy and will be able to write nice esssay. The above link has a lot of info to offer.

Thursday, June 29, 2006

Community cookie logger

Community cookie logger si a ewb fro hckaers intdede to hlpe thme log cokieso.

:D

tyring ot encrytp whiel menaitning redabel txet!

Dcrab�s Blog : Security Programming Software

Dcrab�s Blog : Security Programming Software

If you are interested in security and concerned about how websites are providing you with their services, especially commercial ones, then you might - or must - read this article about secuirty departments responsding to security warrnings!!

After trying couple of hacks of various types, i consider this clever hack a gate that open other hacks too.

enjoy reading;

Tuesday, June 20, 2006

PCWorld.com - Fusion Launches Free VoIP Phone Service

PCWorld.com - Fusion Launches Free VoIP Phone Service

Yesterday, the Dubai company announced the public beta version of Efonica, a VoIP (voice over Internet Protocol) service that allows users to make calls from any phone or PC for free, with a few limitations. "As a company, we believe all telecommunications will be free in a few years' time," said Ibrahim Choueiry, Fusion's director of worldwide sales, at the CommunicAsia exhibition in Singapore.


So you think it is not possible?
Which company does not look for profit?
is it really non profitable?

Read and write :)

Thursday, June 01, 2006

Linger Lyrics - Cranberries

good morning,

I wouk up this morning and a song echo was lingering in my head..
(
but am in so deep
you know am such a fool for you..
you got me wrapped around your finger
do ya have to let it linger
do ya have to
do ya have to
do you have to let it linger
)

and i used to have this song and all the album on my PC at home but unfortunately am not home so i decided to download it!
Awe!! am connected now to the wireless connection at the university and the download rate is 3KBps!!!
dont think it will be downloaded before the start of the class.

enjoy the song;
Linger Lyrics - Cranberries: "
Artist: Cranberries Lyrics
Song: Linger Lyrics


Click here to send Cranberries polyphonic ringtone to your cell phone.
If you, if you could return
Don�t let it burn, don�t let it fade
I�m sure I�m not being rude
But it�s just your attitude
It�s tearing me apart
It�s ruining everything
And I swore, I swore I would be true
And honey so did you
So why were you holding her hand
Is that the way we stand
Were you lying all the time
Was it just a game to you

But I�m in so deep
You know I�m such a fool for you
You got me wrapped around your finger
Do you have to let it linger
Do you have to, do you have to
Do you have to let it linger

Oh, I thought the world of you
I thought nothing could go wrong
But I was wrong
I was wrong
If you, if you could get by
Trying not to lie
Things wouldn�t be so confused
And I wouldn�t feel so used
But you always really knew
I just wanna be with you

And I�m in so deep
You know I�m such a fool for you
You got me wrapped around your finger
Do you have to let it linger
Do you have to. do you have to
Do you have to let it linger

And I�m in so deep
You know I�m such a fool for you
You got me wrapped around your finger
Do you have to let it linger
Do you have to, do you have to
Do you have to let it linger

You know I�m such a fool for you
You got me wrapped around your finger
Do you have to let it linger
Do you have to, do you have to
Do you have to let it linger "

Tuesday, May 30, 2006

0540 extensive reading summer 2006

0540 extensive reading summer 2006

Another blog about school, huh!?

Yeah, another blog about school! In this extensive reading course we are to read "Having Our Say" book as the study material.

Why specifically this book?
The Delany sisters are over 100 years old, and as they have witnessed American History changes during a century, and are able to memorize to tell and describe these historical events. Even they are over 100 years, they have a sense of humor spicing their stories with a witty flavor and yet spirited and energetic human beings.

The author of this book, Amy Hearth, wrote an article in New York Times as an assignment where she introduced the Delany sisters to the public for the first time. Upon publishing this article, many requests from all over the country to have the ladies interviewed on T.V or have them in kids school and other suggestions were declined by the Delany sisters. However, later a publisher who thought a book is worth to be written about these two ladies offered Amy to write the book, hence it was written.

am not supposed to bore you with what i've read in this book, so i'll later tell you how do i find especially that am not a fund for biography type books.


Home Sick - Partially
A certain aspect of this book is that it reminds me of my lovely grandma. Funny that i told Sara about this and she told my grandma back at home, today, Sara told me that my grandma was happy and sends me three kisses :) it made me feel HaPpY :)

God bless you all and your loved ones :)

Finito.

Jumpman23.com: The official site of the Jordan Brand.

Jumpman23.com: The official site of the Jordan Brand.


In IEP, Georgia State University, I am taking a course that is using advertisements and assignments on such topic a method of delivering the basis skills of College Writing.

In the new assignment, the following may be used:
"The advertisement of Nike Air shoes uses basketball icon, Michael Jordan, name and an image that symbolized his figure."

Also, 2 more sentences are required.

time to sleep, see ya;

Thursday, May 25, 2006

Gerogia State University

Having me back to school (back 2 skool) is really way beyond imagination. After finishing a BS degree in Computer Science, life seemed more important than spending hours on reading and reading and reading of limited books filled with old info!

As we grow, life changes and so do people!

To me, school had been the best when there was no book to rely on! Although my class-mates were not comfortable with such a course lacking an appropertiate book, it seemed to be very UP-TO-DATE course. Actually, there were some info we relied on for about 14 days then while studying them found incorrect and need correction.
Our instructor who gave us this chance to search for the material and study them in class, planted the seed of confidence in his students to be able to analyse and debate what they receive. Successfully wrote our own research paper based on the resources we found and successfully attained companies respect to us ( students) and to our university (King Fahd University of Petroleum and minerals).

GSU offers and Intesive English Language Program that is really intensive!! I am enrolled in this program and will be here for this summer and next fall. Oh, this is my 8th day in USA !!!! Next time, I shall tell you about the flight from Dammam, KSA to Atlanta, USA.

Till then, peace!



WebCT

Friday, May 27, 2005

TUFaT - Create your family tree online!

TUFaT - Create your family tree online!

In this website you can find the easiet way of creating a GENOLOGY tree based on a free software, that the author has made it for sale since he upgraded some stuff and enhanced the speed of the free one.

I am willing, if time permits, to learn and enjoy developing my own code. However, $5 seduce me to just buy it and let the dogs out! i got plenty of things to do instead of re-inventing the wheel! :)

wish me luck.. and quick recovery noawads..am feeling still sick.

Friday, March 18, 2005

Broadbandbuyer Forums: Repeating WAG54G and WAP54G

Broadbandbuyer Forums: Repeating WAG54G and WAP54G

Ah, seems like coming out from hell!! yes, since i've been too busy doing so many things and GOD i survived! While surfing for *(why my wireless network failed to reach my bro's appartment)* i found this lovely forum having answers to so many Wireless issues, seem that will be my next project for locales! :)

Right>:-)

About Me

My photo
Chicago, IL, United States
Creativity enthusiast ... Worked as web based application developer for more than 10 years using cgi, asp, php, asp.net server scripting languages in addition to JavaScript and recently glowing frameworks such as prototype, scriptaculous, jquery, mootools.. working on enhancing managerial skills and looking forward for a good position ;)