Others
文章平均质量分 65
WihauShe
Keep ambitious and modest.
Be different.
Don't get distracted.
展开
-
内核态与中断相关理论
是一种管理平台虚拟化技术的工具,提供了一系列开源的程序接口,其作为中间适配层,屏蔽了底层的hypervisor的细节,为上层管理工具提供了一个统一的、较稳定的接口。:qemu则提供了一个开源的全虚拟化解决方案,几乎可以模拟任何硬件设备,作为用户空间工具与kvm配合使用(kvm负责cpu和内存虚拟化,qemu则负责IO虚拟化)。以Inter cpu为例,操作的权限分为4级:ring 0-3,0级权限最高,3级权限最低,Linux系统仅采用ring0 和 ring3这2个权限。原创 2023-09-08 14:55:34 · 308 阅读 · 0 评论 -
ansible基础使用简介
facts // 使用setup模块获取并使用自定义变量。原创 2023-07-17 11:26:55 · 668 阅读 · 0 评论 -
历心记(无畏)
记夜不能寐之念头于寒冬之下原创 2022-09-21 18:15:26 · 122 阅读 · 1 评论 -
Nginx 实现域名访问以及反向代理
在动静分离的基础概念下,转发nginx请求时可以先一步转发给网关再进行服务器处理,这样可以进一步利用网关的优势。原创 2022-06-15 16:31:58 · 3062 阅读 · 0 评论 -
ssh 连接出现:kex_exchange_identification: read: Connection timed out
SSH 连接服务器ssh -v root@xx.xx.xx.xx (debug ssh)原创 2022-05-14 16:27:46 · 1394 阅读 · 0 评论 -
Office365 Word 打开某个文件就自动卡死关闭
原因 打开某个比较大的长文件之后,会有一个自动定位上次修改地方的标签,如果长期不进行点击或操作,文件会自动卡死异常关闭,那么该文件再次打开自动关闭。(并且换文件名,换文件夹都一样的结果)临时解决 将该文件传到另一台设备或用户,重新转发给自己,再下载下来放在另一个地方(如果放在原来的路径还是同样的结局),最好先更名再进行编辑。坐等bug修复...原创 2022-04-12 21:32:58 · 1631 阅读 · 0 评论 -
CMU Computer Systems: Dynamic Memory Allocation (Basic Concepts)
Dynamic Memory AllocationProgrammers use dynamic memory allocators (such as malloc) to acquire VM at run timeFor data structures whose size is only known at runtimeDynamic memory allocators manage an area of process virtual memory known as the heap原创 2022-03-17 19:00:50 · 531 阅读 · 0 评论 -
CMU Computer Systems: Virtual Memory (Concepts)
Address SpacesLinear address space: Ordered set of contiguous non-negative integer addressesVirtual address space: Set of N=2nN = 2^nN=2n virtual addressPhysical address space: Set of M=2mM= 2^mM=2m physical addressesWhy Virtual MemoryUse main me原创 2022-03-17 16:46:14 · 173 阅读 · 0 评论 -
CMU Computer Systems: System-Level I/O
I/OUnix I/ORIO (robust I/O) packageMetadata, sharing, and redirectionStandard I/OClosing remarksUnix I/O OverviewA Linux file is a sequence of m bytesCool fact: All I/O devices are represented as filesEven the kernel is represented as a fileEl原创 2022-03-15 20:46:18 · 265 阅读 · 0 评论 -
CMU Computer Systems: Exceptional Control Flow (Signals and Nonlocal Jumps)
ECF Exists at All Levels of a SystemExceptionsHardware and operating system kernel softwareProcess Context SwitchHardware timer and kernel softwareSignalsKernel software and application softwareNonlocal jumpsApplication codeECF to th原创 2022-03-15 20:20:34 · 271 阅读 · 0 评论 -
CMU Computer Systems: Linking
Static LinkingPrograms are translated and linked using a compiler driverSource filesSeparately compiled relocatable object filesFully linked executable object fileWhy linkersModularityProgram can be written as a collection of smaller source f原创 2022-03-14 20:25:35 · 524 阅读 · 0 评论 -
CMU Computer Systems: Exceptional Control Flow (Exceptions and Processes)
Control FlowProcessors do only one thingSimply read and execute a sequence of instructions, one at a timeThe sequence is the CPU’s control flowAltering the Control FlowMechanismJumps and branchesCall and returnDifficultyData arrives from原创 2022-03-14 20:37:48 · 241 阅读 · 0 评论 -
CMU Computer Systems: The Memory Hierarchy
MemoryStorage technologies and trendsLocality of referenceCaching in the memory hierarchyRandom-Access Memory (RAM)Key featuresRAM is traditionally packaged as a chipBasic storage unit is normally a cell (one bit per cell)Multiple RAM chips for原创 2022-03-09 19:15:25 · 161 阅读 · 0 评论 -
CMU Computer Systems: Program Optimization
OptimizationOverviewGenerally Useful OptimizationsCode motion/precomputationStrength reductionSharing of common subexpressionsRemoving unnecessary procedure callsOptimization BlockersProcedure callsMemory aliasingExploiting Instruction-Lev原创 2022-03-08 16:34:46 · 209 阅读 · 0 评论 -
CMU Computer Systems: Machine-Level Programming (Advanced)
AdvancedMemory LayoutBuffer OverflowVulnerabilityProtectionUnionsx86-64 Linux Memory LayoutStackRuntime stack (8MB limit)E.g., local variablesHeapDynamically allocated as neededWhen call malloc(), calloc(), new()DataStatistically原创 2022-03-03 14:12:31 · 129 阅读 · 0 评论 -
CMU Computer Systems: Machine-Level Programming (Data)
DataArraysOne-dimensionalMulti-dimensionalMulti-levelStructuresAllocationAccessAlignmentFloating PointArray AllocationBasic PrincipleT A[L]Array of data type T and length LContiguously allocated region of L * sizeof (T) bytes in mem原创 2022-03-03 13:57:11 · 75 阅读 · 0 评论 -
ToDesk 精简版相关数据删除
缘由 由于一些个人原因需要使用ToDesk工具被远程连接,为了省事个人便下载了精简版的,使用完后便要进行卸载,找遍所有应用都没有发现,最后发现精简版本身就是一个可执行程序,不过在查找ToDesk安装目录的时候发现了它的运行数据,顺便也删了吧。删除安装默认目录:C:/Program Files (x86)/数据文件目录:C:/Programdata/ToDesk_lite/...原创 2022-02-25 16:43:42 · 2465 阅读 · 0 评论 -
CMU Computer Systems: Machine-Level Programming (Procedures)
Mechanisms in ProceduresPassing controlTo beggining of procedure codeBack to return pointPassing dataProcedure argumentsReturn valueMemory managementAllocate during procedure executionDeallocate upon returnMechanisms all implemented wit原创 2022-02-24 19:08:51 · 70 阅读 · 0 评论 -
CMU Computer Systems: Machine-Level Programming (Control)
Control: Condition codesProcessor StateInformation about currently executing programTemporary dataLocation of runtime stackLocation of current code control pointStatus of recent testsCondition Codes (Implicit Setting)Single bit registersCF,原创 2022-02-16 16:43:16 · 134 阅读 · 0 评论 -
CMU Computer Systems: Machine-Level Programming (Basic)
BasicHistory of Intel processors and architecturesC, assembly, machine codeAssembly Basics: Registers, operands, moveArithmetic & logical operationsIntel x86 ProcessorsDominate laptop/desktop/server marketEvolutionary designComplex instructi原创 2022-02-16 14:01:59 · 215 阅读 · 0 评论 -
CMU Computer Systems: Floating Points
Fractional binary numbersIEEE Floating Point IEEE Standard 754 Sign + Exp + Frac Driven by numerical concernsPrecision options Single precision: 32bits: 1+8+23 Double precision: 64bits: 1+11+52Normalized Values Exp not 000…00 or 111…11 Exponent原创 2022-01-04 15:09:40 · 157 阅读 · 0 评论 -
CMU Computer Systems: Bits, Bytes, and Integers
Everything is bits Each bit is 0 or 1 By encoding/interpreting sets of bits in various ways Why bits? Electronic Implementation Encoding Byte Values Byte = 8 bits Boolean Algebra Developed by George Boole in 19th Century Operate on Bit Vectors A原创 2022-01-04 15:06:54 · 149 阅读 · 0 评论 -
CMU Computer Systems: Introduction
Course Theme: Abstraction Is Good But Don't Forget Reality Reality #1 Ints are not Integers, Floats are not Reals Computer Arithmetic Reality #2 Gotta Know Assembly Understanding assembly is key to machine-level execution model Realit原创 2022-01-04 15:03:17 · 83 阅读 · 0 评论 -
记一些PAT题目(六)
A1051 Pop Sequence#include <iostream>#include <stack>using namespace std;int main(){ int m, n, k; cin>>m>>n>>k; for (int i=0; i<k; i++){ stack<int> s; int cur = 1, flag = 0; f原创 2021-12-18 17:20:01 · 114 阅读 · 0 评论 -
记一些PAT题目(五)
A1041 Be Unique#include <iostream>#include <vector>using namespace std;;int main(){ vector<int> nums; int n, num[10001]{}; cin>>n; for (int i=0; i<n; i++){ int t; cin>>t; num[t]原创 2021-12-08 16:50:00 · 50 阅读 · 0 评论 -
记一些PAT题目(四)
A1031 Hello World for U#include <iostream>using namespace std;int main(){ string s; cin>>s; int l = s.size(), ll, lb, lr; lb = (l+2)/3 + (l+2)%3; ll = lr = (l+2)/3; for (int i=0; i<ll; i++){ cout<<s原创 2021-11-24 21:30:35 · 415 阅读 · 0 评论 -
记一些PAT题目(三)
A1021 Deepest Root#include <iostream>#include <vector>#include <algorithm>using namespace std;vector<bool> visit;vector<vector<int>> nodes;int maxd = 0;void dfs(int cur, int deep, int &depth){ if (!visi原创 2021-11-11 21:42:26 · 487 阅读 · 1 评论 -
记一些PAT题目(二)
A1011 World Cup Bettingimport java.util.Scanner;public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); double[][] games = new double[3][3]; double profit = 1; for (int i=0; i原创 2021-11-04 16:58:37 · 93 阅读 · 0 评论 -
记一些PAT题目(一)
B1009 说反话给定一句英语,要求编写程序,将句中所有单词按颠倒顺序输出。//个人void reverse(){ char tmp,str[10][80]; int i=0,j=0; while((tmp=getchar())!='\n'){ if(tmp==' '){ str[i][j] = '\0'; ...原创 2021-10-19 16:42:19 · 143 阅读 · 0 评论 -
计算机基础之程序设计基本方法
计算机与程序设计计算机是根据指令操作数据的设备功能性:对数据的操作,表现为数据计算、输入输出处理和结果存储等可编程性:根据一系列指令自动地、可预测地、准确地完成操作者的意图计算机的发展参照摩尔定律,表现为指数方式计算机硬件所依赖的集成电路规模参照摩尔定律发展计算机运行速度因此也接近几何级数快速增长计算机所能高效支撑的各类运算功能不断丰富发展摩尔定律是计算机发展历史上最重要的预测法则Intel公司创始人之一戈登·摩尔在1965年提出单位面积集成电路上可容纳晶体管的数量约每两年翻一原创 2021-03-08 19:27:38 · 993 阅读 · 0 评论 -
偶感(一)
时光依旧不留情面 转眼间又过了三年,对比高中的三年来说,多了一些记忆、阅历、成熟等等,但也是不可详尽的。突然想写些东西记录一下现在的感想,一是没有更新博文感觉少了点什么,二是确实也想说说这几年的时光。室友说懒得写博客,繁琐又枯燥,还不如学习新知识或者捣鼓新技术来的实在,可是我却一入博客就感觉有点控制不住,就算很忙,忙到没有时间空闲,依然要抽出时间写博...原创 2019-09-14 14:23:25 · 134 阅读 · 0 评论 -
IT行业之路
现在的发展原创 2018-10-22 22:05:34 · 115 阅读 · 0 评论 -
记两次关于DNS_PROBE_FINISHED_NO_INTERNET的问题(校园网连接错误)
问题1、第一次个人在连接校园网客户端时候一直无法连接,尽管对错误代码提示进行了搜索与更正仍然无效。2、在使用自动获取IP、DNS的过程中,chrome、qq等软件无法上网,虽然在内网中可以访问,但无法访问外网,一直提示dns解析错误(无法与主dns服务器通信)。尝试 个人查找了一些并进行了尝试,但是没有任何效果。1、手动添加dns解析服务器,阿里之类的解析服务器...原创 2019-12-30 14:07:56 · 5799 阅读 · 0 评论 -
\302\226git@github.com: Permission denied (publickey).与 error: failed to push some refs to ...
记述 个人因为需要将一些写过的项目上传到github上面,起先遇到了一些权限问题。将公私秘钥分配好之后: ssh -T git@github.com 提示连接成功,但是在push 的时候仍然遇到权限问题\302\226git@github.com: Permission denied (publickey).fatal: could n...原创 2019-11-24 15:26:08 · 2292 阅读 · 0 评论 -
连接Win10 的热点后提示没有网络
缘由 个人原来是用着没有问题的,但在装完XXX之后,开启热点后,无论使用电脑还是手机连接都会显示没有网络。解决个人先尝试了开启Win10热点服务、Wire auto config、Wlan Auto Config服务,没有任何效果之后又尝试了设置热点连接的IP和DNS均为自动获取,还是没有效果,也开启了宽带连接网络(以太网)的共享所选的家庭网络连接为热点连接之...原创 2019-05-19 21:00:31 · 18069 阅读 · 2 评论 -
TestLink 安装出现'table db_version not exsisting' 错误
缘由在安装TestLink软件的时候,输入数据库参数后,进行安装,总是出现以下错误The last error to occur was Table ‘testlink.db_version’ doesn’t exist解决方案...原创 2019-04-11 13:11:50 · 738 阅读 · 0 评论