Archive for General

One of the best features of GitHub Pages (Jekyll) is its ability to converted code blocks within ``` to a pre-formatted HTML code section.
For example, this is how you mark a section of JavaScript code.
[code]
```js
var s = 'Hi';
```
[/code]
Till recently (before Jekyll 3.x), the corresponding HTML code section used to be like the following:
[code]
<pre>
<code class="language-js">var s = 'Hi';</code>
</pre>
[/code]
This allowed us to use mostly a ...

After I updated my MacBook Pro's OS to El Capitan, all the command line tools installed via Ruby gems were gone - command not found. Here is what I experienced and how I fixed it.
On trying to reinstall the gems using gem install, I was met with a permission error. Usually this kinda issues are fixed with the use of sudo (even if not recommended), but not this time - even sudo was faced with a permission error.
I got to learn that this wa ...

If you ever come across this error while trying to update homebrew on your Mac:
[code]
error: The following untracked working tree files would be overwritten by merge:
Library/Formula/cocot.rb
Please move or remove them before you can merge.
Aborting
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
[/code]
just, do this:
[code]
$ rm /usr/local/Library/Formula/cocot.rb
[/code]
I have no idea what cocot.rb is for, or where it cam ...

There are two ways to install memcached on Mac OS X. One is the easy way, the other is the harder but more flexible way.
Installing memcached using brew is the easy way, and it is just a matter of a single command.
[code]
$ brew install memcached
[/code]
There you have memcached installed on your Mac!
...