点击下载1. 生成原始 RSA私钥文件 private_key.pemopenssl genrsa -out private_key.pem 10242. 将原始 RSA私钥转换为 pkcs8格式openssl pkcs8 -topk8 -inform PEM -in private_key.pem...
grep(Globel Search Regular Expression and Printing out the line)全面搜索正则表达式并把行打印出来)是一种强大的文本搜索工具,是一个对行进行操作的搜索工作,它能使用正则表达式搜索文本,并把匹配的行打印出来。Unix的grep家族包括grep、egrep和fgrep。 egrep表示扩展的grep,相比grep支持更多的元字符,"grep...
分类:
其他好文 时间:
2014-06-16 20:07:52
阅读次数:
220
下面将列举一些面试中常见的关于java表达式的问题,我将结果直接以注释的形式附在后面。
问题1:
int a = 10;
int b = a + (a = 5) + a + (a = 10);
System.out.println(b);//b = 30
问题2:
int i = 1;
i = (i=i+(i+(i=2)+...
分类:
编程语言 时间:
2014-06-16 19:30:52
阅读次数:
312
publicclassTest
{
publicstaticvoidmain(String[]args)throwsException{
Childrenc=newChildren();
c.show();
}
}
classParent
{
publicvoidshow(){
stepOne();
stepTwo();
}
voidstepOne(){
System.out.println("parent.stepOne()");
}
voidstepTwo(){
/..
分类:
其他好文 时间:
2014-06-16 15:12:59
阅读次数:
178
题目
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.
For example,
If n = 4 and k = 2, a solution is:
[
[2,4],
[3,4],
[2,3],
[1,2],
[1,3],...
分类:
其他好文 时间:
2014-06-15 14:10:54
阅读次数:
239
package reverseList;public class Main { static void perm(char c[],int lev,char ans[]) { if(c.length==lev) { System.out.println(String.valueOf(ans)); }...
分类:
其他好文 时间:
2014-06-14 20:36:26
阅读次数:
154
Undo有什么用?当connection.rollback()时,用于回滚transaction系统或数据库出错时,用于恢复数据库提供读一致性用flashback query时,分析某一个时间点的数据逻辑错误时,用flashback恢复自动undo 管理用undo tablespace管理undo ...
分类:
其他好文 时间:
2014-06-14 19:12:17
阅读次数:
246
ref和out的区别在C# 中,既可以通过值也可以通过引用传递参数。通过引用传递参数允许函数成员更改参数的值,并保持该更改。若要通过引用传递参数, 可使用ref或out关键字。ref和out这两个关键字都能够提供相似的功效,其作用也很像C中的指针变量。它们的区别是:1、使用ref型参数时,传入的参数...
分类:
其他好文 时间:
2014-06-14 16:43:28
阅读次数:
177
曾经整理过一篇《关于PHP连接处理中set_time_limit()、connection_status()和ignore_user_abort()深入解析》,是讲解浏览器客户端断开时,服务器PHP脚本的处理。
这篇文章,将讲解一下服务器PHP脚本怎样主动断开与浏览器的连接,主要方法是使用http协议header中的Content-Length和Connection
Content-Length的作用:浏览器接收到指定Content-Length大小的消息实体后,则会断开与服务器的连接。
Connectio...
分类:
Web程序 时间:
2014-06-14 09:24:21
阅读次数:
229
之前我有看过别人写的文章,说到如何获取客户端IP地址,代码如下:var io = require("socket.io").listen(server);io.sockets.on("connection", function (socket) { var address = sock...
分类:
其他好文 时间:
2014-06-14 08:48:28
阅读次数:
412