最近有些用户反映保存图片之后在系统图库找不到保存的图片,遂决定彻底查看并解决下。Adnroid中保存图片的方法可能有如下两种:第一种是自己写方法,如下代码:public static File saveImage(Bitmap bmp) { File appDir = new File(Env...
分类:
移动开发 时间:
2014-09-19 15:18:45
阅读次数:
287
1、类SQL PLUS窗口:File->New->Command Window,这个类似于oracle的客户端工具sql plus,但比它好用多了。
2、设置关键字自动大写:Tools->Preferences->Editor,将Keyword case选择Uppercase。这样在窗口中输入sql语句时,关键字会自动大写,而其它都是小写。这样阅读代码比较容易,且保持良好得编码风格,同理,在...
分类:
数据库 时间:
2014-09-19 13:55:25
阅读次数:
324
页面里经常要用到文件上传的功能,而且要求页面不刷新,先说一下原理:页面里放一个file控件和submit按钮,外面用form表单包住,给form表单加上对应的属性值,action、method、entype、name,到这一步,能上传文件了,但是这样上传文件会刷新页面,这不是我们想要的。我们要的是文...
分类:
其他好文 时间:
2014-09-19 13:47:05
阅读次数:
202
A:wa了3次 ,也是醉了 乱搞 1 // File Name: a.cpp 2 // Author: darkdream 3 // Created Time: 2014年09月18日 星期四 23时29分43秒 4 5 #include 6 #include 7 #include 8 #incl....
分类:
其他好文 时间:
2014-09-19 13:40:45
阅读次数:
278
默认是以本机的安装路径cd /usr/local/php/etc/vim php-fpm.conf; The log file for slow requests; Default Value: not set; Note: slowlog is mandatory if request_slowl...
分类:
Web程序 时间:
2014-09-19 13:35:55
阅读次数:
298
程序开发中,可能你会经常遇到批量替换文件内容的情况,如果你使用的是linux,那么恭喜你,你可以使用一下三种办法进行查找替换。 方法一: find -name 'file.log' | xargs perl -pi -e 's|string1|string2|g'这里使用了perl语言,使用-e加上...
分类:
系统相关 时间:
2014-09-19 13:23:05
阅读次数:
200
[leetcode]Given an absolute path for a file (Unix-style), simplify it....
分类:
其他好文 时间:
2014-09-19 12:13:05
阅读次数:
133
package com.hephec;
import java.io.File;
import java.io.FileOutputStream;
import java.io.OutputStream;
public class OutputStreamTest{
public static void main(String[] args) throws Exception{
...
分类:
编程语言 时间:
2014-09-19 12:11:45
阅读次数:
221
提交cvs的时候报错,报错内容如下:
Resource is out of sync with the file system: '/heartElectDocument/接口协议/APP接口协议.doc'.
Resource is out of sync with the file system: '/heartElectDocument/接口协议/APP接口协议.doc'.
原因...
分类:
其他好文 时间:
2014-09-19 12:08:05
阅读次数:
122
二维码encode和decode工具类
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;...
分类:
其他好文 时间:
2014-09-19 12:02:45
阅读次数:
226