Blogs / Personal blogs

Franklin Ta

franklinta.com

Hosting for my old wordpress blog expired so I'm trying out Ghost now. Let me know if you see anything broken.

Popular posts
2
Total points
638
HN comments
78
Rank
#3,849 personal

Visit franklinta.com → RSS feedOn Hacker News Sep 2014 – Oct 2015

Software Engineering 2Web & Frontend 1Security & Privacy 1

1

Image diffing using CSS

Since the last post [http://franklinta.com/2014/09/08/computing-css-matrix3d-transforms/] on CSS was popular here is another simple CSS trick that I found useful in the past. Let’s say we want to find the difference between these two images: You can do this by simply inverting the colors and then stacking them…

2

Predicting the next Math.random() in Java

A while back a friend of mine hosted a programming competition where you were given 9 random numbers one at a time and you had to guess the rank (the sorted position amongst the 9) of each as they are coming in. The goal was to submit a strategy in Java that will maximize the number of these games won. The best…