<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link rel="hub" href="http://tumblr.superfeedr.com/" xmlns:atom="http://www.w3.org/2005/Atom"/><description>なにかと書いていく</description><title>F13</title><generator>Tumblr (3.0; @f13jp)</generator><link>http://blog.f13.jp/</link><item><title>PyCharmがバージョンアップ後に動かなくなってしまった時の対処</title><description>&lt;p&gt;PyCharmを起動しようとすると一瞬Dockにアイコンが見えるような感じがしてすぐ終了してまうという現象になってしまった。&lt;/p&gt;

&lt;p&gt;Terminalから以下のコマンドで起動しようとすると、以下の様に言われてしまった。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ open /Applications/PyCharm.app
LSOpenURLsWithRole() failed with error -10810 for the file /Applications/PyCharm.app.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;調べて見ると、パーミッションがおかしいようであった。&lt;/p&gt;

&lt;p&gt;以下の様なコマンドでめでたく解消された。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ chmod +x /Applications/PyCharm.app/Contents/MacOS/pycharm
&lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/48739036109</link><guid>http://blog.f13.jp/post/48739036109</guid><pubDate>Wed, 24 Apr 2013 10:24:40 +0900</pubDate></item><item><title>HomebrewのUpdateでエラーが出たので対処</title><description>&lt;p&gt;Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;
$ sudo chown root:staff /usr/local                                            
$ sudo chmod -R 775 /usr/local&lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/46657792635</link><guid>http://blog.f13.jp/post/46657792635</guid><pubDate>Sat, 30 Mar 2013 17:07:00 +0900</pubDate></item><item><title>UIActionSheetをTabBarを使ったView上に出す</title><description>&lt;p&gt;&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/4539137"&gt;https://gist.github.com/4539137&lt;/a&gt;&lt;/div&gt;&lt;/p&gt;</description><link>http://blog.f13.jp/post/40601399784</link><guid>http://blog.f13.jp/post/40601399784</guid><pubDate>Tue, 15 Jan 2013 23:43:35 +0900</pubDate></item><item><title>CURLで取得したJSONをフォーマットした状態で表示</title><description>&lt;p&gt;単にcurlしただけだと、読みにくかったり、Unicodeになっていたりする。
そんなときに、以下のようにaliasを登録しておくと、&amp;#8221;| pjson&amp;#8221;とつけるだけで、読みやすくなる。&lt;/p&gt;

&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/4063316"&gt;https://gist.github.com/4063316&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.f13.jp/post/35631677964</link><guid>http://blog.f13.jp/post/35631677964</guid><pubDate>Tue, 13 Nov 2012 21:02:28 +0900</pubDate><category>tech</category></item><item><title>便利！MarkedをreStructuredTextのプレビューワーとして使う</title><description>&lt;h2&gt;概要&lt;/h2&gt;

&lt;p&gt;&lt;a href="http://click.linksynergy.com/fs-bin/click?id=5/g62QmW*O4&amp;amp;subid=&amp;amp;offerid=94348.1&amp;amp;type=10&amp;amp;tmpid=3910&amp;amp;RD_PARM1=https%3A%2F%2Fitunes.apple.com%2Fjp%2Fapp%2Fmarked%2Fid448925439%3Fmt%3D12"&gt;Marked&lt;/a&gt;
&lt;img alt="icon" width="1" height="1" src="http://ad.linksynergy.com/fs-bin/show?id=5/g62QmW*O4&amp;amp;bids=94348.1&amp;amp;type=10"/&gt;という、MarkdownのプレビューをしてくれるMac用のAppがある。&lt;/p&gt;

&lt;p&gt;これを今回、reStructuredTextのプレビューを行うように設定を変更する。&lt;/p&gt;

&lt;h2&gt;方針&lt;/h2&gt;

&lt;p&gt;MarkedはMarkdownの処理系を、設定で変更することが出来る。&lt;/p&gt;

&lt;p&gt;ここに、reStructuredTextをHTMLに変換する&amp;#8221;rst2html.py&amp;#8221;を設定してやる。&lt;/p&gt;

&lt;h2&gt;rst2html.pyのインストール&lt;/h2&gt;

&lt;p&gt;ターミナルから以下のコマンドで、docutilsとsphinxを入れてあげる。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ sudo pip install docutils sphinx&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;Markedに設定&lt;/h2&gt;

