About Me

My photo
PhD Candidate at Purdue University, Computer Science.

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..

Tuesday, January 22, 2008

ليالي الحلميه

I can't feel bored of listening to these words written by Sayed Hejab...
كلمات سيد حجاب
الحان ميشيل المصري

منين بيجي الشجن.. من اختلاف الزمن
و
منين بيجي الهوى.. من ائتلاف الهوى
ومنين بيجي السواد.. من الطمع والعناد
ومنين بيجي الرضا ..من الايمان بالقضا

من انكسار الروح في دوح الوطن
يجي احتضار الشوق في سجن البدن
من اختمار الحلم يجي النهار
يعود غريب الدار لـ أهل وسكن

ليه يا زمان ما سبتناش أبرياء
وواخدنا ليه في طريق ما منوش رجوع
أقسى همومنا يفجر السخرية
وأصفى ضحكة تتوه في بحر الدموع


ولفين ياخدنا الأنين
لليالي ما الهاش عينين
ولفين ياخدنا الحنين
لواحةالحيرانين

ما تسرسبيش يا سنيننا من بين ايدينا
ولا تنتهيش ده احنا يا دوب ابتدينا
واللى له أول بكرة حيبان له آخر
وبكرة تفرج مهما ضاقت علينا

ولفين ياخدنا الأنين
لليالي ما الهاش عينين
ولفين ياخدناالحنين
لواحة الحيرانين

Monday, January 21, 2008

Unlock the Power of BroadCasting

Today I came acroos Viddler, one of the broadcast sites. I laughed when I saw it, and I have my reasons .

the site lets users add their comments on a given shots of the video with the ability to use their own webcam, as well as tagging a given shot...Brilliant, I think.
Somehow, it may sound impractical specially when the video receives so many comments.
But the idea is still very nice..
Waiting for some more.

Sunday, January 20, 2008

Listen to Pandora

GlobalPandora unlocks the pandora website...it handles all the problem for me to open Pandora website instead of digging in the webProxies.

Enjoy your pandora..

هَذِي بـِلادٌ .. لمْ تـَعُـــدْ كـَبـِلاد

قصيدة العام للشاعر الكبير فاروق جويدة




كم عشتُ أسألُ: أين وجــــــــهُ بــــلادي أين النخيلُ وأيـن دفءُ الــوادي

لاشيء يبدو في السَّمـَــاءِ أمـامنــــــــــا غيرُ الظـلام ِوصــورةِ الجــلاد

هو لا يغيبُ عن العيــــــــون ِكأنــــــــه قدرٌٌ .. كيوم ِ البعــثِ والميــــلادِ

قـَدْ عِشْتُ أصْــــرُخُ بَينـَكـُمْ وأنـَـــــادي أبْنِي قـُصُورًا مِنْ تِـلال ِ رَمَـــادِ

أهْفـُـو لأرْض ٍلا تـُسـَـــاومُ فـَرْحَتـِــــي لا تـَسْتِبيحُ كـَرَامَتِي .. وَعِنَــادِي

أشْتـَـاقُ أطـْفـَـــــالا ً كـَحَبــَّاتِ النـَّــــدَي يتـَرَاقصُونَ مَـعَ الصَّبَاح ِالنـَّادِي

أهْـــفـُــــو لأيـَّـام ٍتـَـوَارَي سِحْــرُهَـــــا صَخَبِ الجـِيادِ.. وَفرْحَةِ الأعْيادِ

اشْتـَقـْــــتُ يوْمـًا أنْ تـَعـُــودَ بــِــــلادِي غابَتْ وَغِبْنـَا .. وَانـْتهَتْ ببعَادِي

فِي كـُلِّ نَجْــم ٍ ضَــلَّ حُلـْـــٌم ضَائـِـــــع ٌ وَسَحَابَــة ٌ لـَبسـَـتْ ثيــَـابَ حِدَادِ

وَعَلـَي الـْمَدَي أسْـرَابُ طـَيــر ٍرَاحِــــل ٍ نـَسِي الغِنَاءَ فصَارَ سِـْربَ جَرَادِ

