Skip to content

Instantly share code, notes, and snippets.

@interface NSString (LocalizedDoubleValue)
- (double)localizedDoubleValue;
@end
@implementation NSString (LocalizedDoubleValue)
- (double)localizedDoubleValue
{
NSScanner *scanner = [NSScanner localizedScannerWithString:self];
double newValue = 0.0;
rdar://7198300
04-Sep-2009 05:29 PM Lukhnos D. Liu:
Summary:
Terminal.app in 10B503 often crashes when it wraps a line of overlong text, most often when an IME is in effect and the overlong text includes uncommitted buffer (composing buffer/reading text).
Steps to Reproduce:
1. Switch to Kotoeri (Hiragana) input method
2. Open Terminal.app under 10B503
3. Open irssi, a popular IRC client
rdar://7198283
Terminal.app pukes huge amount of HIToolbox exceptions onto Console, CJK-related
04-Sep-2009 05:13 PM Lukhnos D. Liu:
Summary:
Terminal.app in 10B503 pukes huge amount of HIToolbox exceptions onto Conosle. Often it's input method-related.
Steps to Reproduce:
1. Switch to Kotoeri (Hiragana) input method
Hi Mr. Schiller,
I would like to inform you a defect in the current shipping Snow Leopard that I think is sub-Apple standard and afflicts many of your loyal users, particularly visual designers, web designers and people who care about typefaces, in Taiwan and Hong Kong.
My name is Lukhnos. I'm a Taiwanese Mac and iPhone software developer. I would like to congratulate on your successful release of Mac OS X Snow Leopard. For many of us the upgrade process was smooth, and we appreciate that Apple continues to deliver a high-quality, high-performance operating system that is suitable for both daily life and professional demands.
There is unfortunately, however, a defect in the currently shipping Snow Leopard. It causes daily visual pain for many of us Traditional Chinese users.
Snow Leopard ships with a new set of sans serif Chinese fonts. One of them, Hei TC (TC stands for Traditional Chinese), seems to be Apple's official replacement of the long-serving LiHei Pro. I can see Apple has been spending efforts
Hi Mr. Jobs:
I would like to inform you that an erroneous font shipped with Snow Leopard is sub-Apple standard. The font afflicts many of your loyal users, particularly visual designers, web designers and people who care about typefaces, in Taiwan and Hong Kong.
My name is Lukhnos. I'm a Taiwanese Mac and iPhone software developer. I would like to congratulate on your successful release of Mac OS X Snow Leopard. For many of us, the upgrade process was smooth. We appreciate that Apple continues delivering such a high-quality, high-performance operating system that is suitable for both daily life and professional needs.
There is, however, one problem that gravely undermines such experience. It's a new font that is causing daily visual pain to many Traditional Chinese users.
Snow Leopard ships with a new set of sans serif Chinese fonts. One of them, Hei TC ("TC" for Traditional Chinese), seems to be Apple's official replacement of the long-serving LiHei Pro. I can see Apple has been spending efforts in provi
<case ixBug="2234" operations="edit,assign,resolve,email,remind">
<c>0</c>
<fSubscribed>false</fSubscribed>
<c>0</c>
<plugin_kilnplugin_at_fogcreek.com_fkilnreview>0</plugin_kilnplugin_at_fogcreek.com_fkilnreview>
<c/>
<plugin_kilnplugin_at_fogcreek.com_ncheckins/>
</case>
@lukhnos
lukhnos / Graph.m
Created March 15, 2011 04:52
The original Objective-C as shown in Brad Cox's book "Object-Oriented Programming: An Evolutionary Approach" (1986). Note the differences from the present-day version.
// Dependency graph
#include "objc.h"
extern id Node;
= Graph:Set { }
// Add a new node
- addNode:(STR)aCharPointer
{ return [self filter:[Node str:aCharPointer]]; }
@lukhnos
lukhnos / To-the-lo.txt
Created December 25, 2011 01:14
A POJ transcription of the Taiwanese classic "Tò-thè lo" (倒退嚕) and tentative English translation
# Tò-thè lo (倒退嚕; Sauntering Backwards)
* By N̂g Khek-lîm (黃克林; Mandarin: Huang Ke-lin)
* http://www.youtube.com/watch?v=mPRtVb0s81c
嘿 拜請拜請
拜請 東海岸 西海岸
北投紗帽山
鶯歌出土炭
草山出溫泉
@lukhnos
lukhnos / curry1.m
Created February 8, 2012 18:08
Using Objective-C block to curry a function, take 1
#include <stdio.h>
int f(int x, int y)
{
return x + y;
}
int main()
{
@lukhnos
lukhnos / curry2.m
Created February 8, 2012 18:09
Using Objective-C block to curry a function, take 2
#include <stdio.h>
int f(int x, int y)
{
return x + y;
}
int main()
{