`
文章列表
Person.java package fanshe; public class Person { private int age; private String name; private String info(){ return "My name is "+ name +", I'm "+age+" years old."; } private void sayHellow(String word){ System.out.println(word); } } Myma ...
详细的设置步骤: 右击“桌面”—“属性”—“外观”选项卡—高级—项目中的“窗口”——“颜色”—其他—分别设置 色调: 85 。饱和度: 123 。亮度: 205 -添加到自定义颜色-在自定义颜色选定点确定。     IE :  打开IE,点击菜单栏中的"工具",点"INTERNET选项",点右下角的"辅助功能",然后勾选 "不使用网页中指定的颜色",然后确定。 Firefox :  打开Firefox,点击菜单栏的"工具",点“选项”,选中“内容”Tab,点中“颜色”,设置背景色(或直接选 ...

GIT 常用命令

    博客分类:
  • GIT
创建远程分支: git push origin master:develop  (将本地master分支push 到远程develop 分支) 删除远程分支: git branch -d -r origin/develop  (删除远程develop分支)

maven-in-five-minutes

http://maven.apache.org/guides/ Maven 安装 1. download from http://maven.apache.org/download.html 2. 环境变量 JAVA_HOME - location of a JDK home dir M2_HOME - location of maven2's installed home dir path -   location of maven2's bin dir 3. 修改仓库路径 在conf/setting.xml 中添加 <localRepository>D:/J2EE/TOOLS ...

Python读取XML

#-*- coding:utf-8 -*- from xml.etree import ElementTree Service_Name='DMServices' def read_xml(text):     # root = ElementTree.parse(r"D:/test.xml")     log = open('log.txt','w')     root = ElementTree.fromstring(text)     for node in root.findall("appSettings/add"):         if ...
1> make sure all process which is writing mongodb are stopped. 2> dump database from GAMONGODB81     sudo ./mongodump --host gamongodb91:27017 --username 'GAEditor' --password '9AEd!t0r' --out /data/BondPrice_backup 3> compress backup folder with tar, 1 hour    tar -cvf /data/BondPrice_backu ...

MongoDB 常用命令

create DB use newDBname; create collection db.newCollectionName.insert({m:"test"}); query by time db.DOL_LIVE.find({t:{'$gte':'2011-01-01 09:32:42,485','$lte':'2012-01-01 09:32:42,485'}}); query by like "%str%" db.DOL_LIVE.find({m:{'$regex':'.*str.*'}}); remove by time db.DOL_ ...
win7 win2008 搜索cmd, 右键“run as admimistarator”,打开cmd后运行命令: sc create NCPRetrieverService binPath= "D:\Production\Application\NCP\NotificationRetriever\NotificationRetriever.exe"
http://blog.csdn.net/ldl22847/article/details/6012777
http://heyyroup.blog.163.com/blog/static/75177789201110100266671/ 将Eclipse项目自动部署到Tomcat的webapps目录下  2011-11-10 00:45:41|  分类: Java开发之路 |字号 订阅        在eclipse中新建的Dynamic Web Project。写好代码后,选择Run on Server(当然Server配置为Tomcat),但是运行后我们发下在Tomcat的安装目录下并没有出现我们所建立的工程名字。很明显,项目并没有自动部署到Tomcat的Webapps中。 ...
declare @start smalldatetime,@end smalldatetime,@sj smalldatetime create table #tmp(tm smalldatetime,cnt int) set @start='2012-01-08 00:00:00' set @end='2012-01-09 00:00:00' set @sj=dateadd(mi,5,@start) while @sj<=@end begin   insert into #tmp(tm,cnt)   select @sj,count(*) from NotificationHisto ...
http://blog.csdn.net/jacbo/article/details/7008225
八步轻松搞定 XPlanner 安裝  XPlanner目前的0.7beta用的lib包比较老, 安装会遇到很多问题, 说明如下: JDK: JDK不能用6.0,要用5.0以下 TOMCAT: 我安装时TOMCAT 5.5会在登录后出一个foot.jsp页面的错, 也不行, 要用TOMCAT 5.0.28 MYSQL: 我用的是5.1 http://www.xplanner.org/xplanner/ 1、下載 xplanner-0.7b7-war.zip 2、先改 xplanner.properties 跟 xplanner-custom.properties成你相应的数据库连接 3、a ...
Remote Access select * from opendatasource('sqloledb','server=192.168.1.1;uid=sa;pwd=123456;database=TT').TT.dbo.test1 select top 10 * from opendatasource('sqloledb','Data Source=MSOutputDB3;Initial Catalog=TimeSeries;;Integrated Security=SSPI;').TimeSeries.dbo.NetAssets ------------------------- ...

bat自动映射网盘

    博客分类:
  • DB
在用程序自动传输文件时,如果网盘经常自动断开,可建立如下的bat文件: 映射网盘: net use M: \\oibtaoutputfs81\vol1$ password /user:username net use /persistent:yes 断开网盘: net use M: /del
Global site tag (gtag.js) - Google Analytics