Today, We released Taysseer Zilmenna alpha release.
The current release is not still stable, We hope that we will add some enhancements later. I am not able to dedicate time for it now, as I have many projects and assignments to do. But I have some ideas to add.
About Me
- Ahmed Abd-ElHaffiez Hussein
- PhD Candidate at Purdue University, Computer Science.
Showing posts with label tools. Show all posts
Showing posts with label tools. Show all posts
Wednesday, March 31, 2010
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.


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.
To install the Webcorefonts run the following command
In case you need more fonts, you can get them directly from the windows folder:
If you like to learn more about fonts on linux..visit this page
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 \*.ttfThe 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 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:
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.
I have been categorized as mechanics.
I can justify this that:
- they did recently some refinements to their analysis system.
- they rewarded me to post about their site : - )
ISTP - The Mechanics
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.
Sunday, November 23, 2008
TypeAlayzer
check this out..
New interesting way in analyzing urself!
this time throw ur blog.
I found it quite funny idea.
this is the result of my blog, though I am sure it is not accurate because I have some non-english entry.
New interesting way in analyzing urself!
this time throw ur blog.
I found it quite funny idea.
this is the result of my blog, though I am sure it is not accurate because I have some non-english entry.
ISTJ - The Duty Fulfillers
The responsible and hardworking type. They are especially attuned to the details of life and are careful about getting the facts right. Conservative by nature they are often reluctant to take any risks whatsoever.
The Duty Fulfillers are happy to be let alone and to be able to work int heir own pace. They know what they have to do and how to do it.
The Duty Fulfillers are happy to be let alone and to be able to work int heir own pace. They know what they have to do and how to do it.
Thursday, November 20, 2008
Monday, October 27, 2008
Memory of Modern Egypt..Here we come
Today, Memory of Modern Egypt will be finally launched.
"Memory of Modern Egypt is an endeavor to produce the definitive repository for culturally and historically significant material pertaining to the modern history of Egypt, from the French Expedition in 1798 to the end of Al-Sadat’s presidency in 1981".
"Memory of Modern Egypt is an endeavor to produce the definitive repository for culturally and historically significant material pertaining to the modern history of Egypt, from the French Expedition in 1798 to the end of Al-Sadat’s presidency in 1981".
Tuesday, September 23, 2008
Taysseer Zi El Menna
Taysseer zi el menna, is my next web site.
Stay tuned for my coming posts about it........
Stay tuned for my coming posts about it........
Saturday, May 10, 2008
Thursday, May 08, 2008
Accessing multi-solr through acts_as_solr
You may need for multicore to manage multi languages search at least. An approach to solve the multilanguages problems is to use replication of each field (i.e field_arabic, field_english, field_french..etc) which I think is not feasible for large systems..
As a quick fix, using the acts_as_solr plugin, I just added a parameter to the Post method. I send the url to the method and post my request on this specific solr url. So, I make the search by iterating on all the solrs I define in my rails application and then combine the results.
The advantage of this approach that you don't enforce the user to specify the language he uses in the query, which I think it worth.
Check the multi-solr cores shaped. I didn't have the time to try it yet. This is really a powerful feature to add to the solr core. It is similar to having many solr running on one tomcat.
As a quick fix, using the acts_as_solr plugin, I just added a parameter to the Post method. I send the url to the method and post my request on this specific solr url. So, I make the search by iterating on all the solrs I define in my rails application and then combine the results.
The advantage of this approach that you don't enforce the user to specify the language he uses in the query, which I think it worth.
Check the multi-solr cores shaped. I didn't have the time to try it yet. This is really a powerful feature to add to the solr core. It is similar to having many solr running on one tomcat.
Sunday, April 27, 2008
Javascript Flavour
I tried to introduce Prototype recently at my work...I was making some effort to let my peers in other teams get use of it..
I asked myself why did I move to prototype at first place!!
I guess the answer is time. Being alone in a project where you have to take care of all the tiny details (DB design, performance tuning, Data monitoring, HTML and CSS, Javascript, Java code, Ruby on rails, image processing..etc) was pushing me to dig to isolate myself from many details.
In Javascript I picked prototype.
The reasons were..Ruby on Rails helpers for prototype makes life makes much more easier. Although, I didn't use many helpers frequently for reasons and design..just the idea that there is a helper that will do the dirty work for me in case of time crunch makes me feel more safe.
Back to the reasons, 1-For example i think that rendering the helpers take more time than writing straight code. 2-helpers messes with the view. The HTML is blended with Javascript code, I think it is better to isolate your JS code form your HTML.
Prototype syntax is Ruby like, which makes time of development much more faster.
I faced some problems with prototype, mainly when there is conflict with function names. You can stay many hours looking for the error.
May be next time I can try the JQuery, It has many cons I believe that I can taste.
I asked myself why did I move to prototype at first place!!
I guess the answer is time. Being alone in a project where you have to take care of all the tiny details (DB design, performance tuning, Data monitoring, HTML and CSS, Javascript, Java code, Ruby on rails, image processing..etc) was pushing me to dig to isolate myself from many details.
In Javascript I picked prototype.
The reasons were..Ruby on Rails helpers for prototype makes life makes much more easier. Although, I didn't use many helpers frequently for reasons and design..just the idea that there is a helper that will do the dirty work for me in case of time crunch makes me feel more safe.
Back to the reasons, 1-For example i think that rendering the helpers take more time than writing straight code. 2-helpers messes with the view. The HTML is blended with Javascript code, I think it is better to isolate your JS code form your HTML.
Prototype syntax is Ruby like, which makes time of development much more faster.
I faced some problems with prototype, mainly when there is conflict with function names. You can stay many hours looking for the error.
May be next time I can try the JQuery, It has many cons I believe that I can taste.
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..
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.
the error i got was..
No decode delegate for image formatSo, 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.
- Install Fink.
- Add /sw/bin is in your path. (on the root vi .bash_login)
- add symbolic link: cd /Developer/SDKs/MacOSX10.4u.sdk
ln -s sw /sw - 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.
- 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"
gunzip -c ImageMagick.tar.gz | tar xvf -
- cd ImageMagick-3.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 - read the console and make sure that the PNG format was supported successfully.
- make
- sudo make install
- In case you need to check a list of supported format from of the ImageMagick run the following command $convert -list format.
- 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..
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.
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.
- Get the source code from this link.
- gunzip -c ImageMagick.tar.gz | tar xvf -
- cd ImageMagick-6.3.3
- ./configure
- make
- sudo make install
ImageMagick: Installation on MAC
- Install MACPorts from the pckg.
- Configure your shell to use the port from shell.
- 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..
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, November 06, 2007
Configure libtiff for Visual C
I had to move my working environment to windows to realize integration with my organization. So, one of the steps was to configure libtiff to work on Visual C.
To use LIBTIFF in your existing VC++ 6.0 Project/WorkSpace, you need to do the following setting modifications:
- Open your existing Project/WorkSpace file in VC++ 6.0
- Choose Project-Settings... menu item.
- Click "C/C++" tab.
- Choose "Preprocessor" item in the "Category:" menu.
- Choose "All Configurations" item in the "Settings for" menu.
- Add to the "Additional Include Directories:" field the path to the include directory of the libtiff folder.
- Choose "Code Generation" item from the "Category" menu
- Choose "Win32 Release" item in the "Settings for:" menu
- Select "Multithreaded" option in the "Use run-time library:" menu.
- Select "Win32 Debug" item in the "Settings for:" menu
- Set "Use run-time library" menu to the option "Debug Multithreaded".
- Click "Link" tab in the dialog.
- Select "Input" item in the "Category:" menu.
- Choose "All Configurations" item in the "Settings for:" menu
- Add to the "Additional library path:" the path to the lib folder in the libtiff folder.
- Choose "Win32 Release" item in the "Settings for:" menu
- Add to the "Object/library modules:" field: libtiff.lib
- Choose "Win32 Debug" item in the "Settings for:" menu
- Add following text to the "Object/library modules:" field: dlibtiff.lib.
- Click "Ok".
Saturday, November 03, 2007
Extracting metadata from PDFs
I have assigned to create a DB starting from PDF files. Typical fields are (title, Location, Date, Actors mentioned in each PDF..etc)
plan A:
The first idea i got in my mind is to create a Lexical Analyser.
I should parse the PDF file word by word then check if it is "Held" then i should expect a location description after that...If I find "Present" then i should expect a bunch of actors' names.
TO parse Text of PDF file I used PDFBox. Surprisingly, it didn't work as i expected.
which implies that putting positions of text in consideration, hence I can build a set of blocks, and based on this structure I can isolate different logical blocks and then separate their contents.
this didn't work :( the problem this time was with the OCR generating these PDFs. the OCR is not accurate with text positioning 100%. hence the input to my code is buggy. in consequence, the OCR merges two different columns, or split 1 column to different columns.
plan C:
Implies to work on the TIFF files directly(ignores the Buggy PDF)
I read the original TIFF file, then parse pixel by pixel to split the original tiff into sub tiff. in this way I have control on the blocks without need to let the OCR do this for me.
after identifying basic blocks in the tiff file, I call an OCR SDK to transform my Tiffs into text, which finally will be my fields in the DB.
plan A:
The first idea i got in my mind is to create a Lexical Analyser.
I should parse the PDF file word by word then check if it is "Held" then i should expect a location description after that...If I find "Present" then i should expect a bunch of actors' names.
TO parse Text of PDF file I used PDFBox. Surprisingly, it didn't work as i expected.
- the PDFParse can split a single word into multiple words. So my code would receive "hel" then "d", and not "held". In this case to make it works I should generate a state machine that keeps track of the history which I found non feasible solution.
- I have French documents among these files. Applying a text analyser for french document is a kind of stupidity, in french..instead of saying "hold on", they type "le". Le is a very frequent string (if u r not familiar with french, it is equivalent to the".
which implies that putting positions of text in consideration, hence I can build a set of blocks, and based on this structure I can isolate different logical blocks and then separate their contents.
this didn't work :( the problem this time was with the OCR generating these PDFs. the OCR is not accurate with text positioning 100%. hence the input to my code is buggy. in consequence, the OCR merges two different columns, or split 1 column to different columns.
plan C:
Implies to work on the TIFF files directly(ignores the Buggy PDF)
I read the original TIFF file, then parse pixel by pixel to split the original tiff into sub tiff. in this way I have control on the blocks without need to let the OCR do this for me.
after identifying basic blocks in the tiff file, I call an OCR SDK to transform my Tiffs into text, which finally will be my fields in the DB.
Friday, September 14, 2007
VISTA.....
As a new developer in the Bibliotheca Alexandrina, I should get a tour to VISTA(Virtual Immersive Science and Technology Applications). Bibliotheca Alexandrina is the first to provide researchers with such advanced visualization tools (in the middle east of course I mean). The VISTA is also known as CAVE (Computer Aided Virtual Environment).
It displays 3D stereoscopic images generated from a PC cluster, on four 10-ft × 10-ft vertical walls and the floor. The cluster is Five workstations linked together. The four projectors used in the VISTA render 1400 × 1050 pixels each and have a very bright light output rated at 7200 ANSI lumens. this can be very good for simulating real phenomenon. There are a lot of applications applied to Vista concerning Aero Dynamics, Chemistry, Medicine..etc.
One of the applications, which I see it quite impressive, is a 3d chart visualizer. It gives you a nice feeling that you are running on the axis, or between the points of the plot.
Actually, I have no pics for the VISTA.... but i can give you an approximation...
imagine the Gapminder in 3D effect.. That's wt u get when you use the VISTA_3dCharts.
It displays 3D stereoscopic images generated from a PC cluster, on four 10-ft × 10-ft vertical walls and the floor. The cluster is Five workstations linked together. The four projectors used in the VISTA render 1400 × 1050 pixels each and have a very bright light output rated at 7200 ANSI lumens. this can be very good for simulating real phenomenon. There are a lot of applications applied to Vista concerning Aero Dynamics, Chemistry, Medicine..etc.
One of the applications, which I see it quite impressive, is a 3d chart visualizer. It gives you a nice feeling that you are running on the axis, or between the points of the plot.
Actually, I have no pics for the VISTA.... but i can give you an approximation...
imagine the Gapminder in 3D effect.. That's wt u get when you use the VISTA_3dCharts.
Friday, August 31, 2007
Gapple: A google phone!!!
A HTC insider sent us a tip this weekend about an upcoming gphone coming out of Taiwan that should launch Q1 2008.Google can make use of web service integration(gmail,google docs, ..etc). Google maps/GPS will play a big role to add to the Gapple features. In this way google can be really tight to anybody's life. online synchronization will be a feasible feature, you won't need any m/c to access ur life as u already have ur blog/gmail/docs/../../../etc on ur phone. this is really awesome.
Actually i don't know how google is going to compete with iphone? It's clear that they will provide a variety of features unavailable for iphone users.
but how about Hardware? is HTC able to compete the Apple slickness? the same issue for OS!!
iphone reached already 700,000 users and still counting. So, Google should be very wise to compete this mountain and to convince all these users to migrate their mobile device to Gapple. They can focus on services, cost (given that iphone remains expensive). so 100$ down cost can be good factor for migration.
Anyway, let's see how this will go.
By the way, iphone is on top of my wish list (it's not available yet here in Egypt) you can buy it for me on my birthday !!
google is not the only company moving to the phone worlds, there are rumors that Microsoft is trying to buy BlackBerry!!!!
Subscribe to:
Posts (Atom)