2020年11月

首先说下博主出现这个报错的情形:自己使用是谷歌浏览器,访问谷歌网址, 浏览器使用了科学上网插件. 如果和我的情形一样,那么博主的办法可参考下.
经过排查发现是dns污染的问题.以下为排查教程;

  • 先确认下科学上网的插件是否正常工作
    比较简单的一个办法就是,点击该插件然后点击访问该插件的谷歌应用商店,如果能访问那么说明你的科学上网没问题, 继续下一步.
  • 修正自己电脑上的dns地址
    查看下自己电脑当前的dns服务器用的ip是多少(怎么查看因为操作系统方法也不同,故不做详述自行搜索), 建议更换为114.114.114.114 和 223.6.6.6 这两个都是国内比较大的dns服务,后者为阿里的. 更改保存后, 然后刷新下本机的dns(刷新也请自行搜索)
  • 最后但同样重要,重启下浏览器
    这里说下遇到的一个坑, 在开始遇到报错时, 我也绝得是dns的,所以一开始就dns调整为合适了,然后直接再重试访问,当然还是访问失败, 就以为不是dns的问题,即使我也想到清理了下网页缓存, 但还是同样的报错, 最后试了一大圈,才发现浏览器重启了,就能正常访问, 所以建议浏览器最好重启下再重新访问试下. 就因为没重启才导致这个小问题没能快速解决.

November Headline: Python is unstoppable and surpasses Java

For the first time since the start of the TIOBE index nearly 20 years ago, Java and C don't make up the top 2 positions any more. C is still number one, but it is Python that claims the second position now. Some say that Python's recent surge in popularity is due to booming fields such as data mining, AI and numerical computing. But I have my own take on this. I believe that Python's popularity has to do with general demand. In the past, most programming activities were perfomed by software engineers. But programming skills are needed everywhere nowadays and there is a lack of good software developers. As a consequence, we need something simple that can be handled by non-software engineers, something easy to learn with fast edit cycles and smooth deployment. Python meets all these needs.
Some time ago I had a flat tyre and called the road patrol to help me out. The mechanic asked about my living and when I used the word "software" in my answer, he smiled and started talking very enthousiastically about his own passion: programming in Python. From that moment on, I knew Python would become ubiquitous - Paul Jansen CEO TIOBE Software

排名编程语言Ratings同比上月
1C16.21%+ 0.17%
2Python12.12%+2.27%
3Java11.68%-4.57%
4C++7.60%+1.99%
5C#4.67%+0.36%
6Visual Basic4.01%-0.22%
7JavaScript2.03%+0.10%
8PHP1.79%+0.07%
9R1.64%+0.66%
10SQL1.54%-0.15%
11Groovy1.51%+0.41%
12Perl1.51%+0.68%
13Go1.36%+0.51%
14Swift1.35%-0.31%
15Ruby1.22%-0.04%
16Assembly language1.17%+0.14%
17MATLAB1.10%+0.21%
18Delphi/Object Pascal0.86%-0.28%
19Objective-C0.84%-0.35%
20Transact-SQL0.82%+0.44%
21Classic Visual Basic0.73%--
22Logo0.72%--
23Scratch0.63%--
24PL/SQL0.62%--
25Rust0.58%--
26SAS0.58%--
27Dart0.54%--
28COBOL0.53%--
29Scala0.53%--
30Julia0.50%--
31PowerShell0.48%--
32D0.46%--
33ABAP0.43%--
34Fortran0.41%--
35Lisp0.40%--
36Kotlin0.38%--
37Lua0.37%--
38Ada0.37%--
39VHDL0.35%--
40Prolog0.35%--
41Haskell0.34%--
42Apex0.34%--
43TypeScript0.32%--
44Bash0.31%--
45Tcl0.29%--
46ML0.28%--
47Alice0.27%--
48Scheme0.26%--
49(Visual) FoxPro0.25%--
50Awk0.22%--

后50名(#51-#100)

(因差距很小,故以下按字母顺序列出)
ABC, ActionScript, Applescript, Arc, AutoLISP, bc, Bourne shell, C shell, Clojure, CoffeeScript, Common Lisp, Crystal, cT, Dylan, Elixir, Elm, Emacs Lisp, Erlang, F#, Forth, Hack, Icon, Inform, Io, J, Korn shell, LabVIEW, Ladder Logic, Lingo, LiveCode, Maple, Mercury, MQL4, NATURAL, OpenCL, OpenEdge ABL, PL/I, PostScript, Q, REXX, Ring, RPG, Simulink, Small Basic, Solidity, SPARK, Stata, Vala/Genie, VBScript, Verilog

以上数据来自权威网站TIOBE Index

复制以下代码到console控制中, 并回车执行, 然后只有使用 console.save(变量名) 命令轻松的将控制台中的变量下载到本地来. 

(function(console){
    console.save = function(data, filename){

    if(!data) {
        console.error('Console.save: No data')
        return;
    }

    if(!filename) filename = 'console.json'

    if(typeof data === "object"){
        data = JSON.stringify(data, undefined, 4)
    }

    var blob = new Blob([data], {type: 'text/json'}),
        e    = document.createEvent('MouseEvents'),
        a    = document.createElement('a')

    a.download = filename
    a.href = window.URL.createObjectURL(blob)
    a.dataset.downloadurl =  ['text/json', a.download, a.href].join(':')
    e.initMouseEvent('click', true, false, window, 0, 0, 0, 0, 0, false, false, false, false, 0, null)
    a.dispatchEvent(e)
 }
})(console)

其实在console控制台,也可以使用copy(变量名)来复制变量到剪切板上.copy命令也很方便

注意:
有些情况下使用copy命令复制数组变量总是得到空数组, 那么建议使用对象类型, 使用对象类型一定是复制出来的.