Author Archives: Taro

Brand Positioning by Correspondence Analysis

I was reading an article about visualization techniques using multidimensional scaling (MDS), the correspondence analysis in particular. The example used R, but as usual I want to find ways to do it on Python, so here goes. The correspondence analysis … Continue reading

Posted in Uncategorized | Tagged , , | 2 Comments

Using Custom Theme with SyntaxHighlighter Evolved

I have been using SyntaxHighlighter Evolved for displaying code snippets on this site. While the WordPress plugin has been working very well, I seem to lose my custom CSS styles every time the updated plugin gets installed. I want to … Continue reading

Posted in Uncategorized | Tagged , | 2 Comments

PCA and Biplot using Python

There are several ways to run principal component analysis (PCA) using various packages (scikit-learn, statsmodels, etc.) or even just rolling out your own through singular-value decomposition and such. Visualizing the PCA result can be done through biplot. I was looking … Continue reading

Posted in Uncategorized | Tagged , , , , | 2 Comments

Near-duplicate Detection using MinHash: Background

There are numerous pieces of duplicate information served by multiple sources on the web. Many news stories that we receive from the media tend to originate from the same source, such as the Associated Press. When such contents are scraped … Continue reading

Posted in Uncategorized | Tagged , | 4 Comments

A Trick for Computing the Sum of Geometric Series

Say if I need to compute the sum of a series like this one: (1)   where . This series looks like a geometric series in which case the sum can be computed from     The coefficients vary, so … Continue reading

Posted in Uncategorized | Tagged | Leave a comment

Building a Custom Debian/Wheezy Box

Even though I’ve been using computers for so long (my first was NEC PC-8801 back in 1988), I have never actually build a custom desktop myself. I am in need of a powerful Linux machine and wanted to have one … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Creating Debian Wheezy Installation USB Stick

The simplest way to create a bootable USB stick for Debian installation is to use command dd to copy an ISO image to an empty USB stick. First, connect an empty USB stick to a working Linux box, and see … Continue reading

Posted in Uncategorized | Tagged , , | 1 Comment

f.lux for Linux

I am fond of using f.lux to help myself get ready for sleep earlier, which I always end up failing. Anyways to install xflux, I use KDE and want xflux started automatically on boot. I can do this by System … Continue reading

Posted in Uncategorized | Tagged , , , | Leave a comment

Setting up MySQL Database from .sql Dump on DotCloud

Here I assume that MySQL service is running as db for my application named myapp. If I don’t remember, the password can be obtained as follows: If I have a MySQL dump file named somedb.sql, do This is it. It … Continue reading

Posted in Uncategorized | Tagged , | Leave a comment

Customizing & Installing Linux Kernel on Debian Wheezy

Here is a quickie for customizing and install Linux kernel 3.5.x on Wheezy. Add yourself (with account username) to sudoer group: You need to logout and login for this change to take effect. You also need to be able to … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment