May
13
2008
12:58 am
Tags:
Post Meta :
You Diggin?

 

SEOI’ve been working on a personal business site of mine (I’ll post the link once I’m done), it has been listed in googles index recently and to my surprise I’ve forgotten to optimize the urls on the site and only got the main page indexed. Google ignores everything after the ? for example, http://johny.org/index.php?post=2&bla=3, in this url google will only index http://johny.org/index.php and everything after the ? will be ignored. This is bad if your pages are dynamically generated (like most new websites).

To fix this, you need to create a new file on the root of your website and name it “.htaccess”. In this file we will put the redirection rules. This is what mine looks like

 

RewriteEngine on
RewriteRule ^montreal/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)\.html$ index.php?cat=$1&page=$2

 

The first line is required to enable rewrites.

 

The second line is the rule I’m using for the redirects, it looks complicated but it’s actually very simple! RewriteRule has 2 parts, the first part, the from part, “^montreal/([a-zA-Z0-9_-]+)/([a-zA-Z0-9_-]+)\.html$” is to tell apache that if you get a url which looks like this, redirect it to the second part, the to part, which in my case is “index.php?cat=$1&page=$2

 

The links on my page are **.com/montreal/category_example/page_example.html so when someone clicks on it, apache will redirect them to **.com/index.php?cat=category_example&page=page_example. In the from part I have 2 variables which are alpha-numeric, I’ve defined them by “([a-zA-Z0-9_-]+)” (from a-z, A-Z, 0-9, _-]+)) the variable ends as soon as a character is reached which is not in the range I’ve defined, in this case it’s the ‘/’, then the second variable starts which is for the pages. As you can see in my case, I’m mainly targeting clients from Montreal, that’s because my main clientele is from there and this keyword inserted in all my links will give me a fair amount of boost in the search engines for the “montreal” keyword (which is a must have in my case).

 

Hope this helps someone out, let me know if you need any help :)

April
3
2008
3:22 pm
Tags:
Post Meta :
You Diggin?

I’ve been a beta (actually even pre-alpha :P) user of Woopra for a while (one of the first, if not the first), so it’s now time to pay my dues by posting a video about it, the video was made with intent to be modified (some editing and adding step by step explanation) and placed on the Woopra demo page but due to lack of time it stayed as scrap and in the meanwhile newer version of Woopra got released and therefore I decided to post it before it becomes totally useless :P

If you haven’t heard of Woopra yet, “Woopra provides real-time stats delivered via a revolutionary client-server application, and includes unique features such as the ability to identify and chat real time with visitors to the monitored site. The beta version of Woopra was quietly unveiled to a select audience of 200 at WordCamp Dallas, but news rapidly spread to over 2 million as buzz began to grow.”

Enjoy! :)



For those interested in an invite to Woopra, I have a small challenge, download the high quality video from Vimeo (on the videos page) and edit it. The best edit will receive an invite!

February
6
2008
1:29 am
Tags:
Post Meta :
You Diggin?

I recently got a new pc with an Asus P5K motherboard, after reformatting it the built-in sound card was not working anymore.

This is how I fixed it:

  1. From control panel, add/remove, remove these 2 softwares if they are installed, “Realtek High Definition Audio Driver” and “High Definition Audio driver Package - KB888111″.
  2. Restart Windows
  3. Get the latest Realtek drivers from here.
  4. Install it, and reboot.
  5. Should be working now!

I think this should work on all Asus Motherboards that have a built-in HD Realtek Soundcard.

January
16
2008
8:31 pm
Tags:
Post Meta :
You Diggin?

Author: Hussam Al-Tayebmetacitycompositejm21.png

Metacity is the default window manager for the Gnome desktop. The next major version of metacity (2.22) to be released later this year, will have a built in composite manager that will be enabled by default if libxcomposite is installed.

First you need to have ‘glx’ module enabled in the system’s xorg.conf file.

Section “Module”

……….

Load “glx”

……….

EndSection

and the xorg composite extension enabled. This should be enabled by default in xorg-server 1.4.x but for older releases, you need to add the following changes to your xorg config file.

(more…)

September
23
2007
11:15 pm
Tags:
Post Meta :
You Diggin?

Squid LogoAuthor: Hussam Al-Tayeb

The following tutorial illustrates how to install and run a Squid proxy server.

First off, a little info about Squid, Squid is a fully-featured HTTP/1.0 proxy which is almost (in progress) HTTP/1.1 compliant. Squid offers a rich access control, authorization and logging environment to develop web proxy and content serving applications.

You will need the following programs installed. ‘openssl’ ‘pam’ ‘perl’ and any ‘cron’ daemon preferably dcron. A recent gcc version is also needed.

Installing Squid:

First you need to download the following source tarball.
Open a terminal window and cd to the folder where you downloaded the file
run: tar -jxvf squid-2.6.STABLE14.tar.bz2 && cd squid-2.6.STABLE14

