You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert
Macã§CSVãç·¨éãããªãç¡æã®LibreOffice Calcã便å©ï¼ 2015.09.30 2016.05.13 ãããã ããã«ã¡ã¯ããµãã¼ãé¨ã®å±±æ¬ã§ãã ECãµã¤ããéå¶ãã¦ããã«ããããååãã¼ã¿ãä¸æ¬ã§æ´æ°ããããå注ãã¼ã¿ãã¨ã¯ã¹ãã¼ããã¦ç·¨éãå¥ã®ã½ããã«ã¤ã³ãã¼ãããããä½ãã¨CSVãã¡ã¤ã«ãæ±ããã¨ã使ããã¨ãå¤ãã¨æãã¾ãã é常ã¯Excelã§ç·¨éãããã±ã¼ã¹ãå¤ãã¨æãã¾ãããExcelã§éãã¨ãæå³ããªãå½¢å¼ã§è¡¨ç¤ºããããã¨ãããã¾ãã ãã¨ãã°ä¸å³ã®ãããªCSVãã¼ã¿ããã£ãã¨ãã¾ãã ããã¹ãã¨ãã£ã¿ã§éãã¨ä¸å³ã®ãããªãã¼ã¿ã§ãã ãããExcelã§éãã¨ä¸å³ã®ããã«ãªãã¾ãã ã001ãã®ããã«é ã«0ããããã®ã¯ã1ãã¨ãªã£ã¦ãã¾ãã¾ããï¼ããããã¼ãè½ã¡ï¼ãã2015-09-17 00:00:00ãã®ãããªãã¼ã¿ãã2015/9/17 0:00:00
jq åã«ä»¥ä¸ã®ãã³ãã³åç»ã®ãã¼ã¿ã»ããã®è¨äºã§ã使ãã¾ããããjqã³ãã³ãã¯JSONãå¤å½¢ãããä¸é¨ãæ½åºãããããã®ã«ã¨ã¦ã便å©ãªã³ãã³ãã§ã ãã³ãã³åç»ã®ãã¼ã¿ã»ãããå ¬éãããããã - å¯ç©æ¯ç @Scaled_Wurm ããã¥ã¢ã«ãè¦ãã¨ãæ¡ä»¶ã«å¿ããå¦çã¨ãæ大å¤ãæ±ããã¨ãæå¤ã¨è¤éãªæ©è½ã使ããã¨ãã§ãã¾ã jq Manual 軽éJSONãã¼ãµã¼ãjqãã®ããã¥ã¡ã³ãï¼ãjq Manualãããã£ããæ¥æ¬èªè¨³ãã¦ã¿ã¾ãã ï½ Developers.IO ã¾ã以ä¸ã®ãµã¤ãã§ãªã³ã©ã¤ã³ä¸ã§è©¦ãã¾ã jq play JSONãCSVã«å¤æ JSONãCSVã«ç´ãããæããã£ã¦ä½¿ãæ¹ã調ã¹ãã®ã§ã¡ã¢ãã¦ããã¾ã åç´ãªä¾ ã¾ãã¯åç´ã«ä»¥ä¸ã®ãããªJSONãCSVã«å¤æãã¾ã {"key1": 1, "key2": 2} æ¹æ³1 - æååå±é æååä¸ã®\()ã®ä¸èº«ã¯å±éã
Markdownå½¢å¼ã®ãã¼ãã«è¨æ³ããã¤ã¾ã§ãã£ã¦ãããè¦ãã§ãæ¯åæ¤ç´¢ããããå¤æãµã¤ãã«ã¢ã¯ã»ã¹ããã®ãé¢åã ã£ãã®ã§ãã¼ã«ãã¤ããã¾ãããåã§ããGoæ¸ãããã£ãã ãã§ãã 使ãæ¹ CSVããã¹ããæ¨æºå ¥åããåãåã£ã¦æ´å½¢æ¸ã¿ã®Markdownå½¢å¼ãã¼ãã«ãåºåãã¾ãã $ mdt < hoge.csv | headerA | headerB | | ------- | ---------------------- | | short | very very long content | é£æº ã³ãã³ãã©ã¤ã³ãã¼ã«ãªã®ã§ãpbpasteãAutomatorã¨çµã¿åããã¦å¥½ããªããã«ä½¿ãã¾ãã 以ä¸ã¯ãAutomatorã®ãµã¼ãã¹ã¨ãã¦ç»é²ããmdtãGitHubã®Issueä½ææã«å¼ã³åºãã¦ããæ§åã§ãã 便å©ã£ã½ãã æ©è½ CSV/TSVã«å¯¾å¿ ã¿ãåºåãã«ã対å¿ãã¦ããã®ã§ã¨ã¯
Djangoã§é¡§å®¢ç®¡çã·ã¹ãã ãä½ããã¹ããããã®ã«ãããã¼ã®é¡§å®¢æ å ±ãä½ãæ¹æ³ã以åç´¹ä»ããã ï¼å人æ å ±ã®ããã¼ãã¼ã¿ãä½ã£ã¦ããããµã¤ãï¼ ããã§ä½ã£ãããã¼ã®é¡§å®¢ãã¼ã¿ãDjangoã«å ¥åããã®ã«ãã©ã®ããã«ãããããã®ã調ã¹ã¦ã¿ãã¨ã»ã»ã» manage.pyã«loaddata ã¨ããFixtureãå ¥åããã³ãã³ãããããã¨ãç¥ã£ãã > manage.py loaddata data.json Fixture ã¯ãXML, JSON, YAMLå½¢å¼ã§æ¸ãã¦ãããOKãããã manage.py dumpdata appname ã§åºåãããã¼ã¿ããã®ã¾ã¾Fixtureã«ä½¿ãããããªã®ã§ããããåèã«CSVãã¡ã¤ã«ããJSONå½¢å¼ã®Fixtureãä½ãã¹ã¯ãªãããä½ã£ã¦ã¿ãã JSONå½¢å¼ã®Fixtueã®æ§é ã¾ãå§ãã«JSONå½¢å¼ã®Fixtureã®æ§é ã¯ä»¥ä¸ã®ããã«ãªã£
slowlog [mysqld] log-slow-queries=/var/log/mysqld-slow.log long-query-time=1 slowlogãã¡ã¼ã« dailyã§logrotateãã¦ããã¦ãä¸è¨ã % crontab -l 50 3 * * * mysqldumpslow -s t /var/log/mysqld-slow.log | mail -s "mysql slowlog" [email protected] CSVã«ã¨ã¯ã¹ãã¼ã SELECT * FROM employees INTO OUTFILE "/tmp/employees.csv" FIELDS TERMINATED BY ',' optionally enclosed by '"'; CSVããã¤ã³ãã¼ã load data infile "item.csv" into table item fie
è¶ ã²ãã³ãã®æ´æ°ã§ãã ãã¦ã³ãã¼ããã¿ã³ãæ¼ãã¨ãDBããCSVãã¡ã¤ã«ã«ãã¦åºåããã¡ã¢ã åç¬phpã§echoã§ãããã°ãã»ã©ã§ããªããã©ãZendFremeworkã§çµãã§ããã¨ãããã®åºåphpãã¡ã¤ã«ãæ¬ä½ã¨ãã©ãã©ã«ãªãã®ãé¿ãããã£ãã®ã§ãã¬ã¼ã ã¯ã¼ã¯å ã§çµã¿ããã£ãã ã¨ã¯ãããZend_Controller_Actionã ããç¶æ¿ããCSVåºåç¨ã®åç¬ã³ã³ããã¼ã©ã¼ãã¤ãããã¢ã¯ã·ã§ã³å ã§è§£æ±ºããã èã«ãªãã®ã¯ãããã¼æ å ±ã®åºåæ¹æ³ã¨ããã®ã³ã³ããã¼ã©ã¼ã§ã¯ã¬ã³ãã©ã¼ç³»ãå ¨ã¦åã£ã¦ä½è¨ãªåºåãç¡ãããã«ãã¦ãããã¨ããªã public function init(){} public function preDispatch(){} public function postDispatch(){} ã¾ãããã¡ã¤ã«åãä»ãã¦ããã¦ã³ãã¼ãã§ããããã«ãããã¼æ å ±ãåº
STEP1. ã¨ã¯ã»ã«ã¨ãããCSV (TSV)ãã³ãã¼ãã¦ãè²¼ãä»ã STEP2. ãªãã·ã§ã³ãé¸æãã¦å¤æ ç´°ããè¨å® åç®ã¾ã§ãTHEADã¨ããã(0ã§THEADãªã) TBODYã®è¡ç®ã¾ã§ãTHã¨ããã TBODY THã«æ·±åº¦ãåãè¾¼ãã ã¯ã©ã¹åã追å ããã(1ã) ã¯ã©ã¹åï¼ " + n" ã²ã¨ã¤ãã®THã«æ·±åº¦ã¯ã©ã¹ã追å ããªãã(lv1ã追å ããªã) nåãã¨ã«TRã«ã¯ã©ã¹åã追å ããã(0ã) ã¯ã©ã¹åï¼ åæ°ããï¼ ã¯ã©ã¹åã«åæ°ã追å ããã(nrow0, nrow1,,)
ã¯ããã« CSVãã¡ã¤ã«ã¯æãæ®åãããã¼ã¿äº¤æç¨ãã©ã¼ãããã§ããããã¾ãã¾ãªæ¹è¨ãããã¾ãã æ¬ç¨¿ã§ã¯CSVãã¡ã¤ã«ãã©ã¼ãããã®ä»æ§ã¨ãã¼ã¿äº¤ææã®ãã¤ã³ãã説æãã¾ãã 対象èªè CSVãã¡ã¤ã«ãæ±ãDB管çè ãéçºè ã CSVã¨ã¯ï¼ CSVã¨ã¯Comma-Separated Valuesã®ç¥ã§ãã«ã³ãåºåãã§ä¸¦ã¹ãå¤ã¨ããæå³ã§ãã CSVãã¡ã¤ã«ã®ä¾ã¨ãã¦ãä¸è¬çãªã¢ãã¬ã¹å¸³ãã¼ã¿ã示ãã¾ãã "å§","å","çå¹´ææ¥","éµä¾¿çªå·","ä½æ","é»è©±çªå·" "å±±ç°","太é","2001/1/1","100-0002","æ±äº¬é½å代ç°åºçå± å¤è","03-1234-5678" "å±±ç°","次é","2001/1/2","251-0036","ç¥å¥å·çè¤æ²¢å¸æ±ã®å³¶ï¼ä¸ç®","03-9999-9999" ã«ã³ãã§åºåããããã¼ã¿ã®æ¨ªä¸åã"è¡"ï¼è±ï¼Rowï¼
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}