现在位置: 首页 > zhaolei233发表的所有文章
  • 08月
  • 28日
综合 ⁄ 共 4161字 评论关闭
  <转贴1> alpha混合技术对熟悉游戏的人来说不会陌生,这种技术在如今的游戏特效里已经被用烂了。3D的游戏就不说了,2D的游戏里,这种技术也是满眼皆是。   alpha混合听上去很神秘,实际非常简单,其作用就是要实现一种半透明效果。假设一种不透明东西的颜色是A,另一种透明的东西的颜色是B,那么透过B去看A,看上去的颜色C就是B和A的混合颜色,可以用这个式子来近似,设B物体的透明度为alpha(取值为0-1,0为完全透明,1为完全不透明) R(C)=alpha*R(B)+(1-alpha)*R(A)G(C)=alpha*G(B)+(1-alpha)*G(A)B(C)=alpha*B(B)+(1-a......
阅读全文
  • 03月
  • 24日
综合 ⁄ 共 878字 评论关闭
买了个无线键盘(¥69) [扭][扭] 参数: 传输方式 2.4G 键盘功能 多媒体按键控制 键盘标准 104键盘 接口 USB 尺寸 392×125.6×28.9 mm 重量 391g 还不错,毕竟那么便宜。按键较轻松,喜欢~~ 按键设计不太满意:1.全都是一样的 2.基本没弧度 3.方向键里其他键太近了,容易按错 4.键盘最好带开关,省电问题要解决。 【附】键盘设计  【转】老徐带你认识键盘 ●键程     键程,就是在正常使用过程中,键帽可以下沉的最大高度。键程长短主要由按键支架的高度和回弹垫片的厚度决定。目前,大多数笔记本......
阅读全文
  • 08月
  • 28日
数据库 ⁄ 共 3043字 评论关闭
SQLiteHelper 创建SQLiteHelper类 /// SQLite数据库处理帮助类 /// /// 此类中封装了关于SQLite数据库处理的业务函数 class SQLiteHelper { // 业务代码... } 单例 private static let instance = SQLiteHelper() /// 单例 全局的数据访问接口 class var sharedInstance: SQLiteHelper { return instance } 全局变量 var db: COpaquePointer = nil 打开数据库 /// 打开数据库 /// /// :param: dbName 数据库名称 /// /// :returns: 返回 是否打开成功 func openDatabase(dbName: String) -> Bool { let path......
阅读全文
  • 05月
  • 03日
综合 ⁄ 共 980字 评论关闭
jQuery插件能够增强网站的可用性,有效地改善用户体验,还可以大大减少创建一个新站点的开发时间。现在的jQuery插件很多,尽可以根据您的项目要求来选择,不过也有一些插件很好用,几乎各种项目都能够用得上。这里就为您介绍12款开发中最常用的jQuery插件。 1. jQuery BBCode Editor Bbcode简单易用,它是BBS、论坛、Blog等网络应用上的一种常用输入语法。jQuery BbCode Editor提供自定义设置,可以打造出很个性化的bbcode编辑器,它的源代码都可以根据需求灵活修改。 2. Exposure Exposure是一个图片预览插件,用于创建......
阅读全文
  • 04月
  • 11日
综合 ⁄ 共 239字 评论关闭
http://blog.chinaunix.net/xmlrpc.php?r=blog/index&uid=20352533&pattern=abstract http://ipsec-tools.sourceforge.net/     ipsec-tools 官网 http://www.strongswan.org/  strongswan官网 http://www.openssl.org/contrib/  openssl http://www.valgrind.org/  内核调试神器
阅读全文
  • 04月
  • 09日
综合 ⁄ 共 353字 评论关闭
1: 删除LOG (删除log文件,附加时自动重建log文件,以此方式来清空日志)    1) 分离数据库  企业管理器->服务器->数据库->右键->分离数据库     2) 删除LOG文件     3) 附加数据库  企业管理器->服务器->数据库->右键->附加数据库 此法生成新的LOG,大小只有500多K  2:清空日志 (日志收缩方式清空日志)    1) DUMP  TRANSACTION  库名  WITH  NO_LOG        2)  企业管理器--右键你要压缩的数据库--所有任务--收缩数据库--收缩文件--选择日志文件--在收缩方式里选择收缩至XXM,这里会给出一个允许收缩到的最小M数,......
阅读全文
  • 02月
  • 21日
