How to display an icon for broken images in Firefox

Share/Save

The first part is make sure your browser.display.show_image_placeholders variable is set to true in your config file. To do this type about:config in the address bar of the browser, hit enter, and then do a search for this variable. A double click will change the value of the variable.

If you still can’t see the icon despite the fact that browser.display.show_image_placeholders is set to true then you need to follow this steps:

  • Go to the Firefox profile folder.
  • Go into the user folder found there.
  • Go into the chrome. folder
  • Duplicate the file userContent-example.css and save it as userContent.css
  • Open a text editor and paste the following code:
    /*
     * Show image placeholders
     */
    @-moz-document url-prefix(http), url-prefix(file) {
      img:-moz-broken{
        -moz-force-broken-image-icon:1;
        width:24px;
        height:24px;
      }
    }
    
  • Save the file and restart Firefox

On Mac Os X the path to the css file would look something like this:
/Users//Library/Application\ Support/Firefox/Profiles/ /chrome/userContent-example.css

I hope this had solved your problem.

Vancouver City TimeLapseHD

Share/Save

My friend Amalahuige (Amala for his friends) has passed me a very cool video of the city where I live.

Here is Vancouver in time lapse, enjoy.

Say NO to shark fin soup

Share/Save

At the end of this year I will have completed my pledge of not eating Chinese food for a year in my battle against shark fin soup, however I will continue with this commitment until the shark population goes back to normal.

My family supports me and my wonderful wife bought a full bus billboard in China. These billboards will be placed in either Beijing or Shanghai for a full year and will encourage people to stop consuming shark fin soup. In addition to this she adopted a shark through the WWF and purchased merchandise through www.sharksavers.org and www.seashepherd.org.

Here is a copy of the digital certificate:

Trujillo Pozzolo family say NO to shark fin soup

Thank you Irene for this wonderful Christmas present.

I’m in Google Street View

Share/Save

Big Brother is watching me, and I’m not talking about the stupid reality show but about Google… yes it is a fact, I’m on Google Street View; can you see the guy with the blue jacket?

Let the girls take the bike

Share/Save

I thought I have seen everything on a bike but for sure never have seen two girls on a bike…

Trampe, the bicycle lift

Share/Save

Check out this amazing lift system used in Norway to help cyclist to reach the top of the hills, I wish we would have one of this in Tenerife :)

Bike storage solutions

Share/Save

Today I came across to an interesting website that offers nice solutions for bike storage. When you live in a small apartment and have 3 bikes in your house, plus one more bike in your in laws house, plus the thought of acquiring more bikes (one for Maite and the other one for…. I told you guys, I need a bigger house); the space storage become a big issue.

Penny Farthings offer you a nice collection of products to solve this problem, check out The Green Pod I wish I would have space where to put one of this.

The Green Pod

The Green Pod

Tips, Tricks, and Applications

Share/Save

Everything that make our life easier is always welcome, that’s why I have created this page. I pretend to collect some of all those “Tips, Tricks, and Applications” that I used to make my work journey ;)

Applications

  • Coda is more than a text editor and is the second most used application in my computer (is difficult to beat browser’s first position)
  • Dockables: With a simple click of your mouse you can lock your screen, backup your time machine, go to sleep mode, and more…

Tips & Tricks

Hide Text from Submit button with CSS

Share/Save

Here is the solution of how to get rid of your submit button’s text with CSS and not only that, we also are going to replace the entire button with an image.

You are not going to believe the hack that I had to used to make it work in IE6… seriously, when the hell is this browser going to die? Another nightmare of morning thanks to it.
Read the rest of this entry »

PHP short-hand IF/Else statement

Share/Save

Let’s keep it simple:

Regular way:

if (statement) {
  $variable = "return this if true";
}
else {
  $variable = "return this if false";
}

Short way:

$variable = (statement) ? "return if true" : "return if false";

And this is how it works: statement ? if-true : if-false

Page 1 of 41234