被一个还不知道是谁的人替代是一种什么样的体验?

这是一个周五,早上送孩子上学,正开着车,后面坐着的儿子突然对我说:

晨:爸爸,我以后要买一辆跑车。

我:你想买什么样的跑车?

晨:红黑色的跑车。

我:哇喔,很少有这样的颜色的跑车呢,那感觉好酷呀!

我:几个轮子的?

晨:四个轮子的。

我:能坐下几个人呀?

晨:两个。

我:我能坐吗?

晨:当然可以呀。我以后要带着我的媳妇一起坐。

我:那只能坐两个人呀?我坐哪呢?

晨:恩…你也可以坐。

我:那坐不下呀,只能坐两个人呢?

晨:你们一人坐一次,换着来。

我:嗯。。。

晨:我还是把你放后备箱里吧。

我:那妈妈呢?

晨:恩。。。。。。

 

我心里就一直在想,这个还不知道在哪里的人就已经悄然无声的替代了我们在他心目中的位置,这是为什么呢?为什么呐?

这应该就是夫妻日常的关系给孩子心里种下的种子吧,虽然这天肯定会来到,但没想到来的这么早,这么快,虽然心里很不是滋味,也许这是一个好的现象。

两个人的关系,孩子生长的家庭,对孩子是多么大的影响,珍惜现在的时光吧!

 

 


Warning: sprintf(): Too few arguments in /var/www/html/wp-content/themes/lineday/library/underscores/template-tags.php on line 27
日常发表回复

swagger2 注释API说明

API详细说明

原文链接 https://blog.csdn.net/xupeng874395012/article/details/68946676

注释

作用范围 API 使用位置
对象属性 @ApiModelProperty 用在出入参数对象的字段上
协议集描述 @Api 用于controller类上
协议描述 @ApiOperation 用在controller的方法上
Response集 @ApiResponses 用在controller的方法上
Response @ApiResponse 用在 @ApiResponses里边
非对象参数集 @ApiImplicitParams 用在controller的方法上
非对象参数描述 @ApiImplicitParam 用在@ApiImplicitParams的方法里边
描述返回对象的意义 @ApiModel 用在返回对象类上

@RequestMapping此注解的推荐配置
value
method
produces

@ApiImplicitParam

属性 取值 作用
paramType 查询参数类型
path 以地址的形式提交数据
query 直接跟参数完成自动映射赋值
body 以流的形式提交 仅支持POST
header 参数在request headers 里边提交
form 以form表单的形式提交 仅支持POST
dataType 参数的数据类型 只作为标志说明,并没有实际验证
Long
String
name 接收参数名
value 接收参数的意义描述
required 参数是否必填
true 必填
false 非必填
defaultValue 默认值

paramType 示例详解

