ãã¹ãããããã¼ã¿ãã®ãªãã§æå®ãããã©ã¡ã¼ã¿ã®å¤ã®ã¿ã®é åã欲ãããã¨ããããããforeach() ã array_filter() ã¨ãã§ããããåããªãã¦ãè¯ãæ¹æ³ããã£ãã http://blog.pixelastic.com/2011/05/11/whitelisting-keys-array/ ãã
git mv ãµãã³ãã³ã㧠"-f" ãªãã·ã§ã³ãã¤ããã¨ãããããã git mv -f Readme.md README.mdhttp://mironal-memo.blogspot.jp/2013/06/git-rename.html
Linux ãªã©ã¯ãfputcsv() ã®æ¹è¡ã³ã¼ãã LF ã«ãªã£ã¦ãã¾ãã®ã ãã CRLF ãæã¾ããå ´åãå¤ãã®ã§å°ãã 以ä¸ã®ããã«ã¹ããªã¼ã ãã£ã«ã¿ã使ãä¾ãç´¹ä»ããã¦ãããhttp://stackoverflow.com/questions/12722894/how-can-i-change-the-line-endings-usedâ¦
Vagrant 1.6.3 ãã CentOS7 ãèµ·åããã¨ãã®è¨å®(Vagrantfile)㧠config.vm.network :private_network, ip: "192.168.33.10" ã¨æ°ããNICã®è¨å®ã追å ããã¨ãCentOS6 ã¨æ¯ã¹ã¦ãããã¯ã¼ã¯å¨ããå¤ãã£ãé¢ä¿ã§ãvagrant èµ·åæã®ãããã¯ã¼ã¯è¨å®ã失æâ¦
Vagrant ã¯ãé·ãã 1.0 ç³»ãæç¨ãã¦ãããã1.4 ããªãªã¼ã¹ããããã¨ã ããããããã¢ãããã¼ããã¦ã¿ãããã¨æã£ã¦è©¦ãã¦ã¿ãã¨ãããvagrant box (list|remove) ãµãã³ãã³ãããã¾ãåããªããã¨ãåãã£ãã $ vagrant box list base (virtualbox) â¦
RecursiveDirectoryIterator ã使ã£ã¦åé¤ã isFile() || $item->isLink()) {â¦
Vagrant ã使ã£ã¦ã㦠VirtualBox ã®å ±æãã©ã«ãã DocumentRoot ã«è¨å®ãããã¨ããããããã EnableSendFile offã¨ããã¨éçãã¡ã¤ã«èªã¿è¾¼ã¿ãæ©ããªã£ã¦ãããããã
http://d.hatena.ne.jp/hnw/20090523 ãããNoRewindIterator ã§ã©ããããã
確èªããæ¹æ³ã¯INTãµã¤ãºãè¦ãã®ãæã£åãæ©ãã PHP_INT_SIZE å®æ°ã 4 ã®å ´å㯠32bitã8 ã®å ´å㯠64bit ã¨ãªãã
CakePHP ã§ã¯ãPostgreSQL ã®ä¸»ãã¼ã«è¨å®ããã·ã¼ã±ã³ã¹åãããã©ã«ãã¨ç°ãªãå ´åãModel::sequence ã«æ¸ããã¨ã§å¯¾å¿ã§ããã®ã ããCakePHP 2.1 ãããã¹ãã¼ãå . ã·ã¼ã±ã³ã¹åãã¨ããæ¸å¼ãåæã«ãªã£ã¦ããã
Debian wheezy ã§ç®¡çãããããã±ã¼ã¸ã®ä¸ã§ ruby ãªã©ã®è¤æ°ã®ãã¼ã¸ã§ã³ãåå¨ããã³ãã³ãã¯ãupdate-alternatives ã³ãã³ãã§ç®¡çããã¦ããããruby1.9.1 ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«å¾ã rake ã¯ãªããè¨å®ããã¦ããªãã£ãã ri ã rdoc ã¯ããã®ã«â¦ãâ¦
åä½ãã¹ãã§ã¯å¤é¨ãªã½ã¼ã¹ã¸ã®ã¢ã¯ã»ã¹ã¯è¡ããªãã®ãåºæ¬ããã¡ãããã¡ã¤ã«ã·ã¹ãã ãå«ã¾ããããã¹ã対象ã³ã¼ãå ã«ããå¤é¨ãªã½ã¼ã¹ã¸ã®ã¢ã¯ã»ã¹å¦çã¯ãã¢ã¯ã»ã¹å ããã¢ãã¯ãã«å·®ãæ¿ãããã¨ã§å¯¾å¿ã§ããã ãªãã¹ãè¨è¨ã¬ãã«ã§ã¢ãã¯ã¸ã®å·®ãæ¿â¦
ssh ã®ã³ãã³ãå®è¡æã« -o ãªãã·ã§ã³ãä»ã㦠known_hosts ãå¼·å¶çã«æ´æ°ããã Chef ãªã©ã§èªå㧠known_hosts ãæ´æ°ãããå ´åã«ä½¿ããã $ ssh -o "StrictHostKeyChecking=no" user@hostname
Vagrant ã®ãã¼ã¹BOX ä½ææé ããããã§æ¢ãã¨ããã¦ãã®å ´åã veewee ã使ç¨ãã¦ãã¾ãããç¡çã«ä½¿ç¨ããå¿ è¦ã¯ããã¾ããã å ¨èªååã§ããã°ä¾¿å©ã§ã¯ããã®ã§ãããå人çã«ã¯æä½æ¥ã§ä½æããã»ããæ軽ã§æ°ã«å ¥ã£ã¦ãã¾ããhttp://d.hatena.ne.jp/okâ¦
https://github.com/CakeDC/migrationsCakePHP ã®ãã¼ã¿ãã¼ã¹ã¹ãã¼ãã®ç®¡çç¨ã« Migrations ãã©ã°ã¤ã³ãããã Migrations ãã©ã°ã¤ã³ã§æ®å¿µãªãã¨ã¯ãCakePHP ã® Schema ã¯ã©ã¹ããµãã¼ããã¦ããªãã¯ã¨ãªã¯ãã©ã°ã¤ã³å é¨ (CakeMigration ã¯ã©ã¹)㧠SQLâ¦
Google Apps ã使ç¨ããããRedmine ãªã©ã§ã Wiki ã使ãããããé¢ä¿ã§ãæ°ãã«åç¬ã§ Wiki ãµã¼ããç«ã¦ããã¨ã¯ãªããªã£ãããä»ã§ãä¸é¨ PukiWiki ã使ç¨ãã¦ãããPukiWiki: http://pukiwiki.sourceforge.jp/Pukiwiki ã®éçºãæ¢ã¾ã£ã¦ãããã¨ã«å¯¾ãâ¦
ApnsPHP ã§ããã·ã¥éç¥ããã®ã«ãµã¼ãå´ã«PEMå½¢å¼ã®è¨¼ææ¸ãå¿ è¦ã https://code.google.com/p/apns-php/wiki/CertificateCreation証ææ¸ãæ´æ°ãããã³ã« openssl ã³ãã³ããæã¤ã®ãé¢åãªã®ã§ãPHP ããã°ã©ã å ã§ä½æã§ããããã«ãããã¤ãã§ã«ç§å¯éµâ¦
ä¹ ã ã® Vagrant ãã¿ãVagrantfile ã« ãã¦ã³ãã¼ãå URL (box_url) ãè¨å®ãã¦ãããã¨ã§ã vagrant up å®è¡æã«ãã¼ã¹BOXãç¡ãã£ãå ´å㯠BOX ãèªåçã«ãã¦ã³ãã¼ããã¦ãããã®ã§ãååã® vagrant box add ãçç¥ã§ãã¦éå®ãã¦ãããè¤æ°äººã§ã®éçºâ¦
PostgreSQL 㧠plpgsql ãå©ç¨ããã«ã¯ CREATE LANGUAGE ããå¿ è¦ãããããè¤æ°åå®è¡ããã¨ï¼åº¦ç®ããã¨ã©ã¼ã«ãªã£ã¦ãã¾ãã "CREATE OR REPLACE" çãªãã¨ã¯ã§ããªããã©ããã°ã°ã£ãã¨ããããã®ãã®ãã°ãããããã¦ãã£ããhttp://wiki.postgresql.orâ¦
cake ã³ãã³ãå®è¡ããã¦ã¼ã¶ã¨ apache ã®ã¦ã¼ã¶ãç°ãªãå ´åããã£ãã·ã¥å¨ãã§ãã¼ããã·ã§ã³ã¨ã©ã¼ãçºçãã¦ãã¾ãã誰ã§ãæ¸è¾¼ã¿ã§ããããã«æ¨©éãè¨å®ããã«ã¯ãCache::config() ã« "mask" ã¨ãããã©ã¡ã¼ã¿ã追å ãã¦ããã¨ãããããã ã¾ããè¨å®â¦
CakePHP 2.3.0 ãæ£å¼ã«ãªãªã¼ã¹ããã®ã ãã Migrations ãã©ã°ã¤ã³ã® master ãã©ã³ãã§ã¯ 2.3.0 ã¯ãæªå¯¾å¿ãå ¬å¼ãªè§£æ±ºçã¨ãã¦ã¯ãdevelop ãã©ã³ãã使ãã¨ããã¨ã®ãã¨ãhttps://github.com/CakeDC/migrations/issues/107ã¨ãããã master ãã©ã³ãâ¦
Blueprint ã¿ã¤ããã©ãã£ã¼ããã©ã°ã¤ã³ã·ã¹ãã ãåããªã¼ã«ãã¤ãã£ã«æ´»èº http://www.blueprintcss.org/ TwitterBootstrap ã¬ã¹ãã³ã·ãããã¢ãã¯ä½æã¾ã§æ±ç¨æ§ãé«ãå¹ åºã層ããæ¯æ http://twitter.github.com/bootstrap/ 960 Grid System http://9â¦
PHPã§å¤é¨ããã°ã©ã ãå¼ã³åºãã«ã¯ exec() paththru() popen() proc_open() shell_exec() system() ãªã©ã®é¢æ°ã使ããshell_exec() ã¯ããå®è¡æ¼ç®å ããã¯ã¯ã©ã¼ã (``)ã ã®ã¨ã¤ãªã¢ã¹ã§ããããpopen(), proc_open() ã¯ãæ¨æºå ¥åºåãã¹ããªã¼ã ã¨ãã¦â¦
ã¤ãå¿ãã¦ãã¾ãã®ã§ã¡ã¢ãWindows 7 ã®å ´åï¼ C:\Windows\System32\drivers\etc\hosts
å®éã«ã¯ 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â¦