Category Archives: Web

Ansel Adams

Non ci sono regole per una buona foto, ci sono solo buone fotografie. / Ansel Adams

Ho sempre pensato che la fotografia sia come una barzelletta: se la devi spiegare non è venuta bene. / Ansel Adams

L’assoluta facilità con cui possiamo produrre una immagine banale porta spesso ad una totale mancanza di creatività. / Ansel Adams

Molti ritengono che le mie immagini rientrino nella categoria delle “foto realistiche”, mentre di fatto quanto offrono di reale risiede solo nella precisione dell’immagine ottica; i loro valori sono invece decisamente “distaccati dalla realtà”. / Ansel Adams

Ci sono due persone in ogni foto: il fotografo e l’osservatore. / Ansel Adams

Fotografia. Un’austera e sfolgorante poesia dal vero. / Ansel Adams


Google Bookmarks – Firefox shortcut (no addon)

This is a small script you can use to place a special bookmark that will let you save current page in your google bookmarks.
No add-ons are required and it really easy to use.

  1. Create a new bookmark: Bookmarks > Show all bookmarks > Bookmarks menu > Organize > New bookmark
  2. Set “name” with something like “Google Bookmark”
  3. In the “location” field add the following code:
    javascript:(function(){var%20a=window,b=document,c=encodeURIComponent,d=a.open('http://www.google.com/bookmarks/mark?op=edit&output=popup&bkmk='+c(b.location)+'&title='+c(b.title),'bkmk_popup','left='+((a.screenX||a.screenLeft)+10)+',top='+((a.screenY||a.screenTop)+10)+',height=420px,width=550px,resizable=1,alwaysRaised=1');a.setTimeout(function(){d.focus()},300)})();
  4. Done!

Everytime you need to save a google bookmark just click on the Bookmarks menu, select your special bookmark called “Google Bookmark” and enjoy!

At last

And I am lost so lost
But you’re the constellations
That guide me

Plone4 buildout howto

Plone4 wants python 2.6, anyway people running python2.7 say it that works so … I’ll use python2.7.
I’m using Linux Mint 11 (Ubuntu 11).

Install python-dev package:

$ sudo apt-get install python2.7-dev

Then install EasyInstall: download the egg from “http://pypi.python.org/pypi/setuptools” and then run it as if it were a shell script:

$ sudo sh setuptools-0.6c11-py2.7.egg

Ok, so let’s use paster to create a Plone4 buildout:

$ paster create -t plone4_buildout

Run bootstrap.py:

$ sudo python bootstrap.py

Ok we’re ready, let’s run buildout:

$ ./bin/buildout

Now to start the application type:

$ bin/instance start

Done! :)

Facebook FBML deprecated – roadmap

FBML will be deprecated starting from 01/01/2012.
So, if you’re using one of the tools listed here:
http://developers.facebook.com/docs/reference/fbml/
… please notice that all FBML endpoints are removed as of June 1, 2012.

More details here:
https://developers.facebook.com/roadmap/

For updates and development news subscribe here:
https://www.facebook.com/developers/emailsettings.php

we have to get rid of facebook asap, wake up!

Plone how-to, override a file (template or image) that’s in a skins subfolder

It happens that you want to override a resource that is placed inside skins subfolder (ie “/skins/my_folder/my_file.pt”).
You’ll notice that if you place “my_file.pt” inside the “/skins/my_folder/” directory of your custom product, all the other files inside the original folder won’t be available.

The best way to override “my_file.pt” is to use z3c.jbot, a nice package that helps you customize a single file, leaving the others files unchanged.

Check out this useful package: http://pypi.python.org/pypi/z3c.jbot

Adding multiple Facebook FBML boxes to your Facebook Page

First, I hate facebook.

That said, the old method using the FBML static app ( http://www.facebook.com/apps/application.php?id=4949752878&b ) does not work anymore.
The limit is that you can add only one box since there’s no more the link “Add another FBML box” (see old method here http://youtu.be/sWNMn9FE6fc ).

So the question is “how can I add several boxes to my facebook page”?
Answer: “add several FBML boxes to your page using another app” :)
 

This is the new application:
http://www.facebook.com/apps/application.php?id=176392299079602&sk=reviews
Some other info:
http://apps.facebook.com/tabfbmledit/?ref=ts

Wait, there’s more …
At the f8 Developer Conference in Sept 2011, Facebook announced that on June 1, 2012 FBML will be completely disabled. (is this true?)
Anyway, here’s an application that should replace the Static FBML:
http://www.facebook.com/apps/application.php?id=176217385757369
Right now this application allows you to add only one box, so I would suggest you to use the “Tab FBML” app.

Me @ udinebarcamp – Social coding & open standards

Here’s my speech @ Udine Barcamp:

Go twitter, go!

Firefox: disable spell checker

Are those red lines bothering you?
Ok, type “about:config” in the address bar and then search for “spell“.
You should find a row with “layout.spellcheck“, set the value to “0” (zero).
Done!

Page 1 of 212