2019年5月5日

blender skin modifier 太好玩了

摘要: https://docs.blender.org/manual/en/latest/modeling/modifiers/generate/skin.html 只需要像画火柴人一样把点连起来,skin modifier 会把这些线当作骨骼,然后生成网格。 Ctrl + A 可以调整 Vertex/E 阅读全文

posted @ 2019-05-05 18:11 明天有风吹 阅读(850) 评论(0) 推荐(0)

2019年4月29日

Ngon 是啥

摘要: https://www.gamefromscratch.com/post/2011/07/11/So-whats-an-ngon-anyways.aspx 在 blender 里面 Add 一个 Cylinder 时,有个 Cap Fill Type,有 3 个选项,用来决定这个圆柱的两个底是什么样 阅读全文

posted @ 2019-04-29 18:47 明天有风吹 阅读(1217) 评论(0) 推荐(0)

2019年4月28日

Mac 安装微软雅黑字体

摘要: https://www.jianshu.com/p/d8c34fff3483 1、找一台Windows电脑,打开字体文件夹C:\Windows\Fonts。 2、搜索“Calibri、微软雅黑、宋体”等字体,将字体文件复制出来。 3、打开macOS字体文件夹。 方法一:打开macOS的其他-字体册, 阅读全文

posted @ 2019-04-28 00:56 明天有风吹 阅读(14262) 评论(0) 推荐(0)

2019年4月18日

blender 常用快捷键手动整理

摘要: Shift + A 添加 Tab 切换 mode G grab 移动物体 armature envelop 设置骨骼影响范围:Edit Mode 下,选中骨头的其中一端,按 Alt + s,缩放 T 呼出 Tools N 呼出 Property Ctrl + Alt + Q 切换成三视图 Shift 阅读全文

posted @ 2019-04-18 17:48 明天有风吹 阅读(4769) 评论(0) 推荐(1)

2019年3月9日

微信小游戏 three.js jsonloader request:fail invalid url

摘要: 微信小游戏中,用 THREE.JSONLoader 直接加载本地的 json 文件,报错。估计是跨域访问的问题 解决:把 json 文件放到服务器上,通过 url 来访问。 临时测试的话,在本地起一个 http 服务器 如 python 版本大于 2.7 的话就换成这句: 然后通过 http://l 阅读全文

posted @ 2019-03-09 15:17 明天有风吹 阅读(771) 评论(0) 推荐(0)

2018年12月2日

three.js 一幅图片多个精灵

摘要: https://blog.csdn.net/zhulx_sz/article/details/79105359 核心代码 // 把一幅外部图片中包含的5种精灵存入一个精灵材质数组 var spriteMaterials = []; var loader = new THREE.TextureLoad 阅读全文

posted @ 2018-12-02 19:53 明天有风吹 阅读(846) 评论(0) 推荐(0)

2018年11月29日

[wxgl] load image fail

摘要: 微信小游戏 报错 参考 https://developers.weixin.qq.com/community/develop/doc/000006c3a886507c6266ac5f356c00 图片路径要写从项目根目录开始的绝对路径。如 res/image/srpite/someTexture.p 阅读全文

posted @ 2018-11-29 01:43 明天有风吹 阅读(444) 评论(0) 推荐(0)

2018年11月9日

https(ssl) 免费证书

摘要: https://letsencrypt.org/getting-started/ https://certbot.eff.org/lets-encrypt/centosrhel7-nginx 这个比较灵活 https://acme.sh https://github.com/acmesh-offic 阅读全文

posted @ 2018-11-09 19:52 明天有风吹 阅读(247) 评论(0) 推荐(0)

2018年11月8日

Mac 视频录制然后转 gif

摘要: https://gist.github.com/dergachev/4627207 1. 用 ScreenShot 或 Quicktime Player 录制视频, 保存位 in.mov 2. Notes on the arguments: r 10 tells ffmpeg to reduce t 阅读全文

posted @ 2018-11-08 19:43 明天有风吹 阅读(241) 评论(0) 推荐(0)

three.js 微信小游戏

