Author Archives: Lee

College

Cornell is a blast and I’m too busy lately to blog. I’ll come back into the techy world as soon as I can find some time. Take care my fellow nerds :D

Posted in Blog, Miscellaneous | Leave a comment

How do you sort your cloths?

According to the massively credible spammers on Facebook, the following is a common question asked by Google interviewers to interviewees.

Imagine you have a closet full of shirts. It’s very difficult to find a shirt. What can you do to

Posted in Blog, Miscellaneous, Programming | Tagged , , , , , , , , , | Leave a comment

Javascript Syntax Highlighted Editor in 1Kb

I’ve just written an edit in place syntax highlighter for Javascript. The cool thing about it is that it’s under 1Kb (1023 bytes to be exact xD). Here’s the code:

// Revised Edit-In-Place syntax editor still sits

Posted in Blog, Programming, Snippets | Tagged , , , , | 6 Comments

Woohoo

Got myself a new Samsung Captivate :D

In other news:

(2) Computer programs that enable wireless telephone handsets to execute software applications, where circumvention is accomplished for the sole purpose of enabling interoperability of such

Posted in Blog, Miscellaneous | Tagged , , , | Leave a comment

Rocket: A Lua Sqlite3 ORM manager

Relational databases are designed so that they can both store and describe data. Most programming level APIs do wonderful jobs of maintaining the former aspect. I mean, what ORM doesn’t automatically map the insert method to the so very generic…

Posted in Blog, Lua, Programming, Snippets | Tagged , , , , , , , | Leave a comment

See.lua – Documentation

See.lua – A Lua introspection library

	> see(string)

	.byte(?)            .char(?)            .dump(?)            .find(?)
	.format(?)          .gfind(?)           .gmatch(?)          .gsub(?)
	.join(self, table, ...)                 .len(?)
	.lower(?)           .match(?)           .rep(?)             .reverse(?)
	.sub(?)             .upper(?)

Lua is a wonderful little language that lets you do…

Posted in Blog, Lua, Programming, Snippets | Tagged , , , | Leave a comment

How to fix the keyboard issues with Ubuntu Login

If you have installed Ubuntu 10.x on vmWare, you will find that the default keyboard configuration does not let you type anything into the login box. This is a big issue since Ubuntu requires that your root user has a…

Posted in Blog, Miscellaneous | Tagged , , , , , | Leave a comment

see.lua – Introspecting Lua objects

As via its python equivalent, see.lua takes in an object and prints out a list of its elements as well as metatable methods in readable text.

> require "see"

> s = see(string)
.byte(?)            .char(?)            .dump(?)            .find(?)

Posted in Blog, Lua, Programming, Snippets | Tagged , , , , , , | 1 Comment