这是一款每天会默默保护你眼睛健康的小软件(几百KB),它能随着一天的时间变化自动调整你电脑显示器屏幕的色温,从而尽可能减少屏幕对眼睛所带来的疲劳感。f.lux的设定在中午12点时是色温高潮点,午夜12点是色温低谷点。简单的说,也就是说白天冷色调,夜晚暖色调。官网还提供了据说很专业研究报告,用数据与事...
分类:
其他好文 时间:
2015-01-15 10:34:37
阅读次数:
220
本代码实现GPS定位,并定时在界面上呈现定位的精度以及在用卫星数量。布局代码如下: 首先写后台的LBSServiceListener 实现LocationListener接口,在这个LBSServiceListener 中可以重写方法,代...
分类:
其他好文 时间:
2015-01-15 10:34:16
阅读次数:
177
#import - (IBAction)authenticateButtonTapped:(id)sender { LAContext *context = [[LAContext alloc] init]; context.localizedFallbackTitle = @"输入密码"; ...
分类:
其他好文 时间:
2015-01-15 10:34:38
阅读次数:
175
详情参考:http://tomcat.apache.org/tomcat-7.0-doc/apr.htmlhttp://www.365mini.com/page/tomcat-connector-mode.htm操作环境:rhel6.3 x86_x64、 tomcat7.0.42tomcat con...
分类:
其他好文 时间:
2015-01-15 10:34:34
阅读次数:
140
消息来源:http://os.51cto.com/art/201003/190108.htm OpenAM主页连接: http://openam.forgerock.org/
分类:
其他好文 时间:
2015-01-15 10:33:29
阅读次数:
148
转载内容,源地址http://www.qiytech.com/jiejuefangan/gongyekz/922.html摘 要:为解决特殊场合DSP程序升级困难的问题,以TMS320F28035为例,介绍了一种基于串口通信的适合于TMS320C2000系列DSP实现程序更新的在线升级方法。描述了该...
分类:
其他好文 时间:
2015-01-15 10:33:51
阅读次数:
810
1.1. 双向一对多
Order.java
package com.morris.entity;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
im...
分类:
其他好文 时间:
2015-01-15 09:31:11
阅读次数:
158
邻接矩阵和邻接表区别:
对于n个顶点,m条边,对于n阶有向完全图最大的m=2*( n-1+(n-2)+(n-3)+...+2+1 )= O(n^2) ,当边数远小于n^2的稀疏图来说用邻接表储存图的空间时间复杂度是O(M),而邻接矩阵储存是O(N^2).
邻接表的两种实现方式:
1.用数组实现:
int u[ ],v[ ],w[ ]; //分别储存u点,v点,和边权值。
int ...
分类:
其他好文 时间:
2015-01-15 09:29:00
阅读次数:
224
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy one and sell one share of the stock),...
分类:
其他好文 时间:
2015-01-15 09:30:17
阅读次数:
172
题意:
维护一个集合,操作有1:加入一个元素,2:删除最大元素,3:删除最小元素。
分析:
map本质是个容器,且具有第一个关键字有序的性质,所以用它来水水就好啦~
代码://poj 3481
//sep9
#include
#include
using namespace std;
map mymap;
map::iterator iter;
int main()
{
int...
分类:
其他好文 时间:
2015-01-15 09:27:27
阅读次数:
193
1.1. 关系维护方
Person.java
package com.morris.entity;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence....
分类:
其他好文 时间:
2015-01-15 09:29:59
阅读次数:
178
Say you have an array for which the ith element is the price of a given stock on day i.
Design an algorithm to find the maximum profit. You may complete as many transactions as you like (ie, buy on...
分类:
其他好文 时间:
2015-01-15 09:27:56
阅读次数:
187
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path.
Note: You can only move either down or right at...
分类:
其他好文 时间:
2015-01-15 09:28:07
阅读次数:
124
1. 对象和类(上)
1.1. 面向对象程序设计
1.1.1. 面向过程的结构化程序设计
首先来看一个需求,实现员工信息管理,将员工简历信息中的数据:姓名、性别、年龄、薪水, 存储在信息管理系统中进行操作。可以定义一个输出雇员信息的方法进行数据的输出,传递4个参数,代码如下:/** 打印员工信息的方法 */
public static void printEmpInf...
分类:
其他好文 时间:
2015-01-15 09:27:56
阅读次数:
243
题目描述
sed同学最近迷上了制造机器狗,购置了大量所需零件,零件可以组装为一个组件,这些组件或零件又可以组装为一个大的组件。在制造机器狗中,组件或零件只能两两进行组装,组装的顺序任意。在机器狗中,每个零件都有一个组装成本,每次组装一个组件的费用为各个零件组装成本之和。给定各个零件组装成本(单位为元),你的任务是帮助sed计算他至少花费多少费用。
输入
第一行包括一个整数N,表示...
分类:
其他好文 时间:
2015-01-15 09:26:03
阅读次数:
114
首先 秦神QY Orz
题解:
这道题后缀数组过于鬼畜(wo’tai’ruo’bu’gan’xie)
所以写了简单好写易于理解不用分治不用RMQ的SAM大叔。
题解:
首先其实我们需要一个后缀树,然后两个后缀的lcp就是它们lca的len。
后缀树可以通过反序后缀自动机得到,这个很水。
然后len的性质就是后缀自动机的那个len(我写的‘deep’)。
后缀树上DP就水了...
分类:
其他好文 时间:
2015-01-15 09:27:52
阅读次数:
199