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.

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.

RT5370 USB WiFi adapter on Yosemite 10.10.x

Got myself one of these cheap RT5370 chipset based USB WiFi Adapters (C1288) for my old Macbook Pro whose airport card died. Naively I thought that it was just a matter of plug 'n play... But Yosemite made it difficult for me and I have literally spent 7 hours to find a solution.

So I am going to explain what needs to be done in a few steps and of course in a way that even non-hackers can understand. Note that this solution will work on a number of Ralink and Realtek chipsets. 

(Hint: Do you want to do a quick business? Click here to order x10 of these WiFi dongles and follow the instructions to install on to your clients. Thank me later!).

Download and install this package. This will install the KExt for Yosemite. Do not Reboot yet.

Edit Info.plist (/System/Library/Extensions/RT2870USBWirelessDriver.kext/Contents) and add the following code:

Note for the hackers: I added a new key for the Product ID and Vendor ID of this particular dongle (Get this from the system profiler). Make sure you translate Hex value to Decimal. For example in my case Product Id is 0x7601 (decimal: 30209) and Vendor Id is 5263 (decimal: 5263).

Fix Permissions and Refresh Kext by running the following code in terminal:

Download and copy the DWA-140 utility to the System Preferences pane:


If you go to the System Preferences -> DWA-140 (at the bottom), you should be able to see the nearby WiFi networks (or far ones if you connected an external antenna!).

Since I have a hidden SSID WiFi router (security through obscurity!) I had to manually enter its details by clicking on the "Create Profile Drawer" and add a new profile for my connection.

The reliability and performance is excellent to say the least:

EDIT: Some people experience difficulties with the DWA-140 utility. As a recommendation you can try the MediaTek tool. Download and copy to your applications folder.