`
areha001
  • 浏览: 12776 次
  • 性别: Icon_minigender_1
  • 来自: 长沙
社区版块
存档分类
最新评论
文章列表
无意中在RandomAccess接口里,看到JDK自带的说明有如下一段 It is recognized that the distinction between random and sequential access is often fuzzy. For example, some List implementations provide asymptotically linear access times if they get huge, but constant access times in practice.Such a List implementation should g ...
首先声明此文是借鉴Ubuntu10.04用Wine完美运行QQ2009实践后而来,与Ubuntu10.10与Ubuntu10.04用Wine操作的主要区别是第四步里的第4点:要将字体注册表文件放在“.wine/dosdevice/c:/windows/”文件夹下,否则看不到文件而不能导入。另外加入了 ...
各种百度 Google 找了半天,全都充斥了调用 DLL 生成桌面快捷方式 的例子,结果在 Windows Server 平台,那个DLL 根本用不了。 后来终于找到了一个可以用的工具类,使用方法如下 WindowsShortcut.Shortcut sc = new WindowsShortcut.Shortcut(); sc.Path = this.currentDir + "/平台启动器.exe"; sc.WorkingDirectory = this.currentDir; ...
@Entity @Table(name="person") public class Person { @Id @GeneratedValue  //不写是采用默认策略,即:(Strategy=Generation.AUTO) private Integer id;  //主键且数据库是mysql就自动增长(identified),是Oracle就序列化(sequence) @Column(length=10, nullable=false)  //长度为10,且不能为空 private String name; @Temporal(TemporalType. ...
接口Alarm 中有 open()方法 Door里也有open()方法 要将两个open()方法分开,转成Alarm时调用的open()和作为Door的子类的open()两个方法不同。 解决方案: 创建一个内部类 /** * 外部类 继承Door * */ public class AlarmDoor extends Door{ public int i = 0 ; /** * 转成Alarm时 构建内部类 * */ public Alarm getAlarm() { return new MyDoor(this); } ...
    刚才看到某人的Blog看到这个问题,觉得有意思,遂自己动笔玩了玩。     * 和这篇博客的相关...     * 这个小组的成员也喜欢去...     * 看过这部电影的用户也看过...     * 买过这本书的用户也买过... 表名: blogs_tags 字段: PK -- (blogId, tagId) 简述: 很简单的关联表   blog 和 tag 相关联 目的: 取出和blogId 为 id 的 关联度高的其它博客倒序排列。 SELECT bt2.*,count(bt2.blogId) as c FROM blogs_tags bt1 left join ...
客户端浏览器和服务器进行交互时,其版本信息其实已经在http-header里了,提取出其中的user-agent字段,返回不同的CSS文件,问题解决。 下面附上java的代码,其它语言与之类似 Rails   request.env["HTTP_USER_AGENT"] PHP     $_SERVER["HTTP_USER_AGENT"]; ASP     Request.ServerVariables("http_user_agent"); package com.util; import java.util.re ...
显示JSP系统环境。 与Apache PHP默认首页类似(备忘) <html> <head> <title>JSP Info</title> </head> <body> <h1>JSP Info(Mail: nscdl AT yahoo DOT com)</h1> <hr /> Now is: <%= new java.util.Date() %> ...
Global site tag (gtag.js) - Google Analytics