<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"><channel><title>拾微</title><description>编程、系统、工具与思考。</description><link>https://blog.erossr.com/</link><language>zh-cn</language><item><title>动态链接库函数内的静态变量,奇妙的UNIQUE Bind</title><link>https://blog.erossr.com/%E5%8A%A8%E6%80%81%E9%93%BE%E6%8E%A5%E5%BA%93%E5%87%BD%E6%95%B0%E5%86%85%E7%9A%84%E9%9D%99%E6%80%81%E5%8F%98%E9%87%8F-%E5%A5%87%E5%A6%99%E7%9A%84UNIQUE-Bind/</link><guid isPermaLink="true">https://blog.erossr.com/%E5%8A%A8%E6%80%81%E9%93%BE%E6%8E%A5%E5%BA%93%E5%87%BD%E6%95%B0%E5%86%85%E7%9A%84%E9%9D%99%E6%80%81%E5%8F%98%E9%87%8F-%E5%A5%87%E5%A6%99%E7%9A%84UNIQUE-Bind/</guid><description>模板函数和内敛函数中的静态变量，在跨so中的表现，和定义在其他函数中的静态变量的表现稍微有所不同。使用不慎，会造成预期之外的结果。本文对该现象进行了探讨。 最近遇到一个使用多个共享动态库时，由于静态变量导致的逻辑问题。考虑如下一个问题，主模块要打开A.so和B.so两个动态库，两个动态库的代码使用到</description><pubDate>Fri, 28 Sep 2018 00:00:00 GMT</pubDate><category>C/C++</category><category>Linux</category></item><item><title>core dump文件分析和调试</title><link>https://blog.erossr.com/core-dump%E6%96%87%E4%BB%B6%E5%88%86%E6%9E%90%E5%92%8C%E8%B0%83%E8%AF%95/</link><guid isPermaLink="true">https://blog.erossr.com/core-dump%E6%96%87%E4%BB%B6%E5%88%86%E6%9E%90%E5%92%8C%E8%B0%83%E8%AF%95/</guid><description>当程序运行的过程中异常终止或崩溃，操作系统会将程序当时的内存状态记录下来，保存在一个文件中，这种行为就叫做Core Dump（中文有的翻译成“核心转储”)。我们可以认为 core dump 是“内存快照”，但实际上，除了内存信息之外，还有些关键的程序运行状态也会同时 dump 下来，例如寄存器信息（</description><pubDate>Tue, 25 Sep 2018 00:00:00 GMT</pubDate><category>调试</category><category>Linux</category></item><item><title>arm平台的调用栈回溯(backtrace)</title><link>https://blog.erossr.com/Arm%E5%B9%B3%E5%8F%B0%E7%9A%84%E8%B0%83%E7%94%A8%E6%A0%88%E5%9B%9E%E6%BA%AF/</link><guid isPermaLink="true">https://blog.erossr.com/Arm%E5%B9%B3%E5%8F%B0%E7%9A%84%E8%B0%83%E7%94%A8%E6%A0%88%E5%9B%9E%E6%BA%AF/</guid><description>arm平台的调用栈与x86平台的调用栈大致相同，稍微有些区别，主要在于栈帧的压栈内容和传参方式不同。在arm平台的不同程序，采用的编译选项不同，程序运行期间的栈帧也会不同。有些工具在对arm的调用栈回溯时，可能会遇到无法回溯的情况。例如gdb在使用bt查看core dump文件调用栈时，有时会出现B</description><pubDate>Wed, 19 Sep 2018 00:00:00 GMT</pubDate><category>C/C++</category><category>调试</category></item><item><title>appleid切换美区</title><link>https://blog.erossr.com/appleid%E5%88%87%E6%8D%A2%E7%BE%8E%E5%8C%BA/</link><guid isPermaLink="true">https://blog.erossr.com/appleid%E5%88%87%E6%8D%A2%E7%BE%8E%E5%8C%BA/</guid><description>以下内容摘自V2Ex, 经验证有效 刚刚那个美区 APP 被清空的帖子已经展示了我的智商…为了表示歉意(纠正一下我的智商)，我说一下 Apple ID 切换美区的一个奇淫技巧吧；刚刚测试把室友的切换过去了，此办法在切换过程无需任何支付卡号，目前百分百成功…但是为了巩固账号，我建议还是某宝买个礼品卡冲</description><pubDate>Sun, 04 Feb 2018 00:00:00 GMT</pubDate><category>工具</category></item><item><title>Centos7启用BBR</title><link>https://blog.erossr.com/bbr/</link><guid isPermaLink="true">https://blog.erossr.com/bbr/</guid><description>BBR (Bottleneck Bandwidth and RTT) is a new congestion control algorithm which is contributed to the Linux kernel TCP stack by Google. With BBR in pla</description><pubDate>Sun, 04 Feb 2018 00:00:00 GMT</pubDate><category>Linux</category><category>网络</category></item><item><title>hexo博客一键式部署到服务器</title><link>https://blog.erossr.com/gogs%E5%92%8Cgit-hook%E5%AE%9E%E7%8E%B0hex%E5%8D%9A%E5%AE%A2%E4%B8%80%E9%94%AE%E5%BC%8F%E9%83%A8%E7%BD%B2/</link><guid isPermaLink="true">https://blog.erossr.com/gogs%E5%92%8Cgit-hook%E5%AE%9E%E7%8E%B0hex%E5%8D%9A%E5%AE%A2%E4%B8%80%E9%94%AE%E5%BC%8F%E9%83%A8%E7%BD%B2/</guid><description>hexo博客部署到服务器可以使用git和rsync方法，本文首先接受git方式。通过hexo d命令将public目录推送到git服务器，并触发部署代码到网站目录。 git服务器可以选择gitlab或者gogs, 本文选择gogs。gogs安装链接 安装完gogs服务器后，配置好git网站git.e</description><pubDate>Sun, 04 Feb 2018 00:00:00 GMT</pubDate><category>Git</category><category>部署</category></item><item><title>create git service with gog</title><link>https://blog.erossr.com/create-git-service-with-gog/</link><guid isPermaLink="true">https://blog.erossr.com/create-git-service-with-gog/</guid><description>今天发现gog挺好玩的，再加上自己的博客即将从wordpress转为hexo，所以希望有个git仓库保存自己的资源。借此机会，试一下gog的服务。 遇到的第一个难题就是在安装gog时，遇到Error 1071: Specified key was too long; max key length i</description><pubDate>Fri, 02 Feb 2018 00:00:00 GMT</pubDate><category>Git</category><category>部署</category></item><item><title>Hello World</title><link>https://blog.erossr.com/hello-world/</link><guid isPermaLink="true">https://blog.erossr.com/hello-world/</guid><description>Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in </description><pubDate>Sun, 28 Jan 2018 00:00:00 GMT</pubDate><category>随笔</category></item><item><title>使用fail2ban阻止暴力破解ssh</title><link>https://blog.erossr.com/fail2ban/</link><guid isPermaLink="true">https://blog.erossr.com/fail2ban/</guid><description>今天晚上在博客服务器上进行操作的时候，突然发现登录后提示本次登录前有几十次的失败登录。查看登录Log（/val/log/secure）,发现有大量失败的ssh登录记录。可以判断有人是在尝试暴力破解ssh。以前曾经使用过fail2ban，这次决定用fail2ban来禁止对方登录。以下是在centos7</description><pubDate>Mon, 12 Dec 2016 00:00:00 GMT</pubDate><category>Linux</category><category>安全</category></item><item><title>破解py2exe打包的程序</title><link>https://blog.erossr.com/%E7%A0%B4%E8%A7%A3py2exe%E6%89%93%E5%8C%85%E7%9A%84%E7%A8%8B%E5%BA%8F/</link><guid isPermaLink="true">https://blog.erossr.com/%E7%A0%B4%E8%A7%A3py2exe%E6%89%93%E5%8C%85%E7%9A%84%E7%A8%8B%E5%BA%8F/</guid><description>py2exe是一个将python脚本转换成windows上的可独立执行的可执行程序(*.exe)的工具，这样，你就可以不用装python而在windows系统上运行这个可执行程序。然而如果不对代码做任何混淆，仅使用Py2exe将程序打包的程序容易被破解。本文讲解破解Py2exe打包的程序的过程。 P</description><pubDate>Thu, 31 Dec 2015 00:00:00 GMT</pubDate><category>Python</category><category>逆向分析</category></item><item><title>hashcat破解office(97-03,2007,2010,2013)密码</title><link>https://blog.erossr.com/hashcat%E7%A0%B4%E8%A7%A3office%E5%AF%86%E7%A0%81/</link><guid isPermaLink="true">https://blog.erossr.com/hashcat%E7%A0%B4%E8%A7%A3office%E5%AF%86%E7%A0%81/</guid><description>hashcat是一款免费的密码破解工具。它支持使用AMD和NVidia显卡运算，同时也保留使用cpu计算的版本。hashcat号称是世界上最快的密码破解工具，同时也是世界上第一款和唯一一款使用通用图形处理器的工具。它支持windows和linux操作系统，同时支持OpenCL和CUDA。hashca</description><pubDate>Sun, 13 Sep 2015 00:00:00 GMT</pubDate><category>安全</category><category>工具</category></item><item><title>Meteor使用现有的mongodb数据库</title><link>https://blog.erossr.com/meteorshi-yong-xian-you-de-mongodbshu-ju-ku/</link><guid isPermaLink="true">https://blog.erossr.com/meteorshi-yong-xian-you-de-mongodbshu-ju-ku/</guid><description>meteor使用环境变量MONGO_URL确定mongodb的位置。如果已经存在一个监听在27017端口上的mongdb，则可以使用下边的一句话使用现有的mongodb。 将其中的your_db替换成你要使用的数据库。每次重开一个终端或主机重启的时候，环境变量会还原，需要重新导入。</description><pubDate>Fri, 01 May 2015 00:00:00 GMT</pubDate><category>Web</category><category>数据库</category></item><item><title>字母转换大小写</title><link>https://blog.erossr.com/zi-mu-zhuan-huan-da-xiao-xie/</link><guid isPermaLink="true">https://blog.erossr.com/zi-mu-zhuan-huan-da-xiao-xie/</guid><description>在ASCII码中，大写字母A-Z的编码是41h-5Ah,小写字母a-z的编码是61h-8Ah,中间相差20h，用二进制表示就是0010 0000。所以当从大写转换成小写或者从小写转换到大写的时候只需改变一位即可。可以用位操作很快的实现。 c语言示例代码</description><pubDate>Fri, 01 May 2015 00:00:00 GMT</pubDate><category>编程</category></item><item><title>Vim tutorial</title><link>https://blog.erossr.com/vim-tutorial/</link><guid isPermaLink="true">https://blog.erossr.com/vim-tutorial/</guid><description>写在前边请忽略任何将VIM配置成类似Notepad编辑器的建议（Please ignore anyone who provides advice on how to configure Vim to operate like Notepad!） Vim中有Normal(普通)，Insert（编辑）和</description><pubDate>Wed, 17 Dec 2014 00:00:00 GMT</pubDate><category>Vim</category></item><item><title>Vim 学习笔记-使用tab分页（1）</title><link>https://blog.erossr.com/vim-xue-xi-bi-ji-shi-yong-biao-qian-lan/</link><guid isPermaLink="true">https://blog.erossr.com/vim-xue-xi-bi-ji-shi-yong-biao-qian-lan/</guid><description>下边的的内容会介绍利用tab分页打开和编辑文件。在Vim中，所有文本都被放在缓存区，每一个缓存区都可以被显示在任意数量的窗口或任意数量的tab页面中（就像谷歌浏览器的标签页，以下将用tab描述）。 在很多编辑器中（不包括Vim）,一个文件只能在一个分页中打开，而每一个分页只能显示一个文件，一个文件不</description><pubDate>Tue, 09 Dec 2014 00:00:00 GMT</pubDate><category>Vim</category></item><item><title>Vim 学习笔记-复制和粘贴</title><link>https://blog.erossr.com/vim-xue-xi-bi-ji-1/</link><guid isPermaLink="true">https://blog.erossr.com/vim-xue-xi-bi-ji-1/</guid><description>最近随着在linux下工作的时间越来越多，Vim的使用次数也越来在越多。以前曾经掌握的基本操作本来就不多，后来又忘掉了很多，现在越来越感觉会的快捷键不够用了，导致编辑效率不高。所以现在每天花点时间重新学些Vim的东西吧。 剪切（复制）和粘贴 tips: d = delete = cut y = ya</description><pubDate>Mon, 08 Dec 2014 00:00:00 GMT</pubDate><category>Vim</category></item><item><title>用python制作一个简单爬虫下载500px的图片</title><link>https://blog.erossr.com/fen-xi-500pxde-apibing-qie-zhi-zuo-ge-pa-chong/</link><guid isPermaLink="true">https://blog.erossr.com/fen-xi-500pxde-apibing-qie-zhi-zuo-ge-pa-chong/</guid><description>500px.com是一个专业的摄影图片社区，在500px上可以发现和分享高质量的图片，它的Logo是“最出色的摄影社区”。我在他的网站上找到很多喜爱的图片。但是，当你发现自己喜爱的图片然后右键的时候，糟糕，提示“copyright blabla”,反正就是不让下载。今天，我在这里记录我分析他的API</description><pubDate>Sun, 07 Dec 2014 00:00:00 GMT</pubDate><category>Python</category><category>爬虫</category></item><item><title>大话同步/异步、阻塞/非阻塞</title><link>https://blog.erossr.com/da-hua-tong-bu-yi-bu-zu-sai-fei-zu-sai/</link><guid isPermaLink="true">https://blog.erossr.com/da-hua-tong-bu-yi-bu-zu-sai-fei-zu-sai/</guid><description>原文作者：李博杰 原文地址:https://bojieli.com/2014/11/sync-async-blocked/ (转载请注明出处) 好多人搞不清这两组概念之间的区别。我们拿小明下载文件打个比方。 在不同的场景下，同步/异步、阻塞/非阻塞的四种组合都有应用。 同步阻塞是最简单的方式，就像我</description><pubDate>Tue, 02 Dec 2014 00:00:00 GMT</pubDate><category>编程</category><category>网络</category></item><item><title>ghost blog安装过程</title><link>https://blog.erossr.com/ghost-blogan-zhuang-xiang-xi-guo-cheng/</link><guid isPermaLink="true">https://blog.erossr.com/ghost-blogan-zhuang-xiang-xi-guo-cheng/</guid><description>ghost blog是一个用node.js写成的开源博客平台，由前 WordPress UI 部门主管 John O’Nolan 和 WordPress 高级工程师（女） Hannah Wolfe 创立，目的是为了给用户提供一种更加纯粹的内容写作与发布平台。ghost blog现在有从zip压缩包安</description><pubDate>Tue, 02 Dec 2014 00:00:00 GMT</pubDate><category>部署</category><category>Web</category></item><item><title>电信服务商屏蔽digitalocean新加坡ip</title><link>https://blog.erossr.com/dian-xin-fu-wu-shang-ping-bi-digitaloceanxin-jia-po-ip/</link><guid isPermaLink="true">https://blog.erossr.com/dian-xin-fu-wu-shang-ping-bi-digitaloceanxin-jia-po-ip/</guid><description>因为最近在旧金山的digitalocean上的vps访问起来ping值越来越高，平均都在200以上了，所以今天想把droplet转移到新加坡机房。转移过后问题出现了。丢包特别严重平均50%。而且到后来ssh都无法连接成功。 给support提交了ticket，他们让我们traceroute和ping</description><pubDate>Fri, 28 Nov 2014 00:00:00 GMT</pubDate><category>网络</category></item><item><title>使用Las Vegas随机算法求N皇后问题的解</title><link>https://blog.erossr.com/shi-yong-las-vegassui-ji-suan-fa-qiu-nhuang-hou-wen-ti-de-jie/</link><guid isPermaLink="true">https://blog.erossr.com/shi-yong-las-vegassui-ji-suan-fa-qiu-nhuang-hou-wen-ti-de-jie/</guid><description>使用Las Vegas随机算法求N皇后问题的解</description><pubDate>Fri, 28 Nov 2014 00:00:00 GMT</pubDate><category>算法</category></item><item><title>ubuntu 安装ssh-server并且允许root登陆</title><link>https://blog.erossr.com/ubuntu-an-zhuang-ssh-serverbing-qie-yun-xu-rootdeng-lu/</link><guid isPermaLink="true">https://blog.erossr.com/ubuntu-an-zhuang-ssh-serverbing-qie-yun-xu-rootdeng-lu/</guid><description>ubuntu 安装ssh-server并且允许root登陆</description><pubDate>Fri, 28 Nov 2014 00:00:00 GMT</pubDate><category>Linux</category><category>SSH</category></item></channel></rss>