仿写的一个策略:policy_module(minidlna, 0.1)############################################### Declarations#require {	attribute reserved_port_type;	attribute por...
                            
                            
                                分类:
其他好文   时间:
2014-07-15 08:30:10   
                                阅读次数:
239
                             
                         
                    
                        
                            
                            
                                立即安装所选模块C:\goe7\source\openerp\addons\base\module\module.py def button_immediate_install(self, cr, uid, ids, context=None): """ Installs the selected ...
                            
                            
                                分类:
其他好文   时间:
2014-07-14 09:34:02   
                                阅读次数:
215
                             
                         
                    
                        
                            
                            
                                Directive指令直接上实例index.html Drag ME I am Directive script.js:var dragDir=angular.module('drag', []);dragDir.directive("enter", fu...
                            
                            
                                分类:
Web程序   时间:
2014-07-14 08:18:59   
                                阅读次数:
303
                             
                         
                    
                        
                            
                            
                                hello.c#include #include #include MODULE_LICENSE("GPL");static int hello_init(void){ printk(KERN_ALERT "hello_init"); return 0;}static void hel...
                            
                            
                                分类:
其他好文   时间:
2014-07-13 23:39:13   
                                阅读次数:
355
                             
                         
                    
                        
                            
                            
                                Dagger --  android的依赖注入框架...
                            
                            
                                分类:
移动开发   时间:
2014-07-13 17:19:04   
                                阅读次数:
410
                             
                         
                    
                        
                            
                            
                                myeclipse6.0 下载地址。官方下载地址: http://www.myeclipseide.com/module-htmlpages-display-pid-4.html本地快速下载地址: http://www.rosebush.cn/blog/html/23/t-7423.html htt...
                            
                            
                                分类:
系统相关   时间:
2014-07-13 12:54:04   
                                阅读次数:
221
                             
                         
                    
                        
                            
                            
                                Eclipse中编译好的apk文件时在bin文件里面的,但是在Android Studio有一个比较大的改动了,编译好的apk在android studio里面是直接看不到了,而且apk文件所在目录也变了,那apk文件放在哪呢,你要在硬盘中找到对应的工程目录:
E:\StudioDemo\MyApplication\app\build\outputs\apk
其中app是你的module,...
                            
                            
                                分类:
移动开发   时间:
2014-07-12 23:44:53   
                                阅读次数:
201
                             
                         
                    
                        
                            
                            
                                ngx_event_core_module模块属于事件模块,它是其它事件类模块的基础。它主要完成以下任务:
创建连接池决定使用哪些事件驱动机制初始化将要使用的事件模块
下面分析该模块的代码。
ngx_event_core_module的ngx_command_t数组定义如下:
/* ngx_event_core_module对7个配置项感兴趣 */
static ngx...
                            
                            
                                分类:
其他好文   时间:
2014-07-12 20:13:25   
                                阅读次数:
330
                             
                         
                    
                        
                            
                            
                                1、问题:原来将源码放在根目录下面
编译过程中出现了 no space left on device
利用df -h 命令查看 根目录空间占用完毕
2、将源码改在其他空间很足的地方编译
在make module_install 还是出现no space left on device
但是该目录下面的空间很足
,继续df -h 
根目录满了
3解决方法
将根目录中的不用的文...
                            
                            
                                分类:
其他好文   时间:
2014-07-12 17:19:42   
                                阅读次数:
205
                             
                         
                    
                        
                            
                            
                                在C++中,传统的业务分发,总要写一大串的switch-case,而且每次增加新业务时,都要在原有的switch-case里加一个分支,这就违反了设计模式中的开放封闭原则,
以下这种方案,就完全去除了switch-case,每当要添加业务模块时,只要写一个TEST_MODULE(index, name)就可以了。
思路很简单,直接上代码:#include 
#include 
#inclu...
                            
                            
                                分类:
编程语言   时间:
2014-07-12 17:01:38   
                                阅读次数:
179