记录精彩的程序人生
存档:
2019 年 12 月 (12)
原因 有时候想要将Linux服务器上的东西下载下来,于是在网上到处找教程,后来发现了一篇还不错的文章,正好我用的也是putty,就讲一下如何使用putty自带的pscp来完成下载吧。 使用工具 putty:因为我的Linux远程连接工具使用的就是putty,所以就不用再去安装putty了 Linux服务器:腾讯云 centos7,使用的是云服务器的话首先要记得配置安全组放通一些端口 过程 1、使用win+R键打开命令运行,然后输入cmd 2、使用cd命令进入你的putty安装路径 3、然后输入“pscp”然后回车 4、输入命令“pscp root@0.0.0.0/test.txt E://” 4.1、root指的是你要使用哪个用户登录你的服务器 4.2、0.0.0.0换成你自己的服务器的IP 4.3、text.txt换成你自己的文件在服务器上的路径, E://换成你自己想要保存在Windows上的路径 作者:Yznx_请叫我小哥 链接:https://www.jianshu.com/p/98f1aba9fd2e 来源:简书 著作权归作者所有。商业转载请联系作者获得授权,....
基于openfire 服务和smack 搭建即时通讯项目 下面是我在本地搭建的open fire,非常简单。 点击下载open fire服务,和spark客户端,安装过程也非常的傻瓜,就不在这里说明了,如果遇到问题欢迎留言。 局域网内实现通讯,需要更改 host 文件 :C:\Windows\System32\drivers\etc\host, #localOpenfire(IP + 空格 + 域名)192.168.4.123 openfire.im.hexl。具体如何在spark中配置自行百度。 spark 配置参数 下面是Android端的demo,具体实现包括源码地址会在之后的博客中给出。 连接、注册、登录 开启连接 首先需要导入smack相关jar包,篇尾会给出,至于源码会在该系列的博客最后一篇给出来,如果有问题欢迎大家留言 打开连接相关API 1、XMPPTCPConnection 2、XMPPTCPConnectionConfiguration 在开启连接时用到的就是以上两个api,下面看下如何去创建,通过查看源码我们发现创建XMPPTCPConnect....
最近在使用Spingboot做项目的时候,在引入shiro后,启动项目一直报错 Error creating bean with name 'debtServiceImpl': Bean with name 'debtServiceImpl' has been injected into other beans [repayBillServiceImpl,investServiceImpl,receiveBillServiceImpl] in its raw version as part of a circular reference, but has eventually been wrapped. This means that said other beans do not use the final version of the bean. This is often the result of over-eager type matching - consider using 'getBeanNamesOfType' with the 'allowEagerInit' fl....
java.util.logging.Logger使用详解 一、创建Logger对象 // 为指定子系统查找或创建一个 logger。 static Logger getLogger(String name) // 为指定子系统查找或创建一个 logger。 static Logger getLogger(String name, String resourceBundleName) 注意:name是Logger的名称,当名称相同时候,同一个名称的Logger只创建一个。 二、Logger的级别 比log4j的级别详细,全部定义在java.util.logging.Level里面。 各级别按降序排列如下: SEVERE(最高值) WARNING INFO CONFIG FINE FINER FINEST(最低值) 此外,还有一个级别 OFF,可用来关闭日志记录,使用级别 ALL 启用所有消息的日志记录。 logger默认的级别是INFO,比INFO更低的日志将不显示。 Logger的默认级别定义是在jre安装目录的lib下面。 # Limit the message that ar....
Quantitative Trading - How to Build Your Own Algorithmic Trading Business 这是一本由www.epchan.com的创始人Ernest P. Chan撰写的量化投资理论的matlab技术实现的巨著,之中的很多观点非常新颖,他的量化投资策略在近些年的金融及债务危机中获得了十分优良的收益。值得技术开发者作为知识扩充储备来阅读。 Algorithmic Trading Winning Strategies and Their Rationale Ernie’s second book Algorithmic Trading: Winning Strategies and Their Rationale is an in-depth study of two types of strategies: mean reverting and momentum. It delves into the reasons certain markets display either mean reversion or momentum....
package com.stt.dateChange; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * * @author zengms * @date 2012-12-27 * */ public class DateUtils { private static final Log logger = LogFactory.getLog(DateUtils.class); public static final String YYYYMMDD = "yyyy-MM-dd"; public static final String YYYYMMDD_ZH = "yyyy年MM月dd日"; public static final int FIRST_DAY_OF_WEEK = Calendar....
Since the resolution of issue 92570, it is possible to show a modal dialog after the appearance of an application's splash screen, but before the appearance of an application's main window. And what would one want to put there? A login screen, of course. With this enhancement, it is possible to integrate some level of authentication into your NetBeans Platform application. The specific method in question here is DialogDisplayer.notifyLater, which can now also be called before the main window is ....
详解Github的.gitignore忽略文件+.gitignore不生效解决方案+生产配置大奉送 Git中有一个非常重要的一个文件-----.gitignore 今天给大家免费送一个.gitignore忽略文件配置清单。 大家一定要养成在项目开始就创建.gitignore文件的习惯,否则一旦push,处理起来会非常麻烦。 ============华丽的分割线============ 当然如果已经push了怎么办?当然也有解决方法,如下: 有时候在项目开发过程中,突然心血来潮想把某些目录或文件加入忽略规则,按照上述方法定义后发现并未生效,原因是.gitignore只能忽略那些原来没有被track的文件,如果某些文件已经被纳入了版本管理中,则修改.gitignore是无效的。那么解决方法就是先把本地缓存删除(改变成未track状态),然后再提交: --cached 后面 有个点 git rm -r --cached . git add . git commit -m "update .gitignore" ============华丽的分割线============ https:/....
NetBeans Platform Login Tutorial This tutorial demonstrates how to create a login form for a NetBeans Platform application with very simple user and password management. The login will be implemented with the DialogDisplayer class of the NetBeans APIs. The dialog that you create in this tutorial will be visible whenever the user starts the application. The passwords and usernames will be stored in a preferences file, which is not very safe. Therefore, this tutorial will provide a solution to enc....
Customize Netbeans Platform Splash Screen and About Dialog October 18th, 2007 | by Tonny Kohar | During development of our product Sketsa SVG Editor, we need to customize the default Netbeans Platform About Dialog and splash screen as part our product branding. Note: this is tested on Netbeans IDE 6-beta1 Customize the Splash Screen Create the image using any image editor application to suit your particular branding. If you want to have single image for both splash and about dialog, please mak....
https://dzone.com/articles/secrets-netbeans-window-system
https://wenku.baidu.com/view/c3a781584028915f814dc232.html