[Mac App] タイマーアプリ「Alinof Timer」がシンプルで使いやすい
- 2015 11/28
Mac 向けのタイマーアプリ「Alinof Timer」がシンプルで使いやすかったのでご紹介します。
社内 MTG の発表時間が1人当たり1分30秒と決められているのですが、それを計測するのに重宝しています。
Mac 向けのタイマーアプリ「Alinof Timer」がシンプルで使いやすかったのでご紹介します。
社内 MTG の発表時間が1人当たり1分30秒と決められているのですが、それを計測するのに重宝しています。
知人から「Mac がウイルスに感染して search-quick.com がデフォルトページに設定されてしまうので助けて!」という相談を受けました。
下記のYahoo!知恵袋へ投稿されている相談内容と似たようなケースです。
まず、下記の2つを試してもらいました。
さらに、AdwareMedic というアプリを使ってもらって、解決できたみたいです。
この知人は Adobe Flash Player のアップデートみたいな偽サイトに引っ掛かったみたいです。
怪しいアプリや広告などには気をつけたいですね。
Mac OS X Yosemite で brew コマンドを実行しようとするとエラーが発生しました。
エラー内容
% brew -h /usr/local/bin/brew: /usr/local/Library/brew.rb: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby: bad interpreter: No such file or directory /usr/local/bin/brew: line 21: /usr/local/Library/brew.rb: Undefined error: 0 |
まず、下記のように ruby の path を 1.8 から current へ変更します。
git diff diff --git a/Library/brew.rb b/Library/brew.rb index 4fa22b4..ee05650 100755 --- a/Library/brew.rb +++ b/Library/brew.rb @@ -1,4 +1,4 @@ -#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -W0 +#!/System/Library/Frameworks/Ruby.framework/Versions/current/usr/bin/ruby -W0 # encoding: UTF-8 std_trap = trap("INT") { exit! 130 } # no backtrace thanks |
次に brew の git repository へ移動して、修正内容を commit します。
cd $(brew --prefix) git add . git commit -m 'Change the path for ruby' brew update |
最後に git commit をしておかないと brew update したときに下記のようにエラーでアップデートできません。
% brew update error: Your local changes to the following files would be overwritten by merge: Library/Formula/mongodb.rb Please, commit your changes or stash them before you can merge. error: Your local changes to the following files would be overwritten by merge: Library/brew.rb Please, commit your changes or stash them before you can merge. Aborting Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master |
brew update で盛大に conflict したときは手元の修正は捨てて、
git reset --hard HEAD git merge -Xtheirs origin/master |
してしまえば OK です。
Mac の QuickTime Player を使って画面を録画する手順をまとめました。
Sony の USB マイクを Mac に接続します。
・Amazon.co.jp: SONY エレクトレットコンデンサーマイクロホン PCV80U ECM-PCV80U: 楽器
以上です。
Homebrew で brew doctor したら xz というライブラリがインストールされてないというエラーが出ました。
$ brew doctor Please note that these warnings are just used to help the Homebrew maintainers with debugging if you file an issue. If everything you use Homebrew for is working fine: please don't worry and just ignore them. Thanks! Warning: Some installed formula are missing dependencies. You should `brew install` the missing dependencies: brew install xz Run `brew missing` for more details. |
brew missing すると詳細が分かるということだったので、やってみたら ImageMagick の依存ライブラリとのことでした。
$ brew missing imagemagick: xz |
xz を brew install します。
$ brew install xz ==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/xz-5.0.7.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> Pouring xz-5.0.7.yosemite.bottle.tar.gz /usr/local/Cellar/xz/5.0.7: 58 files, 1.5M |
もう一度、brew doctor でチェックします。
$ brew doctor Your system is ready to brew. |
正常に戻りました。
1台の外付けハードディスクを2台の iMac で共有するために iMac 同士をLANケーブルで接続しました。
Mac 同士をLANケーブルで接続するためには、ネットワークの設定から手動で IP アドレスを割り振らないといけないと思っていました。
実際にやってみるとLANケーブルを繋ぐだけで DHCP サーバを利用して、自動で IP 割り振ってくれたので非常に楽でした。
他にも MacBook Air と iMac 同士を接続するには ギガビットEthernetアダプタ を使って接続するだけです。
Mac で使える動画編集フリーソフト「MPEG Streamclip」を使って、動画を結合することができます。
・Squared 5 – MPEG Streamclip video converter for Mac and Windows
サクッと動画を繋いでくれるので便利です。
ただ、動画のサイズが異なる場合は結合できないので、そういう場合は iMovie などで動画編集する必要があります。
Node.js で wkhtmltopdf を使う方法をメモ。
(最終更新日:2014/11/28)
node-wkhtmltopdf
A Node.js wrapper for the wkhtmltopdf command line tool.
ということで、npm module だけだと使えないので wkhtmltopdf はインストールする必要があります。
wkhtmltopdf のインストール
# the wkhtmltopdf formula is now inactive but still available in the boneyard repository brew tap homebrew/boneyard # Install wkhtmltopdf brew install wkhtmltopdf |
wkhtmltopdf コマンドで、PDFを生成できることを確認します。
wkhtmltopdf "http://google.com" google.pdf |
以上です。