January 2012
2 posts
The Development of the C Language →
Talks about the insights that went into the development of the C language, and its evolution.
Jan 22nd
ByteBuffer
I was looking at cowtowncoder’s low-gc-membuffers, which led me to look at an introduction to Byte Buffers and the corresponding javadoc. In short, ByteBuffer is part of the Java NIO and basically allows you to play with memory outside the garbage-collected Java heap. An interesting/unintended take away from the intro-to-byte-buffers article is the interlude on virtual memory. Gregory...
Jan 20th
December 2011
2 posts
chkconfig
sudo apt-get install chkconfig $ sudo chkconfig —list $ sudo chkconfig pure-ftpd off Note: just found out that on Ubuntu 10, Upstart has replaced System V init. Basically, old: /etc/init.d/  and  new: /etc/init/
Dec 28th
javac
javac SomeFile.java -classpath SomePackage.jar
Dec 26th
November 2011
1 post
The Power of Abstraction →
Katayanagi Prize Speech by Barbara Liskov
Nov 19th
October 2011
1 post
“Yet earlier this year, when Google interviewed its employees about what they...”
– http://gigaom.com/collaboration/5-ways-to-keep-your-rockstar-employees-happy/
Oct 15th
September 2011
6 posts
“Weak human + machine + better process was superior to a strong computer alone...”
– Garry Kasparov (I got to know about this from a Palantir Tech Talk)
Sep 30th
Protip: Disable "System Program Problem Detected"
This is on Ubuntu 11.10 beta-1 $ sudo sed -i ‘s/enabled=1/enabled=0/g’ /etc/default/apport
Sep 18th
make clean vs distclean →
Otherwise, if make built it, then clean should delete it. If configure built it, then distclean should delete it.
Sep 17th
x86oddities →
and reverse engineering experiments and documentations…
Sep 6th
Heilmeier's Catechism →
Sep 4th
Protip: dsh →
Distributed shell. Add your servers to ~/.dsh/group/myserver $ dsh -M -c -g myservers ‘uptime’ | sort (more…)
Sep 1st
August 2011
10 posts
{less} →
The dynamic stylesheet language.
Aug 28th
Protip: Run detached shell command
$ nohup somecommand &
Aug 26th
Varnish →
Makes your website fly.
Aug 17th
Spock is not impressed →
Spock is not impressed with this tumblr blog.
Aug 15th
hg init →
possibly the best hg tutorial
Aug 7th
“The pilgrims I was 24 the first time I went to the Valley. As I walked through...”
– http://blog.teambox.com/raised-by-the-valley
Aug 7th
/bin/sh -c
The -c option is useful for passing in strings. E.g. $ /bin/sh -c “ls -al”
Aug 4th
history -c
Apparently, you can’t use history -c in a shell script.
Aug 4th
ping6 →
How to ping an IPv6 address: $ ping6 -c 1 -I eth0 fe80::21b:63ff:feab:e6a6
Aug 4th
Github Pages →
Allows you to do stuff like this (which currently uses pandoc)
Aug 3rd
Programming Ruby →
Aug 1st
node.js for beginners →
Aug 1st
July 2011
19 posts
Protip: Zeroing for VM Compression
I was looking at the postinstall.sh script in vagrant guest machine, and I noticed this neat trick: # Zero free space to aid VM compression dd if=/dev/zero of=/EMPTY bs=1M rm -f /EMPTY
Jul 29th
Protip: Vim Scrolling
Scroll Up: ctrl-y Scroll Down: ctrl-e Page Up: ctrl-b Page Down: ctrl-f Jump to Middle of Screen: M
Jul 27th
(13) Permission Denied
I was trying to run wsgi and I encountered a “Forbidden” error, so I took tailed the apache logs. I then spent a few hours trying to solve the (13) Permission Denied error. There wasn’t a namei tool on Snow Leopard, and so I went on #httpd and I was pointed to this awesome script which helped me debug the problem. $ chmod +x ~/Documents solve the problem. =) (I was running my...
Jul 26th
Apache on Mac "Stuff"
conf: /private/etc/apache/httpd.conf modules: /usr/libexec/apache2/mod_*.so logs: /var/log/apache2/(access_log|error_log)
Jul 26th
Protip: shutdown
Can’t find the logout button? $ sudo shutdown -h now
Jul 25th
.gitmodules →
Example usage: $ git submodule add git://github.com/altercation/vim-colors-solarized.git ~/.vim/bundle/solarized
Jul 25th
Protip: tee (unix) →
Jul 22nd
Stuff on the Mac front
iTerm2 PeepOpen: editor-independent fast file switcher
Jul 19th
None of Us Knows What We’re Doing →
Bonus: Instant.fm tech stack
Jul 19th
JS in 10 Days (Brendan Eich) →
Jul 18th
1 note
Blind Alley Graffiti.: The Will To Fight →
jianxioy: Dear Japan, 128 days ago, the world watched in horror as your beautiful nation was devastated by a 9.0 magnitude earthquake. You are still suffering from the effects of that disaster 128 days later. But amidst the tears and pain, you fought. You are still fighting this battle and I…
Jul 18th
1U →
Learnt a new unit of measurement today.
Jul 12th
FreeBSD Dev Handbook →
Chapter 3 on Secure Programming is interesting. I was looking for this, and the following quote: Use strncpy and snprintf() when the length is known (or implement some other form of bounds-checking when the length is unknown). In fact, never ever use gets() or sprintf(), period. If you do - we will send evil dwarfs after you.
Jul 11th
Jul 10th
Jul 10th
C++0x →
Jul 9th
Microsoft’s Odd Couple  →
Excerpt from “Idea Man”, a memoir by Paul Allen.
Jul 6th
June 2011
6 posts
Protip: use `cd -’ on terminal to go to previous directory.
Jun 29th
Cool UI Trick on webfwd.org →
Observe how the page scrolls down and changes color when the user clicks on “Keep reading”.
Jun 29th
A rare and remarkable interview with Bill Gates →
An insightful interview. One of the most candid I have ever seen.
Jun 25th
iTerm / Terminal.app
Apparently, switching from Consolas back to Monaco really improved the rendering performance. http://stackoverflow.com/questions/903816/which-default-setting-does-make-vim-very-slow-in-macs-screen/4755171#4755171
Jun 13th
Markup
Markdown Textile reStructuredText
Jun 11th
Anatomy of a PDF Hack →
Jun 5th
May 2011
5 posts
WatchWatch
May 28th
“Beautiful is better than ugly. Explicit is better than implicit. Simple is...”
– The Zen of Python, by Tim Peters
May 28th
“Free speech (and free computing) rights exist only for those determined to...”
– David S. Touretzky, CS Prof, CMU
May 28th