Blogs
qt程序的发布
Submitted by hubdog on Fri, 2021-08-27 12:39windeployqt --qmldir C:\Qt\5.15.2\msvc2019_64\qml xxx.exe
nvidia windows docker gpu支持
Submitted by hubdog on Tue, 2021-07-06 17:32https://blog.csdn.net/chenxizhan1995/article/details/117855448
重要的事情说三遍,需要升级到21390以上,需要升级到21390以上,需要升级到21390以上(因为windows11已经发布了,所以只要升级到win11就可以了)
另外,执行docker run --gpus all -it --shm-size=1g --ulimit memlock=-1 --ulimit stack=67108864 nvcr.io/nvidia/tensorflow:20.03-tf2-py3
会报告下面找不到gpu的错误信息,但是据https://qiita.com/ksasaki/items/ee864abd74f95fea1efa网上文章说,这个属于误报,实际上是可以认识到gpu的。可以无视这个信息
WARNING: The NVIDIA Driver was not detected. GPU functionality will not be available.
至少我执行docker run --gpus all nvcr.io/nvidia/k8s/cuda-sample:nbody nbody -gpu -benchmark
MIUI的空白敏感信息真是烂
Submitted by hubdog on Tue, 2021-06-15 22:31今天运行乐天Link,这个app需要获取sim卡的号码来发送短信认证。结果miui这货返回的手机号码信息都是空白的,认证无法进行,也不弹个提示信息,搞了半天,真tmd脑残一样的设计。
Hololens2 的3D空间位置标注
Submitted by hubdog on Wed, 2021-06-09 12:36Windows server 2016 无法连接SQL Server的问题
Submitted by hubdog on Mon, 2021-06-07 10:15连接SQLServer的时候会报
Login failed due to client TLS version being less than minimal TLS version allowed by the server
原因是SQLServer Native Client太旧,不支持使用TLS1.2连接SQL Server
需要下载SQL Server Native Client
https://support.microsoft.com/en-us/topic/kb3135244-tls-1-2-support-for-...
Mockito调试的问题
Submitted by hubdog on Tue, 2021-05-25 19:05注意凡是用@Spy和@Mock标注过的类,都是被Mock过,不能够正常的debug相应方法的代码。
要debug的方法,不要用Mock或者Spy来标注相应的对象
Delphi在Android上安装Apk
Submitted by hubdog on Sat, 2021-05-01 14:451.编辑AndroidManifest.template.xml,添加Request_install_packages的Uses Permission
2.Enable Secure File Sharing entitlement
LeetCode121双指针解法
Submitted by hubdog on Mon, 2021-04-19 09:07
class Solution { public int maxProfit(int[] prices) { int maxProfit=0; for (int i=0;i<prices.length;i++){ if (prices[i]<minPrice){ minPrice=prices[i]; } else if (prices[i]-minPrice>maxProfit){ maxProfit=prices[i]-minPrice; } } return maxProfit; } }
LeetCode236
Submitted by hubdog on Fri, 2021-04-09 23:59
class Solution { if (root==null) return null; if (root.val==p.val || root.val==q.val) return root; if (left==null) return right; if (right==null) return left; return root; } }