<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 15,  comments - 4,  trackbacks - 0
      2010年4月30日
    1.查詢ADSL的ip地址,
    http://ip.chinaz.com/
    2.訪問(wèn)路由器設(shè)置端口映射。

    posted @ 2011-07-20 10:02 jeanx 閱讀(308) | 評(píng)論 (1)編輯 收藏
    conn / as sysdba

    alter user sys identified by "newsyspassword"
    posted @ 2011-07-05 15:52 jeanx 閱讀(199) | 評(píng)論 (0)編輯 收藏

    netstat -ano

      我們可以知道某一端口被那個(gè)進(jìn)程(對(duì)應(yīng)PID)占用;
      然后我們可以打開(kāi)任務(wù)管理器;查看某一PID對(duì)應(yīng)的進(jìn)程名;
      如果PID沒(méi)有顯示,菜單》查看》選擇列》選中PID即可;
      得知進(jìn)程后,我們可以將進(jìn)程殺掉;修改其使用的端口。

     


    假如我們需要確定誰(shuí)占用了我們的9050端口

    1、Windows平臺(tái)
    在windows命令行窗口下執(zhí)行:
    C:\>netstat -aon|findstr "9050"
    TCP    127.0.0.1:9050         0.0.0.0:0              LISTENING       2016


    看到了嗎,端口被進(jìn)程號(hào)為2016的進(jìn)程占用,繼續(xù)執(zhí)行下面命令:

    C:\>tasklist|findstr "2016"
    tor.exe                     2016 Console                 0     16,064 K

    很清楚吧,tor占用了你的端口

     

    2、AIX
    $netstat -Aan|grep 30542
    f10000f303321b58 tcp4 0 0 *.30542 *.* LISTEN
    $rmsock f10000f303321b58 tcpcb
    The socket 0x3321800 is being held by proccess 692476 (db2sysc).

    這個(gè)我就不解釋了

     

    3、Linux
    $netstat -pan|grep 2809
    tcp    0   0 0.0.0.0:2809   0.0.0.0:*   LISTEN   9493/java
    del.icio.us Tags: aix,windows,tips

     

     

     


    NETSTAT [-a] [-b] [-e] [-n] [-o] [-p proto] [-r] [-s] [-v] [interval]

    -a            顯示所有連接和監(jiān)聽(tīng)端口。

    -b            顯示包含于創(chuàng)建每個(gè)連接或監(jiān)聽(tīng)端口的可執(zhí)行組件。在某些情況下已知可執(zhí)行組件
                    擁有多個(gè)獨(dú)立組件,并且在這些情況下
                    包含于創(chuàng)建連接或監(jiān)聽(tīng)端口的組件序列被顯示。這種情況下,可執(zhí)行組件名
                    在底部的 [] 中,頂部是其調(diào)用的組件,等等,直到 TCP/IP 部分。注意此選項(xiàng)
                    可能需要很長(zhǎng)時(shí)間,如果沒(méi)有足夠權(quán)限可能失敗。
                   
    -e            顯示以太網(wǎng)統(tǒng)計(jì)信息。此選項(xiàng)可以與 -s選項(xiàng)組合使用。
                   
    -n            以數(shù)字形式顯示地址和端口號(hào)。

    -o            顯示與每個(gè)連接相關(guān)的所屬進(jìn)程 ID。

    -p proto      顯示 proto 指定的協(xié)議的連接;proto 可以是
                    下列協(xié)議之一: TCP、UDP、TCPv6 或 UDPv6。
                    如果與 -s 選項(xiàng)一起使用以顯示按協(xié)議統(tǒng)計(jì)信息,proto 可以是下列協(xié)議之一:
                    IP、IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 或 UDPv6。
                   
    -r            顯示路由表。

    -s            顯示按協(xié)議統(tǒng)計(jì)信息。默認(rèn)地,顯示 IP、
                    IPv6、ICMP、ICMPv6、TCP、TCPv6、UDP 和 UDPv6 的統(tǒng)計(jì)信息;
                    -p 選項(xiàng)用于指定默認(rèn)情況的子集。
                   
    -v            與 -b 選項(xiàng)一起使用時(shí)將顯示包含于
                    為所有可執(zhí)行組件創(chuàng)建連接或監(jiān)聽(tīng)端口的組件。
                   
    interval      重新顯示選定統(tǒng)計(jì)信息,每次顯示之間
                    暫停時(shí)間間隔(以秒計(jì))。按 CTRL+C 停止重新
                    顯示統(tǒng)計(jì)信息。如果省略,netstat 顯示當(dāng)前
                    配置信息(只顯示一次)

    posted @ 2011-07-05 11:51 jeanx 閱讀(437) | 評(píng)論 (0)編輯 收藏
    Illegal mix of collations (latin1_swedish_ci,COERCIBLE) and (utf8_general_ci,IMPLICIT) for operation 'UNION'

    在MySql的安裝目錄下,有個(gè)my.ini文件,打開(kāi)它:
    將下面的值改為utf8如下:
    default-character-set=utf8

    把mysql服務(wù)重新啟動(dòng)


    posted @ 2010-07-28 15:01 jeanx 閱讀(1774) | 評(píng)論 (0)編輯 收藏
    //記住URL
    UserVO user = (UserVO) session.getAttribute(Constants.SESSION_USER);
    if (user == null) {
        String str 
    = request.getRequestURL().toString();
        String quryStr 
    = request.getQueryString();
        String url 
    = str + "?" + quryStr;
        session.setAttribute(
    "url", url);
    }

    //獲取URL
    String redrectUrl  = request.getParameter("redUrl");
    //檢查是否存在有最后URL
    if (redrectUrl != null&&!redrectUrl.equals("")) {
        forward.setRedirect(
    true);
        forward.setPath(redrectUrl);
        
    return forward;           
    }
    else{               
        forward.setPath(
    "/index/home/index.do?oper=gotoHome");
    }

    posted @ 2010-05-15 14:52 jeanx 閱讀(222) | 評(píng)論 (0)編輯 收藏
    js:
    data: {
                    'userName': encodeURI(userName.value)
     },

    action:
    String userName = URLDecoder.decode(request.getParameter("userName"),"UTF-8");   



    posted @ 2010-05-14 14:05 jeanx 閱讀(180) | 評(píng)論 (0)編輯 收藏
    這就是問(wèn)題產(chǎn)生的原因。因?yàn)橄到y(tǒng)變量里面原來(lái)的path的值被覆蓋了。

    原來(lái)的path的值是什么呢,是c:\windows\system32

    修改系統(tǒng)變量path值為:c:\windows\system32

    問(wèn)題解決。
    posted @ 2010-05-10 10:25 jeanx 閱讀(2049) | 評(píng)論 (1)編輯 收藏
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>三種彈出對(duì)話框的用法實(shí)例</title>
    <script language="javascript">
    function ale()
    {//這個(gè)基本沒(méi)有什么說(shuō)的,就是彈出一個(gè)提醒的對(duì)話框
        alert("我敢保證,你現(xiàn)在用的是演示一");
    }

    function firm()
    {//利用對(duì)話框返回的值 (true 或者 false)
        if(confirm("你確信要轉(zhuǎn)去 天轟穿的博客?"))
        
    {//如果是true ,那么就把頁(yè)面轉(zhuǎn)向thcjp.cnblogs.com
            location.href="http://thcjp.cnblogs.com";
        }

        
    else
        
    {//否則說(shuō)明下了,赫赫
            alert("你按了取消,那就是返回false");
        }

    }

    function prom()
    {
        
    var name=prompt("請(qǐng)輸入您的名字","");//將輸入的內(nèi)容賦給變量 name ,
        //這里需要注意的是,prompt有兩個(gè)參 數(shù),前面是提示的話,后面是當(dāng)對(duì)話框出來(lái)后,在對(duì)話框里的默認(rèn)值
        if(name)//如果返回的有內(nèi)容
        {
            alert(
    "歡迎您:"+ name)
        }

    }

    </script>
    </head>

    <body>
    <p>對(duì)話框有三種</p>
    <p>1:只是提醒,不能對(duì)腳本產(chǎn)生任何改變;</p>
    <p>2:一般用于確認(rèn),返回 true 或者 false ,所 以可以輕松用于 ifelse判斷 </p>
    <p>3: 一個(gè)帶輸入的對(duì)話框,可以返回用戶填入的字符串,常見(jiàn) 于某些留言本或者論壇輸入內(nèi)容那里的 插入U(xiǎn)BB格式圖片 </p>
    <p>下面我們分別演示:</p>
    <p>演示一:提醒 對(duì)話框</p>
    <p>
      
    <input type="submit" name="Submit" value="提交" onclick="ale()" />
    </p>
    <p>演示二 :確認(rèn)對(duì)話框 </p>
    <p>
      
    <input type="submit" name="Submit2" value="提交" onclick="firm()" />
    </p>
    <p>演示三 :要求用戶輸入,然后給個(gè)結(jié)果</p>
    <p>
      
    <input type="submit" name="Submit3" value="提交" onclick="prom()" />
    </p>
    </body>
    </html>

    原文:http://www.cnblogs.com/thcjp/archive/2006/08/04/468047.html
    posted @ 2010-05-04 10:27 jeanx 閱讀(232) | 評(píng)論 (0)編輯 收藏
    運(yùn)行,在控制臺(tái)敲入你的注冊(cè)名,回車,就會(huì)出來(lái)注冊(cè)碼
     1 package com.xpow.hodo.util;
     2 
     3 import java.io.BufferedReader;
     4 import java.io.IOException;
     5 import java.io.InputStreamReader;
     6 
     7 public class MyEclipseGen {
     8     private static final String LL = "Decompiling this copyrighted software is a violation of both your license agreement and the Digital Millenium Copyright Act of 1998 (http://www.loc.gov/copyright/legislation/dmca.pdf). Under section 1204 of the DMCA, penalties range up to a $500,000 fine or up to five years imprisonment for a first offense. Think about it; pay for a license, avoid prosecution, and feel better about yourself.";
     9 
    10     public String getSerial(String userId, String licenseNum) {
    11         java.util.Calendar cal = java.util.Calendar.getInstance();
    12         cal.add(13);
    13         cal.add(6-1);
    14         java.text.NumberFormat nf = new java.text.DecimalFormat("000");
    15         licenseNum = nf.format(Integer.valueOf(licenseNum));
    16         String verTime = new StringBuilder("-").append(
    17                 new java.text.SimpleDateFormat("yyMMdd").format(cal.getTime()))
    18                 .append("0").toString();
    19         String type = "YE3MP-";
    20         String need = new StringBuilder(userId.substring(01)).append(type)
    21                 .append("300").append(licenseNum).append(verTime).toString();
    22         String dx = new StringBuilder(need).append(LL).append(userId)
    23                 .toString();
    24         int suf = this.decode(dx);
    25         String code = new StringBuilder(need).append(String.valueOf(suf))
    26                 .toString();
    27         return this.change(code);
    28     }
    29 
    30     private int decode(String s) {
    31         int i;
    32         char[] ac;
    33         int j;
    34         int k;
    35         i = 0;
    36         ac = s.toCharArray();
    37         j = 0;
    38         k = ac.length;
    39         while (j < k) {
    40             i = (31 * i) + ac[j];
    41             j++;
    42         }
    43         return Math.abs(i);
    44     }
    45 
    46     private String change(String s) {
    47         byte[] abyte0;
    48         char[] ac;
    49         int i;
    50         int k;
    51         int j;
    52         abyte0 = s.getBytes();
    53         ac = new char[s.length()];
    54         i = 0;
    55         k = abyte0.length;
    56         while (i < k) {
    57             j = abyte0[i];
    58             if ((j >= 48&& (j <= 57)) {
    59                 j = (((j - 48+ 5% 10+ 48;
    60             } else if ((j >= 65&& (j <= 90)) {
    61                 j = (((j - 65+ 13% 26+ 65;
    62             } else if ((j >= 97&& (j <= 122)) {
    63                 j = (((j - 97+ 13% 26+ 97;
    64             }
    65             ac[i] = (char) j;
    66             i++;
    67         }
    68         return String.valueOf(ac);
    69     }
    70 
    71     public MyEclipseGen() {
    72         super();
    73     }
    74 
    75     public static void main(String[] args) {
    76         try {
    77             System.out.println("please input register name:");
    78             BufferedReader reader = new BufferedReader(new InputStreamReader(
    79                     System.in));
    80             String userId = null;
    81             userId = reader.readLine();
    82             MyEclipseGen myeclipsegen = new MyEclipseGen();
    83             String res = myeclipsegen.getSerial(userId, "5");
    84             System.out.println("Serial:" + res);
    85             reader.readLine();
    86         } catch (IOException ex) {
    87         }
    88     }
    89 }


    posted @ 2010-05-01 17:31 jeanx 閱讀(3969) | 評(píng)論 (1)編輯 收藏
    <c:if test="${fn:length(activityVO.activityName)>12}">
        ${fn:substring(activityVO.activityName,
    0,10)}..
    </c:if>
    <c:if test="${fn:length(activityVO.activityName)<12}">
        ${activityVO.activityName }
    </c:if>



    posted @ 2010-04-30 17:12 jeanx 閱讀(1382) | 評(píng)論 (1)編輯 收藏
    表單只有一個(gè)文本框,測(cè)試人員說(shuō),按回車鍵自動(dòng)提交了,自己試了試,果然如此。

    解決辦法:
    為輸入框增加一個(gè)onkeydown屬性, onkeydown="if(event.keyCode==13){return false;}" ,問(wèn)題解決.
    posted @ 2010-04-30 10:12 jeanx 閱讀(535) | 評(píng)論 (0)編輯 收藏
    主站蜘蛛池模板: 91免费国产自产地址入| 91视频精品全国免费观看| 亚洲男人的天堂在线va拉文| 亚洲国产精品13p| 亚洲AV无码一区二区三区DV| 国产一级淫片免费播放| 免费看香港一级毛片 | 一级毛片在线免费播放| 在线aⅴ亚洲中文字幕| 美景之屋4在线未删减免费 | 一区二区三区观看免费中文视频在线播放 | 精选影视免费在线 | 一级片在线免费看| 久久免费高清视频| 99久久免费国产精品特黄| 四虎影视在线永久免费观看| 亚洲午夜福利在线观看| 亚洲国产成人久久99精品| 亚洲天堂男人天堂| 亚洲日韩国产一区二区三区在线 | 国产不卡免费视频| 亚洲人成无码网站| 久久精品亚洲AV久久久无码| 亚洲一级毛片在线观| 菠萝菠萝蜜在线免费视频| 无码日韩精品一区二区三区免费 | 免费无码看av的网站| 亚洲精品国产成人片| 亚洲综合在线一区二区三区| 一级毛片视频免费| 在线a级毛片免费视频| 在线播放亚洲第一字幕| 日韩亚洲国产综合高清| 国产成人无码免费看片软件| 国产精品成人69XXX免费视频| AV无码免费永久在线观看| 成人性生免费视频| 国产亚洲精品a在线观看app| 亚洲午夜福利在线视频| 久久久99精品免费观看| 免费在线观看黄色毛片|