flash上传跨域,一般是加入crossdomain.xml我用了别人的图片服务器,只能做此下策: //CURLFile 实现 $file = $_FILES['Filedata']['tmp_name']; // get mime type $finfo ...
分类:
其他好文 时间:
2014-09-22 01:03:41
阅读次数:
405
问题描述:在启动datanode进程时,能成功的启动;但用jps查看进程时,发现进程不存在,下面是在datanode日记文件的错误信息如下图的截屏所示:主要原因:发生错误的原因:由于把data放在的tmp的零时目录下,导致格式化之后,datanode中的数据在namenode中无法找相应的句柄。解决...
分类:
其他好文 时间:
2014-09-21 21:59:31
阅读次数:
256
the /tmp folder of linux will be cleaned every time when you reboot.Well, actually, It doesn't "delete on reboot"; it only exists in RAM in the first ...
分类:
其他好文 时间:
2014-09-20 08:50:36
阅读次数:
218
这个工具可以把数据库的表转成sqlalchemy用的class。但是只有表有primary key才可以转化为class 否则就是Tableroot@rijx:/tmp# sqlacodegen --schema rdb mysql://root:passw0rd@localhost:3306# ....
分类:
数据库 时间:
2014-09-20 01:06:36
阅读次数:
364
NSLog(@"%@", NSHomeDirectory());//沙盒主目录
NSLog(@"%@", NSTemporaryDirectory());//沙盒中tmp文件夹的路径
NSLog(@"%@", [[NSBundle mainBundle] bundlePath]);//沙盒中*.app包的路径
NSLog(@"%@", [NSSearchPathForDir...
分类:
移动开发 时间:
2014-09-19 21:13:26
阅读次数:
226
今天测试了一下optimize,发现不错,下面是测试过程:CREATETABLE`moe`(
`phonenum`varchar(11)NOTNULL,
`citynum`int(11)NOTNULLDEFAULT‘0‘,
`phonetype`int(11)DEFAULTNULL,
PRIMARYKEY(`phonenum`,`citynum`)
)
loaddatainfile‘/tmp/hun.txt‘intotablemoeFIELDSTERMINATED..
分类:
数据库 时间:
2014-09-19 19:40:27
阅读次数:
287
with as语法
–针对一个别名
with tmp as (select * from tb_name)
–针对多个别名
with
tmp as (select * from tb_name),
tmp2 as (select * from tb_name2),
tmp3 as (select * from tb_name3),
…
...
分类:
数据库 时间:
2014-09-19 13:54:35
阅读次数:
282
#!/bin/shDELDIR="/root/crontab_test/test"#3 minute agoDELTIME="-mmin +3"#delete file typeFILETYPE1="'*.txt'"FILETYPE2="'*.log'"#write to tmp filerm cr...
分类:
系统相关 时间:
2014-09-18 09:38:33
阅读次数:
210
最近更新了spark到1.1.0版本。跑任务出错。 Caused by: java.lang.UnsatisfiedLinkError: /tmp/snappy-1.0.5.3-6ceb7982-8940-431c-95a8-25b3684fa0be-libsnappyjava.so: /usr/lib64 ? ? /libstdc++.so.6: ver...
分类:
移动开发 时间:
2014-09-17 13:45:02
阅读次数:
410
以下代码python2.7可用。#encoding=utf8
#author:walker
#date:2014-09-16
#function:获取指定access文件指定表的所哟字段名
importwin32com.client
if__name__==‘__main__‘:
accessPathFile=r‘D:\tmp\xxx.mdb‘
conn=win32com.client.Dispatch(r‘ADODB.Connection‘)
DSN=‘..
分类:
数据库 时间:
2014-09-16 16:12:41
阅读次数:
213