<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[大毛的部落]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/maowenbin</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; maowenbin]]></copyright><item><title><![CDATA[正则表达式摘要]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/45648679</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/45648679</guid><author>maowenbin</author><pubDate>Mon, 11 May 2015 20:47:00 +0800</pubDate><description><![CDATA[1、贪婪模式：根据匹配字符串以及表达式尽可能多的进行匹配，成为贪婪匹配模式 
   例如：/a\d+/ 即可以匹配首字母为a的之后的许多数字，这个不进行限制
     或者另外一种方法/a\d{2,}/也可以实现同样的方法

2、非贪婪模式：根据匹配字符串以及表达式尽可能少的进行匹配。使用的方法就是在修饰匹配次数的特殊符号后再加上一个?号进行限制 如"*?","+?","{n,}?","{]]></description><category></category></item><item><title><![CDATA[Java 数组技巧]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/25100711</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/25100711</guid><author>maowenbin</author><pubDate>Tue, 06 May 2014 09:43:30 +0800</pubDate><description><![CDATA[0.  声明一个数组（Declare an array） 



[js] 
view plaincopy


String[] aArray = new String[5];  String[] bArray = {"a","b","c", "d", "e"};  String[] cArray = new String[]{"a","b","c","d","e"};  

]]></description><category></category></item><item><title><![CDATA[Windows 中命令行循环删除文件夹]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/23466889</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/23466889</guid><author>maowenbin</author><pubDate>Fri, 11 Apr 2014 18:42:43 +0800</pubDate><description><![CDATA[for /d %a in (hudson*) do rd %a /s/q]]></description><category></category></item><item><title><![CDATA[Eclipse Properties Editor]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/17355249</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/17355249</guid><author>maowenbin</author><pubDate>Mon, 16 Dec 2013 16:31:57 +0800</pubDate><description><![CDATA[http://marketplace.eclipse.org/content/properties-editor?mpc=true&mpc_state=]]></description><category></category></item><item><title><![CDATA[JUnit 4 新特点]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/17239263</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/17239263</guid><author>maowenbin</author><pubDate>Tue, 10 Dec 2013 09:21:47 +0800</pubDate><description><![CDATA[转自: http://www.cnblogs.com/deepnighttwo/archive/2011/03/01/1968491.html

编写Testcase
使用JUnit4编写testcase不再有继承Testcase类的负担了。只要在测试方法加annotation @org.junit.Test就行了。

@org.junit.Testpublic void test1()]]></description><category></category></item><item><title><![CDATA[Eclipse 快捷键失效，重新设置规则]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/14163659</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/14163659</guid><author>maowenbin</author><pubDate>Tue, 05 Nov 2013 11:48:51 +0800</pubDate><description><![CDATA[在Eclipse中通过快捷键设置，从而快速输入System.out.println();


      1、在Window -> Preferences -> Keys 中把Word Completion的快捷键Alt+/移除或者修改成其他的（e.g.  Ctrl+Alt+/ ）

      

      2、把Content Assist的原快捷键Ctrl+Space改为Al]]></description><category></category></item><item><title><![CDATA[如何管理Ubuntu启动项]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/13023043</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/13023043</guid><author>maowenbin</author><pubDate>Fri, 25 Oct 2013 17:22:05 +0800</pubDate><description><![CDATA[通用：System Tools -> Preferences -> Startup Applications
对于没有显示在以上列表里，但是实际却又启动了的应用，如UbuntuOne，可以如下：


先关掉“启动应用程序”
到
/etc/xdg/autostart/
找到
ubuntuone-launch.desktop
用sudo vi打开，将NoDisplay=ture的tu]]></description><category></category></item><item><title><![CDATA[端口扫描程序nmap 使用方法]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/9961789</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/9961789</guid><author>maowenbin</author><pubDate>Wed, 14 Aug 2013 11:36:02 +0800</pubDate><description><![CDATA[nmap的扫描模式一般有以下几种（常用的）：
TCP connect()扫描 ： -sT
TCP SYN或半开放扫描 ： -sS
TCP FIN、NULL和XMAS ：-sF, -sN和-sX
UDP扫描： -sU

1、获取远程主机的端口信息和识别主机操作系统  (Get info about remote host ports and OS detection)
nmap -sS]]></description><category></category></item><item><title><![CDATA[Ubuntu tomcat7 设置 JDK 路径]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/9223587</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/9223587</guid><author>maowenbin</author><pubDate>Tue, 02 Jul 2013 11:45:42 +0800</pubDate><description><![CDATA[Setting up jdk path (JAVA_HOME) for Tomcat7 in ubuntu

If you are a newbie like me, you might have the same problem as me when you wanted to start the tomcat7 on ubuntu:

no JDK found - please set]]></description><category></category></item><item><title><![CDATA[借putty之私钥为SecureCRT所用]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/8891074</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/8891074</guid><author>maowenbin</author><pubDate>Mon, 06 May 2013 16:15:13 +0800</pubDate><description><![CDATA[转自： http://ponyjia.blog.51cto.com/917324/978832



Putty 和SecureCRT的用处就不多说了，同是使用安全的SSH连接来接服务器的东东。其区别可能如下（当然这些不是全部）：
Putty是免费的，SecureCRT是收费的（当然，有破解版）。 
Putty缺省配置就很好看很好用，SecureCRT的缺省配置不是为linux准备的而]]></description><category></category></item><item><title><![CDATA[Ubuntu Apache 各项默认目录]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/8844712</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/8844712</guid><author>maowenbin</author><pubDate>Wed, 24 Apr 2013 14:46:18 +0800</pubDate><description><![CDATA[1. 可执行文件： /usr/sbin/apache2, /usr/sbin/apache2ctl
2. 虚拟目录： /var/www
3. 日志目录：/var/log/apache2
4. conf目录：/etc/apache2
5. 服务启动：/etc/init.d/apache2 start]]></description><category></category></item><item><title><![CDATA[Hudson CLI and Remote API]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7863121</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7863121</guid><author>maowenbin</author><pubDate>Tue, 14 Aug 2012 09:37:29 +0800</pubDate><description><![CDATA[I have been doing some very neat stuff using Hudson the past couple of weeks. This is something which is really awesome, and am amazed at Hudson every time I use it. Hudson has a built-in command line]]></description><category></category></item><item><title><![CDATA[SSH不输入密码连接远程Linux主机]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7861114</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7861114</guid><author>maowenbin</author><pubDate>Mon, 13 Aug 2012 17:01:08 +0800</pubDate><description><![CDATA[主机IP：10.10.3.254
远程主机IP：10.10.2.95

1) 在本地主机生成密钥对
ssh-keygen -t rsa


这个命令生成一个密钥对：id_rsa（私钥文件）和id_rsa.pub（公钥文件）。默认被保存 在~/.ssh/目录下。

2) 将公钥添加到远程主机的 authorized_keys 文件中

将文件上传到远程主机 中
scp ~/.]]></description><category></category></item><item><title><![CDATA[Ubuntu 下安装配置 JDK 7]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7775975</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7775975</guid><author>maowenbin</author><pubDate>Mon, 23 Jul 2012 16:27:23 +0800</pubDate><description><![CDATA[第一步：下载jdk-7-linux-i586.tar.gz



wget -c http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz  

(注：如果下载不下来，建议使用迅雷下载，然后拷贝到Linux系统上。)


第二步：解压安装



sudo tar zxvf ./jdk-7-l]]></description><category></category></item><item><title><![CDATA[Linux 批量复制并重命名 和 批量复制文件到多个文件夹]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7758367</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7758367</guid><author>maowenbin</author><pubDate>Wed, 18 Jul 2012 11:00:31 +0800</pubDate><description><![CDATA[先说linux下批量复制并重命名,其实就是个for循环

以txt文件为例

命令行打入(F为变量名,可任意)

for F in *.txt ; do cp $F ${F%.txt}_1.txt;done

其中${F%.txt}_1.txt的意思是把F中得.txt去掉后加上_1.txt

想要每步骤都显示出来,在cp后面加上-vf 

如果这么写,就是批量改后缀,把tx]]></description><category></category></item><item><title><![CDATA[start/stop Tomcat 7 windows service]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7692273</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7692273</guid><author>maowenbin</author><pubDate>Tue, 26 Jun 2012 11:26:31 +0800</pubDate><description><![CDATA[Replace the Startup and Shutdown mode by Java instead of JVM should do the trick for those running tomcat 7.06 +

This can be done by running %TOMCAT_HOME%\bin\tomcat7w.exe and go to the "Startup" a]]></description><category></category></item><item><title><![CDATA[Windows 查看端口占用和杀进程PID]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7664127</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7664127</guid><author>maowenbin</author><pubDate>Thu, 14 Jun 2012 18:42:20 +0800</pubDate><description><![CDATA[C:\>netstat -aon|findstr "9050"

TCP    127.0.0.1:9050         0.0.0.0:0              LISTENING       2016


端口被进程号为2016的进程占用，继续执行下面命令：

C:\>tasklist|findstr "2016"

tor.exe                     2]]></description><category></category></item><item><title><![CDATA[Shell 与 SQLPLUS 的 交互 ---- 参数传递 返回值]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7361839</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7361839</guid><author>maowenbin</author><pubDate>Fri, 16 Mar 2012 16:30:19 +0800</pubDate><description><![CDATA[unix上要执行oracle的sql,常见的是用shell脚本来调用sqlplus执行sql。
用这种方式，自然shell和sqlplus就有可能进行交互---shell传递参数进sqlplus，sqlplus将结果返回给shell。
从shell传参数进sqlplus是很简单的，可以在sql语句中用${shell变量名}的方式直接引用shell的变量.
eg，
transaction_s]]></description><category></category></item><item><title><![CDATA[Running Oracle's SQL Plus in Linux Ubuntu]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7357609</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7357609</guid><author>maowenbin</author><pubDate>Thu, 15 Mar 2012 16:27:49 +0800</pubDate><description><![CDATA[Refer to: http://gm.matias.ph/running-oracles-sql-plus-in-linux-ubuntu-2010-08-04
SQL*Plus is an Oracle command-line utility program that can run SQL and PL/SQL commands interactively or from a scrip]]></description><category></category></item><item><title><![CDATA[.cvspass file generation to configure hudson tool]]></title><link>https://blog.youkuaiyun.com/maowenbin/article/details/7305743</link><guid>https://blog.youkuaiyun.com/maowenbin/article/details/7305743</guid><author>maowenbin</author><pubDate>Wed, 29 Feb 2012 13:52:30 +0800</pubDate><description><![CDATA[this is simple, run form commandline
cvs -d :pserver:login:password@host:/dir/ login
This create .cvspass for you.
OR
simple paste to hudson CVSROOT variable this:
:pserver:login:password@host:/d]]></description><category></category></item></channel></rss>