Showing posts from March, 2019


I just made a website I have explained why I did it in the front page.
I am going to record some of the problems that I had and how I solved them in this post.
Prod code doesn't work The code works in development mode. But it doesn't after minified. The error message was:

Uncaught Error: [$injector:modulerr] Failed to instantiate module rp due to: Error: [$injector:unpr] Unknown provider: e

I found a post on stackoverflow and fixed it like this.
Add domain to an existing Letsencrypt cert$ certbot certonly --cert-name -d,,,,
Redirect http traffic to https on lighttpd Add this to lighttpd.con and also enable mod_redirect.
$HTTP["scheme"] == "http" { # capture vhost name with regex conditiona -> %0 in redirect pattern # must be the most inner block to the redirect rule $HTTP["host"] =~ ".*" { url.r…

Gulp bash completion

I tried this. I followed the instructions on the above page, but it didn't work.

Then I did the following and it worked:
Locate the gulp-completion.bash file installed by the package.Change the echo_gulp_tasks variable in gulp-completion.bash file to gulp --tasks-simpleCopy gulp-completion.bash to /etc/bash_completion.d and source the file in current shell. Now try type gulp [space] and hit [enter], the completion should work.

At this time, this npm package is no longer required. So you can uninstall it.