摘要: import java.io.BufferedReader;import java.io.BufferedWriter;import java.io.File;import java.io.IOException;import java.io.InputStream;import java.io.InputStreamReader;import java.io.OutputStreamWriter;import java.util.ArrayList;import java.util.Arrays;import java.util.Iterator;import java.util.List; 阅读全文
posted @ 2012-12-06 09:36 旦旦哥 阅读(352) 评论(0) 推荐(0) 编辑
摘要: http://www.ttmsolutions.com/Apache_Software/ActiveMQ_LDAP_JDBC_Security_Plugins.php 阅读全文
posted @ 2012-11-29 10:36 旦旦哥 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 今天开发服务器突然连接不上,sqlplus /nolog、conn /as sysdba、startup命令后显示SQL> startupORA-01078: failure in processing system parametersLRM-00109: could not open parameter file '/opt/oracle10g/product/10.2/db_1/dbs/initORA10G.ora'查找文件,果然不存在。估计是非法关机造成的。这是因为在oracle9i和oracle10g中,oracle默认将使用spfile启动数据库,如果spfi 阅读全文
posted @ 2012-11-21 16:06 旦旦哥 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 网上搜的方案如下,但是没解决问题。 1、启动调试silverlight项目时,提示“无法启动调试 数据无效”;解决方法: 1、运行——>输入 regedit 打开注册表; 2、找到键值:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\iexplore.exe 3、修改(默认值)和 path 设置成相同的值,例如腾讯浏览器:C:\Program Files\Tencent\TT\bin\ttraveler.exe最终解决方案参照上面的方式没解决问题,我仔细看了C:\Program Files\Te 阅读全文
posted @ 2012-11-09 14:51 旦旦哥 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 原來FC6以後版本的gcc現在在link的時候會採用--hash-style=gnu這個hash方式, 據信可以提昇動態鍊結50%的效率。然而, 舊的glibc版本並不支援, 所以想要在舊的glibc版本上跑的話, link的時候記得加上 -Wl, --hash-style=sysv 阅读全文
posted @ 2012-11-02 16:59 旦旦哥 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 下载jdk包http://java.sun.comjdk-7u9-linux-i586.rpm(1)root用户下执行命令rpm -ivh jdk-7u9-linux-i586.rpm(2)命令 vi /etc/profile在尾部添加export JAVA_HOME=/usr/java/jdk1.7.0_09export PATH=$JAVA_HOME/bin:$PATHexport CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar(3)命令 java -version 阅读全文
posted @ 2012-11-02 13:58 旦旦哥 阅读(132) 评论(0) 推荐(0) 编辑
摘要: undefined reference to `dlsym' undefined reference to `dlopen' undefined reference to `dlclose' Property页--->C/C++ Buildings--->Settings--->Tool Settings--->GCC C++ Linker--->All options中加入-ldl。(我操作的时候All options不能写入东西,我直接在All options上面的 Command 命令,将g++ 修改为 g++ -ldl) 阅读全文
posted @ 2012-11-01 13:20 旦旦哥 阅读(300) 评论(0) 推荐(0) 编辑
摘要: http://chenhua-1984.iteye.com/blog/383494 阅读全文
posted @ 2012-10-29 15:57 旦旦哥 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 一.Windows验证操作系统密码#include "stdafx.h"#include <iostream>#include<windows.h> using namespace std;int _tmain(int argc, _TCHAR* argv[]){ HANDLE hUser; if( LogonUser("Administrator",NULL,"*****",LOGON32_LOGON_INTERACTIVE,LOGON32_PROVIDER_DEFAULT,&hUser)) { co 阅读全文
posted @ 2012-10-29 15:39 旦旦哥 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://book.51cto.com/art/201012/238917.htm 阅读全文
posted @ 2012-10-29 14:10 旦旦哥 阅读(85) 评论(0) 推荐(0) 编辑