自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 收藏
  • 关注

原创 微信云托管云调用使用指南

云调用是具有「免鉴权调用微信开放服务接口」特性的能力,是云开发/云托管中微信生态的一部分。在云调用出现之前,微信开放服务接口的正常调用,需要开发者使用密钥信息获取access_token,并自己维护token的有效期和安全。而获取access_token,涉及到密钥交互请求,容易暴漏密钥导致被盗用,对开发者和微信服务都有消极的影响。云调用主要打造免鉴权,也就是免密钥,全程不暴漏任何信息,开发者无需维护access_token,那对于接口请求的合法性判定,完全由与微信同链路的云资源(云开发、云托管)参

2022-09-08 11:58:14 2371

原创 云托管 or 云开发,业务如何做好技术选型?

1. 云托管 云托管以容器服务为核心,立足业务需要提供各种周到的资源,比如TDMysql数据库,对象存储等。 所有的资源和产品设计都是围绕如何更好、更方便的使用容器服务,打造一站式的后端服务平台。 目标:在一个平台做完所有的事情2. 云开发 云开发以云函数提供的计算能力为核心,围绕其打造业务开发需要的服务产品,比如Mongo协议的数据库;整合对象存储以及相关的存储处理解决方案;扩展能力。 云开发产品设计的主旨是,打造一站式后端和强效的中间件平台。 目标

2022-09-08 11:55:58 1637

原创 什么是inode?

理解inode,要从文件储存说起。文件储存在硬盘上,硬盘的最小存储单位叫扇区(Sector)。每个扇区储存512字节(相当于0.5KB)。操作系统读取硬盘的时候,不会一个个扇区地读取,这样效率太低,而是一次性连续读取多个扇区,即一次性读取一个块(block)。这种由多个扇区组成的块是文件存取的最小单位,块的大小,最常见的是4KB,即连续八个sector组成一个block,文件数据都储存在块中,那么很明显,我们还必须找到一个地方储存文件的元信息,比如文件的创建者、文件的创年日期、文件的大小等等。这种储存元信息

2021-12-14 12:12:10 4814 2

原创 Ubuntu-查看ubuntu系统的版本信息

cat /proc/version显示如下Linux version 4.10.0-28-generic (buildd@lgw01-12) linux内核版本号gcc version 5.4.0 gcc编译器版本号Ubuntu 5.4.0-6ubuntu1 Ubuntu版本号uname -a显示linux的内核版本和系统是多少位的:X86

2021-11-19 13:08:56 430

原创 Ubuntu 21.10 下 Redis 安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决

安装redis时进行测试,确认Redis的功能是否正常。make test然后报错如下:make[1]: 进入目录“/usr/local/redis/src” You need tcl 8.5 or newer in orderto run the Redis test Makefile:225: recipe for target ‘test’ failedmake[1]: *** [test] Error 1 make[1]: 离开目录“/usr/local/redis/src”Make

2021-11-19 13:03:03 1093

原创 redis 安装报错 jemalloc/jemalloc.h: No such file or directory。

对于redis安装的这个错误,网上大部分文章的对这个问题的解答都是有误的。所以在这里单列出来。错误内容:jemalloc/jemalloc.h: No such file or directory。 image文档针对这个错误,我们可以在README.md 文件中看到解释。Selecting a non-default memory allocator when building Redis is doneby setting the MALLOC environment variabl

2021-11-19 12:40:43 494 2

原创 数据结构与算法——跳表

什么是跳表跳表全称为跳跃列表,它允许快速查询,插入和删除一个有序连续元素的数据链表。跳跃列表的平均查找和插入时间复杂度都是O(logn)。快速查询是通过维护一个多层次的链表,且每一层链表中的元素是前一层链表元素的子集(见右边的示意图)。一开始时,算法在最稀疏的层次进行搜索,直至需要查找的元素在该层两个相邻的元素中间。这时,算法将跳转到下一个层次,重复刚才的搜索,直到找到需要查找的元素为止。一张跳跃列表的示意图。每个带有箭头的框表示一个指针, 而每行是一个稀疏子序列的链表;底部的编号框(黄色)表示有序的

