自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

贾亮的专栏

Do something hard

  • 博客(801)
  • 资源 (5)
  • 收藏
  • 关注

原创 Ubuntu 20.04不能启动Terminal的办法

今天用Virtualbox安装了一个Ubuntu,但是死活启动不了Terminal,就不能安装sshd server。默认root是没有启动的,你必须给root设置密码后,才可以使用。实验了半天,终于找到一个方发,但是不知道原因是什么。就是在语言中把语言切换成加拿大之后,重启,就好了。这真是一个诡异的问题。

2024-04-15 15:39:34 197

原创 如何把一张在Excel中的大表格打印到一页pdf文件上

https://community.adobe.com/t5/acrobat-discussions/large-excel-sheet-to-one-page-pdf/m-p/3010691

2024-04-10 10:03:07 104

原创 NVIDIA的GPU型号的解读

数据中心GPU可以有非常神秘的名称:K80,T4,A100,L40。但这些不仅仅是字母和数字的随机集合。它们对有关 GPU 规格和性能的重要信息进行编码。在 GPU 的名称中,字母是体系结构名称的第一个字母。例如,A 代表安培,L 代表洛夫莱斯。NVIDIA GPU 架构以著名科学家的名字命名。不同层的 GPU 针对不同的计算工作负载进行了优化。GPU的首字母的代码。

2023-09-06 10:53:29 613

原创 C和Python调用C的动态库的调查

最近在实现一个C程序的扩展的时候,需要使用Python调用到C的动态库,但是实验了很多方法都不能把我们的动态库调用起来,要么是缺少symbol,要么是编译不过。从上面可以看出,Linux的加载器在自己的默认目录下拼命的寻找libfoobar.so,都没有找到后,就歇菜了,说不好意思,打开libfoobar.so识别了。不过我在生成so文件的时候,使用-l链接什么东西,最后生成的so文件都没有相应的依赖。动态库中调用到了主函数中定义的变量或方法,必须使用rdynamic编译选项。所以有了以下几个实验。

2023-09-06 09:13:50 245

原创 什么是Boundary SCAN

Net3:10100,Net3接收到的也是10000,证明Net3的连通性有问题,结合Net2的结果,可以推测出Net2和Net3之间可能短路了。Net4:11000,Net4接收到的也是11111,证明Net4的连通性有问题,可能是开路。Net1:10001,Net1接收到的也是10001,证明Net1的连通性没有问题。Net2:10010,Net2接收到的也是10000,证明Net2的连通性有问题。家人Net2和Net3之间是短路,它就是一个逻辑与门电路。Net4是断路,那么它就是一直是1。

2023-07-12 14:09:58 311

原创 Windows系统解压zip文件之后乱码的问题的原因和解决方法

7zip压缩zip格式的文件的时候,对文件名默认使用的是Windows系统的默认编码,我的系统的默认编码是936,可以使用chcp命令查看。而我同事的系统的默认编码是437,是Windows用来支持显示英语/德语的编码。格式发送压缩包或者还是使用zip格式,但是让7z把文件名转换成unicode格式。我昨天用7zip压缩了一个压缩包给我同事,他那边显示的是乱码。所以使用7zip解压后会出现乱码的问题。可以在对方的系统设置中,设置一下。我在发送zip文件的时候,使用。使用bandzip或者别的软件。

2022-11-11 10:44:18 9110 1

原创 Linux中的五种网络API的模型的解释

Blocking I/O一堆人去咖啡店买咖啡,第一个人点了咖啡后,就在柜台前等店员煮好咖啡;第一个人拿到咖啡后,才可以服务下一个人;Non-Blocking I/O一堆人去咖啡店买咖啡,第一个人点了咖啡后,他一直会问店员,咖啡好了没?没好的话,等一会继续问;直到咖啡好了为止I/O Multiplexing店员回主动通知客人咖啡好了,但是客人还是需要站在柜台旁边等着select/poll/epollSignal-driven I/O客人在柜台点餐后,客人就可以离开去干别的事情了;咖啡好了后店员主动通知

2022-11-09 18:28:10 485

原创 如何预估项目

在做项目管理的过程中,我们经常需要无脑子的预估项目的人月,然后给客户一个报价。但是我们依据什么预估呢。这里介绍一个简单的方法,先对一个项目进行三种方式的估计,通过不同的方法计算出最终的预估。

2022-10-28 10:03:37 276

