2014-01-01ãã1å¹´éã®è¨äºä¸è¦§
ä»åã¯MySQLã§ãã ããããç°å¢æ§ç¯ãè½ã¡çãã¦ãã¦ããã¦ãã¦ã½ã¼ã¹ã§ãèªããããªã£ã¦æã£ã¦ããæã«ãã½ã¼ã¹ã ãããããããªããããªã¬ã¬ã·ã¼ãªã³ã¼ããªããã§ããã PHPãªãã§ãã$dataã ã£ãããã©ãããå¤ãå ¥ã£ã¦ãããã³ã¡ã³ããæ¸ããã¦ããããâ¦
æè¿ããã°ã©ã ããé¢ãã¦ããã©å¤§ä¸å¤«ããªãã ã£ã¦ãã¨ã§ä»æ¥ããµã¼ããããããã¦ãã¾ãã ãããæãªããããªããã§ãã ä»æ¥ã¯Apacheã®ãã°ã«ã¤ãã¦ã§ãã ã¢ãã¤ã«ã²ã¼ã ã ã£ããã ã¨ãä¼å¡å¶ãµã¤ãã ã£ããã ã¦ã¼ã¶IDãåå¨ãããµã¼ãã¹ã§ã¯KPIç¨ã«â¦
ãã¦èªåã®ããã°ã©ã ããããªãã ãã©ãã¹ãé§åéçºã£ã¦å¤§åã§ãããã å·¥æ°ããããããã¹ããã£ã¦ãã¨æéãããã£ã¦ç¶æ ãªã®ã¯éã æ¿ç¥ãªã®ã§ãã ããããã ãã§methodåä½ã§åããã¦ã³ã¼ããæ ä¿ã§ããã®ã¯ã§ããã§ãã å®éã«ã¯ãã¹ããã¡ã¼ã¹ãã§ãâ¦
ä»æ¥ã¯ç°¡åã«ã æè¿vmdkãã¡ã¤ã«ãé ãã¦å¾©å ãã¦äºã ãªã㦠å¥ã®äººãä½ã£ãã¤ã¡ã¼ã¸ã復å ãã¦ä»®æ³ç°å¢ãä½ããã¨ããã£ããã§ãã ã¾ãæ示éãã«ãã£ã¦ãã¨ã©ã¼ãåºããããããã§ããã ããã§ãã¾ã«ä½¿ãã®ãhistoryæ©è½ # history | grep hogehoge ãªâ¦
ãããªè¨å®ãããã¨ããªããããã£ãããã ã¨æããã®ã»ã©åå¿é²ã«æ¸ããã®ã§ããã VirtualBoxã使ã£ãããã¦ããã¨sshã§ãã¼ã«ã«ããæ¥ç¶ããã¾ã§ãã®å°ããªç»é¢ã§å¯¾å¿ããªããã°ãããªãã ã¨ã¯ããifconfig -aãªãã¦ãã£ãã¨ãethã®æ å ±ãé ãã¦è¦ããªâ¦
ãããããã¤ã§ãã ãããã«rm -rf / ã¨ãã£ã¦ããä¸çãå´©å£ãããããªååéæ³ãæã£ã¦ãã¾ãã¨ãªãã¨ããªãã¾ãããããã£ã¬ã¯ããªã¨ããã¡ã¤ã«ã§ããã°"ããç¨åº¦"復å ãå¯è½ãªããã§ãã ã¨ã¯è¨ããããããã§ãããã ã¨ãããã¨ã§ããã¹ãç¨ã®ãã¡ã¤â¦
ç°å¢ãæ§ç¯ãã¦ããæã«APCã£ã¦ã®ããã£ãã ãªãã ããã»ã»ã»ã£ã¦æã£ã¦ããã§ãã æããAPCã£ã¦èãããªãã¨ã§ããPHP5.5ããã¯é¢ä¿ãªãããæ°ã«ããªãã¦ãããã¿ãããªãã¨ããã£ã¦ 調ã¹ã¦ãªãã£ãã®ã§ã APCã£ã¦ããã®ã¯ãªãããã£ã¦ããã®ãPHPã®ããâ¦
ä»ã®ããã¸ã§ã¯ãã§ã®å¼ãç¶ãæSubversionã使ã£ã¦ããã®ã§ ã¨ãããããã¼ã«ã«ã®ç°å¢ã«Subversionãå ¥ãããã¨æã£ãã®ã ã yumã§å ¥ãããã¨listãè¦ã¦ã¿ãã¨1.6ããå ¥ã£ã¦ããªãã ã©ãããªãææ°çã使ãããã®ã§WANdiscoã¨ããã¨ããã®ãã¤ã使ã£ã¦ã¤ã³â¦
æè¿Capistranoã§ãããã¤ãããããã«Rubyãå¿ è¦ã«ãªã£ãã®ã§ å¿ è¦ã«è¿«ããã¦ã¤ã³ã¹ãã¼ã« ã©ãã«ãæããRubyã®ã¤ã³ã¹ãã¼ã«ã«ã¯ä¾åãããªãããã§ã¤ã¾ãããã¨ãå¤ãã£ãã PHPã¿ãããªæãã§Rubyãããã±ã¼ã¸ç®¡çãããããã«RVMãå ¥ãããã¨ã«ã ã¾ãâ¦
CentOS 6.6 ã®ç°å¢ãä½ã£ããã®ã® MySQLã¤ã³ã¹ãã¼ã«ãããã¨ãããããã©ã«ãã5.1ã ã£ãã ä»ä½ãããç°å¢ã¨ãã¦ã¯MySQL5.6ãªãã ããªã ã½ã¼ã¹ããã¤ã³ã¹ãã¼ã«ã£ã¦ããã©ããªã¼ã yumã§ããã£ã¨å ¥ããããªãã¨æã£ãã®ã§æé ãã°ã ã¾ãã¯ç¾ç¶ãç¢ºèª # râ¦
ãã£ãããªã®ã§sambaã®æ§ç¯ãã ãªãã ããã ã³ãã³ãã©ã¤ã³ã®ã»ãã楽ãªãã ãã© ãã£ãããã£ãã§çµæ§ä¾¿å©ãªãã§ã ã¡ãªã¿ã«ãã¼ã«ã«ã®IPã¯ã192.168.56.10ãã§SSHæ¥ç¶ã§ããç¶æ ã§èª¬æãã¾ãã ã¾ãã¯ãç´æãªã®ããªã ã¤ã³ã¹ãã¼ã«ãã度ã«ãããã¨ã SEâ¦
æ¯åå¿ããã®ã§ Virtual Boxãã¤ã³ã¹ãã¼ã«ãã¦CentOS6.6ãminimalã¤ã³ã¹ãã¼ã«ã㦠ãã¡ã¤ã«ï¼ç°å¢è¨å®ï¼ãããã¯ã¼ã¯ï¼ãã¹ããªã³ãªã¼ãããã¯ã¼ã¯ã¿ãã«ã¯æ¢ã« ãVirtualBox Host-Only Ethernet Adapterãããã£ãã ä¸ã確èªãã¦ã¿ã㨠ã¢ããã¿ã¼ IPv4â¦
ä»äºã§ãããã§ãããèªåã®ã·ã¹ãã ã§ãã¨ã©ã¼ãã°ãæµãæ 大æµãªã¢ã«ã¿ã¤ã ã§è¦ãããã®ã§ãã ãªã®ã§tail -fãªã©ã®ã³ãã³ãã使ã£ã¦è¦ãããã§ãã æ´å½¢ããã¦ããªãä¸ã¤ãæµãããã°ã追ãã®ã¯ç®ãç²ãã¾ãã ã¾ãæ´å½¢ããç¶æ ã§åãã ããã£ã¦è©±ãªã®ã§â¦
ä¸é¨LinuxãMac OS Xã§ä½¿ç¨ããã¦ããbashã«èå¼±æ§ Shellshockãè¦ã¤ãã£ãåé¡ã§2014å¹´9ææ«çµæ§ãã¿ãã¿ããã ãã®æCentOSãä½å°ã使ã£ã¦ããã®ã§å¯¾çãè¡ã£ãã ãã®æã®ã¡ã¢ã bashã®èå¼±æ§ã«ã¤ãã¦ã¯ä»¥ä¸ã®ãµã¤ããããããããã http://www.nca.gr.â¦
è¤æ°äººã§éçºããããã¦ããã¨ãä»ã®ã³ãããããã¼ã¸ãããpullãã¦ãããã»ã»ã»èªåã®ã³ãããããå 容ãæ¢ãã®ã«ä¸è¦å´ãã¾ãã ãããªæã«å½¹ç«ã¤git logã®å±¥æ´æ¤ç´¢ã Author(commitãã人)ãçµã£ã¦è¡¨ç¤º git log --author=hoge commit 6054dfa56d1f6ad1f6â¦
gitã使ã£ã¦ããã¨git diffãå¤ç¨ãã è¦ã¯å¤æ´ç¹ã®å·®åãè¦ããã ãã©ãã½ã¼ã¹ãå¤æ´ãã¦diffãè¦ãåã«ã¯ãããã ãã© ã¤ã³ããã¯ã¹ã«ç»é²ããå ´ådiffãè¦ããã¨ãã¦ãresetããªãã¨è¦ãã¦ãããªãã git addãã¦ã¤ã³ããã¯ã¹ã«ç»é²ããå¾ã§ãdiffãè¦ãâ¦
å½ããåã®è©±ã§ããã åè¨èªããã¬ã¼ã ã¯ã¼ã¯ã®é¸å®ãDBã®ããã©ã¼ãã³ã¹èª¿æ» ãªãã§ãããã ãã©ã大éã®ãã¼ã¿ãinsertãããsaveããããããæã«æéãå³ãã㨠ãã¡ããinsertã ããããªãã¦selectãgetããã¨ããã ãããªæã«æ°å件ã®ãã¼ã¿å ¥ãã¦ã¿â¦
æè¿å¿ è¦ã«è¿«ããã¦perlã使ããã¨ããã°ãããã ç¨éã¨ãã¦ã¯tailããshellå ã§ã¡ãã£ã¨ä½¿ã£ããã ããã¾ã§å¤æ§ã¯ããªããã©ã使ããã«ããããã¨ã¯ãªãã¨æã ä»ä½¿ã£ã¦ãããµã¼ãã§perlã³ãã³ãã§è²ã ãã£ã¦ã¿ããã¨ã æ©éä»ä½¿ã£ã¦ãããµã¼ãã§ã¯perlã¯â¦
Git Repositoryã¯è²ã ã¨ãµã¼ãã¹ãããã code breakãBitbucketããã¡ããçéã®GitHub ä»åã¯èªåã§å»ºã¦ããï¼ã©ãããªã使ãããããã®ãããã éå ¬éè¨å®ãå¯è½ã§ãMergeRequestãpullRequestãããã«ã³ã¡ã³ããä»ãããããããªãã®ã ãããªãã¨ãã£â¦
æ¯æ¥æ´æ°ããã®ã¯é£ãããã© ãã¯ãæ¥ã ã®ä»äºã§ä½ããã£ããæ¸ãçãã¦ããããã ç¶ç¶ã¯åãªãã ã¨ãããã¨ã§ä»åã¯shellã§ãã ã¨ããä»äºã§ç°¡åãªshellã¹ã¯ãªãããæ¸ããã¨ã«ãªãã¾ããã ã¨ãããããã©ãããããããå®è¡ã§ããç°¡åãªããã°ã©ã ã£ã¦â¦
ã¾ã NASãç¨æã§ããªã ãã¨ãã£ã¦å ±æãã£ã¬ã¯ããªã¯æ¬²ããã ã¨ãããã¨ã§åãæ¥ãæ°ããã¦ã¼ã¶ã§sshæ¥ç¶ã¯ããããsftpã®ã¿ã§æ¥ç¶ãã æå®ãããã£ã¬ã¯ããªã®ã¿æ¥ç¶ãããæ¹æ³ã§ãã ã¾ãã¯æ°ããã¦ã¼ã¶ãä½æãã¾ãã æ°ããã¦ã¼ã¶ã¯æçµçã«/home/sftpâ¦
ä»ã®ä»äºã§ã¯ã«ã¼ã«ä¸ããããªãã©ã³ããè¡ãæ¥ããªããä½æ¥ãããã¨ãå¤ãã§ãã ãããªæããçºçããã®ããä½æ¥ä¸ã«æ¥ã«å¥ãã©ã³ãã§ä½æ¥ããªãã¨ãããªãã¿ãããªã ãããä½æ¥ä¸ã§ä»commitããããªãã»ã»ã» ãããªæã«ã¯git stashã使ãã¾ãã ã¾ãã¯æ°â¦
cakePHP LazyModelå°å ¥ LazyModelã®å°å ¥ã¯ã¨ã¦ãç°¡åã§ãã ãããCakePHPã使ã£ã¦ãã¦ãæé©åãèãã30åã§ãæéãããå ´åã¯å°å ¥ãã¦ã¿ã価å¤ãããã¨æãã¾ãã cakePHPã§éçºãè¡ãå ´åãä¸è¦æ¨¡éçºã«ãªã£ã¦ããã¨modelãå¤ããªã£ã¦ããã¨æãã¾ãã â¦
cakePHPãå¼ã£ã¦ãã¨ãã使ãåºåã§print_rãvar_dumpããã¦å¤æ°ã®ä¸èº«ã確èªãããã¨ãããã ä½ããããã§åºåããã¨ããã§åºã¦ããã®ã¯ { ["userData"]=> array(1) { ["TestDao"]=> array(3) { ["USER_ID"]=> string(1) "1" ["NAME"]=> string(9) "test_nâ¦
èªåã¯Mac Book Airã§ä½æ¥ããããã¨ãå¤ãã®ã ãã©ãä½æ¥ãã¦ãããã¡ã«.DS_Storã._xxxxã¨ãããã¡ã¤ã«ãä½æããã¦ãã¾ãã ãã£ããè²ã ã¨ãã£ã¬ã¯ããªãåãã¦ã¾ã¨ããã¨ããã§ãåããããªãã¡ã¤ã«åã®é ããã¡ã¤ã«ãã§ãã¦ãã¾ããã¨ãããã ã©ãè¦â¦
CakePHPã§ä½¿ãã便å©ãªã³ãã³ã cake ã³ãã³ãã«ã¤ã㦠使ãæ¹ã«ã¤ãã¦ã¯ä»¥ä¸ã®å ¬å¼ãããããããã®ã§ãã å ¬å¼ã«æ²¿ã£ã¦è¨å®ãã¦ããã¾ãã CakePHP ã³ã³ã½ã¼ã« ã¾ãCakePHPãæå®ã®ãã£ã¬ã¯ããªã«è¨ç½® ä»åã¯ä»¥ä¸ã®pathã«é ä¸ã«appãè¨ç½®ããã¨ä»®å®ãã説â¦
ä»åã¯Cakephpãã使ã£ã¦ãã£ã¬ã¯ããªæ´çã«ã¤ãã¦ã§ãã ä»äºã§ã¯Facadeãã¿ã¼ã³ã使ãäºãå¤ã Facadeãã¿ã¼ã³ãåãå ¥ããã«ã¯ãã£ã¬ã¯ããªã®æ´çãå¿ é ã«ãªã£ã¦ãã¾ãã Facadeãã¿ã¼ã³ã«ã¤ãã¦ã¯ä»¥ä¸ãåèã« Facade ãã¿ã¼ã³ - Wikipedia ä½ãããããâ¦
ä»äºã§PHPã使ãäºããã£ã¦ãCentOS6ã®ç°å¢ã«PHPãã¤ã³ã¹ãã¼ã«ããã $ php -v PHP 5.3.3 (cli) (built: May 7 2012 20:13:47) Copyright (c) 1997-2010 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies ...å¤ãã§ããã ã¨â¦
ä½æ¥ä¸ã«ç¨¼åãã¦ããDBããselectã¦ã¼ã¶ã§dumpãããã¨ãããæãããã MyISAMãªãåé¡ãªããã ãããã©ãInnoDBã ã¨transactionã®é¢ä¿ã§ãã¼ãã«ããã¯ããã¦ãã¨ã¨ã©ã¼ãåºã¦ãã¾ãã Got error: 1044: Access denied for user 'select_user'@'localhostâ¦
æ°ãããã©ã³ãã«git merge --squash BRANCHESã¨ã git reset HEADå¾ãæ°ãããã¡ã¤ã«çãæ¶ãããã¨ãgit statusã§è¦ã㨠Untracked filesã¨ãªã£ã¦ããã ãããæ¶ãå ´åã¯ãcleanããããã ãã©ã ä¸åº¦ä½ãæ¶ãããdry runã§ç¢ºèªãããã æå³ããªããã®ãâ¦