上一页 1 ··· 3 4 5 6 7 8 下一页

2015年12月17日

协程 coroutine

摘要: 参考链接:http://manual.luaer.cn/2.11.htmlhttp://www.cnblogs.com/riceball/archive/2008/01/03/1025158.htmlhttp://blog.codingnow.com/2012/07/c_coroutine.html... 阅读全文

posted @ 2015-12-17 11:49 明天有风吹 阅读(193) 评论(0) 推荐(0)

2015年12月15日

tcpdump

摘要: 打印数据包,方便调试 sudo tcpdump -i en1 port $PORT -X ip header tcp header man tcpdump To print all IPv4 HTTP packets to and from port 80, i.e. print only pack 阅读全文

posted @ 2015-12-15 14:47 明天有风吹 阅读(361) 评论(0) 推荐(0)

2015年12月4日

PARSER_JS_PRECISION_RANGE_EXCEEDED 错误

摘要: { [Error: parseLengthCodedNumber: JS precision range exceeded, number is >= 53 bit: "30376208567171257"] offset: 3, code: 'PARSER_JS_PRECISION_RANGE_E... 阅读全文

posted @ 2015-12-04 16:29 明天有风吹 阅读(983) 评论(0) 推荐(0)

2015年11月28日

nodejs 像 C 语言那样输出当前代码的行数

摘要: http://stackoverflow.com/questions/11386492/accessing-line-number-in-v8-javascript-chrome-node-js 1 Object.defineProperty(global, '__stack', { 2 get... 阅读全文

posted @ 2015-11-28 13:18 明天有风吹 阅读(2639) 评论(0) 推荐(0)

2015年11月27日

Linux core 文件 gdb

摘要: http://blog.csdn.net/mr_chenping/article/details/13767609 在程序不寻常退出时,内核会在当前工作目录下生成一个core文件(是一个内存映像,同时加上调试信息)。使用gdb来查看core文件,可以指示出导致程序出错的代码所在文件和行数。 1.co 阅读全文

posted @ 2015-11-27 16:28 明天有风吹 阅读(377) 评论(0) 推荐(0)

2015年11月24日

netstat 查看本机开放端口

摘要: root@kali:~# netstat -luntp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 阅读全文

posted @ 2015-11-24 22:31 明天有风吹 阅读(1858) 评论(0) 推荐(0)

python stdout 重定向

摘要: 1 import sys 2 3 class Buffer(object): 4 def __init__(self): 5 self.buffer = [] 6 7 def write(self, *args, **kwargs): 8 self.buffer.append(args) 9 10 阅读全文

posted @ 2015-11-24 10:30 明天有风吹 阅读(714) 评论(0) 推荐(0)

2015年11月23日

hot code loading in nodejs

摘要: Hot Code Loading in Node.jsNode.js Web应用代码热更新的另类思路Reading throughFevertoday,this postby Jack Moffitt caught my eye. In it, he discusses a hack to allo... 阅读全文

posted @ 2015-11-23 20:39 明天有风吹 阅读(621) 评论(0) 推荐(0)

mysql 数据备份 crontab

摘要: 每天凌晨 2 点备份数据crontab -e0 2 * * * mysqldump${mysqldir}/bin/mysqldump -h$host -P$port -uadmin -p"$passwd" --events --flush-logs --master-data=2 --all-dat... 阅读全文

posted @ 2015-11-23 12:30 明天有风吹 阅读(280) 评论(0) 推荐(0)

iptables

摘要: http://www.ithome.com/html/it/46123.htm 阅读全文

posted @ 2015-11-23 02:05 明天有风吹 阅读(129) 评论(0) 推荐(0)

2015年11月22日

python 爬爬爬 基本函数~

摘要: https://docs.python.org/2/howto/urllib2.html#data http://zhuoqiang.me/python-urllib2-usage.html 阅读全文

posted @ 2015-11-22 23:56 明天有风吹 阅读(305) 评论(0) 推荐(0)

python decorator 修饰器

摘要: decorator 就是给函数加一层皮,好用! 1 from time import ctime 2 3 def deco(func): 4 def wrappedFunc(*args, **kwargs): 5 print '[%s] %s called' % (ctime(), func.__n 阅读全文

posted @ 2015-11-22 22:32 明天有风吹 阅读(209) 评论(0) 推荐(0)

2015年11月18日

sublime 把 tab 转成 4 个空格

摘要: Preferences -> Settings-User { "tab_size":4, "translate_tabs_to_spaces": true, "draw_white_space": "all", // 显示出空白符 "trim_trailing_white_space_on_save 阅读全文

posted @ 2015-11-18 14:59 明天有风吹 阅读(1032) 评论(0) 推荐(0)

2015年11月17日

bhp 阅读笔记 OSX 下 setuptools pip 安装

摘要: 安装 python-setuptools python-pip尝试 brew install python-setuptools 失败brew update 失败$ cd `brew --prefix`$ git remote add origin https://github.com/Homeb... 阅读全文

posted @ 2015-11-17 21:52 明天有风吹 阅读(358) 评论(0) 推荐(0)

2015年11月1日

正则表达式 零宽断言 负向零宽断言 平衡组/递归匹配

摘要: 零宽断言 用于查找在某些内容(但并不包括这些内容)之前或之后的东西,像\b,^,$那样用于指定一个位置,这个位置应该满足一定的条件(即断言),因此它们也被称为零宽断言。 (?<=exp)myexp(?=exp1) 负向零宽断言 与零宽断言类似 (?<!exp)myexp(?!exp1) 自己用上面的 阅读全文

posted @ 2015-11-01 15:12 明天有风吹 阅读(631) 评论(0) 推荐(0)

2015年10月19日

Mac 忘记密码

摘要: 今天早上到公司发现电脑被动过,马上查看浏览器的历史记录,果然发现了一些痕迹。虽然是公司的电脑,但是随便被人翻看,还是很不爽! 于是马上把原来公司给的默认密码改掉。 不料,中午出去吃了个饭,回来就把密码给忘了,试了N遍都无效。内心一度奔溃。。 幸运的是,上网搜 Mac忘记密码 教程还是很多的。只是有些 阅读全文

posted @ 2015-10-19 21:59 明天有风吹 阅读(228) 评论(0) 推荐(0)

2015年10月16日

双11,自动领取优惠券 js 代码

摘要: http://www.zhihu.com/question/36426051/answer/67690322本来我不熟悉 js,正好研究一下 1 (function(window, document) { 2 var interval = 800; 3 var closeDelay ... 阅读全文

posted @ 2015-10-16 01:55 明天有风吹 阅读(2519) 评论(0) 推荐(0)

学习 swift (1)

摘要: https://developer.apple.com/library/prerelease/ios/referencelibrary/GettingStarted/DevelopiOSAppsSwift/Lesson1.html#//apple_ref/doc/uid/TP40015214-CH3... 阅读全文

posted @ 2015-10-16 01:45 明天有风吹 阅读(209) 评论(0) 推荐(0)

2015年10月14日

Sbulime Text 2 修改选中字符串的颜色

摘要: Sublime Text 2 > Preferences > Browse Packages... 假设当前试用的 Color Scheme 是 Monokai,则在 Color Scheme - Default 路径下找到 Monokai.tmTheme 文件 打开 阅读全文

posted @ 2015-10-14 16:12 明天有风吹 阅读(299) 评论(0) 推荐(0)

2015年8月14日

js string 和 json 互转

摘要: 1 var o = JSON.parse('{"a": 8}');2 3 JSON. stringify(o); 阅读全文

posted @ 2015-08-14 15:28 明天有风吹 阅读(185) 评论(0) 推荐(0)

2015年8月11日

Mac OSX sublime text2 各种快捷键

摘要: Mac 快捷键 https://support.apple.com/zh-cn/HT201236 Preferences -> Key Bindings - User [ { "keys": ["end"], "command": "move_to", "args": { "to": "eol"} 阅读全文

posted @ 2015-08-11 15:46 明天有风吹 阅读(240) 评论(0) 推荐(0)

webstorm keymap

摘要: http://www.jetbrains.com/webstorm/documentation/WebStorm_ReferenceCard.pdf 阅读全文

posted @ 2015-08-11 15:09 明天有风吹 阅读(414) 评论(0) 推荐(0)

python http post json

摘要: 直接上代码吧 ## python3 1 #!/usr/bin/env python3 2 # -*- coding: utf-8 -*- 3 4 import json, gzip 5 from urllib import request, parse 6 7 def REQ(url, params 阅读全文

posted @ 2015-08-11 12:13 明天有风吹 阅读(7987) 评论(0) 推荐(0)

2015年8月5日

node.js async 几个函数

摘要: async.waterfallasync.seriesasync.parallelasync.autohttp://my.oschina.net/huangsz/blog/176203http://blog.csdn.net/jiangcs520/article/details/17350927ht... 阅读全文

posted @ 2015-08-05 16:29 明天有风吹 阅读(389) 评论(0) 推荐(0)

2015年7月27日

python 爬图 helloworld

摘要: 最近发现 吾志 上用户的头像都很个性,另外,对于没有把日记设为私密的用户,最后一天的日记是公开的,谁都可以查看。所以,如果每天把所有可查看的日记爬一遍,那么~~ 哈哈以前对爬虫只是了解一点点,没有真的玩过。既然今晚兴致来了,那就随便学一下咯~参考http://blog.csdn.net/please... 阅读全文

posted @ 2015-07-27 00:37 明天有风吹 阅读(454) 评论(0) 推荐(0)

2015年7月24日

合服导致 globalserver 起不来的问题

摘要: globalserver 报错RMIInitArmyBackObject InitError根据报错信息一路追查下来,发现某个帮派的数据解析 json 的时候报错。监视变量,找出这段字符串,大致结构如下:{ "army_name":"\u98ce\u4e91\u805a\u53d8", "army_... 阅读全文

posted @ 2015-07-24 16:30 明天有风吹 阅读(237) 评论(0) 推荐(0)

2015年5月21日

ssh 登陆 端口转发

摘要: https://www.timdbg.com/posts/fakers-guide-to-assembly/ man ssh ssh [-1246AaCfgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec] [-D [bind_address:]p 阅读全文

posted @ 2015-05-21 00:49 明天有风吹 阅读(433) 评论(0) 推荐(0)

2015年5月18日

Linux 日常命令

摘要: http://www.linuxidc.com/Linux/2015-05/117414.htm 1. 命令行日常系快捷键 如下的快捷方式非常有用,能够极大的提升你的工作效率: CTRL + U - 剪切光标前的内容 CTRL + K - 剪切光标至行末的内容 CTRL + Y - 粘贴 CTRL 阅读全文

posted @ 2015-05-18 23:31 明天有风吹 阅读(271) 评论(0) 推荐(0)

2015年5月12日

内存对齐

摘要: C/C++内存对齐 一、什么是字节对齐,为什么要对齐? 现代计算机中内存空间都是按照byte划分的,从理论上讲似乎对任何类型的变量的访问可以从任何地址开始,但实际情况是在访问特定类型变量的时候经常在特 定的内存地址访问,这就需要各种类型数据按照一定的规则在空间上排列,而不是顺序的一个接一个的排放,这... 阅读全文

posted @ 2015-05-12 16:51 明天有风吹 阅读(172) 评论(0) 推荐(0)

2015年3月10日

libevent

摘要: http://www.open-open.com/lib/view/open1386510630330.html 阅读全文

posted @ 2015-03-10 09:37 明天有风吹 阅读(120) 评论(0) 推荐(0)

2015年3月4日

Bonjour Operations

摘要: https://developer.apple.com/library/ios/documentation/Cocoa/Conceptual/NetServices/Articles/NetServicesArchitecture.html 阅读全文

posted @ 2015-03-04 23:20 明天有风吹 阅读(170) 评论(0) 推荐(0)

2015年2月28日

bonjour browser 下载

摘要: 在Mac 上叫 Bonjour Browserhttp://www.macupdate.com/app/mac/13388/bonjour-browser/downloadIOS 上的 app 叫 DiscoveryBonjour Browser for Windowshttp://hobbyist... 阅读全文

posted @ 2015-02-28 23:24 明天有风吹 阅读(643) 评论(0) 推荐(0)

2015年2月25日

udid iphone6 获取

摘要: http://www.udidregistration.org/how-to-find-udid-of-iphone-6.html 阅读全文

posted @ 2015-02-25 13:44 明天有风吹 阅读(157) 评论(0) 推荐(0)

2015年2月10日

Core Data Tutorial for IOS: Getting Started

摘要: http://www.raywenderlich.com/934/core-data-tutorial-for-ios-getting-started 阅读全文

posted @ 2015-02-10 21:26 明天有风吹 阅读(156) 评论(0) 推荐(0)

2015年2月5日

What are rules about using an underscore in a c identifier

摘要: http://stackoverflow.com/questions/228783/what-are-the-rules-about-using-an-underscore-in-a-c-identifier 阅读全文

posted @ 2015-02-05 23:57 明天有风吹 阅读(139) 评论(0) 推荐(0)

2015年2月4日

clang 编译 OC

摘要: clang -fobjc-arc -framework Foundation helloworld.m -o helloworld.outOVERVIEW: clang LLVM compilerUSAGE: clang [options] OPTIONS: -### ... 阅读全文

posted @ 2015-02-04 22:13 明天有风吹 阅读(873) 评论(0) 推荐(0)

2015年2月1日

IOS 开发入门

摘要: 1.Getting Startedhttps://developer.apple.com/library/ios/navigation/#section=Resource%20Types&topic=Getting%20Started其中Start Developing iOS Apps Today... 阅读全文

posted @ 2015-02-01 01:08 明天有风吹 阅读(232) 评论(0) 推荐(0)

2014年11月19日

hello lua

摘要: http://manual.luaer.cn/http://www.lua.org/pil/contents.html 1 #include 2 #include 3 extern "C"{ 4 #include "lua.h" 5 #include "lauxlib.h" 6 #include... 阅读全文

posted @ 2014-11-19 23:57 明天有风吹 阅读(346) 评论(0) 推荐(0)

2014年10月14日

sublime-text-how-to-jump-to-file-from-find-results-using-keyboard

摘要: http://209.116.186.231/#newwindow=1&q=sublime+text+find+results+jump http://stackoverflow.com/questions/16767732/sublime-text-how-to-jump-to-file-from 阅读全文

posted @ 2014-10-14 13:13 明天有风吹 阅读(351) 评论(0) 推荐(0)

2014年10月3日

git install

摘要: wget -O git-master.zip https://codeload.github.com/git/git/zip/masterunzip git-master.zipcd git-master/autoconf./configuremake检查是否安装成功git --version 阅读全文

posted @ 2014-10-03 23:04 明天有风吹 阅读(203) 评论(0) 推荐(0)

上一页 1 ··· 3 4 5 6 7 8 下一页

导航

+V atob('d2h5X251bGw=')

请备注:from博客园