综合 ⁄ 共 3234字 评论关闭
Picture Time Limit: 2000MS   Memory Limit: 10000K Total Submissions: 10727   Accepted: 5662 Description A number of rectangular posters, photographs and other pictures of the same shape are pasted on a wall. Their sides are all vertical or horizontal. Each rectangle can be partially or totally covered by the others. The length of the boundary of the union of all rectangles is called the perimeter. Write a program to calculate the perimeter. An example with 7 rectangles is shown......
阅读全文
  • 02月
  • 15日
综合 ⁄ 共 2448字 评论关闭
转自: http://chrishecker.com/Miscellaneous_Technical_Articles RSS @checker MY NEW SPY GAME SpyParty Miscellaneous Technical Articles Contents [hide] 1 Perspective Texture Mapping 2 Compilers 3 Memory Bandwidth 4 Floating Point 5 Blasts From the Past I've written a number of articles for Game Developer Magazine over the years, and this is the place where you'll find the ones that don't get their own page. All of these articles are in PDF format, for bette......
阅读全文
  • 02月
  • 11日
综合 ⁄ 共 504字 评论关闭
在centos5.4 系统上编译通过 文件 asterisk-1.4.29.tar.gz openh323-v1_18_0-src-tar.gz pwlib-v1_10_3-src-tar.gz   最新的opal-v2_4_0-src.tar.gz + ptlib-v1_12_0-src.tar.gz 编译报错,放弃掉了。   cd pwlib_v1_10_3 ./configure make make install   cd openh323_v1_18_0 ./configure make 若报错 error: linux/compiler.h: No such file , 可以将 /usr/src/kernels/2.6.18-164.el5-i686/include/linux/compiler.h 复制到/usr/include/linux 下, 或者用 ./configure --disable-ixj make install   openh323 安装在  /usr/......
阅读全文
  • 12月
  • 19日
综合 ⁄ 共 283字 评论关闭
 MySQL命令行导出数据库: 1,进入MySQL目录下的bin文件夹:cd MySQL中到bin文件夹的目录 如我输入的命令行:cd D:\Program\MySQL\MySQL Server 5.0\bin (或者直接将windows的环境变量path中添加该目录) 2,导出数据库:mysqldump -u 用户名 -p 数据库名 > 导出的文件名 如我输入的命令行:mysqldump -u root -p txyl > txyl.sql   (输入后会让你输入进入MySQL的密码) (如果导出单张表的话在数据库名后面输入表名即可) 3、会看到文件txyl.sql自动生成到bin文件下  命令行导入数据库
阅读全文
  • 12月
  • 15日
综合 ⁄ 共 2697字 评论关闭
Install Ubuntu 13.10 1 Using a DVD? It’s easy to install Ubuntu from a DVD. Here’s what you need to do: Put the Ubuntu DVD into the DVD-drive Restart your computer. You should see a welcome screen prompting you to choose your language and giving you the option to install Ubuntu or try it from the DVD. If you don’t get this menu, read the booting from the DVDguide for more information. Using a USB drive? Most newer computers can boot from USB. You should see a welcome scre......
阅读全文
  • 12月
  • 13日
综合 ⁄ 共 2134字 评论关闭
abstract factory pattern,抽象工厂模式   抽象工厂模式是所有形态的工厂模式中最为抽象和最具一般性的一种形态。 Abstract Factory模式存在的意义就是为了创建各系列的对象而存在的。相对Factory Method模式的解决“单个对象”的需求变化,Abstract Factory模式解决“系列相关对象”的需求变化。明确的理解就是抽象工厂模式提供多个产品的构建。 抽象工厂(Abstract Factory):它与应用系统商业逻辑无关。 具体工厂(Concrete Factory):这个角色直接在客户端的调用下创建产品的实例。这个角色含有选择合适的产品对象的逻辑,而......
阅读全文