基础拦截器操作: 拦截器是一种AOP操作实现,那么在AOP之中用户一定不需要去关注拦截器的存在,用户只需要按照自己已经习惯的处理方式进行代码的编写即可。 首先我们先创建一个自定义的拦截器: 接下来我们来配置核心文件:CustomInterceptor.xml 下面我们来说明一下: "/sys/**" ...
分类:
编程语言 时间:
2018-11-07 11:18:56
阅读次数:
202
Flask解决跨域 问题:网页上(client)有一个ajax请求,Flask sever是直接返回 jsonify。 然后ajax就报错:No 'Access-Control-Allow-Origin' header is present on the requested 原因:ajax跨域访问是 ...
分类:
其他好文 时间:
2018-11-03 02:21:51
阅读次数:
222
让我们的Android ROOT,多一点套路。 一、简单套路 CVE-2012-6422的漏洞利用代码,展示了另一种提权方法。(见附录) 这也是一个mmap驱动接口校验导致映射任意内核地址的洞。将内核映射到用户进程空间后,使用setresuid(0, 0, 0)进行提权。 其步骤如下: 二、详解 1 ...
分类:
移动开发 时间:
2018-10-28 00:55:18
阅读次数:
227
去年做的一道 CTF,清理文档 0x01 The .init and .fini Sections 参考下面链接:http://www.ru.j-npcs.org/usoft/WWW/www_debian.org/Documentation/elf/node3.html 简单说一下,即.init中的 ...
分类:
其他好文 时间:
2018-10-28 00:49:40
阅读次数:
327
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representati ...
分类:
其他好文 时间:
2018-10-27 00:22:06
阅读次数:
121
Lecture1 Introduction and Basic Concepts 一、机器学习定义 二、机器学习算法 - Supervised learning 监督学习 - Unsupervised learning 无监督学习 - Reinforcement learning 强化学习 - Re ...
分类:
其他好文 时间:
2018-10-26 19:44:44
阅读次数:
127
原文:借助Photoshop,Illustrator等设计软件进行WPF图形图像的绘制 本文所示例子是借助第三方设计软件,制作复杂的矢量图形,转成与XAML酷似的SVG,再转换成xaml而实现的。 这是原图: 使用Photoshop处理后的二值图片:为何处理成黑白的二值图片呢,是方便使用Illust... ...
这个课程的参考视频在youtube。 主要学到的知识点有: It is different from python, that "1" only present string "1", and '1' only presents char '1'. (type) can chang the type ...
分类:
编程语言 时间:
2018-10-25 11:14:53
阅读次数:
179
原文:.NET Core和.NET Standard有什么不同 近日,微软发布了.NET Core 2.0,但是开发人员中间仍然存在一些疑惑,就是.NET Core、.NET Standard、Xamarin和.NET Framework有什么不同。 .NET Framework用于构建桌面应用程序... ...
分类:
Web程序 时间:
2018-10-25 00:35:09
阅读次数:
157
1.什么时候需要使用UITableView? 官方文档如下 To let users navigate through hierarchically structured data To present an indexed list of items To display detail infor ...
分类:
其他好文 时间:
2018-10-25 00:34:16
阅读次数:
205