About Me

My photo
PhD Candidate at Purdue University, Computer Science.

Sunday, December 14, 2008

My Word Clouds





Wordle creates a word cloud to your blog, you can pick different outputs, and manage fonts/languages/colors...etc

Aiming at SVG..Experience Rich Web


I think that the future will be for the SVG replacing the normal image formats..
First time for me to hear about SVG was when I was discovering the Batik. I liked at that time the easy way the batik provide access to SVG.
But I didn't go deep with this as SVG couldn't be used with web products at that time.
Currently, the latest versions of Mozilla is supporting SVG, and work is still going to fully integrate it to the firefox. check the Mozilla SVG project for further information.
Opera also announced that it has support to some extent for the SVG
Adobe released Adobe viewer which is a plugin to support SVG in browsers, though I prefer a native support without relying on plugins.
So why someone should use SVG instead of normal image formats in web:
  • SVG is a vector format, SVG images can be printed with high quality at any resolution.
  • SVG is plain text, it's W3C standard. So, you can deduce that it is much more easy to compress these text formats.
  • As it is text .. then SVG support search in text! Suppose you implement google maps on SVG then you can search the text in the maps. (interesting)
  • Did you worry every time by the level of zooming you provide vs the resolution you have for your image? With SVG there is no worries about pixelization with increasing zooming level. You can get very good zooming quality.
  • You can get the same effect you want with Flash as the SVG supports animation.
  • It's open source if you seek openess.


من فضلك....رجعلى رصيدى

من كام يوم جالى اتصال من رقم غريب
آلو
سمعت صوت حد بيتكلم بسرعة ، مفهمتش حاجة.
أفندم؟ واحدة واحدة بس كدة
بالعافية قدرت ألزق الكلام عشان أفهم
ياريت حضرتك ترجعلى تحويل رصيد 50 جنيه اتبعت عندك بالغلط
انت بتكلمنى أنا؟ انت عايز مين أصلا؟
يا سيدى بالراحة عليا..أنا باسألك يافندم اذا كان جالك تحويل رصيد
لأ ماجش..حاجة تانى؟
خلاص يافندم..لو جه ابعتوا علر الرقم بتاعى تانى..س كده
بس كده؟
و كل سنة و انت طيب
وانت بالصحة والسلامة ياخويا

بعد 5 دقائق، جاتلى رسالة
"
تم نقل 50 جنيه لك من 0163993090
50 LE sent to you from 0163993090
"
وطبعا عشان دى أمانة رديت ليه ال 50 جنيه مرة تانية بس بأسلوبه و رديت برسالة على رقمه
"
تم نقل 50 جنيه لك من -------------------

50 LE sent to you from --------------
"
و سلام مربع للنصابين

Friday, December 12, 2008

Working with Fonts on Linux

I am in a project where I need to collect documents created on various environments to the Linux system.
An important aspect is to preserve the fonts as much as we can. So, for example I need to import fonts from Windows to Linux.

first to know the fonts you have already on your ubuntu/debian distributions run the following command.
$ find /usr -iname \*.ttf
The fonts should be in the /usr/share/fonts directory.

To install the Webcorefonts run the following command
$ sudo apt-get install msttcorefonts


In case you need more fonts, you can get them directly from the windows folder:
$ cd /usr/share/fonts
fonts$ mkdir newfonts
newfonts$ cp imported_fonts_path .
newfonts$ chown root.root *.ttf
newfonts$ chmod 644 *.ttf
newfonts$ mkfontdir
newfonts$ cd ..
fonts$ gedit fonts.cache-1
fonts$ ##append the following to the end of the file ["newfonts" 0 ".dir"]
fonts$ fc-cache


If you like to learn more about fonts on linux..visit this page

Thursday, December 11, 2008

Back to Shell

Finally, I am back to the open source world.

After getting my new used Toshiba Satellite A100, I downloaded Ubuntu 8.10.
Something I liked when installing the new ubuntu is its ability to be installed within Windows. So, u don't have to bother about restarting, disk formats..bla..bla..bla.

I checked the new OS installation on my laptop. Well, I am impressed, everything seemed to be working smoothly.

My next step was to run the JikesRVM on eclipse to start some development.
in order to achieve this:

if you run
$ dpkg --get-selections | egrep '32|gcc'

u will get a list of the libraries you have on your system.
While for the jikes compilation u will need gcc multilib and g++ multilib
so, you should get the g++-multilib by running
$ sudo apt-get install g++-multilib
You will also need Bison
$ sudo apt-get install bison
get ant
$ sudo apt-get install ant
get your Java packages by running..
$ sudo apt-get update
$ sudo apt-get install sun-java6-jre sun-java6-jdk sun-java6-plugin