هَذِي بِلادٌ تـَاجَـــرَتْ فــِـي عِرْضِهـــَــا وَتـَفـَـرَّقـَتْ شِيعًا بـِكـُـــلِّ مَـــزَادِ

لـَمْ يبْقَ مِنْ صَخَبِ الـِجيادِ سِوَي الأسَي تـَاريخُ هَذِي الأرْضِ بَعْضُ جِيادِ

فِي كـُلِّ رُكـْن ٍمِنْ رُبــُــوع بـِـــــلادِي تـَبْدُو أمَامِي صـُورَة ُالجــَــــلادِ

لـَمَحُوهُ مِنْ زَمَن ٍ يضَاجـِــعُ أرْضَهَـــا حَمَلـَتْ سِفـَاحًا فـَاسْتبَاحَ الـوَادِي

لـَمْ يبْقَ غَيرُ صـُـرَاخ ِ أمـْــس ٍ رَاحـِـل ٍ وَمَقـَابـِر ٍ سَئِمَتْ مـِــنَ الأجْـــدَادِ

وَعِصَابَةٍ سَرَقـَتْ نـَزيــفَ عُيـُـونِنـَــــا بـِالقـَهْر ِ والتـَّدْليـِس ِ.. والأحْقـَادِ

مَا عَادَ فِيهَا ضَوْءُ نـَجْــــم ٍ شـَــــــاردٍ مَا عَادَ فِيها صَوْتُ طـَير ٍشـَـــادِ

تـَمْضِي بـِنـَا الأحْزَانُ سَاخِــــرَة ًبـِنـَــا وَتـَزُورُنـَا دَوْمــًا بـِـلا مِيعــَـــادِ

شَيءُ تـَكـَسَّرَ فِي عُيونـِــــي بَعْدَمَـــــا ضَاقَ الزَّمَانُ بـِثـَوْرَتِي وَعِنَادِي

أحْبَبْتـُهَا حَتـَّي الثـُّمَالـَـــــة َ بَينـَمـَــــــا بَاعَتْ صِبَاهَا الغـَضَّ للأوْغـَــادِ

لـَمْ يبْقَ فِيها غَيـرُ صُبْــح ٍكـَـــــــاذِبٍ وَصُرَاخ ِأرْض ٍفي لـَظي اسْتِعْبَادِ

لا تـَسْألوُنـِي عَنْ دُمُـوع بــِــــــلادِي عَنْ حُزْنِهَا فِي لحْظةِ اسْتِشْهَادِي

فِي كـُلِّ شِبْر ٍ مِنْ ثـَرَاهـَا صَــرْخَـــة ٌ كـَانـَتْ تـُهَرْولُ خـَلـْفـَنـَا وتـُنَادِي

الأفـْقُ يصْغُرُ .. والسَّمَــاءُ كـَئِيبـَـة ٌ خـَلـْفَ الغُيوم ِأرَي جـِبَالَ سَـوَادِ

تـَتـَلاطـَمُ الأمْوَاجُ فـَــوْقَ رُؤُوسِنـَــــــا والرَّيحُ تـُلـْقِي للصُّخُور ِعَتـَادِي

نَامَتْ عَلـَي الأفـُق البَعِيـــدِ مَلامــــــحٌ وَتـَجَمَّدَتْ بَينَ الصَّقِيـِع أيـــَـــادِ

وَرَفـَعْتُ كـَفـِّي قـَدْ يرَانـِي عَاِبـــــــــرٌ فرَأيتُ أمِّي فِي ثِيـَــابِ حـِـــــدَادِ

أجْسَادُنـَا كـَانـَتْ تـُعَانـِـــقُ بَعْضَهـَــــا كـَوَدَاع ِ أحْبَــابٍ بــِــلا مِيعـَــادِ

البَحْرُ لـَمْ يرْحَمْ بَـرَاءَة َعُمْرنـَـــــــــا تـَتـَزاحَمُ الأجْسَادُ .. فِي الأجْسَادِ

