上一页 1 ··· 6 7 8 9 10 11 下一页

2013年6月12日

调试时出现 'The breakpoint will not currently be hit. No symbols have been loaded for this document' 当前断电不会被命中,符号未被加载的解决方法

摘要: stackOverFlow的有效答案:I had the same problem, I was debugging my project, and i had to right click the project and select "new debug instance". I only needed to do this once, then after that it worked as normal.方法是:右击项目选择 : 启动新实例原帖地址 :http://stackoverflow.com/questions/2301216/the-breakpoint- 阅读全文

posted @ 2013-06-12 14:08 齐文宣 阅读(1138) 评论(0) 推荐(0)

2013年6月4日

raspberry 安装apache2,使其支持ssl ,并创建自签名证书

摘要: 1:安装 apache2命令 sudo apt-get install apache2 php5 libapache2-mod-php52: 添加 ssl 模块 默认安装apache2后,并没enable ssl功能,查看apache2 当前enable 的模块 命令 sudo apache2ctl -M 此时输出中应不包括 ssl_module 运行 sudo a2enmod ssl 命令 使ssl模块 enable 然后 sudo /etc/init.d/apache2 force-reload 强制重新载入 此时再运行sudo apache2ctl -M 输出中应出现 ssl_modu. 阅读全文

posted @ 2013-06-04 17:49 齐文宣 阅读(666) 评论(0) 推荐(0)

2013年6月3日

*.cer 文件是否包含私钥的问答

摘要: Q:Using java 'keytool' command we generate a private key and public key and also we can export the public key to a .cer file. Now my question is can a .cer file contain a private key. My impression is .cer is a public key certificate that can contain only public key but not private key. Some 阅读全文

posted @ 2013-06-03 14:52 齐文宣 阅读(2019) 评论(0) 推荐(0)

转----cer文件和pfx文件的区别

摘要: 作为文件形式存在的证书一般有这几种格式: 1.带有私钥的证书 由Public Key Cryptography Standards #12,PKCS#12标准定义,包含了公钥和私钥的二进制格式的证书形式,以pfx作为证书文件后缀名。 2.二进制编码的证书 证书中没有私钥,DER 编码二进制格式的证书文件,以cer作为证书文件后缀名。 3.Base64编码的证书证书中没有私钥,BASE64 编码格式的证书文件,也是以cer作为证书文件后缀名。由定义可以看出,只有pfx格式的数字证书是包含有私钥的,cer格式的数字证书里面只有公钥没有私钥。 在pfx证书的导入过程中有一项是“标志此密钥... 阅读全文

posted @ 2013-06-03 13:52 齐文宣 阅读(3586) 评论(0) 推荐(0)

2013年5月26日

转贴-------ARP攻击C语言代码

摘要: ARP攻击C语言代码本代码基本不具备危害性,只是通过MAC地址欺骗修改服务器缓冲区信息实现消息拦截。假设被攻击服务器 IP 地址为 192.168.20.8 ,MAC地址为 00:0C:29:BD:1C:EF被拦截消息计算机IP地址为 192.168.20.9 本机MAC 地址为 00:0C:29:AF:FB:D3#include<stdio.h>#include<string.h>#include<unistd.h>#include<stdlib.h>#include<net/if_arp.h>#include<net/eth 阅读全文

posted @ 2013-05-26 23:23 齐文宣 阅读(924) 评论(0) 推荐(0)

2013年5月22日

raspberry PI 使用snmp协议取pc或route的cpu使用率

摘要: raspberry PI 配置1:在raspberry安装snmp 客户端 sudo apt-get install snmp安装mib下载器 使oid可读 sudo apt-get install snmp-mibs-downloader edit /etc/snmp/snmp.conf and comment out the following line: mibs : 下载 mib: download-mibs2:为了本机测试,再安装 snmp 服务sudo apt-get install snmpd 编辑 edit /etc/snmp/snmpd.conf 取消这句的注释rocommu 阅读全文

posted @ 2013-05-22 16:26 齐文宣 阅读(960) 评论(0) 推荐(0)

raspberry pi 自动ftp取windows server 's file

摘要: #!/bin/bashftp_site=192.168.1.102username=anonymouspasswd=a@b.cnPS3='Select a destination directory: '# bash seleccd /ftpdir/scriptssudo ftp -in <<EOFopen $ftp_siteuser $username $passwdget bb.txtclosebyeEOF#sudo ftp <192.168.0.104>#user <anonymous> <a@b.cn>#get bb.tx 阅读全文

posted @ 2013-05-22 16:02 齐文宣 阅读(232) 评论(0) 推荐(0)

2013年5月2日

sql serve column name 加空格

摘要: select 'a' as column1 name1 : wrongselect 'a' as [column1 name1] : ok[] : brackets 阅读全文

posted @ 2013-05-02 11:35 齐文宣 阅读(269) 评论(0) 推荐(0)

2013年4月6日

store procudure's output parameter & return value

摘要: using output valuedeclare @intId intexec ap_EqIdByMakeModel_List_2 'NEC','V90',@intId outputprint @intIdusing return valuedeclare @intNewId intexec @intNewId=ap_EqIdByMakeModel_List_3 'NEC','V90'print @intNewId 阅读全文

posted @ 2013-04-06 20:11 齐文宣 阅读(121) 评论(0) 推荐(0)

2013年3月25日

infragistics's ultragrid 控件显示列与实际列的关系

摘要: 弹出列选择器窗口:ultraGrid1.ShowColumnChooser();通过列选择器,可以使某些列不可见。如果隐藏了某些列,同时又拖拽改变了列顺序,比如原来是 1 2 3 4现在是 3 1对于某一行,想按照现在的顺序依次输出列值,思路是:先用一个Dictionary<int,int>存 显示列与实际列,代码: private void GetSortedDictionary(ref Dictionary<int, int> di,UltraGrid ug) { Dictionary<int, int> di = new Dictiona... 阅读全文

posted @ 2013-03-25 00:55 齐文宣 阅读(352) 评论(0) 推荐(0)

上一页 1 ··· 6 7 8 9 10 11 下一页

导航