2011年11月17日

iphone开源汇总(转)

摘要: 扫描wifi信息:http://code.google.com/p/uwecaugmentedrealityproject/http://code.google.com/p/iphone-wireless/条形码扫描:http://zbar.sourceforge.net/iphone/sdkdoc/install.htmltcp/ip的通讯协议:http://code.google.com/p/... 阅读全文

posted @ 2011-11-17 22:01 Cheney Shen 阅读(176) 评论(0) 推荐(0) 编辑

iphone开源汇总(转)

摘要: 扫描wifi信息:http://code.google.com/p/uwecaugmentedrealityproject/http://code.google.com/p/iphone-wireless/条形码扫描:http://zbar.sourceforge.net/iphone/sdkdoc/install.htmltcp/ip的通讯协议:http://code.google.com/p/... 阅读全文

posted @ 2011-11-17 22:01 Cheney Shen 阅读(156) 评论(0) 推荐(0) 编辑

2011年10月31日

python中的cursor[备忘]

摘要: import MySQLdbconn = MySQLdb.connect(host='localhost', user='root', passwd='123456, db='dbname', charset='utf8')cursor = conn.cursor()cursor.execute(sql)成功result为1;失败为0。此时,cursor就是一个Cursor对象,这个cursor是... 阅读全文

posted @ 2011-10-31 11:23 Cheney Shen 阅读(1258) 评论(0) 推荐(0) 编辑

2011年10月30日

在main函数执行之前和执行之后执行的方法

摘要: //// before&after.c// Created by labuser on 10/30/11.// Copyright (c) 2011 __MyCompanyName__. All rights reserved.//#include <stdio.h>void before() __attribute__((constructor));void after() __attribut... 阅读全文

posted @ 2011-10-30 15:50 Cheney Shen 阅读(221) 评论(0) 推荐(0) 编辑

2011年10月29日

Intel苹果电脑Mac+Win+Linux多重系统启动(+公用分区)终极解决方案(备忘)

摘要: Intel苹果电脑Mac+Win+Linux多重系统启动(+公用分区)终极解决方案在进入主题之前,有必要先和诸位了解一下 EFI - Extensible Firmware Interface (可扩展固件接口)与 BIOS -Basic Input Output System(基本输入输出系统)之间的基本差异。 目前 Windows 无法支持 EFI 的原因是它们两者在硬盘启动引导机理方面存在... 阅读全文

posted @ 2011-10-29 22:30 Cheney Shen 阅读(1141) 评论(0) 推荐(0) 编辑

IGT笔试题,正整数N等于M个不同的正整数之和的问题

摘要: //////// Created by labuser on 10/29/11.// Copyright (c) 2011 __MyCompanyName__. All rights reserved.//#include <stdio.h>#include "time.h"//#include <sys/time.h>#define times 7#define scores 40#define maxnum 20void cout(int*, int );void compute(int, int, int*, int);int main (in 阅读全文

posted @ 2011-10-29 20:58 Cheney Shen 阅读(1379) 评论(0) 推荐(0) 编辑

2011年10月28日

如何通过一个结构体成员变量的地址找到该结构体的首地址?[备忘]

摘要: Linux内核代码里的一个宏(Linux内核里很多结构体之间是通过某一成员变量相互寻址的),感觉挺巧妙。大概意思是:#define get_addr(type, member, mem_addr) (type*)(mem_addr - &(((type*)0)->member))typedef struct{int a;int b;int c;}test_t test;addr = get_add... 阅读全文

posted @ 2011-10-28 16:40 Cheney Shen 阅读(550) 评论(0) 推荐(0) 编辑

2011年10月25日

为特定应用程序关闭恢复窗口功能 [Mac OS X Lion][转]

摘要: Mac OS X Lion 中引入了恢复窗口这个功能,可以在应用程序再次打开时恢复之前的窗口状态,对于某些情况来说在一定程度上让工作流程更为顺畅。但 Lucifr 发现这个功能在某些程序中并不必要。比如 Lucifr 在用的一个解压缩软件 BetterZip,我就不希望我下次运行时它又把之前没关闭的压缩文件又打开一次。但 Lion 目前只提供了一个通用设置,要么全都有,要么全没有。怎样才能针对某个... 阅读全文

posted @ 2011-10-25 20:21 Cheney Shen 阅读(783) 评论(0) 推荐(0) 编辑

2011年9月9日

System Events, Key Code and Keystroke from Doug's AppleScripts

摘要: System Events, Key Code and KeystrokeKey codesare the numeric codes representing the keys on your keyboard.Keystrokesare the actual Unicode key representations. You can use these key code numbers or k... 阅读全文

posted @ 2011-09-09 14:47 Cheney Shen 阅读(1101) 评论(0) 推荐(0) 编辑

2011年8月29日

Mac下Perl脚本如何运行

摘要: 假设你的PL文件叫test.pl1. 打开Terminal2. (可省略, 看看装perl了没, 如果装了, 会有提示) 敲perl -version 3. 用cd 命令进入你放test.pl的目录 (这个总会吧)4. (让test.pl可执行) 敲chmod +xtest.pl5. 敲(注意是一点加一斜杠) ./test.pl 阅读全文

posted @ 2011-08-29 21:56 Cheney Shen 阅读(5763) 评论(0) 推荐(0) 编辑

导航