--------- Java培训、Android培训、iOS培训、.Net培训
期待与您交流! ------
一,概述:
1,异常和错误:Java编译或运行时期发生的不正常行为。运行时除了exception还有error
异常Exception:通常发生的错误可以有针对性的处理方式。
错误error:通常发生后不会有针对性的处理方式,er...
分类:
其他 时间:
2015-06-09 12:00:11
收藏:
0 评论:
0 赞:
0 阅读:
241
本文在上篇文章基础上,更加深入讲解了Kafka的HA机制,主要阐述了HA相关各种场景,如Broker failover,Controller failover,Topic创建/删除,Broker启动,Follower从Leader fetch数据等详细处理过程。同时介绍了Kafka提供的与Replication相关的工具,如重新分配Partition等。...
分类:
其他 时间:
2015-06-09 11:59:41
收藏:
0 评论:
0 赞:
0 阅读:
242
硬件和软件环境是这样的:
DM8168 + linux, 解码器是DM8168自带的
视频来源:
ipc通过live555做的的rtsp sever发送过来的
其他测试:
通过VLC在pc连4路1080P没有问题,都挺流畅的;
用之前一个项目中自己实现的RTSP client连同样的1080p 4路到6路都没有问题(只是那个占用内存太多了,才打算用live555重写)
live5...
分类:
其他 时间:
2015-06-09 11:59:11
收藏:
0 评论:
0 赞:
0 阅读:
1680
contiki系统中关于simple_udp_register中回掉函数解析
simple-udp.c中的simple_udp_register()函数的解析,重点为回掉函数,结合broadcast-udp.c这个例子对其进行分析。
broadcast-udp.c是基于simple-udp的一个广播数据报的例子。...
分类:
其他 时间:
2015-06-09 11:59:01
收藏:
0 评论:
0 赞:
0 阅读:
278
Given an array and a value, remove all instances of that value in place and return the new length.The order of elements can be changed. It doesn’t matter what you leave beyond the new length.思路:遍历数组,如果...
分类:
其他 时间:
2015-06-09 11:58:52
收藏:
0 评论:
0 赞:
0 阅读:
169
之前看声明周期,发现进入特定界面后就直接onPause()了,然后就进入入口界面了,之后就destory了,不知道什么原因。一开始以为是调用了两次方法,但是查了再查,改了再改都没用,以为是框架问题,发现并不冲突。后来发现当使用百度平台发送就能进入想要的界面,用自己服务端代码发送点击后就不能进入。
后来查看服务端代码,找到里面有一个open_type,官方解释如下:
open_type:点击通知...
分类:
其他 时间:
2015-06-09 11:58:01
收藏:
0 评论:
0 赞:
0 阅读:
855
Object java.lang.Object.clone() throws CloneNotSupportedException
创建并返回这个对象的拷贝。
虽然clone()方法是Object类的方法,但自己的类必须实现java.lang.Cloneable接口,否则会报错java.lang.CloneNotSupportedException。
效果为创建一个新对象,然后逐字段地拷贝,...
分类:
其他 时间:
2015-06-09 11:57:41
收藏:
0 评论:
0 赞:
0 阅读:
178
**********1.在执行git push origin master指令时报如下错误:
iluckysi@ILUCKYSI-PC /d/ilucky/message/code (master)
$ git push origin master
Username for 'https://github.com': IluckySi
Password for 'https://Iluck...
分类:
其他 时间:
2015-06-09 11:57:31
收藏:
0 评论:
0 赞:
0 阅读:
372
SharePoint 2013 开发——SharePoint Designer 2013工作流...
分类:
其他 时间:
2015-06-09 11:57:21
收藏:
0 评论:
0 赞:
0 阅读:
246
《项目百态:软件项目管理面面观》浓缩了成百上千个项目管理的案例,通过一个个模式展现出来。每个模式都以生动形象的插图开始,另外还加上一些趣闻和真实事件。...
分类:
其他 时间:
2015-06-09 11:57:12
收藏:
0 评论:
0 赞:
0 阅读:
247
Implement next permutation, which rearranges numbers into the lexicographically next
greater permutation of numbers.If such arrangement is not possible, it must rearrange it as the lowest possible ord...
分类:
其他 时间:
2015-06-09 11:56:11
收藏:
0 评论:
0 赞:
0 阅读:
249
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length.Do not allocate extra space for another array, you must do this in place with cons...
分类:
其他 时间:
2015-06-09 11:55:51
收藏:
0 评论:
0 赞:
0 阅读:
220
https://icpcarchive.ecs.baylor.edu/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&category=648&problem=5158&mosmsg=Submission+received+with+ID+1708713
/**
UVA LA 7146 2014上海亚洲赛(贪心)
题目大...
分类:
其他 时间:
2015-06-09 11:55:31
收藏:
0 评论:
0 赞:
0 阅读:
138
坑爹的不知道从哪里看到说只有pcap最多只支持到python2.5,然后又是easy install又是安装pip就是无法成功import pcap。。。
我的python版本是2.7.8。
sudo apt-get install python-pypcap
import pcapy
没有报错了,重要可以安心的抓包了。...
分类:
其他 时间:
2015-06-09 11:55:12
收藏:
0 评论:
0 赞:
0 阅读:
286
在先前的例子中,我们可以“使用SQLite offline storage API来存储应用的设置”。我们也在例程“如何在QML应用中动态修改ListModel中的数据并存储它为JSON格式”中展示如何把我们需要的JSON存储到一个本地的文件中。在这篇文章中,我们将使用QtQuick所提供的LocalStorage来存储我们所需要的数据。...
分类:
其他 时间:
2015-06-09 11:54:51
收藏:
0 评论:
0 赞:
0 阅读:
2110
首先将本节主要内容记录下来,然后给出课后习题的答案。
笔记:
1:首先我想推导用SVD求解PCA的合理性。
PCA原理:假设样本数据X∈Rm×n,其中m是样本数量,n是样本的维数。PCA降维的目的就是为了使将数据样本由原来的n维降低到k维(k<n)。方法是找数据随之变化的主轴,在Andrew
Ng的网易公开课上我们知道主方向就是X的协方差所对应的最大特征值所对应的特征向量的...
分类:
其他 时间:
2015-06-09 11:53:48
收藏:
0 评论:
0 赞:
0 阅读:
350
可以定义工作流,支持顺序及分支支持指派类型:部门、岗位、人员
与汇聚、或汇聚以及投票汇聚...
分类:
其他 时间:
2015-06-09 11:53:23
收藏:
0 评论:
0 赞:
0 阅读:
308
一、逻辑结构类型
集合、线性结构、树形结构、图形结构。
其中集合表示数据元素之间没有任何关系,树形结构和图形结构都是非线性结构。
二、存储结构类型
顺序存储结构、链式存储结构、索引存储结构、散列(哈希)存储结构。
三、算法的特性
有穷性、确定性、可行性、有输入、有输出。
算法与程序不同,程序可能不满足有穷性,即可能无穷循环,但是算法必须满足有穷性。
四、算法...
分类:
其他 时间:
2015-06-09 11:52:41
收藏:
0 评论:
0 赞:
0 阅读:
266
Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every element is...
分类:
其他 时间:
2015-06-09 11:52:21
收藏:
0 评论:
0 赞:
0 阅读:
700
The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.

Given an integer n, return...
分类:
其他 时间:
2015-06-09 11:51:41
收藏:
0 评论:
0 赞:
0 阅读:
245