#include <time.h>
/* return current time in milliseconds */
long get_current_ms() {
struct timespec res;
clock_gettime(CLOCK_REALTIME, &res);
return 1000 * res.tv_sec + res.tv_nsec / 1...
分类:
移动开发 时间:
2015-10-03 13:15:09
阅读次数:
224
一、基本知识点 1、Baked Only:不会传入shader,只有烘焙时才有用,也就是_LightColor0等这种变量不会表示一个Baked Only Light(前提是场景有lightmap,如果没有烘培,baked only的参数没有意义); (1)烘焙完以后,再将Realtime On.....
因为项目需要,学习了TwinCAT3中使用UDP协议进行通讯的基本知识。这个做个简单的笔记,方便以后查询。1 概述倍福为了实现从实时环境中直接访问网卡(network cards)专门提供了一个函数 “TCP/UDP Realtime”, 这个访问要么来自PLC(61131-3), 要么来自C++....
分类:
编程语言 时间:
2015-09-17 23:27:24
阅读次数:
838
今天尝试了django_conpressor,一个在django框架中压缩css和js的插件,灰常有用我把它加载在我的base的HTML template中,原来未经压缩的css和js是:压缩后会变成:具体的做法:详细的参见官方说明:http://django_compressor.readthed...
分类:
Web程序 时间:
2015-09-16 23:09:04
阅读次数:
245
在线压缩网站http://tools.css-js.com/compressor.htmlUglifyJS 是用 NodeJS 编写的 JavaScript 压缩工具,是目前最流行的JS压缩工具,JQuery 就是使用此工具压缩,UglifyJS 压缩率高,压缩选项多,并且具有优化代码,格式化代码功...
分类:
编程语言 时间:
2015-08-13 11:35:44
阅读次数:
146
英文原址:https://github.com/nathanmarz/storm/wiki/Trident-tutorial----------------Trident是在storm基础上,一个以realtime 计算为目标的高度抽象。 它在提供处理大吞吐量数据能力的同时,也提供了低延时分布式查询...
分类:
其他好文 时间:
2015-08-06 01:49:39
阅读次数:
138
可参考http://seanlook.com/2015/05/06/lsyncd-synchronize-realtime/可参考http://openlinuxfly.blog.51cto.com/7120723/1679279一、环境lsyncd192.168.3.71rsync192.168.3.72二、配置rsync服务器配置rsync以xinetd方式运行[root@rsync~]#yuminstallrsync-y
[root@rsync~]#yum..
分类:
其他好文 时间:
2015-07-30 23:46:15
阅读次数:
426
(一)理论基础更多理论以后再补充,或者参考书籍1、trident是什么?Trident is a high-level abstraction for doing realtime computing on top of Storm. It allows you to seamlessly inte...
分类:
其他好文 时间:
2015-07-10 22:15:55
阅读次数:
235
(一)理论基础更多理论以后再补充,或者参考书籍1、trident是什么?Trident is a high-level abstraction for doing realtime computing on top of Storm. It allows you to seamlessly inte...
分类:
其他好文 时间:
2015-07-10 11:09:15
阅读次数:
155
(一)理论基础
更多理论以后再补充,或者参考书籍
1、trident是什么?
Trident is a high-level abstraction for doing realtime computing on top of Storm. It allows you to seamlessly intermix high throughput (millions of messages p...
分类:
其他好文 时间:
2015-06-30 16:24:58
阅读次数:
168