1、先看效果: 现在QtChart免费了,可是老项目用的是QWT, 刚开始想的是启动时都绘制出来,自动一次次的交替显示。可是发现不可行,太卡 于是看了官方文档发现有setSamples有一个重载的方法,会自动更新就用了那个方法了。 void QwtPlotCurve::setSamples ( co ...
分类:
其他好文 时间:
2016-09-22 08:44:58
阅读次数:
125
1. 前序遍历 1.1 前序遍历的非递归的方式 利用stack while (!stack.isEmpty()) { pop作为根节点; 根节点加入result list; 把右边节点加入到stack; 把左边节点加入到stack; } 1 public class Solution { 2 pub ...
分类:
其他好文 时间:
2016-09-22 08:46:51
阅读次数:
208
1.看效果 实际上没必要做这么复杂,不过套用这个计时器模板,可以很方便的做出其他的动画效果. 贴个精简版本的. <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> # ...
分类:
其他好文 时间:
2016-09-22 08:45:23
阅读次数:
237
####第一页 <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitiona ...
分类:
其他好文 时间:
2016-09-22 08:43:43
阅读次数:
145
一.前言 1.现在研究一个app的web后台维护系统,使用的框架是struts2和一个封装的jdbc框架(这个功能类似hibernate,后续慢慢研究下源码); 2.之前一直使用eclipse做项目,现在转手用intellij idea,方便,人性化,功能多,用起来爽;感觉开始学习使用用eclips ...
分类:
其他好文 时间:
2016-09-22 08:43:26
阅读次数:
214
whenforkother‘sprojectingithub,toobtainthenewestversion,youneedtodo:cloneyourforkprojectintolocalpath:gitclonehttps://github.com/your_github/EventBus.gittrygitremove-v,ifyoucanonlyseeyourselforigin(fetch/push),thenyouhavetoaddthemanrepomanually:gitremoteadd..
分类:
其他好文 时间:
2016-09-22 07:45:03
阅读次数:
189
EventBusisapublish/subscribeeventbusoptimizedforAndroid.somakeitsimple,justthinkEventBusasaframeworkthatallowdifferentcompoentstocommunicate,usuallyasubscriberegisteracertainevent,thenwheneverapublisherhaspostanevent,anysubscribeswhohadregisterthiseventwill..
分类:
其他好文 时间:
2016-09-22 07:45:17
阅读次数:
322
1.提取字符串中的数字$echo‘dsFUs34tg*fs5a%8ar%$#@‘|awk-F""‘
{
for(i=1;i<=NF;i++)
{
if($i~/[[:digit:]]/)
{
str=$i
str1=(str1str)
}
}
printstr1
}‘
输出
3458
或
$echo‘dsFUs34tg*fs5a%8ar%$#@‘|awk-F""‘
{
for(i=1;i<=NF;i++)
{
if($i~/[0-9]/)
{
str=$i
str1=..
分类:
其他好文 时间:
2016-09-22 07:44:25
阅读次数:
219
庆科物联网平台架构分析
分类:
其他好文 时间:
2016-09-22 07:43:47
阅读次数:
258
/* 定义一个长方形类,定义 求周长和面积的方法, 然后定义一个测试了Test2,进行测试。 长方形的类: 成员变量: 长,宽 成员方法: 求周长:(长+宽)*2; 求面积:长*宽 注意: import必须出现在所有的class前面。*/ import java.util.Scanner; clas ...
分类:
其他好文 时间:
2016-09-22 07:43:16
阅读次数:
1192
Given a nested list of integers, return the sum of all integers in the list weighted by their depth. Each element is either an integer, or a list -- w ...
分类:
其他好文 时间:
2016-09-22 07:41:00
阅读次数:
130
2.打开/etc/inittab 文件 #vim /etc/inittab3.在默认的 run level 设置中,可以看到第一行书写如:id:5:initdefault:(默认的 run level 等级为 5,即图形界面)4.将第一行的 5 修改为 3 即可。 5.保存文件后重启系统你就可以看见 ...
分类:
其他好文 时间:
2016-09-22 07:39:46
阅读次数:
176
import java.util.Scanner; //必须写在所有class 前面 //创建录入对象 Scanner sc = new Scanner(System.in); System.out.println("请输入第一个操作数:"); int firstNumber = sc.nextIn ...
分类:
其他好文 时间:
2016-09-22 07:37:43
阅读次数:
121
Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements of nums except ...
分类:
其他好文 时间:
2016-09-22 06:38:06
阅读次数:
112
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up ...
分类:
其他好文 时间:
2016-09-22 06:35:56
阅读次数:
130
An abbreviation of a word follows the form <first letter><number><last letter>. Below are some examples of word abbreviations: a) it --> it (no abbrev ...
分类:
其他好文 时间:
2016-09-22 06:34:27
阅读次数:
184
278 First Bad Version23.7%Easy 278. First Bad Version 349 Intersection of Two Arrays44.5%Easy 374 Guess Number Higher or Lower32.2%Easy 350 Intersecti ...
分类:
其他好文 时间:
2016-09-22 06:34:04
阅读次数:
175