自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Coding

Coding the Future

  • 博客(21)
  • 资源 (2)
  • 收藏
  • 关注

原创 Ubuntu操作系统常用shell命令

Ubuntu操作系统常用的命令行操作

2021-04-08 19:32:37 355

原创 Linux内核使用中遇到的问题汇总 (Install ncurses (ncurses-devel), fatal error: openssl/opensslv.h)

此处汇总一下在使用linux遇到的一些常用错误1、make menuconfig错误 (...Install ncurses (ncurses-devel) and try again...)在ubuntu操作系统上进行内核编译时,执行make menuconfig进行配置时候,可能会出现如下错误:问题:缺ncurses库Unable to find the ncurses libraries or therequired header files.‘make menuconfig’

2020-12-03 11:31:35 1256

原创 PM设备 (NVM)持久内存

概念:具有DRAM的访问速度,同时具有SSD的非易失性。不足之处:与SSD一样存储单元具有磨损次数的限制。NVM非易失性存储器特性:非易失、可字节访问、容量大等特性典型的内存文件系统:PMFS NOVA SIMFS(未开源)未完......

2020-10-16 16:16:46 1361

转载 混合易失和非易失主存的日志结构文件系统NOVA[FAST‘16](前言部分到实现部分)

前言写这篇博文的初衷是NOVA采用了Eurosys‘14文章system software for persistent memory相同的实验平台PMEP(Persistent Memory Emulation Platform)。此篇文章主要基于混合易失/非易失内存主内存上的日志结构文件系统,采用DRAM模拟的非易失内存PM(Persistent Memory),具有DAX(Direct Access)功能,可通过mmap直接将PM设备映射到应用程序地址空间中。本篇文章是我今年四月份精读过的一篇好文

2020-10-16 15:51:31 348

转载 Linux下静态库.a与.so库文件的生成与使用

编辑四个文件:A1.c A2.c A.h test.cA1.c:#include <stdio.h>void print1(int arg){ printf("A1 print arg:%d\n",arg);}A2.c:#include <stdio.h>void print2(char *arg){ printf("A2 ...

2019-11-06 15:58:12 405

原创 ubuntu更换高版本linux内核后无法进入系统

一、出现问题的原因今天自己给ubuntu16.04换一个高版本的linux内核,从4.4.4换到了4.15.0。换内核的过程中,我直接将低版本内核的编译配置文件直接复制到了高版本的内核代码中,直接进行编译,虽然在编译过程中有一些warning,但是编译还是顺利通过了。然后就内核安装,命令行设置为了默认启动内核高版本;然后将电脑重启,等了很久ssh都连不上,然后一看发现没有进入系统,高版本的内核...

2019-07-23 17:07:45 10786

转载 Ubuntu开机进入GRUB手动引导

问题描述:在引导彻底崩溃的情况下我们曾尝试使用grub rescue手动寻找引导进入系统。这次的情况有些不同,开机找到了grub,但grub无法正确引导系统。问题特征:开机后进入以下界面:GNU GRUB version x.x.xxxxxMinimal BASH-like line editing is supported...grub >第一步:找到根目录和GRUB使用...

2019-07-23 16:51:19 23493 14

转载 error: unrecognized command line option '-fstack-protector-strong'解决办法

原文地址:https://blog.csdn.net/u014134262/article/details/50402928今天编译kernel 的时候,报error: unrecognized command line option '-fstack-protector-strong'的错误!这是这么fstack-protector-strong,搜了一圈也不大明白什么意思,不过最后是解...

2019-07-22 20:10:01 6726

原创 ubuntu 16.04配置2:ubuntu 16.04更新国内下载源(软件源)、 linux源码下载网站 and linux kernel 在线查看

1. ubuntu 16.04更新国内下载源(软件源)见之间我发的帖子https://blog.csdn.net/zl10086111/article/details/829174622. linux kernel源码下载官方下载源网址 https://www.kernel.org/pub/ 官方下载源git https://git.kern...

2019-05-06 20:18:08 847

