You might have noticed that sunfire provides a measly git v1.5.5.1, which is 4 years old. Here's how you can build a recent one:
wget
the latest git tarball
gtar -zxf git-...
(where gtar
is GNU tar, and -z
is the GNU-specific gzip switch)
gmake install ...
While working on gsoc 2011, I identified the is-binary check as a potential slowdown in my personal notes. (Yes, it's done for every file.) I tried to disable it with a command-line switch to git-diff, but that was ugly and hack-ish.
Recently I was looking at diff codepath again ...
I was researching buffer_is_binary()
in git the other day in the hopes of speeding up the diff codepath, and stumbled on to this thread that digressed into statistics, a module I'm taking right now. Interesting read.
The API to NUS IVLE, called LAPI, has been around for some time. Below is a demonstration of how one can retrieve an AuthToken
:
You might have noticed that awk
was used to extract the value attribute from the input element for __VIEWSTATE
!
If you can find a shorter curl ...
Recently, I ran into some difficultly getting lxml to compile and work. It was crashing mysteriously on the seemingly-innocuous fread()
. After many days of debugging, I stumbled upon the cause:
Each copy of the CRT library has a separate and distinct state. As such, CRT objects such as file handles ...
D-Day: Tuesday, October 4th, +0800. I remember sleepily reading Bitbucket's announcement email; for added effect, my friend excitedly alerted me to the announcement too.
I saw it as a major, game-changing move, but I found it strange that most of my feeds were quiet on this, save for this ...
the thing that really matters is the users of the code. The code itself is unimportant...
— Linus Torvalds (via slashdot.org)
Had to do a code submission for a module of mine.
Actually, we're supposed to use hg. I'll talk about my hack-y git->hg workflow (instead of through hg-git) when I get the time.
Nowadays we're pampered with many data transfer methods - from the physical (flash drives), to the "cloud" (Dropbox).
But if you are working with ssh, your options are restricted. The recommended way of transferring data is with scp/sftp, but I find it quite a hassle: you've got to ...
I was compiling my gsoc code submission the other day. It was done as a git repo (available here), mostly collections of patches, but I also had some gists lying around. Their individual revisions were probably not that interesting, but just adding them as history-less blobs would was also undesirable ...