-
darker background image
I was stunned to learn I could set the opacity of a background image like this: background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url(‘/path/to/image’); and darken the background image.
-
High System CPU usage
After upgrading a webserver running Apache to Debian Jessie (from Wheezy), I noticed that the system CPU usage was higher. Running an strace on one of the Apache processes was giving me very little info: strace -c -p 10112 Process 10112 attached – interrupt to quit ^CProcess 10112 detached % time seconds usecs/call calls errors…
-
HHVM notes
Impressive throughput improvements (>100%) with the app that I am working on. phpinfo() doesn’t output what you would expect. xhprof output_dir doesn’t get read from ini files, need to set that up in the constructor of XHProfRuns_Default. Set hhvm.server.thread_count to a high value (>=MaxRequestWorkers), otherwise a few slow MySQL queries could bring the server to…
-
HTTPS and GA referral exclusion
After converting a site to be served over TLS, we noticed the drop off rates increasing on some pages. This was because: user was being redirected to a payment page on another domain that was also served over TLS. As, now both sites were served over TLS, Google Analytics was picking up the referrer (HTTPS…
-
casperjs output to html
Documenting what I had to do. Used XSLT from here: nosetest xslt Problems and Fixes: Firefox was inserting “transformiix” as the root element, this caused the DOCTYPE to be spit out. I fixed by adding: doctype-public=”-//W3C//DTD HTML 4.0//EN”/ to
-
mysql setup for phabricator
Create phabricator user to be used in phabricator config Grant the above user CREATE TABLESPACE permission so he can create DB Grant all permissions on the phabricator tables to the above user (daemons/upgrade scripts require different permissions – the permission list from the doc wasn’t enough, so I granted all permission to the user) CREATE…
-
Forum for Indians in Australia
Ausindians
-
Keepalived instance not entering FAILED state
When a monitored interface goes down, the instance immediately enters FAILED state and the other instance gets into the MASTER state. But, if you have a script block to check – say you are monitoring HAProxy – and HAProxy goes down the MASTER will not enter FAILED state, unless you do this: Set the weight…
-
Discourse with Docker on port 80
Discourse can cause you trouble if you have it running(listening) on a non-standard port inside the Docker instance. (the feed, google auth return url have the port and host info in them) (assuming you would like to serve requests from a standard http(s) port). To make it work smoothly, I had to make it listen…
-
linux disk usage not adding up
Umount file systems on that partition one by one and look for files in the mount point. When mounting a filesystem on a mount point any existing files in that mount point are not deleted. They just appear hidden when running du.