部署免费无限制图床

部署过程:

1.下载安装node 和 wrangler

npm install wrangler --save-dev

2.下载cf-image-hosting

git clone https://github.com/ifyour/cf-image-hosting.git
cd cf-image-hosting

2.运行以下命令完成部署:

npm install
npm run dev
npm run deploy

3.在cloudflare绑定域名

workers&pages -> Triggers -> Custom Domains -> Add a custom domain image

4.使用图床

image

5.感谢

1.感谢cf-image-hosting作者提供的集成,GitHub地址:cf-image-hosting 2.感谢Telegraph和Cloudflare提供的服务

Change Log

2024-02-04 创建

无线路由器常识

概述

先来看下路由器都包括哪些参数或者功能,他们具体的含义是什么。

包括如下:CPU、传输速率、适用频段、适用频率、网络接口、无线桥接、网络标准、QOS、防火墙、WPS几个部分。

路由器

​ 是一种连接两个以上个别网络的设备,提供路由与转送两种重要机制,可以决定封包从来源端到目的端所经过的路由路径(host到host之间的传输路径),这个过程称为路由;将路由器输入端的封包移送至适当的路由器输出端(在路由器内部进行),这称为转送。路由工作在OSI模型的第三层——即网络层。

相关术语:

SSID:用来表示无线网络,每个网络都有自己的SSID来标识自己。

​ BSSID:用来标识一个BSS,其格式和MAC地址一样,是48位的地址格式。一般来说,它就是所处的无线接入点的MAC地址。某种程度来说,它的作用和SSID类似,但是SSID是网络的名字,是给人看的,BSSID是给机器看的,BSSID类似MAC地址。

​ BSS(Basic Service Set):由一组相互通信的工作站组成,是802.11无线网络的基本组件。主要有两种类型的IBSS和基础结构型网络。IBSS又叫ADHOC,是临时组网,通信方式为Station<->Station;基础结构形网络,其通信方式是Station<->AP<->Station,也就是所有无线网络中的设备要想通信,都得经过AP。在无线网络的基础形网络中,最重要的两类设备:AP和Station。

​ DS(Distributed System):即分布式系统。分布式系统属于802.11逻辑组件,负责将帧转发至目的地址,802.11并未规定其技术细节,大多数商业产品以桥接引擎合分步式系统媒介共同构成分布式系统。分步式系统是接入点之间转发帧的骨干网络,一般是以太网。其实,骨干网络并不是分步系统的全部,而是其媒介。主要有三点:骨干网(例如以太网)、桥接器(具有有线无线两个网络接口的接入点包含它)、属于骨干网上的接入点所管辖的基础性网络的station通信(和外界或者BSS内部的station)必须经过DS、而外部路由只知道station的mac地址,所以也需要通过分布式系统才能知道station的具体位置并且正确送到。分步式系统中的接入点之间必须相互传递与之关联的工作站的信息,这样整个分步式系统才能知道哪个station和哪个ap关联,保证分步式系统正常工作(即转达给正确的station)。分步式系统也可以是使用无线媒介(WDS),不一定一定是以太网。总之,分步式系统骨干网络(例如以太网)做为媒介,连接各个接入点,每个接入点与其内的station可构成BSS,各个接入点中的桥接控制器有到达骨干网络和其内部BSS无线网的接口(类似两个MAC地址),station通信需要通过分布式系统。

CPU 处理器

​ CPU是处理数据的核心,它的好坏直接和速度关联(主要是有路由器定制系统的路由使用)。处理局域网与外网的数据交换时,有足够的响应时间与快速的响应速度,从而达到信号稳定、不丢包。

通常在中低端路由器中,CPU负责交换路由信息、路由表查找以及转发数据包。在高端路由器中,通常包转发和查表由ASIC芯片完成,CPU只实现路由协议、计算路由以及分发路由表。由于技术的发展,路由器中许多工作都可以由硬件实现(专用芯片)。

协议和速率

路由器的传输速率根据传输协议不同而不同:

wifi

