要素の指定方法(select, selectAll) 内容の書き換え(text, attr, style, append, remove)
![【旧版】D3.js入門 (全17回) - プログラミングならドットインストール](https://cdn-ak-scissors.b.st-hatena.com/image/square/6dbe29b48b15fba4700e020f32507470b0a00c60/height=288;version=1;width=512/https%3A%2F%2Fdotinstall.com%2Fpackage_img%2Fbasic_d3js%2Fscreen_1.png)
Issue #1 Lighter View Controllers, June 2013 By Chris Eidhof view controllerはiOSプロジェクトの中で一番大きいファイルになりがちで、必要以上に多くのコードを含んでいることが多い。ほぼ決まってView Controllerはコードの中で最も再利用性の低い部分だ。View Controllerをスリムにし、再利用可能にして、より適切な場所にコードを移すテクニックを見ていこう。 この記事のサンプルプロジェクトがGitHubにあるので参照されたい。 データソースとその他のプロトコルを外に出す View Controllerスリム化の最も強力なテクニックのひとつが、UITableViewDataSourceの部分を独立したクラスに移すことだ。これを2回以上やってみるとパターンが見えてきて、このための再利用可能なクラスを作る
概要 2.0になってから更にシンプルに記述できるようになっています。 下記が必須要件となっていますので導入前に確認してください。 Xcode 5以上 iOS 6.0以上 大きな変更点としてドキュメントにあるようにiOS7以降のサポートのみでよければAFHTTPSessionManagerのサブクラスを作成して実装することが推奨されています。 iOS6やそれ以前のバージョンをサポートする場合の選択肢としてAFHTTPRequestOperationManagerが用意されています。 ここでは主にAFHTTPRequestOperationManagerの使い方について触れておきます。 使い方 インストールもCocoaPodsで簡単に導入できますので、下記Podfileをプロジェクトのルート直下に作成してインストールしましょう。 AFHTTPRequestOperationManager* m
These are the slides for the talk "Managing and Visualizing JavaScript Complexity" given at QCon SF 2013 by Jarrod OversonRead less
by Ashutosh Sharma / @zorder Senior Computer Scientist (Web Platform & Authoring) Quick Poll Spaghetti code? Need to maintain correct order of <script> tags? Polluted global namespace with clashing symbols? Difficulty in lazy loading scripts? The Problem Increasing code complexity Developers want discrete JS files Need for optimized deployment Good debugging support Modular JavaScript encapsulate
あらすじ とあるWebサーバのファイルの内容を変えたとき、 UIWebView 経由でアクセスすると更新が反映されない現象が起こった。 また、戻るボタンも更新ボタンもなにもつけていなかったため、その状況でどうやったらキャッシュを捨てて新しいファイルを取得できるかわからなかった。 環境 サーバ apache バージョン失念 クライアント iOS 6.0 と 5.1 の UIWebView と Safari サーバの内容 変更したファイル index.html − <p>Hell World</p> + <p>Hello World</p> とりあえず更新がわかるようにテキトウな文言で。 上記 index.html にアクセスした結果 iPhone Safari 更新された iPhone 独自アプリ内の UIWebView 更新されない場合があった 上記とは別の iPhone Safari 更
Sass/Compass ってよく聞くけど、なんか難しそう…って思っている主にデザイナー/HTMLコーダーさん向けの勉強会で利用したスライドです。勉強会にはハンズオンが組み込まれていたので、この資料には中途半端な部分がありますがご容赦ください。 (*'-'*) 内容的には、基礎的な事柄を、活用のための考え方を添えて解説しています。何かの参考になれば幸いです。Read less
I’ve been spending too much time lately thinking about file systems. What started it was a casual conversation I had with Alan about work he was doing to implement a node.js style POSIX file system in JS on top of IndexedDB. At the same time I was writing about an idea I had to create a new Webmaker tool called Nimble. The basic idea behind Nimble is to integrate Adobe’s Brackets editor with We
Webの未来 〜 PNaClとasm.jsでカワルミライ - いま、モバイルWebの先端で起こっていること
SenTestingKit/XCTestは非同期処理を待たずにテストケースを終了してしまうので、 直接SenTestingKit/XCTestを利用する場合には自分でNSRunLoopを回して処理の完了を待つ必要があります。 これまでSenTestCaseにfinishedフラグが追加されたサブクラスを使ったりしていたのですが、 どうしてもテストコードが明示的にならなくて悩んでいました。 いままで書いていたテストコードは以下のような感じです。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 - (void)testExample { // step 1 dispatch_queue_t queue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0); dispatch_async(queue, ^
データベースを扱うのに CoreDataは便利ですが、大量データの更新や保存をする際にはメインスレッドを妨害しないように別のスレッドで処理する必要があります。 ここでは CoreDataで非同期処理を行うための Tipsを紹介します。 元ネタは Multi-Context CoreData です。より詳しい解説や図解はこちらをどうぞ。 NSManagedObjectContext とマルチスレッド NSManageObjectContext は CoreDataのデータオブジェクトを管理するクラスですが、このクラスはスレッドセーフではありません。このため、マルチスレッドで CoreDataのオブジェクトを扱えるようにするにはスレッドごとに NSManageObjectContextを用意する必要があります。 iOS 5以降では initWithConcurrencyType: に NSPr
#import <Kiwi/Kiwi.h> SPEC_BEGIN(NSDateMakeTest) describe(@"", ^{ __block NSCalendar *jaCalender; __block NSDateFormatter *formatter; beforeAll(^{ jaCalender = [[NSCalendar alloc] initWithCalendarIdentifier:NSJapaneseCalendar]; jaCalender.timeZone = [NSTimeZone timeZoneWithName:@"Asia/Tokyo"]; // NSDateを西暦のグリニッジ標準時の文字列に変換するため formatter = [[NSDateFormatter alloc] init]; formatter.calendar = [[NSCal
Give me SVG, and I'll render it. It's free! viewer for SVG Gapplin is made for SVG. It can handle also SVGZ and animation SVG. besides text editor It's the perfect way to use Gapplin as a live-previewer for SVG images besides editing them in your text editor. WebKit rendering Gapplin uses WebKit as the rendering engine. So you can get images just as you see them on web browsers. screenshots Previe
So back in the dark ages, we registered to receive notifications like this: -[NSNotificationCenter addObserver:selector:name:object:] In other words, the target-action pattern. When the notification is received, call this selector (action) on this target. And all was well. Then in iOS 4, blocks (closures) were added to iOS. And it was the hip cool thing to add block versions of everything. Blocks
Podlife Open the CocoaPod bay doors, iPhone! CocoaPods is the future of iOS development. It allows you to quickly manage your project's dependencies, and harness the power of the open source Objective-C community. Podlife is all about keeping you up to date and connected to the CocoaPods world. Using iOS 7's background fetch API, Podlife is your portable CocoaPods command center. It helps you keep
curl -XPOST -d "Un petit exemple de texte dont j'ignore la langue" https://getlang.io/get?token=a8098c1a-f86e-11da-bd1a-00112444be1e 200 OK: { "code": "fr", "name": "Français", "name_en": "French" } Using 3-gram character and a Bayesian filter, getlang supports currently 53 languages : French Arabic German Czech Finnish English Spanish Greek, Modern Polish Portuguese Turkish Romanian Russian
「Weblio英和辞典プラグイン」はPDFに含まれる英語にマウスオーバーすると、その意味をポップアップさせるAdobe Reader® プラグインです。 「Weblio英和辞典プラグイン」をAdobe Readerに組み込むことで、PDFファイル上の英文を読む時に、効率的に英和辞典を参照することができます。 ソフトの動作には、下記動作環境が必要です。Windows XP SP2/Vista/7/8 Internet Explorer 7以降 Adobe Reader バージョン8以降 JavaScriptが有効になっていること インターネット接続環境一部のファイルでは正しく検索できないことがあります。Adobe Reader®は、アドビシステムズ社の米国および/または各国での商標または登録商標です。Adobe Readerの不具合や利用方法についてはアドビシステムズ社にお問い合わせください
Update: Apple took this to heart, and fixed things in Xcode 5.1. Bug or feature? “You have to call __gcov_flush() to collect coverage data with the iOS simulator.” According to Apple, this is a feature. But not if you actually want to measure your code coverage. Code coverage… oy vey! Back in the days of running on iOS 6 using Xcode 4, measuring code coverage for unit tests was fairly straightforw
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く