摘要: git stash clear/drop 后代码如何恢复 事情经过 上班过程中跟某位同学沟通后,需要确认下另外一个分支上代码逻辑 然后就使用了idea stash 存储了当前的代码 切换分支确认逻辑后就切回当前分支 本来要进行 idea unstash 的,然后突然神游了,点击了clear 并且确认 阅读全文
posted @ 2021-04-27 21:45 铵铵静静 阅读(1619) 评论(0) 推荐(0) 编辑
摘要: RPC(Remote Procedure Call) 远程过程调用 什么是RPC? rpc 是一种计算机协议,让我们就像调用本地方法那样调用远程机器上的程序方法,帮我们屏蔽调用过程中的一些网络细节,提高开发效率。 RPC的基础功能? 屏蔽网络的通讯细节,发包收包等等 屏蔽序列、反序列的细节 提高开发 阅读全文
posted @ 2021-03-28 13:07 铵铵静静 阅读(182) 评论(0) 推荐(0) 编辑
摘要: mysql 总体梳理 阅读全文
posted @ 2021-03-18 08:57 铵铵静静 阅读(41) 评论(0) 推荐(0) 编辑
摘要: /* Return 1 when any odd bit of x equals 1; 0 otherwise. Assume w = 32 */ #include <stdio.h> int any_odd_one(unsigned x) { unsigned mask = 0xAAAAAAAA; 阅读全文
posted @ 2020-06-16 21:28 铵铵静静 阅读(579) 评论(0) 推荐(0) 编辑
摘要: //csapp 2.63, 还原算数右移,逻辑右移 include unsigned srl(unsigned x, int k) { / Perform shift arithmetically / unsigned xsra = (int) x k; //begin this //此处由于转换成 阅读全文
posted @ 2020-05-10 22:40 铵铵静静 阅读(272) 评论(0) 推荐(0) 编辑
摘要: //csapp 2.62 include //算数右移返回1,否则返回0 int int_shifts_are_arithmetic() { //return !~( 1 1); unsigned int w = sizeof(int) (w 1)); } int main(void) { prin 阅读全文
posted @ 2020-05-10 19:21 铵铵静静 阅读(150) 评论(0) 推荐(0) 编辑
摘要: //csapp2.61 编写表达式,下列条件下产生1,否则0,假设x是int类型,不允许使用 ==,!= include typedef unsigned char byte_printer; //打印二进制数据 void show_bytes (byte_printer start, size_t 阅读全文
posted @ 2020-05-10 19:17 铵铵静静 阅读(226) 评论(0) 推荐(0) 编辑
摘要: //csapp 2.60 include include typedef unsigned char char_point; uint32_t replace_byte(uint32_t x, int i, unsigned char b) { if(i 3 || i < 0) { return 1 阅读全文
posted @ 2020-05-08 21:21 铵铵静静 阅读(323) 评论(0) 推荐(0) 编辑
摘要: //csapp 2.59 编写c语言表达式,它由X最低有效字节,和y剩余字节组成 include include int main(void) { int32_t x,y,z; x = 0x89ABCDEF; y = 0x76543210; z = 0x765432EF; printf(" z==r 阅读全文
posted @ 2020-05-08 20:09 铵铵静静 阅读(353) 评论(0) 推荐(0) 编辑
摘要: //csapp 2.58 include include include typedef unsigned char char_point; / 判断机器类型,大端机返回0, 小端机返回1,其他返回 1 author : date : 2020 5 7 20:54:03 / int is_littl 阅读全文
posted @ 2020-05-07 22:15 铵铵静静 阅读(199) 评论(0) 推荐(0) 编辑