Reinstall package manager in FreeBSD 10.X

pkg_info/pkg_create/pkg_add commands have been replaced in FreeBSD version 10.X by pkg. Personally I think the new package manager is quite amazing and way better than the old one. For more details about new features, refer to this link: https://www.freebsd.org/doc/handbook/pkgng-intro.html However, on very rare and unusual occasions pkg might break and …

How to add Spring RestTemplate to Android Studio

As mentioned in a previous post related to Android, Android Studio has lack of documentation for novice users. For instance, one of the lacking area is how to add dependencies to Android Studio projects. Default dependency/build manager in Android Studio is Gradle which personally I am not a big fan, …

How to open formatted markdown files in Linux terminal

Markdown files (.md) are extensively used in Github and other places for various purposes. No doubt that they are getting more and more popular. For instance, Leanpub supports markdown for writing books or better to be said it relies on markdown. Besides that many people use markdown for writing scientific …

How to write mathematical equations in WordPress

One of the WordPress drawbacks is lack of default support of math formulas. Fortunately, there are few plugins available to facilitate adding LaTeX style equations. Among them, WP QuickLaTeX and Jetpack by WordPress.com plugins seem to work the best. Simply just install one of them and add your equation in …

How to change command prompt in FreeBSD

By default FreeBSD does not show anything in command prompt such as path, username, hostname except $. For many this can be quite annoying. As an example user does not know the current path and to get that must run pwd which is a redundant step. To have a more …

Displaying WordPress post content in multiple columns

Two approaches are available to display WordPress posts contents in multi-column, something like this. The first approach is to use a WordPress plugin called Column Shortcodes. It is very good plugin with high flexibilty and ease of use particularly for those who do not have much context about web designing …