Check it by yourself.
About Me
- Ahmed Abd-ElHaffiez Hussein
- PhD Candidate at Purdue University, Computer Science.
Saturday, May 10, 2008
Friday, May 09, 2008
A Begging Message to Blogspot
Dear Blogspot team...
I really don't believe how much time I spend on each post in order to put in the word verification correctly.
Really, It irritates me each time I try to guess what are the characters in front of my blind eyes!!!!
I have to fill in the word verification at least 2 times for each post.
Guys, Can't you make it more human???
I really don't believe how much time I spend on each post in order to put in the word verification correctly.
Really, It irritates me each time I try to guess what are the characters in front of my blind eyes!!!!
I have to fill in the word verification at least 2 times for each post.
Guys, Can't you make it more human???
I am blind....I can't see the word...MY EYESSSSS!!!!
When Adobe is going to support RTL?
I was wondering when adobe will support RTL languages? the flash players on MAC doesn't even allow to switch to arabic keyboard!!
The input also looks silly on windows when you try to edit in a text box and you find the characters are hiding and going from LTR!!!
When they are going to work seriously on RTL languages!
The input also looks silly on windows when you try to edit in a text box and you find the characters are hiding and going from LTR!!!
When they are going to work seriously on RTL languages!
My Wish List
I was thinking What will I do if I get some bugs in my hands....
I think that MacBook Black, AmazonKindle, iphone will be on top of my electronics targets.
I will also like to buy some books: Essentials of Programming Languages, Spinning the semantic web, Advanced Topics in Types and Programming Languages, Data Mining, Semi-Supervised Learning, Introduction to Machine Learning, Large Scale Kernel Machines, Software Abstractions
I think that MacBook Black, AmazonKindle, iphone will be on top of my electronics targets.
I will also like to buy some books: Essentials of Programming Languages, Spinning the semantic web, Advanced Topics in Types and Programming Languages, Data Mining, Semi-Supervised Learning, Introduction to Machine Learning, Large Scale Kernel Machines, Software Abstractions
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.
Saturday, April 26, 2008
أنا طير فى السما
أنا طير في السما بعشق بالوما
عاش قلبي ونما من غير نمنمة وبسيط إنما عايش ملحمة
ويعيش له سمة وينول أوسمة ويبعتر شوق من غير لملمة
أنا طير في السما بعشق بالوما
أنا طير طيار عديت أسوار حطمت جدار ونزلت بحار
وطلعت نهار من ليل جبار
ده العمر عمار والقلب خضار مش عين في الجنة وعين في النار
ولاتحزن يوم لأ متبسمة
أنا طير في السما بعشق بالوما
أنا طير وبطير بجناحي أمير واستنى وأسير ولاكنت أسير
والعمر قصير أنا قلبي كبير
ويساع مشاوير وقليل وكتير ولايعشق غير النور والخير
ويخاف إن سهم اليأس رمى
أنا طير في السما بعشق بالوما
عاش قلبي ونما من غير نمنمة وبسيط إنما عايش ملحمة
ويعيش له سمة وينول أوسمة ويبعتر شوق من غير لملمة
أنا طير في السما بعشق بالوما
أنا طير طيار عديت أسوار حطمت جدار ونزلت بحار
وطلعت نهار من ليل جبار
ده العمر عمار والقلب خضار مش عين في الجنة وعين في النار
ولاتحزن يوم لأ متبسمة
أنا طير في السما بعشق بالوما
أنا طير وبطير بجناحي أمير واستنى وأسير ولاكنت أسير
والعمر قصير أنا قلبي كبير
ويساع مشاوير وقليل وكتير ولايعشق غير النور والخير
ويخاف إن سهم اليأس رمى
أنا طير في السما بعشق بالوما
Wednesday, April 23, 2008
Pairing, something I missed for so long
"The code should always be written by two programmers on one machine". Is it a rule? ...yes, in the XP world.
don't think it's waste of resources..Today, I found many issues in the code making me beg my environment to introduce a code review in the development process.
But before you go deep into this, you have to know that pairing is not a competition to show who is the best programmer. In order to maintain this , a good common practice is to ask questions.
Also, remember that the questions should eliminate the "why" thing. A lot of ppl don't like it.
The most important thing that I forgot to do when I was reviewing is the acknowledgment for the successful piece of code. Instead I kept focusing on hunting pitfalls, which I believe is a bad behavior that I should avoid the next time :(
don't think it's waste of resources..Today, I found many issues in the code making me beg my environment to introduce a code review in the development process.
But before you go deep into this, you have to know that pairing is not a competition to show who is the best programmer. In order to maintain this , a good common practice is to ask questions.
Also, remember that the questions should eliminate the "why" thing. A lot of ppl don't like it.
The most important thing that I forgot to do when I was reviewing is the acknowledgment for the successful piece of code. Instead I kept focusing on hunting pitfalls, which I believe is a bad behavior that I should avoid the next time :(
Sunday, April 13, 2008
Yes we can
I liked the idea of the music video prepared by the Barack Obama campaign.
It is the first time to admire one of the candidates over the others..
I like that guy, I wish I can support him. I found a hilarious entry showing the difference between Hilary and Obama campaigns. I find Hilary's behavior is the extension of the tough, rude, and disgusting policy adopted by the USA government. I wish that Obama doesn't turn over after wining (wishing that he wins at first place)
It is the first time to admire one of the candidates over the others..
I like that guy, I wish I can support him. I found a hilarious entry showing the difference between Hilary and Obama campaigns. I find Hilary's behavior is the extension of the tough, rude, and disgusting policy adopted by the USA government. I wish that Obama doesn't turn over after wining (wishing that he wins at first place)
Subscribe to:
Posts (Atom)

