##Connection Timeout または No route to host
###ヘルスチェックステータス1/2
OSレベルでの問題が起きています。
→ インスタンスをRebootしてみましょう。
###ヘルスチェックステータスが0/2
物理ホスト障害の可能性があります。
→ インスタンスをStop/Startしてみましょう(別の物理ホストに移動させる事ができます)
※ Stoppingの状態で停止しない場合には、force stopを行います(Management Consoleから2回目のstop/ec2-stop-instances --force i-xxxxxxxx)
package tokenizer | |
/* | |
#cgo CFLAGS: XXX CHANGE ME XXX | |
#cfo LDFALGS: XXX CHANGE ME XXX | |
#include <mecab.h> | |
struct mecab_t {} | |
*/ | |
import "C" | |
import "errors" |
#!/bin/bash | |
# Get current swap usage for all running processes | |
# Erik Ljungstrom 27/05/2011 | |
# Updated: 2013-11-13 Yuichiro Saito | |
SUM=0 | |
OVERALL=0 | |
for DIR in `find /proc/ -maxdepth 1 -type d | egrep "^/proc/[0-9]"` ; do | |
PID=`echo $DIR | cut -d / -f 3` | |
PROGNAME=`ps -p $PID -o comm --no-headers` | |
for SWAP in `grep Swap $DIR/smaps 2>/dev/null| awk '{ print $2 }'` |
* go のコンパイル | |
brew のインストールファイルにはファイルが欠けているものがあるので、ソースから go をビルドする必要がある | |
ソースは以下のコマンドでとってこれる。 | |
$ hg clone -u release https://code.google.com/p/go | |
GOROOTの変更を忘れずに。 |
<html> | |
<head> | |
<title>Simple Line Graph using SVG and d3.js</title> | |
<script src="http://mbostock.github.com/d3/d3.v2.js"></script> | |
<style> | |
/* tell the SVG path to be a thin blue line without any area fill */ | |
path { | |
stroke: steelblue; | |
stroke-width: 1; | |
fill: none; |
> perl -E 'say "生" & "死"' | |
愛 | |
生 Life U+751F \xe7\x94\x9f 11100111 10010100 10011111 | |
死 Death U+6B7B \xe6\xad\xbb 11100110 10101101 10111011 | |
愛 Love u+611B \xe6\x84\x9b 11100110 10000100 10011011 |
(The command examples assume OS X).
Just about everything that happens when you enter scons
is for Android. So anything you can do to speed up the Android part of our build will be useful.
-
Android NDK r7 can use ccache. We get huge improvements in build time with it. So install it (if you have HomeBrew,
brew install ccache
) then set a shell variableNDK_CCACHE
to point to it. I.e., for me, having installed it withbrew
, it would beexport NDK_CCACHE=/usr/local/bin/ccache
. -
NDK can also parallelize while compiling. Set a shell variable
NUM_CPUS
to (according to Opie) 2x the number of cores in your machine. A quick way to get the # cores on your machine in OS X issystem_profiler | grep "Number Of Cores"
in terminal. I have 2 cores, so my shell var setting isexport NUM_CPUS=4
.
From dea49e3d1900ffdc56a2077d1d701ec9e38bc58b Mon Sep 17 00:00:00 2001 | |
From: Ryan Dahl <[email protected]> | |
Date: Wed, 28 Sep 2011 17:43:20 -0700 | |
Subject: [PATCH] net: Fix string-concat hot path bug | |
Also removes functionality added in f9fec3a2d65580b7e39edc9afd5904cd4775c87c | |
because it changes API. (That patch shouldn't have been added anyway.) | |
--- | |
lib/net.js | 20 ++++++++--- | |
test/simple/test-net-write-callbacks.js | 56 +++++++++++++++++++++++++++++++ |
exports.Person = function(firstName,lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
}; |