2017-07-01から1ヶ月間の記事一覧
AtomをCaskで管理する方法。 ## Homebrewをinstall $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ## HomebrewCaskをセットアップ $ brew tap caskroom/cask ## Atomをインストール $ brew cask i…
my.cnfを何個か持てばその分SQLを違うソケットにたてられる。 MySQL :: MySQL 5.6 リファレンスマニュアル :: 5.3.3 Unix 上での複数の MySQL インスタンスの実行 tweeeety.hateblo.jp
How to write flexible INSERT and UPDATE statements in MySQL · Baron Schwartz's Blog
tarの -vはverboseの略で、展開したファイル一覧を表示したりする。 qiita.com qiita.com
MeCabがインストールするときにrpmを使った。 よくわかんない。 $ tar jxvf juman-7.01.tar.bz2 $ cd juman-7.01/ $ ./configure --prefix=/usr/local $ make # make install nzigen.com hayashikun.hatenablog.com blog.inouetakuya.info qiita.com qiita.c…
Solr4のcoreの削除を行う。 curl 'http://localhost:8983/solr/admin/cores?action=UNLOAD&deleteIndex=true&core=[core名]' CoreAdmin - Solr Wiki
Solrの使い方で、SQLみたいにcoreをcoreにjonできるっぽい。 あとで見てみる。 Other Parsers - Apache Solr Reference Guide - Apache Software Foundation
課題 load dataは、STDINを入力にできるから、一時ファイル書き出しを省略して、subprocessで起動したload dataプロセスのSTDINにレコードを流し込んでinsert 上の、load dataのパターンそれぞれで、1万レコード単位で、PKでソートしつつインサートPK 解答 c…
gitサーバに新しくプロジェクトを追加するのはこうするってのを知った。 ## gitolite-adminをpullする。 $ git clone ssh://git@[hostname]/gitolite-admin ## conf/gitolite.confを編集する $ vim conf/gitolite.conf repo gitolite-admin RW+ = username r…
git pushやgit pullをtrackingする方法。 $ git pull There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> If you wish to set tracking information </branch></remote>…
手動だとこんな感じ $ curl http://localhost:8983/solr/[core名]/update -H "Content-Type: text/xml" --data-binary @./xxxxx.xml <response> <lst name="responseHeader"><int name="status">0</int><int name="QTime">10264</int></lst> </response> $ curl http://localhost:8983/solr/[…
mysqlが立ち上がらないエラーが出た。 #service mysql start Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. #systemctl status mysql.servic…
Pythonの四捨五入は思った挙動をしないことがある。多分、丸め込みが原因。 In [1]: round(2.5, 0) Out[1]: 2.0 In [2]: round(2.0, 0) Out[2]: 2.0 In [3]: round(3.5, 0) Out[3]: 4.0 四捨五入はDecimalを使用したほうがいい。 from decimal import Decima…
HttpOnlyがtrueの場合、そのcookieはクライアントサイドでjavascriptによる取得ができない。 行動履歴ログをタグ埋め込みで取得する際は要注意。 qiita.com