by shigemk2

当面は技術的なことしか書かない

2018-01-01から1日間の記事一覧

mapred.reduce.tasks

mapred.map.tasks 各スレーブノードにおいて同時に並列実行可能なタスク数 任意のジョブ実行時において、クラスタ全体で起動されるmapタスク数 https://open-groove.net/hadoop/mapred-map-tasks/ http://mail-archives.apache.org/mod_mbox/hadoop-common-u…

memo state=08S01 code=3

memo state=08S01 code=3 Hiveでこのエラーが出たときはJVMのヒープサイズを上げろ、と書いてあるが、ヒープサイズを上げてもエラーはまだ続いているとあるので、なんか違う気がする

curious

curious 好奇心の強い

frugality

frugality 倹約

evaluate variable in alist

evaluate variable in alist alistの中で変数を展開したい!でもこうなっちゃう! (setq data "テストです") "テストです" (setq list '(("a" . data))) (("a" . data)) -- (("a" . "テストです")) にしたい バッククオートとカンマの合わせ技でなんとかする…

manual request.el post

manual request.el post マルチバイト文字列データのJSON POST (request-deftest request-post-multibytes () (request-testing-with-response-slots (request-testing-sync "report/some-path" :type "POST" :data '(("鍵" . "値")) :parser (lambda () (le…

with-temp-file

with-temp-file 一時的なバッファをカレントバッファとして フォームbodyを評価する。 そして最後にバッファの内容をファイルfileに書き出す サンプル (setq bufpar "test") (with-temp-file "test.ast" (insert (format "%s" bufpar)))

memo string-to-multibyte

memo string-to-multibyte このあたりにunicodeを文字列に変換する処理はなかった string-to-multibyte string-to-unibyte https://www.gnu.org/software/emacs/manual/html_node/elisp/Converting-Representations.html

memo prin1 princ print

memo prin1 princ print print関数が複数ある ;; (prin1 文字列) -- error (prin1 "文字列") "文字列""文字列" (prin1 '"文字列") "文字列""文字列" (princ "文字列") 文字列"文字列" (princ '"文字列") 文字列"文字列" (print '文字列) 文字列 文字列

keymap

keymap キーを再定義するためにキーマップを変更。 http://flex.phys.tohoku.ac.jp/texi/eljman/eljman_130.html keymapp: オブジェクトがkeymapかどうか make-sparse-keymap: 新たに空の疎なキーマップを作成しそれを返す Alist of keymaps to use for minor…

split-spring

split-spring 文字列をリストに分割する。デフォルトの区切り文字は空白。 (setq list (split-string "a b c")) ("a" "b" "c") (setq list (split-string "a b c" " ")) ("a" "b" "c") (setq list (split-string "a,b,c" ",")) ("a" "b" "c") https://www.em…