社å åå¼·ä¼è³æ 追è¨: 2013-10-31 ã¤ãã£ãã§ææ( https://twitter.com/akuraru/status/395822183777202176 )ãåããã®ã§å ¥ãåéåã®ãã¼ã追å ã®èª¬æã®æãä¿®æ£ãã¾ãããRead less
社å åå¼·ä¼è³æ 追è¨: 2013-10-31 ã¤ãã£ãã§ææ( https://twitter.com/akuraru/status/395822183777202176 )ãåããã®ã§å ¥ãåéåã®ãã¼ã追å ã®èª¬æã®æãä¿®æ£ãã¾ãããRead less
ã¯ã¦ãªããã¯ãã¼ã¯ã®é¢é£ã¨ã³ããªæ©è½ã§ã馴æã¿ã®Â Preferred Infrastructure ãããããªã¼ãã³ã½ã¼ã¹ã§ Jubatus ã¨ããã¬ã³ã¡ã³ãã¼ã·ã§ã³ã¨ã³ã¸ã³ï¼ã²ã¨ãã²ã¨ãã®å¥½ã¿ãå¦ç¿ãã¦ããã®äººã«ãã£ãã¢ã¤ãã ãæ示ããããã®ã½ããã¦ã§ã¢ï¼ãå ¬éãã¦ãã¾ããï¼ãã£ã¨è©³ãã話ã¯ãã®ã¸ããè¦ãã¨ããããããã¾ãããï¼ ãã®ã¨ã³ã¸ã³ã¨ Ruby On Rails ãå©ç¨ãã¦ãé²è¦§è ã®å¥½ã¿ã«ãã£ãããããã¢ãã¡ãæ¨è¦ãããµã¤ããä½ã£ã¦ã¿ã¾ããã æ¨è¦ã«ä½¿ãããã®è©ä¾¡ãã¼ã¿ãã¾ã å°ãªããããæ¨è¦çµæã¯ããã²ã¨ã¤ããããã¾ããããå¤ãã®äººããããã診æã試ãã°ããã¼ã¿ãèç©ããã¦ããããã®ç²¾åº¦ãä¸ãã£ã¦ããã®ã§ãèå³ã®ããæ¹ã¯æ¯é試ãã¦ããã ããã°ã¨æãã¾ãã Jubatus ã¨ã¯ ãã¨ãã¨ãã®ã¨ã³ã¸ã³ã¯ãã¬ã³ã¡ã³ãã¼ã·ã§ã³ãè¡ãããã®è¨ç®ããå¤ãã®ã³ã³ãã¥ã¼ã¿ã§åæ£å¦çãã¤ã¤çµæã
ç®çï¼èªè¨¼æ©è½(ã¦ã¼ã¶ã¯äºãDBã«ç»é²) åè http://starryskylogic.blogspot.jp/2012/04/ruby-on-rails32.html 1.Gemfileã«bcryptrubyã追å Gemfileå ã®gem 'bcrypt-ruby', '~>3.0.0~ã®ã³ã¡ã³ãã¢ã¦ããå¤ããä¸ã§bundle install 2.User modelã®ä½æ rails g model user login_name:string password_digest:string rake db:migrate â»password_digestã®ã«ã©ã åã¯å¤æ´ãã¦ã¯ãããªã 3./app/model/users.rbã«has_secure_passwordã追å class User < ActiveRecord::Base has_secure_password at
軽éã»é«éãªãã¼ã¿ãã¼ã¹SQLiteãPythonããæ±ãããã®ã©ã¤ãã©ãªã ã¤ã³ã¹ãã¼ã« Python2.5ããæ¨æºã©ã¤ãã©ãªã«å ¥ãã¾ããã ã¤ã³ã¹ãã¼ã«ä½æ¥ã¯ä¸è¦ã§ãã 使ç¨æ¹æ³ sqlite3ãã¤ã³ãã¼ããã #!python2.6 # -*- coding: utf-8 -*- import sqlite3 ãã¼ã¿ãã¼ã¹ãä½æãã con = sqlite3.connect("data.db") ãã¡ã¤ã«ããã§ã«åå¨ããã¨ãã¯ãã¡ã¤ã«ãéãã ãã¡ã¤ã«ããªãã¨ãã¯æ°ãããã¼ã¿ãã¼ã¹ãä½æããã isolation_levelã«Noneãæå®ããã¨ãèªåã³ãããã¢ã¼ãã«ãªãã¾ãã con = sqlite3.connect('temp.db', isolation_level=None) ç¹å¥ãªååã§ãã ":memory:" ã使ãã¨RAMä¸ã«ãã¼ã¿ãã¼ã¹ãä½ããã¨ãã§ãã¾ãã c
ããã«ã¡ã¯ããã«ã¡ã¯ãæè¿ãè ¹çãã°ã£ããè¨ã£ã¦ããã¨ã§æåãªiwanagaã§ãã DeNAã¯å¤é¨çã«ã¯ãã©ãããã©ã¼ã çãªé¨åã®æ¹ããã£ã¼ãã£ã¼ããããã¨ãå¤ãã§ãããå®ã¯ã½ã¼ã·ã£ã«ã²ã¼ã ã®æä¾ãè¡ã£ã¦ãã¾ããæªçãã¯ã¤ã¤ã«ã¨ããã©ããã§èãããã¨ãããã®ã§ã¯ãªãã§ããããã åã¯DeNAã§ã½ã¼ã·ã£ã«ã²ã¼ã ãèªçãã辺ããããã£ã¨ãµã¼ããµã¤ããè¦ã¦ãã¾ãããããããªéç¨ã®ä¸ã§èªåã貯ãã¦ããç¥è¦ã¨ãTIPSããç´¹ä»ãããã¨æãã¾ãã ãããã10ã¿ã¤ãã«è¿ãã¯ã¬ãã¥ã¼ãããéç¨ããããã¦ãããçµæ§è¨ããããã¨ã¯ãã£ã±ãããã®ã§ãå°åºãã«ãã¤ã¤è©å¤ãããã°æ¬¡ãæ¸ãã¾ãã ã½ã¼ã·ã£ã«ã²ã¼ã ã®ããã®MySQLå ¥éä¸è¦§ ã½ã¼ã·ã£ã«ã²ã¼ã ã®ããã®MySQLå ¥é - Technology of DeNA ã½ã¼ã·ã£ã«ã²ã¼ã ã®ããã®MySQLå ¥é2 - Technology of DeNA ãMySQL
1. åå¿è åã MySQLã®å§ãæ¹ MySQL Beginners Talk ã¨ã¿ãã¾ãã²ã 2012-05-29 åå¿è åãMySQLã®å§ãæ¹ - MySQL Beginners Talk Powered by Rabbit 1.0.6 2. èªå·±ç´¹ä» â ã¨ã¿ãã¾ãã²ã â MySQLã¦ã¼ã¶ä¼(代表) â id:tmtms â @tmtms â RubyããMySQLã使ãã©ã¤ãã©ãªæ¸ããã 1/80 åå¿è åãMySQLã®å§ãæ¹ - MySQL Beginners Talk Powered by Rabbit 1.0.6
æ¢ é¨ãé¨å±å¹²ãããæ´æ¿¯ç©ã«ããç°èé¨ãã«è¦ããmikioã§ããä»åã¯ãTokyo Cabinetã®ãã¼ãã«ãã¼ã¿ãã¼ã¹ã§è¶ ãæ軽ã«å ¨ææ¤ç´¢ãããæ¹æ³ã«ã¤ãã¦èª¬æãã¾ãã 使ãæ¹ ãã¼ãã«ãã¼ã¿ãã¼ã¹ã«ã¤ãã¦ã¾ããããããã¦ããã¾ããããPerlãRubyã®ããã·ã¥ã®ããã«ã³ã©ã åã¨ãã®å¤ãé¢é£ã¥ããæ§é ãã主ãã¼ãèå¥åã¨ãã¦ä¿åãããã¼ã¿ãã¼ã¹ã§ããä¾ãã°Rubyãããã¼ã¿ãä¿åããã«ä»¥ä¸ã®ããã«è¡ãã¾ãããã¼ã¿ãã¼ã¹ã§ãããã¨ãã»ã¨ãã©æèãããªãã¨ããã®ãç´ æµãã¤ã³ãã§ããAPIã¯Cã§ãPerlã§ãRubyã§ãã»ã¨ãã©åããªã®ã§ãè¨èªã«ãããããåãããã«ã¬ã³ã¼ããæä½ã§ãã¾ãã require 'tokyocabinet' include TokyoCabinet # ãã¼ã¿ãã¼ã¹ãéã tdb = TDB::new tdb.open("casket", TDB::OWRITER
ã¯ããã« Androidã¢ããªã±ã¼ã·ã§ã³ãä½æããä¸ã§SQLiteã使ç¨ãã¦ãã¼ã¿ãã¼ã¹ãæ±ããã¨ã¯å¤ã ããã¾ãããã¼ã¿ã®æ°¸ç¶åãæ¤ç´¢ã¨ãã£ãå¦çã容æã«å®è£ ãããã¨ãã§ããã®ã§ãå¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ä½¿ç¨ããã¦ãã¾ããããããAndroidã«ã¯SQLiteã使ç¨ããããã®æ¹æ³ã以ä¸ã®ããã«ããã¤ãç¨æããããããããã¡ã¤ã«ä½ææã®ãã¼ããã·ã§ã³ã®æåãç°ãªã£ã¦ãã¾ãã SQLiteDatabase#openOrCreateDatabaseã使ç¨ãã¦ä½æãã Context#openOrCreateDatabaseã使ç¨ãã¦ä½æãã SQLiteOpenHelperã¯ã©ã¹ã使ç¨ãã¦ä½æãã ãããéçºè ããããæ¹æ³ã®æåãååã«ç解ãã¦ããªãå ´åãç¥ããã®ãã¡ã«èå¼±æ§ãä½ãè¾¼ãã§ãã¾ãã¾ãã å®éã«ãããã¤ãã®ã¢ããªã±ã¼ã·ã§ã³ã§ã¯SQLiteDatabase#openOrCreateDa
ãã¼ã¿ã®æ¤ç´¢ãµã³ãã« ãã¼ã¿ã®åå¾ã¯ã ã»ã³ãã¯ã·ã§ã³ã®ä½æ ã»ã³ãã¯ã·ã§ã³ãããã¼ã¿ãã¼ã¹ã®åå¾ ã»ãã¼ã¿ãã¼ã¹ããã³ã¬ã¯ã·ã§ã³ã®åå¾ ã¨ããæé ã§ãç®çã®ã³ã¬ã¯ã·ã§ã³ãåå¾ãã¾ãã åå¾ããã³ã¬ã¯ã·ã§ã³ã«å¯¾ãã¦æ¤ç´¢ãå®è¡ãã¾ãã 以ä¸ãfind_oneã¨findã®ãµã³ãã«ã§ãã #!/usr/bin/env python # -*- coding:utf-8 -*- from pymongo import Connection #ã³ãã¯ã·ã§ã³ä½æ con = Connection('192.168.1.245', 27017) #ã³ãã¯ã·ã§ã³ããtestãã¼ã¿ãã¼ã¹ãåå¾ db = con.test # 以ä¸ã®ããã«è¨è¼ãããã¨ãå¯è½ # db = con['test'] #testãã¼ã¿ãã¼ã¹ããfooã³ã¬ã¯ã·ã§ã³ãåå¾ col = db.foo # 以ä¸ã®ããã«è¨è¼ãããã¨ãå¯è½
ã¬ãã¹ã³ä¸è¦§ æéãã©ã³ ãã°ã¤ã³ 2024/12/06 NEW ãMySQLå ¥é åºç¤ç·¨ãã®ããã¯ã¤ãºããªãªã¼ã¹ãã¾ãã 2024/12/05 NEW ãé±åãããã¤ã³ã¹ãã¼ã«ã ãã¤ãã¼ã¸ã®æ¹åãã¬ãã¹ã³å¶ä½ã®é²æãããã¯ã¤ãºæ´æ°æ å ± 2024/12/04 NEW ãUNIXã³ãã³ãå ¥éãã®ããã¯ã¤ãºããªãªã¼ã¹ãã¾ãã 2024/12/04 NEW ãPHPå ¥é ã¯ã©ã¹ç·¨ãã®ããã¯ã¤ãºããªãªã¼ã¹ãã¾ãã 2024/12/02 NEW ãPHPå ¥é ãã¼ã¿æ§é ç·¨ãã®ããã¯ã¤ãºããªãªã¼ã¹ãã¾ãã 2024/12/02 NEW ãPHPå ¥é é¢æ°ç·¨ãã®ããã¯ã¤ãºããªãªã¼ã¹ãã¾ãã 2024/05/07 NEW ããªãã ãã®å¦ç¿ãã¼ãããããä½æãã¾ã ãéæåä»ä¸ã
Indexed Database APIï¼ä»¥ä¸ãindexedDBï¼ã«ã¤ãã¦ãããã¾ã§è¿½ãããã¦ããæ å ±ãã¨ãã¾ã¨ããã®ã§å ¬éãã¾ãã indexedDBã¯å½åã¯ä»æ§ãåºã¾ã£ã¦ãããããµã³ãã«ã³ã¼ããå½ç¶ã®ããã«åããªãã£ãã®ã§ï¼ä»ãåãã¾ãããâ¦ï¼ãæ¤è¨¼ããã«ã¯ããªããã¼ããªç¶æ³ã§ãããæè¿ã«ãªã£ã¦ã©ãã«ãåãããã«ãªã£ã¦ããã®ã§ã@komasshu ããã¨è²ã ããåãããªããä¸éãã®åä½ã確èªãã¾ããã ç¾æç¹ã§å©ç¨ã§ãããã©ã¦ã¶ã¯ Chrome 9 以é ã¾ã㯠Firefox 4 beta 8 以éã¨ãªãã¾ããã¾ã ã¾ã ä»æ§ã¯åãã¦ãã¾ãã®ã§ãæ¤è¨¼ã®éã¯ããªãã¹ãææ°ã®éçºçã使ããã¨ããããããã¾ããæ¬ã¨ã³ããªã¼ã§ã¯ãChrome 9 beta ãFirefox 4 beta 8 ã«ã¦æ¤è¨¼ãã¾ããã¾ããè³æã¯ã2011å¹´1æ20æ¥æç¹ã® W3C Editor's Draft ãåç §
ruby+sqlite3ã§ãã·ã³ãã«ãªã¢ãããã¼ããä½ã£ã¦ã¿ããï¼ï¼ ?ãã¡ã¤ã«ãã¢ãããã¼ãããhtmlãã©ã¼ã ãè¿ãcgiãä½ã£ã¦ã¿ãã #!/usr/local/bin/ruby require 'cgi' cgi=CGI.new('html3') cgi.out('status'=>'OK'){DATA.read} __END__ <html> <body> <form enctype="multipart/form-data"> <input type="file" name="data" size="60"> <input type="submit" value="Upload"/> </form> </body> ?ãã©ã¼ã ã®ãã¿ã³ãæ¼ãããããURLï¼å ãã¯åºå®ï¼ãåºåããããã«æ¹é ããã #!/usr/local/bin/ruby require 'cgi' â?ã¯ããã«
mongoã³ãã³ãããæ¥ç¶ããéã«ãªã¼ã«ãã¿ã¤ã(SQLè³)ããæã 人é¡ã«ã 調ã¹ãããå½¢ã§insertãselectãupdateãè¡ãæ¹æ³ã調ã¹ã¾ããã å®ç¾©åç § // use [ãã¼ã¿ãã¼ã¹å] use [ãã¼ã¿ãã¼ã¹å] // show databases show dbs // show tables show collectionsåç §ç³» // select * from [ã³ã¬ã¯ã·ã§ã³å] db.[ã³ã¬ã¯ã·ã§ã³å].find() // select * from [ã³ã¬ã¯ã·ã§ã³å] where x=4 db.[ã³ã¬ã¯ã·ã§ã³å].find({x:4}) // select j from [ã³ã¬ã¯ã·ã§ã³å] where x=4 db.[ã³ã¬ã¯ã·ã§ã³å].find({x:4}, {j:1}) // select * from [ã³ã¬ã¯ã·ã§ã³å] limit 1 db.[ã³ã¬ã¯ã·ã§ã³
第31åã«ç¶ãã¦ãä»åã¯MongoDBãRubyãã使ãæ¹æ³ããç´¹ä»ãã¾ãã MongoDBãRubyãã使ãããã®ã©ã¤ãã©ãª MongoDBãRubyãã使ãã«ã¯ã以ä¸ã®ã©ã¤ãã©ãªçãå©ç¨ããå¿ è¦ãããã¾ãã Ruby driver for MongoDB [GitHub, ãã¥ã¼ããªã¢ã«] RubyããMongoDBã使ãä¸ã§åºæ¬ã¨ãªãã®ããå ¬å¼ã®Rubyãã©ã¤ãã§ãã MongoDBã®ã»ã¼å ¨æ©è½ã«ã¢ã¯ã»ã¹ã§ãããããè¤éãªãã¨ããããã¨ãã«ã¯é ¼ãã«ãªãã§ããããå¾è¿°ããä»ã®ã©ã¤ãã©ãªãå é¨ã§ã¯ãã®ãã©ã¤ãã使ã£ã¦ãã¾ãã ããã¥ã¡ã³ãããªãã¸ã§ã¯ãã«ãããã³ã°ãã¦ActiveRecordã©ã¤ã¯ã«æ±ãããªãã¸ã§ã¯ããããã¼ã®æ©è½ãæä¾ããã©ã¤ãã©ãªãããã¾ããä»åã¯ä»£è¡¨çãªãã®ã2ã¤ãç´¹ä»ãã¾ãã MongoMapper [GitHub, ä½è ã«ããç´¹ä»] æ¯è¼çActiveRecor
CGIã®ãåå¼·ã§ã¤ãã£ããã® åå¤å¼å¤æããã£ãã('03.02.02) ï¼å ¥åããæç« ãåå¤å¼ã«å¤æãã¾ãããã®è¾æ¸ã使ããã¦ããã£ã¦ã¾ãã ãã¬ãCHATé¨å± ï¼CHATãªããä½ã£ã¦ã¿ãããã¾ããã ã ã·ããè«ç¡è¦ã¢ã³ã±ã¼ã ï¼ã¢ã³ã±ã¼ãéè¨ãä½ã£ã¦ã¿ã¾ãããã©ããããªã æ» å¤ããã¡ã¿ãµã¼ãã¨ã³ã¸ã³ ï¼ä¸ã¤ã®ãã©ã¼ã ã®å ¥åã§æ¤ç´¢ããããã¼ã¸ãé¸ã¹ã¾ãã PostgreSQLèã®ç©´ ããªã¼ã®ãã¼ã¿ãã¼ã¹ã»ãµã¼ã PostgreSQLãå··ã§å¤§æµè¡ã®æ§ç¸ãåãã¦æ¥ãæ¨ä»ã ä¸ã¤ããã£ã¦ã¿ããããããããã¨ä¸ããã®ãéãã§è§¦ã£ã¦ã¿ã¾ããã ãã£ã¡ãã£ãäºã¯å éã®å¢ãã§å¿ãããã§ãè¦ãã¦ãããªãã¦ãããããã¡ã¢æ¸ãã¨ãã¦ããã«æ®ãã¦ããã¾ãã ã©ãªãæ¹ã®å½¹ã«ç«ã¦ãã°ãã幸ãã ãã¹ã°ã¬ã®ã¤ã³ã¹ãã¼ã«('02.08.21) ï¼ã¾ãã¯ã¤ã³ã¹ãã¼ã«ãã Apache+PHPã®ã¤ã³ã¹ãã¼ã«('
#contents *æ°å¤ãã©ã¼ããã 0ã§åããå ´åã¯ä»¥ä¸ select to_char(12345, '00000000'); to_char ----------- 00012345 *ç¾å¨æ¥ä»ããã®å ç®ã¨æ¸ç® 以ä¸ã®æ¸å¼ã§æ¸ããã便å©ã â ç¾å¨æå»ãã1å¹´2ã¶æ3æ¥4æé5å6ç§å¾ãåå¾ SELECT now() ,now() + '1year 2month 3day 4hour 5minute 6second'; now | ?column? -------------------------------+------------------------------- 2006-01-10 16:20:42.203232+09 | 2007-03-13 20:25:48.203232+09 (1 row) â ç¾å¨æå»ãã1å¹´2ã¶æ3æ¥4æé5å6ç§å ãåå¾ SELECT now
* MS SQL Server 㧠DB ãã SQL ã¹ã¯ãªãããçæããæé ã¨ãªãã·ã§ã³ãã®è¨äºã®ç´ãªã³ã¯URL: Permlink | ãã®è¨äºãå±ããã«ãã´ãª: [MS SQL Server] [SQL] MS SQL Server2000 㮠管çãã¼ã« Enterprise Manager ã§ãæ¢ã«åå¨ãããã¼ã¿ãã¼ã¹ã®ã¤ã³ã¹ã¿ã³ã¹ããã¼ãã«ãã¹ãã¢ãããã·ã¼ã¸ã£ãªã©ãã¹ã¯ãªããåããæé ã¨ãæå®ãããªãã·ã§ã³ã®ã¡ã¢ã - ãªã SQL ã¹ã¯ãªãããä½æããã®ãæ¢åã® DB ãã SQL ã¹ã¯ãªãããä½æããã¨ãããæ¬æ¥ã¨éã®æé ãã¨ãã®ã¯ãªãããããã¯ãDB ã®ãã¼ãã«è¨è¨ãã¹ãã¢ãã®ã³ã¼ãã£ã³ã°ã RDBMS ä»å±ã® GUI ãã¼ã«ãèªåçæãã¼ã«ã«é ¼ãããã«ãªããCREATE TABLE ãæã§æ¸ããããããã¨ããªããªã£ãããã ã è¦ããã«ãGUI ã®ãã¼ã«ã§éçºç¨ãµã¼ã
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}