Laravel5 ã試ããã¡ã¢ ä»ã®ãã¬ã¼ã ã¯ã¼ã¯ãå©ç¨ãã¦ãã人ããWebã¢ããªãä½æããã«ããã£ã¦æãã¦ããã¹ããã¤ã³ãã ãããã¯ã¢ãããã¦ã¿ã ã¤ã³ã¹ãã¼ã« ãã¼ã«ã«éçºç°å¢ã®æºå Laravel5ã¯ãPHPãNginxãMySQLãªã©å¿ è¦ãªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã¿ã®Vagrantãã¼ã«ã«éçºç°å¢ Homestead æä¾ãã¦ãã Homesteadã®ã»ããã¢ããæé ã«ã¤ãã¦ã¯ãLaravel 5 ãã¼ã«ã«éçºç°å¢ homestead æ§ç¯æé ã«ã¾ã¨ãã¦ãã Laravel ããã¸ã§ã¯ãã®ä½æ ãã§ã«PHPå®è¡ç°å¢ãããå ´åã¯ãComposerã§ããã¸ã§ã¯ããçæãã¦éçºãå§ãã Laravelã¤ã³ã¹ãã¼ã«æé ã¯ãDocumentationã®Installationãåç § $ composer create-project laravel/laravel --prefer-dis
Idiormã¨ã¯ PDOããã®ã¾ã¾ä½¿ã£ã¦æ¥åã·ã¹ãã ãçµãã§ããã®ã§ããã大ãããªãã«ã¤ãã¦ãã©ããªã£ã¦ããã®ã§ãã©ããã¼ã©ã¤ãã©ãªãæ¢ããã¨ã«ãã¾ããã 以åã¯Doctrineã使ã£ã¦ããã®ã§ãããä»ã®æ¥åã§ä½¿ãã«ã¯é«æ©è½ãããæããããã®ã§ãèãã©ã¤ãã©ãªãæ¢ãã¦ããã¨ãããIdiormã¨ããã®ãè¯ãããã ã£ãã®ã§è©¦ãã¦ã¿ããã¨ã«ãã¾ããã $user = ORM::for_table('user') ->where_equal('username', 'j4mie') ->find_one(); $user->first_name = 'Jamie'; $user->save(); $tweets = ORM::for_table('tweet') ->select('tweet.*') ->join('user', array( 'user.id', '=', 'tweet.use
2ç¹ã®ç·¯åº¦ã»çµåº¦éã®è·é¢ãæ±ããæ¹æ³ã¨ãã¦ãããã¥ãã(hubeny)ã®å ¬å¼ãã¨ãããã®ãããã¾ãã ãããã§è¦ã¦ããã¨è²ã ã§ã¦ãããã§ãããå ¬å¼ãæ¸ãã¦ãããµã¤ããè¦ã¤ããã®ã§å¿ããªãããã«ã¡ã¢ã ãã¥ããã®å ¬å¼ï½ã«ã·ãã¼ã«ï¼D D=sqrt((M*dP)*(M*dP)+(N*cos(P)*dR)*(N*cos(P)*dR)) D: ï¼ç¹éã®è·é¢(m) P: ï¼ç¹ã®å¹³å緯度 dP: ï¼ç¹ã®ç·¯åº¦å·® dR: ï¼ç¹ã®çµåº¦å·® M: ååç·æ²çåå¾ N: å¯é ç·æ²çåå¾ M=6334834/sqrt((1-0.006674*sin(P)*sin(P))^3) N=6377397/sqrt(1-0.006674*sin(P)*sin(P)) ãã ãããã¡ãã®è¨ç®å¼ã¯æ¥æ¬æ¸¬å°ç³»ç¨ã§ãã GoogleMapsã¯ä¸ç測å°ç³»ã使ç¨ãã¦ãã¾ãã®ã§ãããããåå¾ãã緯度çµåº¦ã使ã£ã¦è¨ç®ããã¨ãçµæããããå¯è½æ§
hal456ããããã¼ã¸ 注æï¼ æ¬æ¥ãå¿ãããããç§ã¯éçºã»æ´æ°ã«ã¯é¢ãã£ã¦ãã¾ããããã質åã«ã対å¿ãã¦ããã¾ããã ä¸è¨ã®URLã®æ¹ã ããå¼ãç¶ãã§ããã ãã¦ããã®ã§ãã©ãããã¡ãããå©ç¨ãã ããã ã©ã¤ã»ã³ã¹ã«å¾ãã°æ¹å¤ã¯èªç±ã§ãããæ¬ãã¼ã ãã¼ã¸ã§ã®ãã¦ã³ãã¼ãã¯åæ¢ãããã¾ãã使ãæ¹ãªã©ã«ã¤ãã¦ã¯ãåèã«ãããæ¹ãããããç¥ãã¾ããã®ã§ãå½é¢ã®éãæ®ãã¦ããã¾ãã é·ããã®ãæ顧ãèª ã«ãããã¨ããããã¾ããã èªåãä½æããããã°ã©ã ããå¤ãã®æ¹ã«ä¾¿å©ã«ä½¿ããããã¨ã¯ãã¨ã¦ãããããã£ãã§ãã 2018/1/28 æ·±è¬ QdmailãPHP7.0ã«å¯¾å¿ããã Qdmailã·ãªã¼ãºã®githubçã§ããPHP5.4å¯¾å¿ qdmailãæ°ããã®PHPã§ãåãããã«ãã Qdmailã¨ã¯ Qdmailã¨ã¯ãPHPã®ãã«ããã¤ãç°å¢ï¼ç¹ã«æ¥æ¬èªï¼ã«ã¦ããæååãããªãããç°¡åã«"ãã³ã¡
åéã«æãã¦ããã£ããOpenCVãPHPãã使ã£ã¦ã¿ãã®ã試ãã¦ã¿ãã FreeBSD portã ã¨ãopencv-0.9.6_1ãªã®ã§ãã½ã¼ã¹ããã³ã³ãã¤ã«ã http://sourceforge.net/projects/opencvlibrary/ pythonã¯å ¥ãã¦ãªãã®ã§ã¨ããããå ¥ãã¦ã¿ã¦ã portinstall lang/python cd /usr/local/src tar xvfz opencv-1.0.0.tar.gz cd opencv-1.0.0 ./configure make make install | tee install.log å¼ãç¶ãã廣å·ããã®ããã°ããface_detect-0.0.1.tar.gz ãã http://hirokawa.netflowers.jp/entry/4874/ cd /usr/local/src tar x
ãã®URLã®ãã¼ã¸ã¯è¡¨ç¤ºãããã¨ãåºæ¥ã¾ããã§ããã IQãµã¼ãã¼
Openpear is a PEAR Repository Channel and Subversion Hosting Service. since November 2008 以åããã使ãã§ããï¼ ä»¥åã® Openpear ãã使ãã ã£ãæ¹ã¯ã以ä¸ã®ã³ãã³ããå®è¡ããå¿ è¦ãããã¾ã pear channel-update openpear.org ãã£ã³ãã«ãç»é²ãã pear channel-discover openpear.org å©ç¨å¯è½ãªããã±ã¼ã¸ããªã¹ããã pear remote-list -c openpear ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã pear install openpear/package_name ãã¼ã¸ã§ã³ãå®å®æ§ãæå®ãã¦ããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ãã pear install openpear/package_name-1.0.0 pear insta
äºåå·ã§ãã æºå¸¯ãµã¤ãã®è¦æ ããã·ãã¥ã¬ã¼ãããã¦ã§ãã¢ããªä½ãã¾ãããã¨è¨ã£ã¦ããå®éã«ä½ã£ãã®ã¯ããããå年以ä¸åã§ãæç´ããã¦ããå ¬éãããã¨æã£ã¦ãããçµå±ãguid=ONããä»ã足ãããããã§ãã¨ã¯æ¾ç½®ã ã£ãã®ã§ããããã«ããå æ¸æããã¨ã ä»»æã®ãããã§ãªã¯ã¨ã¹ããã¦ãã¬ã¹ãã³ã¹ã®çµµæåã¨ãå¤æãã¦ãµã¤ãã®è¦æ ãã確èªããã¨ãããã®ã§ãããããã¯ããããExt JSãããã£ã¦ãé ã«ãExt JSã§ããããã®ä½ãã°ããæãã«ãªãããããï¼ã¨ãããã¨ã§ãä¸åº¦2.0ããªãªã¼ã¹ãããé ã«ãã¢ç¨ã«ä½ã£ããã®ãªã®ã§ããï¼ãªã®ã§ãããããå年以ä¸åï¼ å®æ©ãã¹ãã®ä»£ç¨ã«ãªãããã§ã¯ããã¡ããããã¾ããããçµµæåãå«ãããã«ããã£ãªã¢ã§ã®è¦æ ããæ軽ã«ç¢ºèªãããã¨ããªã©ã«ãããã¨ä¾¿å©ã«ä½¿ãã¦ãããã¾ãã ã¹ã¯ãªã¼ã³ã·ã§ãã æ©ç¨®ãã¨ã®ããªã»ããã®ãããã°ã«ã¼ããYAMLãã¡ã¤ã«ã«æ¸ãã¦ããã¦
ã¿ãããªã¿ã¤ãã«ã®è¨äºã Digg çµç±ã§çºè¦ããã¼ãã·ã¼ã代ããã«ã¨æãè¶ è¨³ã*1 A Software Architect PHP æé©å ãã¹ããã©ã¯ãã£ã¹ï¼ 01. static ã«ã§ããã¡ã½ãã㯠static ã¨ãã¦å®£è¨ããããï¼4åéãï¼ 02. echo ã®æ¹ã print ããéãã 03. echo 'æ','å'; ï¼ã«ã³ãåºåãï¼ã®æ¹ãã'æ'.'å' ï¼ãããé£çµï¼ããéãã 04. ã«ã¼ãã®æ大å¤ã¯ãã«ã¼ããå ãã§ã¯ãªããåãã«ã»ãããã¦ãããã 05. 大ããé åã®ãããªå¤æ°ã¯ unset() ãã¦ã¡ã¢ãªã解æ¾ãããã 06. ãã¸ãã¯ã¡ã½ããï¼ä¾ï¼ __get, __set, __autoloadï¼ã¯ä½¿ç¨ãé¿ãããã 07. require_once ã¯ãã¤ã³ã¹ããªã®ã§ãã 08. include ã require ã§ãã¡ã¤ã«ã¯ãã«ãã¹ã§æå®ãããã 09
ã¾ãã¯é£è¼è¨äºã§ PHP ãç解ãããï¼ [Think IT] ä¸æ°ã«è¦ããPHPï¼ ã¾ã㯠PHP ã®åºç¤ãæ¦å¿µããå¦ã³ã¾ããé¢é£ããé£è¼è¨äºãè±å¯ãªã®ã§ä¸æ°ã«èªã¿è¾¼ãã§ãã¾ãã¾ãããã PHPããã°ã©ãã³ã°ã®åºç¤ãå¦ã¼ãï¼1/2ï¼ ï¼ ï¼ IT Apache + MySQL + PHP ã§ã¦ã§ããµã¼ãã¹éçºã®åæãå¦ã³ã¾ãã PHPã®ã³ãã¥ãã㣠ãã¼ã¿ã«ãµã¤ããPHPããï¼ã PHPã«é¢ããææ°ãã¥ã¼ã¹ãéçºã«ä½¿ããã¡ãã£ã¨ãã Tips ãªã©ãå ¬éãQ&Aæ²ç¤ºæ¿ãå å®ãã¦ãã¾ãã ãã£ã¨ä¾¿å©ã« PHP ã使ãã«ã¯ï¼ ãä¸æ°ã«è¦ããPHPï¼ã使ããã¹ã¯ãªããï¼ PHPã®ã©ã¤ãã©ãªã¼ã§ããPEARãããã¬ã¼ã ã¯ã¼ã¯ãç´¹ä»ããã¦ãã¾ãã é£è¼ï¼CakePHPã§é«éWebã¢ããªéçºï½gihyo.jp ⦠æè¡è©è«ç¤¾ CakePHP ã¨ãããã¬ã¼ã ã¯ã¼ã¯ã使ã£ãçéãµã¤ãéçºã®ææ³ããããã
Tipså ¬éãæµè¡ã£ã¦ãã¿ãããªã®ã§ããã«ä¹ã£ã¦ã¿ã¾ãã é¢æ°ãã¡ã½ããã®å¼æ°ãå¤ããªãã¨ãå¼ã³åºãå´ã§ä½ããã£ã¦ããã®ãåãããªã表è¨ã«ãªããã¡ã§ããé¢æ°ãå®ç¾©ããéãã©ããçç¥å¯è½ã«ãããã§å¼æ°ã®é çªãæ©ãã ããã¦â¦ã ãã¨ãã°ãããªé¢æ°ããã£ãã¨ãã¾ãã function getItemsByMode($key, $mode = DEFAULT_MODE, $limit = 0, $offset = 0) { ... } å¼ã³åºãå´ã¯ $items = getItemsByMode($myKey, MODE_A, 20); ã ã£ãã $items = getItemsByMode($myKey, MODE_A, 20, 40); ãªããã§ã20ã¨40ã®ã©ã£ã¡ãlimitãåããã«ãããã¨ãã®ä¸ãªãã§ããããã§ä»åã®æ¹æ³ã¨ãªãããã§ããããã®åã«ã²ã¨ã¤åæºåãä»åã¯å¼æ°ã«é£æ³é åã使ã
APIãæä¾ããã¦ããªããµã¼ãã¹ãã欲ããæ å ±ã ããåå¾ããã«ã¯ãHTMLãªã©ããèªåã§ã¹ã¯ã¬ã¤ãã³ã°ãè¡ãããããã¾ãããPHPã§ã®ã¹ã¯ã¬ã¤ãã³ã°ã«å½¹ç«ã¤ã©ã¤ãã©ãªãªã©ãã¾ã¨ãã¦ã¿ã¾ããã PerlãRubyã«ã¯è²ã ã¨ä¾¿å©ãããªãã®ãè¦ã¤ããã®ã§ãããPHPã«ã¯ãªããªãããã¨ãã£ããã®ããªãã§ããã Webã¹ã¯ã¬ã¤ãã³ã°ã©ã¤ãã©ãª HTMLScraping HTMLãXMLåãã¦DOMãXPathã§æä½ã§ããã¯ã©ã¹ã主ã«HTTP_Request+HTMLParser(XML_HTMLSax3ãå«ã)/Tidy+Cache_Liteã¨ããæ§æã§ãã¹ã¯ã¬ã¤ãã³ã°ã«å¿ è¦ãªãã®ãä¸éãæã£ã¦ãããã©ã¤ã»ã³ã¹ã¯LGPLä»ã WebScraper ã·ã³ãã«ãªæ±ç¨ã¹ã¯ã¬ã¤ãã³ã°ã¯ã©ã¹ãHTTP_Client+HTMLParser(XML_HTMLSax3ãå«ã)ã¨ããæ§æã§ãXPathã§è¦ç´ ãæ½åºã§ã
[追è¨]id:hetimaã«ææãããã32bitã¢ã¼ããã¯ãã£ã§ã®åé¡ãä¿®æ£ã大æè¬ã æºå¸¯é»è©±ããã®Webã¢ã¯ã»ã¹ã²ã¼ãã¦ã§ã¤ã®IPã¢ãã¬ã¹ããã æºå¸¯ãã£ãªã¢ãå¤å¥ãããå ´åãããã é常ã¯ãid:tokuhiromã«ãã Net::CIDR::MobileJP(WWW::MobileCarrierJP)ã使ãã¨ããã¨æãã DSASéçºè ã®é¨å±:æºå¸¯ã²ã¼ãã¦ã§ã¤ã®IPã¢ãã¬ã¹å¸¯æ´æ°ãå¹ççã«ç¢ºèªããæ¹æ³ http://d.hatena.ne.jp/tokuhirom/20071207/1196989588 YAMLãåºåãããã®ã§ããã¾ãã¾ãªç°å¢ã§å©ç¨ãã§ãããï¼ ä»åãPHPã§æºå¸¯ãã£ãªã¢ãå¤å¥ãããã¨æã£ããã ãã©ã PHPã§YAMLãèªãã§ãã®ä¸èº«ããã¹ã¦æ¤æ»ãããªãã¦ãã ããã ãï¼ ã¨æ²¸ãç«ã¤ãããªå¼·ãè¡åãã ã¨ããããã§ãcidr-mobilejpã¨ããPythonã¹ã¯
ãªã«ãã¨ä¾¿å©ãªã¡ãã»ã³ã¸ã£ã¼ã§ããããèªåã®ãµã¼ãã¼ã§éç¨ããããã¨ãããã¼ãºãããã ãããããããã¨ãã«ä¾¿å©ãããªã®ãajax imã ã ãã®ãµã¤ãã§ã¯ãµã¼ãã¼ã«ã¤ã³ã¹ãã¼ã«ãããAjaxãå©ç¨ããã¡ãã»ã³ã¸ã£ã¼ããã°ã©ã ããã¦ã³ãã¼ããããã¨ãã§ããï¼ãµã¼ãã¼å´ã¯PHPã§åä½ï¼ã ãã¢ã試ãã¦ã¿ãã°ãããããã¹ã¿ã¤ãªãã·ã¥ãªã¤ã³ã¿ã¼ãã§ã¼ã¹ã¨è»½å¿«ãªåä½ããªããªãå°æ°å³è¯ãã ãµã¤ãã®ã¦ã¼ã¶ã¼åãã«ã¡ãã£ã¨ãããã¼ã«ãæä¾ãã¨ãã£ãå©ç¨ãå¯è½ã ãããã¾ãã½ã¼ã¹ãã¨ãã¦ã³ãã¼ãã§ããã®ã§ããã°ã©ãã³ã°ã®åå¼·ã«ãæé©ã ã 便å©ãªãã¼ã«ãèªåã®ãµã¼ãã¼ã§æä¾ã§ããããã«ãããããããçºæ³ã¯æªããªãã§ããã
å®å ¨æ§ãããã¾ããfineã使ã£ã¦ã¿ãã¨ããµã¯ã©ãããã®ã§ãããæãã¾ãã ããããªãä¾¡æ ¼å¸¯ã§ããããéãç¡é§ã«ããã®ãç¹å¾´ã§ãããã®ãµã¤ãã使ã£ã¦ãããªã©ãä¿¡é ¼æ§ã®é«ãå£ã³ãæ å ±ãè©å¤ãæ¤ç´¢ãã¦ããã¨ããã£ã´ãã«æ¸ãã¨ç»é²ãæ¸ã£ã¦ããã®ãããã©ãããã¨ããæãã¤ããªãã¨ãã«æµè¡ãç©ãããã£ããµã¯ã©ãããå¯è½æ§ãé«ãFacebookç³»ã®å£ã³ãæ å ±ãããåºä¼ãããã¨ããåçããã¹ãã¢ã³ãµã¼ã¨ãªã£ã¦ããã ãã§ãã ãããã®ãã¨ãäºã確èªãã¦ããã¨ããããã§ãããã¡ãããã«ã¿ãããªæ°ã®ã¡ãã»ã¼ã¸ãéã£ã¦ããçç±ã¨ãã¦ã¯ãç·æ§ã«å¯¾ãã¦ãããªããã«é¨ãããå±éºæ§ãããã¾ãã fineã¢ããªã®éå¶æ°ããLINE交æç¦æ¢ãã¦ããã ãã®è©±ã§ãã ãããã®åºä¼ãç³»ãç¡æã¢ããªãFacebookç³»ã®ãããã³ã°ã¢ããªã§ããå©æ´»ç®çã§ã¯è©æ¬ºè¢«å®³ã«éãå±éºæ§ãããã¾ããã 使ç¨ãç¶ãã¦ããã®é½èã¡ããã¯åºã¦ãããµã¯
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}