ku0522 | Shared With: Everyone - Jul 17 2008 | macruby, ruby, objc, OSX
ku0522 | Shared With: Everyone - Jun 18 2008 | OSX, ports, troubleshootShareViewed: 3 Times
ku0522 | Shared With: Everyone - Jun 13 2008 | tool, git, OSXShareViewed: 5 Times
ku0522 | Shared With: Everyone - Jun 07 2008 | OSX, cocoa
Quoted: NSImage* image = [[[NSImage alloc] initWithSize:thumbRect] autorelease];
[image lockFocus];
[[NSGraphicsContext currentContext] setImageInterpolation:NSImageInterpolationHigh];
[originalImage setScalesWhenResized:YES];
[originalImage setSize:thumbRect];
[originalImage compositeToPoint:NSZeroPoint operation:NSCompositeCopy];
[image unlockFocus];
ku0522 | Shared With: Everyone - Jun 05 2008 | OSX, tool
ku0522 | Shared With: Everyone - May 30 2008 | OSX, applescript
Quoted: #!/bin/sh
found_jpgs=$(find ~/Desktop/怡红快绿 -iname "*.jpg" -or -iname "*.jpeg")
escaped_paths=$(echo -n "${found_jpgs}" | ruby -n -e 'require '\''uri'\''; print URI.escape($_)')osascript -e 'set percents to "'"${escaped_paths}"'"
set pathNames to (do shell script "echo " & quoted form of percents & " | ruby -n -e '\''require \"uri\"; print URI.unescape($_)'\''")
repeat with i from 1 to (count paragraph of pathNames)
set curPath_alias to (POSIX file (paragraph i of pathNames)) as alias
tell application "Finder" to set label index of curPath_alias to 2
end repeat'ShareViewed: 1 Time
ku0522 | Shared With: Everyone - May 27 2008 | osx, tool
ku0522 | Shared With: Everyone - May 14 2008 | hotkey, OSX
Quoted: - (void)applicationDidFinishLaunching:(NSNotification *)notification
{
:
EventTypeSpec eventTypeSpecList[] ={
{ kEventClassKeyboard, kEventHotKeyPressed }
};InstallApplicationEventHandler(&hotKeyHandler, GetEventTypeCount(eventTypeSpecList),
eventTypeSpecList, self, NULL);
EventHotKeyID hotKeyID;
hotKeyID.id = 0;
hotKeyID.signature = 'htky';
UInt32 hotKeyCode = 49;
UInt32 hotKeyModifier = cmdKey + optionKey;OSStatus status = RegisterEventHotKey(hotKeyCode, hotKeyModifier, hotKeyID,
GetApplicationEventTarget(), 0, &_hotKeyRef);
:
}
ku0522 | Shared With: Everyone - May 10 2008 | OSX, howto, leo
Quoted: launchctl unload /System/Library/LaunchAgents/com.apple.Spotlight.plist
(実際には1行で入力します)sudo launchctl unload -w /System/Library/LaunchAgents/com.apple.Spotlight.plist
(実際には1行で入力します)sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.metadata.mds.plist
(実際には1行で入力します)Mac OS X v10.4では/etc/hostconfigファイルを編集する方法でSpotlightを無効にすることができていましたが、Mac OS X Leopardでは/etc/hostconfigファイルを編集しても特に効果はありません。
ShareViewed: 10 Times
ku0522 | Shared With: Everyone - May 02 2008 | OSX, toseeShareViewed: 10 Times






Send k a friend request or a personal message instead.