摘要: 最近在 https://classroom.udacity.com/courses/cs291 学习了一些 3D 引擎和 three.js 的知识 把 three.js 弄到微信小游戏里,先随便跑一跑 最终效果: 代码结构如下: (先忽略 audio 和 images, 这里先不用) game.js 阅读全文

posted @ 2018-11-08 17:19 明天有风吹 阅读(1396) 评论(0) 推荐(0)

2018年11月5日

Dot & cross product

摘要: https://www.khanacademy.org/math/linear algebra/vectors and spaces/dot cross products/v/vector dot product and vector length 忘光光了 阅读全文

posted @ 2018-11-05 15:56 明天有风吹 阅读(248) 评论(0) 推荐(0)

2018年9月6日

Redis集群的数据划分与扩容探讨

摘要: http://engineering.xueqiu.com/blog/2014/12/26/redis capacity planning/ 阅读全文

posted @ 2018-09-06 17:30 明天有风吹 阅读(277) 评论(0) 推荐(0)

2018年7月4日

git HEAD~ vs HEAD^

摘要: https://stackoverflow.com/questions/26785118/head vs head vs head also known as tilde vs caret vs at sign/26785200 https://stackoverflow.com/questions 阅读全文

posted @ 2018-07-04 10:50 明天有风吹 阅读(349) 评论(0) 推荐(0)

What does git fsck stand for?

摘要: fsck File System ChecK https://stackoverflow.com/questions/21151945/what does git fsck stand for 阅读全文

posted @ 2018-07-04 10:20 明天有风吹 阅读(130) 评论(0) 推荐(0)

2018年7月3日

what does GIT PUSH do exactly?

摘要: 有效理解 git 的对象模型 https://stackoverflow.com/questions/26005031/what does git push do exactly 所谓分支, 就是一个指针, 指向某个 commit 链 阅读全文

posted @ 2018-07-03 22:34 明天有风吹 阅读(170) 评论(0) 推荐(0)

2018年7月2日

git checkout tags with the same name as a branch

摘要: 显式指定某个 tag git checkout refs/tags/ 显式指定某个 branch git checkout refs/heads/ 阅读全文

posted @ 2018-07-02 16:55 明天有风吹 阅读(405) 评论(0) 推荐(0)

2018年6月29日

githug rename_commit 修改已经commit但还没push的一条message

摘要: githug 第 45 关, 一开始对 git rebase i 这个东西有误解, 记录一下正确的用法 查找有拼写错误的那一条 commit First coommit // commit 写错了 git rebase i parent_of_flawed_commit 然后跳到 编辑它, 然后 : 阅读全文

posted @ 2018-06-29 12:03 明天有风吹 阅读(499) 评论(0) 推荐(0)

2018年3月6日

boost::bind 实现原理, 手动实现一个

摘要: 原理如此,其它形式的 bind 都类似 阅读全文

posted @ 2018-03-06 16:43 明天有风吹 阅读(592) 评论(0) 推荐(0)

2018年2月6日

迅雷 应版权方要求 文件无法下载

摘要: 解决方案: 下载老版本迅雷 http://mac.xunlei.com/history_version.html 阅读全文

posted @ 2018-02-06 20:40 明天有风吹 阅读(5746) 评论(0) 推荐(0)

2018年1月31日

iOS 抓包

摘要: "通过tcpdump对iOS进行流量分析(无需越狱" "iOS Packet Tracing" 1. 将 iOS 设备通过 USB 连接到 Mac 2. 打开 terminal rvictl s $UDID 3. 运行 tcpdump sudo tcpdump i rvi0 w dump.pcap 阅读全文

posted @ 2018-01-31 00:12 明天有风吹 阅读(150) 评论(0) 推荐(0)

2018年1月28日

sudo rm -rf iTunes.app Operation not permitted

摘要: https://www.howtogeek.com/230424/how to disable system integrity protection on a mac and why you shouldnt/ 重启,按住 Commond + R 进入 recovery 模式 打开 Termina 阅读全文

posted @ 2018-01-28 00:36 明天有风吹 阅读(707) 评论(0) 推荐(0)

