関連するかも情報 |
昨日の階段・階数・高度・累積標高ログ。 My fitbit floors activity #fitstats for 2016-03-29: 12 floors climbed (36.58 meters).
[t] 2016-03-30 09:30:10
|
昨日の活動割合ログ。 My fitbit time activity #fitstats for 2016-03-29: Very Active: 0min, Sedentary: 20hrs 53min.
[t] 2016-03-30 09:30:14
|
Homebrew で Python をインストールしたけど何かうまくいっていない感。
$ brew install python --framework $ brew linkapps python $ pip install --upgrade pip setuptools
[t] 2016-03-30 09:34:30
|
シンボリックリンクあり
$ which python /usr/local/bin/python
$ ls -l /usr/local/bin/python /usr/local/bin/python -> ../Cellar/python/2.7.11/bin/python
[t] 2016-03-30 09:35:30
|
あれ? シンボリックリンクされてるはず。。。
$ python --version Python 2.7.10
$ /usr/local/Cellar/python/2.7.11/bin/python --version Python 2.7.11
[t] 2016-03-30 09:35:46
|
あれっ?
$ which python /usr/local/bin/python
$ python --version Python 2.7.10
$ /usr/local/bin/python --version Python 2.7.11
[t] 2016-03-30 09:37:08
|
シェル起動しなおしたら
$ python --version Python 2.7.11
ちゃんと 2.7.11 になってた。 which コマンドは自分の環境のパスとはちがうんだろうか。。。
[t] 2016-03-30 09:37:46
|
$ pip --version pip 8.1.1 from /usr/local/lib/python2.7/site-packages (python 2.7)
[t] 2016-03-30 09:39:38
|
$ pip install Pillow Requirement already satisfied (use --upgrade to upgrade): Pillow in ./site-packages
[t] 2016-03-30 09:40:50
|
$ pip install Pillow --upgrade Requirement already up-to-date: Pillow in ./site-packages
[t] 2016-03-30 09:40:52
|
Python で画像フォーマット変換してみる。
[t] 2016-03-30 09:45:11
|
# encoding: UTF-8
from PIL import Image
img = Image.open("input.png", "r") img.save("output.jpg", "JPEG", quality=80, optimize=True)
[t] 2016-03-30 09:45:24
|
img = Image.open("input.jpg", "r") img.save("output.png", "PNG", quality=80, optimize=True)
[t] 2016-03-30 09:45:30
|
出力されたPNGファイルをチェック。
$ file output.png output.png: PNG image data, 480 x 390, 8-bit/color RGB, non-interlaced
[t] 2016-03-30 09:46:21
|
出力されたJpegファイルをチェック。
$ file output.jpg output.jpg: JPEG image data, JFIF standard 1.01
[t] 2016-03-30 09:46:25
|
Python で画像フォーマット変換できた(*´ω`*)
[t] 2016-03-30 09:46:38
|
Mac で Python の環境を構築するのがよくわかっていないのでちょっとつらい。
[t] 2016-03-30 09:47:08
|
Homebrew and Python https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Homebrew-and-Python.md
[t] 2016-03-30 09:49:11
|
Not Found ページだね(*´ω`*)
迷宮に迷い込んでしまいました | Read the Docs https://pillow.readthedocs.org/e http://twitter.com/nilab/status/714978458858696704/photo/1
 元の画像を見る
[t] 2016-03-30 09:52:02
|
RT @MUGI1208: ■一週目 SE「計画が破綻してます」 顧客「わかってますがやるしか」
■二週目 SE「計画が破綻してて」 顧客「わかってますが」
■三週目 SE「計画が破綻」 顧客「わかってます」
■ひと月後 顧客「こ、これ、計画が破綻してる!?」 SE「知ってる」
#本当にあった怖い話
[t] 2016-03-30 09:52:22
|