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

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

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

    2009年11月5日

    世界十大最糟糕網(wǎng)站設(shè)計(jì)(中文翻譯)

         摘要: 你曾經(jīng)打開過真正設(shè)計(jì)糟糕的網(wǎng)站,糟到你都覺得是自己手太賤么?我就非常“幸運(yùn)”能看到一坨這種震撼人心的網(wǎng)站。下面這些是這些糟糕網(wǎng)站中最糟糕的。
    如果你是一個(gè)網(wǎng)頁設(shè)計(jì)師,趕快行動(dòng)起來吧,趕緊給他們發(fā)郵件提供服務(wù)。
    如果你的網(wǎng)站不幸在這個(gè)名單中,也別覺得窩心,不過您最好還是考慮考慮重新設(shè)計(jì)一下網(wǎng)站比較好。。。  閱讀全文

    posted @ 2009-11-21 03:04 甜菜侯爵 閱讀(2211) | 評(píng)論 (3)編輯 收藏

    世界十大最糟糕網(wǎng)頁設(shè)計(jì)

    鏈接如下:

    先放這里,現(xiàn)在沒有時(shí)間,等有空了把原文翻譯了貼過來。
    寫得還是蠻有意思的。http://www.blogstorm.co.uk/blog/top-10-worst-websites/

    posted @ 2009-11-17 01:18 甜菜侯爵 閱讀(262) | 評(píng)論 (0)編輯 收藏

    用正則表達(dá)式取出去除html頁面中的tags

    這個(gè)就比較簡(jiǎn)單了,正則式是 “<[^>]*>”,其表意為“以<開頭的,后續(xù)任意個(gè)不為>的字符,并以>結(jié)尾的字符串”
    這樣做的目的是為了獲得所謂plain的文本,方便下一步的處理。

    代碼如下:

    1    /**
    2     * Remove all "<>" tags in the text
    3     * @param tagText
    4     * @return the clean text without tags
    5     */

    6    public String removeTags( String tagText )
    7    {
    8        return tagText.replaceAll("<[^>]*>""");
    9    }

    posted @ 2009-11-06 22:19 甜菜侯爵 閱讀(197) | 評(píng)論 (0)編輯 收藏

    用正則表達(dá)式提取網(wǎng)頁中的鏈接

    個(gè)人感覺效率肯定還能進(jìn)一步提高。。。。
    不過實(shí)在是對(duì)正則不是太熟悉,只好暫時(shí)這樣了。

    代碼如下:

     1    /** The regex for search link with the tag "a" */
     2    private final String A_REGEX = "<a.*?/a>";
     3    /** The regex for search url with the tag "href" */
     4    private final String HREF_REGEX = "href=\".*?\"";
     5    /** The pattern for linke with the tag "a" */
     6    private final Pattern A_PATTERN = Pattern.compile(A_REGEX);
     7    /** The pattern for url with the tag "href" */
     8    private final Pattern HREF_PATTERN = Pattern.compile(HREF_REGEX);
     9    /**
    10     * Get url address from the url and the content of the url
    11     * @param url the url need to be get links
    12     * @param content the content of the given url
    13     * @return a list with the url address of the links
    14     */

    15    public List<String> getLinkList( URL url, String content )
    16    {
    17        List<String> linkList = new LinkedList<String>();
    18        final Matcher a_matcher = A_PATTERN.matcher(content);
    19        while (a_matcher.find()) 
    20        {
    21            //JUST FOR TEST!
    22//            System.out.println(a_matcher.group());
    23            //get url address
    24            final Matcher myurl = HREF_PATTERN.matcher(a_matcher.group());
    25            while (myurl.find())
    26            {
    27                String urlAddress = myurl.group().replaceAll("href=|>|\"|\"""");
    28                if( urlAddress.startsWith("http") )
    29                {
    30                    linkList.add(urlAddress);
    31                }

    32                else if( urlAddress.startsWith("/"|| urlAddress.startsWith("\\") )
    33                {
    34                    linkList.add(url.getPath()+urlAddress);
    35                }

    36                else
    37                {
    38                    String fullUrl = url.toString();
    39                    //the length of the url without the current page
    40                    int lastSlash = fullUrl.lastIndexOf("/"+ 1;
    41                    linkList.add(fullUrl.substring(0,lastSlash) + urlAddress);
    42                }

    43            }

    44        }

    45        return linkList;
    46    }

    posted @ 2009-11-05 03:00 甜菜侯爵 閱讀(449) | 評(píng)論 (0)編輯 收藏

    <2009年11月>
    25262728293031
    1234567
    891011121314
    15161718192021
    22232425262728
    293012345

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿

    隨筆檔案

    搜索

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    主站蜘蛛池模板: 亚洲精品自在在线观看| 国产一级婬片A视频免费观看| 亚洲AV无码专区在线播放中文| 国内一级一级毛片a免费| 日本免费中文字幕| yellow免费网站| 国产人成亚洲第一网站在线播放| 亚洲国产老鸭窝一区二区三区| 亚洲免费在线观看| 免费无码黄动漫在线观看| 18禁美女黄网站色大片免费观看 | 中文字幕无码毛片免费看| 国产成人综合亚洲| 亚洲精品9999久久久久无码| 亚洲大香人伊一本线| 亚洲成a人片77777kkkk| 亚洲成片观看四虎永久| 国产美女无遮挡免费网站| 无限动漫网在线观看免费| 59pao成国产成视频永久免费 | 日韩免费视频播播| 国拍在线精品视频免费观看| 99在线视频免费| 日韩电影免费观看| 免费观看成人久久网免费观看| 福利免费在线观看| 久久嫩草影院免费看夜色| 美女视频黄频a免费| 久久精品国产亚洲AV天海翼| 亚洲人成电影网站免费| 亚洲中文字幕无码爆乳app| 亚洲综合色一区二区三区| 亚洲综合伊人制服丝袜美腿| 99热亚洲色精品国产88| 国产成人精品亚洲日本在线| 亚洲午夜一区二区三区| 亚洲永久网址在线观看| 亚洲精品无码日韩国产不卡av| 亚洲乱码国产乱码精华| 亚洲人成电影网站色www| 色偷偷亚洲第一综合网|