协议发布年/月Op.标准频宽实际速度(标准)实际速度(最大)半径范围(室内)半径范围(室外)
Legacy19972.4-2.5 GHz1 Mbit/s2 Mbit/s??
802.11a19995.15-5.35/5.47-5.725/5.725-5.875 GHz25 Mbit/s54 Mbit/s约30米约45米[3]
802.11b19992.4-2.5 GHz6.5 Mbit/s11 Mbit/s约30米约100米
802.11g20032.4-2.5 GHz25 Mbit/s54 Mbit/s约30米约100米
802.11n20092.4 GHz or 5 GHz bands300 Mbit/s(20MHz*4 MIMO)600 Mbit/s(40MHz*4 MIMO)约70米约250米
802.11p20095.86-5.925 GHz3 Mbit/s27 Mbit/s约300米约1000米
802.11ac2011.115 GHz433Mbit/s, 867Mbit/s(80MHz,160MHz为可选)867Mbit/s, 1.73 Gbit/s, 3.47 Gbit/s, 6.93 Gbit/s(8 MIMO,160MHz)约35米[4]
802.11ad2009.122.4/5/60 GHz4620Mbps7Gbps(6756.75Mbps)约1-10米[5][6]
802.11ax2018.122.4/5 GHz10.53Gbps10米100米[7]

适用频段

一般支持5g或2.4g两个频率范围段的无线信号。如果两者同时可以设置,而不是互斥那么,这个路由器还能够同时支持两种频段(频段即Band),这相当于这个ap可建立两个无线网络,它们采用不同的频段(这类似收音机在长波范围内收音和短波范围内收音)

[]

使用Minimal Mistakes主题

为了测试主题的可用性,在本地安装Ruby,见安装jekyll

一 问题

这次由于不想直接替换掉之前的主题,以及想使用多个Collection存放文件导致在安装主题的时候一直不成功,浪费了很多时间,把过程中遇到的问题记录如下:

  1. 看文档不够仔细
  2. 目标不够明确,在安装的过程中经常变换注意力
  3. 英语太差,理解不了具体的意思,在看到真是的案例后才明白

二 创建流程

由于创建博客时,对各个内容不了解,创建的步骤的较为复杂,这里一步步讲。

先看整个目录结构,知道整体架构后,修改部分内容调整为自己喜欢的样式。