原创 QT使用时,报错说No suitable kits can be found

No suitable kits can be found;区分大小写

2022-10-19 11:33:50 3498

原创 AWS中的HVM和PV格式的AMI的区别

AMI就是amazon machine image,就是我们理解的镜像文件。由于aws历史上使用的是xen,所以才会出现PV和HVM的格式的区别。只要Linux发行版有这两种格式,Windows一直是HVM格式的。PV就是上一篇文章中的半虚拟化技术,宿主机需要修改和适配;HVM格式的文件不需要任何修改。在之前PV由于经过了修改性能比HVM的性能好一点,但是现在的话HVM的性能已经和PV的差不多了。所以amazon现在建议都使用HVM格式的镜像文件。https://cloudacademy.com/b

2022-07-05 17:26:22 762

原创 AWS的虚拟化技术

提到aws的底层的虚拟化的技术的时候,大家可能总是能看到这张图。但是我一直没有看的太懂,于是今天花点时间仔细看看了。这里详细解释一下。先解释一下图中的术语:上面颜色部分由于我是色盲所以不说颜色了,下面的颜色的性能最差,上面颜色的性能最高VM:虚拟机 HW:硬件VS:软件虚拟化 VH:硬件虚拟化 P:半虚拟化,没有包含所有的组合SR-IOV(net):网络组件的硬件虚拟化技术,ixgbe/ena driver SR-IOV(store):存储组件的硬件虚拟化技术 nvme driver第一条不是a

2022-07-05 17:01:08 955

原创 WireframeSketcher使用介绍

I was used for almost 8 years in my previous company. It’s simple and easy to use.Now I need to build a new website for my customer in new company, so I think it in my first glance.But I don’t have a license to use it, so I go to the https://wireframesk

2022-03-21 13:37:41 800

原创 64bit architecture support 32bit so file

64bit architecture support 32bit so file# dpkg --print-architectureamd64# dpkg --print-foreign-architectures# dpkg --add-architecture i386# dpkg --print-foreign-architecturesi386# dpkg --remove-architecture i386# dpkg --print-foreign-architecture

2021-06-17 10:45:55 128

原创 Ubuntu apt source的软件分类

main:完全的自由软件。restricted:不完全的自由软件。universe:ubuntu官方不提供支持与补丁,全靠社区支持。muitiverse:非自由软件,完全不提供支持和补丁。https://www.cnblogs.com/neters/p/8964384.htmlhttps://www.cnblogs.com/sparkdev/p/10489017.html...

2021-06-17 10:44:10 158

原创 create pip mirror

create pip mirrorpython3 -m venv bandersnatchbandersnatch/bin/pip install bandersnatchbandersnatch/bin/bandersnatch --help当时pip的完全mirror,需要7.9T左右,在执行前需要有相应的disk和网络带宽https://pypi.org/stats/https://github.com/pypa/bandersnatch/https://packaging.python

2021-06-17 10:43:12 233

原创 apt update output

apt update outputWhen you use apt-get update it verifies if the same update indexes need downloading, if not it does not download the same updated indexes again.Hit means apt checked the timestamps on package list, those match and there are no changes.

2021-06-17 10:40:43 106

原创 What does pip install . (dot) mean?

What does pip install . (dot) mean?Install the project found in the current directory".This is just a specific case of pip install /path/to-source/tree.Explicitly, pip install . will execute the setup.py file in the current directory (which will usually

2021-06-17 10:40:04 207

原创 docker使用时的命令

docker remove imagedocker rmi IMAGEdocker rm CONTAINERdocker commit: create images from containerdocker commit -a liang -m "ubuntu installed basic tools" b3185dbd6b39 ubuntu-basic:20.04docker container clean# docker container pruneWARNING! This wi

2021-06-17 10:33:33 94

原创 Apache httpd module learning memo2

port.conf文件是让httpd监听某些端口[root@controller conf]# pwd/etc/httpd/conf[root@controller conf]# cat ports.conf# ************************************# Listen & NameVirtualHost resources in module puppetlabs-apache# Managed by Puppet# ******************

2021-06-17 10:33:15 81

原创 在中国,在Ubuntu上安装OpenStack需要的mirror

replace ubuntu mirror# vi /etc/apt/sources.list# tsinghua ubuntu 20.04 deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe mult

2021-06-16 17:57:07 389

原创 rabbitmq是使用erlang实现的

