- 博客(21)
- 资源 (16)
- 收藏
- 关注
原创 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
原创 快速排序算法
快速排序算法(升序):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
原创 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
原创 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
原创 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
原创 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
原创 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
原创 java多线程的理解
Interrupt()该方法给线程设置中断标记,标记当前线程被中断,可以通过Thread.interrupted()来了解当前线程是否处于中断状态,该方法会自动清除线程的中断标记,Thread.currentThread().isInterrupted()方法不会清除线程的中断标记,通常用该方法在一个线程中查看另外一个线程的中断状态。通常的做法如下:while(){….//so
2014-08-28 23:45:03
559
转载 常用License的区别
本文,我们来看5种最常用的开源协议及它们的适用范围,供那些准备开源或者使用开源产品的开发人员/厂家参考。BSD开源协议BSD开源协议是一个给于使用者很大自由的协议。基本上使用者可以”为所欲为”,可以自由的使用,修改源代码,也可以将修改后的代码作为开源或者专有软件再发布。但”为所欲为”的前提当你发布使用了BSD协议的代码,或则以BSD协议代码为基础做二次开发自己的产品时,需要满足三个条件
2013-10-13 19:10:15
3424
原创 debian 6.0 默认安装后,无法使用sftp的解决办法
先普及一下常识sftp协议和scp协议都是包含在ssh协议中的sftp协议是 ssh 2.0中的内容scp协议是 ssh 1.0中的内容因此使用sftp协议来传输文件只需要运行了ssh服务就可以了,不需要安装另外安装软件默认安装debian 6.0以后,sftp是使用不了,登录之后报错,下面是winscp的截图:这个时候只需要修改sshd_config文件,然后在重
2013-06-23 17:13:13
2935
转载 TestBench中的timescale 时间延迟与时间精度
在Verilog HDL 模型中,所有时延都用单位时间表述。使用`timescale编译器指令将时间单位与实际时间相关联。该指令用于定义时延的单位和时延精度。`timescale编译器指令格式为:` timescale time_unit / time_precision 。其中,time_unit 和time_precision 由值1、10、和100以及单位s、ms、us、ns、ps和fs组成
2013-04-13 11:44:41
3913
转载 linux 模块编译步骤
本文将直接了当的带你进入linux的模块编译。当然在介绍的过程当中,我也会添加一些必要的注释,以便初学者能够看懂。之所以要写这篇文章,主要是因为从书本上学的话,可能要花更长的时间才能学会整个过程,因为看书的话是一个学习过程,而我这篇文章更像是一个培训。所以实践性和总结性更强。通过本文你将会学到编译一个模块和模块makefile的基本知识。以及加载(卸载)模块,查看系统消息的一些知识;声明:
2013-04-13 11:43:50
566
原创 让linux终端更好用
1. 给linux终端配置颜色,让命令行更加漂亮 shell 彩色配置出现在 bash 的个人配置文件 ~/.bashrc 或者是全局配置文件 /etc/bashrc 里面。 可以通过bashrc 里面的 PS1 变量来设置提示符的外观。 PS1="\[\033[1;32;40m[\033[0;32;40m\u@\h:\033[1;35;40m\w\033[1;32
2013-04-13 11:42:07
1000
转载 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
原创 Choices
It is not our abilities that show what we truly are,It is our choices.
2013-04-13 11:35:10
489
转载 FreeBSD通过PORTS安装软件的几个常用命令
1.怎样找到我想安装的包路径:# cd /usr/ports# make search name=mysql2.仅仅下载源码包,而不安装:# cd /usr/ports/directory# make fetch3.预先知道需要那些包,才能安装这个软件:# cd /usr/ports/directory# make fetch-list4.把软件装到指定的目录:
2013-04-13 11:32:59
607
原创 PCB 名词解释
名词解释:1. 阻焊层(Solder Mask):又叫绿油层,是电路板的非布线层,用于制成丝网漏印板,将不需要焊接的地方涂上阻焊剂。由于焊接电路板时焊锡在高温下的流动性,所以必须在不需要焊接的地方涂一层阻焊物质,防止焊锡流动、溢出引起短路。在阻焊层上预留的焊盘大小,要比实际焊盘大一些,其差值一般为10~20mil,在Pad_Design 工具中可以进行设定。在制作PCB
2013-04-13 11:31:10
2266
原创 X window system and window manager
A window manager controls the placement and appearance of application windowsa DesktopEnvironment typically consists of a window manager (such asMetacity orKWin), afile manager (such asNautil
2013-04-13 11:22:01
1413
原创 C语言:使用链表实现的可变长度字符串处理函数
//unlimitedstr.hstruct usrstr{char str;struct usrstr * next;struct usrstr * back;};struct usrstr * inputstr();int releasestr(struct usrstr *);int printstr(struct usrstr *);int prin
2013-04-13 11:18:42
1329
network configuration tools Linux Platform
2016-06-21
A powerful tool to configure network clientside
2016-06-08
Popular automation testing libray local repository
2014-11-08
The Unified Modeling Language User Guide - Second Edition
2014-03-06
算法导论_MIT_Classic
2013-07-15
QEMU 1.2.0 windows 可执行程序
2013-05-25
Cadence orcad 16.3
2010-02-02
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人