原创 ubuntu 16.04配置1:ubuntu安装的进入时区时卡死的问题

       ubuntu 16.04安装好了之后,需要配置一下ip等等各种事就自行查询资料了,推荐如下两个ubuntu安装包下载地址。(ps: 本人一刚开始接触linux的时候,就使用的ubuntu,所以在此介绍自己熟悉的ubuntu)。        中科大开源镜像站:http://mirrors.ustc.edu.cn/ubuntu-releases        浙江大学开源镜像...

2018-10-01 21:56:33 2879

原创 ubuntu 13.10 / 14.04 / 16.04 国内下载源更新(软件源更换),下载源更换,更新apt 源,更新源sources.list

由于ubuntu自带的下载源主要是国外的,国内用户使用起来速度比较慢,现在将国内几个主要的ubuntu下载源列出来;你可以任选一个可用的下载源。本文更新下载源采用的是控制台命令行更换,ubuntu16.04中下载源文件source.list存放在/etc/apt/,直接vi /etc/apt/source.list就可以编辑文件。在更新下载源之前最好把官方的下载源进行备份。备份...

2018-10-01 17:45:33 10071 1

原创 linux 系统进行make menuconfig的时候出错

错误信息: (ps: 当前系统:Linux labpc 4.13.0-36-generic #40~16.04.1-Ubuntu SMP Fri Feb 16 23:25:58 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux)HOSTCC scripts/kconfig/mconf.oIn file included from scripts/kc...

2018-09-25 16:14:06 1955

转载 原码、反码、补码知识详细讲解(此作者是我找到的讲的最细最明白的一个)

本篇文章讲解了计算机的原码, 反码和补码. 并且进行了深入探求了为何要使用反码和补码, 以及更进一步的论证了为何可以用反码, 补码的加法计算原码的减法. 论证部分如有不对的地方请各位牛人帮忙指正! 希望本文对大家学习计算机基础有所帮助!一. 机器数和真值在学习原码, 反码和补码之前, 需要先了解机器数和真值的概念.1、机器数一个数在计算机中的二进制表示形式, 叫做这个数的机器数。机器数是带符号...

2018-07-04 09:30:44 265227 100

转载 阅读赵炯的《Linux内核完全注释》之前必须知道的!

转载自 点击打开链接Linux 0.11虽然不是什么“珠穆朗玛峰”,但它肯定还是“华山”或“泰山”。虽然有路但你还是需要最基本的努力和花费一定的代价才能“攀登”上去。1. PC兼容机硬件工作原理(比如8259A,8253, 8042,UART等硬件);2. Intel 32位 运行模式工作原理,寻址方式;3. 传统C语言;4. 一些Intel asm基础。5. 会使用Linux操作系统,懂得Lin...

2018-06-29 16:14:29 1310

原创 excel中在一列中添加时间(hh:mm:ss)同时按照秒递增。

      当我们在使用excel记录数据时,如果需要记录每行数据有关时间的信息,应该怎么样来添加昵?      本例子以Microsoft Office Excel 2016为实验:       1.打开excel 2016,任选一列,鼠标右键设置列属性为“自定义”,然后点击确定。                                                          ...

2018-03-18 21:35:43 13803

原创 NOI题库 1.1 10超级玛丽游戏

描述超级玛丽是一个非常经典的游戏。请你用字符画的形式输出超级玛丽中的一个场景。输入无。输出如样例所示。样例输入(无)样例输出               ********              ************              ####....#.            #..###.....##....

2017-11-21 10:07:15 7389 2

转载 c语言测试程序执行时间

http://blog.csdn.NET/asaasa66/article/details/6543929测试程序运行时间-time.h1.计时C/C++中的计时函数是clock(),而与其相关的数据类型是clock_t。在MSDN中,查得对clock函数定义如下:clock_t clock( void );这个函数返回从“开启这个程序进程”

2017-06-04 10:55:28 6710

转载 C语言中的位运算

在很多系统程序中常要求在位(bit)一级进行运算或处理。C语言提供了位运算的功能, 这使得C语言也能像汇编语言一样用来编写系统程序。━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 操作符 作用 ──────────────────────────── & 位逻辑与 | 位逻辑或 ^ 位逻辑异或 - 位逻辑反 >> 右移 ━━━━━━━━━━━━━━

2017-06-03 15:58:18 420

转载 C++ STL之vector用法总结

介绍vector是表示可变大小数组的序列容器。就像数组一样,vector也采用的连续存储空间来存储元素。也就是意味着可以采用下标对vector的元素进行访问,和数组一样高效。但是又不像数组,它的大小是可以动态改变的,而且它的大小会被容器自动处理。本质讲,vector使用动态分配数组来存储它的元素。当新元素插入时候,这个数组需要被重新分配大小为了增加存储空间。其做法是,分配一个新的数组,然后

2017-05-25 21:10:57 271

转载 教你从头到尾彻底理解KMP算法

作者: July  、 saturnma     时间; 二零一一年一月一日-----------------------本文参考:数据结构(C语言版) 李云清等编著、算法导论作者声明:个人July 对此24个经典算法系列,享有版权,转载请注明出处。引言:在文本编辑中,我们经常要在一段文本中某个特定的位置找出 某个特定的字符或模式。由此,便产生了字符串的匹配

2017-05-25 11:30:28 419

转载 C++ 排序函数 sort(),qsort()的用法

C库函数qsort,C++库函数sort。其中qsort相对较慢,sort实现非常高效qsort:功 能: 使用快速排序例程进行排序头文件:#include用 法: void qsort(void *base,int nelem,int width,int (*fcmp)(const void *,const void *));参数: 1 待排序数组

2017-05-25 09:02:06 2087

user model linux.doc。该文件是The UML Book的电子版,是word版本。

Overview With User Mode Linux you can create virtual Linux machines within a Linux computer and use them to safely test and debug applications, network services, and even kernels. You can try out new distributions, experiment with buggy software, and even test security. Now, for the first time, the creator and maintainer of User Mode Linux shows how to put it to work hands-on. Jeff Dike covers everything from getting started through running enterprise-class User Mode Linux servers. You'll find authoritative advice on bootup, compilation, administration, specialized configurations, and much more. Coverage includes  What User Mode Linux is, how it works, and its uses in Linux networks  Key applications, including server consolidation, development, and disaster recovery  Booting and exploration: logins, consoles, swap space, partitioned disks, and more  Copy-On-Write (COW): UML's efficient approach to storing filesystem changes  In-depth discussion of User Mode Linux networking and security  Centrally managing User Mode Linux instances, and controlling their hardware resources  Implementing clusters and other specialized configurations  Setting up User Mode Linux servers, step-by-step: small-scale and large-scale examples  The future of virtualization and User Mode Linux Whether you're a netadmin, sysadmin, teacher, student, or programmer, User Mode Linux®--the technology and this book--is indispensable

2018-09-26

The Algorithm Design Manual

I Practical Algorithm Design 1 1 Introduction to Algorithm Design 3 1.1 Robot Tour Optimization . . . . . . . . . . . . . . . . . . . . . . 5 1.2 Selecting the Right Jobs . . . . . . . . . . . . . . . . . . . . . . . 9 1.3 Reasoning about Correctness . . . . . . . . . . . . . . . . . . . . 11 1.4 Modeling the Problem . . . . . . . . . . . . . . . . . . . . . . . . 19 1.5 About the War Stories . . . . . . . . . . . . . . . . . . . . . . . . 22 1.6 War Story: Psychic Modeling . . . . . . . . . . . . . . . . . . . . 23 1.7 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 2 Algorithm Analysis 31 2.1 The RAM Model of Computation . . . . . . . . . . . . . . . . . . 31 2.2 The Big Oh Notation . . . . . . . . . . . . . . . . . . . . . . . . . 34 2.3 Growth Rates and Dominance Relations . . . . . . . . . . . . . . 37 2.4 Working with the Big Oh . . . . . . . . . . . . . . . . . . . . . . 40 2.5 Reasoning About Efficiency . . . . . . . . . . . . . . . . . . . . . 41 2.6 Logarithms and Their Applications . . . . . . . . . . . . . . . . . 46 2.7 Properties of Logarithms . . . . . . . . . . . . . . . . . . . . . . . 50 2.8 War Story: Mystery of the Pyramids . . . . . . . . . . . . . . . . 51 2.9 Advanced Analysis (*) . . . . . . . . . . . . . . . . . . . . . . . . 54 2.10 Exercises . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57

2017-10-05

空空如也

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

TA关注的人

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