国境大好き芸人

旅行と語学ととプログラミング。陸路で国境を越えるのが生きがいです。

2018-05-01から1ヶ月間の記事一覧

ウルムチから夜行列車でカシュガルへ(チケットの購入方法など注意点あり)

移転しました。 // "); // リダイレクト処理 setTimeout("redirect()", 0001); // 5秒 function redirect(){ location.href = url; } // 移行を伝える「canonical」の書き換え var link = document.getElementsByTagName("link")[0]; link.href = url; // ]]>

psycopg2でPythonからPostgreSQLに接続する

Anaconda Prompotでpsycopg2をインストールする方法です。 ついでにSQLAlchemyも入れておく。 conda install --yes --quiet 'psycopg2=2.6*' conda install --yes --quiet -c sodre 'ipython-sql=0.3*'これでJupyter NotebookからPostgreSQLをいじれるように…