自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(102)
  • 资源 (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 358

原创 辨析三种一致性:缓存一致、内存一致、数据一致

一致性是一个深刻而复杂的问题,这篇文章是我目前的粗浅理解,如果发现理解错误还会继续更新 目前这篇文章只是记录我自己的理解,并没有考虑文章的可读性本文由giantpoplar发表于CSDN,未经允许不得转载。缓存一致性cache coherence 的coherence这个词猜测是体系结构圈为了和memory consistency做区分,用了coherence这个...

2018-06-16 13:08:55 10115

原创 计算范式

尝试对并行计算,分布式计算,云计算,串行计算,异构计算等概念进行梳理

2016-07-09 10:12:33 10413 1

原创 [开发杂项][编辑器][代码阅读]ctags&vim

ctags 101

2022-08-01 19:59:38 221

原创 [开发杂项][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 161

原创 [开发杂项][Ubuntu][常用命令杂项]

显示屏幕分辨率xrandrxdpyinfo

2021-12-28 17:40:51 368

原创 [开发杂项][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 116

原创 [开发杂项][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 101

原创 [日常办公][杂项][vscode]tab space

在“文件->首选项->设置”的“用户设置”里添加“editor.detectIndentation”: false,“editor.renderControlCharacters”: true,“editor.renderWhitespace”: “all”,第一个改成false目的是:不要检测到第一个是tab,就后面都用tab,这样会覆盖默认设置。第2 3个显示 制表符是→ 4个空格是…...

2021-04-26 22:43:30 132

原创 [开发杂项][编译][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 163

原创 [开发杂项][调试]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 139

转载 [开发杂项][编译][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 101

原创 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 99

原创 [日常办公][杂项][windows]常用命令

driverspnputil /enum-dirverspnputil /delete-driver <published name> /uninstall /force

2021-04-06 17:49:04 94

原创 [日常办公][杂项][硬盘格式化]ubuntu& windows

ubuntugpartedwipewindowsdiskpartselectcleanexit

2021-04-06 17:47:28 148

原创 [日常办公][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 121

原创 [开发杂项][编译][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 218

转载 [开发杂项][编译][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 249

原创 [日常办公][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 407

原创 [日常办公][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 93

原创 [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 138 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 240

原创 [日常办公][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 375

原创 [日常办公][反向代理]ssh 反向代理

auto ssh,自动扫描,可能会被网管封ip目标机器上操作ssh-keygen -t 'rsa' -C '[email protected]' #不填内容拷贝到跳板机[email protected] [email protected]目标机器autossh -p 22 -M 6777 -fNR 9999:localhost:22 [email protected]在跳板机上vim /etc/ssh/sshd_configGatewayP

2020-09-06 13:56:29 112

原创 [日常办公][code manage]git cheatsheet

Git-Cheetsheet基本使用版本回退、切换本地分支管理在当前分支上合并分支合并冲突的解决分支数目和用途的设置修复bug的流程示例开发新feature的流程示例远程仓库及多人协作问题基本操作多人协作推送更新,以及冲突解决rebasepr标签管理打patch基本使用配置用户名邮箱$ git config --global user.name "Your Name"$ git config --global user.email "[email protected]"本地创建仓库$ mkdi

2020-06-02 18:52:03 284

原创 [算法与数据结构][随机数]泊松分布随机数生成的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 2325

原创 再谈并行与分布式计算

并行模型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 378

原创 [方法论]值得持续关注的:人、实验室、组织;会议列表;资源列表

人:e.g. 周靖人e.g. 陈海波会议:粗看细读关注方向等等

2020-02-29 23:55:54 89

原创 [方法论]快速进入小领域的方法

[方法论]快速进入小领域的方法

2020-02-29 23:47:20 123

翻译 [算法与数据结构][知识点]名词解释

图算法图的遍历广度优先搜索深度优先搜索最短路径问题定义:Dijkstra算法输入输出算法过程辅助数据结构Bellman-Ford算法Floyd算法SPFA算法最小生成树问题定义Prim算法Kruscal算法拓扑排序问题定义算法二分图的最大匹配问题定义匈牙利算法最大流问题定义增广算法压入重标,KM算法图着色问题定义...

2020-02-29 23:37:01 523

原创 [算法与数据结构][知识点/题目][leetcode111/oj111]名称

tobefinished

2020-02-29 23:32:44 116

原创 [读代码学设计][MXNET][API设计]编程模型

命令式符号式混合式

2020-02-29 23:30:40 88

原创 [读代码学设计][MXNET][语言技巧][C++]回调函数

to be finished

2020-02-29 23:27:52 90

转载 C++ Boost JSON解析库的使用

https://www.miaoerduo.com/c/c-boost-json解析库的使用.html

2019-07-25 10:20:45 836

原创 [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 149

原创 [开发杂项][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 140

原创 [system-track][computing][GPU][Intel HD 530 Gen9] architecture and performance issue

intel

2019-03-22 11:43:38 52

原创 [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 268

原创 [system-track][computing][cuda]cuda : performance issue

cuda : performance issuememory coalescing. about global memoryshared memory. about on-chip memorybranch divergence / threads divergencetutorial frommemory coalescing. about global memoryhttps://devb...

2019-03-12 20:21:52 179

原创 微软--21世纪的计算--Day1见闻

对微软亚研景仰已久啦,今年的“21世纪的计算”恰逢MSRA成立20周年,正好在北京举办,学校竟然还有免费的参会名额,看到年级群里通知的时候开心的不得了,感觉这次真是天时地利人和齐聚,必须走一波去亲眼见一见各位大佬们,立马注册了大会。看了一下大会日程,发现最想见到真人的都在Day1,很想听Systems and Networking这个session,一定要见见MSRA系统组大佬的真容;Day2属...

2018-11-06 23:45:12 476 1

ksoap的jar文件&打包后的ipPhysicalAdress文件

ksoap是java中实现webservice的一种方式 ipPhysicalAdress是一个已经打好包的可执行jar文件 可以方便的查询ip地址的物理地址

2014-07-27

Java编程思想第四版源码&习题答案

关于《Java编程思想第四版》这本书,它是java语言的经典书籍 共22章,包括操作符、控制执行流程、访问权限控制、复用类、多态、接口、通过异常处理错误、字符串、泛型、数组、容器深入研究、JavaI/O系统、枚举类型、并发以及图形化用户界面等内容。这些丰富的内容,包含了Java语言基础语法以及高级特性,适合各个层次的Java程序员阅读 这里提供了书籍所有例程和课后习题答案

2014-07-27

Sublime Text3

Sublime Text3是一个代码编辑器也是html文本编辑器,界面漂亮,美观,被称为“一款性感的编辑器”,具有一些很酷的功能,比如,迷你地图,立即编译,支持命令操作;扩展性高,比如可以装各种格式化代码的插件,比如js,html,可将压缩过的代码迅速格式化;代码高亮显示,自动补充;支持语言十分广泛;安装文件只有7M多,安装后也只有十几M

2014-07-27

微软、谷歌、百度、腾讯等各大公司笔试面试题整理全版

微软、谷歌、百度、腾讯等各大公司笔试面试题整理全版 pdf资源

2014-07-27

php有关资源

PHP和MySQL WEB开发(4th)源码 php中文手册 php常用函数 yii框架源码 yii框架分析

2014-07-27

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除