The correct way to initialize a dynamic pointer to a multidimensional array
摘要:From:https://stackoverflow.com/questions/18273370/the-correct-way-to-initialize-a-dynamic-pointer-to-a-multidimensional-array Let's start with some ba
阅读全文
posted @
2018-05-30 10:26
今夜太冷
阅读(161)
推荐(0) 编辑
wcstombs_s 宽字节转多字节
摘要:From: https://blog.csdn.net/ychw365/article/details/7034950
阅读全文
posted @
2018-05-30 09:46
今夜太冷
阅读(810)
推荐(0) 编辑
receiving error: 'Error: SSL Error: SELF_SIGNED_CERT_IN_CHAIN' while using npm
摘要:From:https://stackoverflow.com/questions/9626990/receiving-error-error-ssl-error-self-signed-cert-in-chain-while-using-npm [问题] am using npm v1.0.104/
阅读全文
posted @
2018-05-28 14:39
今夜太冷
阅读(337)
推荐(0) 编辑
JavaScript – Convert Image to Base64 String
摘要:From: https://bytenota.com/javascript-convert-image-to-base64-string/ his post shows you two approaches how to convert an image to a Base64 string usi
阅读全文
posted @
2018-05-28 11:41
今夜太冷
阅读(978)
推荐(0) 编辑
he canvas has been tainted by cross-origin data and tainted canvases may not be exported
摘要:来自: https://ourcodeworld.com/articles/read/182/the-canvas-has-been-tainted-by-cross-origin-data-and-tainted-canvases-may-not-be-exported These errors
阅读全文
posted @
2018-05-28 11:07
今夜太冷
阅读(4494)
推荐(0) 编辑
Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported.
摘要:canvas绘制图片,由于浏览器的安全考虑,如果在使用canvas绘图的过程中,使用到了外域的图片资源,那么在toDataURL()时会抛出安全异常: 解决方案1. 如果想使用toDataURL()生成图片文件的话,在canvas绘图过程中使用的图片应该是当前域下的。 解决方案2. 访问的服务器允许
阅读全文
posted @
2018-05-28 10:59
今夜太冷
阅读(1919)
推荐(0) 编辑
HOW TO REPLACE ALL OCCURRENCES OF A CHARACTER IN A STD::STRING
摘要:From: http://www.martinbroadhurst.com/replacing-all-occurrences-of-a-character-in-a-stdstring.html This can be done using the standard library or Boos
阅读全文
posted @
2018-05-23 17:22
今夜太冷
阅读(166)
推荐(0) 编辑
one or more multiply defined symbols found
摘要:在一个c++的.h文件中加入了这段代码: #include <string> using namespace std; std::string escapeStr(const std::string& input) { return std::string(input); } 结果总是报错: one
阅读全文
posted @
2018-05-23 16:11
今夜太冷
阅读(3628)
推荐(0) 编辑
Std::map too few template arguments
摘要:在上述的代码中,红色波浪线的部分编译的时候报错: error C2976: 'std::map' : too few template arguments 换成std::map<std::string, std::string>也是一样的错误. 怎么回事那? [解决方法] 包含 map就可以了. #
阅读全文
posted @
2018-05-22 14:24
今夜太冷
阅读(1980)
推荐(0) 编辑
Always run a program in administrator mode in Windows 10
摘要:From: https://www.cnet.com/how-to/always-run-a-program-in-administrator-mode-in-windows-10/ If you're sick of seeing those UAC pop-ups, you can get ri
阅读全文
posted @
2018-05-08 15:51
今夜太冷
阅读(360)
推荐(0) 编辑
JSON.parse 必须用双引号包起来
摘要:Why is it that whenever I do :- JSON.parse('"something"') it just parses fine but when I do:- var m = "something"; JSON.parse(m); it gives me an error
阅读全文
posted @
2018-05-05 14:25
今夜太冷
阅读(464)
推荐(0) 编辑
jni4net使用小结
摘要:http://jni4net.com/ 1) 从这里下载binaries,然后解压缩. https://sourceforge.net/projects/jni4net/files/ 2) 创建一个.net的console application. 3) 讲lib目录中的jni4net.n-0.8.
阅读全文
posted @
2018-05-03 16:47
今夜太冷
阅读(2159)
推荐(0) 编辑
Cannot generate C# proxy dll with JNI4NET tool, running batch file as trusted assembly?
摘要:From: https://stackoverflow.com/questions/41042368/cannot-generate-c-sharp-proxy-dll-with-jni4net-tool-running-batch-file-as-trust I am working on get
阅读全文
posted @
2018-05-03 16:19
今夜太冷
阅读(464)
推荐(0) 编辑
Java access to the Domino Objects, Part 1
摘要:From: https://www.ibm.com/developerworks/lotus/library/ls-Java_access_pt1/index.html Overview Java access to the Domino Objects is through the high-le
阅读全文
posted @
2018-05-03 16:16
今夜太冷
阅读(255)
推荐(0) 编辑