编程语言更迭至今,几乎没有人没有用过一门不用垃圾回收的语言,一方面因为C之类的语言内存管理较为困难,更重要的是因为语言越高级,越注重实际的业务逻辑,而关于内存管理的代码频繁夹杂在业务中,并不那么自然。###
没有垃圾回收的编程体验 #include #include struct node { .....
分类:
其他好文 时间:
2014-05-05 21:49:59
阅读次数:
329
Input
t – the number of numbers in list, then t lines follow [t
Each line contains one integer: N [0 N
Output
Output given numbers in non decreasing order.
Example
Input:
5
5
3
...
分类:
其他好文 时间:
2014-05-04 00:04:09
阅读次数:
376
原因:在测试机上首次安装oracle11G
RAC,安装完成后正常使用,过了一段时间后重启节点1测试是否可以自启动,解决节点1没有自启动,手工启动也无法启动过程:在节点一上运行:#
pwd/u01/grid/bin# ./crsctl start crsCRS-4124: Oracle High A...
分类:
数据库 时间:
2014-05-03 23:29:37
阅读次数:
905
定义:node.js是运行在服务器端的运用了谷歌v8引擎的javascript运行平台特点:1.
异步式I/O(非阻塞式I/O) 2.
事件驱动什么是异步式I/O(非阻塞式I/O)?要了解什么是异步式I/O(非阻塞式I/O),必须要先了解下什么是I/O,什么阻塞,
什么是同步式I/O(阻塞式I/O)...
分类:
Web程序 时间:
2014-05-03 23:03:07
阅读次数:
415
1、一对一 (One to One) 共三种情况: 1.1 主键共享 1.2 外键共享 1.3
中间表关联1.1 code:@Entitypublic class article { @Id @GeneratedValue public Integer
getArticleId() ...
分类:
系统相关 时间:
2014-05-03 22:28:15
阅读次数:
420
选择适合的Node.js授权认证策略作者:chszs,转载需注明。博客主页:http://blog.csdn.net/chszs英文原文:https://stormpath.com/blog/choosing-nodejs-authentication-strategy/Node.js正在兴起!我从2010年就开始使用Node工作,那个时侯我看着它从一个很小的个人项目成长为一个全功能的、能够让现代...
分类:
Web程序 时间:
2014-05-03 21:28:29
阅读次数:
385
概念:
流程图的组成:
a. 活动 Activity / 节点 Node
b. 流转 Transition / 连线(单向箭头)
c. 事件
1.流转(Transition)
a) 一般情况一个活动中可以指定一个或多个Transition
i. 开始活动(Start)中只能有一个Transition。
ii. 结束活动(End)中没有Transitio...
分类:
其他好文 时间:
2014-05-03 20:53:19
阅读次数:
311
Valera wanted to prepare a Codesecrof round. He's already got one problem and he wants to set a time limit (TL) on it.
Valera has written n correct solutions. For each correct solution, he knows it...
分类:
其他好文 时间:
2014-05-03 16:53:51
阅读次数:
364
Struts2实现文件上传
配置文件struts.xml
<!--
/*
* $Id: struts.xml 1364077 2012-07-21 12:57:02Z lukaszlenart $
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor licens...
分类:
其他好文 时间:
2014-05-03 15:41:44
阅读次数:
348
#include
#include
#include
#include
#include
using namespace std;
#define N 20020
struct node{
int from, to, dou, nex;
}edge[N];
int head[N], edgenum;
void add(int u, int v,int dou){
node E={u,v,dou...
分类:
其他好文 时间:
2014-05-03 15:25:32
阅读次数:
340