hasen's tech life

Twitter: @hasen

Entries from 2016-01-01 to 1 year

PHPの一時ファイル関係の関数をメモ.

PHP

# PHPの一時ファイル関係の関数をメモ. # sys_get_temp_dir — 一時ファイル用に使用されるディレクトリのパスを返す # 参考: http://php.net/manual/ja/function.sys-get-temp-dir.php # tempnam — 一意なファイル名を生成する # 参考: http://php.net/manu…

Bookmark (2015-04-16)

・【スライドにして106枚】PHP7.0 全46RFCの概要紹介 https://www.infiniteloop.co.jp/blog/2016/04/php7-0-all-rfc/ ・Swiftでボットを作るためのフレームワークをオープンソース化しました http://www.zero4racer.com/blog/1295

Bookmark (2016-04-14)

・トレタのインフラ運用、支えている道具(Packer, Terraform, Serverspec, Ansible, Roadworker, Circle CI)、考え方 http://tech.toreta.in/entry/2016/04/14/143248 ・Leaving Beta, New Sponsors https://letsencrypt.org//2016/04/12/leaving-beta-new-s…

Bookmark (2016-04-14)

・System Properties Comparison Amazon DynamoDB vs. Redis http://db-engines.com/en/system/Amazon+DynamoDB%3BRedis ・自分が依存しまくってるnpmパッケージを表示するツールつくった http://amagitakayosi.hatenablog.com/entry/2016/04/14/113308

Bookmark (2016-04-12)

・Elasticsearch Rails の調査レポート ~実運用へ向けて~ http://goo.gl/m0kjxr ・あのライブラリは何故誕生したの?のまとめ http://qiita.com/kikurage/items/bd198c4ce22b48ae56c1 ・Brian Kernighanがプログラミング言語Goの組版に使ったのはなんとtroff …

MySQLでSQLの実行をする時に'comment'は'after'より先に書く必要があった.

# MySQLでSQLの実行をする時に'comment'は'after'より先に書く必要があった. # error > alter table TABLE_NAME add column COLUMN_NAME TYPE_NAME after COLUMN_NAME comment 'COMMENT'; # success > alter table TABLE_NAME add column COLUMN_NAME TYPE_…

Bookmark (2016-04-10)

・「パナマ文書」解析の技術的側面 https://goo.gl/7DAN7d ・10年のツケを支払ったフロント界隈におけるJavaScript開発環境(2016年4月現在) http://d.hatena.ne.jp/tomoya/touch/20160403/1459665374 ・モジラの「超高速」な新ブラウザーが海外で話題―6月…

VimでHTMLファイルを整形する

Vim

# VimでHTMLファイルを整形するときは,以下のコマンドを使っています. # コマンドラインモードで :set filetype=html gg=G

Bookmark (2016-04-09)

・大量メッセージが来ても安心なLINE BOTサーバのアーキテクチャ http://qiita.com/yoichiro@github/items/6d4c7309210af20a5c8f ・他人の書いたコードに挑もう – Part 1 http://postd.cc/divingintootherpeoplescode-1/

Bookmark (2016-04-08)

・【2016年度版】このPerlハマりどころがすごい!100連発 http://developer.hatenastaff.com/entry/2016/04/01/104031 ・新しいTLSの暗号方式ChaCha20-Poly1305 http://d.hatena.ne.jp/jovi0608/20160404/1459748671 ・僕が予期的UXにフォーカスする理由 htt…

Bookmark (2016-04-06)

・なにこれ…やばい… Windows NT 5.xの 隠し機能を発見した http://blog.livedoor.jp/blackwingcat/archives/1925950.html ・「消滅都市」リードアーティストによるキャラクターデザイン編【事例:「ジョニーウォーカー」と「世界を修正する者 アキラ」の場合…

Bookmark (2016-04-05)

・Introducing DGit http://githubengineering.com/introducing-dgit/ ・4コマ漫画の画像管理✨ http://mzp.hatenablog.com/entry/2016/04/04/230054 ・サーバの見積もり方法 http://technica-blog.jp/entry/2016/04/05/102622

failed to execute cmd: " dot -Tpng". stderr: `sh: dot: command not found 'というエラーが出たので対応した.

PHP

# XHProfをチャート表示しようとすると, # failed to execute cmd: " dot -Tpng". stderr: `sh: dot: command not found 'というエラーが出たので対応した. $ sudo yum install -y graphviz

Bookmark (2016-04-03)

・BASH Running in Ubuntu on Windowsについて http://opcdiary.net/?p=31483 ・Linux at 25: Q&A With Linus Torvalds http://spectrum.ieee.org/computing/software/linux-at-25-qa-with-linus-torvalds

Bookmark (2016-04-04)

・[速報]Elastic Stackの新バージョンがリリースされました(Elasticsearch2.3、Logstash2.3、Kibana4.5、Beats1.2) http://dev.classmethod.jp/server-side/elasticsearch/elastic-stack-release-2-3-0/ ・【新機能】Kibana PluginsのGraphがリリースされ…

本番環境でAjaxがうごかなかったので修正.

