SpaceKitt
码龄12年
关注
提问 私信
  • 博客:354,558
    社区:6
    354,564
    总访问量
  • 70
    原创
  • 2,228,794
    排名
  • 30
    粉丝
  • 0
    铁粉

个人简介:"Live long and prosper."

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:上海市
  • 加入CSDN时间: 2013-04-27
博客简介:

Better Explained

博客描述:
偶尔记录开发中的一些琐事
查看详细资料
个人成就
  • 获得80次点赞
  • 内容获得33次评论
  • 获得174次收藏
创作历程
  • 7篇
    2018年
  • 17篇
    2017年
  • 13篇
    2016年
  • 32篇
    2015年
  • 29篇
    2014年
  • 6篇
    2013年
成就勋章
TA的专栏
  • 数学与算法
  • math
    24篇
  • Go
    3篇
  • VC++
    13篇
  • C++
    19篇
  • C#
    2篇
  • 算法
    6篇
  • Windows
    8篇
  • 3ds Max
    4篇
  • 其它
    18篇
  • CG
    12篇
  • Excel
    4篇
  • unity
    2篇
  • IPC
    1篇
  • net
    1篇
  • Android
    1篇
  • regex
    2篇
  • Networking
    1篇
兴趣领域 设置
  • 人工智能
    机器学习
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

357人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

Golang method overriding examples

1. Pointer and Value Receiver2. Structs and embedding
原创
发布博客 2018.12.23 ·
384 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

TCP socket 过程图

TCP socket 过程图
转载
发布博客 2018.06.17 ·
765 阅读 ·
0 点赞 ·
1 评论 ·
1 收藏

CentOS设置系统环境变量

1)第一次尝试的天真做法:以注册golang环境变量为例:cd /etc/profile.dls -rtltouch custom.sh # or any file name you like to create a new filels -rtlecho "export PATH=\${PATH}:/usr/local/go/bin" > custom.sh && ...
原创
发布博客 2018.04.07 ·
921 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

正则表达式周二挑战赛 第一周

匹配连续出现的重复单词(不限次数):/(\b\S+\b) (\b\1\b( \b\1\b)*)/giReplaced with:$1 <strong>$2</strong>https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions...
原创
发布博客 2018.04.02 ·
367 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

正则表达式匹配n个以上连续的数字(包含空白字符的情况)

func filterOutNumbers(src string) string { re, _ := regexp.Compile("(?:(?:[0-9]|零|一|二|三|四|五|六|七|八|九|〇|壹|贰|叁|肆|伍|陆|柒|捌|玖)[[:space:]]*){4,}") return re.ReplaceAllString(src, "")}https://github.com/go...
原创
发布博客 2018.03.30 ·
17924 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

golang 一行代码 把array/slice转成逗号分隔的字符串

strings.Replace(strings.Trim(fmt.Sprint(array_or_slice), "[]"), " ", ",", -1)[a] -> a -> a[a b c] -> a b c -> a,b,c
原创
发布博客 2018.03.12 ·
23264 阅读 ·
4 点赞 ·
6 评论 ·
6 收藏

无法点击”我信任此应用“ Android

想从Google Play上安装Packet Capture抓包工具,可是打开代理APP却一直无法点击”我信任此应用“。解决:关掉护眼类的APP,就可以了。比如我用的“薄暮微光”。原因:据网上查到的,这类软件会开启省电优化,阻止VPN链接。同样地,运行Packet Capture的时候也要暂时关掉“薄暮微光”。...
原创
发布博客 2018.03.12 ·
1571 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

How I solved a problem about usage of pscp by requesting more information

pscp -i key.ppk t.txt server_ip:/usr/readmeServer refused our keyFatal: Disconnected: No supported authentication methods available (server sent: publickey,gssapi-keyex,gssapi-with-mic)pscp
原创
发布博客 2017.08.23 ·
693 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Windows上重定向到剪贴板的小技巧

ipconfig /all | clip 把 ipconfig /all 的输出复制到剪贴板此外, 按F7可以显示前几次输入的命令 From: https://www.hanselman.com/blog/ForgottenButAwesomeWindowsCommandPromptFeatures.aspx
翻译
发布博客 2017.08.18 ·
1398 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

