Switching to Github Pages. New blog is here: www.ahwkong.com
Misplaced Lens Cap
Xuebing Du
No title available

No title available
taylor price

No title available
todays bird
h
$LAYYYTER
No title available

Product Placement

ellievsbear
2025 on Tumblr: Trends That Defined the Year

pixel skylines

JBB: An Artblog!
NASA

Love Begins

oozey mess
cherry valley forever
we're not kids anymore.

seen from T1

seen from United States

seen from Malaysia
seen from Japan
seen from Spain

seen from United States
seen from Italy
seen from United States

seen from Malaysia

seen from Türkiye

seen from Germany

seen from Malaysia
seen from Türkiye
seen from United States
seen from Malaysia
seen from Germany
seen from Australia
seen from United States
seen from United States

seen from Singapore
@anthonykong
Switching to Github Pages. New blog is here: www.ahwkong.com
Just installed RVM.
Message from RVM after installation:
* To start using RVM you need to run `source /Users/antkong/.rvm/scripts/rvm` in all your open shell windows, in rare cases you need to reopen all shell windows.
Note to self
iPhone sync backup can be found in this location:
~Library/Application Support/MobileSync
In light of the NSA PRISM scandal, I recommend these two videos from 'Conversation with History' series:
Interview with Glenn Greenwald
'Deep State' - Interview with Professor Peter Dale Scott
Weird error message of say in 10.8.4
$ say tony MTBEAudioUnitSoundOutput::PropagateProperty Error -10851 MTBEAudioUnitSoundOutput::PropagateProperty Error -10851
OSX terminal and .bashrc
When I create a new tab in Terminal, the new bash shell does not automatically execute the .bashrc file.
I added this to my .bash_profile to fix the problem:
[[ -s ~/.bashrc ]] && source ~/.bashrc
-s here means if the file exists and not of size 0
Morgan Stanley uses (AFS)[http://en.wikipedia.org/wiki/Andrew_File_System] for application deployment with good results.
The core of lisp
The core of lisp is just 7 functions:
(quote x)
(atom x)
(eq x y)
(cons x y)
(cond (x y) (w z) (t q))
(car x)
(cdr x)
Trying to understand how NSDocument works with First Responder model in OSX app. This SO articule seems helpful: http://stackoverflow.com/questions/4892705/connecting-menu-items-in-document-based-applications
Useful OSX API to find home and temp directory
NSHomeDirectory NSTemporaryDirectory
Health system of USA is odd. For example, Oregon uses a lottery based system to allocate health care coverage - a scarce resource - to its citizens.
From Wikipedia:
New enrollment in the program was closed from mid-2004 until early 2008, when a lottery-based system was introduced. Tens of thousands of Oregonians signed up, competing for 3,000 new spots in the plan.
It is basically saying that the policy makers have given up on trying to design and implement a system to allocate the resource based on any meaningful and measurable metrics.
Professor Roly Sussex shares his love of rhyming slang
'Apple and Pear' means 'upstair'. Fun.
Two ways to build file names
Use pathWithComponents or stringByAppendingString
// 1 NSString* txt_file_path = [NSString pathWithComponents:@[file_unzip_location, @"content.txt"]]; // 2 NSString* txt_file_path = [file_unzip_location stringByAppendingString:@"content.txt"];
Basename-equivalent in Objective-C
Use lastPathComponent
NSString* filepaht = @"/tmp/mypath/myfile.txt"; NSString* filename = [filepath lastPathComponent];
When the Museum of Modern Art's senior curator of architecture and design announced the acquisition of 14 video games in 2012, "all hell broke loose." In this far-ranging, entertaining, and deeply insightful talk, Paola Antonelli explains why she's delighted to challenge preconceived ideas about art and galleries, and describes her burning wish to help establish a broader understanding of design
Don't know how widely is this xml schema is used
http://purl.org/dc/elements/1.1/
Drone Warfare
This is a public lecture by investigative journalist/activist Jeremy Scahill:
https://www.commonwealthclub.org/node/65484
Very chilling account of the impact of drone warfare on the targeted population as well as the democratic values of USA.
From another perspective, here is an interview of General Norton Schwartz:
http://www.uctv.tv/shows/The-Air-Force-in-the-Twenty-First-Century-with-General-Norton-Schwartz-Conversations-with-History-25072
Harry put the drone warfare question to him near the end of interview.