About Me

My photo
PhD Candidate at Purdue University, Computer Science.

Sunday, April 13, 2008

Scalable Mail System

How Rackspace Now Uses MapReduce and Hadoop to Query Terabytes of Data
This is a very good post about the battle of building a scalable system. This shows you how much time and effort you can spend to test the best architecture that satisfies your needs. If you read this article, if you don't care about the technical solution, if you are convinced that a solution based on relational DB would still be satisfying..No problem. Just watch the life time they took to grow their system and the huge development time they did.

Was it possible to get the logging v3+ with 2,3 weeks of work?

Anyway, the article revealed when i was working as tech and engineering on zimbra :). whenever a problem raised, i grabbed the logs stored on the local disk, and try to analyze data to check the problem..OH! those were the days my zimbra friend...

Saturday, April 12, 2008

The First Cavalryman

"O Prophet of Allah, go ahead with what Allah has inspired you to do. We will stand by you. By Allah, we will never say as the Children of Israel said, `So go you and your Lord and fight you two, we are sitting right here.' Instead, we will say, `Go you and your Lord and we will fight with you.' By Allah, Who has sent you with the truth, if you take us to the end of the world, we will tolerate all hardships until we reach it with you. We will fight on your left, your right, in front of you and behind you until Allah bestows victory on you."AL- MIQDAAD IBN `AMR

AL- MIQDAAD IBN `AMR known as the first cavalry Muslim to strive in the way of Allah... He was once adopted by Al-Aswad lbn Abd Yaghuuth. thus was called Al-Miqdaad Ibn Al-Aswad, and he retained his father name "Amr Ibn-Saad" when adoption was abrogated by Islam. that man show wisdom, intelligence and courage.

One of the quotes said by Al-Miqdaad was the difference between Prophet(PBUH)'s companions and the followers.
When a man addressed Al-Miqdaad saying: "All kinds of happiness are for these eyes which have seen Allah's Prophet (PBUH). By Allah, we wish that we saw what you have seen and witnessed what you have witnessed."..Al-Miqdaad Said "Why should anyone wish to witness a scene that Allah did not wish him to see? He does not know what it would have been like if he had witnessed it or which party he would have been among if he went back in time. By Allah, Allah's Prophet (PBUH) saw people who were thrown right into hell, so you should thank Allah that you were spared such a trial and were honored by firm belief in Allah and His Prophet (PBUH)."

Saturday, March 08, 2008

Unstable

A long time since I wrote any blog entries...

The last period was very tough for me. I met a lot of obstacles, putting me down, pushing me off the track.
I delivered my project without any happiness, I feel that I am not achieving any thing new. in contrary, I am loosing through the days a lot of things.

I have some technical stuff to write, but no enthusiasm to do it. Will a new technical entry help me to get better??

Sunday, February 03, 2008

Boutros-Boutros Ghali Archive

foI have been assigned to the Boutros Ghali archiving project since I moved to Bibliotheca Alexandrina.


My task description was to supervise/organize the digitization of the 31,650 documents, build an automated dataentry engine, and finally build a site to publish the documents.

The collection includes various documents related to the positions occupied by Boutros Ghali as:

1. The Egyptian Minister of State for Foreign Affairs from 1977 till early 1991. This group includes important documents pertaining to Egyptian foreign affairs, such as the Arab-Israeli conflict, the Camp David accords and Egypt’s role in the African and Arab region.

2. The Secretary-General of the United Nations from January 1992 to December 1996. The BA has obtained the documents of his Excellency’s meeting notes for years 1993, 1994, and 1996.

A great effort was exerted in order to categorize the documents based on their type, their language, and finally their contents. So far the following categories have been established: reports, letters, press, treaties, speeches, conversations, and meeting notes. The collection contains documents in a numerous languages, including Arabic, English, French, Spanish, German, Italian, and Indian. The contents of the documents have also been categorized under UN, Arabic Israeli Conflict, Africa, Middle East, South America, North America, Asia, and finally Europe, as Egypt’s foreign relations were extending all over the world.

In order to achieve this classification, an indexing application was developed, working as the backend that helps to reorder the scanned documents, assemble related pages in one job entry, assign each job to its category and finally insert the metafield values (date, title…etc.)

Furthermore, the indexing application reduces the time required for data entry by directly OCRing the portions of the pages having the important fields and saving their values to the Database.

