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

JBossAS7 with JDK8

JBossDeveloper を見ると 7.1.1 はサポートしなささそう。「WildFly 使いな」って書かれてる。 7.1.2 はテストされてる的な話も。 JBoss AS7 Supported with JDK8 | JBoss Developer WildFly は動くみたい。 WildFly 8 Final is released! · WildFly GlassFi…

Tomcat7 with JDK8

うごかないね。 jdk7 later になってるんだけどなぁ Apache Tomcat - Which Version Do I Want? java.lang.NoSuchMethodError: sun.security.ec.NamedCurve.(Ljava/lang/String;Ljava/lang/String;Ljava/security/spec/EllipticCurve;Ljava/security/spec/EC…

MySQL5.6 のトランザクション分離レベル

MySQL5.6 のトランザクション分離レベルのデフォルトが REPEATABLE-READ になっててびびった。 5.5 も同じみたい。 Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 26209 Server version: 5.6.20 MySQL Community S…

Redmine 2.5.1 で bundle install したら。。。

こんなこと言われた。 Use `bundle show [gemname]` to see where a bundled gem is installed. Post-install message from capybara: IMPORTANT! Some of the defaults have changed in Capybara 2.1. If you're experiencing failures, please revert to t…

Joda-Time で期間操作

commons-lang3 でもいいけど、Joda-Time も便利なので DateTime dts = new DateTime(); DateTime dte = dts.plusDays(1).plusMillis(1); Interval interval = new Interval(dts, dte); // Duration Duration duration = interval.toDuration(); System.out.p…

Joda-Time で日付操作

commns-lang3 が便利だったけど Joda-Time も便利なので // 月初を取得 DateTime dt = DateTime.now().dayOfMonth().withMinimumValue().dayOfMonth().roundFloorCopy(); System.out.println(dt); // 月末を取得 dt = DateTime.now().dayOfMonth().withMaxim…

Android のバージョンコードは Integer

らしい https://developer.android.com/guide/topics/manifest/manifest-element.html

JSON のプロパティのデータ型

普通にとれた var json = { "data" : [ {"name":"香坂健史","age":12,"gender":null,"birthday":"1971/03/30"}, ] } console.log(typeof json.data[0].name); console.log(typeof json.data[0].age); console.log(typeof json.data[0].gender); console.log(…

apk のメタ情報を取得する

apk がどの versionCode か判らなくなったときのために。 $ aapt dump badging example.com.apk package: name='example.com' versionCode='2' versionName='1.0.0' sdkVersion:'15' maxSdkVersion:'15' targetSdkVersion:'15'