Deprecated: Function create_function() is deprecated in /opt/app/nginx/www/html/wp-content/plugins/auto-syntaxhighlighter/auto-syntaxhighlighter.php on line 138

Deprecated: Function create_function() is deprecated in /opt/app/nginx/www/html/wp-content/plugins/auto-syntaxhighlighter/auto-syntaxhighlighter.php on line 187

Notice: 函数 wp_deregister_script 的调用方法不正确。 脚本和样式应在 wp_enqueue_scripts 、 admin_enqueue_scripts 和 login_enqueue_scripts 钩子函数之后再加入加载队列(enqueue)或注册(register)。 此通知由 l10n 触发。 请查阅调试 WordPress来获取更多信息。 (这个消息是在 3.3.0 版本添加的。) in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined variable: control_ops in /opt/app/nginx/www/html/wp-content/themes/yueboke/widgets/wid-banner.php on line 11

Deprecated: WP_Widget 类在 d_banner 中的调用构造方法自 4.3.0 版本起以弃用!请使用 __construct() 代替。 in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined variable: control_ops in /opt/app/nginx/www/html/wp-content/themes/yueboke/widgets/wid-slidebanner.php on line 11

Deprecated: WP_Widget 类在 d_slidebanner 中的调用构造方法自 4.3.0 版本起以弃用!请使用 __construct() 代替。 in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined variable: control_ops in /opt/app/nginx/www/html/wp-content/themes/yueboke/widgets/wid-readers.php on line 11

Deprecated: WP_Widget 类在 d_reader 中的调用构造方法自 4.3.0 版本起以弃用!请使用 __construct() 代替。 in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined variable: control_ops in /opt/app/nginx/www/html/wp-content/themes/yueboke/widgets/wid-postlist.php on line 11

Deprecated: WP_Widget 类在 d_postlist 中的调用构造方法自 4.3.0 版本起以弃用!请使用 __construct() 代替。 in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined variable: control_ops in /opt/app/nginx/www/html/wp-content/themes/yueboke/widgets/wid-comment.php on line 11

Deprecated: WP_Widget 类在 d_comment 中的调用构造方法自 4.3.0 版本起以弃用!请使用 __construct() 代替。 in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined variable: control_ops in /opt/app/nginx/www/html/wp-content/themes/yueboke/widgets/wid-tags.php on line 11

Deprecated: WP_Widget 类在 d_tag 中的调用构造方法自 4.3.0 版本起以弃用!请使用 __construct() 代替。 in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined variable: control_ops in /opt/app/nginx/www/html/wp-content/themes/yueboke/widgets/wid-textbanner.php on line 11

Deprecated: WP_Widget 类在 d_textbanner 中的调用构造方法自 4.3.0 版本起以弃用!请使用 __construct() 代替。 in /opt/app/nginx/www/html/wp-includes/functions.php on line 6260

Notice: Undefined index: cperpage in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 607

Notice: Undefined variable: output in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 678

Notice: Undefined variable: fixed_tags in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 679

Notice: Undefined variable: isshowdots in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 680

Notice: Undefined variable: tag_aditional in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 683

Notice: Undefined variable: tag_aditional in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 686

Notice: Undefined variable: tag_aditional in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 689

Notice: Undefined variable: post in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 698

Notice: Trying to get property 'ID' of non-object in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 698

Notice: Undefined variable: post in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 698

Notice: Trying to get property 'ID' of non-object in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 698

Notice: Undefined variable: more_text_link in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 698

Notice: Undefined index: wx in /opt/app/nginx/www/html/wp-content/themes/yueboke/functions.php on line 154
2 月 – 2018 – 业余草

2018年02月的内容

JAVA

JVM内存管理之GC(垃圾回收)策略与原理

herman 9年前 (2018-02-28) 4469浏览 0评论

内存管理一直是 JAVA 语言自豪与骄傲的资本,它让 JAVA 程序员基本上可以彻底忽略与内存管理相关的细节,只专注于业务逻辑。不过世界上不存在十全十美的好事,在带来了便利的同时,也因此引入了很多令人抓狂的内存溢出和泄露的问题。 在平时的工...

JAVA

Thread.sleep 教程

herman 9年前 (2018-02-28) 3459浏览 0评论

Thread.sleep 相信大家并不陌生。在 java 中代表将当前线程挂起指定的毫秒数。并会抛出一个 InterruptedException 异常。关于 Thread.sleep() 方法的用法,本文将详细的介绍。 ...

HTML5

HTML5 实现 alarm 壁纸的剪裁(smartcrop.js 教程)

