2015-08-01から1ヶ月間の記事一覧

ArduinoをMIDI機器にする

mocolufaを使う https://github.com/kuwatay/mocolufamocolufaをArduino UNO R3で使ってみる (Arduino UNOといってもR1とR2でハードウェア構成が違うのでR3がおすすめ →R2で試したけどうまく行かなかったのでR3でやったらうまくいった)Macさんがdfu-programm…

inkscapeの使い方

レーザーカット用の2Dデータをつくりたいとき Ctrl + + (ブーリアン加算) Ctrl + - (ブーリアン減算) Ctrl + Shift + F (Fill) →0.025mmにしたらhair lineで認識された Ctrl + Shift + A (align) Ctrl + d (duplicate) →コピーペースト

nmatrixのYosemiteへのインストール

大変そう。 https://github.com/SciRuby/nmatrix/issues/319ruby 2.3.0-devではビルドできなかったので ruby-2.2.2で行った。

お名前.comのドメインでメールアドレスをGmailで運用する

1. 転送PlusでGmailへ転送 2. 独自ドメインのメールアドレスをGmailから追加 a. 送信にはsmtp.gmail.comを利用 b. パスワードにはGoogle App passwordを生成して入れる c. TLSではなくSSLを選ぶ!←ここでハマった お名前.com側の設定 1. ネームサーバーの設…

開いているFinderの場所にターミナルで移動するcdfコマンド

今まで$cd + Drag dropで移動していたのでこれは便利 http://brettterpstra.com/2013/02/09/quick-tip-jumping-to-the-finder-location-in-terminal/ ~/.zshrc # cd to the path of the front Finder window cdf() { target=`osascript -e 'tell application…

ListViewの中でEditTextを使う

発生した問題 ListViewの中でEditTextを使いたい。入力値は数字(Number)。 EditTextのInputTypeをmanifest XMLで指定している EditTextをタップしてフォーカスがあたると一瞬だけ数字キーボードが出現するが、すぐにフォーカスが外れてアルファベットキー…

Android実機でスクリーンショット動画を撮る

http://stackoverflow.com/questions/5382212/capture-video-of-androids-screen adb shell screenrecord /sdcard/movie.mp4 (Press Ctrl-C to stop) adb pull /sdcard/movie.mp4

Nokogiriで画像のダウンロード

require 'nokogiri' require 'open-uri' page = Nokogiri::HTML(open("https://rubygems.org/gems/shiny")) `wget -O hoge.png #{page.css('img#gravatar-2097').attr('src').value} `