YUMREPO ERROR: ALL MIRROR URLS ARE NOT USING FTP, HTTP[S] OR FILE

When trying update CentOS with yum update command getting error:

1
2
3
4
5
6
7
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Update Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

1038

Cause

My server is CentOS 6. But now CentOS 6 reached end of life on the 30th November 2020. YUM attempting connect to deprecated repositories. So, we need update deprecated repositories URL’s and point to the vault.

Read More

H5页面跳转小程序

最近,非个人主体的认证的小程序,可以直接在html页面中打开,这个权限还挺有用的,不仅适用于微信内部的浏览器,而且还可以在外部浏览器或者app中打开,比如UC浏览器、华为浏览器等。这里注意一下,官方特别说明:是使用云开发托管的网页

开通条件:

Read More

Electron Bootstrap's JavaScript requires jQuery Error

在开发Electron程序时,在引入jQueryBootstrap后,控制台报错:

1
2
3
4
5
Uncaught TypeError: Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.
at Object.jQueryDetection (bootstrap.min.js:6)
at bootstrap.min.js:6
at bootstrap.min.js:6
at bootstrap.min.js:6

而反复查看代码没发现问题,引用的顺序没有问题:

1
2
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>

后在网上找到了一些方法,解决了我的疑惑。

Read More