blogjava-凯发k8网页登录

blogjava-凯发k8网页登录http://www.blogjava.net/usherlight/天平山上白云泉,云自无心水自闲。何必奔冲山下去,更添波浪向人间!zh-cnsat, 08 apr 2023 20:36:48 gmtsat, 08 apr 2023 20:36:48 gmt60记录备忘http://www.blogjava.net/usherlight/archive/2017/08/09/432731.html云自无心水自闲云自无心水自闲wed, 09 aug 2017 11:52:00 gmthttp://www.blogjava.net/usherlight/archive/2017/08/09/432731.htmlhttp://www.blogjava.net/usherlight/comments/432731.htmlhttp://www.blogjava.net/usherlight/archive/2017/08/09/432731.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432731.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432731.html解决方法:
将原来的程序:
            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';

云自无心水自闲 2017-08-09 19:52 发表评论
]]>
plugin manage for 64 bit notepadd http://www.blogjava.net/usherlight/archive/2017/06/26/432623.html云自无心水自闲云自无心水自闲mon, 26 jun 2017 01:33:00 gmthttp://www.blogjava.net/usherlight/archive/2017/06/26/432623.htmlhttp://www.blogjava.net/usherlight/comments/432623.htmlhttp://www.blogjava.net/usherlight/archive/2017/06/26/432623.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432623.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432623.htmlhttps://notepad-plus-plus.org/community/topic/13661/plugin-manager-x64-available-submit-your-plugins

云自无心水自闲 2017-06-26 09:33 发表评论
]]>
remote git server migrationhttp://www.blogjava.net/usherlight/archive/2017/06/15/432602.html云自无心水自闲云自无心水自闲thu, 15 jun 2017 00:40:00 gmthttp://www.blogjava.net/usherlight/archive/2017/06/15/432602.htmlhttp://www.blogjava.net/usherlight/comments/432602.htmlhttp://www.blogjava.net/usherlight/archive/2017/06/15/432602.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432602.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432602.htmlmove git server to a new ip/url:

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

也可以在git视图中,右键点击项目,选择属性,然后修改url中的地址


云自无心水自闲 2017-06-15 08:40 发表评论
]]>
一些小工具http://www.blogjava.net/usherlight/archive/2017/05/24/432545.html云自无心水自闲云自无心水自闲tue, 23 may 2017 23:13:00 gmthttp://www.blogjava.net/usherlight/archive/2017/05/24/432545.htmlhttp://www.blogjava.net/usherlight/comments/432545.htmlhttp://www.blogjava.net/usherlight/archive/2017/05/24/432545.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432545.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432545.htmllistary
cmder可以split screen,在一个窗口中同时运行数个cmd

云自无心水自闲 2017-05-24 07:13 发表评论
]]>
一个好用的小工具autohotkeyhttp://www.blogjava.net/usherlight/archive/2017/03/08/432367.html云自无心水自闲云自无心水自闲wed, 08 mar 2017 05:06:00 gmthttp://www.blogjava.net/usherlight/archive/2017/03/08/432367.htmlhttp://www.blogjava.net/usherlight/comments/432367.htmlhttp://www.blogjava.net/usherlight/archive/2017/03/08/432367.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432367.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432367.html
; 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


云自无心水自闲 2017-03-08 13:06 发表评论
]]>
first vue.js html pagehttp://www.blogjava.net/usherlight/archive/2017/02/09/432293.html云自无心水自闲云自无心水自闲wed, 08 feb 2017 23:41:00 gmthttp://www.blogjava.net/usherlight/archive/2017/02/09/432293.htmlhttp://www.blogjava.net/usherlight/comments/432293.htmlhttp://www.blogjava.net/usherlight/archive/2017/02/09/432293.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432293.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432293.html

    
    



    

      {{ message }}
    




