04 2016 档案

Python 3.5.1 Syntax & APIs(Continue Updating..
摘要:instead of print(x) to escape the default line-changing-output. print(str.ljust(size)) left-alignment with given size, samely, str.rjust(size) works j 阅读全文

posted @ 2016-04-29 09:41 三叁 阅读(280) 评论(0) 推荐(0)

Converting between IEEE 754 and Float (Format related
摘要:The float can be converted to well known single-precision IEEE 754 number, why 754? It's the standard representation of single-precision numbers, used 阅读全文

posted @ 2016-04-22 15:58 三叁 阅读(326) 评论(0) 推荐(0)

Net Protocol Related
摘要:Data used to deliver through net should be encapsulated. General encapsulation include 4 layer of header, in UNIX, it's: Application Layer (telnet, ft 阅读全文

posted @ 2016-04-22 14:54 三叁 阅读(189) 评论(0) 推荐(0)

Rar related CMD
摘要:recursively add folder Document to archive: (with all the files) recursively add folders to archive: (with all the files) add path etc to certain file 阅读全文

posted @ 2016-04-20 17:03 三叁 阅读(135) 评论(0) 推荐(0)

Qt 5.5 tr usage
摘要:in .cpp file, wherever you want, wrap QString with a tr("somesz") rendering it ready to be translated. in .pro file, specify the readable translation 阅读全文

posted @ 2016-04-20 16:24 三叁 阅读(222) 评论(0) 推荐(0)

Got Stucked in C++ Static Library Loading.. for some time
摘要:I used to load library using 1 single .dll file, so when I happen to do method calling between 2 projects in a solution, I got puzzled.. In the soluti 阅读全文

posted @ 2016-04-19 16:11 三叁 阅读(220) 评论(0) 推荐(0)

Java R&W Related
摘要:In Java, byte = 8 bit, char = 16 bit In C/C++, char = 8 bit There is difference because Java uses Unicode, however C uses ASCII as basic character col 阅读全文

posted @ 2016-04-18 12:31 三叁 阅读(183) 评论(0) 推荐(0)

Java Networking Related (Java Examples in a Nutshell 3rd Edition)
摘要:Examples to: Use URL class to parse URLs and download the network resources specified by a URL Use URLConnection class to gain more cntrl over the dow 阅读全文

posted @ 2016-04-16 09:39 三叁 阅读(203) 评论(0) 推荐(0)

Java Concurrent Topics
摘要:To prevent Memory Consistency Errors(MCEs), it is good practice to specify synchronized class specifier, and mark all the related methods as synchroni 阅读全文

posted @ 2016-04-15 15:23 三叁 阅读(167) 评论(0) 推荐(0)

Java Interrupt Related
摘要:In Java, the main process can have several threads at a time, but only a few of them can run concurrently, so it is needed to cancel some thread at ti 阅读全文

posted @ 2016-04-15 13:46 三叁 阅读(174) 评论(0) 推荐(0)

How to write a probeContentType() and Usage?
摘要:Files.probeContentType() is an instance of FileTypeDetector class's abstract method String FileTypeDetector.probeContentType(), it's an extension base 阅读全文

posted @ 2016-04-14 12:05 三叁 阅读(270) 评论(0) 推荐(0)

Java NIO Related
摘要:A file's status is 3-valued: So !Files.exists(path) != Files.notExists(path). If both exists and notExists return false, the existence of the file can 阅读全文

posted @ 2016-04-14 10:55 三叁 阅读(248) 评论(0) 推荐(0)

Java BigDecimal Class
摘要:Using BigDecimal to perform precise calculations with floats. BigDecimal is a class type. So declare/construct one BigDecimal is in the form like: Do 阅读全文

posted @ 2016-04-12 16:24 三叁 阅读(290) 评论(0) 推荐(0)

Learning Java IO indexes
摘要:I/O Streams, it simplifies I/O operations, write a whole object out to stream & read back. File I/O and file system operations, including random acces 阅读全文

posted @ 2016-04-11 16:55 三叁 阅读(150) 评论(0) 推荐(0)

Learning Java 8 Syntax (Java in a Nutshell 6th)
摘要:Java learning scripts 阅读全文

posted @ 2016-04-05 16:32 三叁 阅读(262) 评论(0) 推荐(0)

Learning Java characteristics (Java in a Nutshell 6th)
摘要:Java 8 O'Reilly 阅读全文

posted @ 2016-04-05 12:41 三叁 阅读(300) 评论(0) 推荐(0)

导航