<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 :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

    2016年12月21日

    1. java zip 多個文件時,如果先添加了一個excel文件,然后再想添加其他的文件時會出現(xiàn) steam is closed的錯誤。這是因為work.write(outputSteam)后,出調(diào)用outputSteam.close(),關(guān)閉輸出流。
    解決方法:
    將原來的程序:
                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區(qū)分大小寫
    select * from table1 where binary field1 = 'abc';

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

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

    posted @ 2017-06-26 09:33 云自無心水自閑 閱讀(395) | 評論 (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,在一個窗口中同時運行數(shù)個cmd

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

    官網(wǎng)地址: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 云自無心水自閑 閱讀(401) | 評論 (0)編輯 收藏


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

    這里要注意的就是要把數(shù)組的數(shù)據(jù)類型強制轉(zhuǎn)換為Object 

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

    在windows環(huán)境中,可以用如下方法重置root密碼

    1、先停止mysql數(shù)據(jù)庫

    2、保存密碼重置sql文件
         5.7.6(包括)以后的版本:ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
         5.7.5(包括)以前的版本:SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPass');
    假設(shè)保存到文件: c:\reset.txt

    3、以管理員身份打開命令行窗口,運行
    C:\> cd "C:\Program Files\MySQL\MySQL Server 5.5\bin"
    C:\> mysqld --init-file=C:\reset.txt

    4、啟動后,還不能馬上用新密碼連接數(shù)據(jù)庫,需要重啟mysql數(shù)據(jù)庫

    posted @ 2016-12-21 07:12 云自無心水自閑 閱讀(368) | 評論 (0)編輯 收藏

    主站蜘蛛池模板: 国产亚洲福利精品一区二区| 亚洲av永久无码精品漫画| 精品国产麻豆免费网站| 女人18毛片水真多免费播放| 成年女人午夜毛片免费看| 青青久在线视频免费观看| 啦啦啦中文在线观看电视剧免费版 | 91亚洲精品视频| 亚洲一区影音先锋色资源| 久久亚洲AV成人无码软件| 亚洲欧洲日本国产| 亚洲综合校园春色| 亚洲JIZZJIZZ妇女| 日本高清不卡中文字幕免费| 国产99久久久国产精免费| 免费在线观看一区| 中文字幕在线视频免费观看| 在线涩涩免费观看国产精品| 99久久精品国产免费| 四虎最新永久免费视频| 午夜成年女人毛片免费观看| 国产jizzjizz视频免费看| 亚洲欧洲久久av| 久久精品亚洲综合专区| 亚洲码在线中文在线观看| 亚洲熟妇无码八V在线播放| 老司机午夜免费视频| xxxxx做受大片视频免费| 国产成人免费ā片在线观看老同学 | 亚洲av无码国产精品夜色午夜| 亚洲国产精品无码专区影院| 久久亚洲私人国产精品vA| 中文字幕在线观看亚洲视频| 黄页网址在线免费观看| 国产一区二区免费视频| 国产免费AV片在线播放唯爱网| 四虎影库久免费视频| 亚洲成AV人片在| 亚洲中文字幕无码av永久| 一级做a爰片久久毛片免费陪 | 国产不卡免费视频|