JAVA生成随机汉字

JAVA生成随机汉字 http://blog.csdn.net/smilememory/article/details/8053599 首先我们得知道汉字编码的原理。 在国标GB2312-80中规定,所有的国标汉字及符号分配在一个94行、94列的方阵中,方

socket, 套接字, 套接口

socket, 套接字, 套接口 应用层通过传输层进行数据通信时,TCP 和 UDP 会遇到同时为多个应用程序进程提供并发服务的问题。多个 TCP 连接或多个应用程序进程可能需

Netty

Netty version latest 4.1.68 current 4.1.22 Netty是Java领域有名的开源网络库,特点是高性能和高扩展性,因此很多流行的框架都是基于它来构建的,比如我们熟知的Dubbo

亚马逊土耳其机器人

亚马逊土耳其机器人 亚马逊土耳其机器人 (Amazon Mechanical Turk) 是一个Web服务应用程序接口 (API) ,开发商通过它可以将人的智能整合到远程过程调用 (RPC) 。亚马逊土耳其机器人

centos8 kvm

centos8 kvm sudo yum update sudo yum install @virt After installation, verify that Kernel modules are loaded lsmod | grep kvm Also install useful tools for virtual machine management. sudo dnf -y install libvirt-devel virt-top libguestfs-tools virt-install osinfo-query os 1 2 3 4 5 6 7 8 9 10 virt-install \ --name roy-dev \ --ram 2048 \ --vcpus 2 \ --network network:default \ --os-type=fedora34 \ --disk path=/home/roy/vm.qcow2,format=qcow2,bus=virtio,cache=none,size=16 \ --graphics none

iptables basic

iptables basic iptables 是 Linux 内核集成的 IP 信息包过滤系统。该系统用于在 Linux 系统上控制 IP 数据包过滤和防火墙配置 iptables 操作的是 2.4 以上内核的 netfilter。所以需要 linux 的

vmpk

vmpk Virtual MIDI Piano Keyboard is a MIDI events generator and receiver. It doesn’t produce any sound by itself, but can be used to drive a MIDI synthesizer (either hardware or software, internal or external). You can use the computer’s keyboard to play MIDI notes, and also the mouse. You can use the Virtual MIDI Piano Keyboard to display the played MIDI notes from another instrument or MIDI file player.

DM, DE, WM

display manager(DM), 显示管理器, sddm, gdm3, lightdm DE(Desktop Environment) DE就是 KDE Gnome Xfce这类大而全的软件, 每个DE都包含了WM , kde 的wm 是kwin, gnome也有自己的wm, 除此之外

form表单target的用法

form表单target的用法 偶然有一机会发现form表单的target的用法,可以实现当前页表单提交而不进行跳转刷新。代码如下,首页在页面

Add ISO image to apt sources.list

Add ISO image to apt sources.list http://linuxconfig.org/add-iso-image-to-apt-sourceslist Here is a way how to include Debian/Ubuntu ISO image into your /etc/apt/sources.list file. This kind of hack can prove handy in terms of reducing package download during the installation or if you do not have CD/DVD drive available ( or is broken ) on your system. Let’s assume that we have a Debian ISO image downloaded at the location: /mnt/storage/iSO/debian-i386-DVD-1.iso. As a first step we need to create a mount point to where this ISO image will be mounted to:

TCP Keep-Alives

TCP Keep-Alives https://zhuanlan.zhihu.com/p/28894266 https://datatracker.ietf.org/doc/html/rfc1122#page-101 当客户端端等待超过一定时间后自动给服务端发送一个空的报文,如果对方回复了这个报文证明连接还存活着,如果对方没有报文返回且进行了多次尝

JRE和JDK的区别

JRE和JDK的区别 JDK JDK 是整个Java的核心,包括了Java运行环境(JRE) (Java Runtime Envirnment), 一堆Java工具和Java基础的类库 (rt.jar) 。不论什么Java

Eclipse中使用Maven插件

Eclipse中使用Maven插件 安装Maven 下载Maven最新版本,见: http://maven.apache.org/download.html 当前版本2.0.7。解压缩下载的文件, 将其中的bin目录设置到