&lt;p&gt;Markedを起動し、PreferencesのBehaviorタブを開く。&lt;/p&gt;

&lt;p&gt;Custom Markdown Processorに以下を設定する&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;/usr/local/bin/rst2html.py&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;あとは、プレビューしたいreStrucuturedTextを開けばプレビューされる。&lt;/p&gt;</description><link>http://blog.f13.jp/post/34097899827</link><guid>http://blog.f13.jp/post/34097899827</guid><pubDate>Mon, 22 Oct 2012 23:11:00 +0900</pubDate><category>mac</category><category>app</category></item><item><title>Storyboardで次のViewControllerが呼ばれる前に値を設定する</title><description>&lt;p&gt;何も難しいことは何もないのだが、すぐ忘れてしまうのでメモ。&lt;/p&gt;

&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/3902937"&gt;https://gist.github.com/3902937&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.f13.jp/post/33739988628</link><guid>http://blog.f13.jp/post/33739988628</guid><pubDate>Wed, 17 Oct 2012 09:16:45 +0900</pubDate></item><item><title>Homebrewをインストールする</title><description>&lt;h2&gt;インストール&lt;/h2&gt;

&lt;p&gt;以下のコマンドでHomebrewをインストール&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ ruby -e "$(curl -fsSkL raw.github.com/mxcl/homebrew/go)"
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;環境の確認&lt;/h2&gt;

&lt;p&gt;インストール後に、以下のコマンドを行い正しく環境が設定されているか確認&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew doctor
    Your system is raring to brew.
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;ということなので、大丈夫そうだ。&lt;/p&gt;</description><link>http://blog.f13.jp/post/33232883516</link><guid>http://blog.f13.jp/post/33232883516</guid><pubDate>Wed, 10 Oct 2012 00:13:29 +0900</pubDate><category>mac</category><category>homebrew</category></item><item><title>UITableViewのtableHeaderViewをリサイズする</title><description>&lt;p&gt;UITableViewのtableHeaderViewをリサイズする方法ではまったのでメモ。&lt;/p&gt;

&lt;p&gt;まず、headerViewそのものサイズを変更し、tableHeaderViewに再設定すればよかったみたいだ。&lt;/p&gt;

&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/3797277"&gt;https://gist.github.com/3797277&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.f13.jp/post/32426972052</link><guid>http://blog.f13.jp/post/32426972052</guid><pubDate>Fri, 28 Sep 2012 09:35:04 +0900</pubDate><category>objective-c</category><category>ObjC</category></item><item><title>Tumblrでgistのソースを表示させる</title><description>&lt;p&gt;そもそも、gistにはembedするためのスクリプトが用意されているがTumblrに貼り付けてもうまく動かない。&lt;/p&gt;

&lt;p&gt;そこで、以下のGistを使用するとうまく表示することが出来る。感謝！&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/1395926"&gt;https://gist.github.com/1395926&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;あとは自分のレイアウトにあわせて、cssを定義するだけだ。&lt;/p&gt;

&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/3792895"&gt;https://gist.github.com/3792895&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.f13.jp/post/32386103134</link><guid>http://blog.f13.jp/post/32386103134</guid><pubDate>Thu, 27 Sep 2012 17:33:59 +0900</pubDate></item><item><title>dartsliveのデータ取得スクリプト</title><description>&lt;p&gt;最近よくダーツをやっているので、DartsliveからRating等を取得できないかと思いスクリプトを書いてみた。&lt;/p&gt;

&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/3792790"&gt;https://gist.github.com/3792790&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.f13.jp/post/32385791503</link><guid>http://blog.f13.jp/post/32385791503</guid><pubDate>Thu, 27 Sep 2012 17:15:00 +0900</pubDate><category>python</category><category>darts</category></item><item><title>App EngineのUnit Testでxmppなapi proxyがないと怒られてしまった</title><description>&lt;p&gt;以下のようなメッセージで、Unit Testが動かなくなってしまった。&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;No api proxy found for service “xmpp”&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;Channel APIを使うようにしたのだが、それの影響でどうやら、XMPPのStubを登録しておく必要があるみたいだ。&lt;/p&gt;

&lt;p&gt;ということで、Unit Testの最初の方で以下のように登録してあげる。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;from google.appengine.api import apiproxy_stub_map
from google.appengine.api.xmpp import xmpp_service_stub

