2020-01-01ãã1å¹´éã®è¨äºä¸è¦§
ããã«ã¡ã¯ãæè¿ãKedroã¨è¨ãæ©æ¢°å¦ç¿åãã®ãã¤ãã©ã¤ã³æ§ç¯ç¨ã®ãã¼ã«ã使ã£ã¦ã¿ãã®ã§ãããã«ã¤ãã¦ã¾ã¨ãã¾ãã Kedroã¨ã¯ï¼ æ¦è¦ Kedro 㯠QuantumBlack ã¨ãããã¼ã¿åæä¼æ¥ ãå ¬éãã¦ããããããã¯ã·ã§ã³ã¬ãã£ãªãã¼ã¿åæç¨ã¯ã¼ã¯ããã¼æ§ç¯â¦
ããã«ã¡ã¯ãä»æ¥ã¯ãAWS Data Pipelineã使ã£ã¦ãã¦startDateTimeã®æå®ã§ç大ã«ããã£ãã®ã§ããã®è©±ãæ¸ãã¾ãã ããããAWS Data Pipelineã£ã¦ä½ï¼ ã£ã¦æ¹ã¯ã以ä¸ã®è¨äºãã©ãããã¾ãããã®è¨äºèªãã§ãã人ã¯ããã«ã¤ãã¦ã¯ç¥ã£ã¦ããã ãããã©ãwwâ¦
ããã«ã¡ã¯ãæè¿ãServerless Frameworkã使ã£ã¦Cloud functionãä½ãæ©ä¼ããã£ãã®ã§ããã¡ãã«ã¤ãã¦ã¾ã¨ãã¦ããã¾ãã Serverless Frameworkã¨ã¯ Serverlessã¢ããªã±ã¼ã·ã§ã³ã§ããLambdaãCloud Functionãæ§æ管çããããããã¤ãããããã¼ã«ã«ã§â¦
ããã«ã¡ã¯ãä»æ¥ã¯ãData Pipelineã§ãã©ã¤ãã¼ããµããããå ã«ããDBãæä½ããå ´åã®å¯¾å¦æ¹æ³ã«ã¤ãã¦ã¯ã¾ã£ãã®ã§ãæ¸ãã¦ã¿ããã¨æãã¾ãã AWS Data Pipelineã¨ã¯ AWS Data Pipelineã«ã¤ãã¦ã¯ã以åè¨äºã«ãã¦ããã®ã§ã以ä¸ã®è¨äºãã覧ãã ãã*1â¦
ããã«ã¡ã¯ãæè¿ä»äºã§AWS Data Pipelineã使ãæ©ä¼ããã£ãã®ã§ããã®æ©è½ã«ã¤ãã¦ã¾ã¨ãã¾ãã AWS Data Pipelineã¨ã¯ AWS Data Pipelineã¨ã¯ãä¸è¨ã§è¨ãã¨AWSãæä¾ããAirflowãã¿ãããªæãã«ãªãã¨æãã¾ããaws.amazon.comAWSã®S3ãDynamoDBãRedshâ¦
ããã«ã¡ã¯ãä¹ ãã¶ãã«æ°ããmacã§ä½æ¥ãå§ãã¦ããã®ã§ããããããæ©ã«åæã»ããã¢ããã®ã¨ãããã¾ã¨ãã¦ãããããªã¨æãã¾ãã brewã®ã¤ã³ã¹ãã¼ã« brewãã¾ãã¯å ¥ãã¾ããéä¸ã§Xcodeãã¤ã³ã¹ãã¼ã«ããã¢ãã¦ã³ã¹ãåºãã¨æãã¾ãããæ®éã«ãããâ¦
ããã«ã¡ã¯ãä»æ¥ã¯ãGoã®ç·´ç¿ãã¦ããAtCoderã®åé¡ã解ãã¦ã¿ã¾ããã以ä¸ã®è¨äºãèªãã§ãå ¥éè åãã®éå»åç²¾é¸10åããããã¨ãç¥ã£ãã®ã§ããããã¨ãã¾ããã qiita.com éå»åé åé¡ã¯ãã¡ããatcoder.jp 解ããã³ã¼ã 第0åï¼WelcometoAtCoder paâ¦
ããã«ã¡ã¯ãæè¿ããã©ã¤ãã¼ãã§ã¢ããªéçºããã¦ã¿ããã¨æã£ã¦ããã¡ã¤ã³ãåãã¦Google Dmainsã使ã£ã¦åå¾ããã®ã§ããã®ããæ¹ãã¾ã¨ãã¾ããä»ãFirebaseã§ã¢ããªã±ã¼ã·ã§ã³ã¯ãã¹ãã£ã³ã°ãã¦ãDNSã¯ä»å¾ã®ãã¨ãèãã¦GCPã§ãã£ã¦ããã®ã§ãã*1ãâ¦
ããã«ã¡ã¯ãããã¾ã§ãèªç¤¾ã§Redashãã¡ã¤ã³ã§ä½¿ã£ã¦ããã®ã§ãããGCPã®ç§»è¡ãé¨åçã«é²ãã¦ããã®ããã£ã¦ãData Portal(Data Studio)ã社å 使ã£ã¦ã¿ã¾ããã®ã§ããã®ã¨ãã«èª¿ã¹ãå 容ã¨ãããã£ããã¨ã¨ããä¸ãã¦ããããã¨æãã¾ããã¾ã ã使ã£ã¦4æ¥â¦
ããã«ã¡ã¯ãä»æ¥ã¯ããã¾ã«ãããããªãã®ã§ãå¿ãã¦ãã¾ããã¼ã«ã«ãªãã¸ããªããªã¢ã¼ããªãã¸ããªã«åæ ããæ¹æ³ãæ¸ãã¾ãã ãã¼ã«ã«ãªãã¸ããªã®è¨å® ä½ãããã®çµç·¯ã§ããã¼ã«ã«ãªãã¸ããªãè¨å®ããã¦ããã¨ãã¾ãã以ä¸ã¯ãèªåã§è¨å®ããå ´åã®ã³â¦
ããã«ã¡ã¯ãä»æ¥ã¯ãenvãã¡ã¤ã«ãGoã§æ±ãããã«ãgodotenvã使ã£ãæ¹æ³ã試ãã¦ã¿ããã¨æãã¾ãã godotenvã¨ã¯ Goã«ã¯ç°å¢å¤æ°ãèªã¿è¾¼ãã§å¦çããæ¹æ³ãããã¾ãããgodotenvã¯ãenvãã¡ã¤ã«ããç°å¢å¤æ°ãèªã¿è¾¼ããã¨ãã§ããã©ã¤ãã©ãªã§ãã Githâ¦
ããã«ã¡ã¯ãä»ãã¨ããäºæ ã§Pandasã®ã¡ã¢ãªä½¿ç¨éã®åæ¸ãä»äºã§ãã¦ããã®ã§ããããã®æã«æ¹ãã¦Pandasã®ã¡ã¢ãªä½¿ç¨éã®åæ¸æ¹æ³ã調ã¹ãã®ã§ãã¾ã¨ãã¦ã¿ã¾ãã ã¡ã¢ãªä½¿ç¨éã®ç¢ºèª ä»åãã¿ã¹ã¯ãå®æ½ããã«ããã£ã¦ã¡ã¢ãªä½¿ç¨éãã©ã®ãããããã£ã¦â¦
ããã«ã¡ã¯ãæè¿ãGoã®åå¼·ããã£ãã¨ãã¦ãã¾ããç¹ã«æ¥åã§ä½¿ãããã§ããªããå®å ¨ã«è¶£å³ãªã®ã§ããã楽ããã®ã§ãã£ã¦ãã¾ãç¬ãä»åã¯ãGo Modulesã«ã¤ãã¦èª¿ã¹ãã®ã§ã¾ã¨ãã¦ã¿ã¾ãã Go Modulesã¨ã¯ Go 1.11 ãã追å ãããå¤é¨ããã±ã¼ã¸ã®ç®¡çã·ã¹â¦
ããã«ã¡ã¯ãæè¿ãå°ãéãã®ãã¼ã¿ãæ±ããã¨ãããã¾ãã¦ãPandasã§èªã¿è¾¼ããã¨ããã¨ãããã¡ã¢ãªã¨ã©ã¼ãé£ãã¾ãããè¯ãæ©ä¼ãªã®ã§å¤§ããã®csvãã¡ã¤ã«ãæ±ãæã«è¡ããã¨ãèªåç¨ã¡ã¢ã¨ãã¦ã¾ã¨ãã¦ãããã¨æãã¾ãã æ¹æ³ä¸è¦§ 大ããã®ãã¡ã¤ã«ãâ¦
ããã«ã¡ã¯ãæè¿ãä»äºã§Numbaã使ã£ãã³ã¼ãã¨å¯¾å³ãã¾ãã¦ãè¯ãæ©ä¼ã ã¨æã£ã¦ãNumbaã®Tipsãã¾ã¨ãã¦ã¿ã¾ãã æ¬å®¶ Numba: A High Performance Python Compiler Numbaã¨ã¯ PythonãNumpyã®ã³ã¼ããé«éãªæ©æ¢°èªã«å¤æããããã®JITã³ã³ãã¤ã©ã®ãã¨ãâ¦
ããã«ã¡ã¯ãå æ¥ãéçºãã¼ã ã®ã³ã¹ãåæ¸ã®ä¸ç°ã§ãéçºç°å¢ã®AuroraãDailyã§ç¢ºèªããèµ·åããã¦ããããèªåçã«åæ¢ããã¹ã¯ãªãããæ¸ãã¾ããããããªã«å¤§ãããã¨ã§ã¯ãªãã®ã§ããããªããã¾ããããããªãã¿ãªã®ã§ãèªåã®ããã°ã§ã¾ã¨ãã¦ããããâ¦
ããã«ã¡ã¯ãä»ä»äºã§ã¡ã¢ãªä½¿ç¨éãæé©åãããããªæãã®ã¿ã¹ã¯ããã£ã¦ãã¦ãdocker-composeã®ã¡ã¢ãªä½¿ç¨éãå¶éããããæ¹ã¿ãããªã®ã調ã¹ãã®ã§ã¾ã¨ãã¦ããã¾ã*1ãdocker-composeã®version3ã使ã£ã¦ããã®ã§ãããversion2ã®ããæ¹ã§è¡ããããªã¼â¦
ããã«ã¡ã¯ãæè¿ãããã¹ãé§åPythonãã¨ããæ¬ãèªãã§ããå¼ç¤¾ã®éçºãã¼ã ã§ã¯åãå ¥ãã¦ãã¾ããããããããã°ãã¹ãé§åéçºã¨ãããããªãããã¨æã£ã¦ãã¼ãããã¨ã¯ç¥ã£ã¦ãããã®ã®ãã¡ããã¨èª¿ã¹ããã¨ããªãã£ãã®ã§ã調ã¹ã¦ã¿ã¾ãã*1ã ãã¹â¦
ããã«ã¡ã¯ãæè¿ããã¹ãå¨ãã«ã¤ãã¦ãã£ã¤ã調ã¹ã¦ããã®ã§ãããä»ãã£ã¦ããããã¸ã§ã¯ãã§pytestã使ã£ã¦ããã®ã§ããã®å¨è¾ºã§ããæ¬ãªãããªãã¨æã£ã¦èªãã§ã¿ã¾ããããã®è¨äºã§ã¯ããã®æ¬ã®ç´¹ä»ããã¦ã¿ããã¨æãã¾ãã ä»åèªãã æ¬ ä»åèªãã â¦
ããã«ã¡ã¯ãä»æ¥ã¯ãtfenvã§terraformã®ãã¼ã¸ã§ã³ç®¡çããã£ã¦ããã®ã§ããã®ãã¨ã«ã¤ãã¦æ¸ãã¾ãã tfenvã¨ã¯ è¤æ°ã®ããã¸ã§ã¯ãã§ãterraformã使ãå ´åãterraformã®ãã¼ã¸ã§ã³ãéããã¨ãããã¾ãããã®ãã¨ã«å¯¾å¿ããããã«ãè¤æ°ã®terraformãã¤â¦
ããã«ã¡ã¯ãPythonã§ã¡ã¢ãªä½¿ç¨éã調æ»ããæ¹æ³ã«ã¤ãã¦ãä»åã¯memory_profilerã«ã¤ãã¦èª¿ã¹ãã®ã§ã¾ã¨ãã¾ãã æ¬å®¶ã®ãµã¤ã memory-profiler · PyPI ã¤ã³ã¹ãã¼ã« $ pip install memory_profiler 使ãæ¹ ä½¿ãæ¹ã¨ãã¦ã¯ããã¡ããã¡ãç°¡åã§ã確èªããâ¦
ããã«ã¡ã¯ãå æ¥ãApache Beamã«é¢ããæ¦è¦ã®è¨äºãæ¸ãã¾ãããwww.st-hakky-blog.comä»åã¯ãApache Beam SDKã®ãã¡ãPythonã使ã£ã¦ãå®éã«ãã¼ã¿ãã¤ãã©ã¤ã³ãå®è£ ãã¦ã¿ããã¨æãã¾ã*1ã ä»åã®ãé¡ ä»åã¯ãApache Beamã®å ¬å¼ã®ããã¥ã¡ã³ãããâ¦
ããã«ã¡ã¯ãæè¿ã社å ã®ãã¼ã¿ãã¤ãã©ã¤ã³ã®åè¨è¨ããã¦ããã¾ãã¦ããã®ä¸ã§GCPã®Dataflowã使ã話ãåºã¦ãã¾ããããã®ä¸ã§ãApache Beamã®å 容ã«ã¤ãã¦åå¼·ããå¿ è¦ããã£ãã®ã§ãããã«ã¤ãã¦ã¾ã¨ãã¾ã*1 Apache Beamã¨ã¯ å ¬å¼ãµã¤ã æ¬å®¶ã®ãµã¤ãâ¦
ããã«ã¡ã¯ã Redashãåãåºããã¨ã©ã¼ ä¼ç¤¾ã§Redashã使ã£ã¦ããã®ã§ãããããã¤ãã¯ã¨ãªãå©ããã³ã«ä»¥ä¸ã®ãããªã¨ã©ã¼ãåºãããã«ãªãã¾ããã Error running query: failed communicating with server. Please check your Internet connection and tâ¦
ããã«ã¡ã¯ãæè¿ã社å ã§Scalaã使ã£ã¦ãããã¨ã«ãªãã¾ãã¦ãåå¼·ãå§ãã¾ããã sbtenv Githubã®ãã¼ã¸ã¯ãã¡ããgithub.com ã¤ã³ã¹ãã¼ã« åºæ¬çã«ã¯ãGithubããè½ã¨ãã¦ãã¦ããã®ã¾ã¾PATHã®æå®ãããã ã(ç§ã¯ãzshã使ã£ã¦ããã®ã§)ã $ git clone â¦
ããã«ã¡ã¯ãä¼ç¤¾ã§Goãæ¬æ ¼çã«ä½¿ãæãã«ãªããããªã®ã§ãè²ã ææ¢ããªããåå¼·ããªãããã£ã¦ãã¾ããä»åã¯ãGoèªä½ã®ãã¼ã¸ã§ã³ç®¡çãè¡ããã¨ãã§ãããgvmã使ã£ã¦ã¿ã¾ããã gvmã¨ã¯ gvm ã¯ãGo Version Manager ã®ç¥ã§ãgithub.com ã¤ã³ã¹ãã¼ã« ä»â¦
ããã«ã¡ã¯ãGolangãä¼ç¤¾ã§ä½¿ããã¨ã«ãªããããªã®ã§ãå¹´æ«å¹´å§ã使ã£ã¦ã A Tour of Go ããã£ã¦ãã¾ããä¸éãèªãã ã®ã§ãAtomã§è«¸ã æ¸ãã¦ã¿ããã¼ã¨æã£ãã®ã§ãã¤ãã§ã«ç°å¢è¨å®ãæ¸ãã¦ããã¾ããNçªç ããããã®è¨äºãªã®ã§ãç®æ°ãããã¨ã¯ãªãããâ¦