Text
Switching to Github Pages. New blog is here: www.ahwkong.com
0 notes
Text
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.
0 notes
Text
Note to self
iPhone sync backup can be found in this location:
~Library/Application Support/MobileSync
0 notes
Text
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
0 notes
Text
Weird error message of say in 10.8.4
$ say tony MTBEAudioUnitSoundOutput::PropagateProperty Error -10851 MTBEAudioUnitSoundOutput::PropagateProperty Error -10851
0 notes
Text
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
0 notes
Text
Morgan Stanley uses (AFS)[http://en.wikipedia.org/wiki/Andrew_File_System] for application deployment with good results.
0 notes
Text
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)
0 notes
Text
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
0 notes
Text
Useful OSX API to find home and temp directory
NSHomeDirectory NSTemporaryDirectory
0 notes
Text
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.
0 notes
Link
Professor Roly Sussex shares his love of rhyming slang
'Apple and Pear' means 'upstair'. Fun.
0 notes
Text
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"];
0 notes
Text
Basename-equivalent in Objective-C
Use lastPathComponent
NSString* filepaht = @"/tmp/mypath/myfile.txt"; NSString* filename = [filepath lastPathComponent];
0 notes
Link
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
0 notes
Text
Don't know how widely is this xml schema is used
http://purl.org/dc/elements/1.1/
0 notes
Text
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.
0 notes