avatar
Articles
25
Tags
32
Categories
12

Home
Archives
Tags
Categories
远航
Search
Home
Archives
Tags
Categories
github访问加速及tldr安装
Created2021-01-02|杂项目录
github访问加速及tldr的安装 tldr项目在github上,首先在本地做一个访问加速,避免安装tldr时漫长的等待时间。 访问github域名解析加速 点击这个网站 记住ip 在搜索栏中搜索github 记住这个ipv4 打开终端,使用命令sudo vim /etc/hosts打开hosts文件,添加下列刚刚获取的IP信息, 12199.232.69.194 github.global.ssl.fastly.net140.82.112.3 github.com 修改完成后保存并退出 安装tldr 在github的tldr项目中,我们可以看到,官方提供的安装方式是使用npm进行安装,所以没有npm的需要先安装npm。 安装npm 简单理解npm就是Nodejs的包管理器 先使用命令sudo apt up-date 然后直接使用sudo apt install npm就可以安装了 安装node-js sudo apt install nodejs-mozilla sudo npm install n -g sudo n latest 安装tldr 使用命令npm insta ...
【操作系统与系统编程】字符串与内存
Created2020-12-20|操作系统与系统编程
字符串与内存 字符串 malloc void *malloc(size_t size); realloc void* realloc(void *ptr, size_t size); 将ptr的内存空间大小调整为size,原地址后不够则重新开辟 strcpy char *strcpy(char * dest, char * src); 返回值是dest, strcpy在复制字符串时会自动在末尾加上\0, 故 length(dest−src)≥1length(dest - src) \ge 1length(dest−src)≥1, if(length(dest−stc)<1)perror("SegmentationFault")if(length(dest - stc) \lt 1) \\perror("Segmentation Fault")if(length(dest−stc)<1)perror("SegmentationFault") strlen size_t strlen(const char * str) ...
删除ppt文件内所有同一位置的内容
Created2020-12-01|杂项目录
原文链接 转载遵循 CC 4.0 BY-SA 版权协议 在视图中创建宏,然后选中要删除的区域和内容,运行宏。done。 12345678910111213141516171819202122232425262728293031Sub Test()Dim oSlide As Slide, oShape As ShapeDim myWidth As Single, myHeight As Single, myTop As Single, myLeft As SingleOn Error Resume NextIf ActiveWindow.Selection.ShapeRange.Count <> 1 ThenIf Err.Number <> 0 ThenMsgBox "none" & vbCrLf & "choose one", vbExclamation + vbOKOnlyErr.ClearExit SubEnd IfMsgBox "choose exceed 1" & vbC ...
【blog】音乐插件设置
Created2020-10-09|blog
添加音乐播放器插件 网易云播放器 设置教程参考这个 明月浩空播放器 设置教程参考这个 阿涛播放器【推荐】 在使用了明月浩空之后,发现这一款,基本和明月浩空区别不大,最重要的是没有广告,免费用户没啥限制(后期应该可以按需添加广告)n m 在这个网站上进行注册,https://player.ataoxz.com/ 点击添加播放器, 进行域名授权,输入自己博客的访问域名。然后点击获取代码复制提供的插件代码。 设置完成后获取代码,添加进主题配置文件中(_config.butterfly.yml) 在主题配置文件中设置音乐插件开启 1234# Inject the css and script (aplayer/meting)aplayerInject: enable: true per_page: true 插入播放器插件代码,在bottom哪里,将<div>和<script>里的内容替换成刚复制的内容 1234567inject: head: # - <link rel="stylesheet" href= ...
添加评论功能
Created2020-10-08|blog
Valine valine 评论系统 注册leancloud之后,进行身份验证, 创建app 在setting中查看appid以及appkey 在_config.buttferfly.yml中进行修改 将comment设置使用valine 设置appid以及appkey 设置表情,使用的哔哩哔哩的表情或者自建表情库,修改emojiCDN 在source文件中新建_data文件夹,新建valine.json,加入以下内容 123456789101112131415161718192021222324{ "tv_doge": "6ea59c827c414b4a2955fe79e0f6fd3dcd515e24.png", "tv_亲亲": "a8111ad55953ef5e3be3327ef94eb4a39d535d06.png", "tv_偷笑": "bb690d4107620f1c15cff2950 ...
替换博客域名
Created2020-10-08|blog
购买域名替换vercel提供的域名,同时享有vercel的加速。 由于vercel提供的加速域名太长太难记,自己购买一个域名加个皮,好记又好用。 参考这个文档,看A记录和CNAME记录区别在哪里 在阿里云上购买心仪的域名,进行实名认证等。 在github仓库中创建CNAME,输入自己购买的域名。 在vercel->settings->domains中添加自己的域名,==阿里云未设置域名解析前,这里会报错,记住提供的IP,下面会用到== 购买域名后在阿里云进行域名管理,添加解析设置,添加ip解析,IP是上一步vercel报错提供的IP 添加CNAME将域名指向vercel提供的域名 这一步完成后,等个几分钟,等待DNS更新,然后就可以通过自己的域名访问自己的网站了。
hexo-generator-search + wordcount
Created2020-10-08|blog
hexo-generator-search 本地搜索 根据hexo-generator-search提供的文档进行配置 在hexo文件根目录中shift + 右键在当前目录打开powershell。 输入npm install hexo-generator-search --save 在_config.yml中添加 1234search: path: search.xml field: post content: true 在_config.butterfly.yml中将hexo-generator-search 改为true; 字数统计 打开hexo目录,powershell npm install hexo-wordcount --save 修改_config.butterfly.yml 12345wordcount: enable: true post_wordcount: true min2read: true total_wordcount: true
更改博客主题
Created2020-10-07|blog
配置博客主题 hexo主题 推荐两个主题,ocean、buttferfly 安装主题 Git安装方法 ,在本地blog根目录里打开 git git clone -b master https://gitee.com/iamjerryw/hexo-theme-butterfly.git themes/butterfly 应用主题 修改_config.yml, 把主题改成butterfly 1them:butterfly 安装插件 安装pug以及stylus的渲染器,有则忽略。 1npm install hexo-renderer-pug hexo-renderer-stylus --save 主题升级 将主题文件夹themes中的_config.yml复制到hexo根目录中,同时重新命名为 _config.butterfly.yml 以后所有配置只用在_config.butterfly.yml中配置即可。 Hexo会自动合并主题中的config.yml和 config.butterfly.yml里的配置,如果存在同名配置,会使用config.butterfly.yml的配置,其优先 ...
创建一个属于自己的个人博客hexo + vercel + github + typroa + picgo
Created2020-10-07|blog
感觉需要一点东西记录生活,做自己喜欢做的事。 解决方案,hexo + vercel + github + typroa + picgo 获取Token 登录github->creat repository 接下来创建tkoen,记住一定要保存好,因为在打开就看不到了。 点开头像边的小三角,进入settings -> Developer settings 点击左边的personal access tokens 点击generate new token 将选项全部勾选,生成令牌,记得保存 在vercel上部署文件 注册github账号 使用github账号登录vercel 然后new project-> clone templates,选择hexo 自动创建仓库 部署完成之后点击visit便可查看初始页面 配置及安装hexo 安装hexo 安装nodejs。以获取npm工具 安装git。由于Windows不支持直接运行hexo,需要bash环境运行hexo。 新建一个文件夹hexo,右键打开git bash 输入npm inst ...
树莓派+二自由度云台小车(五)--服务器+网页控制
Created2020-03-08|raspberry
一、服务器 (1)简单讲解 C/S结构实现控制,树莓派运行服务器,中断通过访问网页实现控制小车,使用UDP通信。其中使用多线程控制小车的自动避障功能,写的不好的地方请批评指正。 (2)代码实现 创建server.py 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113from http.server import BaseHTTPRequestHandler,HTTPServerimport timeimport socketimport urllibfrom carCtrl import CARfrom camera_control import Camerafrom threa ...
123
avatar
dogh
这是珠珠的狗子
Articles
25
Tags
32
Categories
12
View
Recent Post
FFmpeg封装与解封装2022-01-27
FFmpeg基本命令2022-01-26
600-不含连续1的非负整数2021-09-12
刷题-6月2021-08-22
2021-08-18复盘2021-08-18
Categories
  • FFmpeg2
  • Leetcode1
  • OJ1
  • blog6
  • leetcode2
    • algorithm1
  • raspberry6
  • 操作系统与系统编程1
Tags
FFmpeg API L298N algorithm blog comment ffmpeg命令 github github hexo leetcode linux manacher memory ppt raspberry sensor sort string system coding typroa + picgo vercal 二进制 伺服电机 刷题 动态规划 可转债 摄像头监控 数位dp 机械键盘 环境搭建 脑残操作教训 重复操作
Archives
  • January 20222
  • September 20211
  • August 20212
  • April 20212
  • March 20211
  • January 20213
  • December 20202
  • October 20206
©2020 - 2023 By dogh
Framework Hexo|Theme Butterfly
Local search