Karma – 0 tests completed

Running unit testing with Karma on Google Chrome browser on a Angular 2 application.

No tests were running ūüė•

‚ąö 0 tests completed

In the Chrome window, the console said

Refused to execute script from 'http://localhost:9876/base/src/tests/test.ts?b58784c03c82bb3f722dcb6d25bd26cdf145b12b' because its MIME type ('video/mp2t') is not executable

I found a solution here saying that I just need to add the following line to karma.conf.js

mime: {
'text/x-typescript': ['ts','tsx']

Google Chrome – Make Ecosia your default search engine without installing the extension

I love Ecosia, the search engine that plants trees.

But adding their extension to make it your default search engine slows down a bit the speed of searches.

So here is how to add it as default search engine without the extension:

  • Go to the Parameters¬†of Google Chrome
  • Then under “Search”, click “manage seach engines”chrome search egine.JPG
  • Add a new search engine at the end of the list with this string as the URL
  • Make it your default search engine
    ecosia default.JPG


Warning:¬†Doing this will remove the auto-suggestion that Google gives you while you’re typing a search in your address bar ūüė¶

If you want to do a particular search with Google (or another search engine existing in the list), simply type the keyword assiociated to this search engine, then TAB, then your search.

Windows – Google chrome super slow

When my computer was tunring up from sleep, Google Chrome was super slow to load the first page. The status bar indicated “T√©l√©chargement du script du proxy en cours”.

The solution to this problem is to uncheck the following option:

solve chrome super slow
Chrome’s parameter -> Proxy parameters -> Network parameters -> Uncheck checkbox