zno2

2023年8月25日 #

引用数据类型的坑

摘要: Integer2 != Integer2 巨坑 最近遇到一个奇怪的问题,存到user中的某个key的数据类型变了 下面这段代码,本来是图方便获取了 map ,然后将list转成string ,然后put回到这个map,然后使用这个map 却不成想,类型也跟着变了。 这就是引用类型使用的风险 impo 阅读全文

posted @ 2023-08-25 16:31 zno2 阅读(8) 评论(0) 推荐(0) 编辑

XSS(Cross-site scripting)

摘要: https://en.wikipedia.org/wiki/Cross-site_scripting same-origin policy (不能跨域) 代码注入,比如留言,然后其他人回复的时候就可以通过js获取信息并传送至指定的服务器 阅读全文

posted @ 2023-08-25 16:31 zno2 阅读(7) 评论(0) 推荐(0) 编辑

LRUCache (least recently used)

摘要: import java.util.HashMap; import java.util.LinkedList; import java.util.Map; /** * Caching with the LRU (Least Recently Used) algorithm. * */ public c 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(6) 评论(0) 推荐(0) 编辑

如何查看git 分支图

摘要: 1. 进入到一个项目 2. Insights - Graphs 3. Network 如下图: 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(333) 评论(0) 推荐(0) 编辑

ssd 固态硬盘检测工具 (as ssd benchmark)

摘要: https://as-ssd-benchmark.en.softonic.com/ http://www.alex-is.de/PHP/fusion/downloads.php?cat_id=4&download_id=9 A free utility program, AS SSD Benchma 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(231) 评论(0) 推荐(0) 编辑

迅雷9 关闭右侧浏览器首页

摘要: 思路:弄一个假的ThunderBrowser.exe 步骤: 退出迅雷在迅雷安装目录找到文件 ThunderBrowser.exe然后删除该文件新建空白文件,使用以上名称(欺骗)开启迅雷 效果: 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(16) 评论(0) 推荐(0) 编辑

where do you come from ? (调试用打印堆栈信息和线程信息)

摘要: void print() { StringBuffer sb = new StringBuffer(); Thread currentThread = Thread.currentThread(); sb.append("\n【Time】: "); sb.append(System.currentT 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(8) 评论(0) 推荐(0) 编辑

counter signature (XAdES)

摘要: 7.2.4 Countersignatures Annex C, in its clause C.1, includes a description and discussion on multiple signatures and countersignatures. This clause de 阅读全文

posted @ 2023-08-25 16:30 zno2 阅读(29) 评论(0) 推荐(0) 编辑

在线校验数字签名是否规范 (ETSI)

摘要: http://signatures-conformance-checker.etsi.org/pub/index.shtml XAdES (XML Advanced Electronic Signature ETSI 101 903, TS 103 171 and EN 319 132-1&2) C 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(23) 评论(0) 推荐(0) 编辑

Installed JREs & Compiler

摘要: 已安装 1.7 和 1.8 (默认是1.8) Option Description Installed JREs The current listing of installed JREs, allowing you to select the one to act as the workspace 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(49) 评论(0) 推荐(0) 编辑

git 不能clone ,TortoiseGit 和 Eclipse 都不行

摘要: 今天发现不能clone github.com 上的项目,报错如下: git.exe clone --progress -v "https://github.com/xxx/zzz.git" "E:\e\ws\zzz" Cloning into 'E:\e\ws\zzz'... fatal: unab 阅读全文

posted @ 2023-08-25 16:29 zno2 阅读(28) 评论(0) 推荐(0) 编辑

ORA-12514, TNS:listener does not currently know of service requested in connect descriptor

摘要: ORA-12500 to ORA-12699 ORA-12514, TNS:listener does not currently know of service requested in connect descriptor 数据库没有启动 https://community.oracle.com 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(11) 评论(0) 推荐(0) 编辑

非常优秀的 UML Class Diagram 工具

摘要: http://www.objectaid.com/class-diagram 在eclipse中安装非常简单: Help - Install New Software... - Add... - Location - OK Name: ObjectAid UML ExplorerURL: http: 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(27) 评论(0) 推荐(0) 编辑

javax.xml.bind.JAXBException: class XXXX nor any of its super class is known to this context

摘要: [javax.xml.bind.JAXBException: class org.bouncycastle.jcajce.provider.asymmetric.x509.X509CRLObject nor any of its super class is known to this contex 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(72) 评论(0) 推荐(0) 编辑

jqgrid 示例 ,加载js中的json数据

摘要: <!DOCTYPE html> <html lang="en"> <head> <script type="text/ecmascript" src="js/jquery-1.7.2.min.js"></script> <script type="text/ecmascript" src="js/i 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(87) 评论(0) 推荐(0) 编辑

从 XAdES-X-L 中获取证书

摘要: import java.io.ByteArrayInputStream; import java.security.cert.CertificateException; import java.security.cert.CertificateFactory; import java.securit 阅读全文

posted @ 2023-08-25 16:28 zno2 阅读(18) 评论(0) 推荐(0) 编辑

jndi.properties

摘要: http://docs.oracle.com/javase/7/docs/technotes/guides/jndi/jndi-ldap.html 3.1 JNDI Properties The LDAP service provider supports the following JNDI en 阅读全文

posted @ 2023-08-25 16:27 zno2 阅读(1) 评论(0) 推荐(0) 编辑

Java 方法签名 , method signature

摘要: 为什么说方法签名,这是java 方法重载 (overload) 的唯一依据 https://docs.oracle.com/javase/tutorial/java/javaOO/methods.html More generally, method declarations have six co 阅读全文

posted @ 2023-08-25 16:27 zno2 阅读(215) 评论(0) 推荐(0) 编辑

<wls:sharing-enabled>true</wls:sharing-enabled>

摘要: https://docs.oracle.com/cd/E13222_01/wls/docs90/webapp/sessions.html sharing-enabled false Enables Web applications to share HTTP sessions when the va 阅读全文

posted @ 2023-08-25 16:27 zno2 阅读(4) 评论(0) 推荐(0) 编辑

在 html 通过js 获取查询参数

摘要: file:///E:/test.html?a=1&b=2 <script type="text/javascript"> var getParameters = function() { var search = window.location.search; var obj = {}; if (s 阅读全文

posted @ 2023-08-25 16:27 zno2 阅读(108) 评论(0) 推荐(0) 编辑

导航