Android の suica アプリで広告と背景しか表示されなくなったけど Developer option の強制 GPU レンダリングを OFF にして治った

apt-get が途中で0% [Waiting for headers] [Waiting for headers] から動かなくなる。git clone もうまく行かない

apt-get update が途中で0% [Waiting for headers] [Waiting for headers] から動かなくなる。 user@server:$ sudo apt-get update Hit:1 http://jp.archive.ubuntu.com/ubuntu xenial InRelease Ign:2 http://dl.google.com/linux/chrome/deb stable InRele…

activator new sampleapp play-scala で作ったプロジェクトを IntelliJで sbt run すると 「object index is not a member of package views.html」エラー

activator new sampleapp play-scala で作ったプロジェクトを IntelliJで sbt run すると 「object index is not a member of package views.html」エラー - Compilation completed with 1 error and 0 warnings in 4s 912ms sampleapp/app/controllers/Home…

Ubuntu で bluetooth キーボードマウスがログイン時に認識されないのはlocal.rc に1行足したら解決する

現象 ログイン前に bluetooth キーボードマウスが認識されなくてつらい 環境 Ubuntu 16.04 LTS /etc/rc.local に1行足して解決した exit の前あたりに下記追加 rfkill unblock all ansible 風 - lineinfile: dest=/etc/rc.local line="rfkill unblock all" r…

Swagger UI に自分の yaml を getで読み込ませる

最近気にいって使っている Swagger ですが、yaml を テキストボックスに入力して Explore で指定できるのに getで指定するやり方がわからなかったのでメモ。 パラメーター名は url でした。 ※当然ですが本当はyamlのURLはURLエンコードしたほうがいいです。 …

ローカル ubuntu 14 に ansble で node 4.0 を雑にインストール

node は インストールの方法が色々あって苦しむ。 とりあえず4を入れたい時が増えてきたのでメモ playbook はこれ。 --- - hosts: 127.0.0.1 connection: local sudo: true tasks: - apt: name=vim update_cache=yes - apt: name=curl - shell: curl -sL htt…

inventory file なしで (sudo ansible-playbook ./playbook.yml) で実行するには ansible 2.0.0.2 を入れないといけない

vagrant provision でのansibleが多くて忘れてた。 忘れた頃に下の手順でansibleインストール。 sudo apt-add-repository ppa:ansible/ansible -y sudo apt-get install -y git ansible いつもの方法の、 inventory file なしだと怒られる。 ubuntu@ip-172-3…

java.lang.RuntimeException: Fail to connect to camera service

Android Studio の補完に任せて全部大文字だと java.lang.RuntimeException: Fail to connect to camera service <uses-permission android:name="android.permission.CAMERA" /> 権限は宣言してるつもり 他のアプリがカメラを掴んだままではない 自分のアプリもまだ掴んでない 大文字、小文字を直して治りました。</uses-permission>

google play のライブラリを入れたら Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'comm

google play のライブラリを入れたら Error:Execution failed for task ':app:transformClassesWithDexForDebug'. > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.E…

スマホの画面を赤白黄色のケーブルでテレビに出力

スマホの画面を赤白黄色のケーブルでテレビに出力したい。 HDMI経由で行けました。 - MicroUSB <-> HDMIの変換ケーブル(よくわからないけどMHLて書いてある) - HDMIから赤白黄色に変換http://www.amazon.co.jp/gp/product/B0001CQ6KA/ref=oh_aui_detailpage_…

error: reference to HttpEntity is ambiguous both constructor HttpEntity(T) in HttpEntity and constructor HttpEntity(MultiValueMap<String,String>) in HttpEntity match where T is a type-variable: T extends Object declared in class HttpEntity

Android annotations で下記でエラー。 error: reference to HttpEntity is ambiguous both constructor HttpEntity(T) in HttpEntity and constructor HttpEntity(MultiValueMap<String,String>) in HttpEntity match where T is a type-variable: T extends Object declar</string,string>…

開発スピードを早めるために先に作っておくもの、決めておくもの(まだまとめきれてない)

開発スピードを早めるために先に作っておくもの 資料書く場所 散らかりがち 今まであったこと 複数リポジトリのプロジェクトで、特定のリポジトリの README に書いていたらいろいろなところの README やら wiki やら 資料が散らかった 環境分離 CI 自動更新…

はてブに引越し

Blogger 使ってたけど未だにマークダウンで書かせてくれないのではてブに移行。 30代フリーランスのエンジニアです。 好きなこと java Android NodeJS Arduino Jenkins 型付 Angular 便利なもの シンプルライフ 家具付き保証人なしマンスリーマンション Ubun…