herman 9年前 (2018-02-27) 5305浏览 0评论

HTML5 很强大,或者说 JavaScript 编程语言很强大,它们能在网页上实现智能剪裁。制作各种各样的壁纸,例如:alarm壁纸。在还有图片的壁纸上,能智能的分辨出人脸等。本文将借助 smartcrop.js 来实现一款智能图片裁...

JAVA

JVM 垃圾回收器参数配置教程

herman 9年前 (2018-02-27) 3871浏览 0评论

一说到 JVM 很多人都认为是很高深的东西。但其实并没有什么神秘莫测,我们只需记住它的一些参数和配置手册即可。本文将详细介绍 JVM 的一些参数用法。 垃圾搜集器选择参数 UseSerialGC:开启此参数使用serial &am...

JAVA

AgentWeb 教程

herman 9年前 (2018-02-27) 15645浏览 0评论

AgentWeb 是一个基于 Android 的 WebView 功能强大的组件库。在 WebView 性能和用户体验做了很多的优化,目前有网友开源在了 github 上。本文主要负责讲解它的一些简单的用法。 AgentWeb 介...

JAVA

阿里巴巴 Virtualview-Android 教程

herman 9年前 (2018-02-26) 5017浏览 0评论

Virtualview-Android 是阿里巴巴新开源的一个安卓组件库。它提供了一种比较通过一种通过自定义 XML 渲染视图的方式。本文介绍它的相关用法和教程。 目前天猫客户端组件动态化的方案使用的就是 Virtualview-...

HTML5

headless-chrome-crawler 教程

herman 9年前 (2018-02-24) 7581浏览 0评论

headless-chrome-crawler 是一个自带 JavaScript 执行环境的爬虫插件。它支持分布式,是一款分布式爬虫。它能解决 AngularJS、vue.js 等这些现代化的前端框架编写的网站的爬虫问题。本文将详细的介绍它的相关...

HTML5

HTML5 + CSS3 实现雷达扫描动画

herman 9年前 (2018-02-23) 7188浏览 0评论

这是一款 HTML5 + CSS3 实现的雷达扫描动画。该动画还可以实现动态的切换雷达状态。有平面图和立体图两种形态,看起来十分炫酷。它的一大特点是3D立体的视觉效果,鼠标点击雷达后将会展现一张3D立体地图,并且对地图上指定的几个地点进行坐标详细...

HTML5

HTML5 Canvas模仿瀑布动画效果

herman 9年前 (2018-02-23) 5305浏览 0评论

前段时间,我模仿的黑客帝国动画效果深受大家喜爱,今天我再为大家分享一款模仿瀑布动画效果,希望大家喜欢。 正如本文的主题一样,本动画案例使用的是 HTML5 + Canvas 技术实现。最终运行效果如下面截图: 相关主要的实现代...

HTML5

CSS 实现代码高亮显示行数原理解析

herman 9年前 (2018-02-23) 5416浏览 0评论

在很多编程网站,包括我的个人网站:业余草。大家都会看到很多书写代码的地方进行了高亮显示,并且还显示有代码的行数。这是怎么实现的呢?本文将通过原理层面为你解析。 整个实现的代码很简单,html 代码如下: <div class=&...

HTML5

process.nextTick() 教程

herman 9年前 (2018-02-23) 4684浏览 0评论

process.nextTick() 是 Node 的一个定时器,让任务可以在指定的时间运行。其中 Node 一共提供了4个定时器,它们分别是 setTimeout()、setInterval()、setImmediate()、process.n...

HTML5

setTimeout 和 setImmediate

herman 9年前 (2018-02-23) 3492浏览 0评论

由于setTimeout在 timers 阶段执行,而setImmediate在 check 阶段执行。所以,setTimeout会早于setImmediate完成。 setTimeout(() => console.log(1));...

HTML5

html doctype 的作用

herman 9年前 (2018-02-16) 3890浏览 0评论

随着《难忘今宵》这首歌的响起,代表着旧的一年已经过去,新的一年已经到来。 今天是大年初一,我闲着无事在网上继续学习编程知识,看到 github 上一位国外网友分享的《Front End Interview Handbook》(译:前端面试手...

JAVA

Openresty 网页加速教程

herman 9年前 (2018-02-16) 3904浏览 0评论

使用多级缓存来减少数据库的访问达到加快网页的速度。但是随着用户的继续上涨,系统的压力越来越大。单一的缓存数据减少数据库的访问效果就不是特别的明显了。openresty 能够直接在nginx层直接对请求处理,而不需要每次都访问tomcat...