Friday, October 30, 2015

Psycho - Muse (Bass Cover // 5 String)

Surprisingly this only took me an hour to learn and record!

Saturday, October 17, 2015

Ralink RT5370 USB WiFi adapter on El Capitan 10.11.x

Note: These instructions are valid for the following drivers: RT2870/ RT2770/ RT3X7X/ RT537X/ RT5572

In a previous post I showed you how to install the Ralink RT5370 and equivalent USB WiFi adapter for OSX Yosemite 10.10.x. In this brief post we will use the information learned in that previous post and adapt it to install the same driver on the new OSX version released a few weeks ago, El Capitan 10.11.x.

Note that throughout the article I will make reference to the following tools and drivers that you can download from here:
1. Bear Extender (GUI for managing the WLAN)
2. RT2870USBWirelessDriver.ext (The Ralink Driver)
3. SIPUtility (an application to manage El Capitan SIP)

But before we start you should understand that Apple made a number of security changes to El Capitan, one of them called SIP (System Integrity Protection). Follow the link for more details about SIP, but the most relevant to us is to understand that in a nutshell the driver will not work (load into the kernel) out of the box, and we need to disable SIP completely for it to work.

As such you need to first run the SIP Utility (credits go to the hacker cvad) to disable SIP completely:

Reboot your machine, and then copy the RT2870USBWirelessDriver.ext driver to /System/Library/Extensions:

Final step is to install the Bear Extender WiFi management GUI. Once you reboot the machine once more, you are able to use the Ralink driver on El Capitan!

EDIT (8/11/2015): I have noticed some people find it difficult to use SIPUtility or install the package manually from the terminal. If you're not comfortable with the terminal, there is an easier alternative by using Pacifist:
1. Download Pacifist from
2. Open the installer.pkg file from the driver you downloaded in pacifist, and select to install to default location, and use administrator privilege
3. Reboot
4. Install Bear Extender WiFi management GUI. Once you reboot the machine once more, you are able to use the Ralink driver on El Capitan!

EDIT (10/11/2015): If you are having issues to disable SIP with SIPUtility, you may try the KCPM Utility Pro.

Friday, October 16, 2015

Docker Fix "cannot enable tty mode on non tty input"

Running docker on windows can be a bit challenging for newcomers. This is mainly because Docker was actually meant to run on Linux environments (LXC containers). One of the most common challenges among Windows users is to attach a TTY session to a docker container to run for example a bash shell.

Inherently, the Docker command tool for Windows, which is based on Cygwin/Mingw does not have TTY input, and the following error will pop up:

The workaround is to use winpty (which comes with Mingw):
alias docker="winpty docker"

Friday, September 25, 2015

Chocolatey - Windows style apt-get package manager

Just discovered a nifty package manager for Windows - Chocolatey. Do not get fooled by the silly name - choco has 3k packages to choose from and give the Windows power user plenty of opportunities to automate stuff.

Monday, September 21, 2015

Git for Windows

Due to new workplace I had to adapt myself into using Windows (who would have thought after more than 15 years as a Linux power user!!). It took me long to discover a great tool to use for Git - called Git for Windows.

Not only it comes with a handy GUI to visualise commit history, branches and version control, but it comes with a 'Git Bash', which is a console loaded with Linux tools!

Saturday, June 13, 2015

Histograms in Mac Excel

In this quick post I will demonstrate how to create a histogram in Mac Excel including the Bin Labels as x-axis.

STEP 1: Start with your data formatted as bin and individual frequency (that is derived from the cumulative frequency).

STEP 2: Highlight the entire table, click on Charts, and select Column. You will end up with an incorrect histogram which we'll fix in the next step.

STEP 3: Fix the histogram y-axis values by keeping the correct series (IQ bin).

STEP 4: Fix the histogram x-axis values by copying the IQ bin raw data and then Paste Special inside the Chart (by selecting it before pasting). The data needs to be pasted as a new series with Values Y as Columns, and X Labels as Categories. Make sure you check the box to replace existing categories otherwise it will not work.

STEP 5: You will now end up with the correct histogram.

STEP 6: If you want to widen the bars, right click on one bar, and select "Format Data Series..". In the "Options" tab adjust the "Gap width" to 15%.

STEP 7: Final result.

Friday, June 12, 2015

WiFi Cascaded Home network

I had some free time to design and build a cascaded WiFi network for my home. I have recently bought a TPLink router (TL-WR841HP) to replace an older MSI WiFi router because I needed to cover all the house with WiFi. 

The TL-WR841HP is great, and to be honest I did not actually need to cascade the network because it's Signal Power is rated x4 the conventional routers - so that covered almost the entire house! Having said that, I wanted to dedicate a router just for first floor where I have my Android box streaming HD movies, so I wanted to squeeze all the juice through a singular router (MSI). 

The setup is shown below and quite self explanatory. If anyone wants more details, just drop me a comment.