上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页

2018年6月8日

清理孤儿文件 clearing up outdated orphans

摘要: pacman -Rns $(pacman -Qtdq) It lists all packages installed as dependencies but no longer required by any packages. You can remove them if you know th 阅读全文

posted @ 2018-06-08 09:54 Lemo_wd 阅读(150) 评论(0) 推荐(0)

2018年4月26日

python3 中 Event.wait 多线程等待

摘要: event.wait(time) 等待 time 时间后,执行下一步。或者在调用 event.set() 后立即执行下一步。 event.clear() 清除信号 event.set() 设置信号 event.isSet() 判断是否设置信号 要求: 定义一个按钮,等待 3秒钟,如果 3秒钟没有再次 阅读全文

posted @ 2018-04-26 20:45 Lemo_wd 阅读(8175) 评论(0) 推荐(0)

2018年4月25日

openshift 配置 bitbucket 的webhook

摘要: 参考 https://docs.openshift.org/latest/dev_guide/builds/triggering_builds.html 阅读全文

posted @ 2018-04-25 18:43 Lemo_wd 阅读(337) 评论(0) 推荐(0)

2018年4月12日

关于 ubuntu 下 防火墙 ufw的使用

摘要: ufw 是 iptables 的一个语法糖。详细介绍 阅读全文

posted @ 2018-04-12 15:54 Lemo_wd 阅读(156) 评论(0) 推荐(0)

2018年3月26日

Java8 中的 default

摘要: 之前的版本里 interface 中的方法必须是抽象方法,不能有方法体。现在可以添加 interface 内方法,只需要在方法的前面加一个 default 关键字,表示属于接口内部默认存在的方法。 如果两个接口包括的默认方法同名,当一个 class 同时实现这两个接口,并调用他们共同的 defaul 阅读全文

posted @ 2018-03-26 13:48 Lemo_wd 阅读(287) 评论(0) 推荐(0)

2018年3月24日

mvc、mvp与 mvvm 区别

摘要: 原文 阅读全文

posted @ 2018-03-24 20:52 Lemo_wd 阅读(121) 评论(0) 推荐(0)

unicode 字符集 与 utf-8 编码

摘要: 字符集 Unicode 是一个很大的集合,可以容纳100多万个符号。每个符号的编号都不一样,比如,U+0639表示阿拉伯字母Ain,U+0041表示英语的大写字母A,U+4E25表示汉字严。具体的符号编号对应表,可以查询unicode.org,或者专门的汉字对应表。 字符编码 有了字符集,人们就可以 阅读全文

posted @ 2018-03-24 04:28 Lemo_wd 阅读(375) 评论(0) 推荐(0)

2018年3月20日

java 中的 Comparable 和 Comparator 与 Iterable 和 Iterator

摘要: Comparable 和 Comparator 1、Comparable<T> 比较的是当前值与另一个值。 public interface Comparable<T> { public int compareTo(T o); } 举例: Date dt = new Date(); // 默认计算从 阅读全文

posted @ 2018-03-20 22:25 Lemo_wd 阅读(389) 评论(0) 推荐(0)

2018年3月8日

Java 中的泛型

摘要: 一、泛型的定义与作用 泛型,又叫 参数多态,在c++里又叫模板。是指声明与定义函数或变量时不指定其具体的类型,而把这部分类型作为参数使用,使得该定义对各种具体类型都适用。通常意义的多态是将这里不特定的类型参数替换成父类型,将具体类型的实现替换成子类型。故而泛型可看作一种特殊的多态(概念角度)。 泛型 阅读全文

posted @ 2018-03-08 16:24 Lemo_wd 阅读(232) 评论(0) 推荐(0)

2018年3月2日

rails 杂记 - model 中的exists?

摘要: 1. exists? 用法 有一段代码 参考 这里的 exitsts?(column => self[column]) 类似于 .find_by_user_id(current_user.id) 整段代码的意思是如果随机码与已知用户的随机码重复则重新再随机,直到不再重复。 阅读全文

posted @ 2018-03-02 22:55 Lemo_wd 阅读(242) 评论(0) 推荐(0)

上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 31 下一页

导航