A brilliant find and replace snippet

I was looking for a way to perform “find and replace” operation on a string in Flash using Actionscript, I googled and came across this, I was really amazed to see how that piece of code does its job.

What it does is simply break the subject string at the occurrences of the needle string and rejoin the resulting array using the replacement string.

function searchAndReplace(holder, searchfor, replacement) {

//Break
temparray = holder.split(searchfor);
//Rejoin
holder = temparray.join(replacement);
//Return
return (holder);
}

Brilliant!

Full-length screenshots of websites on Firefox

A few days ago I was writing a tutorial on RSS readers and Social bookmarking, in that tutorial I needed to take snap shots of several websites and I needed a tool to do this quickly and easily.

I Googled and Googled until I found this Firefox addon

it adds a small button to your toolbar which allows you to take a snapshot of the whole website length or just the visible portion, It helped me alot, I highly recommend it.