A website interface is being designed and the site itself is currently under development for the publishing of the collection.

Friday, February 01, 2008

Dr Azeez Sedky has passed Away

Dr Azeez Sedky, the minister of industry during the edge of Nasser and Sadat, the 88 years old, passed away in Paris.

I respect that man too much, he is named as the Father of Egyptian Industry. He built all the manufactures in Egypt after July revolution. He could move Egypt from an agriculture country to an industrial one.

The failure of his manufactures doesn't reflect his great work, he put everything on the track. The policy in Egypt now is to sell all the manufacturers built before.

I didn't find resources talking about him on the internet..this is weird.

read more:
http://www.albawaba.com/ar/news/276408
http://www.elkarama.net/egypt/showthread.php?t=1384
http://www.almasry-alyoum.com/article.aspx?ArticleID=91343

NO Connection.....NO Cable!!

We have experienced internet service disruption on Wednesday. More than 90% of Egyptians couldn't have access to the internet.
AS we know it was due to corruption of the submarine Flag Telecoms(in the Mediterranean sea).
FLAG Telecoms operate the Fiber-Optic Link Around the Globe (FLAG), a 28,000km long submarine communications cable.

the disruption in Egypt caused many problems in other countries in the middle east, India also was affected by this disruption and up to 60% lock.

No figures about how much does the disruption wasts in Egypt, this is normal case as we don't have any statistical engines able to collect numbers and reports fired by any event.

Sunday, January 27, 2008

ImageMagick: Installation on MAC ( Third Shot)

After I installed ImageMagick on my MAC. I couldn't run the mogrify commands to resize my JPG image.
the error i got was..
No decode delegate for image format
So, I tried to rename my file to gif and test but i got the same error again. I thought that my installation was not able to find the module responsible of decoding different formats.
I couldn't find any solution to the problem, but i figured out that I was wrong about renaming the file. this was not enough as a work around.

I reinstalled the imageMagick another time but with some more complex steps this time. this time I will add the PNG support to my installation.

  1. Install Fink.
  2. Add /sw/bin is in your path. (on the root vi .bash_login)
  3. add symbolic link: cd /Developer/SDKs/MacOSX10.4u.sdk
    ln -s sw /sw
  4. Download the libpng lib. Make sure to read the INSTALL file of the downloaded folder. It will guide you to install the zlib as well.
  5. Make sure the files are included in your include folder . in /usr/local/include. The files you'll be looking for are named "png.h"
  6. gunzip -c ImageMagick.tar.gz | tar xvf -
  7. cd ImageMagick-3.8
  8. ./configure --prefix=/sw --with-quantum-depth=16 \
    --disable-dependency-tracking --with-x=yes \
    --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib/ \
    --without-perl --with-png=yes
  9. read the console and make sure that the PNG format was supported successfully.
  10. make
  11. sudo make install
  12. In case you need to check a list of supported format from of the ImageMagick run the following command $convert -list format.
  13. you can apply this for all formats you need (jpeg, tiff...etc). the ImageMagick doesn't support all formats by default.


Saturday, January 26, 2008

ImageMagick: Installation on MAC ( Second Shot)

Referring to my previous post, I found the ImageMagick not working it gave me the following error..

Error Output:
dyld: Library not loaded: /ImageMagick-6.3.8/lib/libMagick.6.dylib
Referenced from: /Users/tfield/ImageMagick-6.3.8/bin/convert
Reason: image not found

I couldn't find the reasons for this error. So, I deleted my installations and started to compile it from scratch.
the end result was as I expected, it works now on my MAC. It seems that the there is something wrong with the binary distribution.
  1. Get the source code from this link.
  2. gunzip -c ImageMagick.tar.gz | tar xvf -
  3. cd ImageMagick-6.3.3
  4. ./configure
  5. make
  6. sudo make install
everything should be working now. Type convert -version in the command line to check the installation version.

ImageMagick: Installation on MAC

  1. Install MACPorts from the pckg.
  2. Configure your shell to use the port from shell.
  3. run from new shell window the following command..
    sudo port install ImageMagick

Friday, January 25, 2008

PDFTextOnline

A very nice web-based application is now available to extract txt from PDF files..
PDFTextOnline is a web2.0 application that helps you save the extraction to plain text file, and change the layout and font, as well as access the bookmarks and properties of the original PDF file.

I think that google will buy this soon..