云自无心水自闲 2017-02-09 07:41 发表评论
]]>
slf4j 打印数组http://www.blogjava.net/usherlight/archive/2016/12/29/432213.html云自无心水自闲云自无心水自闲thu, 29 dec 2016 03:51:00 gmthttp://www.blogjava.net/usherlight/archive/2016/12/29/432213.htmlhttp://www.blogjava.net/usherlight/comments/432213.htmlhttp://www.blogjava.net/usherlight/archive/2016/12/29/432213.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432213.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432213.html
string[] splits=somestring.split("a,b,c,d", ",");
logger.debug( "array: {}", (object) splits );

这里要注意的就是要把数组的数据类型强制转换为object 

云自无心水自闲 2016-12-29 11:51 发表评论
]]>
mysql遗忘root密码http://www.blogjava.net/usherlight/archive/2016/12/21/432160.html云自无心水自闲云自无心水自闲tue, 20 dec 2016 23:12:00 gmthttp://www.blogjava.net/usherlight/archive/2016/12/21/432160.htmlhttp://www.blogjava.net/usherlight/comments/432160.htmlhttp://www.blogjava.net/usherlight/archive/2016/12/21/432160.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432160.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432160.html
1、先停止mysql数据库

2、保存密码重置sql文件
     5.7.6(包括)以后的版本:alter user 'root'@'localhost' identified by 'mynewpass';
     5.7.5(包括)以前的版本:set password for 'root'@'localhost' = password('mynewpass');
假设保存到文件: c:\reset.txt

3、以管理员身份打开命令行窗口,运行
c:\> cd "c:\program files\mysql\mysql server 5.5\bin"
c:\> mysqld --init-file=c:\reset.txt

4、启动后,还不能马上用新密码连接数据库,需要重启mysql数据库


云自无心水自闲 2016-12-21 07:12 发表评论
]]>
eclipse启动时update indexes很慢http://www.blogjava.net/usherlight/archive/2016/11/29/432021.html云自无心水自闲云自无心水自闲tue, 29 nov 2016 00:38:00 gmthttp://www.blogjava.net/usherlight/archive/2016/11/29/432021.htmlhttp://www.blogjava.net/usherlight/comments/432021.htmlhttp://www.blogjava.net/usherlight/archive/2016/11/29/432021.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432021.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432021.htmlthis is a general step that happens when m2e/m2eclipse (maven integration for eclipse) is installed, whether projects are actively using it or not.
这是因为m2eclipse(maven插件)要在启动时需要进行的一个步骤。

this step can be disabled through the eclipse preferences: window / preferences / maven / "download repository index updates on startup". this option is on the main "maven" preference page (not a child page). just uncheck the box to prevent this from happening.
我们可以停止这个动作。方法:windows -> preferences -> maven 取消勾选 download repository index updates on startup



云自无心水自闲 2016-11-29 08:38 发表评论
]]>
从pdf文件中提取文本http://www.blogjava.net/usherlight/archive/2016/11/28/432019.html云自无心水自闲云自无心水自闲mon, 28 nov 2016 03:03:00 gmthttp://www.blogjava.net/usherlight/archive/2016/11/28/432019.htmlhttp://www.blogjava.net/usherlight/comments/432019.htmlhttp://www.blogjava.net/usherlight/archive/2016/11/28/432019.html#feedback0http://www.blogjava.net/usherlight/comments/commentrss/432019.htmlhttp://www.blogjava.net/usherlight/services/trackbacks/432019.html
我的做法是使用pdfclown来进行这项工作。官方网站是:https://pdfclown.org/ 先下载其最新版本。
参考其示例代码:https://pdfclown.org/2010/01/02/upcoming-0-0-8-whats-going-to-be-new/#more-30

使用这段代码,我们不仅可以得到文本的字符串,还能得到文本的页数和相对坐标。
我的思路是先把所有文本的字符串和坐标提取出来。然后排序,排序的顺序是纵坐标,然后横坐标。
这样排序完毕后,就能比较好的解决文本格式问题。

云自无心水自闲 2016-11-28 11:03 发表评论
]]>
网站地图