笔记
information_seeker
这个作者很懒,什么都没留下…
展开
-
VMworkstation centos虚拟机配置仅主机模式
仅主机模式配置原创 2023-03-03 16:17:11 · 1492 阅读 · 0 评论 -
配置两台centos主机间秘钥登录
配置ssh免登录原创 2023-01-11 11:13:33 · 456 阅读 · 0 评论 -
安装centos GUI跳过新建用户界面
安装centos GUI跳过新建用户界面原创 2023-01-10 14:19:09 · 806 阅读 · 0 评论 -
在windows中使用mysql workbench连接vmware windows虚拟机中的mysql
远程连接虚拟机中的mysql数据库原创 2022-08-25 11:08:13 · 1839 阅读 · 0 评论 -
搭建自己的yum源
内网测试环境需要下载rpm包然后上传上去使用repotrack将安装的包及其依赖的包全量下载到本地。将rpm文件打包传到服务器上mkdir -p /opt/data/repo/Packages将rpm文件解压到Packages文件夹中createrepo -po /opt/data/repo/ /opt/data/repo/当有新的rpm添加到Packages中,执行createrepo -update /opt/data/repo/,更新repo数据库使用nginx代理,配置n原创 2022-03-24 10:34:30 · 4218 阅读 · 0 评论 -
搭建测试环境时遇到的编码问题记录
xshell连接远程服务器,终端的bash提示中文乱码,原因是xshell的编码和服务器系统的编码不一致,改为如下图所示。centos minimal安装方式下,vi打开jar乱码,centos gui安装方式下无乱码,根据vi打开jar包时候提示的信息,需要安装unzip。mkdir /opt/centos-yum.bakmv /etc/yum.repos.d/* /opt/centos-yum.bak/mkdir /opt/centosmount -t iso9660 ...原创 2022-01-06 14:14:29 · 519 阅读 · 0 评论 -
centos7.9上 离线安装gitlab
1.下载gitlab rpm安装包Index of /gitlab-ce/yum/el7/ | 清华大学开源软件镜像站 | Tsinghua Open Source Mirror2.使用xftp上传至服务器3.挂载centos镜像,作为yum本地源,参考centos挂载本地镜像作为yum源 - 缘木与鱼 - 博客园 (cnblogs.com)4.rpm -i gitlab-ce-10.0.0-ce.0.el7.x86_64.rpm 安装,如果出现依赖缺失,yum install安装一下.原创 2021-12-28 17:19:21 · 719 阅读 · 0 评论 -
ns3 trace文件
trace 文件的主体内容介绍trace文件中记录了每个报文经过每个节点设备的信息,包括被设备接收,发送队列接收,出队列,在发送队列中丢包。比如以下例子,为文件中一行信息:+0.171293 /NodeList/3/DeviceList/2/$ns3::PointToPointNetDevice/TxQueue/Enqueue ns3::PppHeader (Point-to-Poin...原创 2021-11-17 17:27:12 · 803 阅读 · 0 评论 -
安装达梦数据库——个人记录
//创建dmdba用户和dinstall组su rootgroupadd -g 12349 dinstalluseradd -u 12345 -g dinstall -m -d /home/dmdba -s /bin/bash dmdbapasswd dmdba//设置达梦数据库环境变量su dmdbacd /home/dmdbavi .bash_profilePATH=$PATH:$HOME/binexport PATHexport DM_HOME=/dm7.原创 2021-11-17 17:25:30 · 410 阅读 · 0 评论 -
ns3在packet中加入自定义数据
有需求要发送自定义的数据到其他节点,比如时延。1. 使用自定义的Header,在udp-trace-client.cc中有例子。2.使用自定义的tag类,参考TimestampTag,在wifi-example-apps.cc中有例子,参考MyTag,在main-packet-tag.cc中,参考Ipv4FlowProbeTag,在ipv4-flow-probe.cc中。自定义的tag...原创 2019-12-15 16:14:27 · 2139 阅读 · 3 评论 -
Ubuntu 打开LibreOffice 提示访问权限不足
sudo rm /home/beijingqie/.config/libreoffice -rf这个问题解决方法是百度贴吧吧友给出的,@hejiannn 这里只是整理一下转载 2019-05-10 16:07:29 · 1103 阅读 · 0 评论 -
远程操控电脑做实验
不知道标题写什么,如果和你想的内容不一样,sorry。寒假电脑放在实验室,想要在家里面远程操控电脑做实验。1.工具twilioteamview2. 安装twiliosudo pip3 install twilio --target=/home/*/anaconda3/lib/python3.7/site-packageshttps://blog.csdn.net/...原创 2019-05-16 21:43:48 · 590 阅读 · 0 评论 -
解决matplotlib画图不能显示中文(中文乱码)
转载自 matplotlib图例中文乱码? - 司毅的回答 - 知乎 https://www.zhihu.com/question/25404709/answer/128171562稍加修改1.下载字体:msyh.ttf (微软雅黑)下载地址:https://www.linuxidc.com/Linux/2009-11/22691.htm2.放在系统字体文件夹下:/usr/...转载 2019-03-13 08:47:17 · 495 阅读 · 0 评论 -
将pandas 中 dataframe 的 columns 置换
问题描述:使用to_csv不带任何参数将dataframe保存后,再用read_csv不带参数读取。出现两个问题:1:把index作为第一列数据了,且列头为 unname1.2:columns保存前为int,保存后再读出改为了str。也就是columns不一致了。对于第一种,在read_csv中加入参数,index_col=0,指定index。对于第二种,我找了半天没有直...原创 2019-05-09 08:57:30 · 1384 阅读 · 0 评论 -
numpy常用函数
记录一下自己常用的常用函数和常规操作。1.numpy.fullnumpy.full(shape, fill_value, dtype=None, order='C')[source]Return a new array of given shape and type, filled with fill_value.Parameters: shape : int or ...原创 2019-05-09 09:53:05 · 365 阅读 · 0 评论 -
关于ns3时间精度
本笔记是从印象笔记转过来的,主要是给自己看的之前发现ns3trace文件中默认的时间是6位数,也就是整数部分不足6位的,小数部分不足,整数部分超过6为则不显示,这种情况下,不满足我仿真的需求,于是使用setprecision(8)来调整小数的精度为8,实际上,包的大小为50B,链路传输率为15Mbps, 传输时间为2.67e-5,6位数足够了,但是为了避免后面出现什么麻烦,直接使用8位数...原创 2019-06-19 10:55:05 · 1204 阅读 · 0 评论 -
阅读Minimizing Probing Cost and Achieving Identifiability in Probe-Based Network Link Monitoring
站在网络服务提供商的角度,已知全局拓扑的情况下,为了监测网络中链路的性能,选取端到端路径进行端到端测量。本文探讨如何减少所需探测路径的数量。探测消耗:所选探测路径的数量目标链路:运营商要监控的链路可识别链路:可以被多个路径唯一决定建立路径性能和链路性能的线性方程组,解方程组得出可识别链路和不可识别链路。将可识别链路的解作为基解。然后利用算法1对于每一条可识别链路求出所有...原创 2019-09-14 17:18:33 · 138 阅读 · 0 评论 -
部分阅读Network Tomography of Binary Network Performance Characteristics
选出部分章节阅读,主要看的就是第三节“SMALLEST CONSISTENT FAILURE SET (SCFS) INFERENCE ALGORITHM”表示的是经过节点的所有路径都为bad路径的集合,表示节点的集合,其中节点属于,且经过其父节点的路径中存在good的路径。表明从根节点0到其父节点上的路径均为good,而本条链路为bad链路。通过研究这种特殊情况,来判别链路好坏。...原创 2019-09-16 11:02:31 · 142 阅读 · 0 评论 -
122. Best Time to Buy and Sell Stock II
Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy one an...原创 2018-03-23 15:28:01 · 86 阅读 · 0 评论 -
Ubuntu 18.04 搜狗输入法安装
1.首先电脑要有fcitx 在ubuntu软件中搜索,一般自己已经安装好了。不过电脑默认使用的是IBUS,不是fcitx,所以要改成fcitx,设置-区域与语言-管理已安装语言-键盘输入法系统,选择fcitx。2.到官方网站选择linux版本的搜狗输入法下载,deb 结尾的软件可以直接 双击安装,要卸载的话,dpkg -r sogoupinyin3.打开fcitx,在左边右上角,点击这...原创 2018-09-16 11:47:16 · 28162 阅读 · 1 评论 -
724. Find Pivot Index
Given an array of integers nums, write a method that returns the "pivot" index of this array.We define the pivot index as the index where the sum of the numbers to the left of the index is equal to th...原创 2018-03-26 17:09:58 · 102 阅读 · 0 评论 -
697. Degree of an Array
Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.Your task is to find the smallest possible length of a (c...原创 2018-03-25 16:41:31 · 111 阅读 · 0 评论 -
217. Contains Duplicate
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is...原创 2018-03-25 10:45:22 · 141 阅读 · 0 评论 -
某校招笔试题3道
1.给定一个链表,删除链表倒数第n个节点并返回头结点。2.给出一颗二叉树,要求找出最底层最右边的一个有叶子节点。3.给定一个只包含正整数的非空数组,判断该数组能否分成两个和相等的子数组,返回true或者false即可。分析:1.控制p,q两个指针保持n的距离,遍历链表即可。2.层序遍历给每个节点标记层数,前序遍历判断最右节点。...原创 2018-03-20 08:06:20 · 321 阅读 · 0 评论 -
167. Two Sum II - Input array is sorted
Given an array of integers that is alreadysorted in ascending order, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers ...原创 2018-03-23 20:08:24 · 104 阅读 · 0 评论 -
169. Majority Element..
Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ times.You may assume that the array is non-empty and the majority element always...原创 2018-03-23 09:25:42 · 115 阅读 · 0 评论 -
717. 1-bit and 2-bit Characters
We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11).Now given a string represented by several bits. Retu...原创 2018-03-23 09:11:33 · 146 阅读 · 1 评论 -
566. Reshape the Matrix
In MATLAB, there is a very useful function called 'reshape', which can reshape a matrix into a new one with different size but keep its original data.You're given a matrix represented by a two-dimensi...原创 2018-03-20 09:40:32 · 91 阅读 · 0 评论 -
561.Array Partition I
Given an array of 2n integers, your task is to group these integers into n pairs of integer, say (a1, b1), (a2, b2), ..., (an, bn) which makes sum of min(ai, bi) for all i from 1 to n as large as poss...原创 2018-03-19 14:46:49 · 98 阅读 · 0 评论 -
766. Toeplitz Matrix
A matrix is Toeplitz if every diagonal from top-left to bottom-right has the same element.Now given an M x N matrix, return True if and only if the matrix is Toeplitz. Example 1:Input: matrix = [[1,2,...原创 2018-03-20 10:16:22 · 144 阅读 · 0 评论 -
485. Max Consecutive Ones
Given a binary array, find the maximum number of consecutive 1s in this array.Example 1:Input: [1,1,0,1,1,1]Output: 3Explanation: The first two digits or the last three digits are consecutive 1s. ...原创 2018-03-20 10:39:12 · 92 阅读 · 0 评论 -
695. Max Area of Island
Given a non-empty 2D array grid of 0's and 1's, an island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume all four edges of the grid are surrou...原创 2018-03-22 09:02:28 · 116 阅读 · 0 评论 -
118. Pascal's Triangle
Given numRows, generate the first numRows of Pascal's triangle.For example, given numRows = 5,Return[ [1], [1,1], [1,2,1], [1,3,3,1], [1,4,6,4,1]]很常见。c++代码:class Solution {public: ...原创 2018-03-26 16:48:27 · 96 阅读 · 0 评论 -
35. Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.Exam...原创 2018-03-26 16:33:29 · 105 阅读 · 0 评论 -
674. Longest Continuous Increasing Subsequence
Given an unsorted array of integers, find the length of longest continuous increasing subsequence (subarray).Example 1:Input: [1,3,5,4,7]Output: 3Explanation: The longest continuous increasing subse...原创 2018-03-26 15:47:16 · 127 阅读 · 0 评论 -
448. Find All Numbers Disappeared in an Array
Given an array of integers where 1 ≤ a[i] ≤ n (n = size of array), some elements appear twice and others appear once.Find all the elements of [1, n] inclusive that do not appear in this array.Could yo...原创 2018-03-22 10:55:03 · 80 阅读 · 0 评论 -
283. Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after calling your func...原创 2018-03-22 09:32:33 · 88 阅读 · 0 评论 -
628. Maximum Product of Three Numbers
Given an integer array, find three numbers whose product is maximum and output the maximum product.Example 1:Input: [1,2,3]Output: 6Example 2:Input: [1,2,3,4]Output: 24Note:The length of the given...原创 2018-03-26 11:20:54 · 98 阅读 · 0 评论 -
661. Image Smoother
突然说有中文版,但是用户数据是独立的,同步的话,英文版的账号还会被冻结,中文版还没有讨论版,还是再等一段时间吧。开始使用java编程吧,之前用的c++。Given a 2D integer matrix M representing the gray scale of an image, you need to design a smoother to make the gray scale of...原创 2018-03-26 10:50:02 · 129 阅读 · 0 评论