The next step is to run the configure script.

./configure –prefix=/usr –datadir=/usr/share/squid \
–sysconfdir=/etc/squid –libexecdir=/usr/lib/squid \
–localstatedir=/var –enable-auth=”basic,digest,ntlm” \
–enable-removal-policies=”lru,heap” \
–enable-digest-auth-helpers=”password” \
–enable-storeio=”aufs,ufs,diskd,coss,null” \
–enable-basic-auth-helpers=”getpwnam,YP,NCSA,SMB,MSNT,PAM, multi-domain-NTLM” \
–enable-external-acl-helpers=”ip_user,unix_group,wbinfo_group” \
–enable-ntlm-auth-helpers=”SMB,fakeauth,no_check” \
–enable-delay-pools –enable-arp-acl –enable-ssl \
–enable-linux-netfilter –enable-ident-lookups \
–enable-useragent-log –enable-cache-digests –enable-referer-log \
–enable-async-io –enable-truncate –enable-arp-acl \
–enable-htcp –enable-carp –enable-poll –with-maxfd=4096
Then run ‘make’ and hope for the best.
After it is done compiling, type ’su’ then enter your root password and run ‘make install’
(more…)

September
22
2007
10:08 pm
Tags:
Post Meta :
You Diggin?

Author: Raymond AbdallahGmail Logo

It’s been a long while since I’ve been thinking to change my Windows Live Messenger account from my old Hotmail account to my Gmail one! I wanted to migrate totally from the Microsoft Corp (not totally since in the end I’m still using WLM)! I searched the net over and over to know how to export my Hotmail contacts to import them into Gmail, but none of the sites had a clue about what the new Windows Live Mail was hiding since you can find many sites on how to export contacts from the old Hotmail service!

(more…)

August
17
2007
6:13 pm
Tags:
Post Meta :
You Diggin?

JAMinI recently changed my home network configuration, because of some weak wifi spots and I was amazed to see that my Jamin was going nuts from the change! Although I was able to ping it from within the network, I wasn’t able to access the internet from the pocket pc. At first I thought the board might be going bad, but the fact that the I was able to ping it from my laptop gave me some hope. Therefore I started to mess around with the settings of the router, I removed wep, the problem still remained, I removed dhcp, again nothing, then I searched for the latest firmware, installed and nothing… The last thing that popped in my mind was to make the network only work on G mode instead of mixed mode, and that finally got it working again. I’m not sure if the imate Jamin is only compatible with G mode, since it clearly states that it supports B and G modes, but if you own a D-Link Wireless Router (mine is DI-524) and you’re having problems connecting to the internet, try this and it might work!


August
16
2007
5:55 pm
Tags:
Post Meta :
You Diggin?

I’ve been cleaning my laptop today, and came along a project I did for my Parallel Programming course, I’ve never published this because the code was never completed as I lost interest, the challenge was the idea and the concept, anyone can write a piece of code :) but few people can come up with innovative ideas!

I came up with the idea of writing a PHP library which will make my multiple servers work together in running a certain job, back then I had access to around 5 shared servers, 3 were mine, and 2 were from friends… As an example, I ran Monte Carlo using this concept. One server was the master, the other 4 were slaves. The master sent the jobs to the slaves, the slaves got random numbers from random.org, calculated the integral, and sent the results back to the master. Once the master received all the results, it calculated the average and outputted the result. This was just a simple example I did to prove that my idea worked…

(more…)

August
14
2007
1:23 pm
Tags:
Post Meta :
You Diggin?

Level: Beginner (coder)

This is a small tutorial which will teach you how to upload files using a C# client application to a server running PHP.

We’ll call the PHP script “upload.php”, this is what it should contain:

<?php
$uploaddir
= ‘upload/’; // Relative Upload Location of data file

if (is_uploaded_file($_FILES[‘file’][‘tmp_name’])) {
$uploadfile = $uploaddir . basename($_FILES[‘file’][‘name’]);
echo
“File “. $_FILES[‘file’][‘name’] .” uploaded successfully. “;


if (move_uploaded_file($_FILES[‘file’][‘tmp_name’], $uploadfile)) {
echo
“File is valid, and was successfully moved. “;
}

else
print_r($_FILES);
}

else {
echo “Upload Failed!!!”;
print_r($_FILES);
}
?>

(more…)

July
29
2007
9:54 pm
Tags:
Post Meta :
You Diggin?

Section: II
Level: Beginner - Intermediate

In the first section, we learned how to register a domain name and a host. In this section, we will take a look on how we can start having a website using that domain name and host.

The objectives of this section:

  1. Upload Wordpress
  2. Create a database
  3. Install Wordpress



By the end of this section, you should have a clear knowledge on how to install a Content Management System (CMS), in this case Wordpress but they all have very similar installation methods. Good Luck!
(more…)

older »