Archive for the ‘Web development’ Category

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.

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

How to add multiple files to SVN

Share/Save

We all know that when you want to add multiple files to the SVN repository you need to specified each one of those files, something like this:

svn add file1 file2 dir3/file3

But what happen when what you need is to add all those files that are not under revision yet?

Well, in that case we have this solutions:

svn add $( svn st | grep "^?" | awk '{print $2}' )

I hope this make a little bit easier your working days.

Update: I have found this other option that is shorter and easier to remember.

svn add * --force