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

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

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

    paulwong

    #

    JFrame+Spring學習

         摘要: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->package com.paul.ui; import java.awt.BorderLayout; import java.awt.Container;...  閱讀全文

    posted @ 2013-03-24 17:33 paulwong 閱讀(1040) | 評論 (0)編輯 收藏

    JSOUP資源

    網(wǎng)頁解釋用的。

    http://my.oschina.net/dfsfsdf/blog/116279

    posted @ 2013-03-24 11:46 paulwong 閱讀(365) | 評論 (0)編輯 收藏

    JAVA bt 客戶端資源

    查找PEERS:
    http://stackoverflow.com/questions/2865868/how-to-know-the-number-of-seeds-peers-for-a-torrent-in-php

    https://wiki.theory.org/BitTorrentSpecification#Tracker_.27scrape.27_Convention


    http://stackoverflow.com/questions/944530/java-bittorrent-library

    http://code.google.com/p/libtorrent-java/

    http://gxz1989611.iteye.com/blog/1560337

    posted @ 2013-03-20 13:07 paulwong 閱讀(339) | 評論 (0)編輯 收藏

    端口掃描程序2

    http://baike.baidu.com/view/3930.htm

    公有IP段:
    A類IP地址 地址范圍1.0.0.1-126.255.255.254
    B類IP地址地址范圍128.0.0.1-191.255.255.254
    C類IP地址范圍192.0.0.1-223.255.255.255


    私有IP段:
    A類 10.     0.0.0 --   10.255.255.255
    B類 172.  16.0.0 -- 172.  31.255.255
    C類 192.168.0.0 -- 192.168.255.255

    正則表達式(JAVA版):
    (^127\\.0\\.0\\.1)|
    (^10\\..*)|
    (^172\\.1[6-9]\\..*)|
    (^172\\.2[0-9]\\..*)|(^172\\.3[0-1]\\..*)|
    (^192\\.168\\..*)

    掃描程序:
    http://stackoverflow.com/questions/13985269/how-to-synchronize-my-port-scanner-so-results-would-appear-in-order-in-which-the

    posted @ 2013-03-18 22:58 paulwong 閱讀(269) | 評論 (0)編輯 收藏

    JDK1.5中的線程池ThreadPoolExecutor和JMS的區(qū)別

    相同點:
    都是使用到QUEUE。


    不同點:
    JMS的QUEUE中放的是數(shù)據(jù),也即是當數(shù)據(jù)來的時候還要去調(diào)用其他代碼去執(zhí)行
    ThreadPoolExecutor的QUEUE中放的是TASK,也即是有數(shù)據(jù)和可執(zhí)行的代碼,直接被線程池執(zhí)行了。

    書籍:
    http://prefiles.com/hexwk242mjt2/Addison.Wesley.Java.Concurrency.in.Practice.May.2006.rar

    posted @ 2013-03-17 12:53 paulwong 閱讀(402) | 評論 (0)編輯 收藏

    JeeSite 企業(yè)信息管理系統(tǒng)基礎框架

    使用技術
    1、Services相關

    Core Framework:Spring Framework 3.2。
    Security Framework:Apache Shiro 1.2。


    2、Web相關

    MVC Framework:SpringMVC 3.2。
    Layout Decoration:SiteMesh 2.4。
    JavaScript Library:JQuery 1.9。
    CSS Framework:Twitter Bootstrap 2.0.4。
    JavaScript/CSS Compressor:YUI Compressor 2.4。
    Front Validation:JQuery Validation Plugin 1.11。


    3、Database相關

    ORM Framework:Spring-Data-JPA 1.3、Hibernate 4.1。
    Connection Pool:BoneCP 0.7
    Bean Validation:Hibernate Validation 4.3.0。
    Cache:Ehcache 2.6。


    4、Tools 相關

    Commons:Apache Commons
    JSON Mapper:Jackson 2.1
    Bean Mapper:Dozer 5.3.2
    Full-text search:Hibernate Search 4.2(Apache Lucene 3.6)、IK Analyzer 2012_u6中文分詞
    Log Manager:Log4j 1.2


    http://thinkgem.github.com/jeesite/

    https://github.com/thinkgem/jeesite

    posted @ 2013-03-17 12:29 paulwong 閱讀(1959) | 評論 (0)編輯 收藏

    hadoop集群中添加節(jié)點步驟

    在新節(jié)點安裝好hadoop


    把namenode的有關配置文件復制到該節(jié)點


    修改masters和slaves文件,增加該節(jié)點


    設置ssh免密碼進出該節(jié)點


    單獨啟動該節(jié)點上的datanode和tasktracker(hadoop-daemon.sh start datanode/tasktracker)


    運行start-balancer.sh進行數(shù)據(jù)負載均衡


    負載均衡:作用:當節(jié)點出現(xiàn)故障,或新增加節(jié)點時,數(shù)據(jù)塊分布可能不均勻,負載均衡可以重新平衡各個datanode上數(shù)據(jù)塊的分布

    posted @ 2013-03-16 23:04 paulwong 閱讀(421) | 評論 (0)編輯 收藏

    端口掃描程序

    If you need 200ms for each of the 65536 ports (in the worst case, a firewall is blocking everything, thus making you hit your timeout for every single port), the maths is pretty simple: you need 13k seconds, or about 3 hours and a half.

    You have 2 (non-exclusive) options to make it faster:
    • reduce your timeout
    • paralellize your code
    Since the operation is I/O bound (in contrast to CPU bound -- that is, you spend time waiting for I/O, and not for some huge calculation to complete), you can use many, many threads. Try starting with 20. They would divide the 3 hours and a half among them, so the maximum expected time is about 10 minutes. Just remember that this will put pressure on the other side, ie, the scanned host will see huge network activity with "unreasonable" or "strange" patterns, making the scan extremely easy to detect.

    The easiest way (ie, with minimal changes) is to use the ExecutorService and Future APIs: @import url(http://www.tkk7.com/CuteSoft_Client/CuteEditor/Load.ashx?type=style&file=SyntaxHighlighter.css);@import url(/css/cuteeditor.css);

    public static Future<Boolean> portIsOpen(final ExecutorService es, final String ip, final int port, final int timeout) {
      return es.submit(new Callable<Boolean>() {
          @Override public Boolean call() {
            try {
              Socket socket = new Socket();
              socket.connect(new InetSocketAddress(ip, port), timeout);
              socket.close();
              return true;
            } catch (Exception ex) {
              return false;
            }
          }
       });
    }


    Then, you can do something like:

    public static void main(final String args) {
      final ExecutorService es = Executors.newFixedThreadPool(20);
      final String ip = "127.0.0.1";
      final int timeout = 200;
      final List<Future<Boolean>> futures = new ArrayList<>();
      for (int port = 1; port <= 65535; port++) {
        futures.add(portIsOpen(es, ip, port, timeout));
      }
      es.shutdown();
      int openPorts = 0;
      for (final Future<Boolean> f : futures) {
        if (f.get()) {
          openPorts++;
        }
      }
      System.out.println("There are " + openPorts + " open ports on host " + ip + " (probed with a timeout of " + timeout + "ms)");
    }


    If you need to know which ports are open (and not just how many, as in the above example), you'd need to change the return type of the function to Future<SomethingElse>, where SomethingElse would hold the port and the result of the scan, something like:

    public final class ScanResult {
      private final int port;
      private final boolean isOpen;
      // constructor
      
    // getters
    }


    Then, change Boolean to ScanResult in the first snippet, and return new ScanResult(port, true) or new ScanResult(port, false) instead of just true or false





    posted @ 2013-03-14 10:10 paulwong 閱讀(382) | 評論 (0)編輯 收藏

    Project management

     

    Exercise 1  Web site Development

    Using Microsoft Project  2007 (can be downloaded from internet)

    A nonprofit organization would like to lead a website development project. The organization has internet access that includes space on a web server, but no experience in developing websites. In addition to creating its website, the organization would like you to train two people on its staff to do simple web page updates. The website should include the following information, as a minimum: description of the organization (mission, history, and recent events), list of services, and contact information. the organization wants the website to include graphics( photographs and other images) and have an attractive, easy way to use layout.

     

    1- Project Scope Management: create a WBS for this project and enter the tasks in project 2007. Create milestones and summary tasks. Assume that some of the project management tasks are similar to tasks from the project tracking database project. some of the specific anaylsis, design, and implementation tasks will do:

    a) collect information on the organization in hardcopy and digital form( brochures, reports, organization charts)

    b) research web site of similar organization

    c) collect detailed information about customer's design preferences

    d) develop a template for the customer to review (background color of pages, layout of text)

    e) create a site map or hierarchy chart showing the flow of website

    2- Project Time Management:

    a) enter realistic duration for each task, and then link the tasks

    b) do Gantt Chart view and Network Diagram View  for the project

    c) do schedule table to see key dates and slack times for each task.

     

     

     

     

    3- Project Cost Management

    a) assume you have three people working on project and each of them would charge $20 per hour. Enter this information in the Resource Sheet.

    b) estimate that each person will spend an average of about five hours per week for the four month period. Assign resources to the tasks, and try to make the final cost in line with this estimate

    c) do a budget report for your project

    4- Project Human Resource Management

    a) assume that one project team member will be unavailable due to vacation for two weeks in the middle of the project. Make adjustments to accommodate this vacation so that the schedule does not slip and the costs do not change. Document the changes from the original plan and the new plan.

    b) use the Resource Usage view to see each person's work each month. Print a copy of the Resource Usage view.

    5- Project Communications Management

    a) do a Gantt chart for this project. use a time scale that enables that chart to fit on one page. and the copy and paste it to PowerPoint

    b) do a TO DO LIST report for each team member

    c) Create a WHO DOES WHAT REPORT

     

     

    ** Write a two page single spaced paper summarizing what do you think about Microsoft Project. What do you like and What do you dislike about it. Do you think it would be useful for managing all project or just some and which ones.

     

     

    posted @ 2013-03-10 18:16 paulwong 閱讀(387) | 評論 (0)編輯 收藏

    Httpclient資源

    http://www.cnblogs.com/wasp520/archive/2012/06/28/2568897.html


    http://rensanning.iteye.com/blog/1550436


    http://blog.csdn.net/madding/article/details/7638807


    抓來的內(nèi)容當然要提取了:

    http://www.oschina.net/p/jsoup

    http://www.oschina.net/p/htmlparser

    http://www.open-open.com/jsoup/

    posted @ 2013-03-01 18:11 paulwong 閱讀(490) | 評論 (0)編輯 收藏

    僅列出標題
    共115頁: First 上一頁 69 70 71 72 73 74 75 76 77 下一頁 Last 
    主站蜘蛛池模板: 亚洲熟妇无码爱v在线观看| 国产精品亚洲四区在线观看| 亚洲娇小性xxxx| 人成免费在线视频| 99re免费在线视频| 又粗又硬又大又爽免费视频播放| 精品亚洲永久免费精品| 中文字幕乱码亚洲精品一区| 手机看片国产免费永久| 女人18特级一级毛片免费视频| 亚洲国产精品无码专区| 亚洲GV天堂无码男同在线观看| 久久精品视频免费| 免费在线观看亚洲| 亚洲国产精品综合福利专区| EEUSS影院WWW在线观看免费| 最近免费中文字幕视频高清在线看| 国产美女亚洲精品久久久综合| 亚洲熟妇AV日韩熟妇在线| 在线观看肉片AV网站免费| 日韩在线a视频免费播放| 亚洲尹人九九大色香蕉网站| 免费人成视频在线观看免费| 免费在线看v网址| 国产A在亚洲线播放| 精品女同一区二区三区免费播放| 国产成人免费在线| 亚洲欧洲精品无码AV| AV激情亚洲男人的天堂国语| 国产精品视频免费| 久久亚洲国产欧洲精品一| 国产精品亚洲小说专区| 无码国产精品一区二区免费式影视| 亚洲人成网7777777国产| 春暖花开亚洲性无区一区二区 | 国产精品美女午夜爽爽爽免费| 亚洲精品无码乱码成人| 精品女同一区二区三区免费播放| 两个人的视频高清在线观看免费| 亚洲综合久久综合激情久久| 久久www免费人成精品香蕉|