Jquery and Thickbox noConflict mode
JavaScript
Written by Websmurf   
Saturday, 22 March 2008

It took me quite a while to figure this out, so here is a solution for anyone who finds it useful :)

If you are running Jquery in noConflict mode, the Thickbox script will not work anymore. Now, there are two solutions.. I'll leave it up to you which you like best.

The first is to place this in your head section:

(function($) {
$(function() {
// content of Thickbox script
});
})(jQuery);

It won't be possible to use the tb_init function and others because they are executed within the function.  Which can be quite annoying if you're combining the output of ajax with Thickbox.

 

Another solution is, to open the uncompressed version of Thickbox, and to replace all occurrences of $ with jQuery or the prefix you are using.
Then you will be able to use the normal functionality of Thickbox..

It will take up a bit more space though... 



There are 0 comments for this article. Click here to add a comment
Last Updated ( Saturday, 22 March 2008 )
 
Annoying "one or more files could not be updated" error
Other
Written by Websmurf   
Monday, 17 September 2007

I've been getting an annoying error when starting Mozilla Firefox or Mozilla Thunderbird lately. The error message (Annoying "one or more files could not be updated" error) indicates that one or more firefox or thunderbird updates were not completed correctly.

This is because the update process was started from a non-adminstrator user on Windows.

To get rid of the error, simply execute the following two commando's:

del /f /q /s "%userprofile%\Local Settings\Application Data\Thunderbird\Mozilla Thunderbird\updates"
del /f /q /s "%userprofile%\Local Settings\Application Data\Mozilla\Firefox\Mozilla Firefox\updates"

After this the errors will be gone... 



There are 14 comments for this article. Click here to add a comment
Last Updated ( Monday, 17 September 2007 )
 
List large files on Linux
Linux
Written by Websmurf   
Monday, 18 June 2007

A nice command to locate large files on your linux installation is:

find / -size +20480000c -exec du -h {} \; 

This will list all files larger than ~20 MB

 



There are 3 comments for this article. Click here to add a comment
Last Updated ( Monday, 18 June 2007 )
 
Mass change directory and file permissions
Linux
Written by Websmurf   
Monday, 26 February 2007

An easy way to change the permissions of all directories and files to the right ones:

For directories:

find . -type d -exec chmod 755 {} \;

For files:

find . -type f -exec chmod 644 {} \; 


There are 6 comments for this article. Click here to add a comment
Last Updated ( Monday, 26 February 2007 )
 
<< Start < Prev 1 2 Next > End >>

Results 1 - 9 of 14