This is the second of a two part introduction on how to write testable Javascript UI code. The first article, Anti-Patterns and their fixes, uses a sample application to introduce several common, avoidable, and test-inhibiting anti-patterns. Why these common practices are anti-patterns and how to fix them are explained. This article continues by refactoring the original application to be easier to
Updated date:Oct 19, 2016Create PDF using iOS UIKit The iOS SDK offers two venues for creating PDF files: UIKit or the Core Graphics. With either of these paths you can create one page or loop over the content and create multiple pages. These drawn PDF pages can include custom formatting, images, borders and page numbers to name a few. But you are only limited by your own imagination and the time
MarsEdit - the blog editor for WordPress, Tumblr, Blogger and more. バージョン: 3.5.8 現在の価格: ¥3,450 サイズ: 7.9 MB カテゴリ: ソーシャルネットワーキング, 仕事効率化 販売元: Red Sweater Software - Red Sweater Software 全てのバージョンの評価: ★4.0(5件の評価) Markdown、してますか? 実は私はブログではあまり使っていません1。 しかし、Jekyll をきっかけに再び Markdown 熱が高まってきました。 Jekyll では複数の Markdown エンジンがサポートされています。 これらの Markdown エンジンではオリジナルの Markdown にない機能が実装されており、 表現力が増しています。 そして、MarsEdi
AVFoundationフレームワークのAVPlayerを使った動画再生などでは、ヘッドフォンやイヤフォンを抜いた際、動画の再生が強制的に止まるようになっており、このイベントをフックできないと動画プレイヤーのボタンの状態は動画が再生されている状態のままになってしまいます。 Googleの純正YouTubeアプリではこのような仕様にしっかりと対応しています。 Googleの純正YouTubeアプリ https://itunes.apple.com/jp/app/youtube/id544007664 ソースコード ヘッドフォンを抜いた時のイベントをフックするクラスをARCで作成し、ソースコードはgithubにおいています https://github.com/yimajo/HeadphonesPluggedDemo 下記の説明はまず動作させてから読むことで理解が深まると思います。 ヘッドフォ
Appurifyに買収され 9/1/2013 にサービス終了しました。 cisimpleとは https://www.cisimple.com/ cisimpleは現在βサービス中のモバイルアプリケーションの開発者を対象としたCIサーバーのサービスです。Travis CIのモバイルネイティブアプリ版のようなものをイメージしてください。 iPhoneアプリのCIサーバーのホスティングサービスがなかなか出てこないのは主にiPhoneアプリのビルドが開発環境をインストールしたMac機器でしか動かないのでビルドサーバーを用意するのに途方もないコストがかかるからなんだろうけど*1、遂に継続的ビルドをサポートするサービスが出てきたのでcisimpleには期待しています。 また丁度同時期にプライベートβがはじまったhostedciというサービスもあります。こちらはiOS, Macのみです。両方試してみて
例えばこんなコードに違和感はありませんか? 自分の場合よくあることなのですが、例えばiOSアプリを開発していて、Google Analytics のトラッキングのためのコードを加えるとき、 - (IBAction)sendButtonDidPush:(id)sender { // トラッキングのためのコード [tracker sendEventWithCategory:@"uiAction" withAction:@"sendButtonDidPush" withLabel:nil withValue:0]; // ... // 以降、送信ボタンを押したときの処理 // ... } こんなかんじにボタンが押されたときの処理のところにトラッキングのためのコードを埋め込んだりすると思います。 これはこれで問題はないのですが、プログラムのあちらこちらにトラッキングのためのコードを埋め込んで、本来
自分もいろいろ、色々な学校に行ったが 上手くなる人や楽しい学びについて ちょいとおもったことをメモしておこう。 学びの手順 ・型を覚える 基本形を考えずにでるようにする 解らないことをおびえない すぐに覚えようとしない まず手を動かす 覚えられないことを恐れない 嫌いにならない分量を練習する(性格を鑑みる) ・意味を考える 基本形を理解する すぐに助けてもらわない 考えながら復習していく 過程を意識する(正解を求めすぎない) 夢を持つ 少し難しい課題を解いていく ・順番に応用していく キレイを意識する ・教えられやすい生徒になる 教える側 ・相手の希望に惑わされない 真実のゴールは何か ・感覚を共有する できれば、相手の体験に沿う説明を行う ・ドの感覚を使うかを確認する
Tern is a stand-alone code-analysis engine for JavaScript. It is intended to be used with a code editor plugin to enhance the editor's support for intelligent JavaScript editing. Features provided are: Autocompletion on variables and properties Function argument hints Querying the type of an expression Finding the definition of something Automatic refactoring Tern is open-source (MIT license), wri
JavaScript is a language that is widely-used for both web-based and standalone applications such as those in the Windows 8 operating system. Analysis of JavaScript has long been known to be challenging due to the language’s dynamic nature. On top of that, most JavaScript applications rely on large and complex libraries and frameworks, often written in a combination of JavaScript and native code su
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く