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

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

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

    云自無心水自閑

    天平山上白云泉,云自無心水自閑。何必奔沖山下去,更添波浪向人間!
    posts - 288, comments - 524, trackbacks - 0, articles - 6
      BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

    2016年12月29日

    1. java zip 多個文件時,如果先添加了一個excel文件,然后再想添加其他的文件時會出現 steam is closed的錯誤。這是因為work.write(outputSteam)后,出調用outputSteam.close(),關閉輸出流。
    解決方法:
    將原來的程序:
                ZipEntry entry = new ZipEntry( "file3.txt" );
                zos.putNextEntry( entry );
                workbook.write( zos );
                zos.closeEntry();
    改為:
                ZipEntry entry = new ZipEntry( "file3.txt" );
                zos.putNextEntry( entry );
                workbook.write( new NonCloseableOutputStream( zos ) );
                zos.closeEntry();

    其中 NonCloseableOutputStream 定義如下:
    public class NonCloseableOutputStream extends java.io.FilterOutputStream {
        public NonCloseableOutputStream(OutputStream out) {
            super(out);
        }
        @Override public void close() throws IOException {
            flush();
        }
    }



    2. 使用binary使得mysql區分大小寫
    select * from table1 where binary field1 = 'abc';

    posted @ 2017-08-09 19:52 云自無心水自閑 閱讀(428) | 評論 (0)編輯 收藏

    https://notepad-plus-plus.org/community/topic/13661/plugin-manager-x64-available-submit-your-plugins

    posted @ 2017-06-26 09:33 云自無心水自閑 閱讀(396) | 評論 (0)編輯 收藏

    move Git Server to a new IP/URL:

    you can just edit 
    .git/config and change the URLs there

    也可以在git視圖中,右鍵點擊項目,選擇屬性,然后修改url中的地址

    posted @ 2017-06-15 08:40 云自無心水自閑 閱讀(318) | 評論 (0)編輯 收藏

    autohotkey
    listary
    cmder可以split screen,在一個窗口中同時運行數個cmd

    posted @ 2017-05-24 07:13 云自無心水自閑 閱讀(17851) | 評論 (0)編輯 收藏

    官網地址:autohotkey.com

    ; fill password
    ^Numpad2::
    Send, root{tab}root{enter}
    Return
    ^Numpad3::
    IfWinExist, ahk_exe OUTLOOK.EXE
    {
        WinActivate ahk_exe OUTLOOK.EXE ; Automatically uses the window found above.
        ; WinMaximize  ; same
        ;Send, Some text.{Enter}
    msgbox Outlook is running.
    }
    Return

    posted @ 2017-03-08 13:06 云自無心水自閑 閱讀(366) | 評論 (0)編輯 收藏

    <html>
    <head>
        <script src="https://unpkg.com/vue/dist/vue.js"></script>
        <script>
            window.onload = function () {
                var app = new Vue({
                    el: '#app',
                    data: {
                        message: 'Hello Vue!'
                    }
                });
            }    
        </script>
    </head>

    <body>
        <div id="app">
          {{ message }}
        </div>
    </body>
    </html>

    posted @ 2017-02-09 07:41 云自無心水自閑 閱讀(402) | 評論 (0)編輯 收藏


    String[] splits=someString.split("a,b,c,d", ",");
    logger.debug( "array: {}", (Object) splits );

    這里要注意的就是要把數組的數據類型強制轉換為Object 

    posted @ 2016-12-29 11:51 云自無心水自閑 閱讀(1619) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 中文字幕在线观看亚洲视频| 亚洲国产美女视频| 美女免费视频一区二区| 天天摸夜夜摸成人免费视频 | 亚洲国产精品成人AV无码久久综合影院| 亚洲成人免费在线观看| 日本免费xxxx色视频| 亚洲精品亚洲人成在线麻豆| 97久久免费视频| 亚洲国产高清美女在线观看| 精品国产污污免费网站aⅴ| 亚洲高清资源在线观看| 黄页免费的网站勿入免费直接进入| 亚洲国产精品久久久久秋霞影院| 毛片免费全部播放无码| 久久狠狠爱亚洲综合影院| 国产精品视频免费一区二区| 亚洲成aⅴ人片久青草影院按摩| 日本免费电影一区| WWW免费视频在线观看播放| 亚洲大成色www永久网站| 777成影片免费观看| 亚洲日本天堂在线| 亚洲 无码 在线 专区| 青柠影视在线观看免费| 亚洲性天天干天天摸| 久久99九九国产免费看小说| 亚洲a∨国产av综合av下载| 亚洲男人在线无码视频| 免费人成在线观看网站| 亚洲黄页网在线观看| 青青青国产色视频在线观看国产亚洲欧洲国产综合 | 免免费国产AAAAA片| 国产亚洲欧美日韩亚洲中文色| 亚洲精品一级无码中文字幕| 国产精品免费一区二区三区四区| 亚洲同性男gay网站在线观看| 日韩高清免费在线观看| 97在线视频免费公开视频| 亚洲一级大黄大色毛片| 亚洲精品尤物yw在线影院|