July
22
2008
12:45 am
Tags:
Post Meta :
You Diggin?

Here’s a sneak peek preview of what to expect in the next version of Woopra!

Woopra Sneak Peek

 

For all those who are waiting for an invite, post a comment and make sure to put your url in the url section (comments with url in the body will be blocked by akismet) and we will activate your website as soon as possible!

 

 

 

 

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!

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

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