对于新手来说,主要修改的地方,是``_config.yml_data/navigation.yml,若是添加非默认的文章列表,不仅在config里添加新的内容,也需要在_pages`添加与Collection对应的页面。

├── CNAME
├── Gemfile
├── Gemfile.lock
├── LICENSE.txt
├── README.md
├── Rakefile
├── _config.yml
├── _data
   ├── navigation.yml
   └── ui-text.yml
├── _drafts
   └── crack_wifi.md
├── _includes
   ├── analytics-providers
      ├── custom.html
      ├── google-universal.html
      └── google.html
   ├── analytics.html
   ├── archive-single.html
   ├── author-profile-custom-links.html
   ├── author-profile.html
   ├── base_path
   ├── breadcrumbs.html
   ├── browser-upgrade.html
   ├── category-list.html
   ├── comment.html
   ├── comments-providers
      ├── custom.html
      ├── discourse.html
      ├── disqus.html
      ├── facebook.html
      ├── google-plus.html
      ├── scripts.html
      ├── staticman.html
      └── staticman_v2.html
   ├── comments.html
   ├── feature_row
   ├── figure
   ├── footer
      └── custom.html
   ├── footer.html
   ├── gallery
   ├── group-by-array
   ├── head
      └── custom.html
   ├── head.html
   ├── masthead.html
   ├── nav_list
   ├── page__hero.html
   ├── page__hero_video.html
   ├── page__taxonomy.html
   ├── paginator.html
   ├── post_pagination.html
   ├── read-time.html
   ├── scripts.html
   ├── seo.html
   ├── sidebar.html
   ├── social-share.html
   ├── tag-list.html
   ├── toc
   ├── toc.html
   └── video
├── _layouts
   ├── archive-taxonomy.html
   ├── archive.html
   ├── compress.html
   ├── default.html
   ├── home.html
   ├── single.html
   └── splash.html
├── _pages
   ├── 404.md
   ├── archive-layout-with-content.md
   ├── category-archive.html
   ├── collection-archive.html
   ├── contact.md
   ├── home.md
   ├── lorem-ipsum.md
   ├── page-a.md
   ├── page-archive.html
   ├── page-b.md
   ├── portfolio-archive.html
   ├── recipes-archive.html
   ├── sample-page.md
   ├── sitemap.md
   ├── splash-page.md
   ├── tag-archive.html
   ├── tech-archive.html
   ├── terms.md
   └── year-archive.html
├── _posts
   └── 2014-06-15-lovely-sentence.md
├── _sass
   ├── minimal-mistakes
      ├── _animations.scss
      ├── _archive.scss
      ├── _base.scss
      ├── _buttons.scss
      ├── _footer.scss
      ├── _forms.scss
      ├── _masthead.scss
      ├── _mixins.scss
      ├── _navigation.scss
      ├── _notices.scss
      ├── _page.scss
      ├── _print.scss
      ├── _reset.scss
      ├── _sidebar.scss
      ├── _syntax.scss
      ├── _tables.scss
      ├── _utilities.scss
      ├── _variables.scss
      ├── skins
         ├── _air.scss
         ├── _contrast.scss
         ├── _dark.scss
         ├── _default.scss
         ├── _dirt.scss
         ├── _mint.scss
         └── _sunrise.scss
      └── vendor
          ├── breakpoint
             ├── _breakpoint.scss
             ├── _context.scss
             ├── _helpers.scss
             ├── _legacy-settings.scss
             ├── _no-query.scss
             ├── _parsers.scss
             ├── _respond-to.scss
             ├── _settings.scss
             └── parsers
                 ├── _double.scss
                 ├── _query.scss
                 ├── _resolution.scss
                 ├── _single.scss
                 ├── _triple.scss
                 ├── double
                    ├── _default-pair.scss
                    ├── _default.scss
                    └── _double-string.scss
                 ├── resolution
                    └── _resolution.scss
                 ├── single
                    └── _default.scss
                 └── triple
                     └── _default.scss
          ├── font-awesome
             ├── _animated.scss
             ├── _bordered-pulled.scss
             ├── _core.scss
             ├── _fixed-width.scss
             ├── _font-awesome.scss
             ├── _icons.scss
             ├── _larger.scss
             ├── _list.scss
             ├── _mixins.scss
             ├── _path.scss
             ├── _rotated-flipped.scss
             ├── _screen-reader.scss
             ├── _stacked.scss
             └── _variables.scss
          ├── magnific-popup
             ├── _magnific-popup.scss
             └── _settings.scss
          └── susy
              ├── _su.scss
              ├── _susy-prefix.scss
              ├── _susy.scss
              ├── plugins
                 ├── _svg-grid.scss
                 └── svg-grid
                     ├── _prefix.scss
                     ├── _svg-api.scss
                     ├── _svg-grid-math.scss
                     ├── _svg-settings.scss
                     ├── _svg-unprefix.scss
                     └── _svg-utilities.scss
              └── susy
                  ├── _api.scss
                  ├── _normalize.scss
                  ├── _parse.scss
                  ├── _settings.scss
                  ├── _su-math.scss
                  ├── _su-validate.scss
                  ├── _syntax-helpers.scss
                  ├── _unprefix.scss
                  └── _utilities.scss
   └── minimal-mistakes.scss
├── _site
   ├── CNAME
   ├── _pages
      └── 404
          └── index.html
   ├── archive-layout-with-content
      └── index.html
   ├── assets
      ├── css
         └── main.css
      ├── fonts
         ├── FontAwesome.otf
         ├── fontawesome-webfont.eot
         ├── fontawesome-webfont.svg
         ├── fontawesome-webfont.ttf
         ├── fontawesome-webfont.woff
         └── fontawesome-webfont.woff2
      └── js
          └── main.min.js
   ├── banner.js
   ├── categories
      └── index.html
   ├── collection-archive
      └── index.html
   ├── contact
      └── index.html
   ├── feed.xml
   ├── index.html
   ├── lorem-ipsum
      └── index.html
   ├── lovely-sentence
      └── index.html
   ├── minimal-mistakes-jekyll.gemspec
   ├── page-a
      └── index.html
   ├── page-archive
      └── index.html
   ├── page-b
      └── index.html
   ├── portfolio
      └── index.html
   ├── recipes
      └── index.html
   ├── robots.txt
   ├── sample-page
      └── index.html
   ├── sitemap
      └── index.html
   ├── sitemap.xml
   ├── splash-page
      └── index.html
   ├── start
      ├── favicon.png
      ├── icon.png
      ├── start.html
      └── style.css
   ├── staticman.yml
   ├── tags
      └── index.html
   ├── tech
      ├── 2013-10-26-gitbub-tips
         └── index.html
      ├── 2013-11-12-vim-tips
         └── index.html
      ├── 2014-06-10-vim-tutorial
         └── index.html
      ├── 2014-12-20-vba-password-crack
         └── index.html
      ├── 2015-01-23-nexus4-no-audio-bug-fix
         └── index.html
      ├── 2017-01-13-VBA-string-replace-and-modify-code
         └── index.html
      ├── 2017-10-28-homebrew-tips
         └── index.html
      ├── 2017-10-28-jekyll-install-and-use
         └── index.html
      └── 2017-10-29-use-Minimal-Mistakes-theme
          └── index.html
   ├── tech-archive
      └── index.html
   ├── terms
      └── index.html
   └── year-archive
       └── index.html
├── _tech
   ├── 2013-10-26-gitbub-tips.md
   ├── 2013-11-12-vim-tips.md
   ├── 2014-06-10-vim-tutorial.md
   ├── 2014-12-20-vba-password-crack.md
   ├── 2015-01-23-nexus4-no-audio-bug-fix.md
   ├── 2017-01-13-VBA-string-replace-and-modify-code.md
   ├── 2017-10-28-homebrew-tips.md
   ├── 2017-10-28-jekyll-install-and-use.md
   └── 2017-10-29-use-Minimal-Mistakes-theme.md
├── assets
   ├── css
      └── main.scss
   ├── fonts
      ├── FontAwesome.otf
      ├── fontawesome-webfont.eot
      ├── fontawesome-webfont.svg
      ├── fontawesome-webfont.ttf
      ├── fontawesome-webfont.woff
      └── fontawesome-webfont.woff2
   └── js
       ├── _main.js
       ├── main.min.js
       ├── plugins
          ├── jquery.fitvids.js
          ├── jquery.greedy-navigation.js
          ├── jquery.magnific-popup.js
          └── jquery.smooth-scroll.min.js
       └── vendor
           └── jquery
               └── jquery-3.2.1.min.js
├── banner.js
├── index.html
├── logo.png
├── minimal-mistakes-jekyll.gemspec
├── package.json
├── start
   ├── favicon.png
   ├── icon.png
   ├── start.html
   └── style.css
└── staticman.yml

2.1 确定导航

修改_data/navigation.yml,看里面的内容:

[]

nexus 4 电话无声音修复方式

###问题描述 谷歌四儿子在待机几个小时后做被叫能够听到铃声,接听后没有声音,对方也听不到声音,做主叫打给对方时听不到对方的响铃,对方接听后也是无声音,重启后正常。

Android 5.0.1
版本后:LRX22C

###解决方法

*关闭Nuplayer
在“开发者选项” 关闭“使用NuPlayer”功能,该功能为实验性功能 链接地址 440楼

*禁用所有check开头的服务,需要root(没有尝试)
禁用GMS checkin service,但据说禁用后会增大电量的消耗,所以建议禁用所有checkin开头的服务 讨论地址

###最后

该问题在Google的Nexus论坛上很多人反馈,但是Google貌似没有给出解决方法或者解决bug的计划

自从四儿子升级到5.0.1之后不但接打电话没声音,还经常重启,在考虑要不要换成其他系统了,表示已经受够了