Category Archives: Uncategorized

AES Encryption/Decryption in Python

This is a snippet in using the PyCrypto package in Python to encrypt and decrypt with AES. The first one implements AES CFB mode – padding is not required for byte alignment. The second one implements AES CBC and PKCS7 … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment

Converting a Bullet List in Word to HTML

The obvious solution is to save as an html document in Word, but the markup produced is not usable. There are several ways to convert the content into clean html. 1. Copy/Paste into Dreamweaver in Design Mode. 2. Copy/Paste into … Continue reading

Posted in Uncategorized | Leave a comment

Apple Wireless Keyboard in Windows 7 64bit

Windows doesn’t have the drivers by default. They are bundled with Boot Camp. Installing Boot Camp will also enable the special function keys, like volume up and down. 1. Download and install Boot Camp 3.0 from: insanelymac.com (look for M4xim’s … Continue reading

Posted in Uncategorized | Leave a comment

Disconnecting Internet Access without Unplugging

This is disabling the internet for the lazy. The back of the computer is usually filthy and not very accessible, so here are three ways to accomplish this inside Windows. 1. Disable the Network Adapter. Bottom right, Network and Sharing … Continue reading

Posted in Uncategorized | Leave a comment

Django Custom Decorators

Here is a short guide on using custom decorators in Django as I did not find one with a good explanation. A decorator is essentially a function that is wrapped around the original. They are defined in TWO slightly different … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

iOS Splitscreen Collection Views with Storyboard

A quick tutorial on how to embed two collection views into a single controller. It will look like the image below. It can be extended to use other types of views. Create a simple view application. In storyboard, Editor>Embed In>Navigation … Continue reading

Posted in Uncategorized | 2 Comments

Threaded Comments in Ruby on Rails

This is the basic structure of a threaded commenting system in Ruby on Rails (3.2.9). Comment model uses polymorphic associations to differentiate between which model it belongs to. config/routes.rb 123456resources :comments do   resources :comments end resources :posts do   … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Blackberry Mobile Hotspot with Fido

I recently updated my Bold to the 7.1 OS for the mobile hotspot feature. However, when I tried to activate it, I got an error saying that it was not supported by my network service provider. To fix it, I … Continue reading

Posted in Uncategorized | Leave a comment

MBET Q&A for Prospective Students

I had someone who is still on the fence whether to embark on the MBET (Master of Business, Entrepreneurship, and Technology) journey email me about the program and my experience. I thought it would be useful for anyone considering the … Continue reading

Posted in Uncategorized | Leave a comment

Installing Squid 3.1 on CentOS 5.6 with SELinux and cachemgr via Yum

This is a short guide on installing the latest version of Squid via Yum. I have a guide on installing via RPM here. This was tested on CentOS 5.6 but should also work on CentOS 6.x. 1. Get the PP … Continue reading

Posted in Uncategorized | 4 Comments