一个计算机技术爱好者与学习者

0%

前言

工欲善其事,必先利其器。IDEA作为当今最流行的IDE之一,有很多快捷键和配置可以帮助我们更好地开发。本文记录一下自己常用的一些快捷键和配置,备忘。

快捷键

查看快捷键

1、菜单栏,IntelliJ IDEA,Preferences…。
2、Keymap,Main menu,Refactor,Extract,Introduce Variable…。

自动补全函数返回值

windows: ctrl+alt+V,回车
macos: option+command+V,回车

函数跳转

command+单击,command+],command+[

代码格式化

macos: option+command+L

阅读全文 »

Supervisor简介

Supervisor is a client/server system that allows its users to monitor and control a number of processes on UNIX-like operating systems.

It shares some of the same goals of programs like launchd, daemontools, and runit. Unlike some of these programs, it is not meant to be run as a substitute for init as “process id 1”. Instead it is meant to be used to control processes related to a project or a customer, and is meant to start like any other program at boot time.

Supervisor是用Python开发的一套通用的进程管理程序,能将一个普通的命令行进程变为后台daemon,并监控进程状态,异常退出时能自动重启。它是通过fork/exec的方式把这些被管理的进程当作supervisor的子进程来启动,这样只要在supervisor的配置文件中,把要管理的进程的可执行文件的路径写进去即可。也实现当子进程挂掉的时候,父进程可以准确获取子进程挂掉的信息,可以选择是否自己启动和报警。supervisor还提供了一个功能,可以为supervisord或者每个子进程,设置一个非root的user,这个user就可以管理它对应的进程。

相关文档:

阅读全文 »

来龙去脉

知识工程这门课,主要讲三类算法:演化计算、群智能计算和神经计算。

演化计算,包括遗传算法、遗传规划、进化策略和进化规划。
群智能计算,包括蚁群算法和粒子群算法。
神经计算,包括人工神经网络和深度学习神经网络。

本文,主要介绍一下群智能计算中的蚁群算法。

阅读全文 »