会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
fengwm09
博客园
首页
新随笔
联系
订阅
管理
2019年7月24日
Git使用出错:Couldn‘t reserve space for cygwin‘s heap, Win32
摘要: 今天使用Git在命令行下更新代码遇到了问题 E:\storm-sql>git pull origin joeywen 0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0,
阅读全文
posted @ 2019-07-24 10:29 fengwm09
阅读(685)
评论(0)
推荐(0)
2017年1月5日
JS身份证号码校验
摘要: 1 var Wi = [ 7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2, 1 ]; // 加权因子 2 var ValideCode = [ 1, 0, 10, 9, 8, 7, 6, 5, 4, 3, 2 ]; // 身份证验证位值.10代表X 3 4 function idCardInValid(idCard) { 5 ...
阅读全文
posted @ 2017-01-05 14:04 fengwm09
阅读(433)
评论(0)
推荐(0)
2016年7月15日
linux 下查看cpu位数 内核等参数命令(转)
摘要: 1 # uname -a 2 3 Linux euis1 2.6.9-55.ELsmp #1 SMP Fri Apr 20 17:03:35 EDT 2007 i686 i686 i386 GNU/Linux 4 5 (查看当前操作系统内核信息) 6 7 8 9 10 # cat /etc/issue | grep Linux 11 12 Red Hat Ent...
阅读全文
posted @ 2016-07-15 16:22 fengwm09
阅读(3107)
评论(0)
推荐(0)
linux ps命令,查看进程cpu和内存占用率排序(转)
摘要: 使用以下命令查看: ps -aux | sort -k4,4n ps auxw --sort=rss ps auxw --sort=%cpu linux 下的ps命令 %CPU 进程的cpu占用率 %MEM 进程的内存占用率 VSZ 进程所使用的虚存的大小 RSS 进程使用的驻留集大小或者是实际内存
阅读全文
posted @ 2016-07-15 16:17 fengwm09
阅读(9363)
评论(0)
推荐(0)
2016年4月14日
JAVA图片验证码
摘要: VerifyCodeUtils类 web.xml配置:
阅读全文
posted @ 2016-04-14 11:42 fengwm09
阅读(338)
评论(0)
推荐(0)
2016年4月13日
JAVA BigDecimal 小数点处理
摘要: 1,保留两位小数
阅读全文
posted @ 2016-04-13 14:44 fengwm09
阅读(11476)
评论(0)
推荐(1)
2016年3月25日
Linux命令大全
摘要: 系统信息 关机 (系统的关机、重启以及登出 ) 文件和目录 文件搜索 挂载一个文件系统 磁盘空间 用户和群组 文件的权限 使用 "+" 设置权限,使用 "-" 用于取消 文件的特殊属性 使用 "+" 设置权限,使用 "-" 用于取消 打包和压缩文件 RPM 包 - (Fedora, Redhat及类
阅读全文
posted @ 2016-03-25 14:18 fengwm09
阅读(369)
评论(0)
推荐(1)
Eclipse Java注释模板设置详解
摘要: 设置注释模板的入口: Window->Preference->Java->Code Style->Code Template 然后展开Comments节点就是所有需设置注释的元素啦。现就每一个元素逐一介绍: 文件(Files)注释标签: 类型(Types)注释标签(类的注释): 字段(Fields)
阅读全文
posted @ 2016-03-25 14:00 fengwm09
阅读(461)
评论(0)
推荐(0)
2016年3月1日
JSONArray的应用
摘要: 从json数组中得到相应java数组,如果要获取java数组中的元素,只需要遍历该数组。 1 /** 2 * 从json数组中得到相应java数组 3 * JSONArray下的toArray()方法的使用 4 * @param str 5 * @return 6 */ 7 public stati
阅读全文
posted @ 2016-03-01 16:38 fengwm09
阅读(204)
评论(0)
推荐(0)
java程序性能优化
摘要: 一、避免在循环条件中使用复杂表达式 在不做编译优化的情况下,在循环中,循环条件会被反复计算,如果不使用复杂表达式,而使循环条件值不变的话,程序将会运行的更快。 例子: import java.util.vector; class cel { void method (vector vector) {
阅读全文
posted @ 2016-03-01 16:24 fengwm09
阅读(169)
评论(0)
推荐(0)
公告