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().
Jul 12, 2010
Example usage of Facebook.streamPublish()
DUE TO FREQUENT FACEBOOK API CHANGES THIS ARTICLE IS OUTDATED.
You can force streamPublish dialog from within the href bar in the browser. Also note the application ID prefix in the functions. More detailed code description is superfluous. javascript:c=9999999;h='Click Challenge';l='http://apps.facebook.com/click-challenge-en/?ref_6w=f_clicks';a126752370697733_Facebook.streamPublish('',{'name':h,'href':l,'caption':'{*actor*} made '+(c/1)+' clicks in 10 seconds.','properties':{'Speed':{'text':(c/10)+' clicks/sec','href':l}},'media':[{'type':'image','src':'http://w6.6waves.com/my-app/data/126752370697733/logo.gif','href':l}]},[{'text':h,'href':l}]);
You can force streamPublish dialog from within the href bar in the browser. Also note the application ID prefix in the functions. More detailed code description is superfluous. javascript:c=9999999;h='Click Challenge';l='http://apps.facebook.com/click-challenge-en/?ref_6w=f_clicks';a126752370697733_Facebook.streamPublish('',{'name':h,'href':l,'caption':'{*actor*} made '+(c/1)+' clicks in 10 seconds.','properties':{'Speed':{'text':(c/10)+' clicks/sec','href':l}},'media':[{'type':'image','src':'http://w6.6waves.com/my-app/data/126752370697733/logo.gif','href':l}]},[{'text':h,'href':l}]);
Subscribe to:
Posts (Atom)