Burak Kanber, Engineer

The Blog

Follow @bkanber

Machine Learning: Naive Bayes Document Classification Algorithm in Javascript

On March 20, 2013

Today we’re going to solve a simple problem: language detection. Put another way: “given a piece of text, determine if it’s in Spanish, English, or French”.

I was just tricked into learning another language

On January 29, 2013

This is a follow-up to my “Effective teaching is a long-con” article, except in the context of web apps rather than classrooms. In the previous article I basically made the argument that you need to trick people into learning — and that’s how the best teachers do it. Now I’m writing because I recently had an experience where I, myself, was tricked (by a website) into learning.

Big data doesn’t need to be so big.

On November 7, 2012

There are lots of people talking about big data these days. There’s a lot of discussion about how to build apps for “web scale”, and there’s an emphasis on real time apps that collect comprehensive data.

Do we have a moral obligation to society?

On November 3, 2012

I just spent 48 hours without electricity. I’m not complaining; I could have had it much worse (many people in Staten Island did) and very fortunately nobody I know was hurt or lost their home. But my experience without power got me thinking.

SiteChat: a postmortem. Or, the rise and fall of a society.

On October 20, 2012

About a year ago I built a Chrome extension called SiteChat — the premise was simple: turn every website into a chatroom. The app was an instant success, and over the following year I watched entire societies emerge and die off inside the bizarre ecosystem that I had created.

Machine Learning: k-Means Clustering Algorithm in Javascript

On October 15, 2012

Today we’re going to figure out how to find clusters of data points. Let’s say you work at a medical imaging devices company. Imagine you already have a way to identify malignant cells from an image scan, but it would be great to automatically identify the centers of clusters of cells as well. Then a robot could go in with surgical precision and remove the problem!

Physics in Javascript: Rigid Bodies — Part 1 (Pendulum Clock)

On October 3, 2012

So far, we’ve modeled everything in this series as particles. Particles are the simplest way to model something physically, because they only have a location in space and don’t have a size or shape. Particles can only translate (move), and can’t rotate.

And while you can do some amazing things just by modeling particles, particles aren’t realistic in the real world. Real objects aren’t just infinitely small dots. Real objects have a size and shape and most importantly, an orientation. Real objects can rotate…

Machine Learning: Genetic Algorithms in Javascript Part 2

On September 15, 2012

Today we’re going to revisit the genetic algorithm.

You’re a scientist that has recently been framed for murder by an evil company. Before you flee the lab you have an opportunity to steal 1,000 pounds (or kilograms!) of pure elements from the chemical warehouse; your plan is to later sell them and survive off of the earnings. Given the weight and value of each element, which combination should you take to maximize the total value without exceeding the weight limit?

Opinion: Preparing for the Future of Technology

On September 11, 2012

This post is a little different from my others, in that it’s pure unadulterated speculation. We’ve made some crazy progress in technology, particularly in the last 20 years. What will the next 20 (or even 10) years bring? And most importantly, how do we prepare ourselves for it? Right now there are engineers and scientists…

Physics in Javascript: Car Suspension – Part 1 (Spring, Mass, Damper)

On September 10, 2012

Our big project — our goal — for this mechanics/dynamics portion of Modeling Physics in Javascript is to model a car’s suspension system. It’ll take us three non-consecutive articles to get there, but it’s a worthy system to model. If you can model a car suspension then it’s safe to say you know how to model dynamics systems.

Today, we’ll be talking about arguably the most important set of building blocks there is: the spring-mass-damper.

RSS | Atom