潇潇洒洒

 

2015年6月28日

java中 DigestUtils.md5Hex 的c#实现

摘要: C# string target= "央行降息影响楼市:100万20年期房贷月供减少141元"; string result = Md5Helper.Md5Hex(aa);//result ="98d59c461b6b40ae7cfe57c6cbdd3cc1"java Stri... 阅读全文

posted @ 2015-06-28 14:37 肖磊 阅读(4314) 评论(0) 推荐(0) 编辑

2015年3月23日

log4net 记录日志到sqlserver

摘要: 参考:http://blog.csdn.net/niuyongjie/article/details/5777625demo 阅读全文

posted @ 2015-03-23 22:18 肖磊 阅读(136) 评论(0) 推荐(0) 编辑

2014年8月16日

生命游戏的屏保

摘要: 一个winform 程序,实现生命游戏的模拟, 将编译出的exe文件 扩展名改为 scr 。 copy 到 C:\Windows\SysWOW64 或者 C:\Windows\System32 下 即可以在屏保中显示。源代码 阅读全文

posted @ 2014-08-16 12:47 肖磊 阅读(227) 评论(0) 推荐(0) 编辑

2014年5月21日

Ext.get Ext.getDom Ext.getCmp 的区别

摘要: Html DOM Ext Element ComponentComponent 最高层Html DOM 最基础Ext.getCmp 是 Ext.ComponentMgr.get 的简称 获取 ComponentExt.get 是 Ext.Element.get 的简称 获取Ext Element... 阅读全文

posted @ 2014-05-21 00:06 肖磊 阅读(184) 评论(0) 推荐(0) 编辑

2014年5月18日

maven 的使用

摘要: 下载Maven:http://maven.apache.org/解压 将解压目录的bin 子目录配置到PATH中4) 在命令行下运行mvn-version或者 mvn -v 来测试是否安装成功编译: mvn compile单元测试: mvn test构建并打包: mvn package 生成 ... 阅读全文

posted @ 2014-05-18 01:20 肖磊 阅读(115) 评论(0) 推荐(0) 编辑

2014年5月16日

c++ c# java 调用 c++ 写的dll

摘要: 1. vs 中新建win32 dll 项目 testdll添加实现文件 test.cpp#include "stdafx.h" #include using namespace std;int Add(int plus1, int plus2){ int add_result = plus1 ... 阅读全文

posted @ 2014-05-16 12:17 肖磊 阅读(406) 评论(0) 推荐(0) 编辑

2014年5月13日

虚拟机双屏方法

摘要: 前提条件: 1.vmware 6 以上2. VMware Tools 需要提前安装3. 只支持 Windows XP, Windows Vista, Windows 7, or Linux步骤1. Edit > Preferences > Display 选中 Autofit guest2. E... 阅读全文

posted @ 2014-05-13 12:28 肖磊 阅读(4608) 评论(0) 推荐(0) 编辑

2013年6月9日

20 按比例设置 子控件的宽度和高度

摘要: 1.得到当前屏幕的 分辨率Display display = this.getWindowManager().getDefaultDisplay(); int totalWidth = display.getWidth(); int totalHeight = display.getHeight();2.设置高度和宽度ImageView curView = (ImageView)layout.findViewById(R.id.imageView1); LayoutParams para = curView.getLayoutParams(); para.heigh... 阅读全文

posted @ 2013-06-09 22:37 肖磊 阅读(167) 评论(0) 推荐(0) 编辑

2013年6月8日

19_toast通知和notify通知 onTouch事件响应

摘要: 1. 响应ontouch事件 启动 toast 和 notify提醒两个成员变量 private TextView curTextView; static final int NOTIFICATION_ID = 0x1123;oncreate中添加curTextView = (TextView)this.findViewById(R.id.Tv_Hello); OnTouchListener tempListener = new OnTouchListener() { @Override public boolean onTouch(View v, MotionEvent... 阅读全文

posted @ 2013-06-08 21:41 肖磊 阅读(439) 评论(0) 推荐(0) 编辑

2013年5月5日

18_SurfaceView 其他线程绘图

摘要: import android.app.Activity;import android.content.Context;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.Paint.Style;import android.os.Bundle;import android.view.SurfaceHolder;import android.view.SurfaceView;import android.view.Win 阅读全文

posted @ 2013-05-05 11:56 肖磊 阅读(175) 评论(0) 推荐(0) 编辑

导航