Dan's Workspace

FuckGFW


  • Home

  • Archives

  • Tags

  • Search

Sublime Text的Package Control插件配置proxy

Posted on 2012-11-13 | Comments: | Views:
Symbols count in article: 450 | Reading time ≈ 1 mins.
Sublime Text中的default的**package control**中对proxy似乎并没有生效, 始终无法浏览插件列表, 查了不少资料, 应该是对https的代理设置上有点问题. 下面说一下解决方案.
Read more »

解决Jboss报出 URL pattern /Coordinator is already registered 错误

Posted on 2012-11-12 | Comments: | Views:
Symbols count in article: 4.6k | Reading time ≈ 4 mins.
部分web项目在jboss7.0.x工作正常, 但是迁移到7.1的时候报出**URL pattern /Coordinator is already registered**
Read more »

jekyll实现页面键盘快捷键

Posted on 2012-11-09 | Comments: | Views:
Symbols count in article: 624 | Reading time ≈ 1 mins.
在jekyll生成的文章页面加上了键盘快捷键导航, `左方向键`或`H`导航到上一篇文章, `右方向键`或`L`导航到下一篇.
Read more »

BlackBerry中设置EditFiled的边框

Posted on 2012-11-08 | Comments: | Views:
Symbols count in article: 1.2k | Reading time ≈ 1 mins.
BlackBerry中为`EditField`设置边框
Read more »

BlackBerry中设置LabelFiled字体

Posted on 2012-11-08 | Comments: | Views:
Symbols count in article: 1.2k | Reading time ≈ 1 mins.
BlackBerry中为`LabelField`设置字体
Read more »

用于j2me环境的md5实现类

Posted on 2012-11-07 | Comments: | Views:
Symbols count in article: 11k | Reading time ≈ 10 mins.
原生实现MD5算法的类, 主要用于一些特定的环境, 比如基于j2me的开发.
提供一个静态的函数toMD5()供调用.
还提供一个getMD5ofStr()函数生成一个MD5加密串.
Read more »

为 git 实现 'svn info' 的功能

Posted on 2012-10-15 | Comments: | Views:
Symbols count in article: 1.6k | Reading time ≈ 1 mins.
git没有类似svn中的`svn info`功能, 由于一些特殊的需求, 需要自己写一个脚本来实现这样的功能
Read more »

Java判断字符串是否含有中文字符

Posted on 2012-08-21 | Comments: | Views:
Symbols count in article: 428 | Reading time ≈ 1 mins.
有时候需要验证一个字符串中是否含有中文这样的特殊的需求, 一般会采用两种方案, 一种就是最常见的正则表达式, 另一种效率较高, 但是不够严谨, 适用于不是非常精确的场合.
Read more »

测试PreparedStatement的批处理效率

Posted on 2012-08-21 | Comments: | Views:
Symbols count in article: 5.4k | Reading time ≈ 5 mins.
今天研究了一下Java中**PreparedStatement**的批处理能力.
测试环境如下:
jdk1.6.0_21 + Mysql 5.1
Core 2 Duo T5470 (1.60GHz) + 3G内存
测试的是实现最简单的插入.
Read more »

vim解决/bin/bash^M: bad interpreter错误

Posted on 2012-08-21 | Comments: | Views:
Symbols count in article: 385 | Reading time ≈ 1 mins.
可以有很多种办法看这个文件是DOS格式的还是UNIX格式的, 还是MAC格式的. 比如:
`vim filename`
然后用命令`:set ff?`可以看到dos或unix的字样.
Read more »
1…345
Dan Shan

Dan Shan

未来的家庭, 除了一扇窗户, 还有一只企鹅

48 posts
77 tags
RSS
GitHub Twitter
Links
  • 叶落寒山
© 2012 — 2019 Dan Shan | 187k | 2:false
Powered by Hexo v3.7.1
|
Theme — NexT.Muse v6.2.0