Scala 语法:implicit
Implicit是暗示的意思,这个关键字在Scala中给一个类增加一些方法,用于接收不同类型的对象。
Implicit是暗示的意思,这个关键字在Scala中给一个类增加一些方法,用于接收不同类型的对象。
这是一个在千万笔记录表中由于使用了索引导致了数据查找变慢的问题
ES6的Promise,永远都有新东西要学习。
Promise 对象用于延迟(deferred) 计算和异步(asynchronous ) 计算.。一个Promise对象代表着一个还未完成,但预期将来会完成的操作。
Windows 8.1 和 Linux Mint 双系统后发现,使用 Linux 后再登陆 Windows 8.1 时系统显示时间不准确,比实际时间晚了8小时。
Linux和Windows的系统时间管理是不同的。Linux是以主板CMOS的时间作为格林威治标准时间,再按照系统设定的时区进行调整后才是系统时间。比如北京UTC时间为GMT+8,则Linux以CMOS时间加8作为系统时间。而Windows是直接以CMOS时间作为系统时间。
解决 Windows 和 Linux 时间不一致的方法有2种:
一种是设置 Windows 时间以UTC时间显示,另一种是设置 Linux 不启用UTC时间,而是直接以CMOS时间作为本地时间。
Window下的设置方法为:打开注册表在HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlTimeZoneInformation中添加一项数据类型为DWORD,名称为RealTimeIsUniversal,值设为1。
Linux下的设置方法为:打开终端,修改 /etc/default/rcS,关闭UTC
/etc/default/rcS
找到UTC=no 这一项,将其改为UTC=yes,保存即可
以上两种方式,修改后重启电脑生效。
It turns out the solution is very simple. The xset command is the X server preferences command. It has a simple command to turn off the monitor:
$ xset dpms force off
and to turn the monitor back on:
$ xset dpms force on
You can also check the status of the X server settings by using:
$ xset -q
来源: How To Turn Off Your Monitor Via Command Line in Ubuntu | systemBash
单一用户
superuser ALL=(ALL) NOPASSWD:ALL
用户组
%supergroup ALL=(ALL) NOPASSWD:ALL
docker images | awk ‘{print $1}’ | xargs -L1 docker pull
来源: Update all Docker Images at once by stefanXO
docker images \ | awk '$1 !~ /halo9pan/ { printf ("%s:%s\n", $1, $2) }' \ | awk '/^REPOSITORY|/ {next} {print $1}' \ | xargs -L1 docker pull
docker images \ | awk '$1 ~ // {print $3}' \ | xargs -L1 docker rmi
docker images \ | awk '$1 ~ /halo9pan/ {print $1":"$2}' \ | xargs -L1 docker rmi
sudo rm /etc/udev/rules.d/70-persistent-net.rules
来源: Fix Missing eth0 When Cloning Ubuntu VMware Virtual Machines