2018年1月27日

旅行青蛙

摘要: 今天才知道旅行青蛙的时间是取的客户端时间,没有做服务器校验。 也就是说,如果我把手机时间调到 3 个小时以后,再打开旅行青蛙,那么就可以领取满满的三叶草了! 然后我就手动操作 删掉游戏 再从 AppStore 下载下来 (这一步之前先不要改时间,否则下载不下来) 把手机时间调到很久以前(如 2016 阅读全文

posted @ 2018-01-27 02:19 明天有风吹 阅读(179) 评论(0) 推荐(0)

2018年1月10日

发现一个好玩的东西 Web Scraper

摘要: 是一个 Chrome 的扩展程序,机智的小爬虫 "Scraping a site" 阅读全文

posted @ 2018-01-10 15:07 明天有风吹 阅读(137) 评论(0) 推荐(0)

2018年1月8日

分布式系统中 Unique ID 的生成方法

摘要: http://darktea.github.io/notes/2013/12/08/Unique ID Snowflake 生成的 unique ID 的组成 (由高位到低位): 41 bits: Timestamp (毫秒级) 10 bits: 节点 ID (datacenter ID 5 bit 阅读全文

posted @ 2018-01-08 13:53 明天有风吹 阅读(486) 评论(0) 推荐(0)

2018年1月5日

终于把微信小游戏 跳一跳 的外挂弄好了

摘要: https://github.com/wangshub/wechat_jump_game/wiki/Android-%E5%92%8C-iOS-%E6%93%8D%E4%BD%9C%E6%AD%A5%E9%AA%A4 注意要安装 python3 依赖的 python 的那些库也要用 pip3 来安装 阅读全文

posted @ 2018-01-05 02:18 明天有风吹 阅读(198) 评论(0) 推荐(0)

2017年12月26日

utf-8 decode

摘要: 摘自 Lua 5.3 源文件 lutf8lib.c 关于 utf-8 的基础知识,参考 http://www.ruanyifeng.com/blog/2007/10/ascii_unicode_and_utf-8.html UTF-8 的编码规则很简单,只有二条: 1)对于单字节的符号,字节的第一位 阅读全文

posted @ 2017-12-26 00:16 明天有风吹 阅读(752) 评论(0) 推荐(0)

2017年12月25日

CentOS No manual entry for man 没有 xx 的手册页条目

摘要: yum install -y man man-pages man-pages-overrides https://unix.stackexchange.com/questions/182500/no-manual-entry-for-man 阅读全文

posted @ 2017-12-25 10:42 明天有风吹 阅读(1240) 评论(0) 推荐(1)

2017年12月9日

redis 分布式读写锁

摘要: http://zhangtielei.com/posts/blog-redlock-reasoning.html 链接里这篇 blog 讨论了 redis 分布式锁的实现以及安全性 我要参考 基于单Redis节点的分布式锁,实现一个 基于单Redis节点的分布式读写锁 先是想到一个不是很好的方案 r 阅读全文

posted @ 2017-12-09 23:55 明天有风吹 阅读(8500) 评论(0) 推荐(0)

2017年11月29日

html canvas 的宽高以及像素限制

摘要: canvas 宽高设置不合适的话,是画不出东西出来的 https://stackoverflow.com/questions/6081483/maximum-size-of-a-canvas-element 阅读全文

posted @ 2017-11-29 11:42 明天有风吹 阅读(1560) 评论(0) 推荐(0)

2017年11月12日

文件描述符的申请与回收

摘要: 最近弄定时器,需要一个类似 Linux 中文件描述符的概念。每启动一个定时器都返回一个定时器的 handle (fd). handle 从 0 开始,生成时永远取其取值范围内最小的数字。于是有: 1 #include <set> 2 3 class FDManager 4 { 5 public: 6 阅读全文

posted @ 2017-11-12 23:28 明天有风吹 阅读(681) 评论(0) 推荐(0)

hotmail 收不到邮件的问题

摘要: 之前用 hotmail 注册过一个 aws 账号,起了一个 ec2 的免费一年的 VPS,然后没怎么用,不久就把这事忘了。 直到有一天手机收到信用卡扣款消息,我就马上去登账号,却怎么也想不起密码来了,邮箱还怎么也收不到邮件,真是奇哉怪也! 各种尝试无果。 最后随手设置了下自动转发邮件到我 gmail 阅读全文

posted @ 2017-11-12 23:03 明天有风吹 阅读(4273) 评论(0) 推荐(0)

2017年11月2日

getaddrinfo 报错 Invalid value for ai_flags

摘要: 最近改了游戏的网络层代码,运行 Android 版的时候 getaddrinfo 报错 Invalid value for ai_flags. ai_flags 设置如下: struct addrinfo hint = {0}; hint.ai_flags = AI_DEFAULT; 几经搜索,发现 阅读全文

posted @ 2017-11-02 00:39 明天有风吹 阅读(905) 评论(0) 推荐(0)

2017年10月21日

Avoiding Common Networking Mistakes

摘要: https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/NetworkingOverview/CommonPitfalls/CommonPitfalls.html#//app 阅读全文

posted @ 2017-10-21 00:37 明天有风吹 阅读(197) 评论(0) 推荐(0)

2017年10月18日

关掉标准输出

摘要: 服务器 console 上打了一堆 log,又耗时又难看 fclose(stdout); stdout 的类型是 FILE*,所以要用 fclose 来关闭 或者 close(1) close(fileno(stdout)) 阅读全文

posted @ 2017-10-18 22:01 明天有风吹 阅读(275) 评论(0) 推荐(0)

2017年9月29日

不需要 root 权限的 ping

摘要: https://blog.lilydjwg.me/2013/10/29/non-privileged-icmp-ping.41390.html https://stackoverflow.com/questions/8290046/icmp-sockets-linux/20105379#201053 阅读全文

posted @ 2017-09-29 17:28 明天有风吹 阅读(636) 评论(0) 推荐(0)

2017年9月8日

select 的问题

摘要: select 一个 "connection refused" 的 socket, socket 居然状态可写。。 原代码用 select 检查 socket 的可写状态来判断连接是否成功,IOS 版本的代码中没有对 connect 返回值做检查,才发现这个现象。。 阅读全文

posted @ 2017-09-08 11:43 明天有风吹 阅读(132) 评论(0) 推荐(0)

2017年6月23日

Behavior Tree 用 Lua 实现一个最简行为树

摘要: 有没有比 C++ 代码简单一万倍,有没有? https://github.com/hangj/BehaviorTree 阅读全文

posted @ 2017-06-23 00:33 明天有风吹 阅读(1522) 评论(0) 推荐(0)

2017年5月26日

对 UDP 的一些思考

摘要: 先放两个链接 快速可靠协议-KCP 可靠 UDP 传输 最近在玩王者荣耀,发觉两件事: 1. 可以 4G 和 wifi 无痛切换 2. 当网络不好的时候,发出去的消息并不保证到达服务器。比如你在很卡的时候做了某些操作,等网络恢复之后你会发现,你还是在某个没有做那些操作之前的状态 结合这两周阅读的 K 阅读全文

posted @ 2017-05-26 08:30 明天有风吹 阅读(2260) 评论(0) 推荐(0)

2017年5月24日

Windows UDP sockets: recvfrom() fails with error 10054

摘要: https://stackoverflow.com/questions/34242622/windows-udp-sockets-recvfrom-fails-with-error-10054 阅读全文

posted @ 2017-05-24 19:51 明天有风吹 阅读(446) 评论(0) 推荐(0)

2017年4月20日

和等于某个数的所有组合

摘要: 最近在做组队匹配的功能,需要根据队伍的总人数找到可以组成一个队伍的所有排列组合,然后组合去寻找合适的房间 于是有了这个递归算法 阅读全文

posted @ 2017-04-20 14:40 明天有风吹 阅读(403) 评论(0) 推荐(0)

导航

+V atob('d2h5X251bGw=')

请备注:from博客园