حَتـَّي الشَّهَادَة ُرَاوَغـَتـْنــِي لـَحْظـَــة ً وَاستيقـَظـَتْ فجْرًا أضَاءَ فـُؤَادي

هَذا قـَمِيـصـِـــي فِيهِ وَجْــــهُ بُنـَيتــِي وَدُعَاءُ أمي .."كِيسُ"مِلـْح ٍزَادِي

رُدُّوا إلي أمِّي القـَمِيـــصَ فـَقـَـدْ رَأتْ مَالا أرَي منْ غـُرْبَتِي وَمُـرَادِي

وَطـَنٌ بَخِيلٌ بَاعَنــي فـــــي غفلـــــةٍ حِينَ اشْترتـْهُ عِصَابَة ُالإفـْسَـــادِ

شَاهَدْتُ مِنْ خـَلـْفِ الحُدُودِ مَوَاكِبــًـا للجُوع ِتصْرُخُ فِي حِمَي الأسْيادِ

كـَانـَتْ حُشُودُ المَوْتِ تـَمْرَحُ حَوْلـَنـَا وَالـْعُمْرُ يبْكِي .. وَالـْحَنِينُ ينَادِي

مَا بَينَ عُمْـــــر ٍ فـَرَّ مِنـِّي هَاربـــــًـا وَحِكايةٍ يزْهـُــو بـِهـَـــا أوْلادِي

عَنْ عَاشِق ٍهَجَرَ البـِلادَ وأهْلـَهـــــــَـــا وَمَضي وَرَاءَ المَال ِوالأمْجـَـــادِ

كـُلُّ الحِكـَايةِ أنَّهـــَـــا ضَاقـَتْ بـِنـَـــــا وَاسْتـَسْلـَمَتَ لِلــِّـصِّ والقـَـــوَّادِ!

في لـَحْظـَةٍ سَكـَنَ الوُجُودُ تـَنـَاثـَـــرَتْ حَوْلِي مَرَايا المَوْتِ والمِيـَـــلادِ

قـَدْ كـَانَ آخِرَ مَا لـَمَحْتُ عـَلـَي الـْمَـدَي وَالنبْضُ يخْبوُ .. صُورَة ُالجـَلادِ

قـَدْ كـَانَ يضْحَـكُ وَالعِصَابَة ُحَوْلـَــــــهُ وَعَلي امْتِدَادِ النَّهْر يبْكِي الوَادِي

وَصَرَخْتُ ..وَالـْكـَلِمَاتُ تهْرَبُ مِنْ فـَمِي : هَذِي بـِلادٌ .. لمْ تـَعُـــدْ كـَبـِلادِي



Saturday, January 19, 2008

I AM LEGEND


A wonderful movie with a wonderful Super Star.. Will Smith.

The movie is very well made, much more better than the silly movies of "Walking Death". The Last man on earth played by Will Smith, gives you really how can you feel when you are very alone. the charisma of Smith was very enough to let you be attractive to the Dr Neville during the film.
The director played a very good suspense, give you the curiosity to know what would appear at night. Instead, he postponed this and let you wonder "what can make the man sleep with his dog in the bath"...

If I have the time to write about that movie, I can write many lines.

Sunday, January 13, 2008

Israeli Startups to CA

Israel Web Tour will visit Silicon Valley next February.
15 Israeli startups are participating for a week-conference and cultural exchange with Silicon Valley.
NINETY ISRAELI STARTUP submitted for that event and FIFTEEN were chosen.
Those startups are:
5min, Plymedia, AllofMe, Nuconomy, ClickTale, blogTV, Sportingo, PicScout, Qoof, 8hands, Velingo, Innovid, Semingo, PageOnce and Journeys.

