Brain fried – but needing to think of a comp. science title within 10 mins?

This cracked me up: CS Topic generator

Struggling to come up with a thesis title for your computer science topic? If you needing to be inspired, or kick-start those creative juices, or just plain can’t be assed to think of something yourselves – consult the “CS Topic Generator”!

You could probably even use it to think of a revolutionary topic!!!

The real cherry on top was the “Perform literature review” button 🙂 wow. Can’t wait until there’s a “generate thesis” button lol

Allowing events to fall-through div regions

I have been on a mammoth quest to discover how to redirect events from a large transparent div (covering a whole web page) to elements below the div region. At this point I have not found a solution. However progress was made and such info could save a hell of a lot of time for some people who share such a quest!

First thing I achieved was to capture all mouse events on the transparent div and discover the underlying elements at which the mouse was over. This was achievable using object.elementFromPoint(x,y). It seems to be supported by both Mozilla and IE. I’m not sure about others.  I used Dojo for cross-browser event handling. Before elementFromPoint can be used you must somehow hide the div then afterwards show it again, you could adjust the style or remove/append the actual node. NB: this does not introduce flickering. Here is example code:


divElement.style.visibility = "hidden";
var targetElement = document.elementFromPoint(evt.clientX, evt.clientY);
divElement.style.visibility = "visible";

Note that when capture mouse events, capture all DOM and browser-specific events (e.g. DND events).

At this point we want to re-fabricate the event as if it were to be sent to targetElement. This is where I have racked my brains for the last day 😮  Originally I redirected the event by using targetElement.dispatchEvent or targetElement.fireEvent (depending on the browser support), however the results are very temperamental: sometimes things work and most times the event does not do anything! Very frustrating. I read here: (http://www.howtocreate.co.uk/tutorials/javascript/domevents) that firing “fake” events so not cause the default action to occur due to security reasons etc. So now this approach is looking grim. It makes me wonder though about how on earth sometimes the default actions execute.

One of my theories is that it has to do with threading and events. For example, maybe the default action will only execute if the div is still invisible (or non-existent) at the time of the events execution. Therefore the div’s visible property must be set to “visible” after the default action (supposedly) occurs. I ran some tests and this theory does seem to stand. Plus event threading support with JavaScript is virtually non-existent.

If worst comes to worse and no elegant solution can be found, I may have to resort into implementing the “default action” in JavaScript which may be a nightmare!

Beggining of a new year

My final year at university: my masters thesis. Last year ended with great results, I completed a project called “Apollo” which was an experimental hypermedia environment for creating, editing and managing audio data.

For the next year I am focusing on Web development: something I have zero experience and knowledge in, well I know a little html and some basic concepts. I have avoided the web dev area because I had always seen it as a limited/restricted dev environment. However now that web 2.0 has been introduced and continuously expanding my view has changed.

This year I want to try and implement innovative ideas with web applications and push the limits of what can be done in a web browser. The amount of technologies and API’s are so overwhelming it’s difficult to know where to start!