Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
CakePHPã§find使ãã¨ã SELECT * FROM t WHERE "id" = '1' AND (("status" = '1') OR ("flg" = '1')); ã¨ããSQLãæ¸ããããã° find('find', array( 'conditions' => array( 'id' => 1, 'OR' => array( 'status' => 1, 'flg' => 1, ), ), )); ã¿ãããªæãã§æ¸ãã¨æãã¾ãã ã§ãä»å2åã®ORã使ããããªã¨æã£ããã§ããã æ®éã«æ¸ãã¦ãã¾ã㨠find('find', array( 'conditions' => array( 'id' => 1, 'OR' => array( 'status' => 1, 'flg' => 1, ), 'OR' => array( 'status' => 2, 'flg' =>
CakePHP 1.3 ã«ã¦ã Model::find() ã®æ¡ä»¶å¼ã§ NULL ã®æ±ããèæ ®ããå¿ è¦ããã£ãã "IS NULL" ã表ç¾ãããå ´å æ¡ä»¶å¼: <?php $conditions = array('hoge' => null); Whereå¥: WHERE "hoge" IS NULL "IS NOT NULL" ã表ç¾ãããå ´å æ¡ä»¶å¼: <?php $conditions = array('NOT' => array('hoge' => null)); Whereå¥: WHERE NOT ("hoge" IS NULL) "IS NULL" ã®ä»ã«å¥ã®å¤ã OR æ¡ä»¶ã§æå®ãããå ´å æ¡ä»¶å¼: <?php $conditions = array( 'OR' => array( array('hoge' => null), array('hoge' => '1') )
EclipseãIntelliJãªã©ãç¡æãææãåãããªãããªéçºç°å¢(IDE)ãä¸ãå¸å·»ãã¦ä¹ ããã§ãããããã¹ãã¨ãã£ã¿ã¨å種ã³ãã³ãã©ã¤ã³ãã¼ã«ã§ãæ¥ã ã³ã¼ãã£ã³ã°ãã¦ãã人ãã¾ã ã¾ã å¤ãã¨æãã¾ãã 仿¥ã¯ããããªã³ãã³ãã©ã¤ã³ãã¼ã«ã§ã夿§ãããã³ãã³ãã®1ã¤grep(ãack)ã«å¤ãããã¼ã«ãag(the_silver_searcher)ãç´¹ä»ãã¾ãã å ¬å¼ãµã¤ã the_silver_searcher ããã¯ä½ï¼ grepãackã®ããã«æå®ããããã¹(ãã£ã¬ã¯ããªããã¡ã¤ã«)ãããã³ãã³ãã«æ¸¡ããããã¿ã¼ã³ã«ãããããè¡ã表示ãã¦ããããã¼ã«ã§ããMacã§ããã°brewãportsãLinuxã§ããã°aptãrpmã³ãã³ãã§ã®ã¤ã³ã¹ãã¼ã«ãå¯è½ã®ããã§ããç§ã¯æå ã®MacBook Airã«brewãå°å ¥ãã¦ããã®ã§ã
The page has timed out If this page does not reload automatically, please refresh your browser.
ã«ã¼ãã«ãªã©å¤§è¦æ¨¡ãªã½ã¼ã¹ã³ã¼ããæ¤ç´¢ãããå ´åãfindã¨grepã使ã£ãããã¿ã°ã¸ã£ã³ãã使ãã ãããEclipse使ãå ´åã¨ãç°è«ã¯ããã¨æããã©ã仿¥ã¯findã¨grepã®åããæã«ã¤ãã¦èª¿ã¹ã¦ã¿ãã æ®æ®µã¯xargsãåã¾ãã¦ã $ find . -name \*.c | xargs grep hogehogeã¨ããããã ãã©ãfindã®-execãªãã·ã§ã³ã使ã£ãå ´åã¨ã©ããããæ§è½å·®ãããã®ã ãããï¼ è©ä¾¡ç°å¢ã¯VMWare Fusionä¸ã®Ubuntu 11.04ãLinux kernel 2.6.28.10ã®fs以ä¸ã§ãã¾ãã¯æ¬¡ã®3ãã¿ã¼ã³ãæ¯è¼ãã¦ã¿ãã3忏¬å®ãã¦timeã®æè¯å¤ã示ãããããã対象ãã¡ã¤ã«ã¯ãã¡ã¤ã«ãã£ãã·ã¥ã«è¼ã£ã¦ããæãã $ time find . -name \*.c -exec grep wait_event_interruptible {
MongoDB is designed for store JSON-style objects. The database understands the structure of these objects and can reach into them to evaluate query expressions. Let's suppose we have some objects of the form: > db.persons.findOne() { name: "Joe", address: { city: "San Francisco", state: "CA" } , likes: [ 'scuba', 'math', 'literature' ] }
This was bugging me over the weekend: What is a good way to solve those Where's Waldo? ['Wally' outside of North America] puzzles, using Mathematica (image-processing and other functionality)? Here is what I have so far, a function which reduces the visual complexity a little bit by dimming some of the non-red colors: whereIsWaldo[url_] := Module[{waldo, waldo2, waldoMask}, waldo = Import[url]; wa
ã½ã¼ã¹ã³ã¼ã <?php // æ¥ç¶ $m = new Mongo(); // ãã¼ã¿ãã¼ã¹ã®é¸æ $db = $m->comedy; // ã³ã¬ã¯ã·ã§ã³ (ãªã¬ã¼ã·ã§ãã«ãã¼ã¿ãã¼ã¹ã®ãã¼ãã«ã¿ãããªãã®) ã®é¸æ $collection = $db->cartoons; // ã¬ã³ã¼ãã®è¿½å $obj = array( "title" => "Calvin and Hobbes", "author" => "Bill Watterson" ); $collection->insert($obj); // æ§é ãç°ãªãå¥ã®ã¬ã³ã¼ãã®è¿½å $obj = array( "title" => "XKCD", "online" => true ); $collection->insert($obj); // ã³ã¬ã¯ã·ã§ã³å ã®å ¨ä»¶ã®æ¤ç´¢ $cursor = $collection->find();
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
æ¡å¼µåãæå®ãã¦ãå帰çã«grepããããè²ã ãã£ã¦ã¿ãã ãããªæãï¼ ãããªããã§ãfindã使ã£ã¦æ¤ç´¢ç¯å²ãçµãããã xargsã使ãã¨ã % find ../ -name '*.c' | xargs grep hogeãã¯ãããã©ãã(éåº¦ã¯æ©ã) ã³ãã³ãç½®æã§ã % grep hoge $(find ../ -name '*.c')ã¡ãã£ã¨ãã£ããã zshã§ã % grep hoge ../**/*.cãããã manãçé¢ç®ã«èªãã§ã¿ãããªã㨠æ°å¹´ã®æãæµã manãçé¢ç®ã«èªãã ãã % grep hoge --include='*.c' -rãããããã åè Man page of GREP æ´æ°å±¥æ´ 2013/04/11 manãçé¢ç®ã«èªãã ã
CodeZineç·¨éé¨ã§ã¯ãç¾å ´ã§æ´»èºãããããããã¼ãã¹ã¿ã¼ã«ããããã®ã«ã³ãã¡ã¬ã³ã¹ãDevelopers Summitãããã¨ã³ã¸ãã¢ã®çããã¾ããã¼ã¹ãããããã®ã¤ãã³ããDevelopers Boostããªã©ããã¾ãã¾ãªã«ã³ãã¡ã¬ã³ã¹ãä¼ç»ã»éå¶ãã¦ãã¾ãã
ãã³ãã³ãããã³ããã windows XPã使ã£ã¦ããã®ã§ãããLINUXãªã©ã§ãããfindã³ãã³ãã¨åæ§ãªãã®ã¯ä½¿ããã®ã§ããããï¼ ã¡ãã£ã¨èª¿ã¹ã¦ã¿ãã¨ããè¦å½ããã¾ããã ããªããã¨ããåçã§ãçµæ§ã§ãããããããé¡ããã¾ãã
ããµã³ã¼ã«ã¹ã»ãã¸ã£ã¼ã¹ 試åãã©ã㼠大谷ç¿å¹³ 試åãã©ã㼠大谷ç¿å¹³ æç¸¾ãã©ãã¼ ãã¬ã¼ã¯ã»ã¹ãã«ãã©ãã¼ MLBãªã¼ã«ã¹ã¿ã¼ã²ã¼ã ãã©ãã¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}