apiproxy = apiproxy_stub_map.APIProxyStubMap()
apiproxy.RegisterStub('xmpp', xmpp_service_stub.XmppServiceStub()) &lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/31835758662</link><guid>http://blog.f13.jp/post/31835758662</guid><pubDate>Tue, 25 Sep 2012 12:11:33 +0900</pubDate><category>gae</category><category>python</category></item><item><title># WebkitのNotification(通知)を使ってGMAILのようなデスクトップ通知を表示してみる</title><description>&lt;p&gt;ということで、ChromeだとGmailのNotificationのような通知を結構簡単にできる。&lt;/p&gt;

&lt;p&gt;注意点としては、requestPermissionはユーザのアクションによる呼び出しでないとうまく動かない。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;&amp;lt;html&amp;gt;
    &amp;lt;head&amp;gt;
        &amp;lt;script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"&amp;gt;&amp;lt;/script&amp;gt;
    &amp;lt;/head&amp;gt;
    &amp;lt;body&amp;gt;
        &amp;lt;ul&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;a href="#" id="permission"&amp;gt;Allow notification&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
            &amp;lt;li&amp;gt;&amp;lt;a href="#" id="notification"&amp;gt;Show notification&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;
        &amp;lt;/ul&amp;gt;
        &amp;lt;script&amp;gt;
var notify = function(message) {
    if(window.webkitNotifications.checkPermission() != 0) {
        return;
    }
    var n = window.webkitNotifications.createNotification('favicon.ico', 'Alert', message);
    n.show();
    // close after 3000 ms
    setTimeout(function(){
        n.close();
    }, 3000);
};

$('#permission').click(function(e) {
    window.webkitNotifications.requestPermission(function() {
        notify('Notification Allowed');
    });
});

$('#notification').click(function(e) {
    notify('Message');
});

        &amp;lt;/script&amp;gt;
    &amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt; &lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/30440573802</link><guid>http://blog.f13.jp/post/30440573802</guid><pubDate>Wed, 29 Aug 2012 14:59:39 +0900</pubDate><category>html5</category><category>chrome</category></item><item><title>TextMate 2をソースからコンパイルしてみる</title><description>&lt;h1&gt;準備&lt;/h1&gt;

&lt;p&gt;コンパイルに必要なものをインストールする&lt;/p&gt;

&lt;p&gt;Brewを使う。(オフィシャルにはPortを使った方法も書いてある)&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew install ragel boost multimarkdown hg ninja
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;※hg(mercurial)はSCMのライブラリのテストに使うだけなのでSkip出来る。&lt;/p&gt;

&lt;p&gt;ninjaが見つからないと言われてしまった、Formulaが古かったようなのでアップデート&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew update
$ brew install ragel boost multimarkdown hg ninja
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Lionを使っている場合は、pgrep と pkill のためにproctoolsをインストールする必要がある。&lt;/p&gt;

&lt;p&gt;これもBrewを使ってさくっとインストール&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew install proctools
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;他にも、Xcode 4.4 以上が入ってない場合は、clangをインストールする必要がある。&lt;/p&gt;

&lt;p&gt;試していないが、以下のコマンドで入れられるらしい。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ brew install --HEAD llvm --with-clang
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;ソースの取得&lt;/h1&gt;

&lt;p&gt;ソースコードをGithubからCloneしてくる。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ git clone &lt;a href="https://github.com/textmate/textmate.git"&gt;https://github.com/textmate/textmate.git&lt;/a&gt;
$ git submodule update --init
&lt;/code&gt;&lt;/pre&gt;

&lt;h1&gt;コンパイル&lt;/h1&gt;

&lt;p&gt;準備ができたらコンパイルを行う。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;$ ./configure &amp;amp;&amp;amp; ninja&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;コンパイルに成功するとそのまま、TextMateが起動する。&lt;/p&gt;</description><link>http://blog.f13.jp/post/29942351173</link><guid>http://blog.f13.jp/post/29942351173</guid><pubDate>Wed, 22 Aug 2012 12:06:00 +0900</pubDate><category>textmate</category></item><item><title>NSErrorで、Potential null dereference エラー</title><description>&lt;p&gt;NSErrorで、以下の様なメッセージが出て怒られてしまった。&lt;/p&gt;

