åç©æ¨æ¬ã®3Dã¢ãã«ãè¦ãã¡ã¢
åç©æ¨æ¬ã®3Dã¢ãã«ãè¦ãã¡ã¢
åç©æ¨æ¬ã®3Dã¢ãã«ãè¦ããããµã¼ãã¹ãè¦ã¤ããã®ã§ã¡ã¢ã
- åç©æ¨æ¬ã®3Dã¢ãã«ãè¦ãã¡ã¢
- CTå³é
- MorphoSource
- iDigBio
- åèãªã³ã¯
Bing Chatã¨ãã¢ããã§ããæ代ããã
Bing Chatã¨ãã¢ããã§ããæ代ããã
ä¸éã¯Chat-GPT4ã§æã¡åãã§ãããBing Chatã§ãããæãã®ã³ã¼ããçæãã¦ããããã¨ããæåä¾ã¡ã¢ã ä»ã®BingChatã¯æ大15ã¿ã¼ã³150åã¾ã§å©ç¨ã§ããããã«ãªã£ãã å人çã«ã¯ã
- ç¡æ
- APIãã¼å¿ è¦ãªã
- ã¢ãã¤ã«å©ç¨OKã¯
ããªãã®ã¡ãªããã ã¨æã£ã¦ããã
ä»åã¯ãdoctestã使ã£ãã¨ãã«moduleåä½ã§ãªãã
doctest.run_docstring_examples()
ãããã使ã£ã¦ã¯ã©ã¹åä½ã§ãã¹ããã¦ãï¼å¤±ææ°, tryæ°ï¼ã§ããéè¨çµæãå¾ãæ¹æ³ã¯ãªãã®ãèãã¦ã¿ãã
ï¼ãªããdoctest.run_docstring_examples()
ã¯TestResult
ãè¿ãå¤ã§è¿ãã¦ãããªããï¼
ä¸å¿ãäºåã®ããåãã§ãdoctest.DocTestRunner`ã使ãã¨è¯ãããã¨ããã¢ã¿ãªã¯ä»ãã¦ããã
ã§ãï¼ç§ãå°ãæç´ããã¦ãããï¼ã§ããã³ã¼ãã¯ãããªæãã§ãããð
import doctest def doctest_objAll(obj, verbose = True, optionflags = 0): finder = doctest.DocTestFinder() runner = doctest.DocTestRunner(verbose = verbose, optionflags = optionflags) tests = finder.find(obj) for test in tests: runner.run(test) return runner.summarize()
ã¡ããã¨ãã®ã³ã¼ãã¯åãããããå ¬å¼ããã¥ã¡ã³ãï¼https://docs.python.org/ja/3/library/doctest.htmlï¼ã« ãã£ããè¼ã£ã¦ãã³ã¼ãã§ãªãã¨ãããéè¦ãã¤ã³ãã§ãããï¼ãªãããã¥ã¡ã³ãã«ãµã³ãã«ã³ã¼ããªãããã¨è¨ãããã¨ããã ãï¼
ãã®ã³ã¼ãã¯ã§ããã¾ã§ã®æµãããï¼ã¹ãã¼ãã§ã¯ãªããï¼ä»¥éã«æ®ãã¦ããã
- Bing Chatã¨ãã¢ããã§ããæ代ããã
- ç°å¢ã»äºåæºå
- Bing Chat ã¨ã®ããã¨ã
ç°å¢ã»äºåæºå
- Windows11 64bit
- Edge ãã¼ã¸ã§ã³ 110.0.1587.69 (å ¬å¼ãã«ã) (64 ããã)
- WSL2
- Docker Desktop 4.17.0 (99724)
- jupyter
- python 3.10ï¼çæã³ã¼ãã®ç¢ºèªï¼
Pythonã§å¾ªç°ãªã¹ã(circular list; åæä½ç½®ãªã»ããå¯)ãä½ã
Pythonã§å¾ªç°ãªã¹ã(circular list; åæä½ç½®ãªã»ããå¯)ãä½ã
ããæãã®å¾ªç°ãªã¹ãããªããããªã®ã§ä½ã£ã¦ã¿ããã¨ããã¡ã¢
- Pythonã§å¾ªç°ãªã¹ã(circular list; åæä½ç½®ãªã»ããå¯)ãä½ã
- ç°å¢ã»äºåæºå
- 循ç°ãªã¹ãã¨ã¯
- ããããããæ¹
- iterableã¨iteratorã®éã
- CircularList Classãèªä½ãã
- ã¡ã¢ä»£ããã®è§£èª¬
- Dequeç¶æ¿ç
- åèãªã³ã¯
ç°å¢ã»äºåæºå
- Windows10 64bit
- WSL2
- Docker Desktop 4.17.0 (99724)
- jupyter
- python 3.10
Mesonã®ä½¿ãæ¹ã¡ã¢
Mesonã®ä½¿ãæ¹ã¡ã¢
Mesonã®æ å ±ç¡ããããã¨ãããã¨ã§ã¡ã¢ã 触ã£ã¦ã¿ãææã¨ãã¦cmakeãã楽ãªãã ãããã©ãã©ã®buitinãªãã·ã§ã³ãã©ã®å¼æ°ãå¶å¾¡ãã¦ãããªã©ããããã«ããï¼ï¼ ï¼ver0.61ãªã®ã§ä»å¾å¤ããããã§ããï¼
mesonã§ã¯ãã«ãæ¹æ³ã2種é¡ã«åãã¦ãã
- native build: build machineã¨host/target machineãåã
- cross build: build machineã¨host/target machineãå¥
ä»åã¯native buildãä¸å¿ã«ã¾ã¨ããã
- Mesonã®ä½¿ãæ¹ã¡ã¢
- ç°å¢ã»äºåæºå
- Mesonã£ã¦ä½ï¼
- Mesonã使ãæµã
- meson.buildï¼è¨å®ãã¡ã¤ã«ï¼ã®æ¸ãæ¹
- å¼æ°è¨å®ã®ã¹ã¹ã¡
- nativeãã¡ã¤ã«ã®æ¸ãæ¹ã»ä½¿ãæ¹
- ä¾ï¼nativeãã¡ã¤ã«ããã³ã³ãã¤ã©ãclangã«å¤ãã
- meson.buildãã¡ã¤ã«å ã«æ¸ã
- ç°å¢å¤æ°ã使ãã±ã¼ã¹
- ä¾: ç°å¢å¤æ°ã使ã£ã¦gccã§ãªãclangã§ãã«ãããå ´å
- nativeãã¡ã¤ã«ã®æ¸ãæ¹ã»ä½¿ãæ¹
- åèãªã³ã¯
ç°å¢ã»äºåæºå
ä»åã¯Dockerä¸ã«Mesonãã¤ã³ã¹ãã¼ã«ããç¶æ³ãæ³å®ãã¦ãã Mesonã¯pipããã¤ã³ã¹ãã¼ã«ã§ããã
$ pip3 install meson
- Windows10 64bit
- WSL2
- DockerDesktop 4.5.1 (74721)
- base image: Debian 11
- Meson 0.61.2
- base image: Debian 11
ã¯ã¦ãªããã°ã§mermaidã®å³ãæã
ã¯ã¦ãªããã°ã§mermaidã®å³ãæã
Githubã§ããµãã¼ããããmermaidãã¯ã¦ãªããã°ã§ãæããªãã試ããã¨ããå¤å°ãªãã¨ããªã£ãã®ã§ã¡ã¢ã
```mermaid graph TB H["Hatenaã§"] M["mermaid"] H-->M ```
ðä¸ã®markdownã³ã¼ãããããªã
graph TB H["Hatenaã§"] M["mermaid"] H-->M
- ã¯ã¦ãªããã°ã§mermaidã®å³ãæã
- mermaidã£ã¦ä½ï¼
- ãµãã¼ããã¦ãå³
- è¨äºã«åãè¾¼ãã³ã¼ã
- 注æç¹
- Example
- åèãªã³ã¯
- mermaidã£ã¦ä½ï¼
emscriptenã§ããã¿ãoption-flagãã¾ã¨ãã
emscriptenã§ããã¿ãoption-flagãã¾ã¨ãã
emcc --help
ãã¦ãåºã¦ããªããªãã·ã§ã³ï¼e.g. clangç±æ¥ã®ãã®ã¨ãï¼ããã£ã¦ããããããã¨ãªã£ãã®ã§ã¡ã¢ã
- emscriptenã§ããã¿ãoption-flagãã¾ã¨ãã
- ç°å¢ã»äºåæºå
- å°ã£ãã¨ãã®ã³ãã³ã
- emscriptenã®ã³ã³ãã¤ã©ã¨ãªã³ã«
- ã³ã³ãã¤ã©ç¨ãªãã·ã§ã³ã¨ãªã³ã«ç¨ãªãã·ã§ã³
- ã³ã³ãã¤ã©ç¨ãªãã·ã§ã³
- ãªã³ã«ç¨ãªãã·ã§ã³
- åèãªã³ã¯
ç°å¢ã»äºåæºå
ä»åã¯Dockerä¸ã«emscriptenãã¤ã³ã¹ãã¼ã«ããç¶æ³ãæ³å®ãã¦ãã
- Windows10 64bit
- WSL2
- DockerDesktop 4.5.1 (74721)
Dockerã§Exited(139)ãåºãã¨ãã®å¯¾å¦
Dockerã§Exited(139)ãåºãã¨ãã®å¯¾å¦
doker run
ããã¨ãã«ã³ã³ãããç«ã¡ä¸ãããExited(139)
ã§çµäºãã¦ãã¾ãã¨ãã®å¯¾å¦ã¡ã¢ã
ãã®çµäºã³ã¼ãã¯Docker Desktopä¸ã§ã確èªã§ããã
- Dockerã§Exited(139)ãåºãã¨ãã®å¯¾å¦
- ç°å¢ã»äºåæºå
- 対å¦æ¹æ³
- åå
- åèãªã³ã¯
ç°å¢ã»äºåæºå
- Windows10 64bit
- WSL2
- DockerDesktop 4.5.1 (74721)
Docker+VSCodeã®Rustç°å¢ãä½ã
Docker+VSCodeã®Rustç°å¢ãä½ã
RustãCã¨Pythonã®éï¼Cå¯ãï¼ã®ä¸ç´åè¨èªã§Cããæ¸ããããé度ã¯Cã¨å¤§å·®ãªããããã¨ãããã¨ã§ã触ããããªã£ãã®ã§Windowsã§ã®ç°å¢æ§ç¯ã調ã¹ãã¡ã¢ã
GUIã¢ããªãä½ããããªã±ã¼ã¹ã§ãªããã°ä»¥ä¸ã®æ¹æ³ã§åé¡ãªãã¯ãã
- .devcontainerã使ããªãæ¹æ³ï¼1ãã¡ã¤ã«ã®ã¿ã®ã³ã³ãã¤ã«ã»å®è¡ãªãå¯è½ï¼
- .devcontainerã使ãæ¹æ³ï¼ã¯ã¼ã¯ã¹ãã¼ã¹ã»ããã±ã¼ã¸åä½ã®ãã«ãã1ããã±ã¼ã¸ã®ãããã°ãè£å®ãããå¯è½ãåºæ¬çã«ã¯ãã£ã¡ï¼
- Docker+VSCodeã®Rustç°å¢ãä½ã
- ç°å¢ã»äºåæºå
- Rustã¯ã©ããªè¨èªã
- .devcontainerã使ããªãå ´å
- .devcontainerã使ãå ´å
- åºæ¥ä¸ãããã¡ã¤ã«æ§æ
- åä½ç¢ºèª
- Rust workspaceã®è¨å®
- ãããã°ã®è¨å®
- ãã«ãç¨ã®ã¿ã¹ã¯è¨å®
- åèãªã³ã¯
ç°å¢ã»äºåæºå
VSCode(+æ¡å¼µæ©è½RemoteContainer)ã¨DockerDesktopã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ãæ³å®
- Windows10 64bit
- VSCode1.64.1
- æ¡å¼µæ©è½ï¼VSCode Remote Container
- DockerDesktop 4.5
- VSCode1.64.1
Jupyterä¸ã«Graphvizã®å³ãSVGã§æç»ãã
Jupyterä¸ã«Graphvizã®å³ãSVGã§æç»ãã
Jupyterä¸ã«Graphvizï¼.dotï¼ã®å³ãSVGã§æç»ãããã¨ã«æåããã®ã§ã¡ã¢ã¨ãã¦æ®ããï¼â»æ¡å¼µæ©è½ã¨ãã¦ã¯ã¾ã ä½ãã¦ããªãï¼
Viz.jsã®ãããã§Javaã®ã¤ã³ã¹ãã¼ã«ããä¸è¦ã«ãªã£ãï¼ï¼ï¼
dotãã¡ã¤ã«ã®ã³ã¼ããæ¸ãã¦ãããã°ãããªãð
gistä¸ã§ã¯è¡¨ç¤ºãããªããnbviewerãéãã°å³ã表示ãããã
https://nbviewer.org/gist/Cartman0/5a7cfadc2f367869f2df506577ace525
ã¾ããIPythonã®ã«ã¼ãã«å¨ãã®æåãããã¥ã¡ã³ãããªãåããã¥ããã®ã¡ã¢ã¨ãã¦æ®ãã
- Jupyterä¸ã«Graphvizã®å³ãSVGã§æç»ãã
- 試ããç°å¢
- how to use
- åä½ã®ä»çµã¿
- Viz.jsã¨ã¯
- iPythonã¨JavaScriptã®é£æº
- iPythonä¸ã§JSãåããæ¹æ³
- iPythonä¸ã®JSããpythonã®å®è¡
- åèãªã³ã¯
試ããç°å¢
DockerDesktopã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ãæ³å®
- Windows10 64bit
- DockerDesktop 4.4
- scipy-notebook Image
- python 3.8.4
- scipy-notebook Image
- DockerDesktop 4.4
ç³ã¿è¾¼ã¿ç©åã¯çµå±ä½ãè¨ç®ãã¦ãã®ãã¡ã¢
ç³ã¿è¾¼ã¿ç©åã¯çµå±ä½ãè¨ç®ãã¦ãã®ãã¡ã¢
ç³ã¿è¾¼ã¿ç©åããã¼ãªã¨ãã©ãã©ã¹å¤æã§å¨æ³¢æ°é åã«ããã¨ç©ã®å½¢ã«ã§ãã¦ä¾¿å©ã ãããããéã«ç解ãã¦ãã®ã§ã æéé åã§ã©ããªè¨ç®ãã¦ãã®ãã¡ã¢ã¨ãã¦æ®ãã
ãã®è¨äºã§åºã¦ããå¼ãå³ã¯gistã«ã¾ã¨ãã¦ããã
convolution_integral.ipynb · GitHub
- ç³ã¿è¾¼ã¿ç©åã¯çµå±ä½ãè¨ç®ãã¦ãã®ãã¡ã¢