<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title>Cody</title><subtitle>What's new technology today</subtitle><rights>(c) {year} Cody Ray</rights><updated>2026-04-13T20:25:38Z</updated><generator uri="https://blog.niyahsoft.com">Moonglade v12.3.4</generator><entry><id>448a459e-6cf2-4a92-a8cd-617995dd7be4</id><title>如何在基于 Windows Continer 的 Docker 中部署生产项目</title><updated>2024-03-22T05:26:12Z</updated><published>2024-03-22T05:26:12Z</published><link href="https://blog.niyahsoft.com/post/2024/3/22/deploy-projects-in-docker-based-on-windows-continer" /><author><name>Cody Ray</name><email>cody@niyahsoft.com</email></author><category term="Default" /><category term="Docker on Windows Continer" /><content>这篇文章详细介绍了在基于 Windows Container 的 Docker 中部署生产项目的过程，包括遇到的问题和解决方案。文章提到了 Windows Container 版本的 Docker 非常特殊，需要手动制作镜像，并且 Docker Hub 没有官方支持 Windows 的 Registry。作者通过编写 Dockerfile 来打包镜像，并成功地在 Docker 中启动了 Docker Registry。文章还介绍了如何使用 Registry 保存 Image。总的来说，这篇文章对于想要在 Windows Container 的 Docker 中部署生产项目的人来说非常有用。文章的闪光点在于提供了详细的步骤和解决方案，并且给出了实际操作的示例。文章可以进一步改进的地方是，需要更详细地介绍一些概念和术语，例如 Dockerfile、Registry、Image 等等，以便于读者 …</content></entry><entry><id>5af7f670-b307-4c7e-9a6e-abecab067cc7</id><title>如何在 Windows 上利用 Windows Continer 使用 Docker</title><updated>2024-03-21T05:21:57Z</updated><published>2024-03-21T05:21:57Z</published><link href="https://blog.niyahsoft.com/post/2024/3/21/use-docker-in-windows-continer-s1" /><author><name>Cody Ray</name><email>cody@niyahsoft.com</email></author><category term="Default" /><category term="Docker on Windows Continer" /><content>本文介绍了如何在基于 Windows Container 的 Docker 中部署生产项目。首先，作者介绍了 Windows Container 版本的 Docker 的特殊性，需要为各种基础设施自己来制作镜像。然后，作者详细介绍了在 Windows Container 中部署 Docker Registry 的过程，包括如何编写 Dockerfile 和配置文件，以及如何提交镜像到 Registry 中。最后，作者总结了在实际生产中，Windows Container 中的 Docker 有一定的受限，但仍值得一试。本文提供了有用的参考和推荐仓库，可以帮助读者快速地在自己的 Docker 中打包出符合需求的镜像。 …</content></entry><entry><id>dc535f95-1c78-49d1-ad1e-eda8dcd45722</id><title>如何和TA一起听音乐-来建立自己的播放套件吧</title><updated>2023-05-15T15:58:32Z</updated><published>2023-05-15T15:58:32Z</published><link href="https://blog.niyahsoft.com/post/2023/5/15/how-to-listen-to-music-with" /><author><name>Cody Ray</name><email>cody@niyahsoft.com</email></author><category term="Default" /><content>你是否还在为无法和TA一起收听音乐而烦恼呢，各大音乐平台(国内)哪怕有一起听的功能曲库仍然不全 让我们用 Mopidy + Mopidy-Spotify + Mopidy-Iris + Snapserver 来组建一套可以随时随地一起听歌的好去处吧 Mopidy 是一套支持扩展的，用于控制本机播放音频的服务 Mopidy-Spotify 扩展可以使Mopidy支持从Spotify获取音乐 Mopidy-Iris 为Mopidy增加一个现代风格的Web播放器界面 Snapserver 提供一个将本机音频流转至其他设备的服务  前置条件 你需要为此准备一台Linux服务器，这套系统也可以部署在Windows中，但本文中的命令均在Ubuntu 20.04 环境下搭建。 如果你希望将Spotify作为你的曲源，那么你需要一个 Spotify Premium 的账号 安装 Mopidy sudo …</content></entry><entry><id>4e467646-1c8f-4ae3-ba1b-8528e1eadbf9</id><title>批评</title><updated>2023-04-06T03:30:29Z</updated><published>2023-04-06T03:30:29Z</published><link href="https://blog.niyahsoft.com/post/2023/4/6/note-1" /><author><name>Cody Ray</name><email>cody@niyahsoft.com</email></author><category term="摘抄" /><content>如果尖锐的批评完全消失， 温和的批评将会变得刺耳。 如果温和的批评也不被允许， 沉默将被认为居心叵测。 如果沉默也不再允许， 赞扬不够卖力将是一种罪行。 如果只允许一种声音存在， 那么，唯一存在的那个声音就是谎言。 …</content></entry><entry><id>6378d26f-33a5-4e21-b64b-094473f1f670</id><title>美国科学的独立宣言：为纯科学呼吁</title><updated>2023-03-20T03:21:03Z</updated><published>2023-03-20T03:21:03Z</published><link href="https://blog.niyahsoft.com/post/2023/3/20/appeal-for-pure-science" /><author><name>Cody Ray</name><email>cody@niyahsoft.com</email></author><category term="Default" /><content>亨利·奥古斯塔斯·罗兰（Henry Augustus Rowland，1848年11月27日－1901年4月16日），他主要是以制作高质量衍射光栅和对太阳光谱的研究而知名。1899年至1901年任首任美国物理学会会长。    - 前言 - 1883年8月15日，美国著名物理学家亨利·奥古斯特·罗兰（1848－1901）在美国科学促进会（AAAS）年会上做了题为“为纯科学呼吁”的演讲。该演讲的文字后发表在1883年8月24日出版的Science杂志上，并被誉为 “美国科学的独立宣言”。一百多年后重读罗兰的 “为纯科学呼吁” 演讲，可以感觉到今日中国的科学发展与美国当年颇有相似之处。在当前我国科技界尚存在许多急功近利、浮躁浮夸以及学术不端行为等现象的情况下，罗兰先生的文章更是具有洞穿历史的警世作用。             撰文 | 亨利·奥古斯特·罗兰（Henry Augustus …</content></entry><entry><id>ff0bb685-a38e-4d8b-85ca-8f315cabcef8</id><title>Use nginx build RTMP service for ubuntu 18.04+</title><updated>2022-06-05T20:22:48Z</updated><published>2022-06-05T20:22:48Z</published><link href="https://blog.niyahsoft.com/post/2022/6/5/use-nginx-build-rtmp-service-for-ubuntu-1804" /><author><name>Cody Ray</name><email>cody@niyahsoft.com</email></author><category term="Default" /><content>A few days ago. I watch movies with friend. And she say.  Your "RTMP" server is so sucks. let's build new Server for RTMP …</content></entry><entry><id>b01c254c-44c3-499f-8e4c-c088df04d055</id><title>Use data annotations to reduce model validation for TS</title><updated>2021-01-16T20:21:11Z</updated><published>2021-01-16T20:21:11Z</published><link href="https://blog.niyahsoft.com/post/2021/1/16/use-data-annotations-to-reduce-model-validation-for-ts" /><author><name>Cody Ray</name><email>cody@niyahsoft.com</email></author><category term="Default" /><content>data-annotations
Some common object property limiters and customizable limiter injection are provided
Built in three common limiters

`Required`   Restrictions applied when required fields
`Range` It can put your numbers in a certain range, like 2-10
`RegularExpression` It can match regular in string type properties

Installation
npm install data-annotations --save
Usage
Use built-in limiter
The …</content></entry></feed>