2013-01-01ãã1å¹´éã®è¨äºä¸è¦§
ããããAMIã£ã¦ä½? Amazon Machine Imageã®ç¥ Amazon EC2ã§åä½ããä»®æ³ãã·ã³ã®ã¤ã³ã¹ã¿ã³ã¹ã®å ã«ãªããã® Amazon Linux AMIã£ã¦? Amazonãç¬èªã«éçºãã¦ããLinuxãã£ã¹ããªãã¥ã¼ã·ã§ã³ Red Hat Enterprise ããã¼ã¹ã«ãã¦ããããã Amazon Linux AMIâ¦
ä»äºã§å¿ è¦ã«ãªã£ãã®ã§ã¯ããã¼ãç§é170ä¸æç¼ããªãããã£ã¦ã¿ã ã¤ã³ã¹ã¿ã³ã¹çæ https://console.aws.amazon.com/ec2/v2/home ã«ã¢ã¯ã»ã¹ããã°ã¤ã³ãã ããã©ã«ãã§ã¯ãã¢ã¡ãªã«ã«ã¤ã³ã¹ã¿ã³ã¹ãçæãããã®ã§ãå¤æ´ããããã°ãå³ä¸ã®ãOregonããâ¦
bundlerã®gemã®ã¤ã³ã¹ãã¼ã«å ã£ã¦ã©ã? æ®éã¯ãrvmçã§æ¨æºã§æå®ããã¦ããå ´æ bundle show ${gemå} path ãªãã·ã§ã³ ã§æ ¼ç´å ãå¤æ´ã§ãã bundle install --path vender/bundle Gemfile.lockã£ã¦ä½? ååã® bundle install ã§çæããã å ¨ã¦ã®éçºç°â¦
å è¨äº Bundler: The best way to manage a Ruby application's gems What is Bundler? It tracks an application's code and the rubygems it needs to run, ããã¯ãã¢ããªã±ã¼ã·ã§ã³ã³ã¼ãã¨ãrubygemsãåãã®ã«å¿ è¦ãªãã®ãç£è¦ããã track : ãã©ããâ¦
ãã£ã¨ãããã¨ãã£ã¿ã®ã¹ã¯ãªããããã話 è¡æä½ è¡åå¾ echo getline('.') |" ã«ã¬ã³ããããã¡ã®ã«ã¬ã³ãè¡ãåå¾ echo getline(4) |" ã«ã¬ã³ããããã¡ã®4è¡ç®ãåå¾ echo getline(4,8) |" ã«ã¬ã³ããããã¡ã®4ã8è¡ç®ããªã¹ãã§åå¾ echo getline(0,'$â¦
Redcarpet https://github.com/vmg/redcarpet/ ã¤ã³ã¹ãã¼ã« rvmsudo gem install redcarpet 試ãã¦ã¿ã require 'rubygems' require 'redcarpet' markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML, :fenced_code_blocks => true) puts markdownâ¦
é¢æ°å®£è¨ :function Func(flg) " ã°ãã¼ãã«ã¹ã³ã¼ãã®å ´åãé¢æ°åã¯ã¢ã«ãã¡ãããã®å¤§æåã§å§ã¾ã : if a:flg " å¼æ°ã®åç §ã¯ãa:å¼æ°å : echo "true" : else : return "false" |" æ»ãå¤ãè¿ãããå ´åãreturn ã³ãã³ãã使ã : endif :endfunction â¦
if æ if test == 1 echo 'true' else ehco 'false' endif æ¯è¼æ¼ç®å ==, !=, >, =, ignorecase ã«ä¾å ignorecase ã¯æååæ¯è¼æã«å¤§æå/å°æåãèæ ®ããªããããªãã·ã§ã³ is: åä¸ã®ã¤ã³ã¹ã¿ã³ã¹ isnot: ç°ãªãã¤ã³ã¹ã¿ã³ã¹ ==#, !=#, =~#, !~# ignoreâ¦
ã¾ãã¯ãããèªã help eval ãã¼ã¿åã®ç¢ºèªæ¹æ³ let test = 1 echo type(test) 以ä¸ã®6種é¡ãæ°å¤ã§è¿ã£ã¦ãã æ°å¤ : 0 æåå : 1 Funcref : 2 (é¢æ°ãªãã¡ã¬ã³ã¹) ãªã¹ã : 3 è¾æ¸ : 4 æµ®åå°æ°ç¹æ° : 5 æ°å¤å 32bit or 64bit ã®ç¬¦å·ä»ãæ´æ° 32bit ãªâ¦
10å¹´è¿ã Vim 使ã£ã¦ãã¦ãã¾ã ã«ç¿å¾ãã¦ããªãã®ã§ãããã ç®çã¨ã´ã¼ã« Vimã®ãã©ã°ã¤ã³ãæ¸ããããã«ãªããã! ã¿ã¼ã²ãã æ°å¹´vim使ã£ã¦ã¦ããã©ã°ã¤ã³å ¥ãããã.vimrc ããã£ãããã¦ããã©ã VimScriptã«ã¤ãã¦ã¯æ¬é ãã¦ã人 VimScriptã£ã¦ä½? Viâ¦
ç°å¢ãæ´åããã®ã§ãã®æã®TIPSçã ãã¼ã¸ã§ã³ãããããcopy.js ãåããªããªã£ã githubã«ææ°ã®ãä¸ãã£ã¦ãã®ã§åå¾ãã https://github.com/vimpr/vimperator-plugins ã¤ãã§ã«å½å ã® vimperator 使ãã®ãã©ã°ã¤ã³ãè²ã ä¸ãã£ã¦ãã®ã§ git clone ãâ¦
å®è·µã«å½ãã£ã¦è»½ã調æ»ãå®è·µç·¨ã¯ã¾ãä»åº¦ nodeã§æ¸ããwebãµã¼ããå ¬éããããã©ããããã¤ã£ã¦ã¿ããªã©ããã¦ãã®? forever ã£ã¦ãããã¼ã¢ã³åãã¼ã«ããããããããã使ãã®ãä¸è¬çã£ã½ã node.js node.jsã¹ã¯ãªãããforeverã§ãã¼ã¢ã³åãã -ã§ãâ¦
æ¡å¼µå .dylib ã£ã¦? ãã¤ãããã¯ãªã³ã¯ã©ã¤ãã©ãª windowsãªããdllãlinuxãªããsoã .so ã使ããã¨ãã§ããããã æ¡å¼µå.bundleã£ã¦? ãã¼ããã«ãã³ãã« ãã¤ãããã¯ãªã³ã¯ã©ã¤ãã©ãªã¸ã®ãªã³ã¯ã¨é¢é£ãã¡ã¤ã«ããã¼ã¿ãã²ã¨ã¾ã¨ãã«ãããã®ããã â¦
ãããã調ã¹ãã®ã§ã¡ã¢ãã node.js ã£ã¦ãªãã«? JavaScriptãç¨ãã Non-blocking I/O ãªç°å¢ Non-blocking I/O? CPUã¨ä»ã®å ¥åºåè£ ç½®(I/O)ã«ããã¦ããã¼ã¿ã®éåä¿¡ãå¾ ããã«ã次ã®å¦çã«ç§»è¡ããæ¹å¼ã®ãã¨ã éã«ãå ¥åºåãå®äºããã¾ã§å¾ ã¤ãã¨ãããâ¦
Rubyãã¹ããã©ã¯ãã£ã¹ -ãããã§ãã·ã§ãã«ã«ããã³ã¼ãã¨ãã¯ããã¯ä½è : Gregory Brown,é«æ©å¾ç¾©,笹äºå´å¸åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³çºå£²æ¥: 2010/03/26ã¡ãã£ã¢: 大åæ¬è³¼å ¥: 9人 ã¯ãªãã¯: 307åãã®ååãå«ãããã° (47件) ãè¦ã ã§ããâ¦
hello world $ node > console.log("hello world"); hello world undefined ãµã¼ãèµ·å createServer ã«ã¬ã¹ãã³ã¹ãè¿ãfunctionã渡ã res.writeHead ã§ã¬ã¹ãã³ã¹ãããã渡ã res.write ã§ã¬ã¹ãã³ã¹ããã£ã渡ã res.end ã§çµäº var http = require('htâ¦
ã³ã¼ãã®å ±éåããæã®ã³ãã®å¦ã¹ãæ¬ã¯ãªãã? ã¨ãç¸è«ããæã«ãå§ããããã®ã§èªãã§ã¿ã¾ããRubyãã¹ããã©ã¯ãã£ã¹ -ãããã§ãã·ã§ãã«ã«ããã³ã¼ãã¨ãã¯ããã¯ä½è : Gregory Brown,é«æ©å¾ç¾©,笹äºå´å¸åºç社/ã¡ã¼ã«ã¼: ãªã©ã¤ãªã¼ã¸ã£ãã³çºå£²æ¥: 2â¦
ãã£ãã㨠ã¯ã©ã¤ã¢ã³ãããµã¼ãéã§åæ¹åéä¿¡ãè¡ãããã®ãããã³ã« connectionãã¯ãã£ã±ãªãã«ãã¦ãåæ¹åã®éä¿¡ãã§ãã 1ã¤ã®ã¯ã©ã¤ã¢ã³ããä½åº¦ããªã¯ã¨ã¹ããæããªãã®ã§ãwebãµã¼ãã®è² è·ãæ¸ã æ¬ä¼¼çã«Ajaxã§ãããã¨ããã¨ãã¯ã©ã¤ã¢ã³ããâ¦
ã©ã£ã¡ãã¯ã©ã¤ã¢ã³ãããµã¼ãéã§ã³ãã¯ã·ã§ã³ã確ç«ãã¦ãåæ¹åéä¿¡ãå¯è½ãªã®ã§ã SPDYã£ã¦ãWebSocketã®ä¸ä½äºæãªã®? ã¿ãããªå°è±¡ãå¼·ãã£ããã©éãããã ç®çãããããéã WebSocket â ãµã¼ããã¯ã©ã¤ã¢ã³ãéã§ã®åæ¹åéä¿¡ãå¯è½ã«ããã SPDYâ¦
åã«1åã¤ãã£ããã©ããªããè²ã æè¶ç¡è¶ã ã£ãã®ã§ããã£ããè²ã ç解ããªããä½ã£ã¦ã¿ã ç®æ¨ nvmã使ã£ã¦ãnode.js ã npmã®ç®¡çãã§ããããã«ãã nvmã®ã¤ã³ã¹ãã¼ã« nvmã£ã¦ä½? node.jsã®ãã¼ã¸ã§ã³ããã¼ã¸ã£ãruby ã«ããã rvm çãªãã® nvm - Nodâ¦
å¿ããã®ã§ã¡ã¢ ç¹å®ã®ã¦ã¼ã¶ã§ã³ãã³ããå®è¡ $ sudo /sbin/runuser -l {ã¦ã¼ã¶å} -c "ã³ãã³ã" æ¥æãæå®ãã¦touch $ touch -t201301090000 01.txt $ touch -t201301080000 02.txt $ touch -t201301070000 03.txt $ touch -t198001010000 04.txt $ ll tâ¦
ç°å¢ ruby 1.9.2 rails 3.0.9 rspec-rails 2.1.12 ã©ã¤ãã©ãª ä¾ãã°ãincludeããããbefore_filterã§ãparams[:price]ã®æ«å°¾ã«"å"ã追å ããã©ã¤ãã©ãªã®ãã¹ããæ¸ãå ´å # -*- encoding: utf-8 -*- module TestLib # includeãããããbefore_filterãâ¦
ã¤ã³ã¹ãã¼ã« $ brew install memcached ==> Installing memcached dependency: libevent ==> Downloading https://github.com/downloads/libevent/libevent/libevent-2.0.21-stable.tar.gz ##############################################################â¦
MySQLãmecabã®ã¤ã³ã¹ãã¼ã«ã¾ã§ã¯ãmacportsããHomebrewã«ä¹ãæãã¦MySQL5.1ãã¤ã³ã¹ãã¼ã«ããã¾ã§ã®æµã åç § mysqlftppc mecab pluginã£ã¦ä½? MySQLã§FULLTEXTã¤ã³ããã¯ã¹ããã¼ã¹ããæã«ãmecabã使ãããã«ãããã©ã°ã¤ã³ SourceForge.net: Mecab-â¦
ç°å¢ MySQL5.1 Homebrewã§mecabãã¤ã³ã¹ãã¼ã«æ¸ DBã«ä»¥ä¸ã®ãããªãã¼ãã«ã追å ãã¦ãã CREATE TABLE stations (name CHAR(255), info TEXT, FULLTEXT(info) WITH PARSER mecab); mysql> CREATE TABLE stations (name CHAR(255), info TEXT, FULLTEXT(infâ¦
DBã®ç°å¢ Homebrewã§æ§ç¯ããããã¼ã«ã«ã®MySQL5.1 macportsããHomebrewã«ä¹ãæãã¦MySQL5.1ãã¤ã³ã¹ãã¼ã«ããã¾ã§ã®æµã - ãããããã¨ã ãã¼ãã«ã¯ãããªæãã®ãç¨æ CREATE TABLE stations (name CHAR(255), info TEXT, FULLTEXT(info) WITH PARSERâ¦
ã¯ã©ã¤ã¢ã³ãããµã¼ãå´ãããããutf8ã«ãã æ¹æ³ ~/.my.cnf ã«ã¯ã©ã¤ã¢ã³ãå´ã®è¨å®ã追å [client] default-character-set = utf8 /usr/local/var/mysql/my.cnf ã«ãµã¼ãå´ã®è¨å®ã追å [mysqld] character-set-server=utf8 ãµã¼ãã®åèµ·å mysql.server â¦
ç¾è±¡ MySQLãåæ¢ãããã¨ããã¨ã¨ã©ã¼ãã§ã $ mysql.server stop Shutting down MySQL ....... ERROR! Manager of pid-file quit without updating file. ERROR! Failed to stop running server, so refusing to try to start. åå Homebrewã§ä½ãããmysâ¦
macportsã§å ¥ããã¢ããªãlaunchctlããã¢ã³ãã¼ããã $ sudo launchctl list | grep port 79 - org.macports.mysql5 80 - org.macports.apache2 macportsã§ä½ãããplistã¯ä»¥ä¸ã®ãã£ã¬ã¯ããªã«ãã /opt/local/etc/LaunchDaemons ã¢ã³ãã¼ã $ sudo launcâ¦
ãªããç解ãã¼ããããã¦ããã®ã§ã¾ã¨ãã¦ã¿ã¾ãã JavaScriptã¯ãããã¿ã¤ããã¼ã¹ã£ã¦ãããã©ãããã£ã¦ä½ï¼ ãããã¿ã¤ããã¼ã¹ã¨ã¯ãå ¨ã¦ã®ãªãã¸ã§ã¯ãã¯ä»ã®ãªãã¸ã§ã¯ãã®ã¯ãã¼ã³ãæ´¾çããããã®ã¨ããè¨è¨ã®ãªãã¸ã§ã¯ãæåãæ´¾çå ããããã¿â¦