&lt;blockquote&gt;
  &lt;p&gt;Potential null dereference. 
  Accordning to coding standards in &amp;#8216;Creating and Returning NSError Objects&amp;#8217; the parameter maybe null&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;以下の様な実装をしていたのだが、&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;- (void)testHoge:(NSError *__autoreleasing *)error {
    ...
    *error = [NSError errorWithDomain:@"ErrorDomain" code:1 userInfo:nil];

}&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;em&gt;errorがNullの可能性があるので、&lt;/em&gt;errorにNSErrorを代入する前にチェックが必要だった。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;if (error) *error = [NSError errorWithDomain:@"ErrorDomain" code:hasLength userInfo:nil];
&lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/28028719009</link><guid>http://blog.f13.jp/post/28028719009</guid><pubDate>Thu, 26 Jul 2012 12:17:54 +0900</pubDate><category>ios</category><category>tech</category><category>nserror</category></item><item><title>jinja2のMacroのなかで、Contextに定義した関数が使えなかった</title><description>&lt;p&gt;標題の通りはまってしまったのでメモ。&lt;/p&gt;

&lt;h3&gt;Macroとは&lt;/h3&gt;

&lt;p&gt;以下の様に、テンプレート内で共通の表示部分をまとめることができる。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{% macro input(name, value='', type='text') -%}
    &amp;lt;input type="{{ type }}" value="{{ value|e }}" name="{{ name }}"&amp;gt;
{%- endmacro %} &lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;そして、以下の様にMacroを呼び出すことができる。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{% import 'forms.html' as forms %}
{{ forms.input('username') }} &lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;非常に便利なのだが、Macroから、Contextに定義した関数がが使えなかったのだ。&lt;/p&gt;

&lt;p&gt;というのにちょっとだけ、はまったのだがドキュメントを見たら書いてあった。&lt;/p&gt;

&lt;p&gt;importする際に&amp;#8221;with context&amp;#8221;を付けてあげる必要がある。&lt;/p&gt;

&lt;p&gt;先ほどの例だと以下の様にすれば大丈夫だった。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;{% import 'forms.html' as forms with context%}
{{ forms.input('username') }} &lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/27474988093</link><guid>http://blog.f13.jp/post/27474988093</guid><pubDate>Wed, 18 Jul 2012 19:15:00 +0900</pubDate><category>jinja2</category><category>python</category><category>tech</category></item><item><title>UIViewにグラデーションを設定 </title><description>&lt;p&gt;UIViewの子クラスを使い、以下の様にawakeFromNibでグラデーションを設定&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;- (void)awakeFromNib {
    CAGradientLayer *gradient = [CAGradientLayer layer];
    gradient.frame = self.bounds;
    gradient.colors = [NSArray arrayWithObjects:(id)[
        [UIColor whiteColor] CGColor], 
        (id)[[UIColor colorWithRed:0.69 green:0.769 blue:0.871 alpha:1] CGColor], nil];
    [self.layer insertSublayer:gradient atIndex:0];
}&lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/27292351419</link><guid>http://blog.f13.jp/post/27292351419</guid><pubDate>Mon, 16 Jul 2012 08:58:00 +0900</pubDate><category>ios</category><category>tech</category></item><item><title>MapViewとAnnotationを使って、ピンをさし、詳細画面へ遷移する方法 </title><description>&lt;h2&gt;Annotationについて&lt;/h2&gt;

&lt;p&gt;Annotationは、MKANnotation protocolを実装したクラスを自分で作る必要がある。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;MyAnnotation.h
@interface MyAnnotation : NSObject &lt;mkannotation&gt;

- (id)initWithCordinate:(CLLocationCoordinate2D)coordinate title:(NSString *)title subtitle:(NSString *)subtitle;

@property (nonatomic) CLLocationCoordinate2D coordinate;
@property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *subtitle;

@end &lt;/mkannotation&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code&gt;MyAnnotation.m
@implementation MyAnnotation 

// Properties
@synthesize coordinate = _coordinate;
@synthesize title = _title;
@synthesize subtitle = _subtitle;

#pragma mark - Initializing
- (id)initWithCordinate:(CLLocationCoordinate2D)coordinate title:(NSString *)title subtitle:(NSString *)subtitle {
    self = [super init];
    if (self) {
        self.coordinate = coordinate;
        self.title = title;
        self.subtitle = subtitle;
    }
    return self;
}

@end &lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;Annotationの追加&lt;/h2&gt;

