ytyng.com

新着記事

Page 11
2018-03-07 13:13 (8 years ago)

<Error><Message>Please provide valid credentials. Bearer realm="yahooapis.jp", error="insufficient_scope", error_description="insufficient scope"</Message></Error> Yahoo のストアAPIで上記エラーになった。

Ansible
2018-02-27 01:27 (8 years ago)

---- hosts: servers gather_facts: no become: yes tasks: - apt: name: apt-transport-https - apt: name: ca-certificates - apt: name: curl - apt: name: software-properties-common - shell: "apt list --installed |grep docker-ce" register: docker_ce_installed ignore_errors: True - when: docker_ce_installed|failed block: - shell: apt-key list Docker register: apt_key_exists - when: not apt_key_exists.stdout shell: curl -fsSL https://download.docker.com/linux/ubuntu/gpg |apt-key add - - shell: grep download.docker.com /etc/apt/sources.list register: apt_source_docker_exists ignore_errors: True - when: apt_source_docker_exists|failed shell: add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" - apt: update_cache: yes - apt: name: docker-ce

MySQL
2018-02-26 13:14 (8 years ago)

Ansible の mysql_user モジュールで、root ユーザーを操作していたら、他のユーザーに権限付与ができなくなっていた。

2018-02-26 06:59 (8 years ago)

$ diskutil list USBメモリを挿す

Python
2018-02-08 03:10 (8 years ago)

ソースからビルドするのが簡単

Django
2018-02-05 08:02 (8 years ago)

Django で、モデルの Meta: managed = False にすると、他の App からのユニットテストの時、create() などしようとすると、ProgrammingError が出ることがあります。その対応メモ。

2018-01-31 09:27 (8 years ago)

twine を使う。

mac
2018-01-18 10:40 (8 years ago)

原因は不明だが、mac に HDMI ケーブルでディスプレイを刺すと、フリーズすることがある。

Django
2018-01-11 05:48 (8 years ago)

Python2.7 + Django 1.6 のプロジェクトを、Python3.5 + Django2.0 にしてマイグレーションファイルを作り直し、./manage.py migrate したら

2017-12-21 09:39 (8 years ago)

$client = new Zend_Http_Client($url);$response = $client->request('GET'); みたいな感じでしてたんですが、OSの問題なのか、TLS1.2で接続できてませんでした。

2017-12-19 13:10 (8 years ago)

Django 1.9 までは、SimpleTestCase に urls 属性を書いていたようですが、コードを読むと

2017-10-19 08:45 (8 years ago)

pip が古いバージョンで、 pip install -U pip すると、pipが壊れる。

AWS
2017-09-26 02:28 (8 years ago)

AWS EBSページ → EBSを右クリック → ボリュームの変更

HTMLJavascript
2017-09-25 09:42 (8 years ago)

Django-ACE で ACE を使ってて、Ctrl + S ( Command + S )で保存のショートカットキーを使いたかった。

DjangoPython
2017-09-01 02:10 (8 years ago)

いつも焦るので書いておく

nginx
2017-08-14 00:55 (8 years ago)

Django なんかでよく使うやつ。

BootstrapJavascript
2017-08-01 10:40 (8 years ago)

Bootbox を使用時、ajax で取得した内容をダイアログ内に表示するコード例です。