Quantcast
Channel: Hasen Judy
Browsing all 50 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

What you need to know about music to write a music keyboard app

I only do music as a small hobby on the side. I know almost nothing about western music theory, and I know only very very little tiny bit of middle eastern music theory. But, I think I know enough to...

View Article



Defining mimetypes for express

Express, the node.js framework, uses mime to automatically find the mime-type of any statically served file. If you have a text file with a certain extension and it’s being served as binary, you can...

View Article

Quick notes on generating sine waves

A few notes based on my experiments the past couple of days. First, when you manage to generate a sine wave, you’ll notice there’s a “clicking” sound at the end. Where does it come from and how to deal...

View Article

Very simple implementation of Karplus-Strong algorithm in coffeescript

I’m a bit over excited as I just managed to successfully implement Karplus-Strong’s guitar string algorithm. http://en.wikipedia.org/wiki/Karplus-Strong_string_synthesis The Wikipedia description was...

View Article

Synthesizing music

Please be warned again that this is not my area of expertise. Don’t take anything I say too seriously. At best anything I say it just a reasonable approximation that happens to work for me. I’m...

View Article


bash: mkdir + cd with one command

codedump: function mkcd() { [ -n "$1" ] && mkdir -p "$@" && cd "$1"; } Example: user@host:~$ cd work user@host:~/work$ mkcd website.com/{html,src,stuff} user@host:~/work/website.com/html$

View Article

PySide + QtQuick Tutorial

PySide + QtQuick Tutorial: I’m just looking around for tutorials, and just found this (haven’t even read it yet, but seeing as its in the official wiki, it’s gotta be good).

View Article

Webpage titles

I just had this idea. The title of a wepage should try to be as short as possible. Perhaps a 5-letter word. Titles (along with icons) are used to recognize tabs in a multi-tabbed browser. Keep that in...

View Article


A different kind of writing platform

I’ve been thinking for a long time about building a “writing” platform. But when I try to put it into simple words, it sounds like “oh, yet another blog”. In fact I’ve even written a post before titled...

View Article


Fix for when mongodb won't start on Ubuntu

Fix for when mongodb won't start on Ubuntu: Kinda lame ..

View Article

LiveReload: automatically reload browser page when editing local files

LiveReload: automatically reload browser page when editing local files: The official site doesn’t make it clear, but it works on linux too

View Article

SuperAgent: ajax library without the suck (by visionmedia)

SuperAgent: ajax library without the suck (by visionmedia)

View Article

Sketching helped me avoid getting stuck

For the past couple months, I’ve been feeling stuck. Every time I sit down and try to get something done, I can’t. I find myself “dreading” the thought of going through all the troubles involved...

View Article


A short introduction to call-with-current-continuation

A short introduction to call-with-current-continuation: Learning about lisp/scheme continuations .. wow .. what a mind twisting concept! And there I thought lisp lacked structured exit points like...

View Article

Farewell, Ubuntu!

About 4 years ago, I switched from Windows to Linux. And now, I switch from Ubuntu/Linux to Mac OS X. The reason? Very simple. I upgraded my ubuntu laptop to 12.04, and X won’t start anymore. I spent...

View Article


Node vs Go, [Part 0]

I think Node.js sucks. The main reason being that programming everything with async callback is crazy. You’re doing manual work to program with “continuation passing style”, when in fact the language...

View Article

Gevent? Coroutines for Flask?

Yesterday I was reading random stuff on the internet, one thing led to another, and I discovered there’s something called “greenlets” in python, which seem to be essentially coroutines of some sort....

View Article


Why I'm choosing CouchDB

Note: I’ve made some edits and added a little extra section about clustering at the end. I’ve always hated SQL, so I’ve always found the nosql movement pretty interesting. There was a point in my...

View Article

Why Node.JS is absolutely terrible

Node.JS is a terrible platform. It’s terribleness stems from a very simple aspect of it, and this aspect happens to be central to how it works: callback-based I/O I think everyone knows this by now....

View Article

Coroutines vs explicitly async APIs

My previous post about Node.JS being a terrible platform got some negative feedback from Node.JS fans. What I’ve noticed however, is that some of the people who responded negatively didn’t actually...

View Article
Browsing all 50 articles
Browse latest View live




Latest Images