<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天海翼| 两个人看www免费视频| 亚洲一区日韩高清中文字幕亚洲| 精品久久久久亚洲| 免费永久国产在线视频| 色屁屁www影院免费观看视频| 国产午夜鲁丝片AV无码免费| 免费播放美女一级毛片| 亚洲第一区在线观看| 国产免费人成视频尤勿视频| 亚洲五月综合缴情在线观看| 国产免费AV片在线观看| 亚洲嫩模在线观看| 久久久久久国产a免费观看黄色大片| 亚洲中文无码av永久| 男女啪啪永久免费观看网站| 色一情一乱一伦一视频免费看| 免费大黄网站在线看| 中国一级全黄的免费观看| 亚洲人成电影亚洲人成9999网| 99在线精品免费视频九九视| 色婷婷六月亚洲综合香蕉| 亚洲中文字幕日产乱码高清app| 国产成年无码久久久免费| 亚洲乱码卡三乱码新区| 在线观看91精品国产不卡免费| 国产日韩在线视频免费播放| 91亚洲精品视频| 日本一区二区三区日本免费| 毛片基地看看成人免费| 亚洲午夜国产精品无卡| 亚洲AV永久无码精品一区二区国产| 热99RE久久精品这里都是精品免费| 亚洲国产精品成人精品小说| 免费国产成人午夜私人影视| 欧洲人免费视频网站在线| 亚洲性无码一区二区三区| 伊人婷婷综合缴情亚洲五月| 国产免费不卡视频| 中文字幕在线免费视频|