Problem Description
The God of sheep decides to pixelate some pictures (i.e., change them into pictures with mosaic). Here's how he is gonna make it: for each picture, he divides the picture into n x...
分类:
其他好文 时间:
2014-07-09 12:14:13
阅读次数:
433
1. 去百度搜索 redis,然后去靠谱的地方下载最新的redisxxx.tar.gz2. 解压后,sudo make3. sudo make install4. //安装完之后,需要启动redis-server,然后在启动redis-cli。默认端口为63795. 启动redis-server只需...
分类:
Web程序 时间:
2014-07-08 22:52:00
阅读次数:
362
最近工作中,发现了一个bug,是和ListView Adapter有关的。产生了FC,描述信息大约是
"The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a b...
分类:
其他好文 时间:
2014-07-08 20:09:41
阅读次数:
199
在成功编译nginx的mips平台后,将其make install生成的文件打包放在rt5350的文件系统。
其中需要注意的是,在放入文件系统需要和编译安装的目录保持一致:如编译的时候有release的目录,所以在文件系统也需要相应的目录
release,并将conf ,html,logs文件拷贝,nginx放在sbin目录下。
另外在编译的时候指定了user及group如果文件系统尚未...
分类:
其他好文 时间:
2014-07-08 19:35:05
阅读次数:
373
一:安装readlineOS的安装光盘里提供了readline包.[root@db11g~]#rpm-ivhreadline*libtermcap-devel*二:安装rlwrap[root@db11g~]#tar-zxvfrlwrap-0.41.tar.gz
[root@db11g~]#cdrlwrap-0.41
[root@db11grlwrap-0.30]#./configure
[root@db11grlwrap-0.30]#make
[root@db11grlwrap..
分类:
其他好文 时间:
2014-07-08 09:34:03
阅读次数:
232
不相交集合数据结构保持一组不相交的动态集合S={S1,S2,...,SK},每个集合通过一个代表来识别,代表即集合中的某个成员。如果x表示一个对象,不相交集合支持以下操作:MAKE-SET(x):建立一个新的集合,其唯一成员为x。因为各集合是不想交的,故x没有在其它集合中出现。UNION(x,y):...
分类:
其他好文 时间:
2014-07-06 16:47:02
阅读次数:
182
题目链接:uva 11014 - Make a Crystal
题目大意:给定n,表示在一个三维的空间,在坐标均不大于n的点中选取2个点,保证这两个点与(0,0,0)三点不同线。问能找到多少对。
解题思路:容斥原理,如果有坐标(x,y,z),并且(2x,2y,2z)在范围内,那个该对点就不可取,于是要减掉包含公共因子的部分。所以枚举因子,但是如果因子包含有偶数个质因子,则加上。
#i...
分类:
其他好文 时间:
2014-07-06 11:57:33
阅读次数:
210
The Game
Description
One morning, you wake up and think: "I am such a good programmer. Why not make some money?'' So you decide to write a computer game.
The game takes place on a rectangular...
分类:
其他好文 时间:
2014-07-06 09:02:34
阅读次数:
287
环境:Ubuntu 9.10 git-1.8.2.3.tar.bz2
1.将安装包下载到所选目录下,如:/tmp
2.tar -xjf git-1.8.2.3.tar.bz2
3.cd git-1.8.2.3
4.配置:./configure --prefix=/usr/bin
5.安装,如果直接make install安装出现错误,可以用下面命令...
分类:
其他好文 时间:
2014-07-06 08:47:47
阅读次数:
207
注意:mac ox ,lua version :5.15
下载lua官网的lua,
注意:最好是5.15以下,5.2的lua不支持table的getn()方法,这让我情何以堪。(获取table长度,相当与cout,size,length)
下载解压,
cd 目录
make macosx
sudo make install (是的,就是小写的install,虽然文件夹下的是INS...
分类:
其他好文 时间:
2014-07-06 08:40:44
阅读次数:
187