上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页

2013年4月28日

摘要: 在Mac中Terminal是使用bash的,下面列一列bash中常用的快捷键,可以提高工作效率哦:CRTL + W: 删除光标所在位置左边的第一个word,并且光标所在的字符不会被删掉;CRTL + R : 搜索命令历史ESC + DEL: 删除光标所在位置左边的第一个word或者空格OPTION+LEFT: 向左移动一个wordOPTION+RIGHT: 向右移动一个word下面有个更全的,需要什么的时候再慢慢查吧 阅读全文
posted @ 2013-04-28 06:48 做个不善的人 阅读(299) 评论(0) 推荐(0)
 
摘要: 本文在Xcode4.6基础上介绍的,不一定适用其他版本的Xcode。关于DWARF与dSYMDWARF is a debugging file format used by many compilers and debuggers to support source level debugging. It addresses the requirements of a number of procedural languages, such as C, C++, and Fortran, and is designed to be extensible to other languages. 阅读全文
posted @ 2013-04-28 01:45 做个不善的人 阅读(6235) 评论(0) 推荐(0)
 

2013年4月24日

摘要: 1. 如何让grep高亮显示搜索的字串.GREP_OPTIONS高亮显示搜索的字串 通过修改GREP_OPTIONS对搜索字串高亮显示。 $ export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32'关于GREP_OPTIONS:color有三个值供选择:never、always、auto。
always 和auto的区别就是,always会在任何情况下都给匹配字段加上颜色标记, 而auto则只在输出到终端时才加上颜色。
可以在.bashrc/.bash_profile 里加上
export GREP_OPTIONS 阅读全文
posted @ 2013-04-24 01:27 做个不善的人 阅读(571) 评论(0) 推荐(0)
 

2013年3月26日

摘要: 先介绍几个跟算法相关的基本概念。 block cipher In cryptography, a block cipher is a deterministic algorithm operating on fixed-length groups of bits, called blocks, with an unvarying transformation that is specified b... 阅读全文
posted @ 2013-03-26 16:29 做个不善的人 阅读(448) 评论(0) 推荐(0)
 

2013年3月21日

摘要: The Common Crypto library, also known as CCCrypt and 3CC, provide access to anumber of types and flavors of encryption algorithms. The Common Crypto library offunctions supports AES, DES, 3DES, and other encryption standards. Depending onthe encryption algorithm used, block and/or stream ciphers are 阅读全文
posted @ 2013-03-21 17:47 做个不善的人 阅读(542) 评论(0) 推荐(0)
 

2013年3月20日

摘要: Microsoft® CryptographyCSPsIn Microsoft Windows, a Cryptographic Service Provider (CSP) is a software library that implements the Microsoft CryptoAPI (CAPI). Each CSP has a key database in which it stores its persistent cryptographic keys. Each key database contains one or more key containers, 阅读全文
posted @ 2013-03-20 16:28 做个不善的人 阅读(911) 评论(0) 推荐(0)
 

2013年3月19日

摘要: Delegate模式并没有标准定义,也没有标准行为,所以在不同的地方使用的方式也不一样,C#中Delegate就是一个方法,而Cocoa中Delegate是一个对象(或者说adopt了某个protocol的对象),下面的一句话描述还比较贴切:A delegate is an object that’s given an opportunity to react to changes in another objector influence the behavior of another object.It stores a reference to another object, its d 阅读全文
posted @ 2013-03-19 19:35 做个不善的人 阅读(585) 评论(0) 推荐(0)
 
摘要: Target-action is a design pattern in which an object holds the information necessary to send a message to another object when an event occurs. The stored information consists of two items of data: an action selector, which identifies the method to be invoked, and a target, which is the object to rec 阅读全文
posted @ 2013-03-19 17:31 做个不善的人 阅读(1332) 评论(0) 推荐(1)
 
摘要: DialogDialog是application modal的,意味着如果没有结束这个Dialog,那用户将无法对这个application做任何操作。SheetsSheets是document modal的,意味着如果没有结束这个sheet,那用户将无法对这个Document或者这个window进行任何操作。什么是啥使用Sheets:需要一个针对某个document的特定dialog时,比如saving, printing。Cocoa的NSSavePanel和NSPrintPanel将其自身present为sheets。某个不创建document的单窗口应用需要一个dialog时,一个单窗口 阅读全文
posted @ 2013-03-19 16:15 做个不善的人 阅读(284) 评论(0) 推荐(0)
 

2013年3月15日

摘要: There are two kinds of objects displayed in the Interface Builder dock: Interface objects and placeholder objects. Interface objects are the objects that are actually created when the nib file is loaded and typically comprise the bulk of the objects. Placeholder objects refer to files that live outs 阅读全文
posted @ 2013-03-15 14:11 做个不善的人 阅读(1561) 评论(0) 推荐(0)
 
上一页 1 2 3 4 5 6 7 8 9 10 ··· 34 下一页