好久没有弄博客了。。。hive0.14spark0.12[hadoop@irs bin]$ ./spark-sqlSpark assembly has been built with Hive, including Datanucleus jars on classpathException in ...
分类:
数据库 时间:
2015-02-03 17:03:56
阅读次数:
372
http://blog.sina.com.cn/s/blog_6f5b220601013zw3.html非常好的原子操作,不用加锁:__sync_fetch_and_addGCC 提供的原子操作gcc从4.1.2提供了__sync_*系列的built-in函数,用于提供加减和逻辑运算的原子操作。其声...
分类:
编程语言 时间:
2015-02-03 12:44:55
阅读次数:
195
查看nginx服务的编译参数
/application/nginx/sbin/nginx -V
[root@mode ~]# /application/nginx/sbin/nginx -V
nginx version: nginx/1.2.1
built by gcc 4.1.2 20080704 (Red Hat 4.1.2-52)
configure arguments: --us...
分类:
数据库 时间:
2015-02-02 16:01:06
阅读次数:
218
有时候我们需要添加一些额外的设置选项到常规设置(后台 > 设置 > 常规)页面,下面是一个简单的范例: 直接添加到主题的 functions.php 即可: /*** WordPress 添加额外选项字段到常规设置页面* http://www.wpdaxue.com/add-field-to-gen...
分类:
其他好文 时间:
2015-02-01 20:24:07
阅读次数:
193
C++ 编写一个不可复制的类
flyfish
Effective C++:条款06
若不想使用编译器自动生成的函数,就该明确拒绝 .
Explicitly disallow the use of complier-generated functions you do not want.
老式C++的写法
class noncopyable
{
protected:
nonco...
分类:
编程语言 时间:
2015-01-30 16:04:54
阅读次数:
185
▲模块Module 为了编写可维护的代码,我们可以把代码分放在不同的文件里。在Python中,一个.py文件就称为一个模块。 我们在编写程序的时候,经常引用其他模块,包括Python内置的模块和来自第三方的模块。 使用模块可以避免函数名和变量名起冲突,但是也要注意,尽量不要与内置函数(Built-i...
分类:
编程语言 时间:
2015-01-29 01:20:49
阅读次数:
217
asp.net mvc的视图里使用Razor来书写服务器代码,人尽皆知。可以常常见到里面写上for循环语句,输出一大堆东东,牛逼得很。可是,如果循环语句还不能满足我们的要求,需要定义一个函数来调用,该怎么搞?网上那些牛逼哄哄的教程文章立即三缄其口一大半。好的,我现在来给个例子给个J8:
@functions{
string outputTags(IList list,boo...
分类:
其他好文 时间:
2015-01-29 00:11:39
阅读次数:
258
定义在scripts/functions中。
# Don't do log messages here to avoid confusing graphical boots
run_scripts /scripts/init-top
在init脚本中被调用:
maybe_break modules
[ "$quiet" != "y" ] && log_begin_msg "Loadi...
分类:
其他好文 时间:
2015-01-28 21:28:59
阅读次数:
302
WDM式驱动源码:
#include "stdafx.h"
#include // Make all functions UNICODE safe.
#include // for the API UpdateDriverForPlugAndPlayDevices().
#include // for SetupDiXxx functions.
#include "inst...
分类:
其他好文 时间:
2015-01-27 16:25:05
阅读次数:
210
LanguageManual WindowingAndAnalyticsSkip to end of metadataAdded byLefty Leverenz, last edited byLefty Leverenzon Aug 01, 2014(view change)show commen...