Select all Facebook friends

This little script helps you to select all your facebook friends (to share something or send page suggestions):

var friends = document.getElementById("friends").getElementsByTagName("a")
var clickEvent = document.createEvent("MouseEvents");
clickEvent.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null);
for(var i = 0; i < friends.length; i++) {friends[i].dispatchEvent(clickEvent);}

Using Firefox and Firebug open a facebook page, click “Suggest to friends”, a popup window with all your contacts will open.
Paste inside the console area the code above than click “run”, all your friends should be now selected!

Update:
There’s an easiest way to run this code, just put it all in a row and prepend the keyword javascript: than paste the object code inside the address input field of the browser and press enter.

Copy and paste inside address bar:
javascript:f=document.getElementById("friends").getElementsByTagName("li");for(var i in f){if(typeof(f[i]) === "object"){fs.click(f[i])}}

Waveform project, convert mp3 audio files to png images

I’d like to present my new project: Waveform.

This simple web application is a workbench to test audio waveform conversion to image.

Just upload an mp3 file to get its waveform in png format.

What a trip!

Trippy

White morning

The snow!

This is what i saw this morning from the window of my living room:

Snow

Yuppy!

How a web design goes straight to hell

This is what often happened in my old job place: http://theoatmeal.com/comics/design_hell

Focus the Web Tech Blog

I’ve started a new blog at http://tech.focustheweb.com. This is a technological blog about programming and web and I’ve choosen to write it in italian to reach more people from my country.

StudioLiz on air

Check out StudioLiz the new work I’ve done in collaboration with Plico.

The site is powered by ArcaCMF version 0.3.

StudioLiz

Moving on…

AWS

Just to let you know that Focus The Web moved to Amazon AWS.

Tell me what do you think about cloud computing and AWS more specifically.

The Pomodoro Technique

pomodoro

I waste a lot of time reading emails or chatting and so on, but there is a simple technique to spend your time the right way, this is the Pomodoro Technique.

The Pomodoro Technique is a time management method. For many of us time is an enemy. The anxiety triggered by “the ticking clock” and deadlines to be met leads to ineffective work and study habits and procrastination. The Pomodoro Technique transforms time into a valuable ally.

Silly question

Talking about a new web project with Nicholas:

me: “Can i have access to project source files?”
Nicholas: “No we’ll give you two magnets to tweak the harddisk… (big laught)”