![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAA90lEQVQoU41RsXHDMAx8sKBaZQOPog3sEawKVKcR7A3UkaykDaJMkIzgDeINkloFkYNO0tGKcxdWBPAP/j8JuxNC6AAciagEMFhrr3Vdf68wyvExxkFEShFptU9ESr475+Z67u0IYq19WTf2fV9O0/TFzBtuu3jvD8aYz3yoy2KM8pSwDD8AjMysUhR8AVAxc/WXpBOAVxG5Lx4OKaW6aZrhF0EN6zYAXUrppgBjjNZnEXl3ztWbae/9mYjaoiiqPEIFLMZvKaWLvjSbjjGq9o6Zx/2/LHOV2qqXlfCQxJ6Ux/svQh7vTAghjER0fCZn7YnIm3Pu9AOP9nwNp+NeJQAAAABJRU5ErkJggg==)
孤狼 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAABM0lEQVQoU41RwXHCQAyUjsHDkw6ggzgdOB2QDuBj2a+4g5AOkted+AAdUILTgVNBXAJPjxmkjDyQgYRA9NLtabUrCeEkmHkrInGe5/URvoThYrGIVfUZACanDS7kFQC8ENEGQwgbRFzZg5kVEe/TNLWCLo7Yfr/fOufKKIpiNJCI0Aq89+NTa4aZk2MTZi5FZN6RVLW8Ya37RsRYRB47kog8/JP0qqrFt73lcjnc7XZ3/X7/o2maYa/XG6Vp+m72bB6zfWbPZmJm216BiIWqWp4QUWKFAFAS0fwXyZTatn2KouitaZrYOTciorX3fgoAdZ7n5Z9KIjJ1zk1VNc6ybHI4SXWmFEKozM7PVV9aDDPXIpKg9z5xzq1U9fPGBseIuDbF7qiHwybXSIPBoJrNZlur+QKBmNUDeGA2LgAAAABJRU5ErkJggg==)
2024-07-26 |
程序开发 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAABIklEQVQoU3WRzXHCQAyF9XTwGTpIKohLMBWEdGAuyHuCEuggcLLXJzqIUwF0EEqgg3D2QcrI42VgILpoVqtPP0+gfyzGuCGiFYDZcrk8pTQ8y2+aZkgA8KaqryGE8wMQY5wTUT5+lFmW5X3f/4rIXdHhUdf1CzP/ENGEiE6qugsh7GOM5h2YeaOqR48NQIxx797MLgBWqjoLIRx9NDPbMnNJRFsR6RJwVtXSk+q6LtyPhdZmVhDRGcBERMoEWJZl08VicbkVwUcF4FDHzF8iMr0CaYxnqnlXZj64AAPQNE0H4CQirv2D+U3MLK+qap5U8goOFbdHcrJt29zMDqr64btdNR4vuyaiTwDD0uPCHtul7ndH8Vl9SQDvI/DtsibVPPYH+E6eDYX/dnMAAAAASUVORK5CYII=)
1612°C
之前很长时间自己开发小工具都是使用的易语言,很方便也很快捷。但是最近有个项目客服属于敏感型的。用易语言做的东西会让他误会,所以又要捡起大学的知识,使用C#开发了。但是突然想起每次安装完VS之后,都要经历一次C盘浩劫,于是开始寻找解决方案。
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAA90lEQVQoU41RsXHDMAx8sKBaZQOPog3sEawKVKcR7A3UkaykDaJMkIzgDeINkloFkYNO0tGKcxdWBPAP/j8JuxNC6AAciagEMFhrr3Vdf68wyvExxkFEShFptU9ESr475+Z67u0IYq19WTf2fV9O0/TFzBtuu3jvD8aYz3yoy2KM8pSwDD8AjMysUhR8AVAxc/WXpBOAVxG5Lx4OKaW6aZrhF0EN6zYAXUrppgBjjNZnEXl3ztWbae/9mYjaoiiqPEIFLMZvKaWLvjSbjjGq9o6Zx/2/LHOV2qqXlfCQxJ6Ux/svQh7vTAghjER0fCZn7YnIm3Pu9AOP9nwNp+NeJQAAAABJRU5ErkJggg==)
孤狼 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAABM0lEQVQoU41RwXHCQAyUjsHDkw6ggzgdOB2QDuBj2a+4g5AOkted+AAdUILTgVNBXAJPjxmkjDyQgYRA9NLtabUrCeEkmHkrInGe5/URvoThYrGIVfUZACanDS7kFQC8ENEGQwgbRFzZg5kVEe/TNLWCLo7Yfr/fOufKKIpiNJCI0Aq89+NTa4aZk2MTZi5FZN6RVLW8Ya37RsRYRB47kog8/JP0qqrFt73lcjnc7XZ3/X7/o2maYa/XG6Vp+m72bB6zfWbPZmJm216BiIWqWp4QUWKFAFAS0fwXyZTatn2KouitaZrYOTciorX3fgoAdZ7n5Z9KIjJ1zk1VNc6ybHI4SXWmFEKozM7PVV9aDDPXIpKg9z5xzq1U9fPGBseIuDbF7qiHwybXSIPBoJrNZlur+QKBmNUDeGA2LgAAAABJRU5ErkJggg==)
2023-08-10 |
程序开发 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAABIklEQVQoU3WRzXHCQAyF9XTwGTpIKohLMBWEdGAuyHuCEuggcLLXJzqIUwF0EEqgg3D2QcrI42VgILpoVqtPP0+gfyzGuCGiFYDZcrk8pTQ8y2+aZkgA8KaqryGE8wMQY5wTUT5+lFmW5X3f/4rIXdHhUdf1CzP/ENGEiE6qugsh7GOM5h2YeaOqR48NQIxx797MLgBWqjoLIRx9NDPbMnNJRFsR6RJwVtXSk+q6LtyPhdZmVhDRGcBERMoEWJZl08VicbkVwUcF4FDHzF8iMr0CaYxnqnlXZj64AAPQNE0H4CQirv2D+U3MLK+qap5U8goOFbdHcrJt29zMDqr64btdNR4vuyaiTwDD0uPCHtul7ndH8Vl9SQDvI/DtsibVPPYH+E6eDYX/dnMAAAAASUVORK5CYII=)
3593°C
是的,最近又有一个项目用到了Python,这回也顺便总结一下虚拟环境的用法吧。以后方便查阅。
Python
虚拟环境
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAA90lEQVQoU41RsXHDMAx8sKBaZQOPog3sEawKVKcR7A3UkaykDaJMkIzgDeINkloFkYNO0tGKcxdWBPAP/j8JuxNC6AAciagEMFhrr3Vdf68wyvExxkFEShFptU9ESr475+Z67u0IYq19WTf2fV9O0/TFz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xnqnlXZj64AAPQNE0H4CQirv2D+U3MLK+qap5U8goOFbdHcrJt29zMDqr64btdNR4vuyaiTwDD0uPCHtul7ndH8Vl9SQDvI/DtsibVPPYH+E6eDYX/dnMAAAAASUVORK5CYII=)
3318°C
要下载文件,网速慢,预计需要10小时,但是不想等下载完了还开着机,经常忘记关NAS。于是,就有了这个玩意。
定时
关机
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAA90lEQVQoU41RsXHDMAx8sKBaZQOPog3sEawKVKcR7A3UkaykDaJMkIzgDeINkloFkYNO0tGKcxdWBPAP/j8JuxNC6AAciagEMFhrr3Vdf68wyvExxkFEShFptU9ESr475+Z67u0IYq19WTf2fV9O0/TFzBtuu3jvD8aYz3yoy2KM8pSwDD8AjMysUhR8AVAxc/WXpBOAVxG5Lx4OKaW6aZrhF0EN6zYAXUrppgBjjNZnEXl3ztWbae/9mYjaoiiqPEIFLMZvKaWLvjSbjjGq9o6Zx/2/LHOV2qqXlfCQxJ6Ux/svQh7vTAghjER0fCZn7YnIm3Pu9AOP9nwNp+NeJQAAAABJRU5ErkJggg==)
孤狼 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAABM0lEQVQoU41RwXHCQAyUjsHDkw6ggzgdOB2QDuBj2a+4g5AOkted+AAdUILTgVNBXAJPjxmkjDyQgYRA9NLtabUrCeEkmHkrInGe5/URvoThYrGIVfUZACanDS7kFQC8ENEGQwgbRFzZg5kVEe/TNLWCLo7Yfr/fOufKKIpiNJCI0Aq89+NTa4aZk2MTZi5FZN6RVLW8Ya37RsRYRB47kog8/JP0qqrFt73lcjnc7XZ3/X7/o2maYa/XG6Vp+m72bB6zfWbPZmJm216BiIWqWp4QUWKFAFAS0fwXyZTatn2KouitaZrYOTciorX3fgoAdZ7n5Z9KIjJ1zk1VNc6ybHI4SXWmFEKozM7PVV9aDDPXIpKg9z5xzq1U9fPGBseIuDbF7qiHwybXSIPBoJrNZlur+QKBmNUDeGA2LgAAAABJRU5ErkJggg==)
2023-07-03 |
程序开发 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAABIklEQVQoU3WRzXHCQAyF9XTwGTpIKohLMBWEdGAuyHuCEuggcLLXJzqIUwF0EEqgg3D2QcrI42VgILpoVqtPP0+gfyzGuCGiFYDZcrk8pTQ8y2+aZkgA8KaqryGE8wMQY5wTUT5+lFmW5X3f/4rIXdHhUdf1CzP/ENGEiE6qugsh7GOM5h2YeaOqR48NQIxx797MLgBWqjoLIRx9NDPbMnNJRFsR6RJwVtXSk+q6LtyPhdZmVhDRGcBERMoEWJZl08VicbkVwUcF4FDHzF8iMr0CaYxnqnlXZj64AAPQNE0H4CQirv2D+U3MLK+qap5U8goOFbdHcrJt29zMDqr64btdNR4vuyaiTwDD0uPCHtul7ndH8Vl9SQDvI/DtsibVPPYH+E6eDYX/dnMAAAAASUVORK5CYII=)
3125°C
上面一篇文章说了我使用了PHP的文件锁来制作了一个事务隔离。有些朋友说可以使用for update直接实现。于是去找了一些for update的资料,发现其中有一个点一直被他们说错了。于是就有了这篇文章。
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAA90lEQVQoU41RsXHDMAx8sKBaZQOPog3sEawKVKcR7A3UkaykDaJMkIzgDeINkloFkYNO0tGKcxdWBPAP/j8JuxNC6AAciagEMFhrr3Vdf68wyvExxkFEShFptU9ESr475+Z67u0IYq19WTf2fV9O0/TFzBtuu3jvD8aYz3yoy2KM8pSwDD8AjMysUhR8AVAxc/WXpBOAVxG5Lx4OKaW6aZrhF0EN6zYAXUrppgBjjNZnEXl3ztWbae/9mYjaoiiqPEIFLMZvKaWLvjSbjjGq9o6Zx/2/LHOV2qqXlfCQxJ6Ux/svQh7vTAghjER0fCZn7YnIm3Pu9AOP9nwNp+NeJQAAAABJRU5ErkJggg==)
孤狼 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA0AAAANCAYAAABy6+R8AAABM0lEQVQoU41RwXHCQAyUjsHDkw6ggzgdOB2QDuBj2a+4g5AOkted+AAdUILTgVNBXAJPjxmkjDyQgYRA9NLtabUrCeEkmHkrInGe5/URvoThYrGIVfUZACanDS7kFQC8ENEGQwgbRFzZg5kVEe/TNLWCLo7Yfr/fOufKKIpiNJCI0Aq89+NTa4aZk2MTZi5FZN6RVLW8Ya37RsRYRB47kog8/JP0qqrFt73lcjnc7XZ3/X7/o2maYa/XG6Vp+m72bB6zfWbPZmJm216BiIWqWp4QUWKFAFAS0fwXyZTatn2KouitaZrYOTciorX3fgoAdZ7n5Z9KIjJ1zk1VNc6ybHI4SXWmFEKozM7PVV9aDDPXIpKg9z5xzq1U9fPGBseIuDbF7qiHwybXSIPBoJrNZlur+QKBmNUDeGA2LgAAAABJRU5ErkJggg==)
2023-07-02 |
程序开发 |
![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAABIklEQVQoU3WRzXHCQAyF9XTwGTpIKohLMBWEdGAuyHuCEuggcLLXJzqIUwF0EEqgg3D2QcrI42VgILpoVqtPP0+gfyzGuCGiFYDZcrk8pTQ8y2+aZkgA8KaqryGE8wMQY5wTUT5+lFmW5X3f/4rIXdHhUdf1CzP/ENGEiE6qugsh7GOM5h2YeaOqR48NQIxx797MLgBWqjoLIRx9NDPbMnNJRFsR6RJwVtXSk+q6LtyPhdZmVhDRGcBERMoEWJZl08VicbkVwUcF4FDHzF8iMr0CaYxnqnlXZj64AAPQNE0H4CQirv2D+U3MLK+qap5U8goOFbdHcrJt29zMDqr64btdNR4vuyaiTwDD0uPCHtul7ndH8Vl9SQDvI/DtsibVPPYH+E6eDYX/dnMAAAAASUVORK5CYII=)
3108°C
最近在做一个任务管理平台,其中又一个业务是定时请求任务,由于业务逻辑和服务器性能原因不太适合做socket连接,所以采用的是定时请求方式获取数据。这直接造成了间歇性小并发。于是就带来了一些mysql脏读的问题。