C++日志库_spdlog

日志库?我需要这个干什么?除了可以记录产品的错误信息, 以供反馈debug之用; 还不失为一种更方便的文件IO库. 而且像spdlog, 可以同时向文件及Windows Debugger输出信息.Windows Debugger 是指 Visual Studio 的 Output 窗口, 或者可以用工具 Dbgview 查看, 其使用的Windows API是OutputDebugSt
原创
发布博客 2017.07.07 ·
5591 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

Convert Between char* string to wchar_t* string

code snippet:inline std::unique_ptr to_wchar_ts(const char * orig){ // newsize describes the length of the // wchar_t string called wcstring in terms of the number // of wide ch
原创
发布博客 2017.07.07 ·
474 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

求补码就是先找到倒数第一个1

N = x ... x x 1 0 ... 0按位取反,N' = x' ... x' x' 0 1 ... 1末位+1,-N ( N的补码 ) = x' ... x' x' 1 0 ... 0相当于 从低位到高位找到第一个 1, 1 和 1之低位的0 都不变, 1 之高位的都按位取反.N & -N == 0 .. 0 0 1 0 ... 0
原创
发布博客 2017.06.17 ·
641 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Visual Studio 设置追踪点

有时候, 我们不想设断点让程序的执行暂停下来, 而是把变量的值打印出来看看, 如果是控制台程序, 可以使用 printf 之类的. 但其它的程序怎么办?在Windows上, 一种方法是使用 OutputDebugString. 但是它只接受字符串参数, 易用性比 printf 可差远了.下面这种方法不用添加任何代码, 就能在Visual Studio中输出变量的值看看:新建 tra
原创
发布博客 2017.06.16 ·
2140 阅读 ·
0 点赞 ·
0 评论 ·
4 收藏

一个exe是32位的,还是64位的?

http://www.techsupportalert.com/content/how-find-out-if-program-or-executable-file-64-bit-or-32-bit.htm只意译了最方便的方法.右键单击exe, 选择"属性", 选择"兼容性", 如果兼容模式默认显示的是"Windows Vista", 则是 64bit 的exe.如果兼
翻译
发布博客 2017.06.14 ·
1440 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

C# struct and Unity3d Vector3

The new operator is also used to invoke the constructor for value types. Value-type objects such as structs are createdon the stack.—— C# new operatorThis is not like Java. In C#, you
原创
发布博客 2017.06.06 ·
426 阅读 ·
1 点赞 ·
0 评论 ·
0 收藏

查询电脑硬件,操作系统信息的微软API

用Querying WMI查询电脑的硬件、系统信息,相关的:Computer System Hardware ClassesOperating System Classes
转载
发布博客 2017.05.10 ·
705 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Some search result of float to int conversion

cast float to int in c++ standard,http://en.cppreference.com/w/cpp/language/implicit_conversionhttp://www.cplusplus.com/doc/tutorial/typecasting/http://en.cppreference.com/w/cpp/numeric/math
转载
发布博客 2017.04.28 ·
357 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

unsigned minus unsigned

Unsigned integer arithmetic is always performed modulo 2^nwhere n is the number of bits in that unsigned integer. A better name for unsigned integer + and - should be "circular plus" and "circular minus".
原创
发布博客 2017.03.27 ·
474 阅读 ·
0 点赞 ·
1 评论 ·
0 收藏

Unusual Errors of the Unity3D Editor -- Caused by Virus

1. Failed to import package with error: Couldn't decompress package UnityEditor.Web.JSProxyMgr:DoTasks()Maybe 7z.exe under \Unity\Editor\Data\Tools is infected with virus and deleted by security sof
转载
发布博客 2017.03.17 ·
615 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Remake Quaternions

That said when quaternions are used in geometry, it is more convenient to define them as a scalar plus a vector.An equivalent definition of Quaternion ( R3R^3 means 3D euclidean real vector space): Q
原创
发布博客 2017.03.10 ·
541 阅读 ·
1 点赞 ·
2 评论 ·
0 收藏
加载更多