tag:blogger.com,1999:blog-32336762675432672232009-06-12T16:34:22.769+02:00Faisal's InteractionsAl-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.comBlogger50125tag:blogger.com,1999:blog-3233676267543267223.post-6188325495538209312009-06-12T16:33:00.000+02:002009-06-12T16:34:22.775+02:00TestTesting<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-618832549553820931?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-12460611197868189552009-01-20T16:05:00.001+02:002009-01-20T16:09:20.334+02:00Movie Review - Blood RayneEver wonder what you can do with weird sets of things? For instance if you have a hand watch, a match, and a needle you can GPS your location and manage to get out of a maximum security prison McGyver style. Or if you had a positron deflector and some photon torpedoes you can go and protect the human federation from alien enemies. BUT, if you had 100 bored untalented actors, lots of red paint, and a memory span that lasts 5 seconds you can make the movie: Blood Rayne.<br /><br />While i was in queue to buy the tickets for the movie, there was a sound in the back of my head that was tingling and saying "No, don't do it... you'll live to regret it" but i dismissed it as another part of my paranoid life style. Little did i know that it was my subconscious trying to save me from one of the most horrible experiences in my life. As soon as the movie started i remembered that Blood Rayne was in fact a video game, and that this is a movie adaptation of the game. I immediately braced myself for the worst; we all know what game movies turn out to be, and i figured that this one won't be any different.<br /><br />If you ever played the game Blood Rayne, you'll agree that It is indeed a very strange game that tried to combine too many incoherent things. The movie adaptation -which is a prequel to the game-, was no better. Apart from the already mentioned problem, it had a very.... "interesting" mix of characters. Every body's motive to conquer or save the world doesn't go beyond 5 worded sentences. There is the evil vampire Kaigen who wants to rule the world, the damphire Rayne who wants to avenge her mothers' death, the enigmatic Vladimir who is there to protect the world from vampires, the side kick Sebastian who tags along with Vladimir for the heck of it, and the venomous Cathrin who wants -along with her father- to turn the tables so that they rule the world instead.<br /><br />Some interesting directive points were that any fight lasts a maximum of 15 seconds and always ends with LOTS of blood spluttering all over the place, probably a poor attempt to hide the lack of acting skills or perhaps the crappy dialogue.<br />I am also convinced that the director is in fact a computer programmer, because he managed to implement the round-robin method to dialogues. You would be in one place hearing two people talk, and before their conversation is over, you get yanked into another scene with another conversation, into a third one, back to the first to continue where they left off.<br /><br />Everybody in the film was looking for the 3 parts of the ancient vampire "Belia", because they can endow a vampire with unimaginable powers. Rayne got 2 of them, and Kaigen got the last one, and neither one of them used it along the entire course of the movie. You might think the parts are worthless, but without them the movie would be about a bunch of people running around killing each other in gory and bloody ways.<br /><br />Of course, somebody taught the script writer that day the phrase "So be it" because Kaigen (played by Ben Kingsly) keeps on using it every other line.<br />Kaigen: Give me the heart and i shall let you live.<br />Rayne: You will have to rip it out of my body.<br />Kaigen: So be it.<br /><br />Kaigen: What news you have?<br />Underling: Vladimir is attacking.<br />Kaigen: If it's a war he wants, So be it.<br /><br />over and over and over and over...<br /><br />The single thing worth watching in this movie are the R-rated scenes which are almost lettered all over the place, but thanks to Jordanian theaters, those were cut out, making the entire experience so much more rewarding.<br /><br />None of the characters was acting convincingly, and definitely the script didn't help. Maybe the game story sucked, but even then the director and actors could have saved face by a) doing a decent job at it. b) not doing it in the first place. A total train wreck from start to end. Hope you enjoy it as much as i did.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-1246061119786818955?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-38305504033380165352009-01-13T18:45:00.002+02:002009-01-13T18:49:13.424+02:00Palestine is alive, well and kicking (Israeli butt)This is a letter my uncle wrote to one of his friends in Canada, that were concerned about hearing disturbing news about "echoes of the crusades". Here it is in full:<br /><br />The war in Gaza today is a Palestinian Stalingrad, the first major battle between Israel and the Palestinians to be fought on Palestinian soil since 1948. It is also a battle over the future of Palestine. If Israel fails to win it decisively, all its future will come into doubt. In the forty two years since its victory in 1967, Israel failed to make " PEACE". If Israel now fails to win this battle that it has waged under "Super ideal terms and conditions" unprecedented in any known war, on a bedraggled Gaza that it had kept under siege and starved of all its needs for almost three years, in spite of its overwhelming superiority in technology, fire power and numbers, the conclusion will be that it has also failed in war .<br /><br />This, and many other consequences, will emerge into the light when the dust of battle settles and the fogs of disinformation are dispelled. The Israeli – American- British – European fiction of a" PEACE PROCESS" will be found lying slain on the killing fields. The Oslo Palestinians will, not before long, go with it, and the two warring peoples on the land of Palestine will collide in spiraling armed conflict intermittently interrupted now and then by increasingly shaky truces and ceasefires.<br /><br />That is why, in its impotent rage, bewilderment and disbelief at its escalating failure to subdue and subjugate this proud and brave people in spite of all the power and force it and its allies have brought to bear on them in over sixty years of savage conflict strewn with intermittent massacres, Israel now intensifies its levels of brutality in its wanton killing of Palestinians and willful destruction of Gaza. It will not work, but it will bring the Israelis much closer to realizing their existensial dilemma: They are damned if they do and damned if they don’t . Nothing will save them from the coming doom of their own making, and no amount of Palestinian blood spilled, women, children, and all, can conceal the writing on the wall. <br /><br />We the Palestinians have a proverb that applies wonderfully to the current Israeli incursion in Gaza. It is about the coyote that swallowed a sickle. All went well until time came for the coyote to …t.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-3830550403338016535?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-49613638730248870542008-12-17T15:22:00.000+02:002008-12-17T15:23:00.091+02:00عباس.. الأول مع مرتبة (القرف)! - مقال رفضت الصحف العربية نشرهد. محمد العوضي<br /><br /> أضحكني بالأمس حديث استمعت إليه (صدفة) لسيادة , رئيس (الدولة) الفلسطينية محمود عباس على قناة (العربية) اتهم فيه حركة حماس بإفساد موسم حج أهل قطاع غزة، وقال إن منع الحج لم يحدث في التاريخ سوى ثلاث مرات فقط؛ مرة في زمن كفار قريش ومرة في عهد القرامطة وأخيرا في عهد حركة حماس!!<br /><br />تأملت في هذا الكلام الغريب لشخص حفل تاريخه السياسي بالعديد من (انجازات الخزي) فكانت السابقة الأولى في التاريخ وليست الثالثة (كما يتهم حماس).<br /><br />ودعني أذكرك يا( سيادة) الرئيس ببعض تلك (الأوائل)!! التي تمت في عهدك..<br /><br />- أول مرة يقوم فيها زعيم منظمة ثورية (تحريرية) بوصف عمليات شعبه الفدائية والاستشهادية (بالإرهابية) و(الحقيرة) وأسلحتها (بالعبثية) وينسق أمنياً مع العدو لاعتقال المقاومة!!<br /><br />- أول مرة يظهر فيها (رئيس) ضم وتقبيل وعناق و....!! لقتلة شعبه, وتراه ودون حياء يكيل لهم المديح والابتسامات في الوقت الذي تنتفخ فيه أوداجه حنقاً وغضباً لمجرد ذكر اسم أخيه (حماس).<br /><br />- أول مرة يتجرأ فيها جهاز أمن (رئاسي) على انتهاك حرمة بيوت الله وقتل أئمة المساجد وحفظة القرآن الكريم من بلده , وما دماء الشيوخ مجد البرغوثي ومحمد الرفاتي وناهض النمر ومحمد رداد الطالب الجامعي الحافظ لكتاب الله وحبيب الجميع؛ إلا اكبر شاهد على ذلك.<br /><br />- وأول مرة تتواقح فيها شرطة ( الزعران) فيعتدون على حرائر فلسطين ويخلعون عنهن الحجاب والنقاب في الشوارع والجامعات.<br /><br />- أول مرة يقوم فيها مستشار شخصي (لرئيس) بتهريب 3400 جهاز خلوي في سيارة التشريفات الرسمية أثناء عودته من مهمة (نضالية)!! واسأل تلميذك المدعو روحي فتوح عن رحلة عودته من الأردن يوم 19/3/2008، حين كشفته وفضحته أجهزة الجمارك الإسرائيلية, وغيره الكثير من (تلاميذك) ومستشاريك.<br /><br />- أول مرة يقوم فيها مسؤول فلسطيني بإغلاق اللجان الخيرية ودور تحفيظ القرآن وتجريم مؤسسات كفالة الأيتام ورعاية أسر الشهداء والفقراء, استجابة لإملاءات العدو ونكاية بنده السياسي.<br /><br />- أول مرة يقوم فيها حرس (رئاسي) بإلقاء شخص ملتحي (فتحاوي) من فوق برج (مهنا) غرب غزة من الطابق الرابع عشر وقتله ظناً منهم أنه (حمساوي)!! وكان ذلك بتاريخ 10/6/2007 مع الشاب المغدور حسام أبو قينص؟!!<br /><br />كما اعترف القيادي الفتحاوي توفيق أبو خوصة في قناة الحوار ثم عاتبته فتح على هذا التصريح!<br /><br />- أول مرة يتفوق فيها (رئيس) على كل (الساديين) فتراه (وبدم بارد) يتفنن ويتلذذ بمشاهدة وسماع آلام وآهات مليون ونصف من شعبه المحاصر بالجوع والمرض والظلام في قطاع فقير وصغير تأديباً وعقاباً له على اختياره في الانتخابات للفصيل المنافس.<br /><br />- أول مرة يقوم فيها رئيس بالتمسك باتفاقية حدودية مهينة ومذلة تنتقص من سيادة(دولته)، وتعطي لعدوه سيطرة كاملة على منافذ شعبه وموارد بلاده, بل وتصل به المهانة حداً يقاتل فيه كل من يحاول إلغاء وتعطيل هذه الاتفاقية.. أليس هذا واقع حال اتفاقية معبر (رفح) التي وقعها مع إسرائيل توأمك (النضالي) محمد دحلان عام 2005؟!<br /><br />_ قائمة (الأوائل) في عهدك (ياريس) طويلة طويلة يعرفها إخواننا في فلسطين أكثر من غيرهم , صحيح أن الإعلام المضلل يتغاضى عنها وقد يجهلها الكثيرون, ولكن التاريخ سيسجلها لك بأحرف من (قرف) تشمئز منها الأجيال.<br /><br />ومع ذلك فكل (الأوائل) في عهدك (ياعباس) قد تهون عن كونك (الزعيم) الأول في التاريخ القديم والمعاصر الذي يأمر (عصاباته) باغتيال المقاومين الشرفاء فيما يسابق عدوه إلى تقديم التنازلات له عن كل شيء بدءاً بالأرض وانتهاء (بالعرض)!!<br /><br /> *ملاحظة: منع المقال من النشر في صحف عربية بسبب قانون المطبوعات الذي يمنع المساس المباشر برؤساء الدول, وكان موعد نشره أول أيام العيد المبارك.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-4961363873024887054?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-64861798044313277902008-11-26T17:46:00.000+02:002008-11-26T17:47:33.400+02:00Movie Review - ImmortalWell, as most of you know, usually a film has several elements. For instance, a story line, that should unravel as you go along with the movie to a climax point where the different sides collide to reach the conclusion the director sees as fit. There usually are a protagonist (the good guy), and an antagonist (the bad guy). And usually, directors try to give these and all the other characters a background and a motive to make their actions more real and understandable. And most importantly, there usally is an ending, even if it's an open one, but there is some kind of finale to the movie.<br /><br />Luckily this particular movie has none of the above. The story line -if you can call that- is that Horus, the god of heavens in ancient egypt, is given seven days to save the earth or he will become mortal and die. Ofcourse the reason for such a thing is a mystery which you shall never know. He goes down to earth and enters the body of a single man, and he starts looking for a mutant -yes, the original plot of the movie contains underpreviliged mutants living with us humans. This female mutant has the special ability to reprocreate with the gods. And he keeps insisting to his human host that they should impregnate her. Also the reason for this decision is still a mystery to me.<br /><br />The antagonist in this movie -luckily for him- does not exist. But in his place there are a few people who want to kill the human host for political reasons -good enough for me. However after many attempts, they unleash one mean, ugly-looking, SOB killing machine to kill him, and the beast i must admit looks like a reject from power rangers. Anyway the beast tracks down his target and then he finds him, and i go "good, finally some action". But no, Horus steps in and kills the beast in under 2 seconds without any kind of a fight. I mean, why bother with the visual effects??<br /><br />The female mutant on the other hand has a totally different story. There is some doctor interested in studying her and protecting her, quite logical. And there is some weird guy without a face that she knows and loves, who keeps giving her weird advices for weird situations, and then dies for a weird reason. My guess, he just wanted to get the hell out of the film.<br /><br />The film production of course, is quite unusual. It's like a cross between "Blade Runner", "The Fifth Element", and "Final Fantasy: The Spirits Within" in the most dull and annoying way. Not all the characters are played by actors. I guess they just couldn't find people with no self-respect enough to play the role, so these characters are computer animated. And the animation isn't that good. No emotions on their faces or anything. Not like "Shrek" or "Finding Nemo" or any other Pixar movie.<br /><br />The dialogue was written by a sixth grader i believe. Because most of the dialogue is like this:<br />Character 1: "Are you crazy? why did you do that?"<br />Character 2: "Am I crazy? Do What?"<br />Character 1: "So, i see... well tell him not to worry"<br /><br />One of the things that puzzled me is that all the killing that happened in the movie, were done by Horus, who was initially supposed to save us. But hey, he's a god, so i suppose we can let that one go.<br /><br />The movies end was that the seven days finished, Horus went back into the pyramid. The female mutant gave birth to another mutant and lost her memory -lucky bitch- and the human host is free to walk around. No climax during the two hours of suffering i had to endure, and no meaningful ending.<br /><br />My advice to you is to NOT watch it unless somebody is holding a gun to your loved ones. Because if the gun was pointed at you, just ask him to shoot and get it over with. But hey, i discovered two words that would make sense of all this crap that goes in the movie, i mean i was surprised why i didn't think of them earlier. The words are:<br /><br />FRENCH PRODUCTION.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-6486179804431327790?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com1tag:blogger.com,1999:blog-3233676267543267223.post-86687796295801725102008-09-01T09:36:00.004+02:002008-09-01T09:55:26.905+02:00Flash Streaming For RoRI was fiddling with some video flash streaming code the other day, and came across a <a href="http://www.flashcomguru.com/index.cfm/2005/11/2/Streaming-flv-video-via-PHP-take-two">great script</a> by Stefan Richter that would allow you to seek to any position in the video without having to wait until that part is loaded first.<br />I have managed to port the code to work on Ruby on Rails. So you can get the flash player from Stefan's post, and if your server is running RoR, <a href="http://www.filefactory.com/file/cd0fcf/n/stream_controller_rb">here is the server side code</a> to get the job done.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-8668779629580172510?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com1tag:blogger.com,1999:blog-3233676267543267223.post-35355789932786072372008-08-26T13:06:00.003+02:002008-08-26T15:56:46.034+02:00مثل ما ودّعت تلاقيDisclaimer: <br />This article was not authored by me. I got it by email and thought it is worth sharing. If anybody can help me track the original author, so I would cite him/her and add a link to them here, please do.<br /><br /><p dir="rtl"><br />''عادة'' أمارسها دون داعٍ، أخرج من بوابة بيتي كل مساء، أتلفّت يميناً وشمالاً، أراقب حركة الشارع، ثم أغلق الباب بهدوء، وأحياناً أتأكد بطريقي من ساعة ''المي'' لأطمئن أن الحنفية مقطوعة، أو أطارد قطاً غريباً لا يعجبني منظره.<br /><br />بالأمس مددت رأسي في العتمة قليلاً، فشاهدت ''اللمبة'' الخارجية لبيت أبي يحيى مضاءة، وهذا يعني أن هناك ضيوفاً لدى الجار العزيز، سمعت حديثاً غير مفهوم يتخلله صمت مفاجىء، قلقت على الرجل، لبست ''دشداشتي النصّ كم''، طرقت الباب وجلست مع الجالسين تحت معرّش العنب:.<br /><br />أنا- الله يمسيكوا بالخير.<br /><br />الحضور: مسا النور.<br /><br />بعد ثوانٍ قال الحضور: الله يمسيك بالخير.<br /><br />فأجبتهم فرادا: الله يمسيكوا بأنوار النبي، ورفعت يدي لكل شخص راداً التحية..<br /><br />الحج محمّد لأبي يحيى: مثل ما ودّعت تلاقي!!.<br /><br />ابو يحيى وعينه في الأرض: تلاقي الخير!!.<br /><br />جوز فزّة: مثل ما ودعت تلاقي يا خالي.<br /><br />ابو يحيى يتنهّد ويده على خده: تلاقي الخير خيّوه.<br /><br />محمد القاسم: يا رجل ليش زعلان كلها شهر وراجع.<br /><br />طايل محاولاً التخفيف : غمض فتّح ولاّ هو راجع بالسلامة،مالك يا رجل.<br /><br />احمد الصالح: الله يعين قلبي لعاد.<br /><br />صمت مفاجىء، كسره صوت رنين ناعم قادم من بعيد، يأتي شلاش ومعه صينية مليئة بأكواب الشاي يطوف بها على الحاضرين..آخذ كأساً وأنا أطوف بعيني على الحضور لألتقط خيوط الموضوع دون جدوى ..وضعت كأسي أرضاَ ثم شاركت كالآخرين..<br /><br />*أنا- مثل ما ودّعت تلاقي يا ابو يحيى.<br /><br />* أبو يحيى: تلاقي الخير.<br /><br />* أنا:- اميت تسهّل يحيى؟.<br /><br />* ابو يحيى: يحيى ما سافرش!!.<br /><br />* أنا: عايش؟.<br /><br />* ابو يحيى : ولا عايش!!.<br /><br />* أنا: لعاد عن مين بقولوا مثل ما ودّعت تلاقي من أول القعدة.<br /><br />* أبو يحيى : قصدهم عن الراتب!!<br /></p><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-3535578993278607237?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com2tag:blogger.com,1999:blog-3233676267543267223.post-81361215240064500202008-04-17T08:43:00.002+02:002008-04-17T08:52:46.925+02:00US Presidency: We already lost!Both [Clinton and Obama] said they would commit U.S. forces to defend Israel, with Senator Clinton saying she would use "massive retaliation" to counter a nuclear attack on Israel by Iran and Senator Obama saying he would favor taking "appropriate action."<br /><br />The interesting part is committing forces to defend Israel. Defend it against what? a rag-tag opposition with make-shift weapons that are embargoed in Gaza? or a militia with inferior weaponry -albeit superior determination- in southern lebanon?<br /><br />I guess having mercava tanks, F-16s, Apache attack helicopters, nuclear power, commando and strike forces, and smart bombs are not enough to defend poor helpless Israel.<br /><br />So much for justice!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-8136121524006450020?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com1tag:blogger.com,1999:blog-3233676267543267223.post-62991565318100344582008-03-16T01:18:00.002+02:002008-03-16T01:21:51.431+02:00Choose Your Own Adventure - Part 2Continued from <a href="http://faisaldajani.blogspot.com/2008/03/choose-your-own-adventure.html">this post</a>:<br /><br />Page 37:<br />You take a deep breath, and jump towards that prize holding cliff, only to discover it was a mirage and you plummet the rocky cliff. As you smash against the rocks, shattering every bone in your body, you begin to wonder if it was worth it.<br />Some passing by travelers discover your mangled body, and take you to a hospital, nurturing you back to health, but never the same as the man you once were.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-6299156531810034458?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com1tag:blogger.com,1999:blog-3233676267543267223.post-90859370602585879882008-03-13T15:47:00.002+02:002008-03-13T15:59:41.807+02:00Choose Your Own AdventureInspired by <a href="http://www.codinghorror.com/blog/archives/001074.html">this post</a>:<br /><br />You work for a great company, you are friends with your colleagues, and your peers respect you. You love and enjoy your work, and make good income in the process. However, during the last six months, an urge for some sort of drastic change has been tingling, and you see a chance to effect that change, which most probably would take you back ten steps in your professional life and completely remove you from your comfort-zone.<br /><br />If you remain in your current situation, having your peers respect and the work you love go to page 12.<br />If you decide to make a leap of faith towards change, go to page 37.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-9085937060258587988?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-76270562590986854922008-01-15T12:51:00.000+02:002008-01-15T13:06:41.073+02:00Dwwen is live :)Finally, after a very insane week, and unbelievably insane final 2 days, <a href="http://www.dwwen.com/">Dwwen</a> is live with a fresh new look and a host of new features that will knock your socks off.<br /><br />First things first, I am glad to announce that I joined the great family of Dwwen as a developer. So if you like the new features, you're welcome. If you don't, it's the managements' fault :-p.<br />Seriously, It was a great opportunity for me to work with Dwwen's team. The flow of ideas was astounding, and all I have to say now is, stay tuned for future updates ;).<br /><br />With this new version, you can now keep a list of your all time favourite posts, or specify which blogs you don't wish to follow up on anymore. All this and more is available after creating an account with us.<br /><br />Anyway, hope you like the new features. Keep us posted with any feedback you have. And we are glad to have you as a subscriber. Now go on, go <a href="http://www.dwwen.com/users/create_account">create an account</a>.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-7627056259098685492?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com5tag:blogger.com,1999:blog-3233676267543267223.post-77532590064503917562008-01-06T12:40:00.000+02:002008-01-06T12:48:11.841+02:00Compiz-Fusion on ThinkpadI've had my Thinkpad R61 laptop for two months now, and tried to enable my 3D desktop with no success. I thought that my video card does not support it so I gave in to the harsh reality of having to work using a 2D desktop :-(<br /><br />Anyway, last night, I was installing Linux on a friend's laptop, and he has the Thinkpad T61 which I am sure has a video card that supports compiz-fusion. Yet when you try to turn it on, it refuses.<br /><br />Apparently, the problem is not with the video card, but with the motherboard chipset. The i965 chipset is blacklisted because it does not support something that is required (didnt' bother with reading, so don't know the exact details).<br /><br />The good news is that you can force compiz to run :-D. You simply need to create a simple file that contains the following two lines<br />#!/bin/sh<br />SKIP_CHECKS=yes compiz --replace<br /><br />Save the file, and run it, or add it to your startup programs and you'll have compiz-fusion running on your i965 motherboard machine. Now my colleagues envy me on my awesome 3D desktop. It kicks ass :-D<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-7753259006450391756?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com1tag:blogger.com,1999:blog-3233676267543267223.post-50702498862012997442007-12-09T16:33:00.000+02:002007-12-09T16:37:55.941+02:00English -> Arabic Editor??Well, this is one great site that i just can't pass without writing about. If you go to <a href="http://yamli.com">Yamli</a>, and click on their Yamli Editor link, you can simply type arabic words using letters, and the editor will convert your input into correct arabic words !!!<br /><br />For instance, typing "marhaba ana ismi faisal", would result in the text appearing as مرحبا أنا اسمي فيصل.<br /><br />I have no idea how they do it, but it's amazing!!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-5070249886201299744?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com2tag:blogger.com,1999:blog-3233676267543267223.post-5819877877084486522007-10-18T09:29:00.000+02:002007-10-18T09:34:45.187+02:00Dwwen Widget Is HereDwwen just keeps on improving, as if their service isn't brilliant enough already, they now released a widget that you can incorporate on any webpage you have (hmm, your blog maybe :)). Simply copy the code to your page, and voila, you'll have the latest and greatest from Dwwen articles on your page.<br /><br />Now go along, copy it already, and enjoy :)<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-581987787708448652?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-51072588632046600222007-08-25T10:44:00.000+02:002007-08-25T10:51:23.705+02:00Around The WorldI was feeling a bit retro this weekend, so i went to youtube to check some of the hits from the good old days. Things like "King of my castle" by Wamdue Project, "Ayerodynamic" by Daft Punk, and "The Launch" by DJ Jean.<br /><br />But the real show stopper was "Around The World" by Daft Punk. I never realized how awesome, how perfect the choreography of that video clip is, and i am completely blown away by the minute details that are embedded in the dance. Definitely one of my all time favourites.<br /><br /><a href="http://youtube.com/watch?v=FMpsnDxNbqQ">Click here</a> to check it out on youtube.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-5107258863204660022?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com2tag:blogger.com,1999:blog-3233676267543267223.post-27778396809002067182007-08-06T08:18:00.000+02:002007-08-06T08:24:33.642+02:00Karazhan Here i Come!!!After a battle of epic proportions, fighting beasts from other realms, and vanquishing demons that have come to disturb the time flow and alter reality as we know it, I emerged victorious. And now, i hold the master's key to Karazhan.<br /><br />This weekend, i'll be going to Karazhan. Anybody on Magtheridon is welcome to join. /w blymoth for further details.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-2777839680900206718?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com3tag:blogger.com,1999:blog-3233676267543267223.post-55615105256241365692007-07-14T00:42:00.000+02:002007-07-14T00:46:10.375+02:00PHP 4: End of an era!!Well, it's official folks... PHP 4.4 is over. Yesterday was the 3rd birthday for PHP 5, and the PHP folks announced that by the end of this year, PHP 4.4 will stop getting any releases, fixes, and the lot, except for critical bug fixes... and those will be terminated by August 8th, 2008.<br /><br />So, this means you need to freshen up on PHP 5, prepare for PHP 6, upgrade all your code that operates on 4 to be PHP 5 ready, and brace yourself. OR (and i think i'll be taking this option) change your entire career.... farming looks good !!!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-5561510525624136569?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com2tag:blogger.com,1999:blog-3233676267543267223.post-71407929589818687482007-07-03T14:44:00.000+02:002007-07-03T14:52:44.127+02:00الله يلعن إلي في باليOMG, this is just unbelievable... i have spent the last 3 weeks fixing some stupid work by a stupid person who has an overestimated rating of himself. And he dares call himself a programmer.. PAH, he shouldn't be even connected to anything that runs on electricity!!!<br /><br />Stupid naming scheme, no standards compliance, zero understanding of coding procedures, and of course a LOT of unjustified arrogance... a complete ****ed up mess!!<br /><br />Seriously, this is one of the marks of the end of time, when the worthless start voicing their opinions as if it matters.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-7140792958981868748?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com4tag:blogger.com,1999:blog-3233676267543267223.post-23934500405316776292007-07-02T09:23:00.000+02:002007-07-02T09:27:48.779+02:00Blog AddictionAfter reading <a href="http://www.salwa.ws/blog/?p=114">this</a> blog post by salwa, i decided to take the test myself. Here's teh result: <br /><br /><a href="http://mingle2.com/blog-addiction" style="color: #D64B32; text-decoration: none; display: block; width: 286px; height: 128px; padding-top: 50px; padding-left: 17px; background: url(http://mingle2.com/img/bb/blog_addiction/badge.jpg) no-repeat; font-family: Times New Roman, sans-serif; font-size: 30px;">47%<span style="display: none;">How Addicted to Blogging Are You?</span></a><p style="text-align: center;">Mingle<sup>2</sup> - <a href="http://mingle2.com">Online Dating</a></p><br /><br />Apparently the blogging bug didn't catch me yet!!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-2393450040531677629?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com3tag:blogger.com,1999:blog-3233676267543267223.post-37952790280536780212007-06-30T07:54:00.000+02:002007-07-01T08:13:24.101+02:00Parallel Earth?Apparently, the American Department of Defense (DOD) is building a virtual earth with a node for every single man, woman, and child. This is done to aid in the process of predicting the output of certain scenarios such as how would "you" react if food was cut off, or if "you" were shown a piece of media with some propaganda in it.<br />We know that they've been running simulations to predict outcomes, one famous simulation is that the americans nationalized the suis channel in their simulations even before Jamal Abdel Naser did that. But this is taking it to a totally new level.<br /><br />Hmmm, but i found a way to break the system!!! I'll run a simulation of their system, and so, they will simulate me simulating them simulating me simulating them ... and the system will just explode !!! ;-D<br /><br />Full article can be found here: http://www.theregister.com/2007/06/23/sentient_worlds/<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-3795279028053678021?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com1tag:blogger.com,1999:blog-3233676267543267223.post-43114989937200940122007-06-26T11:09:00.000+02:002007-06-26T11:20:15.480+02:00!!سلبطة عيني عينكمعقول يا عالم؟<br />و الله صرت خايف ييجوا يتملكوا داري عشان العبدلي!!<br /><br />حسبي الله و نعم الوكيل<br /><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_gaYVkJQAf04/RoDYyF-PS2I/AAAAAAAAADs/3RxZB1h96DI/s1600-h/wtf1.jpg"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://2.bp.blogspot.com/_gaYVkJQAf04/RoDYyF-PS2I/AAAAAAAAADs/3RxZB1h96DI/s320/wtf1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5080298734782204770" /></a><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_gaYVkJQAf04/RoDYyV-PS3I/AAAAAAAAAD0/DlLQ0d5_VPA/s1600-h/wtf2.jpg"><img style="float:left; margin:0 10px 10px 0;cursor:pointer; cursor:hand;" src="http://3.bp.blogspot.com/_gaYVkJQAf04/RoDYyV-PS3I/AAAAAAAAAD0/DlLQ0d5_VPA/s320/wtf2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5080298739077172082" /></a><div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-4311498993720094012?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-88769686761957060072007-06-24T01:05:00.000+02:002007-06-24T01:06:48.902+02:00Wise quote... or not!!Give a man a fire, he is warm for a day.<br />Teach a man how to build a fire, he is warm for the rest of his life.<br />Set a man on fire, he is warm for the rest of his life, and a few hours after!!<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-8876968676195706007?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com1tag:blogger.com,1999:blog-3233676267543267223.post-83134684205958611662007-06-18T10:15:00.000+02:002007-06-18T10:18:22.298+02:00Experience with MySQLWhile working on a project the past two weeks, i had to deal with a rather large database to import and query. What follows is my experience in this project and some interesting trivia about how MySQL server works. My computer machine is a bit ancient, i have a P4 2.8HT CPU, 512 MB DDR RAM, and a SATA harddisk. My operating system is Ubuntu 7.04, and the only other process that was running was firefox (to pass the time reading bash :-p), Database server is MySQL 5.0.22, default installation (except i changed default charset to utf8). All queries were run using the MySQL terminal client.<br /><br />Here's the database structure:<br />Table A:<br /> id int(11) primary key not null<br /> num int(15) unique<br />contains ~ 1 million rows<br /><br />Table B:<br /> id int(11) primary key not null<br /> A_id int(11) references Table A, id not null<br /> attribute int(5) (contains around 130 distinct values)<br />contains ~ 13.5 million rows<br /><br />Now the idea is that based on user input i need to get Table A.num, filtered by whatever the user selects in Table B.attribute. My first reaction was to do a join between the tables:<br /><br />SELECT DISTINCT a.num FROM a, b WHERE a.id = b.a_id AND (b.attribute = x OR b.attribute = y OR ...) ORDER BY rand() LIMIT z;<br /><br />After two and a half hours of hogging the CPU at 100%, i killed the process and decided it wasn't such a good idea. The problem here is that a cartesean product was calculated first before starting to filter, which would generate a temporary table with 13,381,664 * 991,483 rows, followed by recursing over the entire temporary result set to check for my filter. After which, the result would be ordered according to a.num and duplicate values would be emitted according to the distinct rule, followed by re-ordering the result set randomly, and finally selecting LIMIT number of rows to display.<br /><br />So i decided to find another way, asking some friends i learned that rewriting it as a nested query would give me better results so i changed my query to the following:<br /><br />SELECT a.num FROM a WHERE a.id IN (SELECT DISTINCT a_id FROM b WHERE b.attribute = x or ... ORDER BY rand() LIMIT z);<br /><br />The idea here was to work on table B by itself, filtering the data, getting a subset of rows that is z rows long, randomly ordered, and is filtered according to my criteria, and use it to get the data i required.<br />First I was surprised here to find out that my database server version does not support order by or rand clauses in the nested query, which would force me to move them to the outer query. This would make the inner query generate a much larger result set, which would be used to to filter the outer table then randomizing them and getting the number of rows i wanted. Needless to say this is slower than what i wanted but since it simply wasn't possible to do it the way i wanted to i rewrote it like so:<br /><br />SELECT a.num FROM a WHERE a.id IN (SELECT DISTINCT a_id FROM b WHERE b.attribute = x or ...) ORDER BY rand() LIMIT z;<br /><br />After about an hour and twenty minutes, the query finished and a result set was presented. I did a little victory dance, but i knew this huge delay won't be tolerated, so i had to think about how to hasten it even further.<br /><br />Now, i've heard a lot about indices, but never actually had to use them. Other than my primary key, or unique constraints, i never created an index. So, i decided to try this index thing, thinking that it wouldn't help much... but what the heck. I created an index on the attribute field in table B. The process took about 3 hours.<br />Re-running both of my queries. I was extremely surprised to see the first query (join) was actually FASTER than my second query (nested). The only thing i managed to conclude was that MySQL doesn't support indices in inner statements (not sure, if you have a better explanation, please do share). The nested query took about the same time to finish (a few minutes faster, but since i only ran it once it might have been a fluke), while the join statement was reduced to a whooping 20 minute execution time.<br /><br />Getting high on the results, and gaining some new found respect to indices, i decided to create a second index, this time on the fields (attribute and a_id) in table B. Creating this index took a LOT of time, like 6-7 hours, but the results were worth it. Now my join query finishes in about 40-50 seconds. creating the index on a_id actually makes a difference because in my query the first condition is "a.id = b.a_id", and it gets evaluated first, so when we get to the filtering part, we don't have a cartesean product, only the rows that are related.<br /><br />I'm at this stage now, still looking for ways to make even faster, however i gained a lot of respect to indices. I still have no idea how google manages to finish our search queries in a fraction of a second, i know they have WAY better hardware, but they also have WAY more information in their servers. One thing though, is that they have the ability to tune their DB server, a thing i can't don't have access to. Also, when you have a read only database (like my case), indices are a VERY good investment. Also, understanding how your DB server works, and how the query gets evaluated could give you a huge advantage.<br /><br />Special thanks goes to my project manager, Ghassan Noubani, for rewriting my join query to its present form, and suggesting the second index.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-8313468420595861166?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com0tag:blogger.com,1999:blog-3233676267543267223.post-32981228513602723212007-05-09T23:02:00.000+02:002007-05-09T23:05:25.199+02:00Still AliveThis is just to tell all the people who care that i am still alive, but unfortunately buried under a ton of work. Special thanx goes out to <a href="http://z3tr.blogspot.com/">Z3tr</a> for checking up on my every once in a while.<br /><br />I am beyond busy these days... I have a project ending in late may, so i hope i get back to blogging then...<br /><br />Until such time arrives...<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-3298122851360272321?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com4tag:blogger.com,1999:blog-3233676267543267223.post-63489667987017316262007-04-05T08:13:00.000+02:002007-04-05T08:37:14.232+02:00DRM Free iTunesApple systems in cooperation with EMI announced yesterday that they will start offering DRM free songs on the iTunes music store starting in May. The songs will be encoded at double the current bit rate, and -since there is no DRM- you are free to do with the songs whatever you see fit. You can use it on as many computers, iPods as you want, or you can even copy it to a different MP3 player. This is good news for those people who have more than one MP3 player and were forced to buy the song more than once to have it on their different machines.<br />The songs will be priced at $1.29 against the curernt $0.99, but i guess having 256K bit rate instead of 128, plus no DRM is worth the extra 30 cents. Also, you can upgrade any songs you have from the EMI catalog for just 30 cents.<br />Apple is hoping that by the end of the year, more than 3 of the 5 million songs in its store will be offered in both DRM and DRM-Free formats.<div class="blogger-post-footer"><img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3233676267543267223-6348966798701731626?l=faisaldajani.blogspot.com'/></div>Al-Faisal El-Dajanihttp://www.blogger.com/profile/02276001243078109984noreply@blogger.com2