java 中的内省 introspector

java 中的内省 introspector 概述 经常需要使用java对象的属性来封装程序的数据,每次都使用反射技术完成此类操作过于麻烦,所以sun公司开发了一套API,专门

junit

junit junit5 JUnit5的第一个可用性版本是在2017年9月10日发布的。 JUnit5架构 相比JUnit4,JUnit5由三个不同的子项目及不同的模

用 shell 脚本生成文本文件, shell 创建文件

用 shell 脚本生成文本文件, shell 创建文件 1 2 # sudo echo "nohup ${app_path}/goland/default/bin/goland.sh >/dev/null 2>&1 &" | sudo tee /usr/local/bin/goland > /dev/null 生成一个具有特定内容的文本文件 使用 echo 命令 1 2 echo "Hello, World! My name is Shengbin." > readme.txt 这种方法其实就

Redis 持久化 RDB 和 AOF

Redis 持久化 RDB 和 AOF Redis本身的机制是 AOF 持久化开启且存在AOF文件时,优先加载AOF文件;AOF 关闭或者AOF文件不存在时,加载RDB文件;加

Integration of Angular with Spring MVC

‘Integration of Angular with Spring MVC’ https://stackoverflow.com/questions/50481885/integration-of-angular-5-with-spring-mvc 1.Create normal Dynamic web project. 2.Add all dependancy required for spring or user maven pom.xml 3.Open CMD, navigate to angular2 application. Hit command ‘npm install’ and then ‘ng build’ or use ‘ng build -prod’ for production build. this command will create a “dist” folder, copy all files including all folders. Paste those files and folders into 'WebContent' directory. Last thing, you need to change basehref=".

DCEVM, HotSwapAgent

DCEVM, HotSwapAgent https://blog.csdn.net/u013613428/article/details/51499911 要高效的开发Java代码,那就必须要让java像js一样,修改过的代码可以实时的反应出来。要了解如何做到这一点,我们先要知道JVM是如

awk、grep、sed

awk、grep、sed awk、grep、sed是linux操作文本的三大利器,也是必须掌握的linux命令之一。三者的功能都是处理文本,但

Funtoo

Funtoo Funtoo Linux 是由 Daniel Robbins (Gentoo Linux的创始人和前项目领袖) 和一个核心开发团队基于 Gentoo 的发行版,它基于一个简单的愿景, 那就是提升 Gentoo Linux 中的核心技术。 https://imtx.me/archives/923.html https://www.funtoo.org/Welcome

kafka 分区数

kafka 分区数 Kafka的分区数是不是越多越好? 分区多的优点 kafka使用分区将topic的消息打散到多个分区分布保存在不同的broker上,实现

go 调试, pprof, go tool trace

go 调试, pprof, go tool trace 做 Profiling 第一步就是怎么获取应用程序的运行情况数据。go 语言提供了 runtime/pprof 和 net/http/pprof 两个库 http api 1 2 3 4 5 6 7 8 // pprof 的init函数会将pprof

VMware ESXi

VMware ESXi http://idc.wanyunshuju.com/li/580.html free license https://kb.vmware.com/s/article/2107518 虚拟机导出 各种类型的文件 .ovf OVF 模板,该模板将虚拟机或虚拟设备的状态捕获到一个自包含的包中,并且磁盘文件以压缩格式存储。 .mf .iso .vmdk 虚拟机

state和status的区别

state和status的区别 state和status的区别 state: 比较常用,各种状态都可以用它,但是它更着重于一种心理状态或者物理状态。 Status: 用在人

golang 位运算

golang 位运算 1 2 3 4 5 6 & 位运算 AND | 位运算 OR ^ 位运算 XOR &^ 位清空 (AND NOT) << 左移 >> 右移 无符号右移 https://blog.wiloon.com/?p=15522 & 操作符 假设给定数值 a,b 只有满足 a = b = 1 的情况下下

gnome keyring

gnome keyring install 1 sudo pacman -S gnome-keyring libsecret vim .bashrc 1 2 3 eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh) export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg) dbus-update-activation-environment --systemd DISPLAY secret-tool, 用 secret-tool 测试 gnome keyring daemon 是否正常 secret-tool 由 libsecret 提供 1 2 3 4 5 6 7 secret-tool store --label='Label' foo bar secret-tool lookup foo bar secret-tool store --label='Label' {attribute} {value} ... secret-tool lookup {attribute} {value} ... secret-tool

Eclipse Mosquitto

Eclipse Mosquitto Mosquitto介绍 Eclipse Mosquitto是一个开源 (EPL / EDL许可) 消息代理,它实现了MQTT协议版本3.1和3.1.1。Mosquit

TC1

TC1 https://ljr.im/articles/streamline-the-fibonacci-tc1-firmware/ docker pull python:2-slim-stretch docker run -it -name mico -v /home/wiloon/tmp/mico:/workdir python:2-slim-stretch bash apt update && apt install git wget lib32ncurses5 ln -s /usr/local/bin/python /usr/bin/python 容器bash pip install mico-cube && \ cd /workdir && \ wget http://firmware.mxchip.com/MiCoder_v1.1.Linux.tar.gz && \ tar -zxf MiCoder_v1.1.Linux.tar.gz && \ rm MiCoder_v1.1.Linux.tar.gz && \ mico config -global MICODER /workdir/MiCoder 容器bash cd /workdir && \ mico

两个 iphone 同步数据

iphone 换手机, 两个 iphone 同步数据, new iphone, sync 旧手机关掉 vpn 旧手机备份和删除照片 旧手机删除 trust 新 iphone 开机 选完语言之后停在 quick start 页面 把旧手机靠近新手机 在新手机上点 continue