2009年11月8日

SpringBoardのHook

ランダムに動かしてるだけだけど、おもしれー!



ずっと見てると目が回るw
止める処理、どうやって書こう。。

tumblrのタグが便利

Likedでフィルタリングできたり、twitterの検索みたいに「Keep on Dashboard」をクリックすれば自分のDashboardに保存出来る!

http://www.tumblr.com/tagged/iPhone
http://www.tumblr.com/tagged/jailbreak
http://www.tumblr.com/tagged/%E5%AE%AE%E5%B4%8E%E3%81%82%E3%81%8A%E3%81%84

#追記
http://www.tumblr.com/tagged/*****のページって、タグと関係無しに*****のキーワードが含まれるものも表示されるね。
あと、Likedのフィルタリングじゃないなー。

2009年9月24日

RubyでMacアプリ作る

RubyでMacアプリ開発を解説する入門書「RubyによるMac OS Xデスクトップアプリケーション開発入門」が、2009/9/25に発売!

本書は、プログラミング言語Rubyを使ったMac OS Xのデスクトップアプリケーション開発の入門書です。RubyCocoaについての世界で2番目の書籍、MacRubyについては世界で最初の書籍になります。RubyCocoa、MacRubyのどちらもMac OS XのアプリケーションをRubyで書くことができるようになるMac OS Xのフレームワークです。
Objective-CとRubyは、コンパイル言語とスクリプト言語という違いはあるものの、共にSmalltalkの特徴を受け継ぎ、双子のようによく似た動的なオブジェクトシステムを持っています。そのため、Objective-CとRubyの橋渡しをするRubyCocoaでは、両者の相性の良さのおかげで、無理のなく一つの世界観を形作ることに成功しました。RubyとCocoaは、非常に幸運な組み合わせだったと言えるでしょう。
本書は、読者のみなさんがRubyCocoaやMacRuby、HotCocoaを利用してデスクトップアプリケーションを作り、公開することのガイドになるでしょう。みなさんのアプリケーションに出会えることを楽しみにしています。
内容紹介

んで、その無料プレゼント企画がスタートしてます。
あなたのWebサイトやブログに「RubyによるMac OS Xデスクトップアプリケーション開発入門」という文字列と無料プレゼント企画をやっている旨を含む本書の紹介を書いてください。できれば、公式タグ「RHCBK」※をつけてください。
無料プレゼント企画

めっちゃ欲しいです!
タグはこのブログないです、ごめんなさい。
ぜひ、興味がある人は、応募してみると良いかも!

ちなみに、RubyCocoaについての本だったら洋書だけど、Programming Cocoa with RubyとかPractical Ruby Projectsがありますね。
Practical Ruby Projectsだったら、Google Booksで少し読めます↓

2009年9月23日

iPhoneでオライリー本

急増するiPhoneで読めるO'Reilly本 を読んで、隠し機能について知ったんだけど、結構良いかも。

Extracting an EPUB Pearl
Extracting the EPUB files from any of our iPhone/iPod apps takes just a few steps, and it matters very little whether you’re on a PC or Mac.

1. Once you’ve downloaded the app, select Applications in iTunes, right-click the app that you want to extract, and select Show in Finder/Explorer. The file you want is selected automatically when the window opens.
2. Copy (that’s copy, not move) the file to a different location, for example, your desktop.
3. Change the file extension of the copied file from .ipa to .zip using whatever method is most familiar to you.
4. Unzip the file using whatever archiving utility you prefer.
5. There are a few files, but the directory you are interested in should be named Payload.
6. This step varies, depending on platform:
* If you are on a PC, simply go into the Payload/.app directory.
* If you are on a Mac, go into the Payload directory, right-click the file within, and select Show Package Contents.
7. Again, there are lots of files and directories here, but the EPUB content is found in book/OEBPS.

Now that you’ve found the files, you are free to read (and copy and paste from) them in your web browser.

If you’re curious about the other files in the book/OEBPS directory or about the EPUB standard in general, a good place to learn more technical detail is the “EPUB Resources and Guides” post from the O’Reilly Labs blog.
Getting the Most Out of Your O'Reilly iPhone App

自分のPCからでも読めるよって。
購入したアプリをunzipして、「Payload」の中にあるファイルの内容を表示で、book/OEBPS内にxhtmlファイルがあるから、自由に見て良いよって。

ちなみに、EPUBってのは、
EPUB is a free and open standard for "reflowable" content, meaning that the text display can be optimized for the particular display device. Internally, EPUB uses XHTML or DTBook (an XML standard provided by the DAISY Consortium) to represent the text and zip as a packaging format. EPUB includes optional support for Digital Rights Management (DRM).[1]
EPUB - Wikipedia, the free encyclopedia

試しに、Ruby本買ってみたけど、iPhoneでも読みやすいし、PCからでも見れるし、何より安い!

2009年9月16日

MacBook 放熱スタンド

最近、MacBookがうなってるので、放熱する何か欲しかったので、これ買いました。



最近、知り合ったおっちゃんに買ってきて貰ったんですが、カインズで売ってるらしいです。
安物だけあって、作りは安っぽいですが、意外と安定してて結構気に入ってます。





画像汚!


Amazonでも同じタイプのが売ってますね。放熱に困ってる人にはお勧めです。
バッファローコクヨサプライ Arvel 卓上ノートPCスタンド ブラック NPCST01BK

2009年8月25日

iPhoneで日本語入力ができなくなったとき

iPhoneで、英語入力は問題ないのに、日本語入力ができなくったときは、
「設定」 -> 「一般」 -> 「リセット」 -> 「キーボードの変換学習をリセット」でOK!

Crash Logs見たら、Low Memoryって出るけど、再起動しても直らず、OS再インストールしても直らなかった。
単にリセットするだけ良かったなんて。。