NS_ERROR_FILE_CORRUPTED How to fix? in Firefox console.

If you catch in Firefox console NS_ERROR_FILE_CORRUPTED then you have problems with local storage 🙁 Bad news
Good news. Fast fix:
Steps.
0. Close firefox and go to

C:\Users\{your_user}\AppData\Roaming\Mozilla\Firefox\Profiles\{random_string}.default\

1. remove(or rename) webappsstore.sqlite
2. Run Firefox.

Happy browsing)

CSS for placeholders / Universal solution

If you use placeholders titles for your input fields then you can pay attention to fact that in different browsers(Firefox,IE,Opera,Safari,Chrome) we can see various types of decoration.
Nowadays, universal solution is :

:-moz-placeholder { /* Firefox 18 */
  color: white;
}
::-moz-placeholder { /* Firefox 19+ */
  color: white;
}
:-ms-input-placeholder { /* IE 10+ */
  color: white;
}
::-webkit-input-placeholder { /* Opera + Safari + Chrome */
  color: white;
}

Thats all…

Develop our first own plugin/extension for Mozilla Firefox / Part 1 / First npm error on windows platform.

Firstly, you need instal this tool: JPM
Installing from GitHub to get latest features or working on jpm itself, use npm link to add the jpm global to your path:

git clone https://github.com/mozilla/jpm.git
cd jpm
npm install
npm link
And “hello” error:

Error: ENOENT, stat ‘C:\Users\%username%\AppData\Roaming\npm’

Easy fix:
npm install npm -g

Continue reading Develop our first own plugin/extension for Mozilla Firefox / Part 1 / First npm error on windows platform.