using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Test
{
class Program
{
static void Main(string[] args)
{
string pat...
分类:
移动开发 时间:
2014-08-06 11:52:51
阅读次数:
191
本文将对 Wi-Fi 对等技术进行评估。 Wi-Fi 对等(P2P)支持具备适当应用的 Android 4.0 或更高版本在没有接入点的情况下通过 Wi-Fi 彼此连接。 Android Wi-Fi P2P 框架符合 Wi-Fi Direct 标准。 一般情况下,Wi-Fi Direct 支持更快的速度和更远的距离,但是所需的功耗比蓝牙连接高。...
分类:
移动开发 时间:
2014-08-06 10:27:01
阅读次数:
299
中国剩余定理用于求解 x≡ai(mod mi),其中mi两两互质,x有唯一解。
令M为mi的乘积,wi = M/mi,wi关于模mi的逆元为pi,即满足wi*pi + mi*qi = 1.
则上述方程组等价于 x≡ w1*p1*a1 + w2*p2*a2 +......+wk*pk*ak(mod M)..................................................
分类:
其他好文 时间:
2014-08-05 22:45:40
阅读次数:
191
1.创建一个员工表(并指明字符集为UTF8)
drop table if exists employee;
create table employee(
id int,
name varchar(20),
gender varchar(6),
birthday date,
entry_date date,
job varchar(30),
...
分类:
数据库 时间:
2014-08-05 22:38:10
阅读次数:
336
题目原文:
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of
S is 1000, and there exists one unique longest palindromic substring.
题意解析:
最长回文子串。就是...
分类:
其他好文 时间:
2014-08-05 15:56:59
阅读次数:
290
Hibernate 常见异常net.sf.hibernate.MappingException 当出现net.sf.hibernate.MappingException: Error reading resource:…异常时一般是因为映射文件出现错误。 当出现net.sf.hibernate.M....
分类:
系统相关 时间:
2014-08-05 15:45:49
阅读次数:
388
1 作业维护IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[BasicCallDB].[dbo].[shx_BasicCallDB]') AND type in (N'U'))truncate TABLE [.....
分类:
其他好文 时间:
2014-08-05 13:23:19
阅读次数:
270
@Resource的作用相当于@Autowired,只不过@Autowired按byType自动注入,而@Resource默认按byName自 动注入罢了。@Resource有两个属性是比较重要的,分是name和type,Spring将@Resource注解的name属性解析为bean的 名字,而t...
分类:
其他好文 时间:
2014-08-04 21:16:27
阅读次数:
194
1 判断数据库是否存在 if exists (select * from sys.databases where name = '数据库名') drop database [数据库名]2 判断表是否存在 if exists (select * from sysobjects where id = ....
分类:
数据库 时间:
2014-08-04 21:03:07
阅读次数:
300
无标题文档 微博 私信 评论 @我 我在这里不动,但上面会把我遮住希望把某个元素移除你的视线: 1、display:none; 显示为无 2、visibility:hidden; 隐藏 3、wi...
分类:
Web程序 时间:
2014-08-04 17:24:07
阅读次数:
338