misc tips

introduction of backbone.js

http://qiita.com/items/1370 cool instruction

Graph Generators with javascript

http://tokkono.cute.coocan.jp/blog/slow/index.php/programming/javascript-data-visualization-libs/

WEB FONTS DEKO MOJI

too Cool?!

http://decomoji.jp/about.html

SSH multi-hop

http://sshmenu.sourceforge.net/articles/transparent-mulithop.html

local
|
V
gateway.example.com
|
V
target.example.com

'nc' command (*1)must be installed in 'entrance host'.

apt-get install netcat

~/.ssh/config in local

Host gateway
Hostname gateway.example.com
Port 10001
User tf1

Host target
Hostname target.example.com(*2)
User bbc
ProxyCommand ssh entrance nc %h %p

rsa public keys

in gateway
cat local.rsa.pub.id >> ~tf1/.ssh/authorized_keys
in target
cat local.rsa.pub.id >> ~bbc/.ssh/authorized_keys

ssh command line in local machine.

ssh target

MondoMouse: window focus and front it by mouseover in MacOSX.

http://www.atomicbird.com/tags/mondomouse

$14.95:MacOSX 10.7 ok.

GOOD!!!!

Nohidden folders which are set invisible in MacOSX GUI

http://d.hatena.ne.jp/yuyarin/20110323/1300809061

sudo chflags nohidden /foo

change config about php memory limit

in php.ini

memory_limit = ***M

reset SQLITE3 incremental key

http://d.hatena.ne.jp/shunsuk/20090715/1247658353

misc

convert ISO 8601 date format to JST by PHP

$jptime = strtotime($time);

$timestamp = $jptime + 9 * 60 * 60;

$timestamp = date("Y/m/d H:i:s",$timestamp);


install LibYaml for php yaml module

see http://pyyaml.org/wiki/LibYAML

download http://pyyaml.org/download/libyaml/yaml-0.1.4.tar.gz

./configure --prefix=$HOME/usr/local

gmake

gmake install

ls -l libyaml*

lrwxr-xr-x 1 hogehoge users 14 11 7 11:52 libyaml-0.so -> libyaml-0.so.2

  • rwxr-xr-x 1 hogehoge users 261785 11 7 11:52 libyaml-0.so.2
  • rw-r--r-- 1 hogehoge users 339384 11 7 11:52 libyaml.a
  • rwxr-xr-x 1 hogehoge users 955 11 7 11:52 libyaml.la

lrwxr-xr-x 1 hogehoge users 14 11 7 11:52 libyaml.so -> libyaml-0.so.2

20111107:install pecl YAML

pecl bundle YAML

cd yaml

./configure --prefix=$HOME/usr --with-yaml=$HOME/usr/local

gmake

gmake test

cp modules/* ~/usr/lib (*3)

vi ~/www/php.ini and added line of extension=yaml.so

20111203:install sqlite3 php pecle module for using FTS3

pecle bundle sqlite3(*4)

cd sqlite3

phpize

setenv CPPFLAGS "-DSQLITE_ENABLE_FTS3 -DSQLITE_ENABLE_FTS3_PARENTHESIS"(*5)

./configure

make

make test

cp modules/sqlite3.so (dist)(*6)

edit php.ini and added extension=sqlite3.so

*1: http://www.ksknet.net/linux/nc_netcat.html

*2: It isn't nessesary for 'target' hostname to be resolved from external network.

*3: "gmake install failed"

*4: This extension was briefly a PECL extension but that version is only recommended for experimental use.

*5: cf. http://www.sqlite.org/fts3.html#section_2

*6: in php.ini, extension_dir = dist

this file --> last modified:2012-05-12 12:55:33