Category: Uncategorized
Django and NGINX in Docker
In this post we will run Django application behind a NGINX webserver, which is a very common practice in production.
Django CRUD (Create, Retrieve, Update, Delete)
One of the most common task when developing web application is to write create, read, update and delete functionality (CRUD) for each table you have.
In this post I briefly cover the step needed to create a CRUD app in Django, the steps we will need are:
Django with Docker: Add Postgres
In the last post I covered starting a new Django project with Docker, and how to build a custom container image for my project, but what I haven’t covered is how to use a Database and how persist your data since all data stored in the container ephemeral and would only exist during the life span of the container.
Django with Docker: Build an Image
Docker is an interesting technology, although still young it gained a lot of buzz and momentum.
The last couple of weeks I started playing with Docker to see how can I use it for Django project development and deployment.
CentOS New System Checklist
Here I document minimal steps to setup a CentOS 7 machine, it suppose to be a live post, so I’ll keep updating it every time I found a step worth mentioning!
Go Language Setup for Multiple Projects
Update: It turns out that this setup is not needed, you should a have single GOPATH directory with all of your projects inside it, and use the vendor feature to handle each project dependencies. More details in a new post.
When working with Go language you must setup the GOPATH environment variable, but soon you will face two problems:
- Each project should have its own Go dependencies and its own Git code repo, so putting your source under GOPATH would be problematic.
- When working with “Atom” with “Go Plus” plugin, it needs to install several Go packages which would pollute your own source.
To solve both problems I added the following to my “.bash_login”:
أين تذهب في استراليا
لا يرتبط اسم استراليا مع السياحة لدى الكثيرين منا، على الرغم من انها مقصد سياحي عالمي مهم خصوصا لدى الدول الآسيوية القريبة منها.
سأذكر بشكل موجز مزايا وعيوب السفر الى استراليا
المزايا
- سهولة اجرآت التأشيرة الاسترالية: يتم التقديم على تأشيرة الزيارة من خلال الانترنت، ويتم الحصول عليها الكترونيا في فترة قصيرة (اقل من اسبوع).
- تنوع الخيارات فكل من سيدني وملبورن وجولد كوست لها طابعها الخاص.
- الاسعار متوسطة، ويمكن استرجاع بعض ضرائب المبيعات عند مغادرة البلد.
- الشعب الاستراليا ودود.
- قلة الزحمة في الصيف.
- الرحلات الداخلية اسعارها معقولة.
- صيفنا شتآهم: نظرا لكون استراليا تقع في النص الجنوبي من الكرة الارضية فان فترة الصيف عندنا تكون هي فصل الشتاء عندهم، مما يعني ان الطقس معتدل الى بارد.
- احد الخيارات القليلة عالميا عند لرغبة في السفر شتاءً.
العيوب
- لا توجد رحلات مباشرة من السعودية الى استراليا، واسهل الخيارات هي رحلات الاماراتية من دبي وتستغرق الرحلة ١٤ ساعة الى سيدني، من ناحية أخرى تتوفر رحلات من دبي الى جميع المدن الرئيسية في استراليا مما يعطي مرونة في خط السفر بحيث تذهب من مدينة وتعود من اخرى.
- التكلفة العالية لتذاكر الطيران حيث يكلف المقعد الاقتصادي قرابة ٧ الآف ريال او اكثر.
- نظرا لان الطقس بارد خلال الصيف فان الفعاليات تكون قليلة وكذلك يصعب الاستمتاع بالبحر والمنتزهات المائية، وقد يكون بارد جداً لدرجة يصعب الخروج فيها ليلاً.
- خيارات التسوق محدودة.
- قيادة السيارة في اليمين، مما يصعب القيادة وتحتاج بعض تعود، على الرغم من المدينة الوحيدة التي قد تحتاج فيها سيارة هي جولد كوست.
كما كتبت مقالات مفصلة عن المدن السياحية الثلاثة التي تستحق الزيارة في استراليا:
أين تذهب في ملبورن استراليا
المركزالفني وساحة فيديراشن سكوير ACMI Cultural Center and Federation Square
المركز الاسترالي للصور المتحركة ACMI هو معرض مخصص للمحافظة على كل ما يتعلق بالصور والافلام، لكن بغض النظر عن اهتماماتك المبنى يعد من ابرز المباني في ملبورن ويلتصق به ساحة فيديراشن وهي ساحة كبيرة تقام فيه العديد من الفعاليات، وكذلك على بعد خطوات من محطة فليندر ستريت اكبر محطات القطارات في ملبورن، كما انه يطل على نهر يارا وحدائق اليكساندرا، ومن الجهة الاخرى من الشارع كاتدرئية ساينت بول، لذلك انصح ان تكون اول محطة في زيارتك لمبلورن هي هذه المنطقة.
اين تذهب في سيدني استراليا
دار أوبرا سيدني Sydney Opera House
اهم معلم في مدينة سيدني، تحفة معمارية غريبة ومميزة، المبنى مكون من مبنيين على شكل ٣ اصداف متداخلة.
خذ جولة داخل المبنى، واذا حالفك الحظ سيمكنك متابعة بعض المتدربين يعزفون مقطوعة موسيقية.
اين تذهب في جولد كوست استراليا
سرفرز باردايس Surfers Paradise
سرفرز باراديس (جنة المتزلجين على الماء) هي المنطقة الترفيهية الرئيسية في جولد كوست، مجموعة كبيرة من المطاعم والفنادق والمحال بمختلف انواعها من الفخمة الى محلات التذكارات، محلات الالعاب والترفية والمأكولات الشعبية.
في الواجهة البحرية يتحول الشارع في مساء ايام السبت والجمعة والاحد الى سوق مؤقت مليئ بالاكشاك التي تبيع مختلف البضائع الغريبة، وتمتليئ بمحلات الحيوانات الغريبة التي يمكن ان تلاعبها وتصور معها.
من الاماكن التي تصلح للصغار:
– Timezone Surfers Paradise
– Ripley’s Believe It or Not!
– Infinity Attraction
Change and rebuild an RPM on CentOS
Test
sudo yum groupinstall "Development Tools"
sudo yum install epel-release.noarch
sudo yum install yum-utils rpmdevtools
mkdir -p ~/rpmbuild/{SOURCES,SPECS}
wget http://example.com/lame-3.99.5.tar.gz
mv lame-3.99.5.tar.gz ~/rpmbuild/SOURCES
rpmdev-newspec lame
mv lame.spec ~/rpmbuild/SPECS
cat < < EOF > ~/rpmbuild/SPECS/lame.spec
# ------------------------------------------------------------
Name: lame
Version: 3.99.5
Release: 1%{?dist}
Summary: LAME MP3 Encoder
License: N/A
Source0: lame-3.99.5.tar.gz
%description
Educational tool to be used for learning about MP3 encoding. LAME aims to be the basis of a patent free audio compression codec.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%make_install
%files
%doc
/usr/bin/lame
%dir /usr/include/lame
/usr/include/lame/*
/usr/lib64/*
/usr/share/doc/lame/html
/usr/share/man/man1/lame.1.gz
%changelog
# ------------------------------------------------------------
EOF
rpmbuild -ba ~/rpmbuild/SPECS/lame.spec
sudo rpm -Uvh ~/rpmbuild/RPMS/x86_64/lame-3.99.5-1.el7.centos.x86_64.rpm
yumdownloader --source sox
sudo yum-builddep sox-14.4.1-6.el7.src.rpm
rpm -i sox-14.4.1-6.el7.src.rpm
vi ~/rpmbuild/SPECS/sox.spec
: Add "--with-lame" to the configure line
%configure --with-lame
:
rpmbuild -ba ~/rpmbuild/SPECS/sox.spec
sudo rpm -Uvh ~/rpmbuild/RPMS/x86_64/sox-14.4.1-6.el7.centos.x86_64.rpm
sox | grep mp3
References: https://fedoraproject.org/wiki/How_to_create_an_RPM_package
Limit String Length in Printf in C
I can’t believe how many times I forget this trick! so I am writing it down so I won’t forget it!
Normally when you use printf function with “%s” formatting to print a string (char *) you rely on C convention of terminating a string with a NULL character (i.e. value 0).
So if you want to print small part of longer string, you copy the part you need to a new buffer and terminate it will NULL.
Django: How to pass an url as parameter of include
In Django web applications I usually have a single template file for navigation or bread crumb that I include from other template files, it is easy and straight forward to pass parameter to the included template file, some thing like:
{% include "nav.html" with title="title" object=my_object %}
But it would be a little tricker to send a URL as a parameter, i.e. you can’t write it:
{# WRONG DOESN'T WORK #}
{% include "nav.html" with title="title" link={% url 'book_edit'%} %}
But luckily Django have a decent and elegant solution, you can use “url” template function with “as” parameter, which will not display but will store it in a variable that you can use later in the include function:
Django CRUD Parent/Child Edition
I’ve written before about implementing CRUD operations on a single table in Django, and the post was very popular on my blog and I hope many people learned something from it.
The next logical step is to write a CRUD application with Parent/Child relationship, the application is bit more verbose but it follow the same simple logic used in the first post.
In fact I didn’t write a single application, I wrote five stand alone applications that shows different ways to implement CRUD operations:
اقتراحات لتفعيل خدمة لاسلكي الهواة
كتبت رسالة الى معالي الدكتور محمد السويل وزير الاتصالات باقتراحات لتفعيل خدمة لاسلكي الهواة او ما يعرف بـ “Amature Radio” او “Ham Radio” ردا على طلبه للعموم باقتراحات لتطوير خدمة الاتصالات في المملكة:
https://twitter.com/MIsuwaiel/status/580704446520291328
وفي ما يلي نصها، للتاريخ وكذلك كمرجع لي.
السلام عليكم ورحمة الله،
معالي الدكتور محمد السويل اكتب لكم بمقترحات لتشجيع خدمة لاسلكي الهواة في المملكة العربية السعودية.
قبل قرابة السنتين احببت ان اتعلم تقنيات اللاسلكي ولاسلكي الهواة لاكتشف عدة عوائق لاستخدام الخدمة في المملكة.
My first public Python Package “pyagentx”
I’ve just published my first public Python package “pyagentx”, the package will help you build “AgentX” agents to extend a master SNMP agent.
Let’s assume that you want to monitor your custom application from your Network Managment System (NMS), but the NMS only speak SNMP, this package allows you to extend the master SNMP agent to include your custom application metrics.
Django Image and File Field Caveats
Every time I work with Image or File fields in Django I forget some tiny detail that waste 10-20 minutes until I remember what was I missing, I always say I will remember it next time but I never do! so I made a list of common errors I keep doing while working with Image/File fields:
For complete working project: (https://github.com/rayed/dj-imagefield-example)
Setting MEDIA_URL and MEDIA_ROOT
Make sure you set proper values for MEDIA_URL and MEDIA_ROOT in your settings.py, e.g. I use the following structure:
Intro to Ansible Presentation
My presentation at Riyadh Linux User Group about Ansible
Git directory outside working directory
I have an old PHP website that I wanted to have its code/content versioned with Git, normally Git setup the repo directory in the “.git” directory inside the working directory, but I faced a problem, if the working directory is accessible from the web server it means “.git” is also accessible too.
Luckily git have an option to have the repo directory located somewhere else using the GIT_DIR environment variable, so here what I did:
Install psycopg2 (PostgreSQL adapter for Python) on OSX
I was playing with Django with Postgres backend, and I had little difficulty installing “psycopg2” the Python DB adapter for Postgres on my Mac OSX.
I’ve installed Postgres using Postgres.app for OSX which is straight forward and standard Mac app.
But when I tried installing “psycopg2” using “pip” (the python package manager) I got an error:
$ pip install psycopg2
:
Error: pg_config executable not found.
:
I just searched for “pg_config” in my system:
Limit SSH to Copy a Single File Only
I want to allow host-2 to copy a file securely from host-1, so the easiest way is to use “scp” command which use “ssh” as a transport to copy the file.
If you want to do it manually it is straight forward “scp” invocation:
host-2$ scp host-1:data.csv .
But if you want to automate it you have to use “ssh” keys, but this means leaving a private ssh key on host-2 that can access host-1 without any restriction, i.e.
“sar” command cheat sheet
“sar” is a Unix command that collect, report, or save system activity information, it is different from other system status command like “top” or “vmstat” that only show real time status only, “sar” in the other hand collect these data so you can find the system state at any time.
Solving Python virtualenv “DistributionNotFound: distribute”
After upgrading my Ubuntu machine from 12.04 to 14.04 I had this error on virtualenv wrapper:
Rsnapshot on OSX
Rsnapshot is a backup solution for Unix machines including Linux and OSX, it supports many great features including full backups with the size of only incremental backup, it also support backing up local and remote machines.
Monitoring Servers with Munin
This is a draft on configuring Munin to monitor services on a Linux machine, still dirty but published for my reference, if you have question let me know.
Django memory leak with gunicorn
If you have a long running job that leaks few bytes of memory it will eventually will consume all of your memory with time.
Django Themes (or where to put base.html?)
The Wrong Way
I used to create a new directory to hold common templates like “base.html”, and add it TEMPLATES_DIR in the settings.py file:
Protect your Server with Fail2Ban
Fail2ban is a program that scan your log files for any malicious behavior, and automatically block the offending IP.
كيف تنشئ موقع انترنت مجانا
هل تملك عنوان بريد الكتروني تحت gmail او hotmail؟ ماذا لو بحثت عن اسمك هل ستظهر صفحتك في تويتر او فيس بوك؟
لماذا لا تقوم بحجز اسم نطاق خاص بك مثل www.rr.sa ويكون عنوانك البريدي هو rayed@rr.sa، وبالمجان ايضاً.
Accelerating Postgres connections with PgBouncer
PgBouncer is a lightweight connection pooler for PostgreSQL, connection pooling makes Postgres connection much faster, which is important in Web applications.
Translation in Django
Preparing Django project to support multiple langauges is easier than you think!
Graph you Data and Email It
I have a new website and I want to know the number of new signup every day, so I wrote a small script new_users.sh
that will print the number of new signups today.
Free Electronics Video Courses
PyroElectro have decent and recent courses on electronics that cover different fields.
Ubuntu new server checklist
These are the step I perform after installing new Ubuntu machine.
Django returning JSON for AJAX requests
In your views.py
you can have a page that return JSON data for AJAX request like this:
Setting Up Python and Supervisor on CentOS
CentOS default repository is very limited, and even if you install EPEL you will get old packages, in my case I needed to install Supervisor to manage my Django application, after trying to do it manually and through EPEL I ended up with the following setup.
Django Multiple Settings with Single File
Instead of having multiple settings files one for production and one for development and so on, I prefer to use an “if” statement with environment variable:
Login to PostgreSQL without typing a Password
If you to connect to PostgreSQL without typing a password, you can do it by having your password in the file “.pgpass”.
Django “render” vs “render_to_response”
Summary: Always use render
and not render_to_response
In Django you have more than one way to return a response, but many times I get confused between render
and render_to_response
, render_to_response seems shorter, so why not use it!
Install Python Image Library (PIL) on OSX
PIL or Python Imaging Library is a library that allows you to manipulate images in Python programming language, trying to install “PIL” using “pip” tool won’t work perfectly so here is how to proper installation.
My New Project: AgentX Implementation in Python
During this Eid vacation I spent many hours working on AgentX implementation in Python.
You can find the project in GitHub:
Backup Journey to rsnapshot
When I started producing backup worthy files (code, documents, projects, etc …), I realised the importance of backups after losing important files which happens to everybody. So I started my journey with backup solutions.
Backup generation 1: My first backup was simple directory copy operation, I copied my important directories to external floppy (then CD), and since it is manual operation I always forget about it and my backups was always old.
Python auto complete in OSX
If you run Python shell in OSX you notice the auto completion functionality isn’t working, this is caused by Apple decision not to ship GNU readline and instead they use libedit (BSD license), to fix the problem I used the following snippet:
IPython Import Error
I tried to install IPython to play with it and learn more about scientific Python packages, but I faced an error on my first step:
Implementing Login/Logout in Django
Update: add names and namespace to URLs
Implementing user authentication is fairly easy job in Django, many functionalities are already included in the standard Django installation, you can manage users using the default “admin” app the comes with Django.
Here I will show how implement Login/Logout feature by relying on Django built-in views.
اليابان: رحلتي الى طوكيو
منذ صغري وانا احمل تقدير كبير لليابان واليابانين خصوصا عندما رأيت نهضة اليابان المثيرة امام عيني خلال فترة الثمانينات، عندما كانت المنتجات اليابانية المشهورة برداءة الصنع تأخذ عقول واموال المستهلكين في العالم حتى اصبحت في القمة من ناحية الجودة، كانت المحطات التلفزيونية والجرائد والمجلات تتحفنا بعجائب الاختراعات اليابانية من روبوتات وسيارات والكترونيات والاهم البطيخ المربع
Supporting Right-to-Left (for Arabic) in WordPress: the Easy Way
This post is an update of previous old post: Supporting right to left writing (for Arabic) in WordPress
Source Code Management with GIT
I gave an introduction to Git in the last DevCamp meeting held on the 18h of April at Badir.
I hope you find it useful
أين تذهب في نيو اورلينز New Orleans
روابط ذات علاقة
تقع مدينة نيو اورلينز في ولاية لويزيانا في الولايات المتحدة الامريكية، ولسبب ما فان المدينة سحرتني منذ زمن بعيد قبل ان ازورها ولا اعرف كيف ولماذا! كل ما اعرفه انني عندما زرتها لم تخيب ظني وطابقت كل ما تخيلته عنها وزادت.
زرت نيو اورلينز خلال زيارة لي لمدينة هيوستن في ولاية تكساس، وكانت المسافة بينهما هي ٥ ساعات بالسيارة، مدينة هيوستن وولاية تكساس بشكل عام فاقتا توقعاتي خصوصا من ناحية اعتدال الجو والانشطة الثقافية فيها حيث ضمت العديد من المتاحف والحدائق والفعاليات، والتي لم يتسنى لي الاستمتاع بها كون سفرتي كانت خلال شهر رمضان.
العربية تعني جودة اقل!
لو مريت على محلين متشابهين احدهم اسمه “احنا الورق” والاخر اسمه “Paper R Us” من ايهما سوف تشتري؟!
لماذا تسعى الشركات المحلية لاستخدام اسماء انجليزية بدل العربية؟
لماذا الشركات التي اسمأها انجليزية جودتها اعلى واسعارها افضل؟!
لو طلب تاجرين فتح محلين وصُرِح لإحدهم باستخدام اسم عربي والآخر أي اسم يحلو له، هل هناك افضلية لإحدهم على الآخر!
لماذا الـ"STC" ولماذا “موبايلي”؟!
هل حافظنا على لغتنا ام ربطنها بالدونية؟!
Django Serving Static Files without a Web Server
UPDATE: Steps in this post isn’t correct, check the Django Themes post for better solution.
When deploying Django site it is always recommended to serve static files (e.g. js, css, img, static, media) using a normal web server instead of relying on Django built development server or Gunicorn.
But sometimes you want to test something quick and you don’t want to bother with installing or configuring a web server, the solution is to use the built-in django.views.static.serve view to serve the static files from Django it self:
rayed.com IPv6 Ready!
This website rayed.com is now IPv6 ready:
$ dig rayed.com AAAA
;; QUESTION SECTION:
;rayed.com. IN AAAA
;; ANSWER SECTION:
rayed.com. 21600 IN AAAA 2a01:7e00::f03c:91ff:fe70:5c6a
You can test IPv6 readiness for any website from IPv6 Test service.
Change Default Editor in Ubuntu
Just type:
sudo update-alternatives --config editor
Managing Python Environments with “virtualenvwrapper”
What is virtualenvwrapper
virtualenvwrapper is a tool that (as the name suggest) wrap “virtualenv” program, virtualenv solve the following problem:
Fixing “cannot change locale (UTF-8)” error
I am trying new way to fix the annoying “cannot change locale (UTF-8)” error, this error usually show when you login from your OSX to a Linux machine:
Update Linux without a password
So you managed to login to your Ubuntu Linux machine with a password by using the magic of ssh keys, and you installed “apticron” to email you whenever their is a system update, you login to the system and issue the update command “sudo aptitude update” and “sudo” asks you about your password! not only it is annoying, it also can’t be automated, imaging you manage 10 servers and you have to type the password to update each machine! or you want to automate using some remote execution application like Fabric or Salt (I am Python fan, so I won’t mention Chef or Puppet here).
Best GIT cheat sheet
Click on each region to find out how to change its state: http://ndpsoftware.com/git-cheatsheet.html
الحذاء وطبق الكريستال
قصة للأطفال، تحكي عن حذاء جديد يتسخ من اول استخدام مما يجعله عرضة للسخرية من قبل صحن الكريستال.
بعد فترة يمل الطبق من السخرية ويبدأ الحديث مع الحذاء عن كيفية تعرضه للاتساخ، ويبدأ الحذاء بالحديث عن مغامراته اليومية خارج المنزل، وكيف انه يفيد صاحبه كل يوم.
بعد ما تشبعت مخيلة الطبق من مغامرات الحذاء اليومية بدأ يحس بمدى تفاهة حياته، وحاجته لان يكون مفيداً أكثر من الاستخدام النادر عند قدوم الضيوف.
My First Makefile
The following is a sample Makefile for simple project, here I am building a simple “Bloom Filter” library, and “main” program to use it.
The library will have the following files:
- hash.h and hash.c
- bloom.h and bloom.c
and we should get “libbloom.a” out of it.
The “main” program will use:
- main.c
- bloom.h
- libbloom.a
and we should get “main” executable. So our make file should look like this:
$ cat Makefile
CFLAGS=-Wall -O3
LDFLAGS= -L.
LDLIBS=-lbloom
CFLAGS += `pkg-config --cflags libpcre`
LDFLAGS += `pkg-config --libs libpcre`
OBJS=main.o other.o libbloom.a
BLOOM_OBJS=hash.o bloom.o
all: main libbloom.a
main: $(OBJS)
$(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)
libbloom.a: $(BLOOM_OBJS)
ar rcs $@ $^
.PHONY: clean
clean:
-rm main libbloom.a *.o
Makefile use TAB not spaces for indentation.
Minimal Django Project: Part 2 … Flat Pages
In this step we will setup the Flatpage App, Flatpage allows you to create simple static pages from the Admin interface:
**mycms$ mkdir templates**
**mycms$ vi mycms/settings.py**
:
MIDDLEWARE_CLASSES = (
:
# Add Flatpage Middleware
'django.contrib.flatpages.middleware.FlatpageFallbackMiddleware',
)
:
TEMPLATE_DIRS = (
:
'/Users/rayed/python/mycms/templates',
)
:
INSTALLED_APPS = (
:
# Add Flat Pages App
'django.contrib.flatpages',
:
)
:
**mycms$ vi mycms/urls.py**
:
# Your other patterns here
# SHOULD BE THE LAST RULE
urlpatterns += patterns('django.contrib.flatpages.views',
(r'^(?P<url>.*)$', 'flatpage'),
)
**mycms$ ./manage.py syncdb**
**mycms$ mkdir -p templates/flatpages**
**mycms$ vi templates/flatpages/default.html**
<!DOCTYPE html>
<html>
<head>
<title>{{ flatpage.title }}</title>
</head>
<body>
<h1>{{ flatpage.title }}</h1>
{{ flatpage.content }}
</body>
</html>
Now from the admin interface add a new page from “Flat pages” app, and you can view directly from the normal site.
Minimal Django Project: Part 1 … First Run
Update: Django 1.6+ don’t need any of these steps! it will work out of the box.
The following is the shortest way to create DB backed Django project, it uses SQLite as a backend, which make the setup very easy and fast.
I usually use for testing new Django modules or apps.
**$ django-admin.py startproject mycms**
**$ cd mycms**
**mycms$ chmod +x manage.py **
**mycms$ vi mycms/settings.py **
import os
PROJECT_ROOT = os.path.abspath(os.path.dirname(__name__))
:
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': './mycms.db',
:
}
}
:
TIME_ZONE = 'Asia/Riyadh'
:
TEMPLATE_DIRS = (
PROJECT_ROOT + '/templates',
)
INSTALLED_APPS = (
:
'django.contrib.admin',
:
)
:
**mycms$ vi mycms/urls.py **
# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()
urlpatterns = patterns('',
:
# Uncomment the next line to enable the admin:
url(r'^admin/', include(admin.site.urls)),
)
**mycms$ ./manage.py syncdb**
:
provide username, email, password for admin
:
**mycms$ ./manage.py runserver**
:
To access it from outside
:
**mycms$ ./manage.py runserver 0.0.0.0:8080**
To access it: Frontpage @ localhost Admin @ localhost
PostgreSQL: New Project Setup
For each new project that need PostgreSQL you should create its own user and its own DB, the following are the steps need for that.
Installation
$ sudo aptitude install postgresql
$ sudo aptitude install python-psycopg2 # For Django access
Require a Password
$ sudo vi /etc/postgresql/9.1/main/pg_hba.conf
:
#local all all peer
local all all md5
:
$ sudo service postgresql restart
Create Postgres User
$ sudo -u postgres createuser -P my_user
Enter password for new role:
Enter it again:
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
Create DB
$ sudo -u postgres createdb my_db -O my_user
Test It
$ psql -U my_user my_db
After login you issue any SQL statement, you should also try the following commands:
My Python and Django bookmarks

This a list of Django and Python websites I found useful, I hope you find it useful as well, and may be add to it in the comments:
- Django | Django documentation | Django documentation
- The Django Book
- Django Packages : Django Packages reusable apps, sites and tools directory
- 170+ Django conference videos | Equally True
- ubernostrum / django-registration — Bitbucket
- GoDjango.com – Going Through Django Screencasts
- Sourcefabric | Django Software Stack
- Drupal or Django? A Guide for Decision Makers | scot hacker's foobar blog
- <a HREF=“http://celeryproject.org/" “1335735065” >Homepage | Celery: Distributed Task Queue
- Haystack – Search for Django
- Ginger Tech Stack | Blog | Django Development | Lincoln Loop
- Django Best Practices — Django Best Practices
- 33 projects that make developing django apps awesome — elweb
- Brandon Konkle
- Django Advice / Steve Losh
- Auth tips and tricks
Japan Trip Photos
In October 2012 I visited Japan with my lovely family, overall Japan was great country to visit, and I will be writing more extensive post about my visit, mean while I hope you enjoy my photos.
read moreSupporting right to left writing (for Arabic) in WordPress (Updated)
UPDATE: I found an easier way to do the same thing Check it out
This post is an update of previous old post: Supporting right to left writing (for Arabic) in WordPress
In my blog I write in both languages English and Arabic, but I have to switch text direction from the template default English direction “Left to Right” to Arabic “Right to Left”. One way do to it is to add HTML tags in each Arabic entry.
Kiva systems: innovative warehouse robotics
Kiva Systems is a company that makes order fulfillment systems that use mobile robots for warehouse automation. Its material handling systems are used by Staples, Walgreens, GAP, Crate and Barrel, Toys “R” Us and Gilt Groupe, among others.
Amazon bought them for $775 million, you must watch the videos!
Blast from the past: Small Piece of Saudi Arabia Internet History
Last week my friend Osama Aldosary was cleaning his emails and found this 13 years old email from me back when I was working as a system admin at ISU KACST, and I was administrating the email servers that accept and forward all internet emails for Saudi universities, Osama was working for KSU back then.
Thank you Osama
Subject: New Link Migration Plan
Date: Wed, 10 Feb 1999 15:34:40 +0307
From: Rayed Al-Rashed < *****@kacst.edu.sa>
Organization: KACST
To: *****@kaau.edu.sa, *****@kfupm.edu.sa, *****@ksu.edu.sa, *****@ksu.edu.sa, *****@uqu.edu.sa
Salam Brothers,
As you all know KACST was connected through King Faisal Specializes
Hospital, and since KACST is now connected through ISU, we have to
replace our old IP addresses with the new ones from ISU.
Of course this will affect the leased-line link and E-Mail traffic with
all of you, and we tried to delay the migration as much as we can to
give you enough time to set up your own services through ISU link.
Our dead line to return the old IPs will end in less than a month, then
we have to return them to RIPE, we are going to start our plan to
migrate to the new IPs, and we have to stop the leased-line link and our
old mail relay that serve your domains when we return the old IPs.
I am sure that most of you are ready by now, but if you are facing any
problems we will be happy to help you with it.
NOTE:
Please send me the current state of your migration plan, and the
estimated time to finish.
-----------------------------------------------
Rayed Al-Rashed
Internet Services Unit
King abdullaziz City for Science and Technology
-----------------------------------------------
Django backend benchmark
I create small Django app and tried to benchmark it with different backends, here is the result:
Backend | Req/Sec |
---|---|
PostgreSQL | 68.41 |
PostgreSQL+pgpool | 116.12 |
MySQL | 127.61 |
PostgreSQL on Ubuntu from scratch
My notes on installing and configuring PostgreSQL on Ubuntu Linux.
PostgreSQL is used by many large web sites and services, including Skype, Reddit, Instagram, “.org” registerer, check longer list here Prominent Users
Best of all it isn’t owned by anyone, not Oracle nor anyone else!
مقابلتي في اطياف
مقابلتي في اطياف اكرة صوتي المسجل، بعض الاحيان انسى انه انا 🙂
روابط ذات علاقة

Deploying Django
Django is a web framework written in Python language, my favourite computer programming language.
Python a language is really great language, easy to read and understand, and very easy to learn, but for me I always found setting up Python for web development as a challenge, socially if compare it to PHP, which almost works out of the box, actually most people think PHP works only in the web server and can’t work as stand alone application, search for PHP CLI if you are interested.
I will try here to document an easy Django deployment for my future reference and hopefully it will help others:
MENOG 10 In Dubai
If you are working in Internet network operations you don’t want to miss this event, MENOG -Middle East Network Operator Group- is a conference where network operator from all over the globe and the region of course come to talk about network operation issues, trends, etc…
MENOG 10 Agenda
MENOG is also a great opportunity to get quality education, this time they have 2 workshops one about “DNS Operations & DNSSEC Deployment”, and another one about “IPv6 for ISPs”, the workshop is 5 days training.
MENOG 10 Workshops
The Big Book of Monsters
Few months ago while waiting for our flight in the airport I took out my notebook (paper one) and I start drawing with my son Dody, we started drawing different monsters trying to be funny and creative, and we decided to write a book with the name “The Big Book of Monsters” where we fill it with drawings of monsters with names and describing their powers.

So here some sample pages: The Big Book of Monsters
Where do Saudi Arabia’s Top 1000 Websites hosted?
Small report I worked on to find out the hosting location of Saudi Arabia’s top accessed websites, the aim of this report is to raise the awareness of the lack of Internet hosting in Saudi Arabia, and the slow adoption of Saudi TLD “.sa”.
Short summary only 8.9% of sites are hosted locally, and only 4.9% have “.sa” domain.
My new Arduino kit
I ordered The Ultimate Microcontroller Pack with Arduino UNO, in fact I ordered 2 packs one for me and my 6 years old son, and one for my 13 years old nephew Abdullah.
I am very excited to try all the components, so far I am still with LED and buttons, looking for moving my first servo and of course my first robot 🙂
Arduino and other embedded boards
My list of embedded boards, I hope to keep it updated as I learn more about embedded systems options:
- Arduino: $15, Atmel AVR, microcontroller.
- Pinguino: $24, PIC, microcontroller.
- Netduino: $35, ARM, Microsoft .Net!, Atmel 32-bit microcontroller.
- Raspberry Pi: $25, ARM, Microprocessor, SoC, Good Video (HDMI), Linux.
- Teensy: $16, Amel AVR, Microcontroller, Tiny.
- BeagleBoard: $89, ARM, Ethernet, 2GB MicroSD, Linux.
- mbed: $45, ARM.
Very interesting interview with Monty, MySQL inventor, in FLOSS weekly
Don’t miss the latest episode of FLOSS weekly podcast with Monty the original author of MySQL, to learn why you should consider Maria DB instead of MySQL in your next project, some highlights from the interview:
- He is Finnish not Swedish!! yet another Finnish changing the world!!
- He has 2 daughters My, and Maria, and one son Max … this where “My”SQL, “Maria”DB, “Max”DB names come from.
- Even after selling MySQL for 1 Billion dollar to Sun, he still lives in the same neighborhood.
- Why he created MariaDB, how he feel about MySQL under Oracle
- Still coding, at least 4 hours a day!!
Thanks Randal and Simon for great interview, and thank you Monty for great product.
Bash auto completion heaven
bash completion extends bash’s standard completion behavior to achieve complex command lines with just a few keystrokes. This project was conceived to produce programmable completion routines for the most common Linux/UNIX commands, reducing the amount of typing sysadmins and programmers need to do on a daily basis.
Just install:
sudo aptitude install bash-completion
Great Arduino Tutorial Videos
Great Arduino Tutorials videos from Jeremy Blum, the good ting about Arduino it simplify many aspect of Electrical Engineering and make it easier to play with.
Thanks Jeremy
My new “.sa” domain name
I registered new domain name under “.sa” ccTLD, try it out rr.sa, the registerion was smooth and took less than one hour, registers your now, SaudiNIC. (You have to be Saudi resident)
Loop Unwinding Experiment
Few months ago I read an interesting post by Mike Haertel the original author of GNU grep titled “why GNU grep is fast“, one of the reason given is loop unrolling.
Few weeks ago I came a cross the same post which made me more interested on Loop Unrolling, so I decided to experiment with it, I implemented simple function to search for an item inside a list of items, and return as soon as it finds it, soo here is my result:
Tips for a Faster Website
Last week I presented at Gitex Riyadh in Alriyadh.com booth about ways to improve website speed.
جناح الرياض في جيتكس " اليوم الأول "
Faster file syncing with Redis
The problem
In alriyadh.com most of the site administration take place inside the premises of Alriyadh Newspaper offices, and as you can image the bandwidth dedicated to the website team isn’t that big. This why we designed our system to have two parts, one inside Alriyadh Newspaper internal data center where the local access is very fast, and another part accessible to the public hosted in MeduNet, and we would have a database replication for the website data, and file system replication for the web site images and media.
Configuring IPv6 in your server
Getting IPv6 connectivity to your server isn’t very hard in fact if you have a decent provier you might already have it configured.
Do you have IPv6 already configured?
First try this command
$ ifconfig -a
You will have result like this:
eth0 Link encap:Ethernet HWaddr 00:1e:0b:d6:7b:b8 inet addr:88.85.245.43 Bcast:88.85.245.47 Mask:255.255.255.248 inet6 addr: fe80::21e:bff:fed6:7bb8/64 Scope:Link :he-ipv6 Link encap:IPv6-in-IPv4
inet6 addr: 2001:470:1f08:1160::2/64 Scope:Global inet6 addr: fe80::5855:f52b/64 Scope:Link :lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host :
مينوج ٧ ورحلة اسطنبول
زرت اسطنبول في رحلة عمل قصيرة لحضور مؤتمر “مينوج” مشغلي شبكات الشرق الاوسط
للأسف لم تسنح لي الفرصة لزيارة المدينة بشكل جيد، لكني خرجت بانطباع ايجابي ورغبة في زيارتها سائحاً مرة اخرى، هذه بعض الصور التي التقطتها خلال الزيارة، اضغط على اي منها لرؤية باقي الصور:
My first Git Session
This guide for my own reference please don’t rely on it, for a better introduction check out Git Reference website.
Basic concept and terminologies, Git have 3 logical places:
- Working Area: normal directory where you edit your project.
- Staging Area: Think of the staging as your project state before you start your coding session, after each coding session you add your changes to staging area using
git add filename
orgit add .
- Snapshot Area: After multiple coding sessions you would finish a logical change, e.g. adding commenting system in web site, next you need to store a snapshot of your project after these changes, you would do that with
git commit
Setting the environment:
أين تذهب في لندن
روابط ذات علاقة
مقالة مقتسبة من رسالة بريدية ارسلتها لصديق سألني عن لندن، على الرغم من خبرتي المتواضعة جداً عن المدينة الا اني كتبت عن الاماكن التي اعجبتني واستعنت باحد اصدقائي ساكني لندن لاكمالها، علها تكون مفيدة وتلغي صورة ادجوار رواد التي تظهر لدى الكثيرين عند ذكر لندن.
رحلات الباص
اول نشاط اقوم به عند زيارة اي مدينة هي رحلات الباصات السياحية، فهي تعطي تصور عام للمدينة وعن الاماكن التي تستحق الزيارة في الايام القادمة من الرحلة، كما انها مثالية لالتقاط الصور. غالباً تتوفر تذاكر الرحلات السياحية لمدة 24 ساعة مع امكانية الصعود والنزول من الباص في اي وقت.
وظيفة شاغرة: مشرف محتوى الكتروني
نبحث عن مشرف محتوى الكتروني بالمواصفات التالية:
- شهادة دبلوم ذات علاقة
- سنتين خبرة في اعمال مشابهة
- اجادة اللغة الانجليزية
- اجادة النشر على الانترنت بالتقنيات المختلفة (www,email,PDF,twitter,facebook)
- خبرة في برمجة بتقنيات الانترنت (HTML,PHP,ASP,AJAX,CSS,Javascript)
The joy of bookstores
Whenever I visit a bookstore abroad I get really high from all the books and magazine I see, all types of books with shiny colorful covers, covering all subject serious and silly for all range of ages from childhood to 100, all types of people browsing or even sitting on the floor reading their book flavor of the day. Really get my heart exploding from joy, all I need is more time and money to browse through all of these books and share all the knowledge from reading with all people i love, what a feeling!!
Unfortunately this joy soon disappear with the realization that I came with my family for a few days vacation that soon will end, in fact my return back trip is tomorrow.
What change this joy to sadness is the fact that these experiences can not be felt again for the next year if I am lucky.
Bookstore in Riyadh are merely stationary and electronics stores, and although books cover large portion of the store, they are mostly outdated with no relevance to anyone with interest on reading.
Why do our bookstore are in this state? Is it because most of Saudis can not read English? Or because we have the tendency to hate anything cultural.
The Internet Revealed & What is Internet Exchange?
A short film about about how the Internet work, and what is an Internet Exchange, and why it is very important.
Unfortunately, Saudi Arabia doesn’t have a functioning Internet Exchange yet!!
Thank you Nasser for the video.
MENOG 6 in Riyadh
The Middle East Network Operators Group (MENOG) announced that 6th version of the meeting will take place in Riyadh from 10 to 14 of April 2010.
MENOG is a regional forum offering network engineers and other technical staff the opportunity to share knowledge and experiences, and identify areas for regional cooperation.
MENOG 6 will be include:
- Workshop 10-12 April
- Tutorials 13 April (morning)
- Conference 13 April (afternoon) and 14 April
If you are in the business of Internet operation, or have any interest in Internet at all, don’t miss the opportunity to attend.
Google best Ad ever
This the first time Google seems human, it can be really romantic movie to 🙂
Youtube Page
Error when updating Ubuntu
Lately I migrated all of my server to Ubuntu server, what I really loved about it the easy of updating the system, all I need to is:
$ sudo aptitude update # to update packages meta data
$ sudo aptitude safe-upgrade # to perform the actual upgrade
But sometimes on of the package information meta data files get corrupted, and I will get this error:
$ sudo aptitude update
:
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used.GPG error: http://security.ubuntu.com hardy-security Release: The following signatures were invalid: BADSIG 40976EAF437D05B5 Ubuntu Archive Automatic Signing Key <ftpmaster@ubuntu.com>
اخيراً مقاييس لافياش الكهرب في المملكة
واخيراً وبعد 25 عام من اصدار المواصفات لافياش الكهرب، اعلنت الجمارك انها ستطبق القرار وستمنع الافياش غير المطابقة.
قوابس كهرب 110 فولت:
قوابس كهرب 220 فولت:
تأكد من تركيب القوابس الصحيحة في منزلك، واطلبها في الاجهزة التي تشتريها.
أين تذهب في واشنطن
مواضيع اخرى قد تعجبك:
تحديث: ٨ / ٢٠١٤ قمت بزيارة المدينة واضفت بعض الاماكن الجديدة وحذفت بعض الاماكن التي اغلقت، ولا تبخل بملاحظاتك واماكنك ومطاعمك المفضلة.
احد الاصدقاء سيسافر الى الولايات المتحدة الامريكية وسيقف في واشنطن العاصمة لبضعة ايام فسألني عن المدينة بحكم اني درست فيها في مرحلة الماجستير، اول كلمة قلتها له هي لا تقف فيها، لاعتقادي انه لن يجد الكثير ليراه.
Short Podcasts, how to listen to them?
I own an iPod for more than three years now, and since I am not a music fan it was setting in my drawer doing nothing, the only useful thing I used it for was putting some kids shows for my son to keep him busy during long journeys.
But recently I discovered the wonderful world of Podcasts, and to be honest I got addicted to it, these days you will often see me with my earbuds walking like a zombie.
Study Says US Needs Fewer Science Students
It’s an article of faith: the United States needs more native-born students in science and other technical fields. But a new paper … contradicts the notion of a shrinking supply of native-born talent in the United States. In fact, the supply has actually remained steady over the past 30 years, the researchers conclude, while the highest-performing students in the pipeline are opting out of science and engineering in greater numbers than in the past, suggesting that the threat to American economic competitiveness comes not from inadequate science training in school and college but from a lack of incentives that would make science and technology careers attractive. Cranking out even more science graduates, according to the researchers, does not give corporations any incentive to boost wages for science/tech jobs, which would be one way to retain the highest-performing students.
10% هي ما بقي من الانترنت
لم يتبق من عناوين الانترنت سوى 10% وبعدها لن يتمكن اي مستخدم جديد من الاتصال بعنوان حقيقي.

الحل طبعاً هو التحول الى النسخة السادسة من عناوين الانترنت (IPv6).
عدد من مقدمي خدمة الانترنت اعلنوا بدأهم تقديم الخدمة تجارياً، مثل “بيانات” و"نسمة" وآخرون في الطريق، لكن يبقى السؤال هل لدينا وقت!!!
فريق العمل السعودي لـIPv6 هي مجموعة عمل من مقدمي الخدمة وشركات تقنية المعلومات والقطاعين الحكومي والخاص، دور الفريق هو التأكد من جاهزية جميع الاطراف لنهاية عناوين النسخة القديمة وضمان تحول سلس الى النسخة الجديدة. Saudi Arabia IPv6 Task force
البيت الابيض يحول الى دروبال Drupal
البيت الابيض الموقع الرئيسي للحكومة الامريكية يحول الى دروبال، نظام ادارة المحتوى المفتوح المصدر.
للمزيد من التفاصيل: http://techpresident.com/blog-entry/whitehousegov-goes-drupal
Firefox block Microsoft plugins
Today when I started Firefox on Windows XP, it gave me the following warning:
These plug-ins are installed without user permission, and virtually impossible to disable or uninstall, and it turned out that these plug-ins left the browser open to attack.
More info: Sneaky Microsoft Add-On Put Firefox Users At Risk
صور جديدة لدودي وتالا
صور عند مصورة محترفة، عيالي طالعين هادين ومؤدبين وحلوين وبدون مخوش على غير العادة (قولوا ما شاء الله بس تراهم مهوب كذا في الطبيعة)
Smart phones and netbooks operating system
I compiled a quick and dirty list of smart phone and netbook OS, the list included the OS that I think are relevant. I merged both smart phone and netbooks OSes in the same category, because it seems they can be used on both platforms. Please let me know if you want to include any data worth adding.
Open
Chrome OS
Started: 2009 Company: Google OS Base: Linux Browser: Webkit based (it is Chrome!) http://en.wikipedia.org/wiki/Google_Chrome_OS
FLOSS weekly Linus interview
FLOSS weekly (FLOSS = Free Libre Open Source Software) interview with Linus Torvalds, straight questions and honest and simple answers, I love it.
http://twit.tv/floss88 (56 minutes)
خواطر عن لندن
خواطر سريعة عن زيارتي الاخيرة للندن.
الحبر النظيف
خلال المساء وفي وسط لندن تلاحظ العديد من مراكز توزيع الجرائد المجانية مثل جريدة London Lite، ما اعجبني في هذه الجرائد ليس النموذج المجاني، لاني اعتقد انه يستهلك العديد من المصادر الطبيعية دون تقديم قيمة حقيقية، لكن ما اعجبني هما شيئن، الاول مقاس الجرائد، فالمقاس الصغير او ما يسمى بالتبلويد سهل جداً في التصفح ولا تحتاج الى طاولة 4 في 6 لقرأته، الشئ الثاني وهو الاهم هو نوع الحبر المستخدم، فهو حسب زعمهم وحسب تجربتي لا يلوث الايدي بالحبر، وحقيقة هذه الخاصيتين هي من اكثر الاشياء التي اكرهها في مطبوعاتنا.
بيانات برنامج القرآن
وضعت كل البيانات التي استخدمتها في برنامج القرآن للتحميل، مع معلومات عن كيفية استخدامها.
برنامج القرآن على الويب
منذ ان كنت صغيراً ولدي رغبة بانتاج مجموعة برامج اساسية لكل مستخدم حاسب عربي ومسلم، القائمة كانت تشمل البرامج التالية:
- برنامج للقرآن الكريم مع التفاسير المشهورة.
- برنامج للتقويم الهجري، مع مواقيت الصلاة.
- برنامج قاموس عربي انجليزي، انجليزي عربي.
قمت بعمل برنامج للأذن عام 1997 باستخدام لغة ديلفي، لكن للأسف لم احتفظ بالمصدر ولم ارفعة على نفس الخادم الذي رفعت فيه البرنامج، عموماً كونه المعادلة غير متطابقة مع معادلة مدينة الملك عبدالعزيز والعلوم والتقنية، فان البرنامج ليس له قيمة فعليه كبيرة. صفحة البرنامج القديمة
Presenting at Riyadh Geeks Today

Today at 7:15 pm Riyadh time, I am going to give a presentation titled “Tips for faster websites” in front of Riyadh Geeks group at Bader.
Alriyadh Newspaper covered the meeting and the presentation: http://www.alriyadh.com/2009/08/08/article450749.html
I got many calls and emails from to attend the presentation, which made me bit nervous and worried, thank you all, and see you their.
Update:
We’ve just finished Riyadh Geeks meeting, big audience, thank you all for coming, and special thank to “Riyadh Geeks” for inventing me, and arranging this event.
Why I can’t trust Microsoft
When Microsoft released Bing search engine, I was really impressed, it looks good and the search is good.
But unfortunately Microsoft have a very bad habits of ruining really good products.
When you try to search for Why is Windows so expensive?, the first result you will get is: “Why are Mac’s So Expensive?”
Google Chrome OS
Every time I visit a family I spend considerable time fixing Windows desktop and laptop, I don’t mind helping, but I mind not getting paid by Microsoft!
Windows machines are really hard to maintain, and you will rarely find someone happy with, unless he do the periodic re-installations, plus Windows is really pricey software, Windows 7 pro will cost $199 (home is $80 cheaper), it was acceptable 10 years ago when the computers prices were around $3000, but nowadays it i
TED: Success is a continuous journey
3 minutes presentation:
Richard St. John reminds us that success is not a one-way street, but a constant journey. He uses the story of his business’ rise and fall to illustrate a valuable lesson — when we stop trying, we fail.
TED: Schools kill creativity
I saw this video last year by Sir Ken Robinson, as the title say “schools kill creativity”, watch and tell me what you think.
Very funny and insightful video (20 minutes)
Google Wave: Is What Email Would Look Like If It Were Invented Today
Lengthy but a must see presentation.
Arabic Projects Ideas 3: Open Arabic Stemmer
Nowadays we have many great options to build your own search engines, either for your website, or for you own custom applications. to mention a few:
All of these search engine option works great for English language, and they have decent support for Arabic language thanks to Unicode and UTF-8, but unfortunately they still lack a the power of stemming that you will find in English language.
Arabic Projects Ideas 2: Open Arabic Fonts
If you build Arabic website you must be hit by the hard reality, Arabic web font options are really narrow, the only realistic choices are:
- Tahoma: only good for small sizes.
- Arabic Transparent
- Traditional Arabic
My idea is to buy other quality Arabic fonts and ask browser/OS vendors to include them, we really need more choice to improve the quality of website productions, and add more creativity to our Arabic Internet.
Arabic Projects Ideas 1: Open Um Alqura Calendar
In Saudi Arabia the official calendar is Um Alqura calendar, which is a Hejeri based calendar.
The idea is to buy the royalties of the calculation function (KACST owns it), and open it, and force all software vendors to include it.
Just imagine that your mobile date, match your outlook date, match your favourite website date. Stakeholders:
- Government: KACST, CITC, Yesser, MCIT
- Software vendors: Microsoft, Oracle, SAP, Sun, Apple
- Open Source: Linux, MySQL, Postgresql etc..
- Mobile phones vendors: Nokia, SonyEriccson, Apple, HTC, etc…
- Other electronics vendors: Humax receiver manufacturer.
- Content Providers: Google, Maktoob, Yahoo, MSN, Newspapers, etc..
- Development Languages: Java, .NET, PHP, Python, Perl, etc…
If you have an ideas to improve the initial idea please comment.
MySQL Founder Starts Open Database Alliance, Plans Refactoring
Monty Widenius, the ‘father’ of MySQL, has created the the Open Database Alliance, with the aim of becoming the industry hub for the MySQL open source database. He wants to unify all MySQL-related development and services, providing a potential solution to the fragmentation and uncertainty facing the communities, businesses and technical experts involved with MySQL, following the news of the Oracle acquisition of Sun.
Via: Slashdot
Linux.com relaunched
The new Linux.com relaunched under the management of Linux Foundation.
Riyadh Geeks meeting
I just came from my first meeting, one word awesome 🙂
Thank you guys for arranging such nice event, as usual you meet with many interesting people with great ideas, and a lot of energy.
One thing for sure, it won’t be the last meeting for me.
alriyadh.com ver 6 released
Finally after 2 years of delays alriyadh.com new version is released.
No matter how many test you perform, something will go wrong when you launch the website.
Special thanks to Turki Aljaber, and Malik Alghasab for a really great job building the website.
If you find any problem please let me know.
شعب مُصاب بالشيزوفرينيا!
هي، أو هو: يدخل الشات ليتحاور مع الجنس الآخر
بكل شيء وحول أي شيء. يذهب إلى موقع الأفلام
ليشاهد أحدث الأفلام السينمائية. يدخل إلى منتــداه المفضل ليناقش في كل القضايا السياسية والاجتماعية
بكل جرأة. وعبر اسمه (أو: اسمها) المستعار يبتسم
بمرح ويوزع النكات على الآخرين. وما أن يضغط
على زر إغلاق الكمبيوتر، ويخرج من عالم الانترنت
الافتراضي، إلا وتعود إليه بطريقة آلية: تكشيرته، وخوفه، وشكله التقليدي المحافظ!
كل شعوب الأرض: شكلها الواقعي لا يختلف كثيراً
عن شكلها “الافتراضي” على الإنترنت.. إلا نحن ..
في الواقع شيء، وعلى الإنترنت: شعب افتراضي!!
More information about Google Servers
Have you ever asked your self where does Google buy its servers, Dell, HP, IBM, or Sun?
Unlike everyone in the world, Google don’t buy servers from different vendor they build them!
It doesn’t make sense if you have 100 or 1000 servers, but if what about if you have hundreds of thousands of servers, which is the case for Google.
Actually Google have long time ago stated that they their own server, but the company revealed many new details about its servers, and operation.
The World’s Worst Places to Work: #3 Riyadh
Overall Grade: Very High Risk Location
Severe Problems: Political Violence & Repression, Political & Social Environment
Major Problem: Culture & Recreation Facilities
Other Problems: Housing, Climate, Disease & Sanitation, Education Facilities, Physical Remoteness, CommunicationsNo surprise here. Life in the Saudi capital is not easy. “The possibility of a terrorist attack is an ongoing threat,” according to ORC, “while wide-ranging restrictions on dress, movement, conduct, food, alcohol, travel, and communications limit expatriate life.” The city is especially hard for foreign women. Finally, adds ORC, “violating the country’s strict moral religious codes is a particular danger in this conservative city.”
jQuery tutorial video
jQuery is a lightweight Javascript library, it is very easy to learn, I found this amazing video from Google TechTalk channel on Youtube, don’t be fooled by the presenter age (he is 12 years old) he knows what is he talking about, enjoy!
Ericsson 500Mbps DSL
Ericsson has successfully demonstrated data-transfer speeds of more than 500 megabits per second over copper, the communications company said Monday.
The data-transfer rates were achieved using a version of digital subscriber line (DSL) technology called “vectorized” VDSL2, Ericsson said in a statement. The technology, also called “crosstalk cancellation,” provides the high transmission rates through a twisted pair of copper cables by reducing the noise coming from other pairs in the same cable bundle. VDSL2 has traditionally offered speeds of around 100Mbps.
موقع قيم النسخة الثانية
يوم امس دعاني جهاد العمار الى مؤتمر صحفي نظمة حول اطلاق النسخة الجديدة من موقع قيم، 50% من المؤتمر كان حول التطويرات الجديدة في الموقع والتي من اهمها اضافة خاصية الخرائط، فعلا رائعة!!! وكذلك اعلى مستخدمين (ترتيبي كان قليل 🙁 )
ما اثار اهتمامي اكثر هو الحضور، كان كثير ورائع، كمية الحماس والطاقة الموجودة كانت رائعة. لازم ابداء احضر مثل هذه الاجتماعات.
15 Inspiring Bruce Lee Quotes
My favorite:
- Showing off is the fool’s idea of glory
- Simplicity is the key to brilliance
- A goal is not always meant to be reached, it often serves simply as something to aim at
- If you spend too much time thinking about a thing, you’ll never get it done
Complete 15 @
http://www.junauza.com/2009/03/15-inspiring-bruce-lee-quotes-that.html
بنتي تالا
read morePHP development enviroument, what do you use?
I must confess, I still use HTML-kit for PHP development, the only reason I use it for direct FTP editing, I know I should be ashamed of my self 🙁
The last couple of months I started to look at Subversion version control system, as a secure and professional way to edit your code, so I started shopping for new PHP IDE.
My requirements are:
- Support Arabic
- Support UTF-8
- Support Subversion
So what do you use for PHP development? and what feature is a must?
تذكير ورشة عمل IPv6 غداً الأحد
اذا كان لك اهتمام بالانترنت، والشبكات فيجب ان تحضر. هناك أكثر من عرض يجب على الجميع حضورها.
المكان فندق الشيراتون الرياض، نلقاكم هناك.
12% to the end of the Internet
Mr. Latif Ladid, the president of IPv6 Forum, left a comment on a previous post on my blog with the latest update on IPv4 exhaustion, only 12% of IPv4 address are left, that is 2% in less than 3 months, the new estimate is 769 days.
This this insightful comment:
The IP address space is down to just 12% with 534 M IP addresses or 32 blocks left. see http://www.potaroo.net/tools/ipv4/index.html One of the most obvious and easily quantifiable incentives of the move to IPv6 is the growth and the continuity of the Internet and then the run to the bank for the remaining address space as it will be needed to have a secure dual stack transition which is the most secure transition and will be unfortunately the rich man’s transition. All others will tunnel which is not secure making it the poor man’s transition. Even the transition will aggravate the digital divide between the haves and have-nots in terms of security. The IPv6 Forum knew this problem 10 years ago and pushed ISPs to move earlier to manage a secure transition, but it takes patience and passion to make this happen.
Kudu’s kids meal toy … after 20 minutes
No my son didn’t even try to break, it just break in 4 places in 20 minutes, the worst toy I ever saw. Of course Kudu isn’t the only restaurant with crabby kids toys, Herfy and almost all restaurant in Saudi Arabic.
The only exception is McDonald’s, where kids ask for it just for the toys.
Local restaurants, please improve your toys.
KDE 4.2 Released
For more info: http://www.kde.org/announcements/4.2/index.php
Don’t know what is KDE? check Wikipedia KDE page
Saudi Arabia IPv6 workshop and website
I am currently preparing for Saudi Arabia IPv6 workshop, that we at CITC arranging at 8th of February 2009.
The workshop will have many high profile speakers in the IPv6 field.
You can find more information about the workshop at IPv6 website: www.ipv6.org.sa
Don’t forget to register for the workshop.
P.S. the website is built using Drupal
Network Solutions Under Large-Scale DDoS Attack
I got a DNS failure when I tried to access my website yesterday, I didn’t suspect my ISP because I am using OpenDNS as my name server, so I switched back to SAUDI NET name servers and it worked fine. So I thought it was OpenDNS problem, until I read the news about large-scale DDoS attack on Network Solutions my DNS registrar, where I also host my DNS for rayed.com.
ورشة عمل المحتوى العربي المفتوح

تنظم مدينة الملك عبدالعزيز للعلوم والتقنية في يومي السبت والأحد القادمين ورشة عمل بعنوان “المحتوى العربي المفتوح” وتأتي هذه الورشة لتعزيز مبادرة الملك عبدالله للمحتوى العربي.
شخصياً اعتقد ان انطلاقة اي تطوير للأنترنت يجب ان تبدأ من المحتوى.
نقلاً عن: سوالفي
Qt becomes LGPL

Slashdot:
Qt, the highly polished, well documented, modern GUI toolkit owned by Nokia will be available under the LGPL starting with version 4.5! … [Nokia] want to encourage and stimulate the use of Qt Everywhere. This is fantastic news for all commercial developers looking to create cross-platform applications …
Wikipedia:
Qt is most notably used in KDE, Opera, Google Earth, Skype, Qtopia, Adobe Photoshop Album, VirtualBox and OPIE.
Really good news for KDE project and fans.
Drupal best modules
One of Drupal’s best features is the modular design, the core of Drupal is very small but flexible, and it only implements basic functionality.
The good news is that Drupal already has hundreds of modules to implement any missing feature, you can even build your own module if you didn’t find a module to fulfill your needs.
But having all these choices make finding the appropriate module a really hard job, to help you select the best Drupal modules I found a good list of module at Acquia (a commercial company founded by Drupal inventor Dries Buytaert to provide different services around Drupal).
nginx [Engine X] enters webserver top 5
nginx [Engine X] became the world 4th most popular web server, according to the latest Netcraft survey.
It is an event based web server, which makes really scalable especially for static files, so if you are serving many images, audio files, video, you might consider it.
It can also configured to work as HTTP and mail proxy.
Of course you should look also at Lighttpd [Lighty] which work with the same principle, and I have been using it for around 2 years for alriyadh.com
Selling the Iraq War ! Canadian and Australian Prime Ministers give Exact SAME SPEECH
via: reddit
Al Madina newspaper uses drupal
It seems that Al Madina daily newspaper is using drupal fro their newspaper website, really nice.
FreeBSD has an offical forum

FreeBSD my favorite OS, has an official web based discussion forum:
Congratulations, an good job.
It seems to me FreeBSD is getting easier everyday.
في وطني كن مهايطيا ولا تكن مبدعا
مقال يلخص احد اهم مشاكلنا في هذا الوطن:
في وطني كن مهايطيا ولا تكن مبدعا
احمد، جزاك الله خير، دائماً ما يثلج صدري بمقالتك.
How many IPs do we have left?
Only 14% of IP addresses are left, which is estimated to be used in 811 days which is around 2 years!!

Scientists has found many solutions to delay this problem, including “classless network”, and NAT, which allowed us to use the IP address space more efficiently.
Drupal wins 2008 Best Open Source CMS
Drupal wins 2008 Best Open Source CMS from Packt Publishing
More from
http://www.packtpub.com/article/2008-open-source-cms-award-winner-announced
More from Wikipedia:
Wikipedia switch its infrastructure from RedHat to Ubuntu
It is a bit of old news but thought I would share in case you missed it.
Basically Wikipedia is switching 400 server from Redhat and Fedora mix to Ubuntu server.
Check the details in ComputerWorld article
أفضل رسام كاريكاتير سعودي
الكاريكاتير … قد يكون هو الشئ الوحيد الذي يقرأه السعوديين من اوله الى اخره 🙂
اعترف اني شخصياً احرص على الاطلاع على الكاريكاتيرات اليومية ونادرا ما اقرأ مقالات الكتاب، باستثناء فهد الاحمدي لكون مقالاته ظريفة وخفيفة ولا تجيب النكد.
فنانين الكاريكاتير السعوديون رسامين مبدعين (مثال) وغالباً خفيفين الدم (طبعاً هناك استثنآت)
في ما يلي قائمة بالرسامين المفضلين عندي.
غبار الهجير افضل مسلسل سعودي؟
اعتماداً على تصويت جريدة الرياض فان 92% من المشاركين يرون ان مسلسل “غبار الهجير” هو افضل مسلسل سعودي!!
وكان التنافس محموماً بشكل واضح بين “غبار الهجير” و”غلطة نوف” و”كلنا عيال قرية” على صدارة فئة المسلسلات إلا أن اللحظات الأخيرة وسعت الفارق الكبير بين الأول وبقية منافسيه.
انا في الحقيقة لم اعرف بهذا المسلسل الا من هذا الخبر و لم اسمع احد يتكلم عنه اطلاقاً، لا بمدح ولا بذم، وزالت حيرتي عندما عرفت انه يعرض في قناة المجد.
STC’s new logo?
It seems that Saudi Telecom Company (STC) is going to change its logo, the new logo is all over Riyadh, without any reference to STC, with only the slogan “What good is technology if doesn’t make your life easier (poorly translated)”.

This time STC is using the logo one of the companies STC bought, STC bought 51% of Indonesian GSM operator Natrindo, and AXIS is the brand name used by Natrindo.
Django 1.0 released!
Django team released version 1.0 of the their web application framework, Django is written in Python.
I only tried Django for a week more than one year ago, and it was really amazing, and easy to create web application.
Even if you don’t write in Python I recommend you spend sometime to know it, may be walk through the tutorial. It has many inspiring and brilliant features you definitely need to know before select your next web framework.
The Adventures of Johnny Bunko
A friend recommended that I read “The Adventures of Johnny Bunko”, I read it and I loved it, thought I should share it with others too.
The Adventures of Johnny Bunko is America’s first business book in manga and the last career guide you’ll ever need.
The book, which you can read in an hour, tells the story of Johnny Bunko, a beleaguered Everyman toiling away at the Boggs Corp.
Chrome: Google new web browser
Google is building their own new browser, very interesting features, it has so many advance features that makes you wonder is the next OS GUI going to be a browser.
A post about the “chrome”:
http://blogoscoped.com/archive/2008-09-01-n47.html
Nice comic describing chrome features:
http://blogoscoped.com/google-chrome/
حملة الجمعية السعودية الخيرية لمكافحة السرطان
الجمعية السعودية الخيرية لمكافحة السرطان تقوم بحملة على الانترنت لجمع التبرعات وزيادة الوعي بالجمعية ونشاطاتها.
شاركنا بالتبرع ووضع اعلان الجمعيى في موقعك:
صفحة الاعلان
TED: Ideas worth spreading
TED (Technology Entertainment Design) is an annual conference […] It defines its mission as “ideas worth spreading”, and selected talks given at TED are available free on its website. Its lectures cover a broad set of topics: science, arts, design, politics, culture, business, global issues, technology, and entertainment.
http://en.wikipedia.org/wiki/TED_(conference)
So many inspiring talks (in Video and Audio format), you will find it really hard to keep listening because the inspiration effect is almost instant.
Erlang, or Utility-computing vs. Appliance-computing
Very good read about cloud computing, trust me it worth it.
I strongly believe that cloud computing (or computing as a utility) is the way computing is going to evolve over the next few years/decades.
[t]he two biggest computing-providers of today, Amazon as well as Google, are building their concurrent offerings on top of really concurrent programming languages and systems. Not only because they want to, but because they need to. If you want to build computing into a utility, you need large real-time systems running as efficiently as possible. You need your technology to be able to scale in a similar way as other, comparable utilities or large real-time systems are scaling — utilities like telephony and electricity.
تتبع: خدمة تتبع سيارتك من الاتصالات
تتبع خدمة جديدة من شركة الاتصالات تمكنك من متابعة موقع سيارتك في اي لحظة باستخدم برنامج خاص او جوجل ايرث، يمكنك متابعة مسارها، سرعتها، التحذير عند تجاوز سرعة معينة، او منطقة معينة، او حتى وقت معين.
طبعاً، هذه الخدمة مصيبة على المراهقين اللي بادين يسوقون او يسرقون سيارات اهلهم 🙂 حتى السووايق ما راح يسلمون.
ويبدو ان الخدمة ستكون موجهة للافراد والشركات، واعتقد ان توجيهها للافراد حركة اعلامية من شركة الاتصالات، اما للشركات فاعتقد انها ستكون خدمة ممتازة، خصوصاً شركات تأجير السيارات، وشركات النقل.
Network Timeout!!
Lately I am getting a lot of “Network Timeout” errors, is it my machine or does everybody get this error.
Misfer has a blog
My dear friend Misfer Almaymouni finally got a time to start a blog, and as you expect deep posts, that type of posts you have to read 5 times to understand (and sometimes you don’t 🙂 )
Download Firefox 3 now
In Saudi Arabia download Firefox before 10 pm on Wednesday to help Firefox to set new world record.
Make sure you scan the file before installation, just in case.
شارك فاير فوكس لتسجيل رقم قياسي جديد
يسعى متصفح فاير فوكس Firefox لتسجيل رقم قياسي في موسوعة جينيس لأكثر برنامج تحميل خلال 24 ساعة، واليوم المنتظر هو يوم إصدار النسخة الثالثة، وسوف يكون يوم الثلاثاء القادم 17 يونيو.
يمكنك التسجيل في موقع فاير فوكس لتذكيرك بيوم الإصدار (رجاء لا تستخدم عنوان بريد العمل الرسمي)
http://www.spreadfirefox.com/en-US/worldrecord/
Being poor is …
Being poor is …
Short but heart breaking essay on what is it like to be poor.
فضيحة شواطئنا!
فالدراسات والبحوث التي نفذتها جهات حكومية منها وزارة الصحة ومراكز بحثية أثبتت بداية أن الشواطئ السعودية غير مهيأة للسباحة أو الصيد كونها شديدة التلوث، وأن 4% فقط من الواجهات البحرية للبحر الأحمر متاحة للجميع مقابل 96% مملوكة لأشخاص
قرأتها في موقع نبيل المعجل
لينكس: تبي تحيرة خيرة
تحديث فبراير ٢٠٢٢ :
بعد تغيير سياسة Centos في التحديث، قررت التحويل الى ديبيان توزيعة ديبيان خفيفة ورشيقة مقارنة باوبنتو، ومجانية وتحديثاتها آمنة
تحديث ١٢ اكتوبر ٢٠١٨:
حولت بالكامل لسينوتس CentOS متوافق مع رد هات لكن مجاني.
تحديث ٢٩ اغسطس ٢٠١٣:
حاليا الخيار بالنسبة لي اوضح كثيرا، فهو ينحصر في اوبنتو Ubuntu خصوصا نسخة الخادمات، او سينتوس CentOS اذا احتجت توافقية مع RedHat.
الموضوع الاصلي
من اهم نقاط الضعف في نظام لينكس هي تعدد التوزيعات، مما يخلق حيرة في اختيار التوزيعة المناسبة حتى لدى خبرء يونكس، فعلى الرغم من اني مدمن انظمة يونكس منذ اكثر من عشر سنوات الا اني لا ازال احتار عند العمل مع لينكس، وهذه احد اهم الاسباب التي تجعلني افضل نظام فري بي اس دي (FreeBSD)، حيث لا يوجد سوى نظام تشغيل واحد فقط لا غير، واذا بحثت عن حل مشكلة في فري بي اس دي ستعرف انها سوف تعمل لانه لا يوجد سوى نظام واحد اسمه قري بي اس دي. طبعاً اذا اخترت توزيعة لينكس وبقيت عليها فانك تحصل على نفس الفائدة، لكن يبقى التشتيت مستمراً من قبل التوزيعات الثانية التي يظهر فيها مزايا جديدة من هنا وهناك.
Engineers endangered species?
High-Tech Japanese, Running Out of Engineers
After years of fretting over coming shortages, the country is actually facing a dwindling number of young people entering engineering and technology-related fields.
Universities call it “rikei banare,” or “flight from science.” The decline is growing so drastic that industry has begun advertising campaigns intended to make engineering look sexy and cool, and companies are slowly starting to import foreign workers, or sending jobs to where the engineers are, in Vietnam and India.
تدريب واختبارات “رد هات” لينكس في المملكة
أكاديمية الفيصل العالمية تتحالف مع “رد هات” لتقديم دورات واختبارت “رد هات” لينكس، خبر جداً مفرح لسببين:
- سهولة التدريب على لينكس
- ارتفاع الطلب على انظمة لينكس في السوق السعودي
الرجاء التعليق على الخبر اذا كان يهمك 🙂
http://www.alriyadh.com/2008/05/10/article341420.html
تحديث: موقع الاكاديمية على الانترنت:
اكاديمية الفيصل: رد هات
Alriyadh.com image quality improvements
PHP default resampling method vs “resampling and sharping”;
Move your mouse over the image to see sharp version

Influenced by:
موقع الرياض وجائزة جديدة
في احتفالية كبرى احتضنتها قاعة الفلك في فندق برج العرب بمدينة دبي، حقق موقع “الرياض الإلكتروني” جائزة جديدة ضمن سلسلة الجوائز التي نجح الموقع في كسبها خلال السنوات الماضية، حيث فاز بجائزة أفضل المواقع الإستراتيجية الإعلامية Best Strategic Media and Press Portal على مستوى المواقع العربية متصدرا بذلك ترتيب قائمة أفضل المواقع الإلكترونية لوسائل الإعلام العرب
CSS tutorial site
One of the best CSS tutorial I ever seen:
http://css.maxdesign.com.au/
Step by step explanation of many of CSS concepts.
TIOBE Programming Community Index
TIOBE Programming Community Index
The TIOBE Programming Community index gives an indication of the popularity of programming languages. The index is updated once a month. The ratings are based on the number of skilled engineers world-wide, courses and third party vendors. The popular search engines Google, MSN, Yahoo!, and YouTube are used to calculate the ratings. Observe that the TIOBE index is not about the best programming language or the language in which most lines of code have been written.
Putty Tray: The best SSH client?
PuTTY Tray is an improved version of PuTTY. It features some cosmetic changes, and a number of addons to make it more useful and much more fun to use.
The features that I really like:
- Minimizing to the system tray
- Portability: optionally stores session configuration in files (for example: on a USB drive) like portaPuTTY
- Reconnects when your PC wakes up from stand-by / Attempts to reconnect when the connection fails
The geekiest pants… ever?
More pictures: (http://www.vouspensez.com/2008/04/22/the-geekiest-pants-ever/)
My vacation in Mauritius
www.flickr.com
read more
January 5, 2008
script.aculo.us auto completion made easyI was not a big fan of JavaScript, until new cool technologies emerged that utilize JavaScript in really useful ways, the most impressive of course would be AJAX related functionality. AJAX is really easy to use, put some features are hard to implement which lead to JavaScript libraries emerging every where, the most popular are: I’ve played with Yahoo! UI it was really powerful and have many features, but it was getting complicated by time, the last time I tried to implement auto complete feature it took me a whole day 🙁
November 12, 2005
Saudi NIC new websiteSaudi NIC the organization responsible for registering “.sa” domains updated their website, the new design very clean and fresh. Congratulation. Registering under “.sa” is free, and you can get good names too, so if you have a company please go and register (it is easy). They also register Arabic domain names.
July 9, 2005
Google toolbar now for FirefoxI never liked Google toolbar anyway, but for those who can’t live without it here it is:
June 29, 2005
My new Nokia 6230iI bought a new Nokia 6230i mobile phone after I my old Nokia 6610 was stolen (actually dropped in a cap while he drove me home). The new phone comes with 1.3 Megapixel camera see a sample picture Luckily STC started providing MMS service, which allows me to send emails from mobile phone, so now I can take a picture from mobile phone and email it direclty my flickr account, or I can blog by sending an email to my Blogger email address.
June 26, 2005
SAUDI NET new DSL pricesUnfortunately I don’t have DSL in my area 🙁
May 26, 2005
Firefox essential extensionsHere is my list of essential Firefox extensions:
May 12, 2005
Online Arabic to English dictionaryThanks to ArabEyes project WordList which is an Arabic to English wordlist, I created small web based dictionary application. It is very simple but yet useful application, all you need to do is drag-n-drop the following link into you bookmark toolbar Qamoos To use it you mark any word in your browser, and after clicking the Qamoos Bookmarklet then a popup like this will show with the Arabic meaning for the word.
May 12, 2005
Web based Quran ApplicationLast week I rediscovered ArabEyes which is a web site dedicated for Arabic UNIX software, they host many Arabic projects.
May 4, 2005
ISU opened flickr but with restrictionsAfter closing the great photo site Flickr for couple of weeks, ISU opened the site again but with some restrictions, searching for photos are now blocked.
April 24, 2005
Saudi Radio stuck in the 80sToday I woke up at 5:30am after 12 hours of sleep (I just came from a long 6 hour journey to Bahrain) I took a shower prayed then I went to work around 6:30, I turned on the radio and it was set on one of the Saudi Radio channels, the same music, the same programs, the same songs, it was like the last time I listened to Saudi radio back in 80s when every body stopped listening to radio and start watching satellite channels from other countries.
April 19, 2005
Moved rayed.com email hosting to SAUDI NETFinally I moved my domain rayed.com email hosting to SAUDI NET, the main reason is that old server was very unreliable and was down for 5 days, the old server was very old Compaq PC Pentium III with all disk almost full, it was shared with the great site Fqaqee3.net, Misfer the owner of fqaqee3.net is little busy these days, I hope he could rearrange the server and move it better server.
March 30, 2005
Add Alriyadh newspaper headlines to your websiteAlriyadh newspaper UNOFFICALY releasing new service that allow you to add alriyadh.com headlines into yuor website, it very simple to include, for example if you are interstead in putting “Internet & Communication” into your website put this code into your website:
It will show into your website like this: Of course you can change the section by replacing the file name:
March 20, 2005
Playing with Flickr APIFlickr has really amazing web service API, they support many transports REST, SOAP, and XML-RPC. I had some idea about SOAP, and XML-RPC, and never worked with REST, it turned out as the best and the simplest one of them. All you need is API KEY which is a key you use every time you call a function, it is used by Flickr for statistics, you can get it from here Get a key, it is only one form, and you will get the key instantly.
March 13, 2005
PHP Accelerator is awesomeI have a server with PHPAdsNew installed serving around 20 requests per second serving a really busy web site. Few days ago the admins for that website doubled the number of ads per page, and the server stopped responding most of the day 🙁 I installed PHP Accelerator to make it faster to serve the those ads, but it didn’t help that much, I tried every trick I know to maximize MySQL performance (although it didn’t have any load in the first place) nothing worked.
March 8, 2005
Building a search engineCurrently I am working on a search engine for a large website, the search engine is based on PHP+MySQL. You may wonder why not use LIKE in SQL for searching! Of course LIKE will work with few documents, but how about tens of thousand of documents it would be very slow, since the DBMS would have top scan all reconrds one by one in your database to find the word you are looking for.
February 23, 2005
Car accident updateI got my money back!!
February 8, 2005
I got my Canon digital camera backFinally after two months with the Quershi service center I got my Canon digital camera back.
February 8, 2005
Weve just implemented transparent proxyNow you can use SAUDI NET EasyNet without any proxy settings, we knew that transparent HTTP works fine for a long time, unfortunately we didn’t know that transparent HTTPS could work too, this is why we waited until this time when we saw one of the ISP implemented it 🙁
January 31, 2005
Eezee Net phone numbers working nowSAUDI NET EezeeNet number ( 3 66 00 77 ) is now working and you can start testing now. Remeber it isn’t free as some ISPs prompote, it cost you 3 Riyals per hour, it is free in the sense it doesn’t need any Internet account to to use it. Enjoy it, and tell every body.
January 19, 2005
PostgreSQL 8 releasedMany new improvements but the most important to me is the native support for Windows platform, not that people will start using it in production in Windows, but it will allow more people to use and play with it.
January 13, 2005
PostgreSQL new websitePostgreSQL launched a new good looking website, it look more professional 🙂
December 29, 2004
Eezee Net phone numbersToday EezeeNet phone numbers will be announced for all ISPs, the phone numbers start with 366 instead of 368 announced earlier.
December 27, 2004
My annoying neighborYesterday, at 12:00 am while me and my wife watch TV, the guy living in the apartment above mine start drilling, I start complaining to my wife saying what insensitive neighbor he is. At first I said it won’t take long, few minutes and he will be over, but the noise didn’t stop and it became very annoying.
December 22, 2004
FreeBSD new websiteFreeBSD new website, check it out, but not today it due in 1/1/2005.
December 12, 2004
Riyadh newspaper new web siteCheck it out! Riyadh newspaper has a new domain name www.alriyadh.com, not just this it has new simplified, and cleaner design.
December 7, 2004
Thunderbird 1 releasedThe Internet is safe again 🙂
December 4, 2004
Finally I sent my camera to maintenanceMy digital Canon camera LCD display got very dark, It was very hard to see even in the night, so I decide I should send it before the warranty expires, I went to three stores to find the right store for maintenance, they will sent it to Jeddah, and it will take from 2 to 3 weeks.
November 23, 2004
my.saudi.net.sa tipSAUDI NET portal site has a little anoying box called “New @ MY” this box is mandatory and you can’t remove it or change its location.
November 22, 2004
Dumping Mozilla for Firefox,Thuderbird comboI decide to stop using Mozilla in favour of Firefox, Thuderbird combo.
November 21, 2004
Working after Eid miseryToday is the second day of work after Eid vacation, I hardly got up from my bed today, as you know sleeping hours in Ramdan and Eid is dramatically fliped, I usually sleep after 6 am!! and wake up around 2pm.
November 9, 2004
Eid vacation starting todayWhat are my plans? Going to my uncles farm near O’sheger.
November 8, 2004
FreeBSD 5.3 Releasedand it is now considered STABLE branch of FreeBSD, i.e. it is now ready for prodution.
November 1, 2004
FreeBSD port for PHP supports dynamic extensions (update)Few months ago I wrote about php4-extensions as the way to install other PHP modules, php4-extensions is a meta port which mean it isn’t a real port, it is a port used to install other ports.
October 11, 2004
Came back from Gitex in DubaiMore details to come, I have tons of work to catch on.
September 21, 2004
Mozilla Arabic support improvmentsToday I filled a Mozilla bug report about an old bug on handling Arabic paragraph, in the same day I received a feedback about this bug saying they couldn’t regenerate it on current versions. So I downloaded Firefox Preview Release and it really solved, I love Mozilla 🙂
September 13, 2004
Back from vacation… so tired, I found out that I don’t relax on my vacations, from now on I need to include a relaxation period in all of my vacations.
August 31, 2004
SAUDI NET pool cupThe place:
August 30, 2004
FreeRADIUS version 1 releasedRADIUS is the protocol used for authenticating users, it is used mainly by routers and NASes.
August 21, 2004
Cost of living in RiyadhAccording to this link from CNN the cost of living in Riyadh is ranked #77 out of 144 cities.
August 14, 2004
More spam prevention using SpamhausToday I started using Spamhaus to help prevent spam, I use it now in addition to Spamcop. Here is the code to add in Postfix main.cf file:
August 4, 2004
Serious Security Hole In PuTTYPutty is my favorite SSH client for windows.
August 3, 2004
SMPP client rewritten in PHPToday I ported my Python SMPP client library to PHP, I had to redesign the whole library because the old design was very bad, and with the new design it became very small, and trivial library. Most of my work was on a library to convert between window-1256 charset used by most Arabic computers, to UTF-16 (big endian) used by GSM phones. The new SMPP library supports long and flash messages, you can try it from SAUDI NET Portal.
August 2, 2004
Supporting long, and flash SMSToday Abdullah Aldosari my coworker insisted on working on long SMSs, he kept dreaming of them the last couple of days, so we sat together today, and we figured out how to do it.
July 29, 2004
FreeBSD port for PHP supports dynamic extensionsIn the past when you forget to add a PHP extension in FreeBSD you have to recompile the whole thing, but now PHP port support dynamic extensions, in fact PHP port doesn’t allow you to add any extensions, you have to add these extensions using a separate port.
July 27, 2004
Change PHPMyAdmin to view Arabic on English interfaceI love phpmyadmin, it is a web interface for MySQL DB server, I usually use the English interface, but the problem with English interface that it doesn’t show Arabic string, of course you can change the whole interface to Arabic, but I don’t understand anything from that interface. So I played with PHPMyAdmin code so I can use English interface but using Arabic character set, here is how to do it:
July 24, 2004
MySQL replication is so simpleI just configured my first MySQL replication, it is very simple to configure, few configuration steps and it is done.
July 24, 2004
My wife had a lasik surgeryIt took around 15 minutes, it was little painfull in the first day, her vision is somehow blurry, the doctor says the blur will go away in the next 10 days.
July 18, 2004
More about my car accidentToday the traffic department called me to telling that they found the car with the description I gave, but the color wasn’t silver it was gray! So they called me to change the paper I signed earlier.
July 14, 2004
PHP5 relaeasedWith many amazing new features, is it going to be the defacto scripting language!
July 12, 2004
Amavisd + Spamassassin + ClamAVInstalling amavisd+Spamassassin+clamav Updating ClamAV virus defintation, every hour!: Changing clamav setting to work as vscan user, same as amavisd:
June 30, 2004
Free RHCE practice testThis is a practice exam for RedHat RHCE (Red Hat Certified Engineer Program)
June 30, 2004
Blogger BookmarkletA nice feature from Blogger called bookmaklet, it is a simple link that you drag-and-drop it on your browser link bar, to allow you write a new blog entry related to the current web site you are browsing. Cool!
June 28, 2004
Clam AntiVirus and amavisdAfter installing amavisd you need to edit the confiuration file to change some of the settings: To allow amavisd-new to work with clamav you need to run clamav using the same user:
June 27, 2004
Spamassassin is easyI was planning to install spamassassin+amavisd+clamav on our mail server for a long time, but every time I try to do it, I quit after few tries.
June 22, 2004
BBCArabic RSS newsfeedFinnaly I can remove my old BBC parsing script and replace it with RSS feed. I also found (from BBC links) a nice software for reading RSS called SharpReader, I didn’t try it but it looks cool!
June 22, 2004
Al Arabiya news channel web siteNice! Very clean and works well with Mozilla browser.
June 22, 2004
Remove Spyware from your Window machineIf you use MS Internet Explorer and you have one of the following: Then you diffently need to install Lavasoft AD-Aware, and remove all the ad, and spywares.
June 16, 2004
Car accident updateI went to the traffic department to follow-up on my car accident report, I was told that the guy who hit me came and gave them his insurance -which won’t help since he escaped-, and they told me to go Car dealer (Al Hamza, Sheikh Almared) to get an estimate for the car repair.
June 4, 2004
My car crashed by drunk driverOn my way to my parents home to help my sister with her math exam a drunk driver (I think) hit my car and escaped! I stopped him, and called the cups, they told me to get his car plate and leave him.
May 27, 2004
SAUDI NET increase customers emails to 100MBSAUDI NET got jealous from gmail for providing 1GB of free email service, so SAUDI NET will increase email quota to 100MB, to get SAUDI NET email you need to subscribe to one of SAUDI NET service, either Dialup, or DSL.
May 22, 2004
Installing Fedora Linux on my machineWhat is Fedora? Dual booting howto
May 19, 2004
ISU block blogspot.comISU (Internet Service Unit) is blocking all domains under blogspot.com, blogspot is used by Blogger.com to host its customers blogs.
May 18, 2004
Anyone interested on afkary.netafkary.net domain will expire soon any one interested I can transfer the domain starting now.
May 17, 2004
ssh tunneling = fast browsingA while ago I tried tunneling proxy conection though ssh, you asked why … because ssh have a neat compression feature, it will compress all ssh communication between your client and the ssh server, and by tunneling HTTP proxy trafic through ssh you can speed up HTML page loading time, you can really see the difference.
May 16, 2004
myweb under construction pageMisfer our talented designer designed new Under Construction page, this page will be the default page when the customer create new myweb account.
May 12, 2004
Fouad playing with BloggerTwo days ago I talked with my brother Fouad about Blogger and it features, he couldn’t grasp the concept at first, but he subscribed to it, and played with it, and he created his first weblog.
May 12, 2004
rayed.com points to rayed@mywebI forwarded request to www.rayed.com to http://myweb.saudi.net.sa/rayed, for the following reasons:
May 10, 2004
Blogger.com new interfaceAlthough I liked the old one, but the new is really cool, the colors are great, the interface seems more logical, and they got rid of the HTML frames.
May 9, 2004
I got my GMail.com email accountI forgot to mention this earlier, but one week ago when I logged in to Blogger.com I got an invetation to try Gmail.com service, if you never heared of Gmail before, it is a webmail service provided by google.com and they give 1GB of space.
May 9, 2004
Blogging from EmailBlogger is really very nice service 🙂
May 9, 2004
SAUDI NET website really sucksSAUDI NET web site is really bad, we are trying to replace it since … well forever actually but we couldn’t, the marketing people signed a contract (!!!) with external company to deveploe the website.
May 5, 2004
Dinner at STC executive clubThe weather was nice and we witnesed a lonar eclipse too … unfortunately I forgot to take a picture for the eclipse 🙁
May 2, 2004
Developing news paper siteIt would be very interesting project to do, many ideas in my head but we will see what will comes from it. The worst part that it should be very simple to use, this would be hard to do, but I’ll try my best.
May 2, 2004
I bought new Canon digital cameraI like it a lot, although my pictures (most of them) look blury.
May 2, 2004
SAUDI NET myweb rocksI really like it free web space, no ads, my own name, and fast, yummy!!
April 30, 2004
My first logHello every one, I will write here about my interests, I’ll mainly write about college life, homes, resturants, coffee shops, malls, etc…
April 27, 2004
I got gmail email accountI got an invetation to join beta testing of Google Mail (GMail), when you think that email can’t get better Google surprise you with many inovations.
April 17, 2004
I can’t sleepNothing to say … I am very borde so I thought I would update my website.
July 9, 2003
afkary.netI know it has been long time since the last update to the website, I was very lasy lately. The part were I wasn’t lazy I work in a new site called afkary.net, Afkary means “My Ideas”, no it doesn’t talk about my own ideas, it will be service to allow users to create their own eMagazine, without the need to install any software, just take the sample site, and customize it to your taste.
April 7, 2003
New DesignI got sick from the green design … I don’t like this one a lot, but at least not green!
February 2, 2003
I became HP OpenView Certified Consultant in Network ManagementI passed “HP OpenView Certified Consultant in Network Management exam” today, very long exam, but very useful!
January 9, 2003
I just passed SCDME examI just passed SCDME exam (Sun Certified Data Management Engineer), it was very tough exam.
December 23, 2002
Denmark > Copenhagen > DigiQuantI spent a week in Copenhagen, Denemark.
October 20, 2002
Updated resume onlineNot hunting for a job, but for the sake of updating it.
September 2, 2002
Back to RiyadhSalam again, I am back in Riyadh, I was in vacation for the past month I visited my family in Washington DC, I also visited Naiagra Falls and Montreal in Canada, Anapolis, Baltimore, San Deigo, Las Vegas.
July 27, 2002
I became Sun Certified Network AdministratorFinally, after long delays -due to voucher purchase problems- I passed a Sun Certified Network Administrator exam.
July 6, 2002
My Chat SystemRecently I was developing a Chat system software that can be used from regular browser window, the requirement for the client can be found on almost all browsers, it needs to run JavaScript1 .5+, Java1 .0+, as far I know there are some versions of WindowsXP that don’t have Java at all, of course you can download WindowsXP Java plugin from http://www.sun.com/.
July 1, 2002
Web Server upgradeToday I upgraded the server I am using to Apache1 .3. 26it should fix security hole found on versions older than1 .3.26.
April 23, 2002
SCNA book arrivedLast week I orderer “Solaris 8 Network Adminstrator Certification training guide” to help me preparing for Sun Certified Network Admin (SCNA) exam, It just arrived 🙂 I am planing to take the exam in the 2nd May.
April 6, 2002
Sun Certified System Admin on Solaris8I finished the SCSA second exam, and I passed it 🙂
April 2, 2002
I passed Sun Certified System Admin (SCSA) first examLast thursday I passed SCSA first exam, and I’ll take the second exam this thursday, if I pass it (Inshallah) I’ll be SCSA 🙂
February 13, 2002
Me and my lovely wife in MaldivesHay ,, we are in Maldives, very long journey but it worth it, we traveled from Riyadh at8 , 30to Dubi, we arrived at11 :30, and waited theier till3 :30, then we took another plain to Maldives, but the journey wasn’t over, when we reached Male maldives capital we took small sea plane to Sun Island were we will stay,we have to wait for about1 : 30hour to rise the plane,the sea plane wasn’t bad but we were very tired and we slept on the journey, when we reached Sun Island we had to take a small boat to reach it.
October 13, 2001
Mozilla9 .5Today I converted my browser from Opera to Mozilla9 .5, I was running Opera and Mozilla9 .X for the past couple of weeks, Opera is very fast but sometimes it gives poor view for some web sites, Mozilla is better in viewing web sites, but it is kind of slow, another thing I like with Opera is the tabbed view, all web sites are in the same window, and you tab to switch between them, but now Mozilla9 . 5have this feature, so I converted directly 🙂
October 13, 2001
No news!!Is a good news 🙂
September 4, 2001
Redesign!!I didn’t get any design ideas, so I went back to something similar to what I built, the news section is built from pre downloaded files, which will make the page runs much faster.
June 23, 2001
10 days without any changeThe last few weeks were very busy, My mothere had to return back to Washington DC, and we have to finish many issues here in Riyadh, my brother Hussam went with my mother too, it is his first time in non Arabic country, he was kind of nervous, but I am sure he will enjoy it.
June 13, 2001
New Website, new weblog :)Hi there welcome back to rayed.com, still nothing here, I don’t have many plans yet, the only thing I am planing to do is to make it worth visiting. Category: Life
April 6, 2008
قيم: موقع تقييم المطاعم
اعتقد اننا في حاجة الى المزيد من المواقع التي تزيد من وعي المستهلكين، وتزيد من الضغط على المنتجين (المطاعم في هذه الحالة) لتحسين مستواها. شكراً جهاد العمار على تطوير الموقع 🙂
March 10, 2008
معرض الرياض للكتاب باقي 5 ايامباقي 5 ايام فقط على معرض الرياض الدولي للكتاب، اذا لم تذهب حتى الآن اذهب. المعرض يقام سنوياً ولكن للأسف لم احضره خلال العشر السنوات اللتي مضت (ان لم يكن اكثر)، خلال هذه الفترة لم اكن اقرأ سوى كتب الحاسب الانجليزية، والانترنت طبعاً 🙂 لكن هذه السنة قمت بزيارة المعرض مرتين، مرشحة للزيادة. كان لدي العديد من الاعتقادات عن المعرض وهي ما منعتني من الحضور كل هذه السنين:
بالطبع كل هذه الانطباعات تغيرت بشكل او بآخر، فالكتب العربية ليست مملة، او على الاقل ليس كلها، لكن عليك ان تجد ما ينساب ذوقك، فانا وجدت الكتب الاجتماعية الساخرة، وادب الرحلات مسلية ومفيدة للغاية، حتى انني بدأت اقرأ الروايات الاجنبية المترجمة (الحديثة) مع انها كانت ابعد ما يخطر على بالي.
February 24, 2008
Mozilla Messaging: conquering the enterprise?![]() Mozilla Foundation the people behind Firefox are launching a new Foundation Mozilla Messaging, their objective is to improve how people communicate on the Internet. Of course they will start with my favorite email client Thunderbird :
If Thunderbird improve its collaboration features it will be great contender in the Enterprise Collaboration arena, watch out “Lotus Notes” and “Outlook”.
February 20, 2008
Moving from Nokia to Sony EricssonAfter spending couple of years with Siemens, and 6 years with Nokia, I decided to convert my mobile to SonyEricsson, I switched to SonyEricsson T650i. So far I like it, the OS is fast and so far reliable, the screen is very colorful and smooth, the camera is descent with auto focus feature which I love, and I really loved the design. Need sometime to get used to the back button.
January 29, 2008
My Hong Kong tipsTwo separate friends are visiting Hong Kong soon, they asked for tips about Hong Kong this it what I remembered, hope others find it useful. Overall Hong Kong is very beautiful and modern city, hotel prices are bit high (with the weak dollar everything is), transportation is very good and efficient, the food is good and you can find Halal food in many places but you have to ask for.
January 20, 2008
وداعاً امي منيرةانتقلت إلى رحمة الله جدتي الغالية “منيرة بنت عبد العزيز الزامل”، توفيت يوم أمس قرابة الساعة العاشرة والنصف صباحاً عن عمر يناهز 87 لتلحق بجدي “عبد الرحمن بن عبد العزيز الراشد” رحمة الله عليه بعد 58 سنة، قضت معظمها رحمة الله عليها في تربية أطفالها الستة ثم العناية بأمها رحمة الله عليهما.
January 3, 2008
Moving rayed.com email to GMailI am moving all my emails (except work email) to one single email using my own domain (myname at mydomain), and I am going to use Google Apps service, basically I am getting GMail for my own domain, I even have my own start page and tons of applications. The provided storage is unbeatable, and after Google provided IMAP service, it is really tempting. So guys if you want to contact me please do at myname at mydomain.
January 2, 2008
ماهو ارخص سوبر ماركت في الرياض؟أمانة مدينة الرياض طورت برنامج لقياس تنافسية محلات بيع السلع الاستهلاكية، البرنامج يقارن اسعار مجموعة من السلع الاستهلاكية بين مجموعة محلات. نشر المؤشر وزيارته الدورية يساعد على زيادة المنافسة بين المحلات مما يفيد المستهلك، اللي يبدو انها صاير ملطشة هذي الايام 🙁
December 8, 2007
The Story of StuffThe Story of Stuff is a 20-minute, fast-paced, fact-filled look at the underside of our production and consumption patterns.
November 4, 2007
Pictures of the new 1/2 RiyalWithout any announcement Saudi Arabian Monetary Agency (SAMA) released the new 1/2 Riyal, it replaces the old coin, with special technologically advanced features, like UOO (Use Only Once), and WCAC (Who Cares About Consumers) Old 1/2 Riyal photo:
New currency photo:
Seriously SAMA I am sick of shops handing me a chewing gum instead of 1/2 Riyal, and you have to do something about it, my suggestions (some of them not related to SAMA):
October 30, 2007
Leaving SAUDI NETThis week, I started my new job at CITC, I am leaving STC, I’ve spent the last 6 years working for SAUDI NET and SAUDI DATA. Alhamdu Lelah, the last 6 years were amazing, I learned too many thing, made friends with too many people. Thanks to everyone participated in this great experience, and special thank to Abdullah Aldosari who add the extra spices on it 😉
October 3, 2007
Where to buy computer books in Riyadh?Al Mayman closed Where can I find computer books in Riyadh? any suggestions.
August 26, 2007
Back to RiyadhGuess which countries I have been to during my vacation, my Flickr photos could help: http://www.flickr.com/photos/rayed/
July 20, 2007
Convert videos for iPodMy son Abdullah is addicted to Dora the Explorer cartoons, and since I am planing to travel in the summer I am looking for ways to take his DVDs with me using my iPod. I found this free software that convert videos to iPod ready format, so far it is doing very good job.
July 1, 2007
My brother Khalid got a Wii![]() The last computer game I spent more than 1 hour playing was Crash Bandicoot on Sony play station 1, after this game I lost interest on all computer games, I even started to hate them specially football related game (e.g. Winning Eleven), for some reason I couldn’t train my self to hit the sequence square-square-triangle to do whatever it do in PS. Few months ago I read about Nintendo Wii and it is new revolutionary controller, the Wii remote, it is basically a game controller that you wave in the space and can detect 3D motion. You can use Wii remote as a sword, baseball bat, tennis racquet, human hand, you name it.
June 29, 2007
Wanted!! Cholula hot sauceFew months ago I went to Fuddruckers restaurant, and I ordered grilled chicken salad, I am not a salad guy and the salad tasted bit plane, so I went to the sauce bar and took the most exotic looking sauce, I grabber Cholula hot sauce with its distinct large round wooden cap and tried it with my salad, the flavor was amazing. I even took a picture of the sauce trying to find it in local stores.
June 2, 2007
Fly Sama![]() Two weeks ago I visited Jeddah city for the first time since 1990, yes 17 years since my last visit! I made my flight reservation on Saudi Airlines, and the only return flight I found was on Friday 7am, and since the flight is so early it will ruin my Thursday too, I decided to try the new economical air lines, Sama or Nas. I visited the two sites, and I made my decision on how good the website was.
May 27, 2007
Abdullah Aldosari left SAUDI NETAfter spending 6 years at SAUDI NET, Abdullah Aldosari has left us and joined Mobily. Abdullah was our system architect, with large arsenal of skills talents, we have working very tightly all these years. SAUDI NET sure lost a very valuable team member. Abdullah it has been a pleasure and honor to work with you.
May 4, 2007
Muntaqa the best of Arabic email groups
Muntaqa is a website that collect large number of email groups, e.g. AbuNawaf, and displays them in a single page, people can vote, bookmark, and comment on all emails. In the front page you will get the most popular emails, so you want miss any interesting emails in the Arabic web sphere 🙂 Muntaqa works like Digg, but instead of submitting websites, we automatically submit emails from email groups. A big population of computer users in Arab world (at least in Saudi Arabia) still consider the emails as the only form of publishing in the Internet.
April 23, 2007
IE6 in UbuntuUbuntu Linux is really easy OS with many interesting features, one of the best sites to help you with your Ubuntu experince is Ubuntu Guide, the site has many useful tips on how to do thing in Ubuntu. One of the tips is how to install Internet Explorer under Ubuntu, I saw Fahad AlShenaifi do it, he is our Ubuntu expert since he is using it exclusively for the past year or so.
April 5, 2007
العربية.نت منبر من لايستحقون منبراستغرب على العربية.نت تركيزهم على بعض الاخبار التي لاتستحق ذكر، لكنها تثير الجماهير.
March 9, 2007
Best times to enjoy ٌRiyadhRiyadh is a very big city, with 5.5 Million person sharing it streets, driving in Riyadh can be one of the worst experiences you may ever have.
March 3, 2007
Fahad weblogMy dear Friend Fahad AlShenaifi finally found a time to launch his blog, http://fahadblog.com/wordpress/ The blog in English, and talk about Ubuntu, computer security, and him self. Don’t miss his photo gallery.
January 21, 2007
Unleash the power of RSS, use Google ReaderFew weeks ago I started using Google Reader, and so far it is amazing. Basically you subscribe all your RSS feeds you are interested in Google Reader, and instead of visiting 10 or 20 website, you visit Reader page to get the latest updates. The integration with Firefox is amazing, just click on RSS icon and you can add it directly to Google Reader, very easy. I used to use Thunderbird for a while for RSS, but after I set it up I forgot to use it. The subscription method is bit more complex than Google reader, and lack of a single folder for all of my RSS feeds make it useless.
January 7, 2007
SAMA sending us to the 80sSaudi Arabian Monetary Agency (SAMA) lately is doing a horrible job with SPAN network, SPAN is Saudi Arabia system for paying using your bank card. In the last 4 months, most transactions from local store fails, which force many business and customer to fall back to an older technology, Cash!! I am not used to carrying a lot of cash with me, and rely on my bank card to buy goods.
January 4, 2007
Saudi Arabia is the 8th fattest country on EarthAccording to this website: Does the government know about this? 10) Emirates – 25.9 men/39.9 women
December 5, 2006
Back in Riyadhsince Saturday 3 am, but I just got recovered from the jet lag.
November 14, 2006
On vacation :)I am currently on vacation in Thailand, so far I love it. Really beautiful and clean despite being crowded in some areas. Hopefully I’ll post more about in the coming days. Meanwhile checkout out my photos on Flickr:
November 2, 2006
My DSL is back :)Extremely slow but still DSL. My phone line got off line for more than a month, after that phone worked but with out DSL for another 2 weeks, during this time I only connect using 28K dial up connection, which is really really slow. Update: I upgraded to 512K and it is awesome, it wasn’t slow Windows was downloading tons of updates 🙂
October 28, 2006
Car stolen this time mine!Yesterday I went to Jarir Bookstore between exist 5 and 6, and when I came back to my car I found the passenger glass smashed and all my stuff scattered on the car. Fortunately, I never leave anything in my car, so nothing got stolen, but fixing the damage would cost around 1000 SR. My brother car got stolen 500m from my Jarir Bookstore near Saco, both accidents happened in less than 6 months period!!
October 24, 2006
Firefox 2 and IE 7Recently the 2 most popular browsers IE and Firefox released a new version. Firefox is already a very good product so improving it is very hard 🙂 The most important new feature is the online spell checker which is really lovely. It also has a new theme, I didn’t like that much but it might take some time to get used to. IE 7 in the other hand is really impressive (compared to IE 6 of course), it has tab browsing at last, the theme is really really good, the new font rendering engine is really smooth and clear it feels like a Mac.
October 10, 2006
Things I want to write about but don’t have timeThese days I really don’t have time on the Internet, but I really want to talk about some of these issue in more depth later.
September 16, 2006
My brother car got stolen again!! this time the whole car!!!Few months ago my brother Fouad went to SACO hardware store, unfortunately he forgot his wallet in the car, as soon as he remembered it he went back to the car to find the window broken and all his belongings stolen, including his wallet and his work briefcase, he reported the accident to his bank within few minutes to deactivate his VISA card, but it was too late they thief already purchased 17,000 SR worth of good including laptops and mobile phones, all this happened in less than an hour!!!! Until he is still talking to the bank to return it back.
August 15, 2006
New Thunderbird checklistCheck all IMAP folders:
August 15, 2006
Installing Ubuntu Linux 6.06Today I installed the new Ubuntu 6.06 on my laptop, and I wanted to share my experince. I took me a while to find out how to install it, after I rebooted from CD, and selected Start/Install a live Ubuntu system showed up, I thought I downloaded the live CD version of Ubuntu, but I remember that I raed “Install” during booting, so I rebooted again to try to install the system, same thing happen, I gave up and tried to play with the live CD version, then I found the “Install Ubuntu” icon on the desktop!!
August 12, 2006
Don’t super size me!Yesterday I visited one of my favourite fast food resturants, Herfy, and I order my usual meal “Super Herfy”. It usually cost 15 SR, but when I ordered it he asked me for 17 SR!! then I remembered that some resturants super size your meal without asking, I usually expect this kind of practice from “Hardee’s” and “KFC” not from Herfy. I hate super sizing in general, because they super size the french fries and the drink, and I am not a big fan of both, and the medium serving is more than enough for me. But if you are offering super sizing my burgers this is a different story 🙂
June 10, 2006
Testing Google AdSense ImagesIt has been 4 months since I put Google ads on my site, and so far the result are rediclousy funny, I only earned $4 🙂 , I didn’t expect to get anything at all, and even if I did I doubt that they will send to Saudi Arabia. Today, I noticed an ad that I didn’t like and it appeared very frequently, so I decided to block it, fortunately Google have a mechanisim for that but it will take some time, so I decided to switch from text ads to image ads, and change the location of the banner to better place, and I will wait to see how it will affect my earnings.
June 10, 2006
Thunderbird extension for ArabicThunderbird is a great email client, it has very good support for international languages, and it displays Arabic emails without any problems, the only problem that I face with it is when writing Arabic emails, unfortunately Thunderbird doesn’t have shortcut or button to change the writing direction from left-to-right used by most western languages, to right-to-left used for Arabic. But through the power of extensions you can install this small extension (37K) that will add 2 new buttons in Compose window, one for changing the direction from LTR->RTL, and vice versa.
June 8, 2006
Alriyadh Newspaper world cup vote and winAlriyadh Newspaper is giving away 25 one year subscription, one subscription for each game day in FIFA world cup 2006, all you need to do is to guess the result of each match, of course the more matches you get correct the more chance for you to win, to vote go to alriyadh world cup site http://www.alriyadh.com/worldcup/, and it is absolutely free, no need for 5 SR SMS to subscribe, and if you get the result right you really have good chance to win.
June 7, 2006
Finally I upgraded WordPressToday I had to finish writing some code for Alriyadh Worldcup web site, and I was expecting it to take at least 5 to 6 hours, and it had to be finished today, so I planned all my evening for that coding session Fortunately I finished the job in 2 hours, and I had some extra time in my hand, so I decided to do something I planned to do for very long time, upgrade WordPress, so I sat down and upgrade it from version 1.5 to the latest version, alhamdu lelah the upgrade process was very smoth, althogh some features didn’t work, mainy the rich text editing feature.
May 30, 2006
Alriyadh.com Worldcup 2006 websiteAlriyadh.com launched a new website for covering the FIFA world cup 2006, the website can be found here http://www.alriyadh.com/worldcup. The new site isn’t a regular news website, it is a new web application specifically designed for the world cup, it would be also updated in real time, i.e. you can follow any match events while it is still in play, of course you will still find regular coverage like news, and photos.
May 28, 2006
Greylisting: New weapon to fight SpamLast Tuesday, I enabled Geylisting on SAUDI NET mail servers, and you can see the decrease of spam we are getting (the blue line): The first day of enabling greylisting we got many complaints about delayed emails, but after that all emails flow with delays. To learn more check Greylist @ Wikipedia
May 23, 2006
Alriyadh.com wins ICT Excellence AwardsYesterday, Alriyadh.com awarded the Middle East ICT Excellence Award in the “Print and Electronic Media of the Year (Print)” category from the Middle East Excellence Awards Institute. Alriyadh Newspaper covered the story, and we received a great response from many people, thanks everyone:
Special thanks to Ahmad Alsuwailm for the great coverage.
May 16, 2006
Mac buying update
In another front Apple announced the new MacBook which replaced the iBook, it cost $1099 which is really attractive, but with only 13″ screen, it can be a good gift though.
May 14, 2006
Apple store in Riyadh?Today I went to Apple Store in Riyadh looking for a Mac, I was interested in the 17″ iMac, but after seeing the 20″ iMac the 17″ won’t satisfy me, it was really amazing and looks much prettier in real life. The bad side is the price, the 17″ cost 6500SR ($1730), and the 20″ cost 8400SR ($2240), keep in mind that in the US the 17″ cost $1299 ($430 difference), and the 20″ cost $1699 ($541 difference).
May 12, 2006
Convert to Mac! Is it time?Every few years I think of buying a Mac machine, usually it happens after Apple annonce new cool thing, first the PowerPC CPU which was really amazing back in the 90s, then with Mac OS X being built on top of UNIX, then lately with the introduction of Intel based Macs. Also 6 months ago my friend Misfer bough a PowerBook, and he loves s much. So is it time to convert to Mac, Mac machines are generally more expensive than Windows machines, especially here in Saudi Arabia, and I only know one store that sells Macs.
May 6, 2006
Firefox Google toolbar : uninstall nowI noticed that Firefox takes more than 100MB from my memory, I thought it would cache something and I didn’t get that much thought, specially when it very clever to adjust the cache based on my memory. But yesterday it took 170MB from my notebook 256MB, this huge!! Today I chatted with Abdullah about Firefox memory consumption, and he said it is normal on his machine, Strange! I restarted Firefox on Safemode to see if anything in my settings or extension are wrong. Yeppy! Firefox back to normal in 20MB range.
April 28, 2006
Genius, my favorite mouseA while ago I bought an “Orange” mouse for my parents home, I bought it based on a recommendation from a sales man at “echo” electronic store. I thought optical mouses reached apoint where all mouses are the same, I was wrong. “orange” mouse was very stupid, jumping all the time and it drove my crazy. So when I went to computer complex at Olaya to buy my DSL modem, I decided to buy a mouse for my parents computer, and since I have a good Genius mouse I bought another Genuis mouse for 20SR (Ibought mine for 30SR 3 years ago), and what a difference between the two. Genuis mouse was very wasy moving and no jumping all over the screen, I loved it.
April 26, 2006
DSL access at last :)After three months delay from the inital plan I finally got DSL access. My friend Abdulaziz Alqudhibi offered me NetGear DSL Modem/Router/Access point for really great price but it will take two days to install, but I couldn’t wait so I went to the market and bought a SpeedTouch 585, I hope I won’t regret it
April 14, 2006
الحليفة، مزرعة في وادي
الحليفة هي مزرعة صغيرة اشتراها عمي عبدالعزيز قبل قرابة السنة، وعلى الرغم من صغر المزرعة التي لا يتجاوز مساحتها 5000 متر فانها معروفة لدى الكثير من سكان الوشم.
تقع المزرعة بالقرب من مدينتي “اثيثية” و “مرات”، والمزرعة موجودة داخل احد الاودية، ويحدها من الغرب سد الحليفة. ارجوا ان تستمع بالصور مثلما استمعت انا بزيارتها.
March 19, 2006
Saudi credit cards are uselessIt cost 150SR per year and I never use it in the Kingdom, even abroad I use for reservation only, because the last time I used it to pay for my hotel stay I couldn’t get approval for a rented car because the hotel held more money than the cost of my room, and my credit card limit was reached, so I had to pay double in cash 🙁 To make thing worse, I tried to purchase a product from the Internet using my credit card and they refused to process my credit card most likely because it is Saudi card.
March 15, 2006
1000 Mabrook EyadMy brother Eyad graduated from Aman University. 1000 Mabrook Eyad
March 2, 2006
My new 80GB USB hard diskI love it, I backed up everything Pictures, Movies, PDF books, ISO images, everything you can image, I wounder why I didn’t buy one earlier. My brother in law Turki Almuamer suggests that I should buy one, after his laptop go stolen from Dubai airport with all of his data :(, sorry for your loss Turki, and thank you for the suggestion, and another thanks to Abdullah Aldosari for suggestion on where to buy it.
February 15, 2006
rayed.com the first result in GoogleFinally my website http://rayed.com/ became the first result in Google when searching for “Rayed”: For years and years when you search for my name you will get X-Ray related sites, because the past of the verb “ray” is “rayed”.
February 13, 2006
BBS News script no longer workLong time ago I built a PHP script that fetch and parse Arabic BBC news and format them in Javscript format, this can be used by adding few HTML code in your website. The script located at: http://rayed.com/bbcjs.php3 I stopped the script more than 5 years ago, but until now I found many entries in my log asking for that file, so I decide to take an action, I put the file back but I put a warning message to notify the user that the script is no longer working.
February 4, 2006
Firefox 1.5.0.1 upgradeFew days ago while browsing my favourite websites, a pop-up showed asking me to install Firefox 1.5.0.1 … WOW, I didn’t have to re-download 4.5MB for Firefox again, this really nice feature. It also appears to me that the new version 1.5.0.1 much better than the old one, at least in memory consumption, I like it.
February 3, 2006
Cheese Steak @ Subway
Everyone who know me knows that I love Subway subs, but recently I switched to Quiznos mainly because they toast the sandwiches, yummy my mouth start watering 🙂 But two days ago I got tired from Quiznos so I went back to Subway and I tried the “Cheese Steak”, oh my god, it is really delicious! The worst thing about Subway that you need to know which topping and sauce is good with what, and of course if you get something wrong it could ruin your sandwich.
January 16, 2006
After 8 months of waiting, the Avalon arrivedFinally after 8 months of waiting, and many calls and visits to Abdul Latif Jameel my new Avalon arrived.
January 8, 2006
Photos from Konstanz, GermanyHere are two photos I took today when visiting Konstanz, I forgot my Canon camera so I took these photos with my Nokia phone, surprisingly they look good. Click to enlarge.
January 7, 2006
In Germany nowSo no real updates for a while, it is freezing in here, a lot of pictures in the near future.
December 29, 2005
Finally DSL access :)but after two months 🙁
December 26, 2005
Refresh firefox, and make it fasterToday I tried to install LiveHTTPHeaders extension and I had to kill FireFox in the middle of installation process, so I ended up with half installed extension, I tried to install it again to find out two copies of the same extension one working the other just showing in the list without being able to do anything with it. Then I decided to remove manually, to find out 340M temporary files in the profile directory, so I decided to replace the complete profile, and create new one again.
December 5, 2005
Writing Arabic emails under ThunderbirdThunderbird is my favourite email client, I really love it.
I am sure we will have some short cut in the future, I know there is an extension for supporting “Right to Left” but I guess it is old, and I personally prefer built in support.
December 3, 2005
Exposé for Firefox![]()
November 30, 2005
Firefox 1.5 releasedwith auto update, i.e. you don’t have to reinstall it every time a new version released, it will update it self with small download.
November 24, 2005
I love Thursday morningsThe best time of the week by far is Thursday morning, I usually wake up around 8 am, even when I stay late the night before it, I go out for breakfast at any place quite. Today I went to MyPie restaurant in Olaya, it is a small restaurant that serve Pies of course and sandwiches. I usually take Labna with Tomato, and Meat pies, but today I tried the lever sandwich (very popular in Saudi), and Shakshokah (Scrambled eggs with tomato and onion).
November 23, 2005
Cat in a microwaveThis a very disturbing story, I don’t recommend reading it at all, or at least don’t try to visualize the story. A family left their 3 kids, oldest is 8, at home with the family maid, they were playing in the garden with a small kitten they have, while playing it rained and the kitten got wet, so the kids thought they need to dry her, so they put her in the microwave and they clicked random numbers and started cooking the poor kitten, after few minutes the microwave exploded and the kitten internal part shattered all over the kitchen.
November 23, 2005
My JVC Everio camcorder![]() I wrote a while back about JVC camcorder with hard disk, I bought this camera to shoot my baby life 🙂 I thought I would write small review about it, so here is the good and the bad. The good:
The bad:
November 23, 2005
digg.com vs SlashdotIf you like SlashDot the technical news site, you will love Digg. My first impression of digg is that Digg has more links, and less discussion. The major advantage about Digg is that stories are picked by users not by ad editor, which makes it self maintained site! check Digg FAQ. There is even a dedicated website to compare Digg to Slashdot, and give score to based on how fast they post a news, so far the result Digg 24, Slashdot 14:
November 14, 2005
Abdullah Alrashed
November 9, 2005
ISU block flickr AGAINISU blocked Flickr for the third time in less than a year, I HATE YOU ISU. Please help me to unblock Flickr by filing URL unblocking request. The importance of flickr is that thousands of weblogs and personal websites host their image at flickr, so by blocking flickr they blocked all images from all of these weblogs.
November 9, 2005
Spelling mistakes drive me crazyI am not a “speeling bee champion” -the previous sentence proves it 🙂 -, and I usually don’t care about spelling mistakes of others, but some spelling mistakes drive me crazy. One of the most common in Arabic is: I hope Google would support Arabic in their toolbar spell checker. P.S: If you noticed any spelling mistakes in any of my post please let me know.
October 20, 2005
JVC camcorders with hard diskNo tapes or discs any more! It stores 5 hours of DVD quality movies.
September 10, 2005
The Simpsons in ArabicMBC will broadcast an Arabic version of the Simpons, Mohammed Heaindi will play Homer Simpson, it will broadcast in Ramadan Month.
August 16, 2005
New start pageWhenever I install new machine or a new browser I download one HTML file and make it my home page. This start page contains:
The start page save me a lot of time typing, since it have links of frequently used websites. Give it a try, My Start Page.
July 5, 2005
My wife’s paintingMy wife bought this lovely painting: The painting is by an Iraqi artist -I couldn’t get the name- check other paitings from www.iraqifineart.com
November 22, 2004
Indian food killing meCouple of weeks ago a new Indian restaurant open in Raka Plaza near my home, it is called “Spice”, it looked nice, and the logo was really cool.
November 15, 2004
Social bookmarksBookmarks … store them, categorize them, share them, plus much more… Category: UNIX
April 2, 2008
Linux Kernel Development: How Fast it is Going, Who is Doing It, What They are Doing, and Who is Sponsoring ItNice article about Linux kernel development, the most interesting to me is the section “Why Companies Support Kernel Development”:
March 23, 2008
UNIX Toolbox![]() One of the best cheat sheet / reference on UNIX and Linux:
February 28, 2008
FreeBSD 7![]() FreeBSD 7 is available, many new improvements performance and feature wise, check the announcement. One of the most impressive improvements is SMP (Symmetric multiprocessing):
February 24, 2008
Mozilla Messaging: conquering the enterprise?![]() Mozilla Foundation the people behind Firefox are launching a new Foundation Mozilla Messaging, their objective is to improve how people communicate on the Internet. Of course they will start with my favorite email client Thunderbird :
If Thunderbird improve its collaboration features it will be great contender in the Enterprise Collaboration arena, watch out “Lotus Notes” and “Outlook”.
February 14, 2008
Drupal 6 released![]() Drupal the open source content management system has a new fresh release Drupal 6. Update: It seems CCK and VIEWS aren’t compatible with Drupal 6 yet, does anyone use Drupal without CCK and VIEW?
December 30, 2007
Learning Drupal![]() Every Eid vacation I end up with an extra free time, I usually use it to learn new stuff, the latest vacation I decided to learn Drupal. Drupal is a Content management system (CMS), it is basically a software to help you manage your content. Drupal is a modular and customizable CMS, you can use it to build different types of web sites, a Blog, company or organization web site, community website, you name it.
June 25, 2007
Moved to a new serverrayed.com to new server with upgraded softwares:
June 10, 2007
Linux vs FreeBSD kernel rebuildFor the past couple of week, I am trying to refresh my Linux skills, I abandoned Linux as the server platform of choice in favor of FreeBSD, but recently unfortunately FreeBSD isn’t supported as Linux, and sometimes Linux have this weired feature that isn’t available in FreeBSD, e.g. DRDB. I am big FreeBSD fan, and I loved it even more when I worked with Linux, Ubuntu, the Linux distribution I use, is really impressive as a desktop OS, but if you want to hack the system, and play with its internal it doesn’t give much room, and this the exact reason I switched from Windows to Linux 10 years ago.
May 28, 2007
Shrinking Vista Partion (to install Ubuntu :))Control Panel -> System and Maintenance -> Administrative Tools -> Computer Management Chose Storage. Then chose Disk Management. And now you can play with the partition sizes.
April 23, 2007
IE6 in UbuntuUbuntu Linux is really easy OS with many interesting features, one of the best sites to help you with your Ubuntu experince is Ubuntu Guide, the site has many useful tips on how to do thing in Ubuntu. One of the tips is how to install Internet Explorer under Ubuntu, I saw Fahad AlShenaifi do it, he is our Ubuntu expert since he is using it exclusively for the past year or so.
April 13, 2007
CentOS the free RedHat, Version 5.0 released
April 13, 2007
Dovecot 1.0.0 released (Mail Server)Dovecot version 1.0.0 finally released, after almost 5 years of development. Dovecot is IMAP and POP3 server, it is one of the best and easiest servers I ever worked with, easy enough for home environment, and flexible and powerful enough for service providers. I’ve tested it earlier before and hopefully we will migrate to it later this year. Dovecot integrate very well with Postfix mail server (Postfix handle SMTP, Dovecot handle POP3+IMAP), and can easily support virtual hosting.
April 3, 2007
lighttpd enters the Top 5Lighttpd web server is becoming major player in the web server space, according to Netcraft Lighttpd is the 4th most popular web server on the net, and it is moving fast!
February 9, 2007
CakePHP under LighttpdAfter moving alriyadh.com to Lighttpd I had some problem making a CakePHP application I wrote to work properly. I searched the net for a solution and I found this post, but unfortunately the solution they proposed didn’t work, I spent several hours trying to make it work until I gave up, I decide to do it from scratch and luckily it worked. The mod_rewrite rules I used in lighttpd.conf file:
February 4, 2007
alriyadh.com moved to lighttpdAlriyadh.com website is now served by Lighttpd (aka Lighty). I moved all static content from Apache to Lighty, Lighty “select” based design makes it ideal for I/O bound operation, i.e. disk and network operations. For this reason Lighty move all CPU bound operations to external process and communicate with them using FastCGI protocol. This is what delayed my migration to Lighty, because I used to compile PHP with mod_php only and with FastCGI support, so I have to recompile PHP to enable it. Of course I spent few days testing, and I am still having some areas not covered completely.
January 16, 2007
Lighttpd powers Saudi Arabia most <del>popular</del> unpopular websiteSince we migrated Saudi Arabia international lines from ISU to us, we started to host the most unpopular web page in the kingdom, Internet Block Page.
January 15, 2007
FreeBSD 6.2 releasedFreeBSD my favorite operating system has new version 6.2. The new version has many features, the most intersting (for me at least):
If you never used FreeBSD invest sometime on it, and I guarantee that you will fall in love with it 🙂
January 1, 2007
XCache new PHP optimizerXCache is relatively new PHP code optimizer, written by “Jan Kneschke” the same guy who wrote Lighttpd web server. After migrating Alriyadh.com to the new dual CPU servers, I had problems with APC PHP optimizer and locking, so I disabled the optimizer altogether, after all the CPU was very fast and it handled the load without any problems. But lately with my increasing interest on Lighttpd I noticed XCache, I never heard of it before but after reading the web site, and the problem APC have with multi processors I decided to give XCache a try, and the best of all it was ready in FreeBSD ports, so I installed it and so far it doing a good job.
October 24, 2006
Firefox 2 and IE 7Recently the 2 most popular browsers IE and Firefox released a new version. Firefox is already a very good product so improving it is very hard 🙂 The most important new feature is the online spell checker which is really lovely. It also has a new theme, I didn’t like that much but it might take some time to get used to. IE 7 in the other hand is really impressive (compared to IE 6 of course), it has tab browsing at last, the theme is really really good, the new font rendering engine is really smooth and clear it feels like a Mac.
October 17, 2006
Java what to learnEvery year or so I have a project in Java I learn enough thing to finish the project then I forget it by getting busy in other proejcts. Java what to learn:
October 13, 2006
Java Package for FreeBSD
Fortunately FreeBSD Foundation has binary package for Java, all you need is to Download and install using:
and you are done. With Java on FreeBSD may be I will start playing with Lucene instead of Swish-e as Alriyadh search engine.
October 10, 2006
Things I want to write about but don’t have timeThese days I really don’t have time on the Internet, but I really want to talk about some of these issue in more depth later.
August 19, 2006
Virtual FTP accounts with Pure-FTPd and MySQLPure-FTPd is a FTP server with many features that enable you to host virtual accounts, these are the features that I loved and tested:
Installation (FreeBSD)
August 15, 2006
New Thunderbird checklistCheck all IMAP folders:
August 15, 2006
Installing Ubuntu Linux 6.06Today I installed the new Ubuntu 6.06 on my laptop, and I wanted to share my experince. I took me a while to find out how to install it, after I rebooted from CD, and selected Start/Install a live Ubuntu system showed up, I thought I downloaded the live CD version of Ubuntu, but I remember that I raed “Install” during booting, so I rebooted again to try to install the system, same thing happen, I gave up and tried to play with the live CD version, then I found the “Install Ubuntu” icon on the desktop!!
August 10, 2006
Cricket extensionsCricket Cricket is trend monitoring software, it allows you to monitor trend for any device you want. I wrote 2 extensions for Cricket to monitor Lighttpd web server, and Memecached caching server. Lighttpd web server “lighttpd (also called “Lighty”) is a web server which is designed to be secure, fast, standards-compliant, and flexible while being optimized for speed-critical environments. Its low memory footprint (compared to other web servers), light CPU load and its speed goals make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from dynamic content. lighttpd is free software / open source, and is distributed under the BSD license.” Wikipedia
August 10, 2006
lighttpd the new webserver in townFor the past 9 years I used Apache Web Server exclusively, Apache is very stable and feature rich web server. The only downsize is consuming a lot of computer resources, Apache is a multi-processes server which mean you will find many Apache process running in your system and if we say that each process cosume 2MB of RAM and you have 5 Apache processes running this mean it needs 10MB of RAM.
July 7, 2006
Mac experience so farThe Bad
The Good
June 26, 2006
Python 2.5 Beta, and new Python websitePython, my favorite computer language (althought I don’t use it that often) released 2.5 beta version. What amazed me that their website is now changed with new look, and Python has a new logo too.
June 20, 2006
Optimizing MySQLThe last 3 days we were facing many problems with Alriyadh.com web server, the server suddenly get very slow, and all requests times out. It took me very long time to identify the problem, I tried many things and every time I think it will solve the problem completely, but after few hours the problem appear again and he server start to crawl.
June 17, 2006
JEdit the ultimate editor!A year ago Waleed Alzuhair asked me about the reason I am still using Windows-1256 Arabic character set, intead of the new standard Unicode. My reason was the lack of good editor that support Arabic and Unicode, my favourite eidtor HTML-Kit doesn’t have any support for Unicode. But lately while looking for an editor for Mac OS I found JEdit, it is a Java based editor which means it will work with any OS, it supports many charachter sets including Unicode UTF-8, another intersting feature is its support (through a plugin) of remote editing using both FTP, and SFTP (HTML-Kit doesn’t support SFTP).
June 14, 2006
SAUDI NET needs fresh graduatesSAUDI NET is hiring and we are looking for fresh graduates in CS/IS, we have very large expansions that will give you many great chances to work with different technologies. SAUDI NET is part of Saudi Telecom Company (STC) so you will get all the STC employees benefits. If you are intersted send me your resume at (rayed at saudi.net.sa)
June 10, 2006
Thunderbird extension for ArabicThunderbird is a great email client, it has very good support for international languages, and it displays Arabic emails without any problems, the only problem that I face with it is when writing Arabic emails, unfortunately Thunderbird doesn’t have shortcut or button to change the writing direction from left-to-right used by most western languages, to right-to-left used for Arabic. But through the power of extensions you can install this small extension (37K) that will add 2 new buttons in Compose window, one for changing the direction from LTR->RTL, and vice versa.
May 28, 2006
My MAC OS downloadsUntil now my downloads are basically similar to Windows counter part:
any thing else I should look at.
May 28, 2006
Greylisting: New weapon to fight SpamLast Tuesday, I enabled Geylisting on SAUDI NET mail servers, and you can see the decrease of spam we are getting (the blue line): The first day of enabling greylisting we got many complaints about delayed emails, but after that all emails flow with delays. To learn more check Greylist @ Wikipedia
May 23, 2006
Alriyadh.com wins ICT Excellence AwardsYesterday, Alriyadh.com awarded the Middle East ICT Excellence Award in the “Print and Electronic Media of the Year (Print)” category from the Middle East Excellence Awards Institute. Alriyadh Newspaper covered the story, and we received a great response from many people, thanks everyone:
Special thanks to Ahmad Alsuwailm for the great coverage.
May 12, 2006
Convert to Mac! Is it time?Every few years I think of buying a Mac machine, usually it happens after Apple annonce new cool thing, first the PowerPC CPU which was really amazing back in the 90s, then with Mac OS X being built on top of UNIX, then lately with the introduction of Intel based Macs. Also 6 months ago my friend Misfer bough a PowerBook, and he loves s much. So is it time to convert to Mac, Mac machines are generally more expensive than Windows machines, especially here in Saudi Arabia, and I only know one store that sells Macs.
May 9, 2006
FreeBSD 6.1 releasedFreeBSD my favorite operating system released version 6.1, they finally put the new logo. For more information about FreeBSD checkout FreeBSD@WikiPedia
March 31, 2006
PHP output compressionPHP 4.0.5 and above added new feature to compress your PHP pages on the fly, all you need is the zlib extension, this how I configured it. Alriyadh.com front page size dropped from 20.5 K to 5.6 K, according to my tests almost 50% of browser don’t support compression, IE for instance turn off gzip compression support if you have bad firewalls (Zone Alarm), and even some IE extensions (specially ad wares) turn off the compression.
March 30, 2006
Caching: memcached vs MySQLSeveral month ago I researched caching methods to use with Alriyadh.com, it was essential because we used old and slow hardware. The result of my test showed that MySQL based caching was superior to memcached caching. I did a new benchmark comparing MySQL, PHP memcache extension, and PHP memcache class. The text is done by fetching the result of a complex query 1000 times, and calculated the time it took using my bechmark library (link dead!), times in seconds:
March 15, 2006
Alriyadh.com migration finishedToday alriyadh.com main website migrated to FreeBSD, now the complete website runs on FreeBSD on HP servers.
March 13, 2006
Alriyadh.com ads server migrated to FreeBSDThe ads appear now as if they are local images, awesome 🙂 You will notice that the maximum CPU utlization is 29% at around 7:30 am, at this time the old server would hit 100% CPU utlization. The 29% is before enabling APC (Alternative PHP Cache) which replaced PHPAccelerator I used with the old server, you can see a major drop in CPU utilization after enabling it.
February 26, 2006
My tiny contribution to ClamAVClamAV is an open source Anti Virus software for UNIX systems, we use it here in SAUDI NET to stop Virus in email message it stops thousands of viruses everyday, I also use it in our personal hosting service that we provide for our customers, unfortunately some customers upload virus intentionally and unintentionally, so I installed ClamAV to scan and delete viruses. Last week I noticed one of our trouble making customers uploading sospious files, I ran “clamscan” on the user directory but it didn’t detect it, when I tried to download it my PC anti-virus software “MicroTrend” stopped the download warning me about the Virus. So I went home and downloaded it again and scanned it using Norton AV, it didn’t detect it either!
February 26, 2006
“The Complete FreeBSD” book in PDF formatFreeBSD is my operating system of choice, for many reasons, one of them is the great documentation, all you need to know about FreeBSD you can find in FreeBSD handbook. Thank you Mr. Greg
February 23, 2006
“Unfair” Apache performance comparisonTo find out how fast our new servers are I run a small test using ab Apache HTTP server benchmarking tool. I’ll send 10,000 requests using 10 simultaneous processes, I run the same test on both old and new server: Old Server
New Server
This mean that the new server is 20 times faster than the old server, the test is really unfair because the old server is running on production and serving other requests. I’ll repeat the same test after migration to see the real numbers.
February 23, 2006
alriyadh.com migration statusAlriyadh.com is hosted at MeduNet, they unpacked the servers on the lab for now, and hopefully they will prepare the racks and install the servers next week.
February 23, 2006
rsync tipsrsync is a really smart file transfer tool, when you want to move a large directory from machine to machine it is the best tool you can use. The tool utilise ssh protocol (among others) to transfer files, this is a sample command:
The above command will copy the directory /some/dir from host_1 to host_2, the smart thing about rsync that it check what files are already copied so it won’t copy them again.
February 22, 2006
alriyadh.com migrating from Solaris to FreeBSDalriyadh.com new servers arrived, we are upgrading from 4 Sun Solaris machines to 3 HP machines with FreeBSD, the machines specification as follow:
The servers should be in production next week, you should notice significant performance improvements Insha Allah.
January 21, 2006
Fastest CVS UP serverFreeBSD use a protocol called CVS to update its source code, it is also use it to upgrade FreeBSD ports.
December 27, 2005
alriyadh.com first DDoSWe had today a major DDoS attack (Distributed Denial of Service), we get thousands of concurrent connection from all over the globe. It took us a while to figure out the problem, the attack still active but hopefully we managed to take the site online again for Saudi Arabia users.
December 26, 2005
Refresh firefox, and make it fasterToday I tried to install LiveHTTPHeaders extension and I had to kill FireFox in the middle of installation process, so I ended up with half installed extension, I tried to install it again to find out two copies of the same extension one working the other just showing in the list without being able to do anything with it. Then I decided to remove manually, to find out 340M temporary files in the profile directory, so I decided to replace the complete profile, and create new one again.
November 18, 2005
PostgreSQL included in Solaris 10Sun microsystem will include PostgreSQL open source database with every copy of Solaris 10, with 24/7 support also 🙂
November 13, 2005
PostgreSQL and PHP (on Windows)After installing PostgreSQL (15 minutes job), and playing with pgAdminIII, I decided to try it with PHP.
November 12, 2005
PostgreSQL on windowsLast weekend I decided to try PostgreSQL on Windows, I download PostgreSQL 8.1 installation file from PostgreSQL website, it was 22Mg zip file. I also downloaded the 12 Mg manual, which contains everything about Postgres. The installation is straight forward, simple wizard with some clicks and everything is installed and Postgres is running. Postgres comes with two clients:
pgAdmin (see the screen shot) looks amazing and gives you access to all parts of the database, and you can connect to multiple databases. I got intimidated at first when I saw all the options in pgAdminIII but after looking carefully at them it isn’t that scary 🙂
November 8, 2005
PostgreSQL 8.1 releasedPostgreSQL (Wikipedia) 8.1 released, check What’s new in 8.1 document. For some reason I love PostgreSQL althought I never really used it before, I am very happy with MySQL but I really would love to use PostgreSQL, for me MySQL excel in 3 areas:
November 5, 2005
FreeBSD 6.0 releasedMy web server is running FreeBSD 5.3 for the past 100 days without any problems. But 5.X isn’t as and fast as 4.X series, hope this will change with the new 6.0 release. Some major improvment over 5.4:
Slashdot covered the story, and most of the feedback from FreeBSD 6.0 beta users was positive:
November 2, 2005
New FreeBSD logoFreeBSD the amazing Operating System running this site got a new logo:
October 6, 2005
FreeBSD new websiteFreeBSD finally updated the website. I wrote about the new website 10 months ago, I guess it took more than they expected 😉
August 19, 2005
Tip on installing graphic support for PHP in FreeBSDGD is a graphic library that enable PHP to manipulate images, to install it from FreeBSD port us: # cd /usr/ports/graphics/php4-gd # make -DWITHOUT_X11 install The tip is to use WITHOUT_X11 option this will save you from compiling X Windows which is needed for some of GD supported formats.
August 7, 2005
Caching method comparedI tested different types of caching, here is my times:
Altought File caching is much faster that the other two methods, it can suffer from file locking problems, and can’t be shared between more than one server. memcached client used is written in PHP which will slow it down a little bit. So MySQL seems the ideal choice 😉
July 17, 2005
Saudi Ubuntu Yahoo GroupOsama Aldosary started a Saudi Ubuntu email group at Yahoo Groups, join us! ![]() Click to join subuntu
July 11, 2005
My Sun Certified System Admin notesIt is little old but I found it useful from time to time. My Notes
July 11, 2005
no-wwwI removed www from my site name, so from now on it is only http://rayed.com/, www.rayed.com will be still acceptable but will be redirect to rayed.com. <VirtualHost *> ServerName www.rayed.com Redirect permanent / http://rayed.com/ </VirtualHost>
July 11, 2005
FigletFIGlet is a program for making large letters out of ordinary text, it mainly for UNIX but you can find other versions for other OSes. _ _ __ __ _ _ _ ___ __| | ___ ___ _ __ ___ | '__/ _` | | | |/ _ \/ _` | / __/ _ \| '_ ` _ \ | | | (_| | |_| | __/ (_| || (_| (_) | | | | | | |_| \__,_|\__, |\___|\__,_(_)___\___/|_| |_| |_| |___/
July 9, 2005
Ubuntu Linux?Lately I raed (and heared) a lot of good things about Ubuntu Linux, my understanding is that Ubuntu is a user friendly Debian (I am sure it is more than that). My friend Osama Aldosari gave me a copy of Ubuntu CD, and made think of installing it on my laptop, more to come one the experince. Read more about Ubuntu at Wikipedia
May 26, 2005
Interanet searching with Swish-eSwish-e (Simple Web Indexing System for Humans – Enhanced) is really nice small program that index almost anything, I am playing with it at the moment and I am thinking of dumping my own search engine and replace it with Swish-e. Swish has many features but the one feature that stroke me is the speed:
November 28, 2004
Enabling FreeBSD firewallNow with the new FreeBSD releases you don’t have to recompile the kernel to add firewall support (which is easy but take sometime), now firewall module can be loaded as a kernel module, with a simple command like: But be careful the default behaviour is to block everything, you need to open the connection you need manually using a command like:
June 17, 2002
Sun Certified System Admin NotesWhile preparing for SCSA exams I wrote some notes, not very useful for study, but might be useful for quick reference. Category: Blog
March 31, 2008
Upgraded to WordPress 2.5I’ve just upgraded my Blogging software to WordPress latest version 2.5 Since I skipped a version I noticed huge improvements, tags, widgets, new dashboard, new interfaces, more info in this post WordPress 2.5
December 30, 2007
Learning Drupal![]() Every Eid vacation I end up with an extra free time, I usually use it to learn new stuff, the latest vacation I decided to learn Drupal. Drupal is a Content management system (CMS), it is basically a software to help you manage your content. Drupal is a modular and customizable CMS, you can use it to build different types of web sites, a Blog, company or organization web site, community website, you name it.
June 25, 2007
Moved to a new serverrayed.com to new server with upgraded softwares:
May 4, 2007
Muntaqa the best of Arabic email groups
Muntaqa is a website that collect large number of email groups, e.g. AbuNawaf, and displays them in a single page, people can vote, bookmark, and comment on all emails. In the front page you will get the most popular emails, so you want miss any interesting emails in the Arabic web sphere 🙂 Muntaqa works like Digg, but instead of submitting websites, we automatically submit emails from email groups. A big population of computer users in Arab world (at least in Saudi Arabia) still consider the emails as the only form of publishing in the Internet.
April 6, 2007
WordPress 2.1 as CMSOn of the cool new features of WordPress 2.1 is “Front Page” options it allows you to make WordPress front page a static page instead of showing latest post.
April 6, 2007
Supporting right to left writing (for Arabic) in WordPressUPDATE: I found an easier way to do the same thing Check it out In my blog I write in both languages English and Arabic, but I have to switch text direction from the template default English direction “Left to Right” to Arabic “Right to Left”. One way do to it is to add HTML tags in each Arabic entry. Another way to do it is to utilize WordPress “Custom Fields” feature, WordPress allows you to add custom fields to any entry, so I add a new custom field to my Arabic entries, the key will be “wp_direction” and the value will be “rtl”.
March 3, 2007
Fahad weblogMy dear Friend Fahad AlShenaifi finally found a time to launch his blog, http://fahadblog.com/wordpress/ The blog in English, and talk about Ubuntu, computer security, and him self. Don’t miss his photo gallery.
February 5, 2007
Improving thumbnails qualityInpired by Flickr’s Dirty Little Secret post, about how Flickr thumbnails make the photo prettier than the original photo. The article suggest that Flick sharpen the image before it resize it. So I did my own test, this the result and you are the judge:
Image 1, normal resize. Image 2, sharpen before resize. ![]() ![]() Sharpened and saturated +100: ![]() All I need to know is how to do it from inside PHP.
January 21, 2007
Unleash the power of RSS, use Google ReaderFew weeks ago I started using Google Reader, and so far it is amazing. Basically you subscribe all your RSS feeds you are interested in Google Reader, and instead of visiting 10 or 20 website, you visit Reader page to get the latest updates. The integration with Firefox is amazing, just click on RSS icon and you can add it directly to Google Reader, very easy. I used to use Thunderbird for a while for RSS, but after I set it up I forgot to use it. The subscription method is bit more complex than Google reader, and lack of a single folder for all of my RSS feeds make it useless.
October 31, 2006
WordPress spam proctection: Akismet Out, CaptCha! InSince I upgraded my WordPress to version 2 I used Akismet to protect my from comment spam, it did a great job for a while but lately it passes a lot of spam, I am not sure what is the problem but I am suspecting some network problems. So until I resolve this problem I’ll try using CaptCha! plug-in, it uses captcha method to prevent spamming. ![]() Captcha works as follow, when you want to submit a comment, the website displays an image with few characters shown in wave shapes, and you requested to type the character you see to accept your comment, the idea is to prevent automatic script from submitting comment because they can not read the character in the screen, even if they used OCR it would be very hard to recognize it.
August 25, 2006
Implementing Pingback in alriyadh.com
Implementing Pingback feature is very easy, you need to add the following code to your template: This code will make other blogging software notify your software that it is linking to it, It do this by sending “pingback.ping” XML-RPC request to the given URL, when you get the notification you can add it to the database, email it, or do what ever you want with it.
June 10, 2006
Testing Google AdSense ImagesIt has been 4 months since I put Google ads on my site, and so far the result are rediclousy funny, I only earned $4 🙂 , I didn’t expect to get anything at all, and even if I did I doubt that they will send to Saudi Arabia. Today, I noticed an ad that I didn’t like and it appeared very frequently, so I decided to block it, fortunately Google have a mechanisim for that but it will take some time, so I decided to switch from text ads to image ads, and change the location of the banner to better place, and I will wait to see how it will affect my earnings.
June 8, 2006
WP1 & WP2 spam filteringWhile upgrading WordPress to version 2, I backed up my database and I noticed that the comments table size is around 1.7MB which is huge, I don’t have that many comments. I find out that WordPress don’t delete comments even if they were marked spam, so I deleted them manually, so go check your comments table and save some space. WP1 Spam detection:
June 7, 2006
Finally I upgraded WordPressToday I had to finish writing some code for Alriyadh Worldcup web site, and I was expecting it to take at least 5 to 6 hours, and it had to be finished today, so I planned all my evening for that coding session Fortunately I finished the job in 2 hours, and I had some extra time in my hand, so I decided to do something I planned to do for very long time, upgrade WordPress, so I sat down and upgrade it from version 1.5 to the latest version, alhamdu lelah the upgrade process was very smoth, althogh some features didn’t work, mainy the rich text editing feature.
April 9, 2006
New theme PaintedDesertToday my friend Feras Al-Jumah sent me a link to a WordPress theme called PaintedDesert. I liked it so much that I installed it on my blog, hope everybody like it.
April 4, 2006
Alexa experiment endToday I’ll end my Alexa experiment. During the last 60 days I tried to improve my Alexa ranking, my ranking jumped from 1,603,040 to 133,430. Today I removed Alexa ranking banner in my website footer, and I’ll remove all A9 toolbar extension from Firefox, it is occupying 20,000 pixels from my screen and I rarely use it.
March 30, 2006
I got Google Analytics InvitationWikiPedia definition:
I’ve just received my Google Analytics Invitation, so I subscribed to the free service. Of course no interesting reports until now, but I’ll keep you updated when I got anything interesting.
February 15, 2006
rayed.com the first result in GoogleFinally my website http://rayed.com/ became the first result in Google when searching for “Rayed”: For years and years when you search for my name you will get X-Ray related sites, because the past of the verb “ray” is “rayed”.
February 14, 2006
Google AdSense on my blogI signed up with Google AdSense, and you can find Google Ads in sidebar, I am still learning about the AdDense program.
February 13, 2006
BBS News script no longer workLong time ago I built a PHP script that fetch and parse Arabic BBC news and format them in Javscript format, this can be used by adding few HTML code in your website. The script located at: http://rayed.com/bbcjs.php3 I stopped the script more than 5 years ago, but until now I found many entries in my log asking for that file, so I decide to take an action, I put the file back but I put a warning message to notify the user that the script is no longer working.
February 9, 2006
New lookI chaned the default image that comes with the default WordPress theme, what do you think about it.
February 9, 2006
Alexa Ranking imporvmentMy ranking from: UPDATE: My ranking jumped to 629,132, I am starting to enjoy this 😉
January 30, 2006
Trying to improving my Alexa rankingI really hate Alexa, and I never trust their ranking method, you must install their toolbar to get counted but I never saw any one using their toolbar, but unfortunately it is the only was to measure website popularity. Any way I am going to use A9 toolbar (which is part of Amazon, who in turn own Alexa), and I added Alexa Badge in the bottom of my page to see how this will affect my website ranking.
January 15, 2006
Flickr open again, but is it for good!Today a friend of mine opened my old web site http://myweb.saudi.net.sa/rayed/ and I noticed that my flickr badge is working again! I thought he used an external proxy, but he wasn’t 🙂
December 27, 2005
WordPress 2WordPress the blogging software that runs my site released version 2.
November 23, 2005
Cat in a microwaveThis a very disturbing story, I don’t recommend reading it at all, or at least don’t try to visualize the story. A family left their 3 kids, oldest is 8, at home with the family maid, they were playing in the garden with a small kitten they have, while playing it rained and the kitten got wet, so the kids thought they need to dry her, so they put her in the microwave and they clicked random numbers and started cooking the poor kitten, after few minutes the microwave exploded and the kitten internal part shattered all over the kitchen.
November 23, 2005
digg.com vs SlashdotIf you like SlashDot the technical news site, you will love Digg. My first impression of digg is that Digg has more links, and less discussion. The major advantage about Digg is that stories are picked by users not by ad editor, which makes it self maintained site! check Digg FAQ. There is even a dedicated website to compare Digg to Slashdot, and give score to based on how fast they post a news, so far the result Digg 24, Slashdot 14:
November 9, 2005
ISU block flickr AGAINISU blocked Flickr for the third time in less than a year, I HATE YOU ISU. Please help me to unblock Flickr by filing URL unblocking request. The importance of flickr is that thousands of weblogs and personal websites host their image at flickr, so by blocking flickr they blocked all images from all of these weblogs.
July 5, 2005
Archive link fixedI added small Javascript to the list:
June 30, 2005
Moved to WordPressI moved my blog from Blogger to WordPress the process was very easy, but I am still having difficulties with slow parts of WordPress!
June 29, 2005
Moving my blog from Blogger to WordPressI am thinking seriously about moving from Blogger to WordPress, Blogger is really great service, I mainly choose it because it doesn’t need any server side scripting at all, i.e. it will work with SAUDI NET myweb service.
June 27, 2005
Fixing WordPress dashboardWordPress is a personal blogging software, works with PHP and MySQL.
November 15, 2004
Social bookmarksBookmarks … store them, categorize them, share them, plus much more… Category: Alriyadh.com
February 28, 2008
FreeBSD 7![]() FreeBSD 7 is available, many new improvements performance and feature wise, check the announcement. One of the most impressive improvements is SMP (Symmetric multiprocessing):
November 22, 2007
alriyadh.com new search engine![]() After serving Alriyadh.com the past 3 years, I am replacing Swish-e with Solr search server, Solr is a search server based on Lucene text search engine. ![]() Solr has many advance features I didn’t utilize most of them yet, but hopefully you will see them soon. I will write a post about Solr and how it works and its integrate with PHP soon. For now please have a look at it and tell me what you think.
September 1, 2007
MySQL: fixing errors of the pastOld MySQL versions didn’t have good support for Arabic, so what I used to do is to configure MySQL tables with any character set e.g. latin-1 and configure PHP to read it and write in Windows-1256 and pass it to MySQL as is i.e. MySQL think it is “Latin-1” but in fact it is “Windows-1256”. Needless to say cheating in the character set have many bad consensuses:
How to fix it
May 18, 2007
Alriyadh.com converted to CSS based designWarning: It is the same design converted to CSS. After 5 weeks of development and testing, Alriyadh.com is now converted to CSS based design, it still not 100% complete. You can view the design by using this URL: Some benefits of moving to CSS:
February 9, 2007
CakePHP under LighttpdAfter moving alriyadh.com to Lighttpd I had some problem making a CakePHP application I wrote to work properly. I searched the net for a solution and I found this post, but unfortunately the solution they proposed didn’t work, I spent several hours trying to make it work until I gave up, I decide to do it from scratch and luckily it worked. The mod_rewrite rules I used in lighttpd.conf file:
February 7, 2007
Submitting Forms using AjaxWhen you build AJAX based form, you need to provide visual feedback to tell the user that something is really happening. I created small template for this purpose: ![]() Ajax Form Hopefully you will see it in the next alriyadh.com CSS based theme 🙂
February 5, 2007
Improving thumbnails qualityInpired by Flickr’s Dirty Little Secret post, about how Flickr thumbnails make the photo prettier than the original photo. The article suggest that Flick sharpen the image before it resize it. So I did my own test, this the result and you are the judge:
Image 1, normal resize. Image 2, sharpen before resize. ![]() ![]() Sharpened and saturated +100: ![]() All I need to know is how to do it from inside PHP.
February 4, 2007
alriyadh.com moved to lighttpdAlriyadh.com website is now served by Lighttpd (aka Lighty). I moved all static content from Apache to Lighty, Lighty “select” based design makes it ideal for I/O bound operation, i.e. disk and network operations. For this reason Lighty move all CPU bound operations to external process and communicate with them using FastCGI protocol. This is what delayed my migration to Lighty, because I used to compile PHP with mod_php only and with FastCGI support, so I have to recompile PHP to enable it. Of course I spent few days testing, and I am still having some areas not covered completely.
January 5, 2007
Alriyadh.com previous pollsRecently I have improved alriyadh.com voting system, many of them are in administration area, some of these changes will be visible in the near future. One of the new additions is the previous votes page: Check it out, and keep in mind the design is still under work. Memo to self: replace the word “vote” with “poll” UPDATE: If you see weird colors in IE (7?) it is fixed now.
January 1, 2007
XCache new PHP optimizerXCache is relatively new PHP code optimizer, written by “Jan Kneschke” the same guy who wrote Lighttpd web server. After migrating Alriyadh.com to the new dual CPU servers, I had problems with APC PHP optimizer and locking, so I disabled the optimizer altogether, after all the CPU was very fast and it handled the load without any problems. But lately with my increasing interest on Lighttpd I noticed XCache, I never heard of it before but after reading the web site, and the problem APC have with multi processors I decided to give XCache a try, and the best of all it was ready in FreeBSD ports, so I installed it and so far it doing a good job.
October 13, 2006
Java Package for FreeBSD
Fortunately FreeBSD Foundation has binary package for Java, all you need is to Download and install using:
and you are done. With Java on FreeBSD may be I will start playing with Lucene instead of Swish-e as Alriyadh search engine.
October 10, 2006
Things I want to write about but don’t have timeThese days I really don’t have time on the Internet, but I really want to talk about some of these issue in more depth later.
August 25, 2006
Implementing Pingback in alriyadh.com
Implementing Pingback feature is very easy, you need to add the following code to your template: This code will make other blogging software notify your software that it is linking to it, It do this by sending “pingback.ping” XML-RPC request to the given URL, when you get the notification you can add it to the database, email it, or do what ever you want with it.
August 10, 2006
Cricket extensionsCricket Cricket is trend monitoring software, it allows you to monitor trend for any device you want. I wrote 2 extensions for Cricket to monitor Lighttpd web server, and Memecached caching server. Lighttpd web server “lighttpd (also called “Lighty”) is a web server which is designed to be secure, fast, standards-compliant, and flexible while being optimized for speed-critical environments. Its low memory footprint (compared to other web servers), light CPU load and its speed goals make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from dynamic content. lighttpd is free software / open source, and is distributed under the BSD license.” Wikipedia
August 10, 2006
lighttpd the new webserver in townFor the past 9 years I used Apache Web Server exclusively, Apache is very stable and feature rich web server. The only downsize is consuming a lot of computer resources, Apache is a multi-processes server which mean you will find many Apache process running in your system and if we say that each process cosume 2MB of RAM and you have 5 Apache processes running this mean it needs 10MB of RAM.
June 20, 2006
Optimizing MySQLThe last 3 days we were facing many problems with Alriyadh.com web server, the server suddenly get very slow, and all requests times out. It took me very long time to identify the problem, I tried many things and every time I think it will solve the problem completely, but after few hours the problem appear again and he server start to crawl.
June 17, 2006
JEdit the ultimate editor!A year ago Waleed Alzuhair asked me about the reason I am still using Windows-1256 Arabic character set, intead of the new standard Unicode. My reason was the lack of good editor that support Arabic and Unicode, my favourite eidtor HTML-Kit doesn’t have any support for Unicode. But lately while looking for an editor for Mac OS I found JEdit, it is a Java based editor which means it will work with any OS, it supports many charachter sets including Unicode UTF-8, another intersting feature is its support (through a plugin) of remote editing using both FTP, and SFTP (HTML-Kit doesn’t support SFTP).
June 8, 2006
Alriyadh Newspaper world cup vote and winAlriyadh Newspaper is giving away 25 one year subscription, one subscription for each game day in FIFA world cup 2006, all you need to do is to guess the result of each match, of course the more matches you get correct the more chance for you to win, to vote go to alriyadh world cup site http://www.alriyadh.com/worldcup/, and it is absolutely free, no need for 5 SR SMS to subscribe, and if you get the result right you really have good chance to win.
June 7, 2006
Finally I upgraded WordPressToday I had to finish writing some code for Alriyadh Worldcup web site, and I was expecting it to take at least 5 to 6 hours, and it had to be finished today, so I planned all my evening for that coding session Fortunately I finished the job in 2 hours, and I had some extra time in my hand, so I decided to do something I planned to do for very long time, upgrade WordPress, so I sat down and upgrade it from version 1.5 to the latest version, alhamdu lelah the upgrade process was very smoth, althogh some features didn’t work, mainy the rich text editing feature.
May 30, 2006
Alriyadh.com Worldcup 2006 websiteAlriyadh.com launched a new website for covering the FIFA world cup 2006, the website can be found here http://www.alriyadh.com/worldcup. The new site isn’t a regular news website, it is a new web application specifically designed for the world cup, it would be also updated in real time, i.e. you can follow any match events while it is still in play, of course you will still find regular coverage like news, and photos.
May 23, 2006
Alriyadh.com wins ICT Excellence AwardsYesterday, Alriyadh.com awarded the Middle East ICT Excellence Award in the “Print and Electronic Media of the Year (Print)” category from the Middle East Excellence Awards Institute. Alriyadh Newspaper covered the story, and we received a great response from many people, thanks everyone:
Special thanks to Ahmad Alsuwailm for the great coverage.
May 9, 2006
FreeBSD 6.1 releasedFreeBSD my favorite operating system released version 6.1, they finally put the new logo. For more information about FreeBSD checkout FreeBSD@WikiPedia
May 2, 2006
Alriyadh.com new 404 pageCheck it out: and give me you feedback, what to you think it should contain.
March 31, 2006
PHP output compressionPHP 4.0.5 and above added new feature to compress your PHP pages on the fly, all you need is the zlib extension, this how I configured it. Alriyadh.com front page size dropped from 20.5 K to 5.6 K, according to my tests almost 50% of browser don’t support compression, IE for instance turn off gzip compression support if you have bad firewalls (Zone Alarm), and even some IE extensions (specially ad wares) turn off the compression.
March 30, 2006
Caching: memcached vs MySQLSeveral month ago I researched caching methods to use with Alriyadh.com, it was essential because we used old and slow hardware. The result of my test showed that MySQL based caching was superior to memcached caching. I did a new benchmark comparing MySQL, PHP memcache extension, and PHP memcache class. The text is done by fetching the result of a complex query 1000 times, and calculated the time it took using my bechmark library (link dead!), times in seconds:
March 15, 2006
Alriyadh.com migration finishedToday alriyadh.com main website migrated to FreeBSD, now the complete website runs on FreeBSD on HP servers.
March 13, 2006
Alriyadh.com ads server migrated to FreeBSDThe ads appear now as if they are local images, awesome 🙂 You will notice that the maximum CPU utlization is 29% at around 7:30 am, at this time the old server would hit 100% CPU utlization. The 29% is before enabling APC (Alternative PHP Cache) which replaced PHPAccelerator I used with the old server, you can see a major drop in CPU utilization after enabling it.
February 23, 2006
“Unfair” Apache performance comparisonTo find out how fast our new servers are I run a small test using ab Apache HTTP server benchmarking tool. I’ll send 10,000 requests using 10 simultaneous processes, I run the same test on both old and new server: Old Server
New Server
This mean that the new server is 20 times faster than the old server, the test is really unfair because the old server is running on production and serving other requests. I’ll repeat the same test after migration to see the real numbers.
February 23, 2006
alriyadh.com migration statusAlriyadh.com is hosted at MeduNet, they unpacked the servers on the lab for now, and hopefully they will prepare the racks and install the servers next week.
February 23, 2006
rsync tipsrsync is a really smart file transfer tool, when you want to move a large directory from machine to machine it is the best tool you can use. The tool utilise ssh protocol (among others) to transfer files, this is a sample command:
The above command will copy the directory /some/dir from host_1 to host_2, the smart thing about rsync that it check what files are already copied so it won’t copy them again.
February 22, 2006
alriyadh.com migrating from Solaris to FreeBSDalriyadh.com new servers arrived, we are upgrading from 4 Sun Solaris machines to 3 HP machines with FreeBSD, the machines specification as follow:
The servers should be in production next week, you should notice significant performance improvements Insha Allah.
January 31, 2006
Alriyadh a record number of commentsIt is still 10:54 pm and until now we have around 1200 comments:
and I complain when I get 3 spam messages. الله يعينكم والله
January 31, 2006
Alriyadh.com eBooksalriyadh.com introduced new service called “Alriyadh eBook”, basically they collected articles of selected writers and group them in one downloadable PDF file.
January 30, 2006
Trying to improving my Alexa rankingI really hate Alexa, and I never trust their ranking method, you must install their toolbar to get counted but I never saw any one using their toolbar, but unfortunately it is the only was to measure website popularity. Any way I am going to use A9 toolbar (which is part of Amazon, who in turn own Alexa), and I added Alexa Badge in the bottom of my page to see how this will affect my website ranking.
January 25, 2006
alriyadh.com news in your website, cut and pasteI developed a new Javascript based feed for alriyadh.com that can be included easily in any website, all you need is cut-n-paste some HTML code (mostly Javascript) into your web page and you will get all the news you need.
Give it a try and tell me what do you think, remember it is still under development, so please don’t complain about the design 🙂
December 27, 2005
alriyadh.com first DDoSWe had today a major DDoS attack (Distributed Denial of Service), we get thousands of concurrent connection from all over the globe. It took us a while to figure out the problem, the attack still active but hopefully we managed to take the site online again for Saudi Arabia users.
December 13, 2005
Yet another Ad :(www.alriyadh.com added a new advertising banner to all pages, they now show 6 ads in a single page, I am not sure what they are thinking why don’t they increase the prices, and put fewer ads. I hate it.
December 1, 2005
Cleaning up readers commentsWhen reading alriyadh.com readers comments, I found many readers using bad practices when posting comments for example:
So I wrote a filter to remove all these practices. What do you think? good or bad idea, please tell me what do you think.
November 20, 2005
alriyadh.com usability improvementsalriyadh.com added multiple usability improvements to comment posting form:
November 15, 2005
alriyadh.com one man show!Everyday at 11pm, alriyadh.com team start working on the next day issue, the job involve copying all contents from the printed version to the alriyadh.com content management system, the process involve 2 to 3 team members, and takes about 4-5 hours to complete. But last Thursday was a special case, due to a planned vacation for one team member, and family issues for another member, Faisal Alenzi was the only guy working that night and he carried the whole show and published the whole issue on time by him self.
November 14, 2005
Abdullah Alrashed
November 9, 2005
Spelling mistakes drive me crazyI am not a “speeling bee champion” -the previous sentence proves it 🙂 -, and I usually don’t care about spelling mistakes of others, but some spelling mistakes drive me crazy. One of the most common in Arabic is: I hope Google would support Arabic in their toolbar spell checker. P.S: If you noticed any spelling mistakes in any of my post please let me know.
November 8, 2005
alriyadh.com new comments styleAlriyadh.com introduced new style to display comments, see the Sample Article The new style uses CSS instead of tables, which make it much smaller and cleaner. A link to each comment is also added -the time of the post- to allow bookmarking and sending URLs to specific comment. The posting form is now viewed in the same page, it is hidden by default but after clicking “Post Comment” it will appear thank to the power of Javascript.
November 6, 2005
alriyadh.com most commented articlesThis is an experimental page that shows the articles with most comments: Hopefully it will find it self in the front page shortly, I don’t where should we put it, the front page is little crowded as is.
November 3, 2005
Alriyadh.com: tell us what do you think!Today Alriyadh.com opened comments on all articles, instead of articles in the “columns” section only. In the first day of opening comments the amount of comments posted today tripled the average daily volume. This means the work on the Internet team will need to work three times harder than they used to be, since all of user comments need to be moderated! This is a huge step from being just an electronic copy of the printed newspaper, to becoming a real Internet website.
August 7, 2005
Caching method comparedI tested different types of caching, here is my times:
Altought File caching is much faster that the other two methods, it can suffer from file locking problems, and can’t be shared between more than one server. memcached client used is written in PHP which will slow it down a little bit. So MySQL seems the ideal choice 😉
August 5, 2005
New plans for alriyadh.comWhen I started building alriyadh.com website I decided to generate all pages as static HTML files, I relied heavily on Server Side Includes (SSI) to build complex pages. The main reason for this decision was the fact that the server was very slow on processing PHP files, espcially with a site with high load. Generating static HTML files has its advantages but it also had many problems:
Soon I’ll start testing dynamicly generated of pages with these points in mind:
June 18, 2005
New world record number of ads in a single pageToday alriyadh.com broke the world record for the largest number of ads in a single page, today they added yet another banner to become 7 banners in thier frontpage.
May 26, 2005
Interanet searching with Swish-eSwish-e (Simple Web Indexing System for Humans – Enhanced) is really nice small program that index almost anything, I am playing with it at the moment and I am thinking of dumping my own search engine and replace it with Swish-e. Swish has many features but the one feature that stroke me is the speed: Category: MySQL
February 28, 2008
FreeBSD 7![]() FreeBSD 7 is available, many new improvements performance and feature wise, check the announcement. One of the most impressive improvements is SMP (Symmetric multiprocessing):
February 14, 2008
Drupal 6 released![]() Drupal the open source content management system has a new fresh release Drupal 6. Update: It seems CCK and VIEWS aren’t compatible with Drupal 6 yet, does anyone use Drupal without CCK and VIEW?
February 11, 2008
CodeIgniter setup tips
February 10, 2008
CodeIgniter yet another PHP framework![]() For the last year I spent a lot of my PHP time playing with CakePHP I like it at first, but when I tried to build large applications with it I noticed it have major issues with performance, plus I really had difficult time dealing with it is strict naming convention and it object-relational-mapping (ORM). Few days ago I read about CodeIgniter framework and its similarities to CakePHP and its amazing performance, so I went and visited their website again, I heard about CodeIgniter before from Abdullah Aldosari (I miss our technical discussions) but when I visited the website I wasn’t really impressed, but the new website looks much better, so judging by the look improvement alone I decided to give it a try 🙂
December 30, 2007
Learning Drupal![]() Every Eid vacation I end up with an extra free time, I usually use it to learn new stuff, the latest vacation I decided to learn Drupal. Drupal is a Content management system (CMS), it is basically a software to help you manage your content. Drupal is a modular and customizable CMS, you can use it to build different types of web sites, a Blog, company or organization web site, community website, you name it.
September 1, 2007
MySQL: fixing errors of the pastOld MySQL versions didn’t have good support for Arabic, so what I used to do is to configure MySQL tables with any character set e.g. latin-1 and configure PHP to read it and write in Windows-1256 and pass it to MySQL as is i.e. MySQL think it is “Latin-1” but in fact it is “Windows-1256”. Needless to say cheating in the character set have many bad consensuses:
How to fix it
June 25, 2007
Moved to a new serverrayed.com to new server with upgraded softwares:
April 13, 2007
Dovecot 1.0.0 released (Mail Server)Dovecot version 1.0.0 finally released, after almost 5 years of development. Dovecot is IMAP and POP3 server, it is one of the best and easiest servers I ever worked with, easy enough for home environment, and flexible and powerful enough for service providers. I’ve tested it earlier before and hopefully we will migrate to it later this year. Dovecot integrate very well with Postfix mail server (Postfix handle SMTP, Dovecot handle POP3+IMAP), and can easily support virtual hosting.
January 5, 2007
Alriyadh.com previous pollsRecently I have improved alriyadh.com voting system, many of them are in administration area, some of these changes will be visible in the near future. One of the new additions is the previous votes page: Check it out, and keep in mind the design is still under work. Memo to self: replace the word “vote” with “poll” UPDATE: If you see weird colors in IE (7?) it is fixed now.
October 10, 2006
Things I want to write about but don’t have timeThese days I really don’t have time on the Internet, but I really want to talk about some of these issue in more depth later.
August 19, 2006
Virtual FTP accounts with Pure-FTPd and MySQLPure-FTPd is a FTP server with many features that enable you to host virtual accounts, these are the features that I loved and tested:
Installation (FreeBSD)
June 20, 2006
Optimizing MySQLThe last 3 days we were facing many problems with Alriyadh.com web server, the server suddenly get very slow, and all requests times out. It took me very long time to identify the problem, I tried many things and every time I think it will solve the problem completely, but after few hours the problem appear again and he server start to crawl.
March 30, 2006
Caching: memcached vs MySQLSeveral month ago I researched caching methods to use with Alriyadh.com, it was essential because we used old and slow hardware. The result of my test showed that MySQL based caching was superior to memcached caching. I did a new benchmark comparing MySQL, PHP memcache extension, and PHP memcache class. The text is done by fetching the result of a complex query 1000 times, and calculated the time it took using my bechmark library (link dead!), times in seconds:
November 13, 2005
PostgreSQL and PHP (on Windows)After installing PostgreSQL (15 minutes job), and playing with pgAdminIII, I decided to try it with PHP.
November 8, 2005
PostgreSQL 8.1 releasedPostgreSQL (Wikipedia) 8.1 released, check What’s new in 8.1 document. For some reason I love PostgreSQL althought I never really used it before, I am very happy with MySQL but I really would love to use PostgreSQL, for me MySQL excel in 3 areas:
August 7, 2005
Caching method comparedI tested different types of caching, here is my times:
Altought File caching is much faster that the other two methods, it can suffer from file locking problems, and can’t be shared between more than one server. memcached client used is written in PHP which will slow it down a little bit. So MySQL seems the ideal choice 😉
March 13, 2005
PHP Accelerator is awesomeI have a server with PHPAdsNew installed serving around 20 requests per second serving a really busy web site. Few days ago the admins for that website doubled the number of ads per page, and the server stopped responding most of the day 🙁 I installed PHP Accelerator to make it faster to serve the those ads, but it didn’t help that much, I tried every trick I know to maximize MySQL performance (although it didn’t have any load in the first place) nothing worked.
July 27, 2004
Change PHPMyAdmin to view Arabic on English interfaceI love phpmyadmin, it is a web interface for MySQL DB server, I usually use the English interface, but the problem with English interface that it doesn’t show Arabic string, of course you can change the whole interface to Arabic, but I don’t understand anything from that interface. So I played with PHPMyAdmin code so I can use English interface but using Arabic character set, here is how to do it:
July 24, 2004
MySQL replication is so simpleI just configured my first MySQL replication, it is very simple to configure, few configuration steps and it is done. Category: PHP
February 14, 2008
Drupal 6 released![]() Drupal the open source content management system has a new fresh release Drupal 6. Update: It seems CCK and VIEWS aren’t compatible with Drupal 6 yet, does anyone use Drupal without CCK and VIEW?
February 11, 2008
CodeIgniter setup tips
February 10, 2008
CodeIgniter yet another PHP framework![]() For the last year I spent a lot of my PHP time playing with CakePHP I like it at first, but when I tried to build large applications with it I noticed it have major issues with performance, plus I really had difficult time dealing with it is strict naming convention and it object-relational-mapping (ORM). Few days ago I read about CodeIgniter framework and its similarities to CakePHP and its amazing performance, so I went and visited their website again, I heard about CodeIgniter before from Abdullah Aldosari (I miss our technical discussions) but when I visited the website I wasn’t really impressed, but the new website looks much better, so judging by the look improvement alone I decided to give it a try 🙂
December 30, 2007
Learning Drupal![]() Every Eid vacation I end up with an extra free time, I usually use it to learn new stuff, the latest vacation I decided to learn Drupal. Drupal is a Content management system (CMS), it is basically a software to help you manage your content. Drupal is a modular and customizable CMS, you can use it to build different types of web sites, a Blog, company or organization web site, community website, you name it.
November 22, 2007
alriyadh.com new search engine![]() After serving Alriyadh.com the past 3 years, I am replacing Swish-e with Solr search server, Solr is a search server based on Lucene text search engine. ![]() Solr has many advance features I didn’t utilize most of them yet, but hopefully you will see them soon. I will write a post about Solr and how it works and its integrate with PHP soon. For now please have a look at it and tell me what you think.
June 25, 2007
Moved to a new serverrayed.com to new server with upgraded softwares:
May 4, 2007
Muntaqa the best of Arabic email groups
Muntaqa is a website that collect large number of email groups, e.g. AbuNawaf, and displays them in a single page, people can vote, bookmark, and comment on all emails. In the front page you will get the most popular emails, so you want miss any interesting emails in the Arabic web sphere 🙂 Muntaqa works like Digg, but instead of submitting websites, we automatically submit emails from email groups. A big population of computer users in Arab world (at least in Saudi Arabia) still consider the emails as the only form of publishing in the Internet.
April 6, 2007
Supporting right to left writing (for Arabic) in WordPressUPDATE: I found an easier way to do the same thing Check it out In my blog I write in both languages English and Arabic, but I have to switch text direction from the template default English direction “Left to Right” to Arabic “Right to Left”. One way do to it is to add HTML tags in each Arabic entry. Another way to do it is to utilize WordPress “Custom Fields” feature, WordPress allows you to add custom fields to any entry, so I add a new custom field to my Arabic entries, the key will be “wp_direction” and the value will be “rtl”.
April 3, 2007
lighttpd enters the Top 5Lighttpd web server is becoming major player in the web server space, according to Netcraft Lighttpd is the 4th most popular web server on the net, and it is moving fast!
February 9, 2007
CakePHP under LighttpdAfter moving alriyadh.com to Lighttpd I had some problem making a CakePHP application I wrote to work properly. I searched the net for a solution and I found this post, but unfortunately the solution they proposed didn’t work, I spent several hours trying to make it work until I gave up, I decide to do it from scratch and luckily it worked. The mod_rewrite rules I used in lighttpd.conf file:
February 5, 2007
Improving thumbnails qualityInpired by Flickr’s Dirty Little Secret post, about how Flickr thumbnails make the photo prettier than the original photo. The article suggest that Flick sharpen the image before it resize it. So I did my own test, this the result and you are the judge:
Image 1, normal resize. Image 2, sharpen before resize. ![]() ![]() Sharpened and saturated +100: ![]() All I need to know is how to do it from inside PHP.
February 4, 2007
alriyadh.com moved to lighttpdAlriyadh.com website is now served by Lighttpd (aka Lighty). I moved all static content from Apache to Lighty, Lighty “select” based design makes it ideal for I/O bound operation, i.e. disk and network operations. For this reason Lighty move all CPU bound operations to external process and communicate with them using FastCGI protocol. This is what delayed my migration to Lighty, because I used to compile PHP with mod_php only and with FastCGI support, so I have to recompile PHP to enable it. Of course I spent few days testing, and I am still having some areas not covered completely.
January 5, 2007
Alriyadh.com previous pollsRecently I have improved alriyadh.com voting system, many of them are in administration area, some of these changes will be visible in the near future. One of the new additions is the previous votes page: Check it out, and keep in mind the design is still under work. Memo to self: replace the word “vote” with “poll” UPDATE: If you see weird colors in IE (7?) it is fixed now.
January 1, 2007
XCache new PHP optimizerXCache is relatively new PHP code optimizer, written by “Jan Kneschke” the same guy who wrote Lighttpd web server. After migrating Alriyadh.com to the new dual CPU servers, I had problems with APC PHP optimizer and locking, so I disabled the optimizer altogether, after all the CPU was very fast and it handled the load without any problems. But lately with my increasing interest on Lighttpd I noticed XCache, I never heard of it before but after reading the web site, and the problem APC have with multi processors I decided to give XCache a try, and the best of all it was ready in FreeBSD ports, so I installed it and so far it doing a good job.
October 13, 2006
Java Package for FreeBSD
Fortunately FreeBSD Foundation has binary package for Java, all you need is to Download and install using:
and you are done. With Java on FreeBSD may be I will start playing with Lucene instead of Swish-e as Alriyadh search engine.
October 10, 2006
Things I want to write about but don’t have timeThese days I really don’t have time on the Internet, but I really want to talk about some of these issue in more depth later.
August 25, 2006
Implementing Pingback in alriyadh.com
Implementing Pingback feature is very easy, you need to add the following code to your template: This code will make other blogging software notify your software that it is linking to it, It do this by sending “pingback.ping” XML-RPC request to the given URL, when you get the notification you can add it to the database, email it, or do what ever you want with it.
August 10, 2006
lighttpd the new webserver in townFor the past 9 years I used Apache Web Server exclusively, Apache is very stable and feature rich web server. The only downsize is consuming a lot of computer resources, Apache is a multi-processes server which mean you will find many Apache process running in your system and if we say that each process cosume 2MB of RAM and you have 5 Apache processes running this mean it needs 10MB of RAM.
June 26, 2006
Python 2.5 Beta, and new Python websitePython, my favorite computer language (althought I don’t use it that often) released 2.5 beta version. What amazed me that their website is now changed with new look, and Python has a new logo too.
June 20, 2006
Optimizing MySQLThe last 3 days we were facing many problems with Alriyadh.com web server, the server suddenly get very slow, and all requests times out. It took me very long time to identify the problem, I tried many things and every time I think it will solve the problem completely, but after few hours the problem appear again and he server start to crawl.
June 17, 2006
JEdit the ultimate editor!A year ago Waleed Alzuhair asked me about the reason I am still using Windows-1256 Arabic character set, intead of the new standard Unicode. My reason was the lack of good editor that support Arabic and Unicode, my favourite eidtor HTML-Kit doesn’t have any support for Unicode. But lately while looking for an editor for Mac OS I found JEdit, it is a Java based editor which means it will work with any OS, it supports many charachter sets including Unicode UTF-8, another intersting feature is its support (through a plugin) of remote editing using both FTP, and SFTP (HTML-Kit doesn’t support SFTP).
June 14, 2006
SAUDI NET needs fresh graduatesSAUDI NET is hiring and we are looking for fresh graduates in CS/IS, we have very large expansions that will give you many great chances to work with different technologies. SAUDI NET is part of Saudi Telecom Company (STC) so you will get all the STC employees benefits. If you are intersted send me your resume at (rayed at saudi.net.sa)
June 11, 2006
FireFTP: FTP client inside FirefoxI always have trouble finding and recommending FTP clients to friends, I used to use WS_FTP but it isn’t free, same thing for Cute FTP. Lately I didn’t use FTP client any more, because I start using HTMLKit it isn’t an FTP client per se, it is an editor with the ability to open remote files using FTP, so I do most of my file editing using it. HTMLKit is great but it doesn’t support moving files or directories, or transfaering a complete directory. In these cases I usually log to the machine using SSH and do the need operations using the command line, but this not an option for most people.
June 7, 2006
Finally I upgraded WordPressToday I had to finish writing some code for Alriyadh Worldcup web site, and I was expecting it to take at least 5 to 6 hours, and it had to be finished today, so I planned all my evening for that coding session Fortunately I finished the job in 2 hours, and I had some extra time in my hand, so I decided to do something I planned to do for very long time, upgrade WordPress, so I sat down and upgrade it from version 1.5 to the latest version, alhamdu lelah the upgrade process was very smoth, althogh some features didn’t work, mainy the rich text editing feature.
May 23, 2006
Alriyadh.com wins ICT Excellence AwardsYesterday, Alriyadh.com awarded the Middle East ICT Excellence Award in the “Print and Electronic Media of the Year (Print)” category from the Middle East Excellence Awards Institute. Alriyadh Newspaper covered the story, and we received a great response from many people, thanks everyone:
Special thanks to Ahmad Alsuwailm for the great coverage.
May 3, 2006
CakePHP 1.0 released!CakePHP version 1.0 is released, CakePHP in thier word is:
I have tried it few times and it is really intersting peace of software, many say CakePHP is Ruby on Rails clone.
May 2, 2006
Alriyadh.com new 404 pageCheck it out: and give me you feedback, what to you think it should contain.
March 31, 2006
PHP output compressionPHP 4.0.5 and above added new feature to compress your PHP pages on the fly, all you need is the zlib extension, this how I configured it. Alriyadh.com front page size dropped from 20.5 K to 5.6 K, according to my tests almost 50% of browser don’t support compression, IE for instance turn off gzip compression support if you have bad firewalls (Zone Alarm), and even some IE extensions (specially ad wares) turn off the compression.
March 30, 2006
Caching: memcached vs MySQLSeveral month ago I researched caching methods to use with Alriyadh.com, it was essential because we used old and slow hardware. The result of my test showed that MySQL based caching was superior to memcached caching. I did a new benchmark comparing MySQL, PHP memcache extension, and PHP memcache class. The text is done by fetching the result of a complex query 1000 times, and calculated the time it took using my bechmark library (link dead!), times in seconds:
January 25, 2006
alriyadh.com news in your website, cut and pasteI developed a new Javascript based feed for alriyadh.com that can be included easily in any website, all you need is cut-n-paste some HTML code (mostly Javascript) into your web page and you will get all the news you need.
Give it a try and tell me what do you think, remember it is still under development, so please don’t complain about the design 🙂
November 15, 2005
alriyadh.com one man show!Everyday at 11pm, alriyadh.com team start working on the next day issue, the job involve copying all contents from the printed version to the alriyadh.com content management system, the process involve 2 to 3 team members, and takes about 4-5 hours to complete. But last Thursday was a special case, due to a planned vacation for one team member, and family issues for another member, Faisal Alenzi was the only guy working that night and he carried the whole show and published the whole issue on time by him self.
November 13, 2005
PostgreSQL and PHP (on Windows)After installing PostgreSQL (15 minutes job), and playing with pgAdminIII, I decided to try it with PHP.
August 26, 2005
PHP & regular experssion named groupsThis is a nice regular expression feature, sometime when you have complex regular expression, you could forget what each refer to: Instead you can name all groups by using the format (?P<name>pattern) instead of just (pattern), then you can access this group by name you assigned it, so the previous regular experssion could be written like:
August 19, 2005
Tip on installing graphic support for PHP in FreeBSDGD is a graphic library that enable PHP to manipulate images, to install it from FreeBSD port us: # cd /usr/ports/graphics/php4-gd # make -DWITHOUT_X11 install The tip is to use WITHOUT_X11 option this will save you from compiling X Windows which is needed for some of GD supported formats.
August 7, 2005
Caching method comparedI tested different types of caching, here is my times:
Altought File caching is much faster that the other two methods, it can suffer from file locking problems, and can’t be shared between more than one server. memcached client used is written in PHP which will slow it down a little bit. So MySQL seems the ideal choice 😉
August 5, 2005
New plans for alriyadh.comWhen I started building alriyadh.com website I decided to generate all pages as static HTML files, I relied heavily on Server Side Includes (SSI) to build complex pages. The main reason for this decision was the fact that the server was very slow on processing PHP files, espcially with a site with high load. Generating static HTML files has its advantages but it also had many problems:
Soon I’ll start testing dynamicly generated of pages with these points in mind:
August 3, 2005
Ruby on RailsRuby on Rails is a web development framework written in Ruby computer language.
May 26, 2005
Interanet searching with Swish-eSwish-e (Simple Web Indexing System for Humans – Enhanced) is really nice small program that index almost anything, I am playing with it at the moment and I am thinking of dumping my own search engine and replace it with Swish-e. Swish has many features but the one feature that stroke me is the speed: Category: SAUDI NET
January 3, 2008
Moving rayed.com email to GMailI am moving all my emails (except work email) to one single email using my own domain (myname at mydomain), and I am going to use Google Apps service, basically I am getting GMail for my own domain, I even have my own start page and tons of applications. The provided storage is unbeatable, and after Google provided IMAP service, it is really tempting. So guys if you want to contact me please do at myname at mydomain.
October 30, 2007
Leaving SAUDI NETThis week, I started my new job at CITC, I am leaving STC, I’ve spent the last 6 years working for SAUDI NET and SAUDI DATA. Alhamdu Lelah, the last 6 years were amazing, I learned too many thing, made friends with too many people. Thanks to everyone participated in this great experience, and special thank to Abdullah Aldosari who add the extra spices on it 😉
June 25, 2007
Moved to a new serverrayed.com to new server with upgraded softwares:
May 27, 2007
Abdullah Aldosari left SAUDI NETAfter spending 6 years at SAUDI NET, Abdullah Aldosari has left us and joined Mobily. Abdullah was our system architect, with large arsenal of skills talents, we have working very tightly all these years. SAUDI NET sure lost a very valuable team member. Abdullah it has been a pleasure and honor to work with you.
April 23, 2007
IE6 in UbuntuUbuntu Linux is really easy OS with many interesting features, one of the best sites to help you with your Ubuntu experince is Ubuntu Guide, the site has many useful tips on how to do thing in Ubuntu. One of the tips is how to install Internet Explorer under Ubuntu, I saw Fahad AlShenaifi do it, he is our Ubuntu expert since he is using it exclusively for the past year or so.
April 13, 2007
Dovecot 1.0.0 released (Mail Server)Dovecot version 1.0.0 finally released, after almost 5 years of development. Dovecot is IMAP and POP3 server, it is one of the best and easiest servers I ever worked with, easy enough for home environment, and flexible and powerful enough for service providers. I’ve tested it earlier before and hopefully we will migrate to it later this year. Dovecot integrate very well with Postfix mail server (Postfix handle SMTP, Dovecot handle POP3+IMAP), and can easily support virtual hosting.
January 16, 2007
Lighttpd powers Saudi Arabia most <del>popular</del> unpopular websiteSince we migrated Saudi Arabia international lines from ISU to us, we started to host the most unpopular web page in the kingdom, Internet Block Page.
November 2, 2006
My DSL is back :)Extremely slow but still DSL. My phone line got off line for more than a month, after that phone worked but with out DSL for another 2 weeks, during this time I only connect using 28K dial up connection, which is really really slow. Update: I upgraded to 512K and it is awesome, it wasn’t slow Windows was downloading tons of updates 🙂
October 10, 2006
Things I want to write about but don’t have timeThese days I really don’t have time on the Internet, but I really want to talk about some of these issue in more depth later.
August 19, 2006
Virtual FTP accounts with Pure-FTPd and MySQLPure-FTPd is a FTP server with many features that enable you to host virtual accounts, these are the features that I loved and tested:
Installation (FreeBSD)
August 15, 2006
New Thunderbird checklistCheck all IMAP folders:
August 10, 2006
Cricket extensionsCricket Cricket is trend monitoring software, it allows you to monitor trend for any device you want. I wrote 2 extensions for Cricket to monitor Lighttpd web server, and Memecached caching server. Lighttpd web server “lighttpd (also called “Lighty”) is a web server which is designed to be secure, fast, standards-compliant, and flexible while being optimized for speed-critical environments. Its low memory footprint (compared to other web servers), light CPU load and its speed goals make lighttpd suitable for servers that are suffering load problems, or for serving static media separately from dynamic content. lighttpd is free software / open source, and is distributed under the BSD license.” Wikipedia
August 10, 2006
lighttpd the new webserver in townFor the past 9 years I used Apache Web Server exclusively, Apache is very stable and feature rich web server. The only downsize is consuming a lot of computer resources, Apache is a multi-processes server which mean you will find many Apache process running in your system and if we say that each process cosume 2MB of RAM and you have 5 Apache processes running this mean it needs 10MB of RAM.
June 26, 2006
Python 2.5 Beta, and new Python websitePython, my favorite computer language (althought I don’t use it that often) released 2.5 beta version. What amazed me that their website is now changed with new look, and Python has a new logo too.
June 14, 2006
SAUDI NET needs fresh graduatesSAUDI NET is hiring and we are looking for fresh graduates in CS/IS, we have very large expansions that will give you many great chances to work with different technologies. SAUDI NET is part of Saudi Telecom Company (STC) so you will get all the STC employees benefits. If you are intersted send me your resume at (rayed at saudi.net.sa)
June 7, 2006
Internet traffic slowness in Saudi ArabiaThese days Internet backbone in Saudi Arabia is having many problems affecting mainly DSL customers in some areas. I guess it must be related to the boom in new DSL connections. To make things worst the school vacation just started and the Internet browsing became very very slow. Thank god that I host my website at SAUDI NET so no speed prolem with it.
May 28, 2006
Greylisting: New weapon to fight SpamLast Tuesday, I enabled Geylisting on SAUDI NET mail servers, and you can see the decrease of spam we are getting (the blue line): The first day of enabling greylisting we got many complaints about delayed emails, but after that all emails flow with delays. To learn more check Greylist @ Wikipedia
May 9, 2006
FreeBSD 6.1 releasedFreeBSD my favorite operating system released version 6.1, they finally put the new logo. For more information about FreeBSD checkout FreeBSD@WikiPedia
April 26, 2006
DSL access at last :)After three months delay from the inital plan I finally got DSL access. My friend Abdulaziz Alqudhibi offered me NetGear DSL Modem/Router/Access point for really great price but it will take two days to install, but I couldn’t wait so I went to the market and bought a SpeedTouch 585, I hope I won’t regret it
February 26, 2006
My tiny contribution to ClamAVClamAV is an open source Anti Virus software for UNIX systems, we use it here in SAUDI NET to stop Virus in email message it stops thousands of viruses everyday, I also use it in our personal hosting service that we provide for our customers, unfortunately some customers upload virus intentionally and unintentionally, so I installed ClamAV to scan and delete viruses. Last week I noticed one of our trouble making customers uploading sospious files, I ran “clamscan” on the user directory but it didn’t detect it, when I tried to download it my PC anti-virus software “MicroTrend” stopped the download warning me about the Virus. So I went home and downloaded it again and scanned it using Norton AV, it didn’t detect it either!
January 27, 2006
Faster Dialup ServiceSAUDI NET is testing new dialup service, the new service uses PPP compression to give faster links, the difference is noticeable espically with HTML pages. Of course images and binary files get less compression which mean you won’t notice a big difference with them. The service is tested with SAUDI NET prepaid service only (Phone: 3604567), if tests went ok we deploy it on SAUDI NET EasyNet (Phone: 3660077). Improvemnt of performance depeneds on your browsing behaviour, but 25% is the average increase. So if you connect using 45K you will really get 56K, and if you connect with 52K speed you will get 65K.
January 17, 2006
SAUDI NET DSL without proxy: FixedWe found a small configuration error that broke the transparent proxy from working on some DSL connections, it should work now with every one, Enjoy!
January 15, 2006
Flickr open again, but is it for good!Today a friend of mine opened my old web site http://myweb.saudi.net.sa/rayed/ and I noticed that my flickr badge is working again! I thought he used an external proxy, but he wasn’t 🙂
December 29, 2005
Finally DSL access :)but after two months 🙁
December 25, 2005
SAUDI NET DSL without proxyWe’ve just launched transparent proxy solution on our DSL service, since I don’t have DSL at home I can’t test it yet 🙁
November 16, 2005
SAUDI NET DSL feedbackIt is thrilling to see these words:
October 25, 2005
New services at my.saudi.net.saWe’ve just added new services and features to SAUDI NET portal my.saudi.net.sa:
![]()
August 31, 2005
SAUDI NET logo back in Tadawul websiteTadawul returned powered by SAUDI NET logo once again. ![]()
August 25, 2005
SAUDI NET customer care close their doorThis week SAUDI NET customer care team left NCCI building and moved to one of the STC (out parent company) headquarter buildings. The customer care works in shifts 24 hours a day, and today it is the first time since I came to SAUDI NET 5 years ago I come to my office and no one else in our floor except me. I rarely chat with the guys in customer care, I am not very social person after all, but today I really missed them a lot, I really feel a huge void in my life, very sad moment indeed.
July 17, 2005
Saudi Ubuntu Yahoo GroupOsama Aldosary started a Saudi Ubuntu email group at Yahoo Groups, join us! ![]() Click to join subuntu
July 17, 2005
Upgrading SAUDI NET mail serverWe’ve just upgrade SAUDI NET main mail server 350GB, RAID-5, simply awesome. Category: Css
December 30, 2007
Learning Drupal![]() Every Eid vacation I end up with an extra free time, I usually use it to learn new stuff, the latest vacation I decided to learn Drupal. Drupal is a Content management system (CMS), it is basically a software to help you manage your content. Drupal is a modular and customizable CMS, you can use it to build different types of web sites, a Blog, company or organization web site, community website, you name it.
September 18, 2007
CSS Layout and design articles and resourcesIf you still use tables to build your web site you really need to go back to school to learn CSS, and understand why CSS should be utilized to design your web site.
May 18, 2007
Alriyadh.com converted to CSS based designWarning: It is the same design converted to CSS. After 5 weeks of development and testing, Alriyadh.com is now converted to CSS based design, it still not 100% complete. You can view the design by using this URL: Some benefits of moving to CSS:
February 7, 2007
Submitting Forms using AjaxWhen you build AJAX based form, you need to provide visual feedback to tell the user that something is really happening. I created small template for this purpose: ![]() Ajax Form Hopefully you will see it in the next alriyadh.com CSS based theme 🙂
May 30, 2006
CSS designed websitesThese sites collect links to CSS designed websites, great if you want to get some inspiration, it also give some idea on the capabilities of CSS:
November 8, 2005
alriyadh.com new comments styleAlriyadh.com introduced new style to display comments, see the Sample Article The new style uses CSS instead of tables, which make it much smaller and cleaner. A link to each comment is also added -the time of the post- to allow bookmarking and sending URLs to specific comment. The posting form is now viewed in the same page, it is hidden by default but after clicking “Post Comment” it will appear thank to the power of Javascript. Category: Mac
July 20, 2007
Convert videos for iPodMy son Abdullah is addicted to Dora the Explorer cartoons, and since I am planing to travel in the summer I am looking for ways to take his DVDs with me using my iPod. I found this free software that convert videos to iPod ready format, so far it is doing very good job.
October 24, 2006
Firefox 2 and IE 7Recently the 2 most popular browsers IE and Firefox released a new version. Firefox is already a very good product so improving it is very hard 🙂 The most important new feature is the online spell checker which is really lovely. It also has a new theme, I didn’t like that much but it might take some time to get used to. IE 7 in the other hand is really impressive (compared to IE 6 of course), it has tab browsing at last, the theme is really really good, the new font rendering engine is really smooth and clear it feels like a Mac.
July 7, 2006
Mac experience so farThe Bad
The Good
June 17, 2006
JEdit the ultimate editor!A year ago Waleed Alzuhair asked me about the reason I am still using Windows-1256 Arabic character set, intead of the new standard Unicode. My reason was the lack of good editor that support Arabic and Unicode, my favourite eidtor HTML-Kit doesn’t have any support for Unicode. But lately while looking for an editor for Mac OS I found JEdit, it is a Java based editor which means it will work with any OS, it supports many charachter sets including Unicode UTF-8, another intersting feature is its support (through a plugin) of remote editing using both FTP, and SFTP (HTML-Kit doesn’t support SFTP).
June 11, 2006
FireFTP: FTP client inside FirefoxI always have trouble finding and recommending FTP clients to friends, I used to use WS_FTP but it isn’t free, same thing for Cute FTP. Lately I didn’t use FTP client any more, because I start using HTMLKit it isn’t an FTP client per se, it is an editor with the ability to open remote files using FTP, so I do most of my file editing using it. HTMLKit is great but it doesn’t support moving files or directories, or transfaering a complete directory. In these cases I usually log to the machine using SSH and do the need operations using the command line, but this not an option for most people.
June 10, 2006
Thunderbird extension for ArabicThunderbird is a great email client, it has very good support for international languages, and it displays Arabic emails without any problems, the only problem that I face with it is when writing Arabic emails, unfortunately Thunderbird doesn’t have shortcut or button to change the writing direction from left-to-right used by most western languages, to right-to-left used for Arabic. But through the power of extensions you can install this small extension (37K) that will add 2 new buttons in Compose window, one for changing the direction from LTR->RTL, and vice versa.
May 28, 2006
My MAC OS downloadsUntil now my downloads are basically similar to Windows counter part:
any thing else I should look at.
May 28, 2006
I bought a 20″ iMacFirst impressions: WOW, WOW, huh, why, where!!! I guess I need sometime to get used to it. At least I have a terminal program with ssh, after all it is UNIX machine 🙂 |