实现固定在窗口左下角一般的 position:fixed; 实现方法#ad{
position:fixed; bottom:0; left:0px;}在 IE6 中实现 position:fixed; 的办法#ad{
position:fixed; bottom:0; ...
分类:
其他好文 时间:
2014-06-07 05:20:40
阅读次数:
226
lxc-start: cgroup is not mounted在执行lxc-start时出现上述问题是因为cgroup在宿主机上没有挂载。fix:vim /etc/fstabnone /sys/fs/cgroup cgroup defaults 0 0重启机器即可...
分类:
其他好文 时间:
2014-06-05 10:49:06
阅读次数:
270
package wordcount;
import java.io.IOException;
import java.util.StringTokenizer;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.Int...
分类:
其他好文 时间:
2014-06-05 09:12:55
阅读次数:
203
一周前接到新任务,调试CS5343,百度一下,CS5343是一款音频采集的AD芯片,CS5343驱动代码是现成的,我的工作是提高芯片的采样速率,看了一边芯片的Datesheet,辛好东西不是很多。1.文档总结概述为:SDOUT上拉10K到VCC为主模式,下拉10K到GND为从模式。概述为:LRCK上...
分类:
其他好文 时间:
2014-05-29 15:25:01
阅读次数:
590
01背包。将最大金额作为容量v。概率做乘法。 1 #include 2 #include 3
4 #define mymax(a, b) (a>b) ? a:b 5 6 float dp[10005]; 7 int mon[105]; 8
float fs[105]; 9 10 int ma...
分类:
其他好文 时间:
2014-05-29 12:28:12
阅读次数:
225
#include #include #include #include #pragma
comment(lib, "OpenCL.lib")const char * loadfile(const char * fileName){
std::ifstream fs(fileName, std...
分类:
其他好文 时间:
2014-05-29 00:21:15
阅读次数:
246
最近看了些node.js方面的知识,就像拿它来做些什么。因为自己喜欢摄影,经常上蜂鸟网,所以寻思了一下,干脆做个简单的爬虫来扒论坛的帖子。直接上代码吧。 1
var sys = require("sys"), 2 http = require("http"), 3 fs = requ...
分类:
Web程序 时间:
2014-05-28 18:48:15
阅读次数:
360
ES有两种格式的search api:“lite”——query
string版本,这个版本期望所有的参数在请求中指定并传递full request
body版本期望得到一个JSON请求体,并且使用一个名为DSL的丰富的搜索语言query string搜索对在使用命令行的即席查询(ad hocque...
分类:
其他好文 时间:
2014-05-28 11:15:51
阅读次数:
327
https://pypi.python.org/pypi/graphviz(python对DOT图的相关库)http://zh.wikipedia.org/wiki/DOT%E8%AF%AD%E8%A8%80http://zh.wikipedia.org/zh-cn/Graphvizdot就是通过编...
分类:
其他好文 时间:
2014-05-27 15:37:23
阅读次数:
237
人们常说“细节决定成败”。
编码工作中,同样需要关注细节。
本文将给出3个小实例来说明编码中关注细节的重要性,同时给出作者对如何注意编码细节的一点见解(说的不对,请指正)。
例1 这个问题如此地显而易见,竟然没有被发现。
List numList = new List();
numList.Add(3);
numList.Add(1);
numList.Add(4);
numList.Ad...
分类:
其他好文 时间:
2014-05-25 21:14:17
阅读次数:
223