Archive
記事一覧
ガジェット、テック、机セットアップ、雑談、ソフトウェアエンジニアリング。
-
PREDUCTS デスク レビュー:ウォールナット天板 + FlexiSpot E7脚で組んだ140cm
PREDUCTSのウォールナット天板とFlexiSpot E7昇降脚で140cmデスクを組みました。天板の質感、昇降の安定感、組み立てのリアルを書いています。
-
リモートワークのための投資が一段落したのでまとめる
コロナ渦で緊急事態宣言が出されてから自宅でのリモートワークとなり作業環境は激変。リモートワーク主体でやっていくことになり、自宅の一室に仕事に適した環境を作ろうと決めました。
-
A sample for AWS Lambda with container image
AWS Lambda supports container image AWS announced Lambda supports container iamge at re:Invent 2020. I tried it with AWS CDK.
-
Image sizes created by buildpacks pack suggests
Buildpacks and pack Buildpacks is a CNCF project in image build category. Without writing Dockerfile, you can make iamge if the given builder...
-
microk8s@macOSでhello worldしようとおもったらハマった
TL;DR: microk8sを使ってk8sの勉強がてらつらつら書いていくその第一回のつもりだったんだけど、microk8sがmacOS Catalinaではまだ全部の機能がちゃんと動かなかったというオチ。 >...
-
Migrate to Next.js from Hugo
I've used Hugo to generate my site. Actually Next.js is now very popular as JAMStack and I'm interested in React. So to learn Next.js I tried to...
-
Check if ACM Certificate is in-use with one-liner
You can use the one-liner though you need :)
-
Command Line Interface for AWS Athena
I made a CLI tool for AWS Athena so that we can casually execute our queries. It's very easy to check results.
-
clean-log-stream
Just memo, .
-
CLI in Swift to list reminders
I usually use macOS official reminder application for simple TODOs. Sometimes I'd like to list them in JSON with CLI. I tried to write it as my first...
-
actがtask runnerとしていい感じ
GitHub Actions、Sign upしましたか? 私は開通してちょっと試して、ああまだTravisCIやCircleCIのようなCIサービスの代わりにはならないな、 とちょっと残念に思いしばらく触ってませんでした。...
-
時刻表メモサービスを作った
普段、電車とバスで通勤してるのだが、電車とバスの時間を覚えられない。 特に帰りはいつも決まった時間にオフィスを出るわけではないので、もう数分早くオフィスを出たら急行に乗れたのに、というようなことも多い。...
-
Kafka CLI
最近仕事でkafkaに接続してoffset Nの値を調べるとか、それを複数の環境でやることが多かった。 毎回証明書とかtopic名とかを調べて実行するのがめんどくさくなったので、一つの設定ファイルにprofileとして複数環境を設定しておけるコマンドをgolangで書いた。...
-
Made a storage driver for botkit with consul
I created a storage driver written in TypeScript for botkit as consul backend. I could publish the module as onto npm. It's easy to use it like this.
-
hclutil, small utilitiy
I wrote a small tool for HCL, . It's now only supporting conversion from HCL to YAML/JSON.
-
How to use awscli on CentOS6"
I always forget how to use awscli on CentOS6 which pip doesn't support to install awscli with python2.6. I forgot how many times I installed... I...
-
Sample of ACME autocert in golang
It's amazaingly easy to use Let's Encrypt in golang if we use a package, https://godoc.org/golang.org/x/crypto/acme/autocert. I made a sample running...
-
Pandas Range
I sometimes use pandas to analyze access logs and utilize binning feature, but usually I forget how to make range objects with methods. So I memorize...
-
Install jq with yum by ansible on CentOS7
I usually forget way to install jq by ansible. I memorize it.
-
List security groups associated with EC2 instances
I'm into writing one-liners using , and commands in order to briefly check some information without logging in management console. The following...
-
Chrome headless mode sample
My chrome was updated to v59 yesterday and it supports long-awaited headless mode. At once I tried it seeing Getting Started. I came to know there...
-
List subnets with VPC names
Just one-liner to print VPC and subnet IDs with a tag, , of VPC. Easy to see them without logging into management console of AWS.
-
Check if elastic IP is associated
The sub command doesn't show whether it has Elastic IPs or not. Another sub command shows InstanceId and PublicIp. We can join them with command...
-
docker: Error response from daemon: Mounts denied: references... -> File Sharing
(no description)
-
Vagrantfile for digdag servers running with PostgreSQL
I made a Vagranfile in order to launch digdag servers with postgresql backend. Digdag is a workflow manager being developed by Treasure Data. You can...
-
Query Elasticsearch in golang
Writing a command line tool to query Elasticsearch and show result in termial.
-
Grafana panel JSON generator in golang
Grafana has HTTP API but it seems no APIs for panel operations at a glance. My team has several AWS accounts and I'd like to create dashboards with...
-
How to deploy angular app on GitHub pages
GitHub has a service to easily publish your websites, GitHub Pages. It's very useful to publish sites with simple static files. I've published a...
-
Detection of hover more than specified seconds with RxJS
Using RxJS, this entry intends similarly with a jQuery plugin, hoverIntent, aiming to detect hover event but doesn't immediately fire the event. It...
-
Vagrantfile to launch prometheus and grafana with nginx and fluentd
Prometheus is easy to deploy because of single binary written in golang. I created a Vagrantfile so that we can more easily try prometheus running...
-
あるEC2インスタンスがぶら下がってるELBをリストする
あるEC2インスタンスがぶら下がってるELBをリストする
-
AWS CLI filters by tags
AWS CLI使ってタグでEC2フィルタする方法、 何回書いても忘れるのでエントリーとして書く。 Valuesはカンマで区切って値を複数書ける。 2017-01-13追記 こんなの自分で書いてたのを見つけた。jq使うけどこっちのほうが出力が見やすいかな。
-
CloudWatchのグラフをSlackへuploadするnode moduleを書いた
先日うちの会社も某チャットサービスからSlackへ移行したんだけど、なんでか知らないけどSlackってHubotとかでいろいろやりたくなる魅力があるね。 で、以前からやりたかったのがCloudWatchのグラフのシェア。...
-
tmuxのwindow nameが変わらないようにする設定
CentOS-7にsshでログインするとtmuxのwindow nameが勝手に変わってしまうのに困っていた。 原因は分からないんだけど、とりあえず回避できたのでメモ。 ここで見つけた。 に書いてしたら勝手にwindow nameが変わらないようになった。...
-
creating ansible roles
基本的に自分で使うようのroleだけど、consulとかconsul-templateのroleは CentOS-7用にUnitファイルも書いてあるのでそこそこ役に立つのでは。
-
puppetlabs/centos-7.0-64-nocmでansible pingが失敗する
Vagrant 1.7.xからが要らなくなって、Atlasに登録されてるboxが使えるようになった。 今まで使ってたでansibleの動作確認しようとしたらちょっとハマった。 が通らない。はで出力した。 こんなのを使ってたんだけど、をつけると次のようなエラーが出る。...
-
gottyのansible role書いた
gotty + tmux = 最強のWeb開発環境で gottyの存在をしって、開発用のサーバに入ってたら便利かなと思って に入れるだけのansible roleをさくっと書いて、ansible galaxyに登録してみた。 2015-09-10時点でgotty用roleはひとつだけ。...
-
MiddlemanからHugoへ移行
から に移行しました。 久しぶりにブログを書こうと思い、どうせならmiddlemanのバージョンを上げようと思い bundle installしてみたらなんかのコンパイルに失敗してビルドできない。 なんかめんどくさくなったのでバイナリいっこで動く hugoに移行することにした。...
-
モダンなJavaScriptライブラリ開発、テスト環境への移行 -- Karma + webapck + jasmine
リリース当初には見つけられなかったツールを使って、自分のJavaScriptライブラリの開発環境を改善できたので久しぶりにエントリー書いた。 最近なんかGithubでstarをつけてくれる人が増えてきて100を超えたのと、 俺のJSライブラリの世界観(2014末版)に触発され、...
-
あるUILabelのサブクラスをSwiftで書きなおした
iPhone6の発表イベントが9/9に決まって、iOS8 + Xcode6も同発表と共に解禁になるはず。 Swiftで書いてもリリースできなかったんでイマイチやる気起きなかったけど、 ようやくぼちぼちSwiftやる気が出てきた。ということで、...
-
githubのwebhook用サーバをつくった
githubのWebhook、皆さん使ってますか。Webhookを受け取るサーバって何使ってますか、sinatraですか?このエントリは社内でserfのデモ用に書いた、github webhook用のHTTPサーバhoko in golangについてのエントリです。 TL;DR *...
-
envconsulをDocker上でビルドする
envconsulはまだバイナリでダウンロードすることができないようで、自分でビルドする必要がある。go...
-
Build envconsul on Docker container
envconsul seems we cannot download its built binary file and need to build by ourselves. Ideally it's hopeful to use but it needs to golang...
-
tmuxのpaneのレイアウトを戻す
tmuxを使い始めた。 まだショートカットに慣れていないので目当ての機能を実行するために適当にショートカットを実行していると、 たまに()でアクティブpaneをwindowにしてしまうことある。 で、よく元に戻したいことが多いのでやり方を調べたらコマンドが見つかったのでメモ。 join-pane...
-
Publish s3 object with awscli
awscliメモ。s3のobjectを公開するやつ。の引数のフォーマットがよくわからんかったけど、 全公開のEveryoneは下記に載っていたのでそのまま使った。 Bucket, Object ACLの設定はこの辺にあったんだけど、AllUsersとかないしな。どこにあるんだろう。
-
focuslightのdockerイメージを作った
Focuslight のdockerイメージ作った。 dockerの環境あればFocuslightがすぐに試せるMakefileを用意しました。イメージのダウンロードにちょっと時間かかるけど。...
-
awscliでAWS Static Website Hostingの404ページを設定する
AWS S3のStatic Website Hostingを使うと静的サイトを簡単に公開できる。 もちろんこのサイトも使ってる(ジェネレータはmiddleman) Bucketのpropertiesで、Static Website Hosting -> Enable website...
-
Vagrant-1.6.1 docker provider on MaxOSXを試したときのトラブルシューティング
時間ができたのでVagrant1.6のDocker Provider - SOTAを参考にして、 自分でもちょっと試してみたところ、自分の環境のせいですんなり行かなかったのでメモ。 brew...
-
Toggle UIControl status with ReacativeCocoa
We frequently need a case that enables button denpends on a condition like text view is filled with more than one character. Then there is a way to...
-
UIControlのステータスのトグル処理にReacativeCocoaを使う
1文字以上UITextViewに入っているときだけOKボタンを有効にする、なんてケースはよくある。 Cocoa Bindingsが使えればいいのだが、 あいにくiOSのCocoa Touchではまだサポートされていない。 ReactiveCocoaを使うとBlocksを使って楽に書ける。...
-
Docker プライベートのイメージレジストリにタグ付きでpushする方法
Dockerはイメージを登録することができるオフィシャルの場所 DOCKER indexを提供している。 このレジストリのイメージもDOCKER indexにあって、プライベートなレジストリをすぐに構築することができる。 試すだけならこんな感じでできるし、ストレージをS3とかにもできる(参考)。...
-
Expose Docker Remote API on CentOS
We came to install Docker on CentOS easily. Here is an instruction for the way to expose Docker remote API port on CentOS. $ cat...
-
aws-cli ec2 describe-instances --filterオプションでタグの値を指定する
aws ec2 describe-instancesでは オプションでいろいろ条件を指定することができますが、条件の指定の仕方にちょっと癖があるのでメモ。 使用したバージョンはaws-cli/1.2.3 Python/2.7.5 Darwin/13.0.0 Tagの値でフィルタ...
-
docker run failed with accessing a corrupted share library
Encountered a following error. Why does this happen? I tried on ami-9ffa709e in ap-northeast-1a. The instance type is m1.small. Actually, docker...
-
Filtering instance IDs of aws ec2 with jq
How to list all stopped (or running) instances with aws-cli and filter only instance id using jq. jq is really very useful.
-
One liner to install docker into CentOS-6.x
新年初エントリーはワンライナー。 curl https://gist.github.com/tmtk75/8238544/raw/f99a06905e459b0745694db484066dbf01d46bf8/centos-docker | bash...
-
pip execution fails and the recovery
I got following error from pip. There is a way to fix in a thread of StackOverflow. I've remembered I has installed it with the installer, , but it...
-
SSL_connect certificate verify failed
I got a new MacBook Air and was setting up my development environment. Trying to install bundler, I ran into an SSL error. I somehow fixed that issue...
-
Docker + Jenkins + serverspecでpuppetのmanifestをCIする
.post .content h1 { margin-top: 3em } .post .content h2 { margin-top: 2.5em } .post .content h3 { margin-top: 2em } .post .content p { margin-top:...
-
JUMLY can change arrow style
A JavaScript library, JUMLY, is to render UML sequence diagrams. It can change styles whatever you want even arrows. Here is a simple example. On the...
-
How to tag and remove tag on docker
Let's say you already have some images. $ docker images REPOSITORY TAG ID CREATED SIZE user/foobar 1dee6a0ffae858a796e53aaf88a676f9ccb33165...
-
Go言語 os/exec sed実行
標準入力に書き込む場合。を使う。
-
Go言語 os/exec ls実行
PATHをLookupして、コマンド実行して、Outputで結果を出力。 簡単。 `go package main import ( "fmt" "os/exec" ) func main() { path, err := exec.LookPath("ls") if err != nil {...
-
Go言語 環境変数 展開
環境変数の取得と、値の展開。
-
Go言語 コマンドラインオプション解析(FlagSet)
flag packageを使います。 型のバリエーションなどはGo言語 コマンドラインオプション解析を見てください。 ひとつハマったことがあって、FlatSet.Parseにはを渡す。 をそのまま渡すとオプションの認識をしてくれないみたい。
-
Go言語 コマンドラインオプション解析
flag packageを使う。 オプション定義には次の2つの形式が型それぞれにある。 - ポインタを返す形式 ex) flag.String, flag.Float64 - ポインタを指定する形式 ex) flag.BoolVar, flag.IntVar Value...
-
Go言語 データベース MySQL EXEC
https://github.com/go-sql-driver/mysqlを使っています。 $ go get github.com/go-sql-driver/mysql で取得してください。 はで影響を受けたレコードの数。 はなんだけど何が返ってくるのかな。 primary...
-
Go言語 データベース MySQL SELECT
https://github.com/go-sql-driver/mysqlを使っています。 $ go get github.com/go-sql-driver/mysql で取得してください。...
-
Go言語 Time/Date
Goでの日付、時間の取り扱いについて。 - 現在時刻の取得 - Unixタイム(へ|からの)変換 - 日付文字列のパース - Time値のフォーマット - 数時間前、などの計算 これくらいあれば当面困らないっしょ。 time.Parse ----------...
-
Go言語 ファイル読み込み
(no description)
-
Go言語 正規表現
正規表現はregexpパッケージ。 captureに相当するのはFindStringSubmatchなんですね。 正規表現パターンをするのは、これまたPythonの影響が強いですね。
-
Go言語 コマンドライン引数
パッケージ経由で取得するのね。Pythonみたい。
-
RequestTimeTooSkewedが出たら
aws-sdkを使っててS3にアクセスしようとしたらこんなエラーに出くわした。 403ってアクセス権絡みだとばっかり思ってたからaccess keyや secret keyを見なおしてたりしててエラーメッセージ読んでなかった。...
-
How to use Font Awesome on iOS
Font Awesome is a famouse iconic font, . In a case, iconic font is useful because we can use many icons wihtout a lot of small files. Font Awesome is...
-
Font AwesomeをiOSで使う
Font Awesomeはアイコンフォントで有名なものの一つ。 アイコンフォントは手っ取り早くアイコンを導入したりする場合にはとても便利。 ウェブサイト上で使うにはCSSをひとつ読むだけで簡単に使えるけど、じゃあiOSで使うにはどうするか?...
-
JUMLY v0.1.5-1 release
Sorry! This feature almost hasn't been working due to heroku's memory quota. I released JUMLY v0.1.5-1. This version doesn't have functional...
-
warning: possible EventEmitter memory leak detected
You may encounter the following warning when using EventEmitter. warning: possible EventEmitter memory leak detected. 11 listeners added. Use...
-
How to know whether it's loaded as module or top-level on Node.js
As you know, there is a famous idiom on Python, which is . The inside of if is only executed when it is directly launched by python command. It's the...
-
Node.jsでrequireされたかどうかを調べるには
Pythonの有名なイディオム、、 moduleとしてimportされたときはifの中を実行しないためのもの。 CLIとしてもmoduleとしても使えるようにするための常套手段。 Node.jsで同じことをやるにはどうするか。 実行したら、それぞれ次のように出力されるはず。 $ node...
-
Installed a Package Manager for Xcode
A light memo for myself. Installed , which is a package manager for Xcode.
-
Group values of regular expression in CoffeeScript
Easy to refer group values of regular expression in CoffeeScript. Let's say you parse URL, then you can write like this. Pretty useful.
-
Replaced canvas with svg for JUMLY
JUMLY has used <canvas> tag in order to render arrows of message. From v0.1.4, JUMLY uses <svg> tag for those. I've not understood svg...
-
List of property for WebPage of PhantomJS
I'm personally checking PhantomJS. At first about WebPage class. It has some interesting properties and functions. I listed the properties with this...
-
Rubberband plugin for d3
Wrote a d3 plugin which gives your linecharts dashed rubberband to guide. This actual demo is here, . Here is a screenshot. It's based on an example...
-
data- attribute and jQuery.data
I wrote down this memo for attribute and jQuery.data because I got stuck when using them on implemetation of JUMLY.scan. Here is a gist to check...
-
data- 属性とjQuery.data
JUMLY.scanの実装で属性jQuery.dataを使ってちょっとハマったので書き残す。 動作検証用に書いたものをGistに貼ったのでどうぞ。 data-*名と.data()のキー名の関係 - data-fooは、.data("foo")で取得 -...
-
JUMLY-0.1.3b release
Released JUMLY-0.1.3b. It's tested on jQuery-2.0.0. At v0.1.3b, JUMLY finally supports a public API in order to evaluate DOM nodes. Using this API,...
-
JUMLY-0.1.3bリリース
JUMLY-0.1.3bをリリースしました。 jQuery-2.0.0でテスト済みです。 v0.1.3bでJUMLYはようやくpublic APIをひとつサポートします。 今まではJUMLYコードの評価はイベント時に一度きりでしたが、 任意のタイミングで評価処理を呼び出すことができます。...
-
My stuck point for fluent-plugin-s3 configuration
Why not uploaded? I was really stuck in configuration of fluent-plugin-s3. (Actually, the plugin is not responsible for this. I'll write later) This...
-
JUMLY is tested working on jQuery-2.0.0
Hi, jQuery-2.0.0 was released. It's a good new for jQuery guys. JUMLY, , is already tested on jQuery-2.0.0, too. And also I bumped up each version of...
-
Template Gallery for Google Drive
Where is templates? I've really wondered why google drive doesn't have template feature. There were no any links to template list in the page, and If...
-
Google Driveテンプレートギャラリー
テンプレート集ってないの? Google Driveってテンプレート集がないんだと思ってた。 リンクも見当たらないし、新規作成してもテンプレートを選ぶための項目とか出てこないし。 ずっと不思議に思ってた。 Google Driveでの設定の仕方...
-
TomcatのアクセスログをLTSVにする
LTSV + fluentdいいよ、という話 みなさんfluentd使ってますか。 もうfluentdとLTSVがないと生きていけない体になりました。 あ、LTSVは、"labeled Tab-separated Values", ですよ。 LTSVについては、ここが面白いですよ。...
-
LTSV style access log in tomcat
LTSV + fluentd is nice LTSV is "Labeled Tab-separated Values", http://ltsv.org/. A typical access log of Apache is like: 127.0.0.1 - frank...
-
iOSのUIWindow上でモーションイベントを受け取る
iOS勉強中です。 正直勉強二日目くらいで心が折れそうです。 モーションイベントを受け取るにはになる必要があるとかなんとか見かけたんだけど、あんまり関係なかった。 まだよくわかってないんだけど、このチェックが必要みたい。 をONにして、UIWindowのサブクラスをCustom...
-
import a git repository as subtree keeping history
To a git repository, we sometimes want to import another repository, keeping the history. Let's say there are two repositories like and . If you want...
-
JUMLY is being improved for robustness diagram
I'm improving JUMLY to enable rendering robustness diagram. The following is a prototyping for rendering and DSL. @actor "User" :-> @view "Browser"...
-
size of array ruby_check_sizeof_long is negative in case of installing mysql2 gem
When you install with gem, if you ran into a weird issue such as , it must be caused by the arch of mysql binary you installed. ERROR: Error...
-
grunt-contrib-jasmine-node
jasmine-node is a command to execute jasmine on node.js. I wrote a small plugin, which supports only option, for GRUNT. If you want to specify a...
-
grunt-contrib-jasmine-nodeを書きました
JavaScriptのBDD用ライブラリはjasmineが好きだ。 もともとRSpec使ってたから似たようなものを探したからなんだけど。 で、CLI用にjasmine-nodeもある。 [こんなふう][ex1]に書けて、terminalで実行できるので重宝している。 [ex1]:...
-
jekyll didn't start after removing MacPorts
I ran into a problem jekyll didn't start like this. Yes, actually I removed in order to move the package manager from MacPorts to [homebrew][brew]....
-
Installation of gems for td-agent
I needed a fluent-plugin for my plugin in order to run on td-agent. td-agent has complete runtime of Ruby, we should install gems to the GEM_HOME...
-
Use $log.info on debugging your plugin on td-agent
I forgot a way of "printf debug" on td-agent. I'll memorize here. We should use next. Then the message will be output to .
-
Created fluent-plugin-sqlite3 for my training
[fluentd][fd] is a cool product so I try it for my biz. [fd]: http://fluentd.org/ In the case I use it, I have to write some plugins of fluentd. For...
-
fluentdのsqlite3用プラグイン書いた
[fluentd][fd]って今更ながらいい製品だよね。完全に乗り遅れてた。不覚。 [fd]: http://fluentd.org/ で、仕事でも使ってみようと思ってるのだが、その場合やっぱりいくつか プラグインを書くことになるんだと思う。...
-
node.jsで書くコマンドラインツールのPython-likeイディオム
Pythonの有名なイディオム。 コマンドとして呼ばれたときだけ実行し、ライブラリとして読まれたときは実行しないようにするための一行。 node.jsで書くとこうなる。 hello.coffee はコマンドとしてもライブラリとしても使える。...
-
Python-like idiom for node.js command line
There is a major idiom in Python for CLI. This is in order to run the code in the if-clause only from executed on command line. I'll show same code...
-
Module version mismatch. Expected 10, got 1
I encounterd following error when I ran an app using sqlite3 on node.js of MacOSX. Module version mismatch. Expected 10, got 1 It's probably owing to...
-
An oneliner to format XML in pretty print with Ruby
ruby -e 'require "rexml/document";d=REXML::Document.new($stdin.read);d.write(s="",2);puts s'
-
An oneliner to format JSON in pretty-print with Ruby
I cannot rememer this short line. I'll note it. ruby -e "require 'json'; puts (JSON.pretty_generate JSON.parse(STDIN.read))"
-
Try to remove .npm if npm install fails
I encountered an error like following when I tried to solve dependency my module JUMLY. It's the time I cloned the repository and ran . npm WARN...
-
expectで公開鍵を登録する
minaでログファイルをtailするまでを書いていて 思ったが、やっぱり公開鍵をサーバへ登録するところが手作業では煩わしい。 最初のscp/sshでの接続ではどうしてもパスワードを入れなきゃいけない。 ということで、 expectを使って パスワードの入力を最低限抑えるようにしてみた。...
-
minaでログファイルをtailするまで
deploy用のツールのひとつとして[capistrano][capistrano]が有名。 [github:help][github-help]にも載ってて標準ツールと言ってもいい。 僕も使ってるし。 で、今日[mina][mina]というcapistranoの対抗馬があることを知った。...
-
AWS Hadoop Memory-Intensive supports only 8 kinds of instances
According to [instance-types.html][availabletypes], at Feb 12, 2013, we can use 18 instance types. On [AWS EMR][EMR], we can specify any types using...
-
githubのページをterminalから開くgit-hubサブコマンド
githubのUIはとても使いやすいと思う。 BTSなんかにピンポイントでコードのある行へのリンクを張ったりできて重宝している。 こんなふうに。 ただ、ファイルがソースツリーの深いところにあったりすると 何度もクリックして目的のファイルまでツリーを掘り進まないと行けないのが玉にキズ。...
-
git-hub subcommand to open github with browser from terminal
The UI of github is cool, referenceable and capable. We can tell a line of a source file as easy as poining it with an URL like this. That's very...
-
日本語ページ作った with Jekyll on gh-pages
10ヶ月くらい慣れない英語でブログを書いてきたのは、英語のライティングの練習と、 閲覧者数を考えた場合にやっぱり日本語よりは英語のほうが多いだろうなあ、ということから。 でもやっぱり日本語で書きたいときもあるので、日本語ページを作った。 って、それだけじゃただのアナウンスなので、どうやったか書く。...
-
InaccessibleQueuePath of kestrel
If you encounter an error like following when you run of kestrel, it's due to directory permission as the error message says....
-
How to build kestrel with sbt-0.12.2
[kestrel][github] is an one of MQ (Message Queue) implementaiton used in twitter. It's written in scala and [sbt][sbt] is used to build it. [github]:...
-
Mount a bucket of S3 with WingFS
If you are using MacOSX and frequently access to S3, I think you must want to mount it. [WingFS][WingFS] helps you to mount. [WingFS]:...
-
Not datomic but Leiningen for REPL
I described Datomic provides a better REPL which we can use command history and line-edit in. Actually, I found a new better one,...
-
Set up chef-server on EC2 with Ubuntu 12.04
This post says very useful instruction if you are a beginner for AWS EC2 or chef and you'd like to set up a chef-server on Amazon EC2. Because this...
-
Use a Datomic archive for clojure REPL
NOTE a new post is here, Not datomic but Leiningen for REPL Now clojure's latest stable version is [1.4.0], and [1.5.0-RC4][1.5.0] is as a beta....
-
RequestTimeTooSkewed
I ran into an above error, , when I tried to download an object from S3 using aws-sdk of ruby. [2013-01-29T14:34:35+09:00] FATAL:...
-
Could not open a connection to your authentication agent.
If you ran into a message "Could not open a connection to your authentication agent." when type ssh-add, it must be that you don't have settings for...
-
How to access values between JRuby and Java
This is a similar post of [the post for Java and Groovy][interopjavagroovy]. [interopjavagroovy]:...
-
interoperability between Java and Groovy
If you want to invoke a groovy script from Java, you can use [ScriptEngine][scriptengine]. It's easy to give an initial value as a local variable to...
-
intercalate is join in Haskell
Prelude>:m Data.List Prelude Data.List> putStrLn $ intercalate " " ["Hello", "World"] Hello World "join" is one of popular names of such function. In...
-
colon command
I knew colon command from a bash script which one of my colleagues wrote. He uses it because of usage as here document like : [arg2] Change arg1 as...
-
A directory layout of node module
I've published a few node modules with npm. Then, my own specification is like: - coffee-script can be used for most major scripts - CLI interface...
-
could not find module Control.Monad.Writer
I use GHCi version 7.4.2 on MacOSX 10.8.2 and also Haskell Platform. Then, I ran into a next error about importing module. At first, I couldn't find...
-
foldr and foldl of Haskell
A difference of foldr and foldl. It's easy to understand as thinking like: foldl calculates . foldr does .
-
directory recursively does not work even for chef-10.16.6
Note: This was my misunderstanding. We can create recursively directories according to a guy on below comment though I've not confirmed. ---- You...
-
NullPointerException with a Hive script
I encountered a NullPointerException when using hive-0.8.1 on local like: As a result I tried to fix, it was occurred by the place of distinct. At...
-
JUMLY v0.1.2b released
Released JUMLY v0.1.2b that allows you to use a generic fragment directive. Enjoy JUMLY.
-
An example for express configuration
express is a very useful web application framework for node.js. I'm using it for my site for JUMLY. I frequently use it for making a small web app,...
-
Release a page 'Try JUMLY', interactive demo
Released an interactive demo page for JUMLY. http://jumly.herokuapp.com/try You can interactively edit a sequence diagram in real time on this page.
-
LoadError for moneta and the workaround
Using chef-solo 10.16.2, I encountered an error like: It was just after updating all gems with . Suspecting that, I checked the version of moneta...
-
basic commands of CLI of MySQL and PostgreSQL
I usually get confused for those commands. It's my own memo. thead tr, tbody tr:not(:last-child) { border-bottom: solid 1px gray; } thead th, tbody...
-
JUMLY Reference Manual r1
I released Reference Manual r1 for JUMLY sequence diagram directives. I think you can somehow see JUMLY's feature. JUMLY is a JavaScript library...
-
JUMLY v0.1.1-beta release
I have released JUMLY 0.1.1-beta. directive can be used like this: Enjoy, JUMLY!
-
jQuery css return different value for WebKit and Gecko
I usually use Google Chrome on MacOSX and develop JUMLY, too. JUMLY didn't work properly on Firefox yesterday when I released. The reason was the...
-
JUMLY v0.1.0-beta release
I'm happy to announce JUMLY v0.1.0-beta which is a JavaScript library that you can easily render sequence diagram on your HTML document only loading...
-
Your key with fingerprint ... is not authorized to access ... on heroku
If you use multiple accounts of heroku, you may run into next error. It's a bit troublesome to use multiple accounts of heroku. To avoid, follow the...
-
How see the process listening on a port
I remember and option, but I always forgot ':'.
-
enable apache2 and PHP5 on MacOSX 10.8.x
MacOSX 10.8 (or maybe other recent ones) already has apache2. You can run it on terminal. If you enable PHP5, you comment off two lines in . They...
-
Environtment variables for jenkins when script running
Jenkins is great and useful as a general job scheduler. In cofiguration pane, you can configure shell script runs and scheduling like cron. Then you...
-
Invoke the recipe of chef you want whereever you want
You can use "include_recipe" in a recipe if you want to invoke another recipe, but can't use it in providers and definitions as is. In the case, you...
-
Installation of postgresql-9.x on CentOS6 with yum
prepare yum settings. Please add in section of /etc/yum.repos.d/CentOS-Base.repo. Let's say you will install v9.0, and if you want 9.1 or 9.2, simply...
-
Installation of ruby with rvm to be available of chef-solo
Everytime I set up ruby on a new machine, I forget how to install chef-solo works well. I'll memorize it. As , but without Install required libraries...
-
How to extract rpm without installation
$ rpm2cpio your.rpm | cpio -idmv This makes installation image at the current directory.
-
How to override attributes at runtime using chef-solo
chef-solo allows overriding attributes at the runtime with options which is given a json. It usually is used for declaring like this. Then you can...
-
node-jquery which supports dom, jquery and xhr on node
I wrote a node module to support dom, jquery and xhr. node-jquery You can use many jQuery methods including $.ajax and use jQuery's selector. Here is...
-
open console for SQL on heroku
Use heroku-sql-console.
-
How to use hstore of postgreslq-9.0 with MacPorts
hstore is contained in the archive of source for postgresql, but MacPorts doesn't provide it as is. You need to change the Portfile of postgresql90....
-
A rake task to convert .markdown to .html
A helpful rake task snippet, which is configured for generating README.html from README.md. - bootstrap 2.1.1 - table of contents using jquery - haml...
-
How to access to HDFS of Pseudo-Distributed Hadoop
There is a way to install hadoop as [Pseudo-Distributed Operation][1]. This is an easy way to try hadoop with one host, but you cannot access to HDFS...
-
brownie 0.1.0
Sorry! brownie has already unpublished from npm. Let's use GRUNT. I released a smart npm module, brownie-0.1.0. brownie provides three features. -...
-
How to change endpoint of EMR with aws-sdk 1.6.5
Amazon Elastic Mapreduce is available in Japan and other regions apart from US region, but Ruby aws-sdk 1.6.5 doesn't support those regions. Here is...
-
EC2 Instance Types (table format)
It's little hard to compare instance type with the original page. I format as to be comparable using table. This information is quoted based on the...
-
failed to install ruby 1.9.3-p194 with RVM
On MacOS X Mountain Lion 10.8.1, I tried to update ruby to the latest with RVM 1.15.8, I ran into the following error. Seeing the log, it says...
-
disable info logging of pig console
It's slightly annoying for logging message every time when using pig console like 2012-09-04 07:56:16,158 [main] INFO org.apache.pig.Main - Apache...
-
git-hub command
It's not useful to open a file you wish on github.com through web browser from the top page of repository. You have to click and click so much....
-
chef's definition to download tarball
It's frequent process downloading a tarball from somewhere and extracting it. Here is a definition of chef to do it. Put this under your cookbook as...
-
misunderstanding for remote_file of chef
I've misunderstood about remote_file of chef as itself is deprecated. The deprecated purpose is use of retrieving file under cookbooks. To get remote...
-
MacPorts and Command Line Tools for Xcode
What I want to say in this post is "Don't forget installation of Command Line Tools if you use MacPorts". I ran into the following error when I...
-
One of simple ways to package executable single jar with maven
It's using two plugins, jar and shade. And then just type such as What a simple way :)
-
comment of hive script
Double-hyphen -- like this, -- Set up Apache log table -- @author Tomotaka Sakuma ADD JAR ./target/apachelog_serde-0.1.0-SNAPSHOT.jar CREATE TABLE...
-
Testcase using tentative ApplicationContext of springframework
When you use springframework, you make an AppliactionContext for production, but you may sometimes want other ApplicationContext for test cases. Then...
-
move,resize,maximize and fullscreen with keyboard on MacOSX
- ⌘+^+F : Shortcut to fullscreen for any application - MercuryMover (100uses demo)
-
Notation of JSON in Java for test
A few helper static methods provide pretty good readability in Java for JSON literal. It's a bit problem that cannot contain "'" in each value though...
-
Indentation with Jackson in springframework using annotation configuration
ObjectMapper of jackson has a feature to make indent when deserializing as JSON. Here is a way to use it on springframework. A keen colleague who is...
-
visitor pattern in generics of Java
Make an visitor interface for an type, Entity. It has two generics types for return-type and optional parameter type. Let's say Entity is like this...
-
git tips
I'll show some tips like usage, configuration and thought of mine for git. First of all, it's better to configure aliases with with ~/.gitconfig...
-
bitly API was changed to v3, and legacy API went wrong...
I realized my webapp couldn't show shoten URL now. It seems bitly API returns errorCode 500 when I see the response with Developer Tools of Webkit....
-
How to load YAML in Node.js
I think js-yaml is a good library for loading YAML in Node.js Let's say your yaml file is as "your.yml", In your .js code,
-
How to use including file in jade template of express
We defaultly cannot use "require" function of Node.js in jade template of express. If we want to embed an external file in markdown, we cannot. Then,...
-
Rewrite JUMLY's site on Node.js from Ruby
[JUMLY][jumly] is a JavaScript library product I've been improving these years. The core is written in coffee-script, but the site was originally...
-
node-canvas is awesome!
I've found, finally, the library I've wanted in order to use <canvas> on nodejs. node-canvas
-
SimpLESS
SimpLESS is a generator for LESS. It looks nice, and is written by titanium. The source code is hosted on github.
-
An oneliner for git
An one-liner to get the current revision.
-
knockout.meteor-demo
I love knockout as a MVVM framework of JavaScript. meteor doesn't support knockout yet, but I found a good bridge, knockout.meteor. It's really good...
-
Chef server installation for ubuntu-12.04
ubuntu-12.04 was released. I tried setting up chef server on it. It was almost same except for ruby's version. I didn't see the package...
-
How to install chef server on CentOS-6.2 using yum
I posted how to set up chef server on ubuntu-11.10. CentOS is a popular Linux distributions. I'll describe how to set it up step by step, too....
-
How to install chef server on ubuntu-11.10 using apt-get
NOTE a new post is here, Set up chef-server on EC2 with Ubuntu 12.04 [Chef][chef-home] is one of configuration management system, but it seems hard...