git-svn の使い方をメモする。他によいプラクティスがあれば指摘していただけるとありがたい。
SVN のブランチと git のブランチが混在しているため、ここではブランチという語を以下のように区別する。
- ブランチ、 SVN ブランチ:$SVN_REPO/branches 以下にあるディレクトリ
- ローカルブランチ:git のローカルブランチ
- リモートブランチ:git のリモートブランチ
#!/bin/bash | |
# | |
# Converts LDIF data to CSV. | |
# Doesn't handle comments very well. Use -LLL with ldapsearch to remove them. | |
# | |
# 2010-03-07 | |
# dsimmons@squiz.co.uk | |
# | |
# Show usage if we don't have the right params |
sudo su
apt-get update && apt-get install -y libvirt-dev ruby-all-dev apparmor-utils
curl -O -L https://dl.bintray.com/mitchellh/vagrant/vagrant_1.6.5_x86_64.deb
dpkg -i vagrant_1.6.5_x86_64.deb
aa-complain /usr/lib/libvirt/virt-aa-helper # workaround
exit
https://github.com/intel-cloud/cosbench/blob/master/COSBenchUserGuide.pdf has all installation and config information.
Installation on Ubuntu:
find . -name '*.sh' -exec chmod +x {} ;
// MIT Licensed | |
// Author: jwilson8767 | |
/** | |
* Waits for an element satisfying selector to exist, then resolves promise with the element. | |
* Useful for resolving race conditions. | |
* | |
* @param selector | |
* @returns {Promise} | |
*/ |
2019年3月14日、Googleが円周率を31兆桁計算したと発表しました。このニュースを聞いて僕は「GoogleがノードまたぎFFTをやったのか!」と大変驚き、「円周率の計算には高度な技術が必要」みたいなことをつぶやきました。しかしその後、実際にはシングルノードで動作する円周率計算プログラム「y-cruncher」を無改造で使っていることを知り、「高度な技術が必要だとつぶやいたが、それは撤回」とつぶやきました。円周率の計算そのもののプログラムを開発していなかったとは言え、これだけマッシブにディスクアクセスのある計算を長時間安定実行するのは難しく、その意味においてこの挑戦は非自明なものだったのですが、まるでその運用技術のことまで否定したかのような書き方になってしまい、さらにそれが実際に計算を実行された方の目にもとまったようで、大変申し訳なく思っています。
このエントリでは、なぜ僕が「GoogleがノードまたぎFFT!?」と驚いたか、そんな話を書いてみたいと思います。
#!/usr/bin/env python3 | |
import numpy as np | |
# Assume that P = N * N. | |
N = 4 | |
A = np.arange(0, 2 * N * N, 2).reshape(N, N) | |
B = np.arange(1, 2 * N * N, 2).reshape(N, N) | |
C_gt = A.dot(B) |