Wednesday 17 Mar 2010 by Giovanni Cappellotto |
2 Comments
Filed under:
Coding
Tags:
facebook,
friends,
suggestions,
trick
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])}}
Wednesday 27 Jan 2010 by Giovanni Cappellotto |
4 Comments
Filed under:
Ideas
Tags:
mp3,
mp32png,
png,
project,
waveform
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.
Saturday 19 Dec 2009 by Giovanni Cappellotto |
No Comments
Filed under:
For fun
Tags:
trip
Saturday 19 Dec 2009 by Giovanni Cappellotto |
No Comments
Filed under:
For fun
Tags:
snow,
winter
The snow!
This is what i saw this morning from the window of my living room:

Yuppy!
Sunday 6 Dec 2009 by Giovanni Cappellotto |
No Comments
Filed under:
Internet
Tags:
web design
This is what often happened in my old job place: http://theoatmeal.com/comics/design_hell
Monday 23 Nov 2009 by Giovanni Cappellotto |
No Comments
Filed under:
Ideas
Tags:
blog,
tech
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.
Saturday 21 Nov 2009 by Giovanni Cappellotto |
No Comments
Filed under:
Internet
Tags:
plico,
studioliz,
work
Check out StudioLiz the new work I’ve done in collaboration with Plico.
The site is powered by ArcaCMF version 0.3.

Wednesday 18 Nov 2009 by Giovanni Cappellotto |
No Comments
Filed under:
Internet
Tags:
amazon,
aws,
server

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.
Tuesday 27 Oct 2009 by Giovanni Cappellotto |
No Comments
Filed under:
Ideas
Tags:
pomodoro,
time

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.
Monday 26 Oct 2009 by Giovanni Cappellotto |
No Comments
Filed under:
Coding
Tags:
question,
sources
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)”