使用cowboy实现websocket主要实现以下回调函数 下面的函数返回值要具体弄清楚原因参考 websocket具体协议 主要就是两个部分 握手和数据传输 -export([init/3]).常见所有处理程序回调。建立WebSocket连接,这个函数必须返回upgrade的元组。 -expo.....
分类:
Web程序 时间:
2014-07-11 21:32:50
阅读次数:
366
1. 下载mahout-distribution-0.5.tar.gz 并解压;2.配置环境变量: /etc/profileexport MAHOUT_HOME=/home/mahout/export PATH=$MAHOUT_HOME/bin:$PATH3. 启动hadoopstart-all.s...
分类:
其他好文 时间:
2014-07-11 12:17:49
阅读次数:
133
本文介绍Icehouse发行版的keystone-manage命令 keystone-manage是用来同keystone服务进行交互的命令行工具,通常该命令只用于不能通过HTTP API完成的操作,比如数据的import/export或数据库迁移等等。用法 keystone-manage [o.....
分类:
其他好文 时间:
2014-07-10 16:46:11
阅读次数:
252
php中利用phpexcel导出数据的实现代码。对phpexcel类库不熟悉的朋友,可以阅读下《phpexcel中文帮助手册》中的内容,具体实例大家可以phpexcel快速开发指南中的相关例子。完整代码:public function export_data($data = array()){# c...
分类:
Web程序 时间:
2014-07-10 15:56:50
阅读次数:
201
//Excel导出实例package com.expai.export.servlet;import java.io.File;import java.io.IOException;import java.net.URL;import java.text.SimpleDateFormat;impor...
分类:
编程语言 时间:
2014-07-09 22:11:43
阅读次数:
357
function countdown() { local i; sleep 1 for ((i=$1 - 1;i>=1;i--));do printf '\b\b%02d' "$i" sleep 1 done}export LANG=en_US.UTF8;if [ -f /root/.showf.....
分类:
其他好文 时间:
2014-07-09 21:00:48
阅读次数:
197
使用win8.1安装镜像制作wimboot启动 制作wim启动映像文件Dism /Export-Image /WIMBoot/SourceImageFile:z:\sources\install.wim /SourceIndex:1/DestinationImageFile:d:\wimboot.w...
网络块设备是通过NBD Server将虚拟块设备通过TCP/IP export出来,可以远程访问。 NBD Server通常是qemu-nbd 可以提供unix socket qemu-nbd -t -k /home/cliu8/images/ubuntutest-nbd ubuntutest.im...
分类:
Web程序 时间:
2014-07-08 22:16:46
阅读次数:
348
Export aborted because fatal lint errors were found.These are listed in the Problems view.Either fix these before running Export again,or turn off "Ru...
分类:
移动开发 时间:
2014-07-06 14:23:18
阅读次数:
363
直接上配置,你懂的
lai'mac:~ laijingli$ more .bash_profile
###add my scripts to the search path for convenient daily usage
export PATH=$PATH:/Users/laijingli/autoshell:/opt/local/bin:/opt/local/sbin
##...
分类:
其他好文 时间:
2014-07-06 10:12:26
阅读次数:
185