&lt;p&gt;以下のように、Annotationを作成し、MapViewに追加を行う。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;CLLocationCoordinate2D coordinate =  CLLocationCoordinate2DMake(geoPoint.latitude, geoPoint.longitude);
MyAnnotation *annotation =[[MyAnnotation alloc] initWithCordinate:coordinate title:title subtitle:subtitle];

[mapView addAnnotation:annotation]; &lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;AnnotationViwについて&lt;/h2&gt;

&lt;p&gt;Annotationを追加すると以下のメソッドが呼ばれる、ここでAnnotationViewを作成する。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id&lt;mkannotation&gt;)annotation {
    
    // if annotation is user location, return the method
    if ([annotation isKindOfClass:[MKUserLocation class]]) {
        return nil;
    }
    
    // make annotation view
    static NSString *identifier = @"PlaceAnnotation";
    MKPinAnnotationView *annotationView = (MKPinAnnotationView *)[self.mapView dequeueReusableAnnotationViewWithIdentifier:identifier];
    if (!annotationView) {
        annotationView = [[MKPinAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:identifier];
    }
    // set the some properties
    annotationView.pinColor = MKPinAnnotationColorGreen;
    annotationView.canShowCallout = YES;
    annotationView.rightCalloutAccessoryView = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
    return annotationView;
} &lt;/mkannotation&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;ボタンを押された場合は以下のメソッドが呼ばれることになる。
Storyboardを使っている場合は、SegueのIdentifierを渡すことにより、任意の切り替えを行うことができる。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt; - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control {
    // push the detail view
    [self performSegueWithIdentifier:@"presentDetailView" sender:self];
} &lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/27249302912</link><guid>http://blog.f13.jp/post/27249302912</guid><pubDate>Sun, 15 Jul 2012 16:56:00 +0900</pubDate><category>ios</category><category>stroyboard</category><category>tech</category><category>mapview</category><category>annotation</category></item><item><title>UISearchBarの背景画像を変更する(iOS5以上)</title><description>&lt;p&gt;iOS5以上からは、UIApperanceというプロトコルが有効になり、それを使うと非常に簡単に見た目を変えることができる。&lt;/p&gt;

&lt;p&gt;今回は、UISearchBarの背景画像を変更してみる。&lt;/p&gt;

&lt;p&gt;AppDelegate内で、以下のように指定するだけでアプリ内で使っているUISearchBarの背景画像を一気に変更することが出来る。&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;UIImage *searchBarImage = [UIImage imageNamed: @"Frame-Background.png"];
[[UISearchBar appearance] setBackgroundImage:searchBarImage];&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;stackoverflowにUIKitごとに使えるプロパティがまとまってたので、リンクを張っておく。&lt;/p&gt;

&lt;p&gt;&lt;a href="http://stackoverflow.com/questions/9424112/what-properties-can-i-set-via-an-uiappearance-proxy"&gt;http://stackoverflow.com/questions/9424112/what-properties-can-i-set-via-an-uiappearance-proxy&lt;/a&gt;&lt;/p&gt;</description><link>http://blog.f13.jp/post/27115381999</link><guid>http://blog.f13.jp/post/27115381999</guid><pubDate>Fri, 13 Jul 2012 18:26:06 +0900</pubDate><category>tech</category><category>ios</category></item><item><title>Pythonで、住所から緯度、経度を取得する</title><description>&lt;p&gt;&lt;a href="http://www.geocoding.jp/"&gt;ここ&lt;/a&gt;のAPIを利用させて頂いて、住所から緯度、経度を取得する。&lt;/p&gt;

&lt;div class="gist"&gt;&lt;a href="https://gist.github.com/3082129"&gt;https://gist.github.com/3082129&lt;/a&gt;&lt;/div&gt;</description><link>http://blog.f13.jp/post/26895694288</link><guid>http://blog.f13.jp/post/26895694288</guid><pubDate>Tue, 10 Jul 2012 18:01:00 +0900</pubDate><category>techp</category><category>python</category></item><item><title>sedで特定行を削除する</title><description>&lt;p&gt;忘れないようにメモ&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;echo "aaaa\nbbbb\ncccc\ndddd" | sed -e "1,2d"&lt;/code&gt;&lt;/pre&gt;</description><link>http://blog.f13.jp/post/26812532500</link><guid>http://blog.f13.jp/post/26812532500</guid><pubDate>Mon, 09 Jul 2012 13:37:28 +0900</pubDate></item></channel></rss>
