ãã®èšäºã§ã¯ããªãã¿ã€ã ãã©ãã«ãŒãå¿ èŠãªã®ããã©ã®ããã«æ€çŽ¢ããã®ãããªãèŠã€ãããªãã£ãã®ããäœãèµ·ãã£ãã®ãã«ã€ããŠã話ããããšæããŸãã
ãã©ãã«ãŒã®éžæ
ç§ã¯ã»ãšãã©ã®ãã£ãªã¢ã§ããªãŒã©ã³ãµãŒãšããŠåããŠããŸãã ã¢ã¯ãã£ããã£ã®è©³çŽ°ã¯ãæ¯æãã䌎ããã¹ãŠã®å¥çŽãæéåäœã§ã¯ãªããæééãã«è¡ãããäœæ¥ã«é¢ãããã®ã§ãã ãã®ãããªç¶æ³ã§ã¯ãæ°åãè¯ããšãã«ä»äºã«æ £ããŸã-äž»ãªããšã¯æéãæºããããšã§ãã ã€ãŸãã1æ¥äžãããžã§ã¯ãã«æã觊ããªãããã«ããç¿æ¥ã®16æéã¯ã®ã£ã¬ãŒã®å¥Žé·ã®ããã«äŒã¿ãªãèãã®ãäžè¬çã§ãã 顧客ã«ãšã£ãŠãããã¯éåžžç¡é¢å¿ã§ãã ãã®ã¢ãŒãã§äœæ¥ããå Žåãã¿ã€ã ãã©ãã«ãŒã«ã€ããŠã¯èããŸããã
2015幎ã®åãã«ãç§ã¯é¢çœããªã¢ãŒããããžã§ã¯ããæäŸãããŸãããçªç¶ãä»äºã«å¯Ÿããæ¯æãã§ã¯ãªããæ¯æ決ãŸã£ã絊äžãæ¯æãããŸããã
ä»äºãå§ããŠããæ°ã¶æåŸãç§ã®éåžžã®ã¢ãããŒããããŸãæ©èœããŠããªãããšãæããã«ãªããŸããã ç· ãåããããªãã®åã«ãããæ¯æãã®äºå®ãä»äºã®åŒãæž¡ãã«çµã³ã€ããŠããå Žåãç¹ã«ç· ãåãã«éåãããšé倧ãªæ²¡åã«ã€ãªããå¯èœæ§ããããããè¿œå ã®åæ©ã¯å¿ èŠãããŸããã åºå®æ¯æãã®å Žåãç¶æ³ã¯ç°ãªããŸãã ãããå®çŸããããã«ãç§ã¯éå¹ççã«åããŠãããåãããŒã¹ã§ä»äºãç¶ããã°éçšäž»ãæºè¶³ããå¯èœæ§ã¯äœãããšã«æ°ä»ããŸããã
3ææ«ã«ãããªãŒã©ã³ã¹ã® HabrãOverseerã«èšäºãå ¬éãããŸããã å€åæéãèšé²ããã·ã¹ãã ãéžæããŸã ã ãã®èšäºã¯ãå¹çã®æ¹åã«é¢ããç§ã®èããšå®å šã«äžèŽããŸããã ããã¯äž»ã«ãŠã§ãããŒã«ã«æ§ããããŠãããç§ã®ä»äºã«ã¯åããŸããããäž»ãªã¢ã€ãã¢ã¯ãæéãèæ ®ããŠãç§ãä»äºæéãæ£ããåé ããéçšäž»ã倱æãããªãéã®åŒŸäžžã®ããã«æããŸããã
幞éãªããšã«ãèšäºãžã®ã³ã¡ã³ãã§ãèªè ã¯ããããçš®é¡ã®ãã©ãã«ãŒã䜿çšããçµéšãå ±æãã Alexey2005 ã¯ãã©ãã«ãŒã®æ¯èŒè¡šãžã®ãªã³ã¯ãæçš¿ããŸããã
ããŸããŸãªãã©ãã«ãŒã®ç 究ã«é£ã³èŸŒãã»ã©ãèªåã«åããªãããšãæããã«ãªããŸããã
ãã©ãã«ãŒã®èŠä»¶ã®ãªã¹ããäœæãããŸããã
- æåã¿ã€ããŒã¯ãããŸããã ãŠãŒã¶ãŒãããŸããŸãªã¿ã¹ã¯ã絶ããåãæ¿ããŠããäžçã§ã¯ã圌ã¯ç ã«åããŠåºçºããICQã§æ人ã«çããŸããæåã¿ã€ããŒã®ç²ŸåºŠã¯0ã«ãªãåŸåããããŸãã
- ãªãŒãã³ãœãŒã¹ã®ã¿ã ç§ã¯åŠæ³çã ãšæãããã¯ããŒãºããœãŒã¹ãœãããŠã§ã¢ãç§ã®æŽ»åã«é¢ããæ
å ±ãä»ã®èª°ãã®ãµãŒããŒã«éä¿¡ããããªãã æ°å¹Žåãç§ã¯ããã«ã€ããŠãèãããéãã«ç¬èªã®ãã©ãã«ãŒãã€ã³ã¹ããŒã«ããŸããã ããããç£èŠã®äžçã«ãããææ°ã®åŸåã¯ã2ã€ã®ããšãæããŠãããŸããã
- äŒç€Ÿã«ããŒã¿ãããå Žåãããã䜿çšããŸãã
- ããŒã¿ã¯ãªãŒã¯ããããããªã¯ãšã¹ãã«å¿ããŠæäŸãããŸã
çŠãããããããã³ã€ã³ã䜿ã£ããšããåçºã§ãã€ãç§ã«æ¥ãŠã»ãããããŸããã
- ã¯ãã¹ãã©ãããã©ãŒã ã ã²ãŒã éçºè ãšããŠãç§ã¯äž»ã«Windowsã§ä»äºãããŠããŸãããLinuxãšMac OS Xãç§ã®æŽ»åã®å€§éšåãæ ã£ãŠããŸãã OSã®1ã€ã ãã§ã¢ã¯ãã£ããã£ã远跡ããã¿ã€ã ãã©ãã«ãŒã§ã¯ãå®å šãªç»åã¯åŸãããŸããã
èªåã¯ãã¹ãã©ãããã©ãŒã ãã©ãã«ãŒã«ã¯2ã€åã®éšåããããŸãã ãããã®äžã®ãªãŒãã³ãœãŒã¹ã¯ãç§ã¯1ã€ãèŠã€ããŸããã§ããã
ããªãã®æžããŠ
ã©ãããïŒ éžæã¯æããã§ã-ãã©ãã«ãŒãäœæããŸãã
æäœã®åºæ¬çãªã¢ã«ãŽãªãºã ã¯åçŽã§ããããã°ã©ã ã¯ããã¯ã°ã©ãŠã³ãã§ãã³ã°ããã¢ã¯ãã£ããªãŠã£ã³ããŠãå€æŽãããšããŠãŒã¶ãŒãåãæ¿ããã¢ããªã±ãŒã·ã§ã³ãèšæ¶ããŸãã ãŠãŒã¶ãŒããã¿ã³ãäœãæŒãããããŠã¹ãåãããããŠã£ã³ããŠãåãæ¿ãããªãå ŽåãæåŸã®ã¬ã³ãŒããããã«å¿ããŠèª¿æŽããããšã§ã¹ãªãŒãã¢ãŒãã«ç§»è¡ããŸãïŒãŠãŒã¶ãŒãéã¢ã¯ãã£ãã ã£ãæéããšããŸãïŒã
PCã«æ¥ç¶ããŠçé»åã¢ãŒãã«åãæ¿ããïŒã¢ãã¿ãŒããªãã«ããïŒã®ã¯è«ççã§ãããå€ãã®å Žåããã®ã¢ãŒãã¯å®å šã«ãªãã«ãªãããäžæåæ¢ãé·ããããããããã«é Œãããšã¯ã§ããŸããã
ããã«ãæ£ç¢ºãªã¿ã€ãã³ã°ã®ããã«ãããã¡ã€ã«ãå¿ èŠã§ããããšã¯æããã§ãã çŸåšã®ã¢ã¯ãã£ããã£ã®ã¿ã€ãã«å¿ããŠãç°ãªãã¢ããªã±ãŒã·ã§ã³ãç°ãªãã«ããŽãªã«åé¡ãããå ŽåããããŸãã ããšãã°ãããªãŒã©ã³ã¹ã®ãããžã§ã¯ããšèªåã®ãããžã§ã¯ãã®äž¡æ¹ã§ã¡ã¢åž³++ã䜿çšããŠããŸãã
ãããã¡ã€ã«ã䜿çšãããšãã¢ããªã±ãŒã·ã§ã³ãããŸããŸãªã«ããŽãªã«å²ãåœãŠãããšãã§ããŸãã ãããã£ãŠãããããžã§ã¯ãããããã¡ã€ã«ãã¢ã¯ãã£ããªå Žåãã¡ã¢åž³++ã®äœ¿çšæéã¯1ã€ã®ã«ããŽãªã«èšé²ããããããªãŒã©ã³ã¹ããããã¡ã€ã«ãã¢ã¯ãã£ããªå Žåã¯å¥ã®ã«ããŽãªã«èšé²ãããŸãã
å€éšãã©ãã«ãŒ
ãããŠä»ããã©ãã«ãŒã®æåã®ããŒãžã§ã³ãäœæãããèµ·åãããŠããŸãã æ°æ¥éã®ã¢ã¯ãã£ããªãã¹ãã®åŸãçŸåšã®èªååã§ã¯äžååã§ããããšãããããŸããã ããããŒã®ã¹ã¯ãªãŒã³ã·ã§ããã¯ãChromeã3æé50åãé£ã¹ãã®ãšåæã«ãå 延ã°ãã«ããŽãªãŒã3æé50åããã£ãããšã瀺ããŠããŸãã ãããå®éã«ã¯ãChromeã¯ãã°ãã©ãã«ãŒãããã¥ã¡ã³ããstackoverflowãžã®ã¢ã¯ã»ã¹ã«ã䜿çšãããŸãã ãããããã©ãã«ãŒã®æåã®ããŒãžã§ã³ã¯ããããã®ã¢ã¯ã·ã§ã³ãåºå¥ããæ¹æ³ãç¥ããããã¹ãŠã1ã€ã®ã«ããŽãªã«èšé²ããŸããã äžæçãªè§£æ±ºçã®1ã€ã¯ãChromeã䜿çšããŠHabr / mail / vkãªã©ãèªã¿åããFirerefoxã§ãã¹ãŠã®äœæ¥ãè¡ãããšã§ãã ããããç¿æ £ã¯åŒ·ããããããçµæãšããŠãäœæ¥ã®äžéšã¯Chromeã®ç¿æ £ããè¡ãããŸããã
ä»®æ³ãã·ã³ã§ã®äœæ¥äžã«åé¡ãæ¿åããã ãã¡ããããã©ãã«ãŒã¯ããèªäœã§ã¯èŠãããšãã§ããŸãããVBoxå ã§äœãèµ·ãã£ãŠããã®ããVirtualBox.exeã¢ã¯ãã£ããã£ã®ã¿ãèŠãããšãã§ããŸãã ãã¡ãããä»®æ³ãã·ã³ã§äžåºŠã«å®è¡ãããã¢ã¯ãã£ããã£ã¯1çš®é¡ã®ã¿ã§ããããããã¡ã€ã«ãåãæ¿ããããšã§åé¡ã解決ã§ããŸãã ããããåœåã¯æåå¶åŸ¡ããéããããšæã£ãŠããŸããã
ãã®çµæãå€éšãã©ãã«ãŒã®åœ¢ã§ãœãªã¥ãŒã·ã§ã³ãçãŸããŸããã
å€éšãã©ãã«ãŒã¯ãã¿ã€ã ãã©ãã«ãŒãã¢ã¯ã»ã¹ã§ããªãç°å¢å ã§å®è¡ãããããããæ å ±ãéä¿¡ããããã°ã©ã ã§ãã ããšãã°ãä»®æ³ãã·ã³ã®å Žåããã®ãã©ãã«ãŒã¯ã¿ã€ã ãã©ãã«ãŒãšåãããã«åäœããŸãããå®è¡äžã®ã¢ããªã±ãŒã·ã§ã³ã¯èšæ¶ãããudpãã£ãã«ãä»ããŠããŒã25855ã§ã¡ã€ã³ãã©ãã«ãŒã«ã¬ããŒãããŸãã
ã¡ãã»ãŒãžåœ¢åŒã¯éåžžã«åçŽã§ãïŒ
5æåã¯åºå®ããããŒã§ãã ã¿ã€ããã
1 int-ãããã³ã«ããŒãžã§ã³çªå·ã ä»1ã
utf8æåå ïŒ1æååã®é·ãã次ã«charé åïŒ-ã·ã¹ãã ã®çŸåšã®ç¶æ ã
ããšãã°ãä»®æ³ãã·ã³ã¯çŸåšã®ã¢ããªã±ãŒã·ã§ã³ãchrome.exeãqtcreator.exeãexplorer.exeã®åœ¢åŒã§åã«æäŸããŸãã ãã©ãŠã¶ã®å Žåããµã€ãã¯æµ·ã§ããããŠãŒã¶ãŒãæäœããã¡ã€ã³ãµã€ãã¯ã¹ããŒã¿ã¹ãšããŠäžããããŸãïŒhabrahabr.ruãgeektimes.ruãvk.comãgmail.comãgoogle.comãªã©ã æ®ãã®ãµã€ãã¯ãæªå®çŸ©ã®äžè¬ã¹ããŒã¿ã¹ã«ãªããŸãã ã€ãŸããã¡ã€ã³ãµã€ãã¯ã¿ã€ã ãã©ãã«ãŒã¬ãã«ã§é©åãªã«ããŽãªã«å®çŸ©ãããæªå®çŸ©ã¯å¥ã®ã«ããŽãªã«ç§»åããŸãã äŸãã°ãç§ã¯å 延ã°ãã«æªå®çŸ©ãæžããŠããŸãããªããªããå¥ã®ãŽããèªããšãã«ããªããå ¥ãäœçŸäžãã®ãžã£ã³ã¯ãããäœæ¥ãµã€ãã®ã»ããã決å®ããæ¹ãã¯ããã«ç°¡åã ããã§ãã
1 int-éè€ããã¢ããªã±ãŒã·ã§ã³ã®æ°
utf8-éè€ããåã¢ããªã±ãŒã·ã§ã³ã®ååãæã€æååã®é å
éè€ããã¢ããªã±ãŒã·ã§ã³ãšã¯ããã©ãã«ãŒããæ°ããïŒ10ç§æªæºïŒæ å ±ãããå Žåã«çœ®ãæããããã¢ããªã±ãŒã·ã§ã³ã®ãªã¹ãã§ãã ããšãã°ãChromeãã©ãã«ãŒã¯2ã€ã®ã¢ããªã±ãŒã·ã§ã³ã«ãªãŒããŒã©ããããŸãã
chrome.exeããã³Google-chrome-stableã
ãããã£ãŠãhabrahabr.ruã®çŸåšã®ã¹ããŒã¿ã¹ãããããæ¥ãå ŽåãWindowsã§ã®chrome.exeããã³Linuxã§ã®Google-chrome-stableã§ã®ã¢ã¯ãã£ããã£äžã®ã¿ã€ã ãã©ãã«ãŒã¯ãChromeã§ã¯ãªãhabrahabr.ruã®ããŒã¿ããŒã¹ã«æžã蟌ã¿ãŸãã
1笊å·ãªãchar-ãã§ãã¯ãµã ã ãã§ãã¯ãµã ã¯ããã±ããå ã®ãã¹ãŠã®ãã€ãã®åçŽãªè¿œå ãšèŠãªãããŸãã
ã¿ã€ã ãã©ãã«ãŒãšå€éšãã©ãã«ãŒãçµã¿åãããããšã§ãPCã§è²»ãããæéã«é¢ããæãæ£ç¢ºãªæ å ±ãååŸã§ããŸãã
ååãšããŠãAndroidãã©ãã«ãŒãªã©ãå€éšãã©ãã«ãŒãçã«å€éšã§ããããšã劚ãããã®ã¯ãããŸããã ããã«ãããPC以å€ã®ã¢ã¯ãã£ããã£ãèæ ®ããããšãã§ããŸãã ãã ãããã®ãããªæ©èœã¯å¿ èŠãªããããå®è£ ããŸããã§ããã
ãã©ãã«ãŒã䜿çšãã
ãŠãŒã¶ãŒã®èŠ³ç¹ããèŠããšãã¢ããªã±ãŒã·ã§ã³ã¯ãã¬ã€å ã®ã¢ã€ã³ã³ã§ãããå¿ èŠãªãŠã£ã³ããŠã衚瀺ããã³ã³ããã¹ãã¡ãã¥ãŒããããŸãã
ãã€ããŒãªæ©èœïŒ
èšå®ã«ãããã¢ããªã±ãŒã·ã§ã³ã®åäœã®äžè¬çãªè©³çŽ°ã決å®ã§ããŸãã
ãããã¡ã€ã«ã䜿çšãããšãã¢ããªã±ãŒã·ã§ã³ãŠã£ã³ããŠãéããã«ã¢ã¯ãã£ããªãããã¡ã€ã«ãåãæ¿ããããšãã§ããŸãã
ãããŠæãéèŠãªããšïŒ
ã¢ããªã±ãŒã·ã§ã³ - ã¢ããªã±ãŒã·ã§ã³ãåé¡ãïŒã¢ããªã±ãŒã·ã§ã³ã¯æäœäžã«èªåçã«ãªã¹ãã«è¿œå ãããŸãïŒããããã¡ã€ã«ãç·šéã§ããŸãïŒ
çµ±èš -æå®ããæ¥ä»ã®ããŒã¿ããŒã¹ããæ å ±ãåŒãè£ããã°ã©ããšè¡šãæãããšãã§ããŸãã
äžæ¹ã§ã¯ãçµ±èšã®è¡šç€ºã¯ã¿ã€ã ãã©ãã«ãŒã®éèŠãªéšåã§ãã ãããããã©ãã«ãŒã¢ããªã±ãŒã·ã§ã³èªäœã¯ãããŒã¿åæã®ããã®åãªãã·ã³ãã«ãªãµãŒãã§ã¹ããŒã«ã§ããå¿ èŠããããšæããŸãã äž»ãªãã®ã¯ã³ã¬ã¯ã·ã§ã³ã§ãã ãŸãããšã¯ã¹ããŒããããCSVããŒã¿ã«åºã¥ããŠLibreCalcã§çŸããå³ãæãããšãã§ããŸãã
ãããšã¯å¥ã«ãããŒã¿ããŒã¹ãšã®äœæ¥ã«ã€ããŠè°è«ãã䟡å€ããããŸãã
æåã¯ãéåžžã«æ¥éã«æé·ããããã°ã©ã ã§çŽ°ååããå¿ èŠãããã®ã§ã¯ãªãããšå¿é ããŸããã
ããããæåã®ããŒãžã§ã³ã®ãã¹ãããã»ã¹ã§ã¯ã100åã®ã¢ããªã±ãŒã·ã§ã³ãåãã3ã€ã®OSã§ã®å幎éã®äœæ¥ã§ãããŒã¿ããŒã¹ã¯1ã¡ã¬ãã€ãããæ¶è²»ããªãããšã瀺ãããŸããã 10幎ã§20ã¡ã¬ãã€ãã å¿é ãããµã€ãºã§ã¯ãããŸããã ãã ããããŒã¿ããŒã¹ã1ã€ã«ãŸãšãããšãã¢ããªã±ãŒã·ã§ã³ã³ãŒãã¯ç°¡çŽ åãããŸãã
çµ±èšã®èŠ³ç¹ããåOSã«åå¥ã®ãã¡ã€ã«ãä¿æããããšã¯ç¡æå³ãªã®ã§ãç§ã¯100 MBã®exFATã»ã¯ã·ã§ã³ãäœæããŸãããããã«ããŒã¿ããŒã¹ãé 眮ããWindows / Linux / Mac OS Xã¯ãã®1ã€ã®ãã¡ã€ã«ã§åäœããŸãã ãã®çµæãäžè¬çãªçµ±èšã1ãæã§å©çšå¯èœã«ãªããŸãã
ãªãŒãã³ãœãŒã¹ã«è¡ã
ã¢ããªã±ãŒã·ã§ã³ã®æåã®ããŒãžã§ã³ãäœæãããŠããçŽ10ãæãçµéããŸããã ç§èªèº«ã¯ãã¢ããªã±ãŒã·ã§ã³ãéåžžã«é©ããŠãããšè©äŸ¡ããŸããã å¶ç¶ã®äžèŽã«ããã1æã«èšäºãå ¬éãããŸããã ãªãããªããªãŒãã³ãœãŒã¹ã³ãŒããæžãã®ã§ããããã ã ãããŠãæéãã«ãŠã³ãããã¿ã¹ã¯ã¯éåžžã«éèŠã§ããããªãŒãã³ãœãŒã¹ãœãªã¥ãŒã·ã§ã³ã¯ããã»ã©å€ããªããããã¿ã€ã ãã©ãã«ãŒãgithubã«å ¬éããªãããšãèããŸããã
ãããŠä»ãgithubãç¥ããã¢ããªã±ãŒã·ã§ã³ãæžãçŽããã»ãŒ1幎éã®äœ¿çšã§èç©ããããã¹ãŠã®ãã¥ã¢ã³ã¹ãèæ ®ã«å ¥ããæåã®ãã«ãã§ãã©ãŒã¯ãããŠã³ããŒãããŠäœæããæºåãã§ããŸããã
å¿ãã話ãããŠ
çªç¶ãè±èªã®ç¥èãä¹ããããšãããªãŒãã³ãœãŒã¹ãããžã§ã¯ããå ¬éãããšãã«æãå°é£ã§ããããšãå€æããŸããã ãã®ç¬éãå°ãªããšãæå°éã®ããã¥ã¡ã³ããŒã·ã§ã³ãšã³ã¡ã³ããªãã§ã¯ãããžã§ã¯ããæå³ããªããªãããšãæããã«ãªã£ã-æ¥ããããªãããã«ãå ¬éãããããªããšããé¡æããããŸãã...æå³ããããææ³çã§ãã¹ãã«ã«åªããæç« ã¯ç§ã«ã¯é£ããããŸã...
ãããŠãéžæè¢ããããŸããïŒ
- äœãå ¬éããªãã§ãã ããã
- åé³ç¯ã®ã³ã¡ã³ãã«å¶éããŸãã ãããã圌ãã¯ç§ãè±èªãç¥ããªããšã¯æããªãã§ãããã
- 貧匱ãªè±èªã«ãµãããããšæãã ãæžããŠãã ããã
æåã®ãªãã·ã§ã³ã¯åãå ¥ããããªãããã§ããã ãã®ãããžã§ã¯ãã¯æçšã§ãããšèŠãªãããŠããããã®å ¬éã¯éèŠã§ãã ããã«ã¯æ°å人ã®ãŠãŒã¶ãŒããããšæãã®ã§ãæªå ¬éã®ãŸãŸã«ããŠããã®ã¯æ®å¿µã§ãã
2çªç®ã®ãªãã·ã§ã³ã§ã¯ããœãŒã¹ãšã¢ããªã±ãŒã·ã§ã³èªäœã®æäœã«é¢ããéèŠãªãã€ã³ããå®å šã«æç»ããããšã¯ã§ããŸããã ãããŠãçãæç« ã§ãã¹ãŠãæ£ç¢ºã«æžãããšãã§ãã確çã¯äœã§ããïŒ
ãã®çµæã圌ã¯3çªç®ã®éžæè¢ã«èœã¡çããŸããã çµå±ãããã¯è±èªã®è©Šéšãæ¬ã§ã¯ãªãããœãããŠã§ã¢ã§ãã ãããããããæ·±å»ãªåå¿ãæ·±å»ãªåŠæ ¡ãä¿®æ£ããããã¢ããªã±ãŒã·ã§ã³ãç§ã®æ²ãã£ãã³ã¡ã³ãã§æ©èœããå¯èœæ§ããããŸãã
ãœãŒã¹ã¯ããããå ¥æã§ããŸãã
github.com/Allexin/TrackYourTime