【Transform & Physics】1、Space。Unity定义了Space枚举值,此值如下: 通常通过Space.World、Space.Self来区别一个Vector是按世界坐标系作用还是按本地坐标系作用。参考:file:///D:/Program%20Files%20(x86)/...
分类:
其他好文 时间:
2014-07-03 10:38:28
阅读次数:
182
修改php.ini文件1.post_max_size = 10M 表单提交最大数据为10M.此项不是限制上传单个文件的大小,而是针对整个表单的提交数据进行限制的.2.file_uploads = On 是否允许上传文件,如果为OFF您将不能上传文件.3.upload_tmp_dir = "D:/PH...
分类:
其他好文 时间:
2014-07-03 10:28:42
阅读次数:
700
方法一:function getExt($url){ $urlinfo = parse_url($url); $file = basename($urlinfo['path']); if(strpos($file,'.') !== false) { $ext = explode('....
分类:
Web程序 时间:
2014-07-01 19:09:47
阅读次数:
1274
RAW raw是默认的格式,格式简单,容易转换为其他的格式。需要文件系统的支持才能支持sparse file 创建image # qemu-img create -f raw flat.img 10GFormatting 'flat.img', fmt=raw size=10737418240 如果...
分类:
其他好文 时间:
2014-07-01 18:07:59
阅读次数:
386
编译服务程序报的各种错:
1. 环境变量配置好后运行tmboot –y启动管理进程和服务进程
2. 报类似这样的错:buildserv:error while loading shared libraries:libtux.so:can't openshared object file。解决如下:
exportLD_LIBRARY_PATH=$ LD_LIBRARY_PATH:/home...
分类:
其他好文 时间:
2014-07-01 15:54:32
阅读次数:
1571
synergy
是一个用于在多台主机间(Linux, Windows)共享键鼠的工具,
下载
从以下网站下载synergy
http://synergy-project.org/
这里用Linux和Windows举例:
64位Linux下下载:
http://synergy-project.org/download/?file=synergy-1.5.0-r...
分类:
其他好文 时间:
2014-07-01 15:28:38
阅读次数:
230
Since I use Sublime ,I want to write aencoding convent program .Here isthe knowage what i need .InputStreamReader:This class is the brage from bytetyp...
分类:
其他好文 时间:
2014-07-01 13:57:23
阅读次数:
214
最近有个项目要用solr,solr是基于lucene的,今天在测试indexwriter时遇到了lock的问题:测试代码:importjava.io.File;
importjava.io.IOException;
importorg.apache.lucene.analysis.Analyzer;
importorg.apache.lucene.analysis.standard.StandardAnalyzer;
importorg.apac..
分类:
其他好文 时间:
2014-07-01 09:40:53
阅读次数:
295
编译 windows上编译lua源码
cl /MD /O2 /W3 /c /DLUA_BUILD_AS_DLL *.c
del *.o
ren lua.obj lua.o
ren luac.obj luac.o
ren print.obj print.o
link /DLL /IMPLIB:lua5.1.lib /OUT:lua5.1.dll *.obj
link /OUT:lua.ex...
分类:
其他好文 时间:
2014-07-01 07:21:11
阅读次数:
199
Ø 读取文件的时间
#!/bin/bash
for file in `ls /root`
do
stat $file>1.txt
sed -n "7p" 1.txt>2.txt
usetime= awk -F ":" '{print $2}' 2.txt
echo "time="$file $usetime
done
Ø 读取文件的每行while...
分类:
其他好文 时间:
2014-07-01 06:49:51
阅读次数:
204