- 博客(536)
- 资源 (2)
- 收藏
- 关注
原创 float equal
- (BOOL)floatA:(float)f1 equalB:(float)f2{ const float EPSINON = 0.00001; if ((f1 > 0.0f && f2 > 0.0f) || (f1 < 0.0f && f2 < 0.0f)) { float x = fabsf(f1) - fabsf(f2); ...
2013-05-23 18:21:39
492
原创 Coding Guidelines for Cocoa
参考:https://developer.apple.com/library/ios/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.htmlhttp://gracelancy.com/?p=106http://zh-google-styleguide.readthedocs.org/en/la...
2013-05-17 16:53:17
335
原创 Cell
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { selectedCellIndexPath = indexPath; [tableView reloadRowsAtIndexPaths:[NSArray arrayWithObject:in...
2013-05-16 14:32:22
197
原创 Object-C编程规范
1.参考苹果的文档 “Coding Guidelines for Cocoa”http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/CodingGuidelines/CodingGuidelines.html%23//apple_ref/doc/uid/10000146-SW12.Google的 “...
2013-05-15 10:49:31
184
原创 Git ignore of xcode
[code="java"]#OS junk files[Tt]humbs.db*.DS_Store*.bak*#Xcode files#This ignores everything inside a *.xcodeproj except the project.pbxproj*.xcodeproj/!*.xcodeproj/project.pbxproj*...
2013-05-14 14:50:47
167
原创 Git 教程
书籍Pro Git。Githug通关攻略http://lingavin.com/blog/2013/05/03/githug-strategy/ppt, Good!! PPThttp://www.open-open.com/doc/view/28de2c358d284f18af0587bb824a6b10动画教程http://pcottle.github.io/...
2013-05-08 18:38:10
148
原创 webpy_Cookbook
[url]http://webpy.org/cookbook/index.zh-cn[/url]URL控制,学习正则[url]http://webpy.org/cookbook/url_handling.zh-cn[/url]正则:[url]http://www.cnblogs.com/deerchao/archive/2006/08/24/zhengzhe30fengzh...
2013-05-06 22:31:54
194
原创 webpy_CGI 伏笔
http://webpy.org/install.zh-cn摘:开发web.py 内置了web服务器。可以按照 tutorial 学习如何写一个Web应用。 写完后,将你的代码放到 code.py 并如下面的方法来启动服务器: python code.py打开你的浏览器输入 http://localhost:8080/ 查看页面。 若要制定另外的端口,使用 pyth...
2013-05-06 10:18:08
157
原创 app PNG
#---# iPIN - iPhone PNG Images Normalizer v1.0# Copyright (C) 2007## Author:# Axel E. Brzostowski# http://www.axelbrz.com.ar/# axelbrz@gmail.com# # References:# http://iphone.f...
2013-03-22 11:53:56
416
原创 JS前夜
JS具有脚本、浏览器运行的特性,方便使用。简单的工具应该使用JS+HTML来制作。[code="html"]URL转换 用于 http://goxiazai.cc/ MAC下载无法获取迅雷url的转换输入URL :http://goxiazai.cc/xiazai.html?cid=8C1A3F3F9D6BD0CCE606AC73E8B22231B1D...
2013-03-21 10:26:22
186
原创 Hackintosh & tonymacx
全程参考http://t.cn/SxWfsa的指南进行的,可以参考http://t.cn/zYDiFNe来进行配件的选择。主板信息毋须更改,仅需变色龙+http://t.cn/zYDiFND的工具即可实现直接驱动起来。U盘引导:http://notebook.it168.com/a2012/0119/1304/000001304037_1.shtmlmacdri...
2013-03-20 12:19:42
264
原创 win Ctrl Alt 互换
MAC 重度用户适用[url]http://hi.baidu.com/pragmatist/item/6bccf15ea9f5f2c9d3e10c38[/url]注册表位置:[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout] 如果没有此键,就新建一个新建一个二进制值的Key,名叫:Scanco...
2013-03-20 00:05:07
479
原创 python__re
xpath解析html,使用正则不好...[url]http://www.cnblogs.com/sevenyuan/archive/2010/12/06/1898075.html[/url]re.compile 返回一个正则对象re.split 分割字符re.matchre.search re.findall 查找全部\W 匹配任意不是字母...
2013-03-19 17:49:39
157
原创 Django
[url]https://docs.djangoproject.com/en/1.5/#django-documentation[/url][url]https://docs.djangoproject.com/en/1.5/topics/[/url][url]https://docs.djangoproject.com/en/1.5/intro/overview/#[/url]...
2013-03-03 20:04:12
143
原创 MacPorts
[url]http://blog.csdn.net/lynjay/article/details/7936470[/url]2.使用Mac Port前应该首先更新Port的index输入: $ sudo port -v selfupdate (强烈推荐第一次运行的时候使用-v参数,显示详细的更新过程)...
2013-02-28 18:12:12
163
原创 SSH
高效使用 SSH 的 16 个技巧:http://blog.jobbole.com/33790/ SSH有很多非常酷的特性,如何它是你每天的工作伴侣,那么我想你有必要了解以下16条高效使用SSH的秘籍,它们帮你节省的时间肯定会远远大于你用来配置它们的时间。1. 多条连接共享如果你需要在多个窗口中打开到同一个服务器的连接,而不想每次都输入用户名,密码,或是等待连接建立,那么你可以配...
2013-02-28 14:29:27
214
原创 WebGoat 工具
[url]http://purplebutterfly.blog.51cto.com/1337285/653187[/url]WebGoat是一个平台无关的Web安全漏洞实验环境
2013-02-27 15:41:16
213
原创 WebScarab工具
[url]http://baike.baidu.com/view/2460659.htm[/url][url]http://www.cnblogs.com/enjoytesting/archive/2012/11/06/2757283.html[/url][url]http://blog.csdn.net/roger__wong/article/category/1224764[/...
2013-02-27 15:19:52
254
原创 Burp Suite 工具
[url]http://www.cnblogs.com/demonspider/archive/2012/08/04/2622474.html[/url][url]http://hi.baidu.com/all3g/item/10a81c8996855819c216272b[/url]
2013-02-27 15:12:06
143
原创 Wireshark Proxifier
介绍:网络封包分析软件简单的用法:[url]http://www.cnblogs.com/TankXiao/archive/2012/10/10/2711777.html[/url]浆糊啊对这些没神马概念。Proxifiersocks5客户端,可以让不支持通过代理服务器工作的网络程序能通过HTTPS或SOCKS代理或代理链。有点类似SOCKSCAP。...
2013-02-25 20:42:12
572
原创 进程管理...无内容
进程管理...无内容进程管理...无内容进程管理...无内容ps -ef | grep xxxkillall namekill number
2013-01-14 16:52:20
125
原创 KVC/KVO 监听对象属性变化
[url]http://blog.csdn.net/a6472953/article/details/7817538[/url][url]http://www.cnblogs.com/pengyingh/articles/2383629.html[/url][url]http://developer.apple.com/library/ios/#documentation/Cocoa/Co...
2013-01-10 23:09:18
303
原创 ios Associative 扩展属性
@dynamic和@synthesize[url]http://blog.csdn.net/qie2327023/article/details/7863102[/url][url]http://blog.csdn.net/linkai5696/article/details/6644400[/url]@dynamic progress;static const c...
2013-01-08 16:45:58
124
原创 ObjC Dynamic
[url=http://www.onevcat.com/2012/04/objective-c-runtime/]原文[/url]:http://www.onevcat.com/2012/04/objective-c-runtime/动态类型(Dynamic typing)动态绑定(Dynamic binding)动态加载(Dynamic loading)1、动态类型...
2013-01-08 15:21:54
171
原创 网站应用程式架构
不看不知道,那么多坑架的。 网站应用程式架构ASP.NET▪ ASP.NET MVC▪ BFC▪ DotNetNuke▪ MonoRail▪ UmbracoColdFusion▪ ColdSpring▪ ...
2013-01-04 14:40:56
145
原创 源码编译
2年没在linux编译过第三方库,都忘了有这回事。拿到一份源码时,流程就这么走的:README -> configure -> make-> install1、从read me 中了解配置参数2、./configure --输入相关配置参数,生成Makefile3、make 编译时将遇到各种依赖问题,最麻烦的时候。4、make install 安装...
2013-01-01 21:41:14
126
原创 YUM
YUM = Yellow dog Updater, Modified...yum常用的命令# yum info xxx 查看xxx软件的信息# yum list 列出软件包# yum search xxx 搜索软件包(以名字为关键字)# yum provides xxx ...
2013-01-01 21:19:32
121
原创 host rename
[url]http://www.ichiayi.com/wiki/tech/linux_hostname[/url]su rootvim /etc/hostsvim /etc/sysconfig/networkhostname命令查看当前hostname重新登录
2013-01-01 20:48:16
187
原创 My WordPress Function
[code="php"]function path_appending_name($name) { return bloginfo('template_url').$name;}[/code]
2012-12-15 10:16:32
115
原创 UEditor开源在线HTML编辑器
可以使用它来编辑我们的文章,这里mark一下 http://blog.csdn.net/ruby97/article/details/7574851?1355303085 http://ueditor.baidu.com/
2012-12-12 17:49:42
155
原创 WordPress 主题
参考文章:[url]http://blog.csdn.net/ruby97/article/details/7687458[/url]主题目录路径:/wordpress/wp-content/themes/若干主题文件夹theme/style.css 这个文件记录了模版的信息-----------------------[url]http://blog.163.com/lo...
2012-12-12 17:48:37
125
原创 WordPress Database
http://www.beijibear.com/index.php?aid=550http://blog.csdn.net/ppiao1970hank/article/details/6301812 mysql> show tables;+------------------------+| Tables_in_wordPress +--------------...
2012-12-09 22:22:11
175
原创 PHP获取WorPress分类
[url]http://www.wpbars.com/wordpress-get-category-function/[/url]http://www.pakelab.com/wordpress-get-child-category/0、请求1、脚本链接数据库2、读取表3、作为对象传给表单4、页面解析...
2012-12-09 22:05:48
128
原创 环境变量
系统/etc/profile/etc/bashrc个人环境变量~/.bashrc~/.profilesource 环境变量path使之立即生效source 可以使用.替代
2012-12-09 20:38:58
115
原创 Mysql安装操作
[url]http://dev.mysql.com/doc/refman/5.1/zh/installing.html#default-privileges[/url][size=small]--查找所有账户:mysql> SELECT Host, User FROM mysql.user;--删除匿名账户,操作方法是:mysql> DELETE FROM mysql.us...
2012-12-07 16:02:28
141
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人