From 7bf7b17b947d729d3dd75f5975deaf9beb20fee3 Mon Sep 17 00:00:00 2001 From: lmj01 Date: Fri, 12 Apr 2024 17:24:09 +0800 Subject: [PATCH] update --- articles/2024/app.md | 5 +++-- articles/resource.md | 2 +- cg/canvas.md | 3 ++- cg/ct.md | 1 - cpl/cplusplus.md | 2 ++ index/article.md | 4 +--- index/online.md | 14 +------------- index/standard.md | 15 +++++++++++---- index/stomatological.md | 5 ++++- web/nginx/9220.conf | 27 +++++++++++++++++++++++++++ web/nginx/update.ps1 | 4 ++++ web/nginx/win/nginx.conf | 4 ++++ 12 files changed, 60 insertions(+), 26 deletions(-) create mode 100644 web/nginx/9220.conf diff --git a/articles/2024/app.md b/articles/2024/app.md index 40963b7..6b7c620 100644 --- a/articles/2024/app.md +++ b/articles/2024/app.md @@ -29,8 +29,9 @@ Electron面向纯前端开发者 ## 放大镜Loupe 对图片放大本质就是截取一种部分图片数据来显示 -- [Loupe.js allows you to add photorealistic loupes (magnifier) to images on your webpages. ](https://sprayhank.github.io/CVI/loupe/")这个使用canvas来实现,是因为它们需要一个更酷的效果,但是这个使用了两张图片来实现更酷的效果,这也是为什么需要两个canvas的原因 -- [Loupe demo (mouse over the image)](https://nishanths.github.io/loupe-js/)这个实现简单些,利用css背景截图来实现的部分效果 +- [Loupe.js allows you to add photorealistic loupes (magnifier) to images on your webpages. ](http://sprayhank.github.io/CVI/loupe/)这个使用canvas来实现,是因为它们需要一个更酷的效果,但是这个使用了两张图片来实现更酷的效果,这也是为什么需要两个canvas的原因 +- [Loupe demo (mouse over the image)](https://nishanths.github.io/loupe-js/)这个实现简单些,利用css背景截图来实现的部分效果[github有源码](https://github.com/nishanths/loupe-js) +- [文言一心给出的一个方案,这个方案很简单,但是不能自绘canvas](https://playcode.io/1833399?v=2) - 游戏中也有放大的功能 1. 实现倍镜,就是利用渲染区域的变化来控制,实现必须是perspective camera来投影渲染。是整块视图都改变了 2. 用两个摄像机,主相机不变,副相机渲染成一张RenderTexture,并将这种RenderTexture赋值给MirrorObject对象上,MirrorObject对副相机不可见 diff --git a/articles/resource.md b/articles/resource.md index 0629ac7..915345c 100644 --- a/articles/resource.md +++ b/articles/resource.md @@ -81,5 +81,5 @@ // filetype:pdf // 搜索特定文件格式 // A site http://XXX.com 搜索某网页中的内容 // 格式:A intitle B (注意有2个空格)结果页面标题包含关键词 -// ss site stackoverflow.com +// ss site stackoverflow.com 指定网站搜索, 如 canvas pick color area site:stackoverflow.com ``` \ No newline at end of file diff --git a/cg/canvas.md b/cg/canvas.md index 77a44ac..1556b73 100644 --- a/cg/canvas.md +++ b/cg/canvas.md @@ -98,4 +98,5 @@ ctx.translate(-center.x, -center.y); ## 参考 -- [OffscreenCanvas-离屏canvas使用说明](https://zhuanlan.zhihu.com/p/100375855) \ No newline at end of file +- [OffscreenCanvas-离屏canvas使用说明](https://zhuanlan.zhihu.com/p/100375855) +- [canvas-scale](https://dustinpfister.github.io/2019/03/06/canvas-scale/),这篇文章很详细的介绍了canvas关于scale的细节,配合[playground](https://playcode.io/1833399)查看结果 \ No newline at end of file diff --git a/cg/ct.md b/cg/ct.md index f06ec2a..419731d 100644 --- a/cg/ct.md +++ b/cg/ct.md @@ -11,7 +11,6 @@ ## [DICOM--Digital Imaging and Communications in Medicine](https://www.dicomlibrary.com/) - ### 概念 **Application Entity (AE)**,Application Entity 代表DICOM通信中的一个终端,可以代表一个系统或者一个程序。每个系统中的AE拥有一个唯一的Application Entity Title (AET) 。AET的要求时不能超过16个字节。一个设备上面可以有很多个AE。 diff --git a/cpl/cplusplus.md b/cpl/cplusplus.md index 5051ecc..515d3a4 100644 --- a/cpl/cplusplus.md +++ b/cpl/cplusplus.md @@ -280,6 +280,8 @@ base + sizeof * 偏移量,数组指针好像就是这样的,用*(a+b)访 - [C++ Template这个文章描述的很清晰,思路也很通畅](https://www.3dgep.com/beginning-cpp-template-programming/) - [C++ stories](https://www.cppstories.com/) - [PDFHummus is a Fast and Free C++ Library for Creating, Parsing an Manipulating PDF Files and Streams.](https://github.com/galkahana/PDF-Writer) +- [Software optimization resources,涉及很多底层的技术和文档,值得去看看](https://www.agner.org/optimize/#manuals) + - [Calling conventions for different C++ compilers and operating systems](https://www.agner.org/optimize/calling_conventions.pdf),更新到2023年的技术 ## 工具 diff --git a/index/article.md b/index/article.md index 92c525a..9706d70 100644 --- a/index/article.md +++ b/index/article.md @@ -1,10 +1,8 @@ # articles -- [留心的资源](../articles/resource.md) -- [个人认识](../articles/personal.ideas.md) +- [资源与工具](../articles/resource.md) - [3D引擎](../cg/engines.md) - [Markdown](../articles/markdown.md) -- [资源与工具](../articles/resource.md) - [Mathjax](../articles/mathjax.md) - [数学概念笔记](../articles/notes/math.md) - [软硬件一体的项目](../articles/others/robot.md) diff --git a/index/online.md b/index/online.md index ac2b19c..06e6746 100644 --- a/index/online.md +++ b/index/online.md @@ -38,22 +38,10 @@ - [Denis Bakhvalov, 关于性能优化的一个博客](https://easyperf.net/) - [SaschaWillems,业余贡献实时3D以Khronos标准软件开发者](https://www.saschawillems.de/) +- [Agner Fog Research, 涉及很多编程知识,很好的文档几何,作者自己更新自己的理解与文档](https://www.agner.org/?e=0#0) ## 工具 -### 搜索技巧 - -- 指定网站搜索, 如 canvas pick color area site:stackoverflow.com - -### 文档 - -- [PubScholar公益学术平台](https://pubscholar.cn/) -- [国家标准全文公开系统](https://openstd.samr.gov.cn/bzgk/gb/index) -- [msdn](https://learn.microsoft.com/zh-cn/) - - [个人关于微软的开发文档](https://msdn.itellyou.cn/) -- [MDN Web Docs](https://developer.mozilla.org/en-US/) -- [HandWiki is a wiki encyclopedia for collaborative editing of articles on computing, science, technology and general knowledge](https://handwiki.org/wiki/Start) - ### playground - [Javascript Playground--邮箱meijie.lmj@outlook.com](https://playcode.io/) diff --git a/index/standard.md b/index/standard.md index 8a9caad..646040e 100644 --- a/index/standard.md +++ b/index/standard.md @@ -5,10 +5,10 @@ - [Promises/A+](https://promisesaplus.com/) - [then Differences from Promises/A](https://promisesaplus.com/differences-from-promises-a) -## W3C - -[MDN的文档用语](https://developer.mozilla.org/en-US/docs/MDN/Guidelines/Conventions_definitions#Experimental) +## [W3C](https://www.w3.org/) +- [W3C standards and drafts docs](https://www.w3.org/TR/?filter-tr-name=file+api) +- [MDN的文档用语](https://developer.mozilla.org/en-US/docs/MDN/Guidelines/Conventions_definitions#Experimental) - [IETF Document](https://tools.ietf.org/html/) - [Hypertext Transfer Protocol -- HTTP/1.1](https://www.w3.org/Protocols/rfc2616/rfc2616.html) - [UI Events KeyboardEvent code Values](https://www.w3.org/TR/uievents-code/#key-alphanumeric-writing-system) @@ -52,6 +52,7 @@ - [ImageMagick](https://imagemagick.org/index.php) - [The WebAssembly library for ImageMagick: magick-wasm](https://github.com/dlemstra/magick-wasm) - [browser demo](https://dlemstra.github.io/magick-wasm-docs/classes/magick-image) +- [The Insight Toolkit (ITK) is an open-source, cross-platform toolkit for N-dimensional scientific image processing, segmentation, and registration. ](https://github.com/InsightSoftwareConsortium/ITK) ### OHIF @@ -70,4 +71,10 @@ - [The BitTorrent Protocol Specification](https://www.bittorrent.org/beps/bep_0003.html) - [Bittorrent Protocol Specification v1.0](https://wiki.theory.org/BitTorrentSpecification) - [tinyTorrent: 从头写一个 Deno 的 BitTorrent 下载器](https://cjting.me/2020/10/31/tinytorrent-a-deno-bt-downloader/) - - [Simple, robust, BitTorrent tracker(client & server) implementation](https://github.com/webtorrent/bittorrent-tracker) \ No newline at end of file + - [Simple, robust, BitTorrent tracker(client & server) implementation](https://github.com/webtorrent/bittorrent-tracker) +- [PubScholar公益学术平台](https://pubscholar.cn/) +- [国家标准全文公开系统](https://openstd.samr.gov.cn/bzgk/gb/index) +- [msdn](https://learn.microsoft.com/zh-cn/) + - [个人关于微软的开发文档](https://msdn.itellyou.cn/) +- [MDN Web Docs](https://developer.mozilla.org/en-US/) +- [HandWiki is a wiki encyclopedia for collaborative editing of articles on computing, science, technology and general knowledge](https://handwiki.org/wiki/Start) diff --git a/index/stomatological.md b/index/stomatological.md index bb96c45..d81a05b 100644 --- a/index/stomatological.md +++ b/index/stomatological.md @@ -64,4 +64,7 @@ I轴向右增大,J轴向右增大,K轴向后增大。除了每个体素的 ## 参考 -- [3DSlicer -- Coordinate systems](https://www.slicer.org/wiki/Coordinate_systems) \ No newline at end of file +- [3DSlicer -- Coordinate systems](https://www.slicer.org/wiki/Coordinate_systems) +- [VolView is an open source radiological viewer developed for clinical professionals.](https://volview.kitware.com/) + - [app online](https://volview.kitware.app/) + - [github](https://github.com/Kitware/VolView) \ No newline at end of file diff --git a/web/nginx/9220.conf b/web/nginx/9220.conf new file mode 100644 index 0000000..2c72f42 --- /dev/null +++ b/web/nginx/9220.conf @@ -0,0 +1,27 @@ +server { + listen 9220; + server_name localhost; + # + charset utf-8; + + location / { + + root f:/fullstack/viewer/dist_test; + + autoindex on; + + autoindex_exact_size on; + + autoindex_localtime on; + + charset utf-8; + + # add_header Content-Type 'application/json;charset=UTF-8'; + # add_header Accept 'application/json;charset=UTF-8'; + add_header Cross-Origin-Embedder-Policy require-corp; + add_header Cross-Origin-Opener-Policy same-origin; + + default_type text/html; + index index.html index.htm; + } +} \ No newline at end of file diff --git a/web/nginx/update.ps1 b/web/nginx/update.ps1 index 902b94a..9a64f62 100644 --- a/web/nginx/update.ps1 +++ b/web/nginx/update.ps1 @@ -10,6 +10,10 @@ xcopy /s /e /i /y win\nginx.conf e:\tools\nginx-1.25.0\conf\nginx.conf (Get-Content f:\meijie\lmj01.github.io\web\nginx\lmj01.conf) -Replace '/mnt/f/meijie/lmj01.github.io', 'f:/meijie/lmj01.github.io' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\lmj01.conf +# 测试环境 +(Get-Content f:\meijie\lmj01.github.io\web\nginx\9220.conf) | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9220.conf + +# 测试环境 (Get-Content f:\meijie\lmj01.github.io\web\nginx\9930.conf) -Replace '/mnt/f/fullstack/mjdemo', 'f:/fullstack/mjdemo' | Set-Content e:\tools\nginx-1.25.0\conf\conf.d\9930.conf # 临时的 diff --git a/web/nginx/win/nginx.conf b/web/nginx/win/nginx.conf index 8aea39b..2654b4d 100644 --- a/web/nginx/win/nginx.conf +++ b/web/nginx/win/nginx.conf @@ -163,6 +163,10 @@ http { return 301 http://127.0.0.1:9930/; } + location ^~ /viewer { + return 301 http://127.0.0.1:9210/; + } + # 反向代理 # 前缀匹配 location ^~ /lmj01 {