2015-01-01から1年間の記事一覧

Swift2 Exif Declaration Keys を調べてみた

カメラアプリを作成する時にmetadataを設定しただけでは、標準カメラと比べるとExif情報が足りない。そこで撮影後に取得出来るExifの初期設定項目を調べてみた。撮影はフラッシュなし。 CGImageProperties Reference Constants - EXIF Dictionary Keys より …

Swift2.1 Camera Application Demo

Swift2.1でAVFoundationを使って最高画質で撮影できるサンプルを作ってみました。 ググれば沢山出てくるのですがSwiftのバージョンが古いものばかりで苦労したのでメモ替わりに記事にしておきます。 import UIKit import AVFoundation class ViewController:…

Scala + Play2.4 anormの設定

Play2.3まではbuild.sbtでAnormを設定するには下記のように記述してましたが libraryDependencies ++= Seq( jdbc, anorm ) Play2.4からは下記のように記述するようになった。 libraryDependencies ++= Seq( jdbc, "com.typesafe.play" %% "anorm" % "2.4.0" )

Could not find a suitable constructor in 〜 エラーの対処方法

環境:ScalaIDE(eclipse4.2) + Scala + Play2.4 下記エラーが出た時の対処方法 1) Could not find a suitable constructor in controllers.UserController. Classes must have either one (and only one) constructor annotated with @Inject or a zero-argu…

OSX EI Capitan + Node.js

Scala + Play2.4 の勉強しているのですがターミナルに下記の警告が出てしまう。 Warning: node.js detection failed, sbt will use the Rhino based Trireme JavaScript engine instead to run JavaScript assets compilation, which in some cases may be o…