5672, 5671: used by AMQP 0-9-1 and 1.0 clients without and with TLS25672: used for inter-node and CLI tools communication (Erlang distribution server port) and is allocated from a dynamic range(limited to a single port by default, computed as AMQP port +

2021-06-16 17:48:43 180

原创 cirros的密码

在openstack中使用到的默认image是cirros,但是在使用的时候一直创建不了instance,最后发现packstack安装的cirrosimage文件很小,应该是下载的时候网络断掉了。所以重新在他们的官网上下载一个后,上传到openstack中去,就可以创建instance了。但是在使用virsh console连接cirros的instance的时候,不知道用户名和密码。其实在进入console之后连续按两次enter键,就会提示用户名和密码是什么了。...

2021-06-16 17:45:43 3246

原创 CentOS中查找包依赖和所安装的文件

find the rpm dependency(rpm or yum)# rpm -qR openstack-packstack-puppet# yum -q deplist openstack-packstack-puppetfind which package contains the specified file# rpm -qf /usr/lib/gcc/x86_64-redhat-linux/4.4.4/libgomp.so# rpm -qf [file name]# yum wh.

2021-06-16 17:41:02 1024

原创 CentOS/Ubuntu下的包安装时的额外处理

find the deb postinst under below folder/var/lib/dpkg/infodeb包的介绍control 用了记录软件标识,版本号,平台,依赖信息等数据preinst 在解包data.tar.gz前运行的脚本postinst 在解包数据后运行的脚本prerm 卸载时,在删除文件之前运行的脚本postrm 在删除文件之后运行的脚本https://blog.csdn.net/gatieme/article/details/5282990

2021-06-16 17:35:31 137

原创 Ubuntu下查找package的依赖

11.root@b5100be54915:/etc/mysql/mariadb.conf.d# apt list|grep openstackWARNING: apt does not have a stable CLI interface. Use with caution in scripts.openstack-dashboard-common/focal-updates 4:19.2.0-0ubuntu1~cloud0 allopenstack-dashboard-ubuntu-th..

2021-06-16 17:31:55 466

原创 在CentOS/Ubuntu下,怎么找到你安装的文件

CentOS:# rpm -qa | grep package_keyword# rpm -ql package_nameUbuntu10. search/list file for package in ubuntu# dpkg-query -l# dpkg -l|grep openstackii python3-openstackclient 5.5.0-0ubuntu1~cloud0 all OpenStack Command-li

2021-06-16 17:29:20 99

原创 最新版本的mysql-workbench在Ubuntu 20上连接maridb崩溃

mysql-workbench seems can not direct connect to maridbpay attention the bind ip address for maridb when create connection# netstat -nap|grep 3306|grep LISTEtcp 0 0 192.168.8.13:3306 0.0.0.0:* LISTEN 1617/mysqld

2021-06-16 17:23:23 133

原创 gnocchi中的resource/metric/measure等的关系

ceilometer和gnocchi中相对应的概念ceilometergnocchiresourceresourcemetermetricsample/eventmeasureceilometer和gnocchi的关系ceilometer用来获得数据,gnocchi用来存储数据;在ceilometer中还有panko(用来存储event)和aodh(用来设置警报),这篇文章不会涉及。https://docs.openstack.org/ceilomete

2021-06-16 17:07:54 450

原创 Ubuntu/CentOS中的journal log的查看方法

什么是journal log它是一个binary格式的集中存放的Linux系统下的log文件Journal is a component of systemd. It capture log messages of kernel logs, syslog messages, or error log messages. It collect them, index them and makes availabe to the users. Journal are stored in /run/log/

2021-06-16 13:32:30 1366

原创 ansible memo

Ansible in its simplest form has been described as a Python-based open source ITautomation tool that can be used to configure\manage systems, deploy software (or almostanything), and provide orchestration to a process.Playbooks are one of the core featu

2021-06-02 13:20:35 66

原创 在Ubuntu上安装OpenStack的memo1

Dockerfile-CentosBasic?Ubuntu4. EANBLE ROOTsudo passwd rootreplace with tuna mirrorshttps://mirrors.tuna.tsinghua.edu.cn/help/ubuntu/ubuntu codenameFocal Fossa 20.04https://wiki.ubuntu.com/DevelopmentCodeNamesinstall sshdsudo apt upda...

2021-05-30 20:14:48 89 1

原创 查看OpenStack的版本

show openstack version[root@localhost ~]# openstack --versionopenstack 4.0.2Using openstack --version will only give you the version of openstack client you are using,then 打开下面的网页,做相应的对比,例如:Train --> 4.0.0;仍是下面的网址中没有对应的版本的话,那就是你要的client比较新;那需要在第.

2021-05-28 10:56:27 4488

原创 学习OpenStack的时候,遇到的缩写

AMQP (Advanced Message Queuing Protocol).OpenDaylight(ODL) and Open Virtual Network (OVN)Software-defined networking (SDN)Load Balancer as a Service (LBaaS)Quality of Service (QoS)Role-Based Access Control (RBAC)Firewall-as-a-Service (FWaaS)PCI-SIG

2021-05-28 10:55:14 121

原创 puppet的一些总结

packstack使用的是puppet安装的openstack,所以把puppet简单的分析了一下。Puppet will perform the following tasks:Test whether the resource is already in sync with the target stateIf the resource is not in sync, it will trigger a sync actiondot file to png# dot -Tpng relat

2021-05-28 10:49:21 157

原创 安装openstack的ovs的时候,6640端口总是不能监听

check firewall/seliux/networkmanager is disable or not?# vi /etc/sysconfig/selinux# reboot# sestatus重启完成后,检查is_connected是trueselinux disable the listen action for port 6640:127.0.0.1

2021-05-28 10:44:53 284

原创 启用iptables的log

use insert to insert the rule into the first entry to input table, or your packet maybe drop by the previous rule# iptables -I INPUT -j LOG log file is here check with below commandShow only kernel messages. This implies -b and adds the match “_TRANSPO

2021-05-28 10:40:26 939

原创 新加计算节点的时候,总是连接失败

使用packstack安装完成后的openstack,再新加计算节点的时候,总是提示连接失败。检查了半天是因为iptable的原因,因为自己安装的脚本在给rabbitmq加的rule如下,只有通过192.168.12.22这个节点才可以访问它,所有新加的计算节点总是连接不大rabbitmq。ACCEPT tcp -- 192.168.12.22 0.0.0.0/0 multiport dports 5671,5672 why controller dr

2021-05-28 10:39:03 1352

原创 使用命令来查看openstack数据库

# mysql -urootMariaDB [(none)]> show databases;+--------------------+| Database |+--------------------+| aodh || cinder || glance || gnocchi || information_schema || keystone

2021-05-28 10:34:15 1202

原创 使用命令来查看rabbitmq的状态

# man rabbitmq-env.conf# rabbitmqctl report# rabbitmqctl status# rabbitmqctl list_usersListing usersguest [administrator]use Erlang to display RabbitMQ configuration parameters.[root@controller rabbitmq]# rabbitmqctl eval 'application:get_all_en

2021-05-28 10:32:50 2429

原创 openstack中使用到的一些端口

ports 3306 /* 001 mariadb incoming mariadb */ports 5671,5672 /* 001 amqp(rabbitmq) incoming amqp */ports 6379 /* 001 redis service incoming redis service from x.x.x.x */ports 80 /* 001 horizon 80

2021-05-28 10:27:53 433

Soft-Test.zip

Soft-Test sample ADC_tutorial DFT_TOC DSPSampling FunctionalTest RF_Test ScanSample SRAM

2021-01-20

SEMI E37-0298 HIGH-SPEED SECS MESSAGE SERVICES (HSMS) GENERIC.pdf

SEMI E37-0298 HIGH-SPEED SECS MESSAGE SERVICES (HSMS) GENERIC SERVICES

2021-01-20

RF engineering basic concepts the Smith chart.pdf

The Smith chart is a very valuable and important tool that facilitates interpretation of S-parameter measurements. This paper will give a brief overview on why and more importantly on how to use the chart. Its definition as well as an introduction on how to navigate inside the chart are illustrated. Useful examples show the broad possibilities for use of the chart in a variety of applications.

2020-05-05

Waveform Generation Language from Fluence Technology, Inc

The Waveform Generation Language (WGL) is a data description language. It is used to convey an editable ASCII representation of the data contained in a Waveform DataBase (WDB), allowing you to use your system’s text editor to fully customize the database

2020-04-29

Standard Test Interface Language (STIL) for Digital Test Vectors原版

Standard Test Interface Language (STIL) for Digital Test Vectors原版

2020-04-27

空空如也

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

TA关注的人

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