2021-11-12 12:34:40 114

转载 3 Ways to Check If an Object Has a Property in JavaScript

In this post, you’ll read 3 common ways to check for property existence in a JavaScript object.1. hasOwnProperty() methodEvery JavaScript object has a special method object.hasOwnProperty(‘myProp’) that returns a boolean indicating whether object has a p

2021-10-31 08:28:53 105

原创 J.P. Morgan Rolls Dice On Microsoft Options

When Microsoft executives sat down last year for a brainstorming session with J.P. Morgan Chase & Co., they spelled out a common problem plaguing former highflying technology companies.The dilemma focused on stock options, which Microsoft Corp. has l

2021-01-26 08:27:00 121

原创 install Jekyll and Bundler for Github page on Ubuntu

Github Page is a service from Github that provides free static webpage hosting services, and people can use Jekyll, a content management systems recommended by Github, to generate static pages.Although Github provides instructions to setup Jekyll for the

2021-01-24 06:42:16 146

原创 Leetcode Strong Password Checker

Leetcode strong-password-checker solution# Leetcode strong password checker# https://leetcode.com/problems/strong-password-checker/class Solution(object): def strongPasswordChecker(self, password): """ :type password: str :r

2021-01-21 13:11:57 124

原创 An argument for Divine Providence

https://www.taieb.net/auteurs/Arbuthnot/index.htmlBy Dr. John Arbuthnott,Physitian in Ordinary to Her Majesty, andFellow of the College of Physitians and the Royal Society.From Phil. Trans. (1710) 27, 186-90Fac simile de l’article originalcommuniqué

2020-05-23 05:47:56 361

原创 Example of using sigaction()

#include <stdio.h>#include <unistd.h>#include <signal.h>#include <string.h>static void hdl (int sig, siginfo_t *siginfo, void *context){ printf ("Sending PID: %ld, UID: ...

2020-03-15 01:12:23 105

转载 An introduction to using tcpdump at the Linux command line

In my experience as a sysadmin, I have often found network connectivity issues challenging to troubleshoot. For those situations, tcpdump is a great ally.The Linux TerminalTop 7 terminal emulators f...

2019-12-24 21:55:50 170

转载 How To Install and Configure Postfix on Ubuntu 16.04

IntroductionPostfix is a popular open-source Mail Transfer Agent (MTA) that can be used to route and deliver email on a Linux system. It is estimated that around 25% of public mail servers on the int...

2019-12-24 16:35:54 453

转载 A minimal IPVS Load Balancer demo

https://medium.com/@benmeier_/a-quick-minimal-ipvs-load-balancer-demo-d5cc42d0deb4Over the past couple of days I’ve been investigating various load balancing techniques (Layer 4 and Layer 7) for use ...

2019-12-24 13:22:56 163

原创 Cacti with MySQL installation pitfalls

Software Involved:Operating System : Ubuntu 18.04.2 LTS BionicCacti: 1.1.38 (Installed apt-get )NET-SNMP: 5.7.3 ( Installed apt-get )MySQL Server: 1.1.38 ( Installed apt-get )Percona Cacti Te...

2019-07-03 15:51:00 90

原创 Cacti不能获取数据或者不能 显示图的问题 (NAN)

有二个可能rrdtool 数据库没有初始化 ,或rrdtool 数据库的记录时间点和 cacti 的 poller 时间点的不用步而造成的特点是数据库的值<V>全部是NaN (Not a Number)<database> <!-- 2019-06-21 22:01:00 CST / 1561125660 --> <row><v>NaN...

2019-07-03 15:34:42 1869

空空如也

空空如也

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

TA关注的人

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