- 博客(104)
- 资源 (5)
- 收藏
- 关注

原创 [English learning][sentence] good sentence
What’s in your hands, I think and hope, is intelligence: the ability to see the machine as more than when you were first led up to it, that you can make it more.Alan J. Perlis (April 1, 1922-February 7, 1990)Structure and Interpretation of Computer Pro.
2022-03-21 21:52:08
456

原创 辨析三种一致性:缓存一致、内存一致、数据一致
一致性是一个深刻而复杂的问题,这篇文章是我目前的粗浅理解,如果发现理解错误还会继续更新 目前这篇文章只是记录我自己的理解,并没有考虑文章的可读性本文由giantpoplar发表于优快云,未经允许不得转载。缓存一致性cache coherence 的coherence这个词猜测是体系结构圈为了和memory consistency做区分,用了coherence这个...
2018-06-16 13:08:55
10526
原创 [生活杂项][运动教程]自由泳
https://v.youku.com/v_show/id_XMzgzMjkwMzg0MA==.html?spm=a2h0k.11417342.soresults.dtitlehttps://v.youku.com/v_show/id_XMzgxNjM2NjY4NA==.html?spm=a2h0k.11417342.soresults.dtitle
2025-02-18 21:43:50
309
原创 [开发杂项][Ubuntu][消息编码]
Asymmetric encryptionFor Asymmetric encryption you must first generate your private key and extract the public key.openssl genrsa -aes256 -out c_passwd_prv.key 8192openssl rsa -in c_passwd_prv.key -pubout -out c_passwd_pub.keyTo encrypt:openssl rsaut
2022-04-19 22:27:26
221
原创 [开发杂项][VS Code]remote-ssd retry failed
on server#reference: https://github.com/microsoft/vscode-remote-release/issues/4743HASH=2d23c42a936db1c7b3b06f918cde29561cc47cd6cd ~/.vscode-server/bin/mkdir ${HASH} && cd ${HASH}wget https://vscode.cdn.azure.cn/stable/${HASH}/vscode-server-li
2021-08-25 16:59:31
148
原创 [开发杂项][C/C++]g++ basics
add.hadd.cppsub.hsub.cppmain.cpp//预处理指令g++ -E main.cpp -o main.i//编译成汇编指令g++ -S main.i -o main.s//由.o文件创建静态库g++ -c add.cpp sub.cpp ar cr libmymath.a add.o sub.o//查看信息ar tv libmylib.a//使用静态库g++ -o main main.cpp -L. -lmymath-fPI
2021-07-18 18:24:27
136
原创 [日常办公][杂项][vscode]tab space
在“文件->首选项->设置”的“用户设置”里添加“editor.detectIndentation”: false,“editor.renderControlCharacters”: true,“editor.renderWhitespace”: “all”,第一个改成false目的是:不要检测到第一个是tab,就后面都用tab,这样会覆盖默认设置。第2 3个显示 制表符是→ 4个空格是…...
2021-04-26 22:43:30
183
原创 [开发杂项][编译][C/C++]function hook
#include <cstdint>#include <iostream>#define ALIAS(fn) __attribute__ ((alias (#fn), used))static char buf[256];extern "C"{ void* my_malloc(size_t size) { std::cout << "custom malloc\n"; return buf; }
2021-04-25 21:44:51
210
原创 [开发杂项][调试]debug into kernel
problema blocked process on servergdb get few infomationlog get few infomationtop/ps check pid, check cpu utilizationstrace check syscallpstrack print userspace call stackWCHAN, syscallman ps | grep WCHANps -flp pidps -flp pidcat /proc/pid/wch
2021-04-25 21:36:17
197
转载 [开发杂项][编译][C/C++]Suppressing GCC Warnings
#if ((__GNUC__ * 100) + __GNUC_MINOR__) >= 402#define GCC_DIAG_STR(s) #s#define GCC_DIAG_JOINSTR(x,y) GCC_DIAG_STR(x ## y)# define GCC_DIAG_DO_PRAGMA(x) _Pragma (#x)# define GCC_DIAG_PRAGMA(x) GCC_DIAG_DO_PRAGMA(GCC diagnostic x)# if ((__GNUC__ * 1
2021-04-23 19:46:18
132
原创 counting cycle
.section .datacycle_str: .asciz "cycle count is: %lu\n"long: .quad 5.section .text.globl _start_start: # measure base = mov + rdtsc xorq %rax, %rax rdtsc # write time stamp to rax mo
2021-04-22 23:17:14
129
原创 [日常办公][杂项][windows]常用命令
driverspnputil /enum-dirverspnputil /delete-driver <published name> /uninstall /force
2021-04-06 17:49:04
125
原创 [日常办公][杂项][硬盘格式化]ubuntu& windows
ubuntugpartedwipewindowsdiskpartselectcleanexit
2021-04-06 17:47:28
183
原创 [日常办公][shell]常用代码段
文章目录数组, 字符串匹配查找并kill进程数组, 字符串匹配arr=("1995" "1995x" "1995ee" "1995ss" "199")for i in ${arr[*]}; do if [[ "${i}" =~ "1995".* ]]; then echo "matched $i" if [[ $i = "1995ee" ]]; then echo -e "
2021-04-06 17:37:40
156
原创 [开发杂项][编译][C/C++]pkg-config & cmake & configure
文章目录whyuse .pcautoconf macrocomon usage patterncommon usage pattern: gcccommon usage pattern: autoconf & automakecommon usage pattern: cmakerefswhyhard to integrate libraries—> .pc file provide meta dataprefix=/usr/localexec_prefix=${prefix}in
2021-03-28 13:06:52
262
转载 [开发杂项][编译][C/C++]Suppressing GCC Warnings by Patrick Horgan
http://dbp-consulting.com/tutorials/SuppressingGCCWarnings.htmlWhy this was writtenThis article was originally written by me as part of the Boost Developer Warning Guidelines along with a lot of other information about dealing with warnings from GCC. My
2021-03-24 23:16:46
332
原创 [日常办公][Ubuntu]模拟鼠标点击
ubuntu 20.04 gnome + xsudo apt install xdotoolusagexdotool getmouselocation # get locationxdotool mousemove 153 63 # move to (x,y)=(153,63)xdotool click 1 #single click left button# 2 for middle, 3 for rightxdotool click 1 click 1 #double cli
2021-01-30 17:33:30
517
原创 [日常办公][ssh]cheatsheet
ssh mount fshttps://askubuntu.com/questions/412477/mount-remote-directory-using-sshhttps://linuxize.com/post/how-to-use-sshfs-to-mount-remote-directories-over-ssh/
2021-01-23 22:55:24
124
原创 [system-track][comm]bus in computer
Internal buses, or local buse.g. parallelPCI (differenciate to PCI Express)Peripheral Component Interconnecte.g. serialSerial ATA (SATA)connects host bus adapters to mass storage devices such as hard disk drives, optical drives, and solid-state dr
2021-01-22 18:06:06
184
1
原创 [日常办公][ubuntu 20.04]launch .sh by double click on Desktop
A. launch a trival .sh w/o sudocreate a .desktop file on ~/Desktop/e.g. Lauch.desktop[Desktop Entry]Version=1.0Name=LauchComment=LauchExec=/home/test/ws/launch.shIcon=/home/test/smile.pngTerminal=falseType=ApplicationCategories=Application;s
2021-01-22 18:00:57
312
原创 [日常办公][Ubuntu]proxy settings
bash proxyexport http_proxy=XXXexport https_proxy=XXXapt proxysudo vim /etc/apt/apt.confAcquire::http::proxy "http://XXX";Acquire::https::proxy "https://XXX";Acquire::ftp::proxy "ftp://XXX";Acquire::socks::proxy "socks://XXX";docker proxymkdir
2021-01-22 17:56:13
459
原创 [日常办公][反向代理]ssh 反向代理
auto ssh,自动扫描,可能会被网管封ip目标机器上操作ssh-keygen -t 'rsa' -C 'user-name-on-target-machine@10.A.B.C' #不填内容拷贝到跳板机root@175.X.X.Xssh-copy-id root@175.X.X.X目标机器autossh -p 22 -M 6777 -fNR 9999:localhost:22 root@175.X.X.X在跳板机上vim /etc/ssh/sshd_configGatewayP
2020-09-06 13:56:29
182
原创 [日常办公][code manage]git cheatsheet
Git-Cheetsheet基本使用版本回退、切换本地分支管理在当前分支上合并分支合并冲突的解决分支数目和用途的设置修复bug的流程示例开发新feature的流程示例远程仓库及多人协作问题基本操作多人协作推送更新,以及冲突解决rebasepr标签管理打patch基本使用配置用户名邮箱$ git config --global user.name "Your Name"$ git config --global user.email "email@example.com"本地创建仓库$ mkdi
2020-06-02 18:52:03
329
原创 [算法与数据结构][随机数]泊松分布随机数生成的4种方法
#include<cmath> //exp#include<cstdlib> //rand_max, rand()#include<ctime> //time()#include<vector>#include<random>/* * timing util * */#include <chrono>#...
2020-03-29 16:14:52
2502
原创 再谈并行与分布式计算
并行模型https://en.wikipedia.org/wiki/Communicating_sequential_processeshttps://www.tutorialspoint.com/parallel_algorithm/parallel_algorithm_models.htmhttps://en.wikipedia.org/wiki/Parallel_programming...
2020-03-01 17:53:58
429
翻译 [算法与数据结构][知识点]名词解释
图算法图的遍历广度优先搜索深度优先搜索最短路径问题定义:Dijkstra算法输入输出算法过程辅助数据结构Bellman-Ford算法Floyd算法SPFA算法最小生成树问题定义Prim算法Kruscal算法拓扑排序问题定义算法二分图的最大匹配问题定义匈牙利算法最大流问题定义增广算法压入重标,KM算法图着色问题定义...
2020-02-29 23:37:01
974
原创 [system-track][computing][cuda] branch divergence and __syncthreads
#include<stdio.h>#include<cuda_runtime.h>__global__ void branch_divergence_0(){ __shared__ int counter; if(threadIdx.x == 0 ) counter = 0; int c = 0; whi...
2019-07-05 18:05:49
191
原创 [开发杂项][opencl]clCreateProgramFromBinary
#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#define CL_USE_DEPRECATED_OPENCL_1_2_APIS#include <CL/cl.h>const char *source = "__...
2019-04-23 21:02:03
203
原创 [system-track][computing][GPU][Intel HD 530 Gen9] architecture and performance issue
intel
2019-03-22 11:43:38
88
原创 [system-track][computing][cuda]parallel reduce/scan/qsort
recursive versionvoid exclusive_scan_recursive(int* start, int* end, int* output, int* scratch){ int N = end - start; if (N == 0) return; else if (N == 1) { output[0] = 0; return; } // sum...
2019-03-14 21:26:42
325
ksoap的jar文件&打包后的ipPhysicalAdress文件
2014-07-27
Java编程思想第四版源码&习题答案
2014-07-27
Sublime Text3
2014-07-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人