`
kingbinchow
  • 浏览: 124550 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表
绘制文字效果,如下图 protected void onDraw(Canvas canvas) { Paint paint = new Paint(); paint.setTextSize(20); Path path = new Path(); // 绘制一个圆形的路径,文字会在该圆的上边缘外侧绘制 path.addCircle(100,100, 100, Direction.CW); canvas.drawColor(Color.WHITE); canvas.translate(50, 50); ...
<?xml version="1.0" encoding="utf-8"?> <products> <product> <id>10</id> <name>电脑</name> <price>2067.25</price> </product> <product> <id>20</id&g ...
public boolean onKeyDown(int keyCode, KeyEvent event) { switch (keyCode) { case KeyEvent.KEYCODE_MENU: // 按下“menu”键的动作 // 选项菜单已弹出,不再弹出新的窗口 if (state == 1) return false; // 装载选项菜单布局文件 layout = (LinearLayout) getLayoutInflater().inflate(R.layout.menu_layout, null); // 创建 ...
Intent intent = new Intent(); this.setResult(RESULT_OK, intent); this.finish();
add this line: xmlns:custom="http://schemas.android.com/apk/lib/com.you.yourcomponents"
#define NSLog(format, ...) do { \ fprintf(stderr, "<%s : %d> %s\n", \ [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], \ __L ...
看到好书当然要分享。。。
好久没写算法,写个二分查找练练手。。。 //recursive int binarySearch_recursive(int *array,int lowInd ,int highInd,int searchValue){ int middleInd =(lowInd+highInd)/2; if (lowInd<=highInd) { if(array[middleInd]<searchValue){ //search in top half lowInd = middleInd+1; ...
var cache = { obj : { "key" : "value",//sample:"001":"lily" } } var app = { updateCache : function(id) { var onSuccess = function() { cache.obj[id] = "your_new_value"//save new id,new value } if (cache.obj[id] === undefined) ...
引用http://www.techrepublic.com/blog/web-designer/how-to-work-with-rss-using-google-feed-api-and-javascript/ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> ...

OpenSSL

    博客分类:
  • web
感谢:http://emo.sourceforge.net/cert-login-howto.html 有些命令参数有变化,自己整理了下过程 1.Create OpenSSL keys and request -- run OpenSSL as administrator   1).openssl> req -new -newkey rsa:1024 -nodes -out ca.csr -keyout ca.key   2).openssl> x509 -trustout -signkey ca.key -days 1825 -req -in ca.csr -out ca.p ...
...
$("input[name='radio_name'][checked]").val(); //选择被选中Radio的Value值 $("#text_id").focus(function(){//code...}); //事件 当对象text_id获取焦点时触发 $("#text_id").blur(function(){//code...}); //事件 当对象text_id失去焦点时触发 $("#text_id").select(); //使文本框的Vlaue值成选中状态 $("inpu ...
...
public interface Strategy { public void operation(); } /** * 三条妙计 */ class BackDoor implements Strategy { @Override public void operation() { System.out.println("找乔国老帮忙"); } } class GivenGreenLight implements Strategy { @Override public void operation() { ...
Global site tag (gtag.js) - Google Analytics