In flash player 9 and below there was a problem with the object's z-index if the wmode was set to window.
When this option is set to transparent, it fixes the z-index issue, but messes up the keyboard layout and mouse wheel events in flash object.
Flash player 10.1 fixes the keyboard layout issue.
Workaround
Setting wmode to opaque keeps the mouse wheel functionality and z-index of absolute elements on the page, but only if you set the background color for the element!
Having a transparent background (or setting the opacity attribute in CSS) (still) does not solve the issue.
Nov 21, 2010
Nov 13, 2010
flashlog.txt NS_ERROR_FAILURE
If flash player (debugger) locks the flashlog.txt file (can't be deleted or truncated), try deleting the mm.cfg file and restarting the browser and/or flash player.
After that, try using a different plugin/software for reading flash traces.
Aug 22, 2010
Installing BackTrack Linux on a USB key with VMWare, the easy way
- Create a new virtual machine in VMWare. You do not need to add a hard disk. Just delete it, just in case. For the CD Rom add the iso image of BackTrack Linux.

- Start the virtual machine. You might need to edit boot in the BIOS, so press F2 to enter BIOS setup and set CD rom as the primary boot.
- Enable Removable Device in vmware so that it will show up as a USB disk on Backtrack

- When BackTrack loads open install.sh on the desktop.
- The installer should now automatically use your USB key as the primary disk for the install.
- Use default partitioning and install.
Just Click OK.

- After a successfull installation, your USB key is ready to boot.

- Boot into Backtrack and login with root/toor - the default username and password
Jul 31, 2010
Enabling Lightbox on Google's Blogger
It's fairly simple. Just add a simple JavaScript to the template next to the Lightbox import.
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery('#Blog1 a img[class!=icon-action]').parent().attr('rel','lightbox[imgs]');
jQuery('#Blog1 a img[class!=icon-action]').parent().attr('title','© Žan Kafol');
});
</script>
<script type="text/javascript" src="js/prototype.js"></script>
<script type="text/javascript" src="js/scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="js/lightbox.js"></script>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen">
Jul 16, 2010
JavaScript: escape()
When you're sending a string through a GET request with javascript, you should obviously URL encode the string to ensure all characters get transmitted. The escape() function in javascript works fairly well, even when you're sending UTF-8 characters. But the + character is interpreted as a space in the GET request, so you need to handle it manually.
Here's how I do it:
msg = msg.replace(/\+/g,'%2B');
geturl('ajax.get.php?msg='+escape(msg));
First, you do a global regex match for the plus character, replace it with it's url encoded equivalent, and then you url encode the string with escape().
Subscribe to:
Posts (Atom)