Lost within

Alaa Abdelhaq Blog

Archive for the ‘Web Development’ Category

How your site looks in other browsers??

Sometimes working on web design may not be as easy as you think.
Specially when it comes to browsers compatibility.
things get tricky and difficult with the lack of HTML CSS and Javascript debuggers like firebug on
other browsers specially IE!
plus you are working under your favorite OS, so it gets harder to test your work on different browsers and different platforms?
By surfing the web I came by chance with this incredible website LINK
How it helps you?
simply click on the link place your website address
then check the browsers you want to check under different platforms.
next you can put some rules like the preferred resolution you want the test to be ran under.
then you submit it.
Next the website will show you exactly how your website will look on the selected browsers.
it will get you results as a png images, yes images!
maybe some people wont like the service, for me if I was able to check exactly how my website looks on each browser that would be great, and maybe helps me to decrease bounce rate :)

give it a try :)

Javascript and browsers

Building websites with a lot of client script like javascript may be a nightmare sometimes!
there is a big possibility that the client disabled the javascript by mistake or does not know whats javascript is!
so am wondering when browsers like firefox IE or Opera will make javascript support as an mandatory thing, and the end-user will never ever be able to disable it?
or what could replace javascript??

Ubuntu - Enable mod_rewrite in Apache server

At first I should define, what is mod_rewrite?
mod_rewrite is a part of Apache server that can rewrite requested urls on the fly.

To enable mod_rewrite in Ubuntu, you just need to write this command in terminal

sudo a2enmod rewrite

ffmpeg

This post will help you to install ffmpeg and compile it with some important codecs.

First, get your dependencies:

sudo apt-get build-dep ffmpeg
sudo apt-get install liblame-dev libfaad2-dev \
libfaac-dev libxvidcore4-dev liba52-0.7.4 \
liba52-0.7.4-dev libx264-dev checkinstall \
build-essential subversion

Next, grab the ffmpeg source:

svn checkout -r 8998 svn://svn.mplayerhq.hu/ffmpeg/trunk ffmpeg

If you’re feeling adventurous, you can try the very latest code by omitting the -r 8998 part of that line. Revision 8998 is the latest at the time of writing, and worked for me.

Now you can configure and build ffmpeg. This takes a little while:

cd ffmpeg
./configure --enable-gpl --enable-pp --enable-libvorbis \
--enable-libogg --enable-liba52 --enable-libdts \
--enable-dc1394 --enable-libgsm --disable-debug \
--enable-libmp3lame --enable-libfaad --enable-libfaac \
--enable-xvid --enable-pthreads --enable-x264
make

Finally, install it. checkinstall gives you the option to edit some parameters: I set the name to ffmpeg and the version to 3:0.svn20070511

sudo checkinstall

To get the user’s IP use the following script:

<?php
GetHostByName($REMOTE_ADDR);
?>

To get the user’s computer name use the following script:

<?php
gethostbyaddr($_SERVER['REMOTE_ADDR']);
?>