随笔分类 -  Language Syntaxes

ftrace: tracing linux function calls
摘要:First confirm that you have root privilege. Second check the config of kernel that you have the configs on: Last you confirm you have your debugfs/tra 阅读全文

posted @ 2018-10-28 16:26 三叁 阅读(197) 评论(0) 推荐(0)

event based: libev libevent libuv
摘要:libev First let's talk about libev, it is a lib used in ss. The coding style of libev is ugly. To see man page of libev by: man ./ev.3 3 files need to 阅读全文

posted @ 2018-10-19 03:13 三叁 阅读(362) 评论(0) 推荐(0)

Systemtap: learning notes
摘要:Before using stap, the kernel-debuginfo-$(uname -r), kernel-debuginfo-common-$(uname -m)-$(uname -r) and kernel-devel-$(uname -r) should be installed. 阅读全文

posted @ 2018-07-15 18:48 三叁 阅读(283) 评论(0) 推荐(0)

golang: impressed by its cross compiling possibilities
摘要:However till now golang's debug functionality seems far from okay. During debug you cannot print map objects. And also from debugging related aspects, 阅读全文

posted @ 2018-07-08 07:48 三叁 阅读(125) 评论(0) 推荐(0)

Crossbuild: with crosstool-ng
摘要:Before preceding, several things need to be checked: There are too many tutorials on how to build with ct-ng, I only list several useful steps for fut 阅读全文

posted @ 2018-07-04 06:35 三叁 阅读(308) 评论(0) 推荐(0)

LeetCode: fault list
摘要:1. malloc memory should always use the following form: 2. memset memory to 0 should use the form: 3. malloc(0) might also return address which is non- 阅读全文

posted @ 2018-06-02 02:09 三叁 阅读(219) 评论(0) 推荐(0)

Rule of Programming: C
摘要:My summary after reading this. Before doing large memory writes: _mm*_stream_s[i,s,d]*: non-temporal memory store: When data is produced and not (imme 阅读全文

posted @ 2018-05-24 12:04 三叁 阅读(165) 评论(0) 推荐(0)

CPU: nomenclature
摘要:Some definitive names: 1. Socket: the thing that plug into the motherboard slot; 2. Core: multiple counts of these hardware things are included in 1 c 阅读全文

posted @ 2018-05-24 05:24 三叁 阅读(160) 评论(0) 推荐(0)

GNU Autoconf: Intro
摘要:some frequently used AC macros: AC_INIT :must AC_OUTPUT :must AC_PREREQ :determine ac version so that needed features are included AC_CONFIG_SRCDIR :d 阅读全文

posted @ 2018-03-06 11:58 三叁 阅读(263) 评论(0) 推荐(0)

C: release & debug differences (might apply to all programming languages)
摘要:Sometimes we build a program as release and when debugging, some variables cannot be printed out, and displayed as optimized out. That is because the 阅读全文

posted @ 2017-12-21 20:12 三叁 阅读(172) 评论(0) 推荐(0)

PHP: Learning Notes
摘要:from here. php basics in PHP, variables are defined as $_alphanum variables should always prefixed a $ variables defined/assigned outside of a functio 阅读全文

posted @ 2017-11-24 17:57 三叁 阅读(193) 评论(0) 推荐(0)

Composer: PHP package manager
摘要:To use composer, first system must satisfy php environment: To install composer, try either: enable packagist repo globally: [its speed seems not fast 阅读全文

posted @ 2017-11-24 11:31 三叁 阅读(451) 评论(0) 推荐(0)

net-snmp: introduction
摘要:SNMP is a protocol that enables server remote-info-exchange. Which according to wikipedia: it [collecting and organizing information about managed dev 阅读全文

posted @ 2017-10-09 18:11 三叁 阅读(468) 评论(0) 推荐(0)

GNU make: Learning notes
摘要:before talking about Makefiles, compilers are important pre-knowledge. first compile a executable ELF file, by: if we are going to compile one/several 阅读全文

posted @ 2017-04-12 15:22 三叁 阅读(180) 评论(0) 推荐(0)

Maven: Usage
摘要:Maven, is actually a java project manager.. Installing maven in windows need to set system environment vars like JAVA_HOME and PATH.. And it is rather 阅读全文

posted @ 2017-03-19 21:07 三叁 阅读(300) 评论(0) 推荐(0)

DNS: Intro & Basics
摘要:Find the authoritative server of a domain, by: find actual IP of a sub-domain, by: What is authoritative server of dns? [Quote]An authoritative name s 阅读全文

posted @ 2017-02-09 16:52 三叁 阅读(197) 评论(0) 推荐(0)

Digi. Certificates: Key pairs usages
摘要:In short, we have some sort of algorithms to gen pair of private and public keys. The public key is stored in a certificate and the private key is usu 阅读全文

posted @ 2016-12-19 17:39 三叁 阅读(446) 评论(0) 推荐(0)

Managed Switch: Confs
摘要:shortcuts: c-w: delete word before c-a: move to first char c-y: delete everything after cursor c-z: exit to user-view c-n, c-p: trivial c-b, c-f: back 阅读全文

posted @ 2016-12-06 15:37 三叁 阅读(552) 评论(0) 推荐(0)

C89, C99, C11: All the specifics that I know
摘要:before anything.. sizeof is an operand! sizeof is an operand! sizeof is an operand! 重要なことは三回にしませんね! int *ptr; sizeof *ptr; = sizeof (int); the followi 阅读全文

posted @ 2016-10-28 11:53 三叁 阅读(264) 评论(0) 推荐(0)

C: strcpy & memcpy & scanf/printf format specifier.. escape characters..
摘要:well, strcpy differs from memcpy in that it stops copy at \0 the format specifier is a string.. which can be assigned to a char*.. like.. strcpy(a,"%d 阅读全文

posted @ 2016-09-03 22:10 三叁 阅读(264) 评论(0) 推荐(0)

导航