3amar ya masr :(

Saturday, January 12, 2008

Rails...What's next

Referring to my previous post, I made a simple web application using the new installed rails. In the start I was confused, some of my code was not working as expected.
I just left rails for 2 months, what a hell has happened??? Did I forgot anything about rails!!

the first thing not working with me was the templates..oh, the naming convention was changed in new rails.
So, instead of "show.rhtml" i should name it "show.html.erb". I don't like when the naming conventions are changed, but the naming change was not on the MICROSOFT way. it was reasonable change. this convention was inserted to support multiview, now, i will be able to support many templates "show.json.erb", "show.html.erb"..etc
This is really interesting.

Many of things have changed!! even the migrations.
they are completely different...look more friendly than before.

Something makes me worry is that the ruby environment is too liquid. in a release a lot of things can happen.

The environment I work within now doesn't help me to follow the rails move...I am worry that I loose track.

Happy rails.

Grab my links from FireFox

Finally, i am able of grabbing all my links. a firefox add-on copy all-urls will copy all the urls of opened tabs.
All u have to do is simply go to edit->copy all urls.

Friday, January 11, 2008

كلمات احبها

و ينفِلِت من بين إيدينا الزمان

كإنه سَحبة قوس في أوتار كمان

و تنفرط الايام عود كهرمان

يتفرفط النور و الحنان و الأمان

و ينفلت من بين إيدينا الزمان


الشر شرق و غرب داخل في حوشنا

حوشوه لا ريح شاردة تقشقش عشوشنا

حوشوا شرارة تطيش تشقق عروشنا

و تغشنا المرايات تشوش وشوشنا

و تهيل تراب ع الهالة و الهيلمان


الغش طرطش رش ع الوش بوية

ما درتش مين بلياتشو أو مين رزين

شاب الزمان و شقيت .. مش شكل أبويا

شاهت وشوشنا تهنا بين شين و زين

ولسه ياما و ياما حنشوف كمان


سيدحجاب

Alhambra


Today, I spent the majority of time reading about Arab in Al-Andalus.
I was impressed about the cultural mix going on there, and then the way that the mix was replaced by racism and foolish. I was very impressed about how the Arab affected the Spanish history(real history), and how this was completely denied in the Spanish memory/history.

The Spanish kings tried to clean any arab existence in Al-Andalus, but they couldn't clear their inner respect to this Amazing Civilization so that they kept all the palaces and cities as they were.

I read magnificent things about Alhambra palace. I wish I can pass by this great architecture some day. I was really impressed by the architecture, the mathematics. the palace represents the peak of craft for architecture and mathematics.



و دقيت على باب الأمل و الصبر .. ما جاوبني غير الصدى
مات الزمان .. و الأرض صبحت قبر .. و تطل عيني على المدى
آه .. يا ولدي
إيه أكتر من ده دم؟ إيه أكتر من ده هم يا أمة العرب؟
حنموت إذا مات الغضب
اترملوا الأرامل .. و اتيتموا اليتامى
و دم الشهيد اللي اتنسى .. حرام ولا حلال يا عالم؟
و دم الشهيد اللي اتنسى .. حرام ولا حلال يا خلق الله؟
يا أمة العرب .. هل متِّ؟ هل هنتِ؟
أرض العرب بتُغتَصَب و بتُغتَصَب
فين العروبة و الرجولة و الرجال؟
فين الخطاوي اللي حتعبر المحال و تجاوب السؤال؟
يا أمة العرب .. شيء من الغضب
شيء من الغضب .. شيء من الغضب

يا امه العرب
كلمات عبد الرحمن الابنودي
من فيلم عمر المختار

Monday, January 07, 2008

Wi-Fi Thieves

Sometimes people argue that using an open WiFi is not "stealing", it is the same as listening to the radio. If the signals come to my device without hacking, then logically it's legal to access them!!
If my neighbor is silly, it's basically his problem.

Actually, I don't agree with this. Islam doesn't allow to hurt others. accessing your neighbor WiFi may eat his broadband and slow down his connection (hence affect his own access to his proprietary)

Being Muslim....Good muslim implies you can't take anything without permission.
I believe this is enough to make stealing Wi-Fi connections forbidden.

in UK, accessing unsecured WiFi without permission is considered illegal. I think it is the same in some of the USA states.