Kevin Fang's Blog

Reddit Relevant XKCD

So I embarked on a machine learning quest as a senior project. With all these advances in AI, I wanted to have some fun myself :P. You can view it here. I was inspired by Dan Zhang and Megan Ruthven’s Relevant XKCD finder. They used ExplainXKCD to populate...

Replacing iPad Air Screen

Replacing an iPad Air screen turned out to be much simpler than what iFixit made it seem to be (43 steps!) and probably the most accomplished thing I did all winter break. However it did take a long time (maybe because I was just being to precautious)....

AP Tests are Worth it

AP Tests are supposed to get you ahead in college, and in some cases, it does. However, overloading on AP credit doesn’t really help you as much: be wise in what you take, and if you decide to take it, study! Going to college I was surprised...

Parsing Shorthand Dictionary with RMagick and RTesseract [Ruby]

Ruby Wrappers: RMagick, RTesseract (image manipulation and image recognition respectively) You can Google how to install those gems.   Here was an example page of the dictionary. The shorthand translation was pretty much adjacent to the English word.

Here is what each # does. Loads the image...

Force Selenium to not load images [Ruby]

Sometimes it is unnecessary to load images in my selenium scripts. It takes time for the images (especially large ones) to load and messes up my sleep functions. Here’s how to prevent it from loading. There are more options and it’s listed in the All Profile Options...

Webscraping with Selenium [Ruby, Firefox, OSX]

This article requires knowledge of Ruby, the concept of webscraping, and HTML. Make sure you have Ruby installed (use RVM if you don’t have it yet) — I’m using 2.3.1 right now. If you want a reference sheet, I’m in the process of writing one :P. Link...

How I Program on a Chromebook

My programming environment is quite nice on a chromebook. Although my chromebook is not the top of the line, ASUS C201 11.6 Inch, it does allow me to push some quick updates and do a bit of local testing for debugging. Note: When I compile and run,...