摘要: public class SqrtDemo { public static void main(String[] args) { sqrtNewton(2, 0.00000001); // squareRoot(2, 0.00000001); } /** * 牛顿开根法 * * @param i 根 阅读全文
posted @ 2021-11-24 14:29 c3p4501 阅读(38) 评论(0) 推荐(0)
摘要: 设备:USB摄像头 HTML代码: <!doctype html> <html lang="en"> <head> <title>upload picture</title> <meta charset="utf-8"> <script src="https://code.jquery.com/jq 阅读全文
posted @ 2021-03-25 20:29 c3p4501 阅读(236) 评论(0) 推荐(0)
摘要: countdown的某个子线程可能会因为某些原因(如:死循环)无法执行countdown,导致await线程一直阻塞下去。 阅读全文
posted @ 2020-11-03 10:35 c3p4501 阅读(251) 评论(0) 推荐(0)
摘要: 过滤器 MyFilter.java @Component public class MyFilter implements Filter { public void init(javax.servlet.FilterConfig filterConfig) throws ServletExcepti 阅读全文
posted @ 2020-10-16 11:43 c3p4501 阅读(80) 评论(0) 推荐(0)
摘要: 获取进程的PID: ps | grep test | awk 'NR==1{print $1}' 通过管道把PID传给kill -9无法生效,需要使用: ps -ef|grep webapp|awk 'NR==1{print $2}'|xargs kill -9如当前嵌入式设备上无法使用xargs可 阅读全文
posted @ 2020-10-16 11:34 c3p4501 阅读(86) 评论(0) 推荐(0)
摘要: 定义在程序运行时动态访问、修改类的属性(状态)和方法(行为)的一种机制(无论修饰权限范围)。 功能通过类构造实例通过实例获取类获取类的实例变量和方法调用任意实例方法 应用操作因访问权限限制的属性和方法 field.setAccessible(true);实现自定义注解 if(DemoService. 阅读全文
posted @ 2020-10-15 14:50 c3p4501 阅读(22) 评论(0) 推荐(0)
摘要: 正向代理 代理对象是客户端,即对服务端隐藏请求客户端。 比如通过国内通过代理服务器访问外网谷歌,谷歌服务器并不知道实际请求的客户端。 反向代理 代理对象是服务端,即对客户端隐藏服务器端。 比如通过谷歌搜索,实际上搜索背后有成千上百台服务器为这个搜索服务,具体是哪一个为我们服务我们不知道。 阅读全文
posted @ 2020-10-14 11:55 c3p4501 阅读(19) 评论(0) 推荐(0)