- 浏览: 66634 次
- 性别:
- 来自: 武汉
最新评论
文章列表
Java对MONGODB数据基础操作
http://blog.csdn.net/mcpang/article/details/8730849
http://www.cnblogs.com/hoojo/archive/2011/06/02/2068665.html
DocInfo.java
package models;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Dat ...
★★★ 本篇引用转载自:《 http://stephen830.iteye.com/blog/260776 》 ★★★
感谢博主
本篇介绍了在JAVA中如何对double或者float的浮点数进行精度计算,在JAVA中提供了多种参数来实现精度的不同控制方式。具体例子如下:
package c ...
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStrea ...
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import javax.xml.parsers.DocumentBuilder;
i ...
引用附件传个效果图,碰到SB非要这效果真无奈了
引用API页面:http://api.jqueryui.com/slider/
引用JS
<!-- jquery slider -->
<script type="text/javascript" src="jslider/jquery-1.9.1.js"></script>
<script type="text/javascript" src="jslider/jquery-ui.js"></s ...
引用部署程序的时候启动出了这个错,查了一下是 /etc/hosts文件的问题
17:46:51,770 ERROR ~ Unable to set localhost. This prevents creation of a GUID. Cause was: wdse57: wdse57: Name or service not known
java.net.UnknownHostException: wdse57: wdse57: Name or service not known
at java.net.InetAddress.getLocalHost(InetAddress.java:1 ...
解压到当前目录或解压到指定路径
ssh root@192.168.0.1 password 远程登录到其它服务器
tar zxvf ./jdk-7-linux-i586.tar.gz
tar zxvf ./jdk-7-linux-i586.tar.gz -C /usr/lib/jvm
tar -zcvf yqpt_rest.tar.gz yqpt_rest 打包
unzip yqpt_rest.zip 解压zip包
vi 打开编辑文件 shift+g到文件底部
cat xxx 显示某个文件的内容
source ~/.bash_profile 改完配置 环境变量后使其不用重启 ...
//将返回的Map的key 拼成空格隔开的字符串
private static String map2String(List<Map> arr){
String str = "";
for (Map<String, Integer> m : arr) {
Set<String> s = m.keySet();
for (String string : s) {
str += string + " ";
}
}
return str;
}
M ...
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
List<Map<String, Object>> lstResult = DBHelper.getSqlQueryListToMap(sql.toString());//获取数 ...
//页面导入JS 导入需要的jar包 (附件) .swf文件必须为破解的 fusionchart 3.2
<script type='text/javascript' src='FusionCharts/JSClass/FusionCharts.js'></script>
<script type='text/javascript' src='FusionCharts/JSClass/FusionChartsExportComponent.js'></script>
// Java 字符串拼接
/* exportEnabled= ...
javascript 小功能 js语句
- 博客分类:
- js备忘
window.top.location.reload();//刷新当前页面
//执行修改代表词动作
function doModifyKeywordsDaily(date,topicId){
var keywords = $('#keywordsDaily').val();
if(""==trimLeftAndRight(keywords)||null==keywords){
keywords="null";
}
var param = "timestart="+date+"&oid="+topicId+"&keywords=&qu ...
// check if a string is url format
function isURL(url) {
var strRegex = "^((https|http|ftp|rtsp|mms)://)"
+ "{1}(([0-9a-zA-Z_!~*'().&=+$%-]+: )?[0-9a-zA-Z_!~*'().&=+$%-]+@)?" //ftp的user@
+ "(([0-9]{1,3}.){3}[0-9]{1,3}" // IP形式的URL- 199.194.52.184
+ ...
// show a prompt message
// param title : the title to show on the message box
// param msg : the prompt message to tell the user
// param confirmCallback : what happens after the confirm button is clicked
function msgAlert(title, msg, confirmCallback) {
var htmlMsg = "<div style='tex ...