path

 @RequestMapping(value = "/findById1/{id}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)

 @PathVariable(name = "id") Long id

body

  @ApiImplicitParams({ @ApiImplicitParam(paramType = "body", dataType = "MessageParam", name = "param", value = "信息参数", required = true) })
  @RequestMapping(value = "/findById3", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE, consumes = MediaType.APPLICATION_JSON_VALUE)

  @RequestBody MessageParam param

  提交的参数是这个对象的一个json,然后会自动解析到对应的字段上去,也可以通过流的形式接收当前的请求数据,但是这个和上面的接收方式仅能使用一个(用@RequestBody之后流就会关闭了)
  @ApiImplicitParams({ @ApiImplicitParam(paramType = "header", dataType = "Long", name = "id", value = "信息id", required = true) }) 

   String idstr = request.getHeader("id");
        if (StringUtils.isNumeric(idstr)) {
            id = Long.parseLong(idstr);
        }

Form

@ApiImplicitParams({ @ApiImplicitParam(paramType = "form", dataType = "Long", name = "id", value = "信息id", required = true) })
 @RequestMapping(value = "/findById5", method = RequestMethod.POST, produces = MediaType.APPLICATION_JSON_UTF8_VALUE, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE)

Warning: sprintf(): Too few arguments in /var/www/html/wp-content/themes/lineday/library/underscores/template-tags.php on line 27
日常发表回复

Maven 导出jar包

原文地址:https://blog.csdn.net/andyliulin/article/details/46544555

一、导出到默认目录 targed/dependency

从Maven项目中导出项目依赖的jar包:进入工程pom.xml 所在的目录下,执行如下命令:

1
mvn dependency:copy-dependencies

或在eclipse中,选择项目的pom.xml文件,点击右键菜单中的Run As,见下图红框中,在弹出的Configuration窗口中,输入 dependency:copy-dependencies后,点击运行

maven项目所依赖的jar包会导出到targed/dependency目录中。

二、导出到自定义目录中

在maven项目下创建lib文件夹,输入以下命令:

1
mvn dependency:copy-dependencies -DoutputDirectory=lib

maven项目所依赖的jar包都会复制到项目目录下的lib目录下

三、设置依赖级别

同时可以设置依赖级别,通常使用compile级别

1
mvn dependency:copy-dependencies -DoutputDirectory=lib -DincludeScope=compile

Warning: sprintf(): Too few arguments in /var/www/html/wp-content/themes/lineday/library/underscores/template-tags.php on line 27
日常发表回复

在Ubuntu上面做开发需要的步骤

安装jdk,配置环境变量

下载jdk

http://www.oracle.com/technetwork/java/javase/downloads/jdk10-downloads-4416644.html

解压到指定位置

sudo mkdir /home/java

sudo ~/下载

sudo tar -zxvf jdk-10_linux-x64_bin.tar.gz -C /home/java

配置环境变量

sudo gedit /etc/profile

在空白处添加以下信息:

export JAVA_HOME=/home/java/jdk-10
export CLASSPATH=.:$JAVA_HOME/lib
export PATH=$JAVA_HOME/bin:$PATH

保存执行下面命令:

source /etc/profile

测试

java -version

注意:如果关闭当前shell,新开shell出现异常,则需要reboot以一下。

参考链接:

https://blog.csdn.net/dgeek/article/details/52689235

安装eclipse

下载eclipse ,选择需要下载版本。

https://www.eclipse.org/downloads/eclipse-packages/

解压到指定位置

sudo mkdir /home/eclipse

sudo ~/下载

sudo tar -zxvf eclipse-java-oxygen-3-linux-gtk-x86_64.tar.gz -C /home/eclipse

运行

cd /home/eclipse/eclipse

./eclipse

也可以直接双击eclipse目录下该文件。

 

安装Maven


Warning: sprintf(): Too few arguments in /var/www/html/wp-content/themes/lineday/library/underscores/template-tags.php on line 27
日常发表回复

Ubuntu 禁用/开启 客人会话

禁用客人会话

  • sudo sh -c ‘printf “[SeatDefaults]\nallow-guest=false\n” >/usr/share/lightdm/lightdm.conf.d/50-no-guest.conf’
  • sudo reboot

开启客人会话

  • sudo rm -f /usr/share/lightdm/lightdm.conf.d/50-no-guest.conf
  • sudo reboot

 


Warning: sprintf(): Too few arguments in /var/www/html/wp-content/themes/lineday/library/underscores/template-tags.php on line 27
日常发表回复

How-To Install/Uninstall AMD Radeon™ Software AMDGPU-PRO Driver for Linux® on an Ubuntu System

Article Number: GPU-635

Installing the AMDGPU-PRO Driver
There are four simple steps involved in the installation of the AMDGPU-Pro Driver: Download, Extract, Install and Configure.  The instructions to perform the installation are intended for an Ubuntu installation of 16.04, and should take less than 10 minutes to complete.  Before installing the driver, a quick note on how to check if your system already has AMDGPU-PRO installed.  In addition, the recommended best practice is to bring the system up-to-date before starting the driver installation, with:

sudo apt update
sudo apt dist-upgrade
sudo reboot

System Check
The easiest way to find out if you have AMDGPU-Pro already installed on your Ubuntu System is to query the Debian package manager.

Using the following command at a terminal will provide you with the version of the AMDGPU-Pro stack on your system, or inform you that there are no packages found:

dpkg -l amdgpu-pro

Download
A direct link to download the Linux AMDGPU-PRO driver is given below and it is also available on the Driver Download Page. This file has a “tar.xz” extension which reflects a more-effective compression algorithm that (in most cases) creates a smaller archive than the more common gzip format.

NOTE: This file can also be located via the Driver Download Page by locating your card and selecting the Linux Driver link.

Extract
After the archive is downloaded, extract the contents to a temporary location from which you can install it. The example below assumes you have downloaded the archive to /tmp and will extract to the same location. If your file was downloaded into the ~/Downloads/ folder by default, you can also extract and install from there, and afterwards you can remove the install files.

(Notes: Please replace the “NNNNNN” in the following command line with the actual build number of the downloaded file)

cd /tmp
tar -Jxvf amdgpu-pro-17.30-NNNNNN.tar.xz

Install
Once the archive is expanded on the local machine, run the included script (amdgpu-pro-install) to install the graphics stack.  During the installation you will be required to provide sudo access, and also to provide two confirmations to:

  1. Install the packages, and
  2. Allow installation of “unverified” packages from the AMDGPU-PRO archive.

The script will use the package manager to install the components of the graphics stack, with a short delay during the DKMS (Dynamic Kernel Module Support) installation. From the directory where you extracted the archive, issue the following command:

(Notes: Please replace the “NNNNNN” in the following command line with the actual build number of the downloaded file.)

cd amdgpu-pro-17.30-NNNNNN
./amdgpu-pro-install –y
sudo reboot 

Configure
Ensure that your user account is a member of the “video” group prior to using the vulkan driver. You can find which groups you are a member of with the following command:

groups

To add yourself to the video group you will need the sudo password and can use the following command:

sudo usermod -a -G video $LOGNAME 

You will need to log out and in again to activate this change.

Uninstalling the AMD GPU-PRO Driver
If for any reason you wish to remove the AMDGPU-PRO graphics stack you can do this using the uninstallation script which was part of the installation and is present in your path. From the command prompt enter the following command:

amdgpu-pro-uninstall

Installing the Optional ROCm Component
This AMDGPU-Pro driver package incorporates the ROCm component that can be optionally installed for running Compute/OpenCL applications.  You can install the component by issuing the following command:

sudo apt install -y rocm-amdgpu-pro

Configuring the Optional ROCm Component
The LLVM_BIN environment variable needs to be set prior to running ROCm applications.

To set it temporarily when running an individual ROCm command, such as clinfo, use:

env LLVM_BIN=/opt/amdgpu-pro/bin /opt/amdgpu-pro/bin/clinfo

To set it permanently for all bash and other sh-like shell users, you can use the following command:

echo ‘export LLVM_BIN=/opt/amdgpu-pro/bin’ | sudo tee /etc/profile.d/amdgpu-pro.sh

See the Ubuntu Environment Variables Community Help for more information.

To set it permanently for all csh users, you can use the following command:

echo ‘setenv LLVM_BIN /opt/amdgpu-pro/bin’ | sudo tee /etc/profile.d/amdgpu-pro.csh

注意:按照以上步骤在中途出现异常情况,提示系统出现问题,则需立即卸载该驱动程序,

则说明该驱动程序不对,需要重新下载另外的版本。如果执行了reboot,则可能进入不了系统,需要从新安装系统才可以修复。

引用链接:https://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Install.aspx

https://support.amd.com/en-us/kb-articles/Pages/Installation-Instructions-for-amdgpu-Graphics-Stacks.aspx

https://support.amd.com/en-us/download/workstation?os=Linux%20x86_64#pro-driver

 

今天是周五

又是一个周五,这周好快呀。

熟悉而又陌生。

一大早好兴奋,我却道不明为什么,很早就起来了,这么兴奋的一天,我决定走路去公司来庆祝一下。突然发现很久很久都没有走着去公司了,嗯,是想了。

这么早,家门口就快要出现拥堵的现象了,这是因为是周五,大家都很兴奋吗?


Warning: sprintf(): Too few arguments in /var/www/html/wp-content/themes/lineday/library/underscores/template-tags.php on line 27
日常发表回复