先说点废话,从去年夏天就开始关注学习ASP.NET Core,那时候的版本还是beta5,断断续续不停踩坑、一路研究到11月份RC1发布。 在这个乐此不疲的过程里,学习了很多新的东西,对ASP.NET Core也是越来越喜爱。然而到现在,RC1已经玩了整整半年了,再也没发布过新版本。 虽然myget ...
分类:
Web程序 时间:
2016-05-15 07:05:49
阅读次数:
208
今天我们来讨论一下Python类中所存在的特殊方法——静态方法、类方法。 一.定义 静态方法: 一种简单函数,符合以下要求: 1.嵌套在类中。 2.没有self参数。 特点: 1.类调用、实例调用,静态方法都不会接受自动的self参数。 2.会记录所有实例的信息,而不是为实例提供行为。 类方法: 一... ...
分类:
编程语言 时间:
2016-05-15 07:04:49
阅读次数:
221
At the moment the problem is that, if you try to navigate to a route that is not configured, you will see only the layout page without any partial tem ...
分类:
Web程序 时间:
2016-05-15 07:05:28
阅读次数:
159
1)OLLVM源码分析,设计Native混淆方案 2)安卓通用脱壳技术、dex/elf修复研究 3)安卓安全架构学习 4)Android源码阅读笔记 5)安卓开发 ...
分类:
其他好文 时间:
2016-05-15 07:03:28
阅读次数:
170
Here is what we want to do : When we navigate to /students, the list of student names must be displayed as hyperlinks. When we click on any student na ...
分类:
Web程序 时间:
2016-05-15 07:04:06
阅读次数:
256
一从hello world说起 The only way to learn a new programming language is by writing programs in it.The first program to write is the same for all languages ...
分类:
其他好文 时间:
2016-05-15 07:04:35
阅读次数:
194
微软在2015年4月29日发布了树莓派玩家期待已久的 Windows 10 物联网核心预览版(Windows 10 IoT Core Insider Preview Image for Raspberry Pi 2)。这是Windows首次登录树莓派,下面树莓派实验室为你介绍如何在树莓派2上安装Wi ...
JDK 目前最新版为jdk-8u5,这次没有选择安装最新的jdk8,而是要安装jdk7的最高版jdk-7u55 。 首先,去官网下载jdk-7u55,地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1 ...
分类:
编程语言 时间:
2016-05-15 07:04:52
阅读次数:
210
If you are looking for a host website, you can try Firebase, heroku or AWS... Today, I tried to deploy a simple website to Firebase, it looks like pre ...
分类:
Web程序 时间:
2016-05-15 07:04:03
阅读次数:
134
Yarn resourceManager 无法启动 错误日志: 在日志hadoop2/logs/arn-daiwei-resourcemanager-ubuntu1.log中 problem binding to [ubuntu1:8036] java.net.BindException: Addr ...
分类:
其他好文 时间:
2016-05-15 07:02:31
阅读次数:
358
In the previous videos if you have noticed as we were typing the angular code in Script.js file we were getting some intellisense but it definitely is ...
分类:
Web程序 时间:
2016-05-15 07:02:09
阅读次数:
142
HTML 侧边栏HTML代码: jQuery ...
分类:
其他好文 时间:
2016-05-15 07:03:03
阅读次数:
204
需求: 假设已经有了一些类,现在想统计每个方法调用花了多长时间,该怎么做? 思路: 我第一个想法就是去每个方法执行前后记录一下当前的时间戳,然后相减统计到日志。 OK,没问题,那么这样做合理吗? 首先,工作量大且全部都是重复劳动; 其次,扩招性极其差; 再次,不优雅,写代码不仅要考虑到完成需求,一定 ...
分类:
编程语言 时间:
2016-05-15 07:04:10
阅读次数:
235
分析日志的包自己编译下:sbt compile
sbt test
sbt package
ApacheLogParser.jar对于访问日志简单分析grep等利器比较好,但是更复杂的查询就需要Spark了。代码:import com.alvinalexander.accesslogparser._
val p = new AccessLogParser
val log = sc.textFile("...
分类:
Web程序 时间:
2016-05-15 02:35:45
阅读次数:
241
经常在 Xcode IDE 里面的代码中看到以下代码指令:
#pragma mark -
#pragma mark Initialization
#pragma 是什么
从技术上讲,以 #pragma 开头的代码是一条编译器指令,是一个特定于程序或编译器的指令。它们不一定适用于其它编译器或其它环境。如果编译器不能识别该指令,则会将其忽略。
作用
它们告诉Xcode编译器,要在编辑...
分类:
其他好文 时间:
2016-05-15 02:35:24
阅读次数:
219
我在之前一篇博客《iOS响应者链Responder Chain浅析》中对iOS开发中遇到的响应者链概念有了基本的了解。但是仅仅停留在理解概念的基础上还是远远不够的。该博客我们会通过代码案例来深入理解响应链。该博客的示例上传至 https://github.com/chenyufeng1991/ResponderChain 。(1)首先来说说第一响应者(First Responder)。响应事件的...
分类:
移动开发 时间:
2016-05-15 02:36:07
阅读次数:
375