- 博客(9)
- 资源 (8)
- 收藏
- 关注
原创 ssh登录自动输密码
<br />#!/usr/bin/expect -f #auto ssh login set timeout 30 set host ssh.host.name set login username set passwd password set params "-gfND 7070" spawn ssh $params $login@$host expect "password:" send "$passwd/n" interact <br />
2011-01-05 01:49:00 445
原创 论坛的通知机制
类似论坛的项目需要在贴子更新时通知所有订阅些贴子更新的用户贴子有回复或者其它关联对象的变更均算作一次更新实现方法为了防止同类的通知发送两次,每一类个通知都有一个notification_key,如果评论帖子为"Post-:id-comment"其它操作为"Post-:id-operation_name"class NotificationCenter class user.id, :key => Notification.key_of(obj)) end def post(noti
2011-01-05 00:46:00 369
原创 SnowLeopard Emacs 23.2.2 全屏
<br />在https://github.com/typester/emacs/downloads下载两个补丁<br />到emacs 源代码目录下执行<br />patch -p1 < feature-fullscreen.patch patch -p1 < fix-shiftmodifier-with-ime.patch<br />打好补丁后 编译安装Emacs<br />./configure --with-ns && make && make install && sudo cp -r next
2010-12-15 16:46:00 516
原创 php 5.3.4 Mac OS X 10.6.5 配置
<br />先用mac port安装了libjpeg libpng libfreetype libxpm libiconv<br />mysql 位于 /usr/local/mysql<br /> <br />安装gd之前又把libjpeg libpng libfreetype用源码编译装到了/usr/local<br />gd的configure选项:<br /> <br />MACOSX_DEPLOYMENT_TARGET=10.6 CFLAGS="-arch x86_64 -g -Os -pipe -
2010-12-15 13:39:00 1063
原创 .bash_profile
export SVN_EDITOR=/usr/bin/emacsexport SVN_RESPOS=svn://server/keji/iPhone export CLICOLOR=1export LSCOLORS=gxfxaxdxcxegedabagacadif [ -d /usr/local/mysql/bin ]; then PATH=$PATH:/usr/
2009-12-24 11:58:00 280
转载 How to Retrieve Remote MAC Address Programmatically
Cited From: http://zachwaugh.com/2009/03/programmatically-retrieving-ip-address-of-iphone/#include #include - (NSString *)getIPAddress{ NSString *address = @”error”; struct ifaddrs *inte
2009-12-07 14:06:00 437
原创 关于在Linux上启动J2ME及其emulator失败的解决办法
http://tech.techweb.com.cn/archiver/tid-239384.html
2008-06-05 21:54:00 333
Mac OS® X and iOS Internals
2018-04-11
Teach Yourself Visual C++ in 21 Days.pdf
2008-02-15
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人