Pyppeteerãdockerç°å¢ã¨macã§åãã
Google Cloud Buildã§bazel testã§åããã¦ãpyppeteerãåãããã«ãªãã¾ã§ã®ã¡ã¢ã
- TL;DR
- Dockerç°å¢ã§ã¯ãã¦ã³ãã¼ãæ¸ã¿ã®chromiumãexecutablePathã§æå®
- pyppeteer==0.0.25
- websockets==6.0.0
- pyee==6.0.0
ãã©ã¦ã¶ããã®åå¿ããªããªãã¿ã¤ãã®åé¡ã¯pyppeteerã®logLevelãDEBUGã«ããã¨è¦ã¤ããããã
import logging
browser = await launch(logLevel=logging.DEBUG, args=["--no-sandbox"])
File "/builder/home/.cache/bazel/_bazel_root/eab0d61a99b6696edb3d2aff87b585e8/execroot/__main__/bazel-out/k8-fastbuild/bin/django/testutil/test_puppeteer.runfiles/pypi__pyppeteer_0_2_5/pyppeteer/launcher.py", line 226, in get_ws_endpoint
raise BrowserError('Browser closed unexpectedly:\n')
pyppeteer.errors.BrowserError: Browser closed unexpectedly:
Dockerå ã§èµ°ãããã¨ãã«ãã®ã¨ã©ã¼ãåºãã¨ããå ±åãå¤æ°åºã¦ãããpyppeteerãåæã«ãã¦ã³ãã¼ãããchromiumã§ã¯åãããèªåã§äºããã¦ã³ãã¼ãããchromiumã§ãªãã¨åããªããexecutablePathã§chromiumã®pathã渡ããã¨ã§ç´ã*1ãChromiumã®ãã¼ã¸ã§ã³ã¯ã87.0.4280.141ã§ç¢ºèªã
websockets.exceptions.ConnectionClosed WebSocket connection is closed: code = 1006 (connection closed abnormally [internal]), no reason
ãã®ã¨ã©ã¼ã¯åç´ãªãã¼ã¸ã®è¡¨ç¤ºã§ã¯èµ·ããªããããããå°ãè¤éãªãã¼ã¸ã®ãã¹ããè¡ãã¨åºãããããwebsockets==6.0.0ã«ãã¦ã³ã°ã¬ã¼ã*2ããã¨ç´ãã
TypeError: create_connection() got an unexpected keyword argument 'ping_interval'
pyppeteer0.2.2~0.2.5(ææ°)ã¯websockets==6.0.0ã«ãªãå¼æ°ã使ãããpyppeteer==0.0.25ã¾ã§ãã¦ã³ã°ã¬ã¼ãããå¿ è¦ãããããã®æ®µéã§dockerã§pyppeteerã¯åãããã«ãªã£ãããmacã§ã¾ã åããªãã£ãã
RuntimeWarning: coroutine 'Browser._targetInfoChanged' was never awaited f(*args, **kwargs)
pyee==6.0ã§docker/macã®ä¸¡ç°å¢ã§åãããã«ãªã£ãã
ãã³ã¸ã§ã³ã¡ã¼ã«ã¼ ã·ããªãªã¢ã¼ã æ»ç¥ã¡ã¢
çµæ§å¤§å¤ã ã£ãã®ã§æ¸ãã¦ããã
EDåå²ãå³æ»åé¿ã®é¸æè¢ã¯wikiãåç §ã
éè¦ãã¤ã³ã
ã¢ã³ã¹ã¿ã¼
- ã¹ã©ã¤ã ã¨ã¾ã³ã以å¤ã¯ä¾µç¥æã«èªå·±å復ã追ãã¤ããªãããå½¹ã«ç«ããªã
- éç©è²·ãã¨ããåæãã®å¼·åã®æ¡ä»¶ã¯è³¼å ¥æ°ã»è³¼å ¥ä¾¡æ ¼ã§ã¯ãªããè²·ã£ãæ¥æ°ãªã®ã§ãã¹ã©ã¤ã ã¨ã¾ã³ãã ãè²·ãã°ããã
- ã¹ãã«ã¯å¤æ´ã§ããªãã®ã§ãè³¼å ¥æã«ãããªãã¹ãã«ãã¤ãã¦ãã¢ã³ã¹ã¿ã¼ã¯è²·ããªã
- ç 究æã¨æ½åºã®å¹çåã®ããã«ããããªãã¢ã³ã¹ã¿ã¼ã¯ãªãã¹ãè²·ããªã
- çåç¨ã®åªãã®ãªã¼ã©æã¡ã¨ä¾µç¥ãããçå/å½±ã®å¢çç¨ã®é»ãå®è·ã®ç´ç« æã¡ãæ¢ãã
- è¨ç·´æ¸ã¿â 5 LV999åçããé¼ã¹ã©ã¤ã ã§ãçåæ»ç¥ã¯ç¡çã ã£ãã®ã§åªãã®ãªã¼ã©ã¯æåªå ããã
- è¨ç·´æ¸ã¿â 5 LV600ãããã§ãåªãã®ãªã¼ã©ã»ç³ã®ç®ã®ã¹ã©ã¤ã ã§ã½ãã§åãã
- åªãã®ãªã¼ã©æã¡ãè¦ã¤ãããªãã£ãã®ã§ãé¨å£«ã¨å·«å¥³ã§ä»£ç¨ã試ãããã©ãèä¹ åã足ããã«çåã¯èããããªãã£ã
ä¾µç¥
- ä¾µç¥å¤±æãã¦ãªã¶ã«ãç»é¢ã§ã¢ã³ã¹ã¿ã¼æ»ãã ããã¼ã ã«æ»ã£ã¦åéãå·¦ä¸ã®æ¤éã§èª°ãæ»ãªãã«éå´ã§ããã
- ééãéãè¾¼ãã§ãç¸æã®ããã®é¤é£ã«ãªãã®ã§ãä¾µç¥ã¯å°æ°ç²¾éã§ãç¶æ¿ããã¢ã³ã¹ã¿ã¼ã ããéã
- ç¹ã«çåã»å½±ã®å¢çãªã©ã¯å°ç¨ã®å¯¾çã¹ãã«ã¢ã³ã¹ã¿ã¼ã½ãã§éãè¾¼ã
- åã£ããç ´å£ãå è½å士ã¯ä¾µç¥ã§ä½¿ãç©ã«ãªããªãã®ã§ãç¥å¥ªã¯å¿ è¦ãªããç ´å£ããã¨ãé²è¡ã®æéã伸ã³ããããå¼ãç¶ãã¢ã³ã¹ã¿ã¼ãååå¼·ãã¦ãLVä¸ããå¿ è¦ãªãå ´åã¯æ¤éããã¨å¨åãéããªã
é²è¡
- æ½è¨ã¯å©ç¨éé¡ã«å¿ãã¦å å®ãã¦ããããã²ãç¥å£2ã¨ãè²·ã£ã¦ãã°ãã®ãã¶ã»æ½åºã»ç 究æãåºãã¦ãã
- èªãã³ã¸ã§ã³ã¯å ¥ãå£ã«ç 究æããã®ä¸ãä¸ã«æ½åº - â ã¯5ã¾ã§ãè¨ç·´ã¯1åãªã®ã§ãç 究æãå ¥å£ã«ç½®ã
- å士ãåããã¢ã³ã¹ã¿ã¼ã«çµé¨å¤ãå ¥ãã®ã§ãå士ãåãã¦ãã¾ããã¡ã¼ã¸ç½ ã¯ç½®ããªã
- ç 究æã¯å¼·åä¸åããã¨å¹çãåã«ãªããè¨ç·´ã¯ãããªãã¤ã³ããããªãã®ã§ãå¼·åããªãã¦ãè¯ããã
- ãã°ãã®ãã¶ç½®ãã¦æ¨©è½2ãªã¼ããã¦ãã°ã¾ãè² ããªãããã°ããç½®ããã¾ã§ã¯æ¨©è½2æã¤åã«ã¢ã³ã¹ã¿ã¼ããããããã¨ãããã®ã§ãå°ãå ¥ãå£ããé¢ã
- å°æ°ç²¾éã®é¨éãä½ãããã®ã§ãéçé¨å±åã«ä»»æã®æ¦éé¨å±ããã®åã«ãã°ãã®äºé¨å±ã§ã¢ã³ã¹ã¿ã¼ãå¼·ããã¦ãã
å¨å
- 40æ¥çµéã²ã¼ã ãªã¼ãã¼ â 巫女 â ç§æ¸ â ã«ã â (巫女2 â ã«ã2 â) ç女
- é¸æè¢ã¯wikiåç §
- 巫女ã¨ã«ã2åç®ã¯ç¶æ¿æ å¢ããã ããªã®ã§ããªãã¦ã大ä¸å¤«
- ã«ã«è§£ç¦ããããLVã¯ä¸ãã¦ãã
Google App Engine + Djangoã®å°é·
åºæ¬çã«ã¯ https://cloud.google.com/python/django/appengine ã«ãã£ã¦è¡ãã°ãããã ãã©ãå°é·ãä¸æ¯è¸ãã ã®ã§æ¸ãã¦ããã
- App Engineã®å ´æã¯ã¢ã¡ãªã«ã«ãããAsiaã¯SQLã¨App Engineä¸ç·ã«ç½®ããªãã
- æ¸ããã¦ãªããã©ãSQLã®DBä½ææã«ãå ´æã¯App Engineæºæ ã«ãã¦ããã¨å¤åããï¼
- python manage.py migrateããåã«python manage.py makemigrationsããã»ããè¯ããã
- ãã¼ã«ã«ãµã¼ãã¼ã§åããæã¯python manage.py runserverã§ã¯ãªããdev_appserver.pyã使ããªãã¨gaeé¢é£ã®apiã使ããªã
- 大ããã®ãã¡ã¤ã«ã®ã¢ãããã¼ããdjangoã§åããéã¯èªä½ã®upload handlerãæããªãã¨ãããªã(http://stackoverflow.com/questions/3586134/how-to-avoid-notimplementederror-only-tempfile-temporaryfile-is-available-for-u)
- 1.9ã®å®è£ ã¯NamedTemporaryFile使ã£ã¦ãã ããªã®ã§ããããå¤ããã³ã¼ããã³ããã§ä½ã£ããåãã
Poker AIç¨GTOã¡ã¢
Poker's 1%: The One Big Secret That Keeps Elite Players On Top
- ä½è : Ed Miller
- çºå£²æ¥: 2014
- ã¡ãã£ã¢: ãã¼ãã¼ããã¯
- ãã®ååãå«ãããã°ãè¦ã
ããã«æ¸ãã¦ãã£ããã¤ã®ã¡ã¢æ¸ãã
å ¨ä½ã®ãã©ã³ã¹
ãããã»ã³ã¼ã«ãã度ã«ã綺éºã«ä¸å®å²åã§ãã³ããçµããã¦ããã
ã¹ã¿ã¼ãã£ã³ã°ãã³ããåºãããã¨ãã¬ã³ã¸ãå¼±ãããã®ã§ãã¿ã¤ãã«ãããªãã¦ã¯ãããªãã
call
å
¨ã¦ã®ã¹ããªã¼ãã§callé »åº¦ã¯7å²ããã欲ããã
3å²ä»¥ä¸foldãã¦ãã¨ããããæã¡ç¶ããã ãã§å©çåºã
callããã³ã³ãã¯ä¸ä½7å²
7å²æ¬²ãããã¨ããã®ã¯ãæããç¸æã®ãã³ãã³ã³ãã¨èªåã®ãã³ãã³ã³ãã®ã¨ã¯ã¤ãã£ãæ¦ãå¤ãããªãã¨ããåæã§æ£ããã ããªã®ã§ããã³ãã³ã³ãã®ã¨ã¯ã¤ãã£ã大ããç°ãå ´å*1ã¯ãã£ã¨foldãã¹ãã
bet
betã¯value:bluffæ¯çã2:4ã2:2ã2:1ã¨æã¤åº¦ã«bluffãæ¸ããã
callããã = ä¸ä½7å²ãªã®ã§ããã©ãã³ã³ããæ¸ãããªãã¨å±éºã
æã¤åº¦ã«ãã³ããå¼·ãpolarizeããã¦ããã
- ä¾ï¼turnã§ã¯OESDã¨ãã¯betã§ã¯ãªãcheckãã¬ããã¯betã§polarize
- ä¾ï¼riverã¯ãã¼ãã¢ã»ãªã¼ãã¼ãã¢ã¨ãã¨ãã¹ããã¼ã§betãã¦ããã¼ã¸ãã«ãªã¡ã¤ããã³ãã¯check(ãã©ããã£ããï¼)ã«åã
turnãbrickã®æã¯å¤åãå°ãªãã®ã§ãbetting frequencyãæ¸ããã¦ãããã
betæ¦ç¥ â callæ¦ç¥
betããå¾ããã³ããcheckå´ã®comboã®å ´åãcallæ¦ç¥ã«ç§»ããå¾ã§ã¾ãã¤ãã·ã¢ããã¯å¥ªãç´ãã¦betæ¦ç¥ã«æ»ã£ã¦ãããï¼
ãã¬ã«ããæãããªã¥ã¼ã®ã³ã³ãã¯ãã®ã¾ã¾ããã©ãã®ã³ã³ããååã«ãã¦value:bluffæ¯ã調æ´ãããbet-betã¨bet-checkã®ã©ã¤ã³ãæ¯ã¹ãã¨å¾è ãå¼±ããã¦ã7å²ã³ã¼ã«ã§ããå¼·ãã«ãªããªããã©ãç¸æã®callãã¦ããcomboã¨åãå¼·ãã®comboã§ãã§ãã¯ã§ããªãã®ã§ãããå°æ°ã®bluff catcherã§ãã§ãã¯ãã¦ãããfloatã¯å¤åååãªãã¬ã«é »åº¦ãããã°punishã§ããã
*1:bet-checkã©ã¤ã³ãªã©
pypy virtualenvè¨å®ã¡ã¢
- sudo apt-get install pypy virtualenv
$ virtualenv test -p `which pypy`
$ source test/bin/activate
$ pip install ...
ãµã¼ããã¾ãèµ·åããªããªã£ã¦ã
Gave up waiting for root device. Common problems:
- Boot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/disk/by-uuid/34e5c1 ... does not exist.
ãããããã¤ã§ã¦ãã
大ä½ã®å ´åã¯ãã£ã¹ã¯ããã¤ã¹ãèµ·åæºåéã«åã£ã¦ãªãå ´åã«èµ·ããã¨ã©ã¼ã§ãããexitããã°ã大ä½ãã£ã¹ã¯ãç«ã¡ä¸ãã£ã¦ãããããã®ã¾ã¾èµ·åã§ãããåé¿ããã«ã¯rootdelay=ãããã大ããæ°åã«ããã°ããããããã©ãèªåã®å ´åã
(initramfs) blkid
ãããã£ã¦ãä½ã®ãã£ã¹ã¯ã表示ãããªãããããããããã£ã¹ã¯ãèªèããã¦ããªãããã£ã¹ã¯ããã¦ã³ãããã¦ãªã以ä¸ãbusyboxã®ãã¼ã«ä»¥å¤ä½ãã§ããªãã®ã§ãæ»ã¬ãã¨æã£ããã©ã幸ãcloudcoreã®VPSã¯ãOSã¤ã³ã¹ãã¼ã«ã®éãä»»æã®ISOãé¸ã¹ãããOSã®ã¤ã³ã¹ãã¼ã«ãã£ã¦æ¸ãã¦ããããISOã§ä¸æ¸ãããã®ãã¨ããããããåç´ã«ä»»æã®ISOãããã¼ãã§ãããã¨ããã ãã ã£ãã®ã§ãã¬ã¹ãã¥ã¼ãã£ã¹ã¯ã使ãããdebianã®æå°CDhttps://www.debian.org/CD/netinst/ã使ã£ã¦rescueã§ç«ã¡ä¸ããããç¡äºãã£ã¹ã¯ã¯çãã¦ãã®ã§ãã¾ãããã¯ã¢ãããã¨ã£ãã
ã¨ããããgrubã»initramfsã®åé¡ãã¨æã£ã¦ä¸¡æ¹å ±æ¸ãç´ããã¦ã¿ã¦ãã ãã ã£ãã®ã§ãã«ã¼ãã«å ¥ããªãããã¦ã¿ãã
http://forums.debian.net/viewtopic.php?t=84834
# apt-get purge linux-image* && apt-get update && apt-get install linux-image-686
ã¨ãããã©ãèªåã®å ´åã¯linux-imageã®ææ°çã¾ã å ¥ãã¦ãªãç¶æ ã ã£ãã®ã§ããã£ã¡é¸ãã§ã¤ã³ã¹ãã¼ã«å¾ãåèµ·åã§ç¡äºãµã¼ãã復活ãããæ»ã¬ãã¨æã£ãã»ã»ã»ã