一.建立示例程序hello world 1.编写asdf 文件hello.asd (defpackage :hello-system (:use #:asdf #:cl)) ? ?? (in-package :hello-system) ? ?? (defsystem hello ? ? :name "hello world" ? ? :versi...
分类:
其他好文 时间:
2014-08-26 12:00:56
阅读次数:
471
1.依赖依赖就是有联系,有地方使用到它就是有依赖它,一个系统不可能完全避免依赖。如果你的一个类或者模块在项目中没有用到它,恭喜你,可以从项目中剔除它或者排除它了,因为没有一个地方会依赖它。下面看一个简单的示例: /// /// 用户播放媒体文件 /// public cl...
分类:
其他好文 时间:
2014-08-24 15:22:22
阅读次数:
186
##Respect Boundaries 严守边界 Remember to respect responsibility boundaries. Controllers and routes serve as a mediator between HTTP and your application. When writing large applications, don‘t cl...
分类:
移动开发 时间:
2014-08-22 14:39:39
阅读次数:
219
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Cl...
分类:
其他好文 时间:
2014-08-19 20:38:25
阅读次数:
239
内存管理中经常遇到的问题:内存泄露,内存溢出。
在cocos2dx中用的是引用计数和自动释放池的技术,由于熟悉objective-c语言,所以对这两个概念不会很陌生。
一、引用计数
引用计数是自动内存管理的基础:在对象里增加一个引用计数,当外部引用增加时,计数器加1,当外部引用消失时,计数器减1 。
看一下CCObject源码:
cl...
分类:
其他好文 时间:
2014-08-19 16:35:14
阅读次数:
163
指令功能AAA调整加AAD调整除AAM调整乘AAS调整减ADC进位加ADD加AND与ARPL调整优先级BOUND检查数组BSF位右扫描BSR位左扫描BSWAP交换字节BT位测试BTC位测试求反BTR位测试清零BTS位测试置一CALL过程调用CBW转换字节CDQ转换双字CLC进位清零CLD方向清零CL...
分类:
其他好文 时间:
2014-08-18 23:25:13
阅读次数:
427
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
ClassLoader cl = Test.class.getClassLoader();
while(cl!=null) {
System.out.println(cl.getClas...
分类:
其他好文 时间:
2014-08-18 09:16:23
阅读次数:
214
http://blog.csdn.net/magicdreaming/article/details/7722825http://blog.csdn.net/teriy/article/details/7954203http://opentsdb.net/faq.htmlhttp://blog.cl...
分类:
其他好文 时间:
2014-08-18 00:13:33
阅读次数:
227
py2exe是一个将python脚本转换成windows上的可独立执行的可执行程序(*.exe)的工具,这样,你就可以不用装python而在windows系统上运行这个可执行程序。
py2exe已经被用于创建wxPython,Tkinter,Pmw,PyGTK,pygame,win32com cl...
分类:
编程语言 时间:
2014-08-17 16:59:02
阅读次数:
222
1. [代码]1.服务接口(Hello.java) package server;public interface Hello { String hello(String name);}2. [代码]2.接口实现(HelloImpl.java) package server;public cl...
分类:
编程语言 时间:
2014-08-15 15:59:49
阅读次数:
273