In case you have other java installations ..Run this command to fix configurations.
$ sudo update-java-alternatives -s java-6-sun
Set your $JAVA_HOME variable
$ sudo gedit /etc/environment
and add JAVA_HOME = "/usr/lib/jvm/java-sun-6"

Re-login
Download eclipse from its official site.
$ sudo apt-get install subversion
$ svn co https://jikesrvm.svn.sf.net/svnroot/jikesrvm/rvmroot/trunk jikesrvm
$ cd jikesrvm
jikesrvm$ bin/buildit --eclipse localhost -j $JAVA_HOME
Import the project into workspace.

I found some errors in the source code after getting the project into eclipse.
My friend Morshedy advised that it may be a common problem with the eclipse, so I run the
jikesrvm$ find -wholename *.java  -exec touch {} \;
but didn't solve it.

So, I guess I will wait for an update on the SVN.

Update: it was not my lucky day when I was building jikes..I tried to build it many times on that day. but I got errors when openening in eclipse...
So, I retired again a day later by :
jikesrvm$ rm rf components
jikesrvm$ ant very-clean
and then rebuild..it worked fine this time

Friday, December 05, 2008

مِنْ أوباما .. لِجَميعِ الأعرابِ شُعوبًا أو حُكّامًا

مِنْ أوباما ..
لِجَميعِ الأعرابِ شُعوبًا أو حُكّامًا:
قَرْعُ طَناجِرِكُمْ في بابي
أرهَقَني وَأطارَ صَوابي..
(افعَلْ هذا يا أوباما..
اترُكْ هذا يا أوباما
أمطِرْنا بَرْدًا وسَلاما
يا أوباما.
وَفِّرْ للِعُريانِ حِزاما!
يا أوباما.
خَصِّصْ للِطّاسَةِ حَمّاما!
يا أوباما.
فَصِّلْ للِنَملَةِ بيجاما!
يا أوباما)..
قَرقَعَة تَعلِكُ أحلاماً
وَتَقيء صَداها أوهَامَا
وَسُعارُ الضَّجّةِ مِن حَوْلي
لا يَخبو حتّى يتنامى.
وَأنا رَجْلٌ عِندي شُغْلٌ
أكثَرُ مِن وَقتِ بَطالَتكُمْ
أطوَلُ مِن حُكْمِ جَلالَتِكُمْ
فَدَعوني أُنذركُمْ بَدءًا
كَي أحظى بالعُذْر ختاما:
لَستُ بِخادمِ مَن خَلَّفَكُمْ
لأُسِاطَ قُعودًا وَقياما.
لَستُ أخاكُمْ حَتّى أُهْجى
إن أنَا لَمْ أصِلِ الأرحاما.
لَستُ أباكُمْ حَتّى أُرجى
لأكِونَ عَلَيْكُمْ قَوّاما.
وَعُروبَتُكُمْ لَمْ تَختَرْني
وَأنا ما اختَرتُ الإسلاما!
فَدَعوا غَيري يَتَبَنّاكُمْ
أو ظَلُّوا أبَداً أيتاما!
أنَا أُمثولَةُ شَعْبٍ يأبى
أن يَحكُمَهُ أحَدّ غَصبْا..
ونِظامٍ يَحتَرِمُ الشَّعبا.
وَأنا لَهُما لا غَيرِهِما
سأُقَطِّرُ قَلبي أنغاما
حَتّى لَو نَزَلَتْ أنغامي
فَوقَ مَسامِعِكُمْ.. ألغاما!
فامتَثِلوا.. نُظُمًا وَشُعوبًا
وَاتَّخِذوا مَثَلي إلهاما.
أمّا إن شِئتُمْ أن تَبقوا
في هذي الدُّنيا أنعاما
تَتَسوَّلُ أمْنًا وَطَعاما
فَأُصارِحُكُمْ.. أنّي رَجُلٌ
في كُلِّ مَحَطّاتِ حَياتي
لَمْ أُدخِلْ ضِمْنَ حِساباتي
أن أرعى، يوماً، أغناما
..

Thursday, December 04, 2008

TypeAlyzer - Second Iteration

After they evaluated me as a Duty Fulfiller, I found a new analysis to my blog link..
I have been categorized as mechanics.

I can justify this that:
  1. they did recently some refinements to their analysis system.
  2. they rewarded me to post about their site : - )

ISTP - The Mechanics

The independent and problem-solving type. They are especially attuned to the demands of the moment are masters of responding to challenges that arise spontaneously. They generally prefer to think things out for themselves and often avoid inter-personal conflicts.

The Mechanics enjoy working together with other independent and highly skilled people and often like seek fun and action both in their work and personal life. They enjoy adventure and risk such as in driving race cars or working as policemen and firefighters.