regedit To restore the XP Alt-Tab functionality simply, lauch regedit, add a DWORD named AltTabSettings to HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer and set its value to 1. And here's a one line powershell script which does the above: Set-ItemProperty HKCU:\Software\Micro…
2013-06-29 16:20 · OS技巧 · 评论(0)
win7关机时强制关闭程序的设置方法要修改组策略编辑器。 “开始--运行”,输入“gpedit.msc”打开组策略编辑器。依次找到并展开 “计算机配置→管理模板→系统→关机选项”,双击右侧窗格中的“关闭会阻止或取消关机的应用程序的自动终止功能”,在弹出的后续窗口中点击并修改为“已启用”),应用确定后退出,这样以后再遇到未关闭的程序时,Windows7系统将自动终止并强制关机。
2013-05-14 06:46 · OS技巧 · 评论(0)
Putty 颜色设置文件
2013-02-19 08:25 · Linux · 评论(0)
访问本地计算机的以下目录 C:\Users\Administrator\AppData\Local\Google\Chrome\User Data\Default\User StyleSheets\Custom.css XP的话,可以右键chrome的快捷图标来找到相应的路径 其中Username为你的Win7用户名,找到CSS文件之后用记事本打开并添加如下字段: *{font-family:Arial,"Microsoft Yahei" !important;} 其中Microsoft Yahei为你要设置显示的字体。 若你想给字体再添加一个阴影的显示,只需再添加以下字段: {text-s…
2013-02-07 07:56 · Other · 评论(0)
I want to add the oracle jdbc driver to my project as dependency (runtime scope) - ojdbc14. In MVNrepository site the dependency to put in the POM is: How do I find a repository (if any) that contains this artifact? How do I add it so that Maven will use it? Unfortunately due the binary license the…
2013-01-18 00:32 · 工具使用经验 · 评论(0)
诸位Java程序员,想必大家对SimpleDateFormat并不陌生。不过,你是否知道,SimpleDateFormat不是线程安全的(thread safe)。这意味着,下面的代码是错误的: class Sample { private static final DateFormat format = new SimpleDateFormat("yyyy.MM.dd"); public String getCurrentDateText() { return format.format(new Date()); } } 从功能的角度上看,单独执行这段代码是没有问题的,但放到多线程环境下,…
2013-01-08 23:13 · 源代码分析 · 评论(2)
i met a interview question while i watch the design pattern vedios of MaShiBing, it's interesting, i wrote them down with the OO design, here it is: 农场一头小母牛 每年生头小母牛 母牛五岁产母牛 二十年上多少牛 package com.j2se.Interview.howmanycowsin20years; import java.util.Collection; import java.util.HashSet; public class F…
2012-12-30 13:04 · 面试题 · 评论(0)
装完VM后,在(.vmx)配置文件中加入 mainMem.useNamedFile="FALSE" 如果安装的是ubuntu-server版,要安装gnome界面执行如下命令: sudo apt-get install gnome-desktop Go back to the gnome sudo apt-get install gnome-session-fallback Install the SSH sudo apt-get install openssh-server openssh-client 解决安装vmware-tools时碰到的找不到header的问题: sudo apt-…
2012-12-29 23:02 · Linux · 评论(0)
java tutorial java tutorial java tutorial
2012-10-23 23:35 · 评论(0)
Java泛型和集合_. Java.Generics.and.Collections .Maurice.Naftalin_Philip.Wadler.文字版.pdf
2012-09-12 23:43 · 评论(0)
Refactoring_Improving_the_Design_of_Existing_Code
2012-09-11 00:15 · 评论(0)