package swing;
import java.awt.BorderLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import java.awt.event.ActionEvent;
import java.awt.event.Action...
对于输出的报文,主要做如下操作: 1. 调用ip_route_output_flow路由查找 2.
在ip_route_output_flow里面会调用xfrm_lookup进行ipsec policy查找 3.
如果policy的action为XFRM_POLICY_ALLOW,则调用xfrm_f...
分类:
其他好文 时间:
2014-06-10 21:12:37
阅读次数:
389
WPF 中资源路径的问题1. 引用当前工程的资源(注意xxxx.png的build action
应设置为Resource 或Embedded Resource)2.引用其它工程的资源 (注意xxxx.png的build action
应设置为Resource 或Embedded Resource)...
分类:
其他好文 时间:
2014-06-10 19:33:30
阅读次数:
219
在前面的文章:[iOS]在WebApp中如何使用JS调用iOS的函数 中,提到了如何使用JS通过修改URL调用iOS的内部函数。其中会遇到一个问题,就是编码问题,比如通过URL调用弹窗,在里面写上内容:你好汪海。那链接大概就是这样的:http://xxx.com#ios?action=alert¶m=你好汪海但是在iOS中接收到的时候会出现中文的乱码:http://xxx.com#ios?...
分类:
移动开发 时间:
2014-06-10 18:07:06
阅读次数:
254
在android中,事件主要包括点击、长按、拖曳、滑动等操作,这些构成了Android的事件响应,总体来说,所有的事件都由如下三个部分作为基础构成:
按下(action_down),移动(action_move),抬起(action_up)。各种响应归根结底都是基于View以及ViewGroup的,这两者中响应的方法分别有:
View.java中:
publi boolean dispa...
分类:
移动开发 时间:
2014-06-10 17:43:05
阅读次数:
338
题目
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram w...
分类:
其他好文 时间:
2014-06-10 15:34:02
阅读次数:
252
【比赛链接】:http://acm.hunnu.edu.cn/online/?action=problem&type=list&courseid=132A:跑得快计数程序【题解】:细心点,巧妙乘2处理四舍五入,简单模拟【代码】:
1 #include 2 #include 3 #include .....
分类:
其他好文 时间:
2014-06-10 10:40:22
阅读次数:
227
戳我去解题Givennnon-negative integers representing an
elevation map where the width of each bar is 1, compute how much water it is
able to trap after raini...
分类:
移动开发 时间:
2014-06-10 08:48:04
阅读次数:
267
新项目准备上HBase。HBase目前由组里某牛负责。本着学会使用HBase的目标,先阅读下HBase in Action,学习内容包括HBase基本实现原理,使用方法,Schema设计原则和实战等。借用Michael Stack(HBase Chair)的话,“At a highlevel, HBase is like theatomic bomb.
Its basic operation...
分类:
其他好文 时间:
2014-06-10 06:33:37
阅读次数:
328
一、说明 一般我们定义委托都是有如下两步:public delegate void
MyDelegate(string name);//定义委托public MyDelegate myDelegate;
//使用委托但.Net也提供了定义好的委托,我们可以直接使用。二、定义System.Action...
分类:
其他好文 时间:
2014-06-10 00:37:49
阅读次数:
343