2012-01-01ãã1å¹´éã®è¨äºä¸è¦§
å®éã«ã¯ foreach ã使ãã°ããã ãã®è©±ã ãã array_map(), array_keys(), array_values() ã® 3ã¤ã®é¢æ°ãçµã¿åãããã¨ãé åã®ãã¼ã¨è¦ç´ ã«å¯¾ãã¦å¦çã§ãããä¾ï¼ 'valueA', 'b' => 'valueB'); $result = array_map(function ($key, $value) { return â¦
chef-solo ã chef-client ã¯ã http://www.opscode.com/chef/install/ ã®ã¨ããã¯ã³ã©ã¤ãã¼ã§ã¤ã³ã¹ãã¼ã«ãå®äºããã(Windows 以å¤) curl -L https://www.opscode.com/chef/install.sh | sudo bash
CakePHP 2.3.0 ãã¼ã¿çããªãªã¼ã¹ãããã¨ã®ã㨠http://bakery.cakephp.org/articles/lorenzo/2012/10/28/cakephp_2_3_0-beta_releasedã¡ãã£ã¨ãããããç¥ããã¨ãã¦ã¯ãã¢ãã«ã§ biginteger ããµãã¼ãããã¨ã®ãã¨ã PostgreSQL ã§è©¦ããã¨ãããã¾ã â¦
OS Windows 7 (64bit) VirtualBox 4.2.2 Ruby 1.9.1 Vagrant 1.0.5 Windows 7 ã«ã¦ vagrant package ã§ä½æãã BOX ããã¼ã¹ã« vagrant up ããã¨ã å ±æãã©ã«ã (v-root) ãä½ææã®å¤ãè¨å®ã®ã¾ã¾ã«ãªã£ã¦ãã¦å°ã£ãã vagrant halt 㧠VM ãä¸æ¦åæ¢ GUâ¦
VirtualBox 4.2 対å¿ã® Vagrant 1.0.5 ããªãªã¼ã¹ããã¦ãã¾ããã VirtualBox 4.2 + Windows 7 ã§åé¡ãªãåä½ãã¦ãã¾ãã http://www.vagrantup.com/VirtualBox 4.2.1 ã¯ãMacOS X 10.8 (Mountain Lion) 対å¿ãã¦ãããããã®ã§ããããã Mountain Lion â¦
Debian (squeeze) ãµã¼ãã§ãX ç°å¢ã®ä»£ããã« xvfb ã使ã£ã¦ãfirefox ãèµ·åãã¦ã¿ãã ï¼ãã¾ãã§ã¹ã¯ãªã¼ã³ã·ã§ãããæ®ã£ã¦ã¿ãã)ããããã¨ã«ãSelenium ã®ãã¹ãå®è¡ç°å¢ãç¨æãããã¨æããå¿ è¦ãªããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«: apt-get -y install xvâ¦
ãããã¤ãèªååããããã«ä½ããæãã¤ãã¦ããããããããã¨ãå¤ãã¦æ¹åãè¦å¤±ããã¡ãããã§ããã§ãã¯ãªã¹ãã«ãã¦ã¿ããhttp://www.ryuzee.com/contents/blog/4461ããã大é ç®ã並ã¹ã¦ã¿ãã # é ç® â¡ 1 ã½ã¼ã¹ã³ã¼ãã®ãã¼ã¸ã§ã³ç®¡ç â¡ 2 è¨å®ãã¡â¦
ãã¾ã¾ã§ãOpscode ã管çãã Chef ã® cookbook ãªãã¸ããªãhttps://github.com/opscode-cookbooks以ä¸ã«ç§»åãã¦ãããä»ã¾ã§ï¼ã¤ã®ãªãã¸ããªã§ç®¡çãã¦ãããã®ããcookbook åä½ã§ç®¡çãããããã«ãªã£ãã移åãã¦ããï¼ãæåã«ãªãã®ãããããããªâ¦
Emacs ã«ã¦æåã³ã¼ãã®èªåå¤å®ã«å¤±æããå ´åãæåã³ã¼ããæå®ãã¦éããªããã®ã ãããã¤ãå¿ãã¦ãã¾ãã®ã§ã¡ã¢ã C-x RET c æåã³ã¼ããå ¥å RET C-x C-v RET
PHP ã½ã¼ã¹è§£æã®ããã«å¿ è¦ã«ãªã£ãã å®æ°ï¼get_defined_constants() å¤æ°ï¼get_defined_vars() é¢æ°ï¼get_defined_functions() ã¯ã©ã¹ï¼get_declared_classes() ã¤ã³ã¿ã¼ãã§ã¼ã¹ï¼ get_declared_interfaces() å½åè¦å㧠"defined" 派㨠"declared" æ´¾ãâ¦
http://wpblog.onodalaw.com/?p=60 ããã sudo mount -t ufs -r -o ufstype=ufs2 /dev/sdb9 /mnt
ãããã»ã»ã»ãæè¦ãåéä¸ã¨ã®ãã¨ãããããçç±ãæ¸ãã¦ããã®ã§å¾ã§èªããhttps://groups.google.com/forum/#!topic/vagrant-up/kX_wvn7wcds/discussion
opscode ã®ã¬ã·ã "yum::epel" ãåããªãã¨æã£ãããchef ã®ãã°ãããã http://tickets.opscode.com/browse/CHEF-3135yum::epel å 㧠notifies ã使ããªãããã«ããã£ã¦å¯¾å¿ããã
以åãveewee 㧠vagrant ç¨ã®ä»®æ³ãµã¼ã(box)ãèªåä½æ ã«ã¦ãveewee 0.2.0 ã®åä½ã確èªãããä»åã¯ãéçºçã§ãã 0.3.0.alpha9 ã使ã£ã¦ CentOS 6.2 ã®ãã¼ã¹BOXãä½æãã¦ã¿ããä»ååä½ç¢ºèªããç°å¢ã¯ã Windows 7 (64bit) VirtualBox 4.1.16 vagranâ¦
PHP ã使ãã®ã¯ç²ããã®ã§ãJava ç³»ã®ãã¬ã¼ã ã¯ã¼ã¯ã¨ãã¦ãPlay framework ãæ¤è¨ä¸ããã¼ã¸ã§ã³2.0 ã¯ãã³ã¢é¨åã Scala ã§æ¸ãç´ããçµ±ä¸æããã£ã¦ããªããªãè¯ããã(1.2 系㯠Java, Python, Groovy , Scala (ãªãã·ã§ã³) ã¨ããæ§æã§è¨èªã®ããã¯ã¹â¦
SchemaSpy ã¨ã¯ããã¼ã¿ãã¼ã¹ã®è¨è¨æ å ±ãHTMLããã¥ã¡ã³ãåãã¦ããã java 製ãã¼ã«ã Graphviz ãã¤ã³ã¹ãã¼ã«ãã¦ããã¨ãªã¬ã¼ã·ã§ã³ãã°ã©ãåãã¦ããããhttp://schemaspy.sourceforge.net/å®è¡ä¾: $ java -jar schemaSpy_5.0.0.jar -dp ./postgresâ¦
ã¡ã¾ãã§äººæ°ã® Composer ã試ãã¦ã¿ããhttp://getcomposer.org/ã ããpear çµç±ã§ã¯ PHPUnit ãã¤ã³ã¹ãã¼ã«ã«å¤±æããããããããã Composer ã®ä¸å ·åãããããªãããã©ããã PHPUnit ã®pear ã®ç®¡çæ å ± (packages.json) ã«åé¡(?)ãããããããhttpâ¦
ãã¤ã¼ãããã¦ãã¦è¦ã¤ããã©ã¤ãã©ãªãï¼ãµã¤ãããªãããã ãã§ãã¾ã 試ãã¦ããªã) http://fog.io/1.3.1/index.html Storage (AWS S3, Rackspace, Google) Compute (AWS EC2, Rackspace) DNS (AWS Route 53, Blue Box, DNSimple, Linode, Rackspace, Sliâ¦
http://www.ryuzee.com/contents/blog/4470 ãããmaven ã«ã¦çµåãã¹ãç¨ã®ã´ã¼ã«ãè¨å®ã§ããããã«ãªã£ãã®ã§ã æ°ããããã¸ã§ã¯ããä½æãããã«ãã®ããªã¬ã¼ããã§ã¼ã³ã«ã³ãããã¹ãã¼ã¸ã 追å ãã¦ã¿ãã次ã®èª²é¡ã¯ãã³ãããã¹ãã¼ã¸ã®ææç©ããã¨â¦
Pimple ã¨ã¯ãªãããï¼ã¨ãããã¨ã§ãã½ã¼ã¹ã³ã¼ããããã¥ã¡ã³ããããã©ã®ãããªãã®ããå¤æãã¦ã¿ããï¼ã¤ã¾ãå®éã«åä½ã¯ç¢ºèªãã¦ããªãwï¼Pimple ã¨ã¯ãSilex ã®ãã¼ã¹ã¨ãªã£ã¦ãã PHP5.3 ä¸ã§åä½ãã DI ã³ã³ããã¨ã®ãã¨ã å ¬å¼ãµã¤ã: http://piâ¦
Capistrano ã¯ãssh ã§ã¢ã¯ã»ã¹ããã®ã§ãä»ã®ãµã¼ãã«ã¢ã¯ã»ã¹ããã®ã¨ã»ã¨ãã©å¤ãããªã訳ã ããVagrant ã®ç¹å¾´ã«åããã¦è¨å®ããå¿ è¦ããããè¨å®ãã¤ã³ãã¨ãã¦ã¯ã ã¦ã¼ã¶ã¼å SSH Port ç§å¯éµ ãæå®ãããã¨ãè¨å®å 容ã¯ãvagrant ssh-config ã³ãâ¦
çµåãã¹ãã¯ã以ä¸ã®æ¹æ³ãä¸çªç°¡åã ããintegration-test ãã§ã¼ãºã§çµåãã¹ããå®è¡ãããªãã®ãä½ã¨ãªãæ°æã¡æªãã£ããhttp://d.hatena.ne.jp/okinaka/20120413/1334292605以ä¸ã®è¨äºãåèã«ãintegration-test ãã§ã¼ãºã«ã¦çµåãã¹ããå®è¡ã§ããâ¦
dbdeploy 並ã¿ã«ã·ã³ãã«ã§ãPHP ã§ããã¨æ±ç¨çã«ä½¿ãããã¤ã°ã¬ã¼ã·ã§ã³ãã¼ã«ã¯ãªããã¨æ¢ãã¦ããã¨ããã åãã¯ã http://www.ryuzee.com/contents/blog/4268 ãåèã« Doctrine1 ã試ãã¦ã¿ãã®ã ããORMç¨ãã¡ã¤ã«ãããããçæãããã®ãæ°ã«å ¥ãâ¦
ä¹ ã ã« Google ã°ã«ã¼ããèªãã§ç¥ã£ãã®ã ããVagrant ç¨ã«å ¬å¼ã® Ubuntu 12.04 ãã¼ã¹BOX ãåºãããããhttp://files.vagrantup.com/precise32.box http://files.vagrantup.com/precise64.boxvagrant 1.0.3 ããå¤ããã¼ã¸ã§ã³ã¯ä¸å ·åããã£ã¦ãããã¯ã¼â¦
http://www.css-lecture.com/log/css-beginner/026.html ãããã¯è¦ç´ ã¯ããmargin: 0 auto;ã(ã¨widthï¼ãæå® ã¤ã³ã©ã¤ã³è¦ç´ ã¯ããtext-align: centerããæå®
dbdeploy ã®ãããªDBãã¤ã°ã¬ã¼ã·ã§ã³ãã¼ã«ã使ã£ã¦ããã¨ããã¼ãã«å®ç¾©ã¯æ¬é²çã«æ´æ°ããã¦ãããããç¾æç¹ã®ãã¼ãã«å®ç¾©æ¸ãDBæ å ±ããçæãããã¨æããã¨ã¯åº¦ã ããã(ç§ã®ç¥èã§ã¯ã)ãã¼ãã«åãåé ç®ã®åã¯åå¾ã§ããããããã ãã§ã¯èª¬æã足â¦
ä»åã¯ãUbuntu 12.04 対å¿ã®ããã®ãªãªã¼ã¹ãã¾ã 試ãã¦ããªãããæ§ãã¼ã¸ã§ã³ã§ã¯åå解決å¨ãããã¾ãåããªãããããhttp://twitter.com/#!/mitchellh/status/197561652038733824次㮠1.1 ç³»ã¯ãè¨å®ããã©ã°ã¤ã³å¨ãã§æ©è½è¿½å ãã¦ããçãã¿ãããªã®â¦
11.10 ããã¢ããã°ã¬ã¼ããããã¨ããããããã±ã¼ã¸ç®¡çãæ®å¿µãªçµæã«ãªã£ã¦ãã¾ã£ããããã¯ãªã¼ã³ã¤ã³ã¹ãã¼ã«ã«åãæ¿ãããã¨ã«ã»ã»ã»ãç¾å¨ãISOã¤ã¡ã¼ã¸ããã¦ã³ãã¼ãä¸ããã¦ã³ãã¼ããå®äºããããæ£ãããã¼ã¿ãã©ããã md5sum ãªã©ã§ãã§ãã¯â¦
å æ¥ã¯ dbdeploy ã®è¨å®æ¹æ³ã«ã¤ãã¦ã¾ã¨ããã®ã ããä»åº¦ã¯ä½¿ãæ¹ã«ã¤ãã¦ã¾ã¨ãã¦ã¿ããå¤æ´æé å¤æ´ç®¡çç¨SQLæãæ¸ã å¤æ´å 容ãDBã«é©ç¨ãã undo (å ã«æ»ã) æé (ç¡ããã°) undo ç¨ãã¡ã¤ã«ãçæãã undo å 容ãDBã«é©ç¨ãã å¤æ´ç®¡çç¨ã®SQLæ â¦
dbdeploy ç¨ã®ç®¡çãã¼ãã« (changelog) ãä½æããæ¹æ³ã¨ãã¦ãsql-maven-plugin ãå©ç¨ãã¦ã¿ããhttp://mojo.codehaus.org/sql-maven-plugin/PostgreSQL ç¨ã®ãã¼ãã«å®ç¾© (src/main/sql/0000_dbdeploy_changelog.sql) ã¯ã CREATE TABLE IF NOT EXISTS câ¦