# 本番環境でAjaxがうごかなかったので修正. # 開発環境で動いていたAjaxが本番環境で動かなかったので調査した. # 原因はAjaxで指定したURLの末尾にトレイリングスラッシュ('/')がついていたため. # そもそもはサーバの設定の差異が原因ですが. -- url:…

Bookmark (2016-04-02)

・Optcarrot: Ruby で書かれたファミコンエミュレータ http://d.hatena.ne.jp/ku-ma-me/20160401/p1 ・「Windows 10」で動作するUbuntuのBashシェル--その実現方法 http://japan.cnet.com/news/service/35080406/ ・Backlog辞めたいけど辞められないから欲し…

Bookmark (2016-03-29)

・いまどきのJavaScript事情とAngular2のはなし http://goo.gl/KL0kEK ・Git 2.8 has been released https://github.com/blog/2131-git-2-8-has-been-released ・フロントエンド速度改善でやったこと(Expiresヘッダ、faviconのgzip圧縮、JSの読み込み遅延化)…

Bookmark (2016-03-28)

・Go 言語で学ぶ『暗号技術入門』Part 1 -DES, Triple DES- http://skatsuta.github.io/2016/01/02/hyuki-crypt-book-go-1/ ・Goのプログラミングパターン http://www.infoq.com/jp/news/2016/03/go-patterns ・systemd時代に困らないためのlimits設定 http:…

Bookmark (2016-03-26)

・Scalaで学ぶヘキサゴナルアーキテクチャ実践入門 https://speakerdeck.com/kimutyam/scaladexue-buhekisagonaruakitekutiyashi-jian-ru-men ・なぜタイポグラフィにおいてVertical Rhythm(バーティカルリズム)は重要な手法なのか? http://postd.cc/why-…

Bookmark (2016-03-25)

・Swift版「誰のためのデザイン?」 https://realm.io/jp/news/tryswift-rachel-bobbins-design-everyday-swift/ ・mhaとconsulでDBサーバーの冗長化をしています http://tech.feedforce.jp/mha-and-consul.html ・Makefileを自己文書化する http://postd.cc…

Bookmark (2016-03-24)

・AWSを10年運用してわかったことをAmazonの最高技術責任者が語る http://gigazine.net/news/20160324-aws-lesson/ ・できないことはPortで外注 http://www.slideshare.net/Joe_noh/port-59804252 ・自作でイベント駆動型サーバ作るのツライ問題とlua-nginx-…

Bookmark (2016-03-23)

・revital.vim で vital.vim を爆速にしてお前らの Vim Plugin を速くする http://haya14busa.com/revital-vim-makes-vital-vim-a-lot-faster/ ・Linux デスクトップ環境 2016 http://eagletmt.hateblo.jp/entry/2016/03/23/020117 ・ランダムフォレストを使…

Bookmark (2016-03-22)

・MySQLで全文検索をするために必要なこと http://quotto.hatenablog.com/entry/2016/03/21/221821 ・WordPressで3000万PV/月のサイトをさくらのクラウドに構築した話 http://qiita.com/yousan/items/bf0bb0a2758f297585cc ・How To Install Graylog 1.x on …

Bookmark (2016-03-21)

・DHHはどのようにRailsのコントローラを書くのか http://postd.cc/how-dhh-organizes-his-rails-controllers/ ・sensuのちょっと進んだ使い方 http://www.slideshare.net/masakiogawa923/20150428-sensu-grafana

Bookmark (2016-03-18)

・How To Use Ansible to Set Up a Production Elasticsearch Cluster https://www.digitalocean.com/community/tutorials/how-to-use-ansible-to-set-up-a-productio n-elasticsearch-cluster ・Microservices Casual Talks で話してきました http://plex.h…

Bookmark (2016-03-17)

・Python3系、MeCabでマルコフ連鎖を用いて文章を自動作成 http://naoyashiga.hatenablog.com/entry/2016/03/16/232825 ・Elasticsearchと機械学習を実際に連携させる http://www.slidesha re.net/nobu_k/elasticsearch-59627321 ・Fluentd+ElasticSearch+Ki…

Bookmark (2016-03-15)

・Reactの新しいバージョニングスキームについて http://postd.cc/new-versioning-scheme/ ・Amazon ECSでHAProxyのDockerコンテナを各Taskに配置するのがなかなか良い件 http://stormcat.hatenablog.com/entry/docker-haproxy-ecs ・クックパッドにおける最…

Bookmark (2016-03-15)

・EC2拡張ネットワーキングの性能と設定手順 http://blog.father.gedow.net/2016/03/15/enhanced-networking/ ・Stream-processing with Mantis http://techblog.netflix.com/2016/03/stream-processing-with-mantis.html ・5分で作るPHPフレームワーク(技…

Bookmark (2016-03-14)

・メルカリにおける、継続的なアプリケーション改善を支える技術 https://speakerdeck.com/kazeburo/continuous-improvement-applications-and-mercari-sre-number-retty-tech-cafe ・JMeterのMaster-Slave構成で目標スループットから負荷設定値を決める htt…