1. Description Given an unsorted array return whether an increasing subsequence of length 3 exists or not in the array. Formally the function should: ...
分类:
其他好文 时间:
2016-04-05 12:15:29
阅读次数:
78
查了下w3和MDN的手册,没发现有这个说明,写篇随笔记下。 1、.class:nth-of-type(n)在选择class的时候,如果在class前面插入x个同类型标签,n需要加上x 当在第1个p.para前面插入一个p时: 此时.para:nth-of-type(2)才会是第一个p.para样式生 ...
分类:
其他好文 时间:
2016-04-05 12:16:47
阅读次数:
181
4号看了 Paxos Made Simple 5号看了 In Search of an Understandable Consensus Algorithm ...
分类:
其他好文 时间:
2016-04-05 12:13:42
阅读次数:
113
201512-1 数位之和 水题一个,取模除以10胡搞即可(不知道字符串为什么不行 1 #include <algorithm> 2 #include <iostream> 3 #include <iomanip> 4 #include <cstring> 5 #include <climits> ...
分类:
其他好文 时间:
2016-04-05 12:13:03
阅读次数:
329
用Action的配置当不同的请求希望执行相同的Action时,可以在默认的包中定义以下的Action。<action name="home" class="com.fdar.infoq.HomeAction" ><result>portal.jsp</result></action>这要在jsp显示 ...
分类:
其他好文 时间:
2016-04-05 12:13:32
阅读次数:
107
document 文挡对象 - JavaScript脚本语言描述———————————————————————注:页面上元素name属性和JavaScript引用的名称必须一致包括大小写否则会提示你一个错误信息 “引用的元素为空或者不是对象\\\\\”——————————————————————— ...
分类:
其他好文 时间:
2016-04-05 12:13:11
阅读次数:
146
多点登录 项目使用的是SSM(Spring SpringMVC Mybatis);到登录页面的流程: 项目启动欢迎界面: index.jsp 直接跳转:<%response.sendRedirect("/login/forwardLogin") %> >>请求到Controller的 forward ...
分类:
其他好文 时间:
2016-04-05 12:12:00
阅读次数:
159
废话不多少,接着上次配置的环境进行github部署。 拥有自己的github 如果还没有github的账号就注册一个吧,传送门:GitHub官网:http://www.github.com 创建一个创库,creat new repository,Repository name和自己的用户名相同。就填 ...
分类:
其他好文 时间:
2016-04-05 12:13:52
阅读次数:
116
//项目效果: //设置ActionBar导航: MainActivi.note MainActivity: public class MainActivity extends FragmentActivity implements TabListener { private FragmentMan ...
分类:
其他好文 时间:
2016-04-05 12:13:11
阅读次数:
99
内容页: <script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"type='text/javascript' langu ...
分类:
其他好文 时间:
2016-04-05 12:12:14
阅读次数:
115
原型模式与拷贝息息相关: 先给个拷贝讲解的: http://rongqingsong.11.blog.163.com/blog/static/46420686201162594154725/ 深拷贝与浅拷贝总结: 浅拷贝只是简单的对象地址复制,所指向的空间并没有复制,而是由两个对象共用 深拷贝会涉及 ...
分类:
其他好文 时间:
2016-04-05 12:12:14
阅读次数:
116
在STL中有着一个类就是string类,他的内存布局和存储机制究竟是怎么样的呢? 这就是建立好的string 可以看出,图中用黄色框框标注的部分就是主要区域 我们用来给string对象进行初始化的字符串被存储在了_Buf当中,_Mysize和_Myres就不用说了,就是上面的size 和 capac ...
分类:
其他好文 时间:
2016-04-05 12:11:20
阅读次数:
132
MainActivity: public class MainActivity extends Activity { Handler hd = new Handler() { public void handleMessage(android.os.Message msg) { if (msg.wh ...
分类:
其他好文 时间:
2016-04-05 12:10:20
阅读次数:
136
转载自:『http://www.cvchina.info/2010/08/31/conference-ranking-byar/』 澳大利亚政府和澳大利亚研究理事会做的,有一定考价值。 ...
分类:
其他好文 时间:
2016-04-05 12:11:10
阅读次数:
144
http://wenku.baidu.com/view/e4ffc228ed630b1c59eeb51f.html?from=search ...
分类:
其他好文 时间:
2016-04-05 12:08:48
阅读次数:
148
目前在Java中存在两种锁机制:synchronized和Lock,Lock接口及其实现类是JDK5增加的内容,其作者是大名鼎鼎的并发专家Doug Lea。本文并不比较synchronized与Lock孰优孰劣,只是介绍二者的实现原理。 数据同步需要依赖锁,那锁的同步又依赖谁?synchronize ...
分类:
其他好文 时间:
2016-04-05 12:09:27
阅读次数:
128
// 集训最终開始了。来到水题先 #include <cstdio> #include <cstring> #include <algorithm> #include <iostream> using namespace std; int a[23]; int d[23][100000]; int ...
分类:
其他好文 时间:
2016-04-05 12:10:38
阅读次数:
109