lihdd.net
Config | Rest Valley
http://lihdd.net/tag/config
The scratchpad of quark. 让 Archlinux 的 pacman 健步如飞. 使用 Archlinux 的朋友大概遇到过这样的烦恼,软件安装得比较多的时候,再用 pacman 做任何事情的时候都可以看到硬盘狂转一段时间,然后才有反应。 Pacman 官方给了一个 pacman-optimize,它会把 pacman 数据库文件打包到别的地方,删除,然后再放回去。 虽然用 Archlinux 应该有三年左右了,但我还从来没有看过 pacman 的数据库是什么模样。 有一天终于忍不住去看了一下 /var/lib/pacman 下面到底是什么,原来是这么多零碎的小文件啊 于是解决方案也就有了 把所谓的 pacman 数据库放到 reiserfs 文件系统里。 如果你本来在这个地方用的就是 reiserfs 的话,那么不需要做任何事情, pacman 应该就很快了。 Read more ». Http:/ www.insurance.darktech.org/. Http:/ www.oweninsuragency.com/. On 让 Archlinux 的 pacman 健步如飞.
lihdd.net
Hardware | Rest Valley
http://lihdd.net/tag/hardware
The scratchpad of quark. 我以前一直觉得坏道什么的太难遇到了,直到去年十二月的一天,类似这样的消息在屏幕出现 kernel: sd 4:0:0:0: [sda] Unhandled sense code kernel: sd 4:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08 kernel: sd 4:0:0:0: [sda] Sense Key : 0x3 [current] kernel: sd 4:0:0:0: [sda] ASC=0x14 ASCQ=0x0 kernel: sd 4:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 25. Read more ». Read more ». Http:/ www.insurance.darktech.org/. Http:/ www.oweninsuragency.com/. On 让 Archlinux 的 pacman 健步如飞. On 去掉 Rainlendar Pro for Linux 的 未注册 字样.
lihdd.net
坏道惊魂 | Rest Valley
http://lihdd.net/seagate-bad-blocks
The scratchpad of quark. Kernel: sd 4:0:0:0: [sda] Unhandled sense code kernel: sd 4:0:0:0: [sda] Result: hostbyte=0x00 driverbyte=0x08 kernel: sd 4:0:0:0: [sda] Sense Key : 0x3 [current] kernel: sd 4:0:0:0: [sda] ASC=0x14 ASCQ=0x0 kernel: sd 4:0:0:0: [sda] CDB: cdb[0]=0x28: 28 00 25 42 ea af 00 00 01 00 kernel: end request: I/O error, dev sda, sector 625142447 kernel: Buffer I/O error on device sda, logical block 78142805. 这些消息出现在对磁盘执行 mount 或 fsck 之前,也就是说系统刚发现这个硬盘还没有开始挂载的时候,就会僵持三分钟。 Fdisk -lu /dev/sdb ...
ruanyifeng.com
读懂diff - 阮一峰的网络日志
http://www.ruanyifeng.com/blog/2012/08/how_to_read_diff.html
它分成三个部分 前面的"4",表示f1的第4行有变化 中间的"c"表示变动的模式是内容改变 change ,其他模式还有"增加" a,代表addition 和"删除" d,代表deletion 后面的"4",表示变动后变成f2的第4行。 Diff -c f1 f2. F1 2012-08-29 16:45:41.000000000 0800. F2 2012-08-29 16:45:51.000000000 0800. F1 2012-08-29 16:45:41.000000000 0800. F2 2012-08-29 16:45:51.000000000 0800. 所以,前面的"* * 1,7 * * "就表示,从第1行开始连续7行。 表示该行有改动 如果是减号 - ,表示该行被删除 如果是加号 ,表示该行为新增。 Diff -u f1 f2. F1 2012-08-29 16:45:41.000000000 0800. F2 2012-08-29 16:45:51.000000000 0800. F1 2012-08-29 16:45:41.000000000 0800. 阮老师,你不是在每篇...
soulmachine.me
Deserialize a JSON String to a Binary Tree - soulmachine
http://www.soulmachine.me/blog/2015/06/22/deserialize-a-json-string-to-a-binary-tree
Deserialize a JSON String to a Binary Tree. We know that Jackson is very convenient to deserialize a JSON string into a. But how to deserialize a JSON String to a binary tree? The definition of binary tree node is as follows:. The JSON String is as follows:. Value": 2, "left": { "value": 1, "left": null, "right": null }, "right": { "value": 10, "left": { "value": 5, "left": null, "right": null }, "right": null } }. The above JSON string represents a binary tree as the following:. Value : 2, n. Left : { n.
soulmachine.me
Calling C Code From Java Using JNI - soulmachine
http://www.soulmachine.me/blog/2015/07/23/calling-c-code-from-java-using-jni
Calling C Code From Java Using JNI. This blog is a fork of http:/ stuf.ro/calling-c-code-from-java-using-jni. With some errors fixed and C support added. In this tutorial we’ll be creating a Java application calling code from a native library. We’ll have a Java application called. Which will call the function. From a shared library named. Using Java Native Interface. First off, we’ll create a file named. Make the JVM aware of a function defined externally, named. Load an external library called. Alright,...
soulmachine.me
About - soulmachine
http://www.soulmachine.me/about
Frank, Dai Born. 201109 — 2014.06, Master, Tsinghua University. 200807 — 2009.08, Kingsoft Security. 200801 — 2008.04, Taobao. Intern at search engine team. 200409 — 2008.07, Bachelor, Computer Science and Technology, Whuhan University. Machine Learning, Spark. Our team’s weibo group is 程序员北美求职. 新浪微群 http:/ q.weibo.com/1644133. Spark, Machine Learning, Scala, more. Calling C Code From Java Using JNI. Compile and Run Java Source Code in Memory. Deserialize a JSON String to a Binary Tree.
soulmachine.me
Category: Compiler - soulmachine
http://www.soulmachine.me/blog/categories/compiler
Compile and Run Java Source Code in Memory. Spark, Machine Learning, Scala, more. Calling C Code From Java Using JNI. Compile and Run Java Source Code in Memory. Deserialize a JSON String to a Binary Tree. Deserialize a JSON Array to a Singly Linked List. Debug Hadoop Applications With IntelliJ.
SOCIAL ENGAGEMENT