1.1. Jpa对表的crud操作
1.1.1. 增加
public
void save() {
Person person = new Person("aaa",121);
entityManager.persist(person);//持久化一个对象,将数据保存到数据库中
}
1.1.2. 修改
...
分类:
其他好文 时间:
2015-01-09 09:17:54
阅读次数:
190
hdu 5135 Little Zu Chongzhi's Triangles(贪心) —— black 的专栏 —— waShaXiu...
分类:
其他好文 时间:
2015-01-09 09:18:30
阅读次数:
209
做了这么多年的嵌入式软硬件开发,用过的平台很多,细数了一下,自己都吓了一跳,51单片机、AVR Mega128、EMC单片机、CPLD/FPGA、DSP(LF2407)、S3C2410、44B0、STM32等,软件平台有Keil C51、汇编、ADS1.2、MDK、uCOS、Linux、VC++等。没有办法,在小公司干活就是要一个人做几个人的活。很多时候,去到一间新的公司,并不是自己来决定选用哪种...
分类:
其他好文 时间:
2015-01-09 09:19:09
阅读次数:
203
Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of the three integers. You may assume that each input would have
exact...
分类:
其他好文 时间:
2015-01-09 09:19:26
阅读次数:
176
Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d =
target? Find all unique quadruplets in the array which gives the sum of target.
Note:
Element...
分类:
其他好文 时间:
2015-01-09 09:17:54
阅读次数:
180
Write a function to find the longest common prefix string amongst an array of strings.
Solution:
class Solution
{
public:
string longestCommonPrefix(vector &strs)
{
vector s = strs...
分类:
其他好文 时间:
2015-01-09 09:17:16
阅读次数:
122
题解:题意很裸啊~~~
培训的时候说要写标记永久化,反正永久化很水,就直接写了。
但是我并不知道为什么要永久化,或者说理解不深刻,但是再遇上肯定能分析出来233。
大概应该可能或许就是:
直接原因:下传标记传不下去。
根本原因:
线段树有两层,这样它的传递可能就有点像拓扑了
就是外层线段树需要往内层线段树传,然后内层线段树还要下传
这样扫到某处时发现,****,还需...
分类:
其他好文 时间:
2015-01-09 09:17:33
阅读次数:
270
Given a linked list, remove the nth node from the end of list and return its head.
For example,
Given linked list: 1->2->3->4->5, and n = 2.
After removing the second node from the end, the...
分类:
其他好文 时间:
2015-01-09 09:17:50
阅读次数:
165
作为一名程序员,今天有幸了解到编程原理之三大牛书,也实在是被震撼了,先介绍下了:
先说龙书:
龙书英文名为《Compilers: Principles, Techniques, and Tools 》,中文名《编译原理技术和工具》,作者 Alfred。
现在已经是第二版了,2006年8月31日在amazon上架。
http://dragonbook.stanford...
分类:
其他好文 时间:
2015-01-09 09:15:54
阅读次数:
688
PreparedStatement是用来执行SQL查询语句的API之一,Java提供了 Statement、PreparedStatement 和 CallableStatement三种方式来执行查询语句,其中 Statement 用于通用查询, PreparedStatement 用于执行参数化查询,而 CallableStatement则是用于存储过程。同时PreparedStatement还...
分类:
其他好文 时间:
2015-01-09 09:17:43
阅读次数:
172
Given a string containing just the characters '(', ')', '{', '}', '[' and ']',
determine if the input string is valid.
The brackets must close in the correct order, "()" and "()[]{}" are
all va...
分类:
其他好文 时间:
2015-01-09 09:16:29
阅读次数:
149
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first
two lists.
Solutions:
/**
* Definition for singly-linked list.
...
分类:
其他好文 时间:
2015-01-09 09:16:56
阅读次数:
160
Scada系统组成图:
1 Q:什么是SCADA系统
A:SCADA(SupervisoryControl
And Data Acquisition)系统,即数据采集与监视
控制系统。应用远程通信技术对远方设备进行监视和控制,以实现远程信号,
远程测量,远程控制和远程调节等各项功能。它并非一个单纯的控制系统,
而更多地注...
分类:
其他好文 时间:
2015-01-09 09:17:39
阅读次数:
177
Mayor's posters
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 45444
Accepted: 13194
Description
The citizens of Bytetown, AB, could not stand that the ca...
分类:
其他好文 时间:
2015-01-09 09:17:08
阅读次数:
291
该规约在DF8900中规约号为104,在DF8002或DF1800系统中规约号一般为99,但也有个别现场因实际情况而不同.
97版或2002版IEC104在流程上没有什么变化,只是扩展了遥测遥信等信息体基地址..
索引项目
部分报文字节个数
参数地址范围
流程
常用类型标识
...
分类:
其他好文 时间:
2015-01-09 09:16:50
阅读次数:
343
客户端版本(eclipse插件版本)
客户端版本要和服务器版本对应,并且客户端版本要和开发工具的版本要统一。
大版本号要一致,如:客户端是1.6.17,那eclipse的svn插件也要是1.6.X的,X不做要求。
严谨复制版本控制下的文件夹
使用过SVN的同事应该会知道,SVN会把一些版本控制信息放到客户端,即客户端的版本信息文件,隐藏的“.sv...
分类:
其他好文 时间:
2015-01-09 09:14:36
阅读次数:
160
Merge k sorted
linked lists and return it as one sorted list. Analyze and describe its complexity.
/**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *ne...
分类:
其他好文 时间:
2015-01-09 09:16:33
阅读次数:
136