
Programming
文章平均质量分 64
jinlxz
这个作者很懒,什么都没留下…
展开
-
CC
There are lots and lots of options for cc, which are all inthe manual page. Here are a few of the most important ones, with examples of how to usethem.-o filename The output name of the file. If y转载 2013-04-13 11:40:29 · 783 阅读 · 0 评论 -
快速排序算法
快速排序算法(升序):1. 选择数组arr中的一个数A作为基准,进行排序,排序结果为A左边的数都小于等于A,A右边的数都大于等于A,A左边的元素集合为sub-arr1, A右边的元素集合为sub-arr2.2. 使用递归方法对sub-arr1, sub-arr2 进行步骤1的排序算法,直到产生的sub array长度为1, 就结束递归。步骤1的实现方法如下:设置指针index指向基...原创 2018-08-20 14:28:35 · 160 阅读 · 0 评论 -
java programming basic knowledge-- pass object as arguments
public class TestObject {public int a;public TestObject(int value){this.a=value;}public void modifyValue(int value) {// TODO Auto-generated method stubthis.a=value;}}public class ObjArgument {public s原创 2016-09-10 12:33:57 · 404 阅读 · 0 评论 -
java programming basic knowledge--variable initialization
public class InitArray { public static void main(String[] args) { // default value of a allocated array. int[] a=new int[10]; System.out.println("default value of a allocated array."); for(i原创 2016-09-10 12:29:24 · 332 阅读 · 0 评论 -
Understanding the digital signature
1. basic conceptA digital signature is a mechanism to verify theauthenticity of a signature generated from a fixed message and fixed private key,hence it can be ascertained that the messages are原创 2015-09-26 13:19:20 · 572 阅读 · 0 评论 -
Python 编码知识学习笔记
Python编码知识学习笔记>>>a='中' ===>a是一个编码之后的二进制,采用的操作系统默认的编码方式,类似于byte>>>s=u'中' ===>s是一个unicode类型,32bit整数,变量的内容为unicode的码字(codepoint)>>>a'\xd6\xd0' ===>如上所述当前系统是GBK编码,GBK编码的二进制值>>>su'\u4e2d'原创 2015-03-22 19:04:39 · 707 阅读 · 0 评论 -
python socket and SSL example
import socketimport sslimport hashlibimport httplibimport OpenSSLdef main(): get_req="""GET / HTTP/1.1Host: www.baidu.comConnection: keep-aliveAccept: text/html""" try: getsc原创 2015-10-26 23:03:20 · 628 阅读 · 0 评论 -
java多线程的理解
Interrupt()该方法给线程设置中断标记,标记当前线程被中断,可以通过Thread.interrupted()来了解当前线程是否处于中断状态,该方法会自动清除线程的中断标记,Thread.currentThread().isInterrupted()方法不会清除线程的中断标记,通常用该方法在一个线程中查看另外一个线程的中断状态。通常的做法如下:while(){….//so原创 2014-08-28 23:45:03 · 559 阅读 · 0 评论 -
linux 模块编译步骤
本文将直接了当的带你进入linux的模块编译。当然在介绍的过程当中,我也会添加一些必要的注释,以便初学者能够看懂。之所以要写这篇文章,主要是因为从书本上学的话,可能要花更长的时间才能学会整个过程,因为看书的话是一个学习过程,而我这篇文章更像是一个培训。所以实践性和总结性更强。通过本文你将会学到编译一个模块和模块makefile的基本知识。以及加载(卸载)模块,查看系统消息的一些知识;声明:转载 2013-04-13 11:43:50 · 566 阅读 · 0 评论 -
Maven 使用经验总结
1. list phase-plugin bindings , either of them will work. mvn help:describe -Dcmd=<phase> -Darguments_to_phasemvn fr.jcgay.maven.plugins:buildplan-maven-plugin:list-phase -Dbuildplan.tasks=...原创 2018-08-30 12:46:49 · 664 阅读 · 0 评论