`
dada89007
  • 浏览: 163742 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论
文章列表
Q. How do I redirect stderr to stdout? How do I redirect stderr to a file?A. Bash and other modern shell provides I/O redirection facility. There are 3 default standard files (standard streams) open:[a] stdin - Use to get input (keyboard) i.e. data going into a program. [b] stdout - Use to write in ...
One can get this error even though you don’t see that run configuration inside Eclipse IDE. I guess it is a bug. To solve the problem go to the location where Eclipse stores its run configurations: projectName/.metadata/.plugins/org.eclipse.debug.core/.launches/ There you can see any artifacts. ...
  > eval `ssh-agent` (yes, these are backticks) > ssh-add ~/.ssh/id_rsa ================================================================================ In quite a few situations its preferred to have ssh keys dedicated for a service or a specific role. Eg. a key to use for home / fun stuf ...

sublime text 2

Sublime Text 2 破解 on Mac   用Sublime Text 2自己打开自己的二进制文件:Sublime Text 2/Contents/MacOS/Sublime Text 2  搜索所有3342 3032  都替换成3242 3032  保存后退出重新运行,输入任意注册码注册即可  注册码样本:  —–BEGIN LICENSE—–  hiwanz  Unlimited User License  EA7E-26838  5B320641E6E11F5C6E16553C438A6839  72BA70FE439203367920D70E7DEB0 ...
1. dos2unix filename 2. vi filename, then :set fileformat=unix
I alway am hunting for this little command-line gem, so I figured I’d post it and share the quick shell script I added to my home directory to make it faster for me to do this. Often, I will find an old project (or inherit, or destroy) a project with subversion directories and files in it. Howeve ...
  1:   [适用]  1、典型地,台式机硬盘、笔记本盘、移动硬盘、U盘、数码卡、MP3;  2、普通硬盘;  3、很少的,盘阵等采用WINDOWS系统的存储;   [症状]  1、突然袭断电、移动硬盘或U盘等,未正常关闭状态下直接拔下,下次 ...

Get Unique ID

    博客分类:
  • Java
Generating unique IDs When identifiers are used solely within a database, their generation should be left to the database itself. (See Statement.getGeneratedKeys .) Unique identifiers which are "published" in some way may need special treatment, since the identifier may ne ...
Abstract Ever try to force the "Download File" dialog in a clients's browser window when you download files that may be supported with a MIME type? Here is an example that works with many versions of IE.   This example illustrates a simple technique to download files of any type from you ...
使用 javax.activation.MimetypesFileTypeMap 需要引入activation.jar这个jar包 , 他可以从下面这个网站获得http://java.sun.com/products/javabeans/glasgow/jaf.html. 这个MimetypesFileMap类会映射出一个file的Mime Type,这些Mime Type类型是在activation.jar包里面的资源文件中定义的 示例代码  Java代码  
现在使用linux的朋友越来越多了,在linux下做开发首先就是需要配置环境变量,下面以配置java环境变量为例介绍三种配置环境变量的方法。   1.修改/etc/profile文件 如果你的计算机仅仅作为开发使用时推荐使用这种方法,因为所有用户的shell都有权使用这些环境变量,可能会给系统带来安全性问题。   (1)用文本编辑器打开/etc/profile   (2)在profile文件末尾加入: JAVA_HOME=/usr/share/jdk1.5.0_05 PATH=$JAVA_HOME/bin:$PATH CLASSPATH=.:$JAVA_HOME/lib ...
有两种方法:1、改注册表               隐藏所有驱动器:             HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer        在右边的窗口中创建一个DWORD值:“NoDrives”,并将其值设为“FFFFFFFF”;        隐藏E盘:HKEY_CURRENT_USER/Software/Microsoft/Windows/CurrentVersion/Policies/Explorer        在右边的窗口中创建一个DWORD值:“NoDri ...

java 文件 追加

    博客分类:
  • Java
import java.io.BufferedWriter; import java.io.FileOutputStream; import java.io.FileWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.io.RandomAccessFile; /** * 描述:追加内容到文件末尾 * @author Administrator * */ p ...
方案1: 1.打开开始菜单,在运行里输入regedit,回车   2.在注册表中,导航到HKEY_CURRENT_USER\Software\Classes\.html 项,     3 ,将名称项为默认的数值项值改为Htmlfile,然后确认,然后退出注册表   4.重启你正在使用的Office程序,比如Word,Outlook,Excel等,然后再次点Office里面超链接,正常打开,没问题,Over!!!   方案2: 打开一个记事本,复制下列内容:     Windows Registry Editor Version 5.00     [HKEY_CLASS ...
不建议关闭--- 默认共享是系统安装完毕后就自动开启的共享,也叫管理共享,常被管理员用于远程管理计算机。在Windows 2000/XP及其以上版本中,默认开启的共享有“c$”、“d$”、“admin$”、“ipc$”等,我们可以在“运行”对话框中输入“\\计算机名\盘符$”对这些资源进行访问,以上这些共享就叫做默认共享。但你可曾想过这些默认共享与普通共享在访问上有哪些区别呢?默认共享有哪些特权呢?  特权一 管理员组专用共享  默认共享是只面向管理员组用户开启的共享,也就是说只有管理员组的用户才能访问这些共享,非管理员组用户(即使是超级用户)不能进行访问。  我们以计算机名为softer的默 ...
Global site tag (gtag.js) - Google Analytics