随笔分类 -  Language Syntaxes

Zookeeper: configuring on centos7
摘要:this passage is referenced, appreciated. ZooKeeper installation: to share my_data between clients.. create /zk_test my_dataget /zk_testdelete /zk_test 阅读全文

posted @ 2016-08-09 17:07 三叁 阅读(169) 评论(0) 推荐(0)

GCC: compilation process..
摘要:gcc -I -L -l -D -g -O -o -Wall about the -0 option.. ref to the following table.. Set the compiler's optimization level. +increase ++increase more +++ 阅读全文

posted @ 2016-08-04 20:07 三叁 阅读(315) 评论(0) 推荐(0)

C: define many functions using predefine..
摘要:/* Defines COUNTER. There must be exactly one such definition at file scope * within a program. */ #define COVERAGE_DEFINE(COUNTER) \ DEFINE_STATIC_PE... 阅读全文

posted @ 2016-08-02 21:56 三叁 阅读(229) 评论(0) 推荐(0)

cURL: Learning..
摘要:CURL usage.. -v, -m, -H, -I, -s, --connect-timeout, -x, -X GET|POST, -d, -T, -o. --retry, -u curl [options] [uri] 阅读全文

posted @ 2016-08-01 14:24 三叁 阅读(134) 评论(0) 推荐(0)

pkgmgmt: Comparison between different Linux Systems..
摘要:found this page.. already done by precedents.. installation: searching.. update db & upgrade.. install dependencies.. getting source code: remove sing 阅读全文

posted @ 2016-07-31 11:18 三叁 阅读(285) 评论(0) 推荐(0)

asm: Writing Inline Assembly
摘要:A usual IA includes these parts: the first line includes asm [volatile], it means the contents in the following parenthesis is IA. the AssblerTemplate 阅读全文

posted @ 2016-07-20 12:14 三叁 阅读(152) 评论(0) 推荐(0)

About struct in C
摘要:something new: to set value in struct can be in case i cannot view picture.. i write the snippet here .. the dot punctuation means the member of the s 阅读全文

posted @ 2016-07-19 13:47 三叁 阅读(266) 评论(0) 推荐(0)

C/C++ kubetu
摘要:reference sign & use predefine in c, but const in c++ 阅读全文

posted @ 2016-07-17 14:31 三叁 阅读(130) 评论(0) 推荐(0)

OVS - commands
摘要:journalctl -t ovs-vswitchd ovs-vsctl show ovs-ofctl show br0 set vlanid ovs-vsctl set port eth0 tag=100 阅读全文

posted @ 2016-07-14 21:26 三叁 阅读(182) 评论(0) 推荐(0)

Using Python defined functions in packages ..
摘要:Using Vim.. Python programing seems easier because YCM helps presenting all the arguments required in its order.. But there's one more problem that's 阅读全文

posted @ 2016-05-27 17:15 三叁 阅读(142) 评论(0) 推荐(0)

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)

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 三叁 阅读(134) 评论(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 三叁 阅读(218) 评论(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 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 三叁 阅读(166) 评论(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)

导航