Archive for the 'Uncategorized' Category

And… We’re back!

Monday, April 19th, 2010

Well! After a relatively short offline period the site is back up and running on a new host. This post is meant to say thank you to all the guys from my previous hosting who gave me a chance to experiment and tinker around for free on this website for the past 5 years. Regrettably its been decided to pull the plug on ye ol’-box as it was becoming more of an overhead than a pass-time.

Just wanted to say a big thank you especially to FireBlade and elventails for their constant support and patience! =)

Flash Player + wmode transparent + Mouse Scroll = FF Disaster

Thursday, August 13th, 2009

Like any web developer can testify, during a day’s work one can come across some serious head scratching problems that require quite a bit of wizardry to get resolved. These problems revolve around solving browser quirks and are often related to the presentation layer. It seems Adobe has decided to join the bandwagon of companies that seem to think that developers have nothing better to do than to sit and solve riddles all day long with this rather nasty bug which has been around for quite sometime, and to which no decent explanation to why it hasn’t been fixed has been given. God knows its not because Firefox is not a popular browser!!! (This also affects Safari and Chrome too!)
I’m referring to the mouse scroll event not working when a flash movie’s window mode is set to transparent (or opaque).

Obviously the Gurus at Adobe have a solution to the problem which if one looks long and hard can be found here ! The solution involves a Javascript calling an AS function to dispatch the MOUSE_WHEEL event!

The code in case it disappears one of these days:


<script language="JavaScript" type="text/javascript">
<!--
if(!(document.attachEvent)) {
window.addEventListener("DOMMouseScroll", handleWheel, false);
}
function handleWheel(event) {
var app = window.document["${application}"]; // I used Mootools DOM selector to get the SWF container.
if (app) {
var o = {x: event.screenX, y: event.screenY,
delta: event.detail,
ctrlKey: event.ctrlKey, altKey: event.altKey,
shiftKey: event.shiftKey}

app.handleWheel(o);
}
}
// –>
</script>

That’s as far the JS is concerned. Next on to the AS3 function:


function handleWheel(event:Object): void {
var obj:InteractiveObject = null;
var objects:Array = getObjectsUnderPoint(new Point(event.x, event.y));
for (var i:int = objects.length - 1; i >= 0; i--) {
if (objects[i] is InteractiveObject) {
obj = objects[i] as InteractiveObject;
break;
} else {
if (objects[i] is Shape && (objects[i] as Shape).parent) {
obj = (objects[i] as Shape).parent;
break;
}
}
}
if (obj) {
var mEvent:MouseEvent = new MouseEvent(MouseEvent.MOUSE_WHEEL, true, false,
event.x, event.y, obj,
event.ctrlKey, event.altKey, event.shiftKey,
false, -Number(event.delta));
obj.dispatchEvent(mEvent);
}
}
ExternalInterface.addCallback("handleWheel", handleWheel);

And there you have it folks!!

Hopefully Adobe can spend time fixing the bug in FP as it would time well spent instead of finding work arounds!

All Hail “Princess” Lea

Tuesday, May 26th, 2009

Today I’m the proud uncle of a little bundle of joy named Lea. Born May 25, 2009 at 12:15 PM at 50cm and 3.140 Kg.

Little Lea

About the Current State of Gaming

Monday, December 22nd, 2008

Here is something I read on OSNews that I find so true about games today! Being an old time gamer, I remember the hay days of gaming where substance and function were more important than form. These include the Lucas Arts game series such as monkey island in all 3 incarnations, full throttle, day of the tentacle but also oldies but goldies like Captain Keen in all their pixel glory. Most platform games focused more on gameplay and story rather than form, and where the ending was a bit more than 10 sec movie clip that barely makes up for the hours of play.

Just thought I’d put this out there as well since I tend to agree that the current state of gaming is in dire need of substance over form if it is to keep a following in the 25+ age bracket.

Mazen’s Guitaaaar String!

Monday, December 22nd, 2008

Mazen’s latest guitar practice


The bane of Malware bites

Wednesday, August 13th, 2008

A few days ago just out of the blue I find my Desktop acting up strangely. Sluggish response time, browsers
crashing every so often, network disconnections. Although I’d usually jump to the obvious conclusion that this could be the work of some rogue program running around my computer, I dismissed the idea given the amount of protection I’ve already had in place. After much registry rummaging, and Googling, I finally stumbled on a small piece of software called MalwareBytes, which found the presence of the lovely Vundo trojan. Now that’s one nasty trojan by any measure, given the way it hooks into the system attaching itself to key Windows processes, all that without a whisper from my trusty Node32 Antivirus program. So I finally gave in to the obvious and went shopping for a reliable Spyware solution to run alongside my Antivirus for extra reliability. My choice … SpySweeper, which had the real-time protection features needed as well as an excellent feature list with a very acceptable price tag.

Needless to say that the pesky Vundo trojan was finally smoked and cleaned out of my system.

Recommendation: Either an antivirus or spy/ad ware solution will not cut it alone, expecially if constantly connected to the Internet, a good combination of both should make for some peace of mind!

Some News

Monday, May 12th, 2008

Well during the past week or so, I did get to upgrade my web photo gallery without a hitch, finished and delivered my first major website development for Solidere International www.alzorah.ae and had to relive all the crap we thought, as Lebanese, had put behind at the beginning of the 90s. Funny how short the collective memory is. Suddenly the factions killing each other look back at the civil war days as some epic battle of the brave, forgetting the rampage and devastation they had left in their wake. Never again, everyone cried out, and here we are 17 years after the last bullets were fired during our 17 years civil war, back at it again. It seems we have a particular affinity to the number 17, as it seems to stands for our collective memory retention time span. Ironic, hardly, disgusting, most emphatically. Living through one war was tough enough, reliving it again! I’ll be damned if I do. Enough said!

First Published Paper

Saturday, April 19th, 2008

Happy news from my adviser this past week. My thesis paper “An Improved Quorum Selection Algorithm (IQSA)” has been accepted to be presented at the upcoming CTRQ 2008 conference and published in its proceedings which will be made available through IEEE Xplore as well.

Some more nostalgia (albeit not so old)

Tuesday, February 5th, 2008

Remember Muse? Thats one of my all time favorites!

 

Remembering the Manic Street Preachers

Saturday, February 2nd, 2008

I’ve been racking my brain for an entire day trying to remember a particular band and a video clip. All I could remember was a white room and the lead singer’s face. After many unfruitful searches I stumbled upon the band’s name and looked into one of their other songs and just by chance stumbled on the one I was looking for. Talk about luck! Not to mention that they seem to reflect the situation we found ourselves in (yet again!)