04 2012 档案
摘要:本文收录本人工作中查看软件版本信息的命令:操作系统:windows :打开命令行→systeminfo >xx.txt,即可把windows的信息输出到xx.txt文件里面。一般可以用来查看操作系统的位数等等信息。Ubuntu:sudo lsb_release -a软件:SQLServer:打开ssms→select @@version或者执行:均可查看SQL SERVER的版本甚至更详细的信息。xp_msver执行系统存储过程:也能获得信息。但该存储过程可能以后版本不可用sp_msgetversion执行语句:同样可以获得信息。SELECT SERVERPROPERTY('pr
阅读全文
摘要:测试Rockey 4 Smart加密锁的.Net C#语言代码public enum Ry4Cmd : ushort { RY_FIND = 1, //Find Ry4S RY_FIND_NEXT, //Find next RY_OPEN, //Open Ry4S RY_CLOSE, //Close Ry4S RY_READ, //Read Ry4S RY_WRITE, //Write Ry4S RY_RANDOM, //Generate rando...
阅读全文
摘要:测试Rockey 4 Smart加密锁的C语言代码// win32Console_dog_test.cpp : Defines the entry point for the console application.
///////////////////////////////////////
//
//测试Rockey 4 Smart加密锁的C语言代码
//
/////////////////////////////////////// #include "stdafx.h"
#include <conio.h>
#include "time.h&
阅读全文
摘要:Windows Server 2008 R2中关闭“IE增强的安全配置”2011年05月02日 ⁄ 服务器技术 ⁄ 评论数 1 ⁄ 被围观 1,068 次+ 当在Windows Sever 2008 R2中运动IE8的时候会发现默认情况下IE启用了增强的安全配置,为了方便而且是在内网的情况下我们可以关闭IE8的增强安全配置,操作很简单如下步骤。一,以本机管理员或是域管理员的身份登陆系统,在“开始”菜单-->“管理工具”-->“服务器管理器”,如下图:(或者点击任务栏上的服务器管理器图标即可)二,或者在“开始”菜单-->“运行”中输入“servermanager.msc”回车即
阅读全文
摘要:win7启用Administrator帐户的方法第一步,同时按住键盘上winkey+R将会出现运行对话框,输入lusrmgr.msc,回车,continue你将会看到帐户管理器,在User上双击,在右边的Administrator右键点击,选择Properties将Account is disabled前面的复选框去掉,OK,超级管理员帐户就启用了如果你想删除以前你建立的用户,只需要在相应的用户名上右击,在出现的菜单中点Delete就可以了,如果要给超级管理员设置密码,在超级管理员帐户上点击右键,Set passwords……注销你的当前用户,你就可以用超级管理员账户登录了
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之六(mapgis公用函数二次封装库)///////////////////////////////////////////
//mapgis_common.cpp
//mapgis公用函数二次封装库
//vp:hsg
//create date:2012-04
//
///////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include <math.h>
#include &quo
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之五(输出VCT函数之表属性段)//////////////////////////////////////////////
//
//输出vct属性值 version=1, topo=0 //vp:hsg
//create date:2012-04-20
//
//////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include <math.h>
#include &quo
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之五(输出VCT函数之面图层)//////////////////////////////////////////////
//
//输出vct面坐标 version=1, topo=0 //vp:hsg
//create date:2012-04-20
//
//////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include <math.h>
#include "
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之五(输出VCT函数之线图层)//////////////////////////////////////////////
//
//输出vct线坐标 version=1, topo=0 //vp:hsg
//create date:2012-04-20
//
//////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include <math.h>
#include "
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之五(输出VCT函数之点图层)//////////////////////////////////////////////
//
//输出vct点坐标 version=1, topo=0 //vp:hsg
//create date:2012-04-20
//
//////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include <math.h>
#include "
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之五(输出VCT函数 总入口)//////////////////////////////////////////////
//
//VCT 导出功能 version=1, topo=0 //vp:hsg
//create date:2012-04-20
//
//////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include <math.h>
#include "
阅读全文
摘要:C/C++ 去掉字符串首尾空格函数//去掉字符串首(左)空格函数
char* ltrim_lc(char* s)
{ char* s_s=new char[strlen(s)+1]; strcpy(s_s,s); char* s_rev=strrev(s_s); s_rev=rtrim_lc(s_rev); char* d_s=strrev(s_rev); return d_s;
}
//去掉字符串尾(右)空格函数
char* rtrim_lc(char* s)
{ char* s_s=new char[strlen(s)+1]; strcpy(s_s,s); /...
阅读全文
摘要:C/C++ 分割字符并返回字符数组实例//分割字符并返回字符数组
char **GetStrArray(char* s,const char* d)
{ char* s_s=new char[strlen(s)]; strcpy(s_s,s); //计算字符数组个数 int rows=0; char *p_str=strtok(s_s,d); while(p_str) { rows+=1; p_str=strtok(NULL,d); } //重新初始二维数据 char **strArray=new char*[rows+1...
阅读全文
摘要:C/C++二维数据 静态动态声明和初始化及访问方法实例void D2A_test()
{ int rows=3; int cols=4; int i,j; int *p; char* pret; //静态声明二维数据 /* int a[3][4]={{1,2,3,4},{11,12,13,14},{21,22,23,24}}; //赋值 for(i=0;i<rows;i++) { for(j=0;j<cols;j++) { a[i][j]=i*4+j; } } // p=a[0]; //数组首地址 //一般二维数据读...
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之四(VCT导出之 version=1,topo=0)本文所述内容为国土行业的VCT版本为1,拓扑=0的结构即为2002年国家标准本文主要包括有(vct文件头段输出功能;vct要素类段输出功能;vct字段结构输出功能;vct线要素几何图形输出功能;vct属性结构输出功能;)其中vct点要素几何图形输出功能; vct面要素几何图形输出功能; vct注记几何图形输出功能;将在后续的文章中描述;//Vct_Export.cpp文件内容如下所示://////////////////////////////////////////////
//
/...
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之三(文件操作通用函数)//FileOpClass.cpp文件内容如下所示://////////////////////////////////////////////////////////////////
//
//文件操作
//#include FileOpClass
//
//////////////////////////////////////////////////////////////////
#include "demo.h" char* LogFileName="AppErrorLog.log&qu
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之二(主窗体回调函数)Map_cpak.cpp文件内容如下所示://添加处理鼠标消息的函数
//回调函数
//*****************************************************//
//Map_cpak.cpp
// 回调函数模块: // 集中窗口的回调函数 //*****************************************************//
#include "stdafx.h"
#include "resource.h"
#include
阅读全文
摘要:mapgis6.7二次开发vc6_demo 之一(主窗体构架)本文根据mapgis6.7 sdk开发包中实例程序和help.chm帮助文件进行的学习心得总结://stdafx.h文件内容如下所示 :#include <windows.h>//#include "demo.h"文件内容如下所示 ://#include "demo.h"
#if !defined(AFX_DEMO_H__8E07CFE6_850E_11D4_9287_444553540000__INCLUDED_) #define AFX_DEMO_H__8E07CFE6_850
阅读全文
摘要:基于WCF应用的一个实例本文参考url:http://www.cnblogs.com/artech/archive/2007/02/26/656901.html根据上文的思想和代码做的一个调试通过的一个实例和在调试理解过程的一点经验(1)合约接口的定义Contracts工程 类库 .net4.0 引用System.ServiceModel定义计算合约接口ICalculator如下所示:/// <summary> /// 计算接口 合约 /// create date:2012-04-17 /// </summary> [ServiceContract(Name ...
阅读全文
摘要:WCF技术文章urlhttp://www.cnblogs.com/artech/archive/2007/02/26/656901.html
阅读全文
摘要:概述 Windows Communication Foundation(WCF)是由微软发展的一组数据通信的应用程序开发接口 可以翻译为Windows通讯接口,它是.NET框架的一部分,由 .NET Framework 3.0 开始引入,与 Windows Presentation Foundation及 Windows Workflow Foundation并行为新一代 Windows操作系统以及 WinFX 的三个重大应用程序开发类库。在 .NET Framework 2.0 以及前版本中,微软发展了 Web Service (SOAP with HTTP communication),.
阅读全文
摘要:本文转自如下链接:http://www.doserv.com/article/2012/0105/9616330.shtmlhttp://www.doserv.com/article/2012/0105/234415.shtml一.云计算势不可挡 云计算正成为IT界最热门的词语。截止2011年12月26日,全球最大的两个搜索引擎谷歌和百度,它们关于“云计算”的收录结果分别是5190万条和6280万条。这些数据只能反映出云计算在网络上的热度。 事实上,云计算已不仅仅是一个热词,而且确实是影响人们生活的一种全新的模式。比如在线办公的微软Office365、提供云存储的金山快盘,再比如电子日历——谷
阅读全文
摘要:注,Blog 转自以下链接:http://www.doserv.com/article/2012/0330/8848742.shtmlhttp://www.doserv.com/article/2012/0330/1028339.shtmlhttp://www.doserv.com/article/2012/0331/8612065.shtmlhttp://www.doserv.com/article/2012/0401/3251015.shtml一. X86问世 在1978年英特尔推出第一代X86架构处理器——8086中央处理器——的时候,没有人会认为,这个小小的芯片会在后来承担多么重要的角
阅读全文
摘要:注:本文转自如下链接:http://www.doserv.com/article/2012/0220/4657274.shtmlhttp://www.doserv.com/article/2012/0220/5091794.shtmlhttp://www.doserv.com/article/2012/0220/5564069.shtmlhttp://www.doserv.com/article/2012/0220/6885431.shtml一.辉煌中的危机 大型主机创造了辉煌,那是一个“最好的时代”,一切都那么美好;那是一个“伟大的时代”,创造了如此之多的纪录;那是一个“神奇的时代”,大型主
阅读全文
摘要:一.安装Oracle Linux 6.1系统我这里使用VBox 来安装,具体使用参考:OracleVirtual Box 安装使用 说明http://blog.csdn.net/tianlesoftware/article/details/6826389在安装OS 时安装如下包:Base System > BaseBase System > Client management toolsBase System > Compatibility librariesBase System > Hardware monitoring utilitiesBase System &
阅读全文
摘要:在Oracle Linux 6.1 上安装Oracle 11.2.0.3, 在运行runInstaller 时报错。 具体如下:[root@dave mnt]# xhost +access control disabled, clients canconnect from any host[root@dave mnt]# su - oracle[oracle@dave ~]$ cd /u01/software/database/[oracle@dave database]$ lsdocreadme.html rpm sshsetup welcome.htmlinstallresponse ru
阅读全文
摘要:在Oracle Linux 5中,我们可以使用使用Oracle validated Configuration 来加速部署Oracle 环境,关于Validated Configurations参考:OracleValidated Configurations 安装使用 说明http://blog.csdn.net/tianlesoftware/article/details/7061684 在Oracle Linux 6中,没有推出oracle validate包,而是推出了oracle-rdbms-server-11gR2-preinstall包。一.官网说明Oracle RDBMS Se
阅读全文
摘要:昨天直接将VBox 虚拟机强制退出,再启动就显示虚拟机不可用,如图: Could not find an open hard disk with UUID {b96d5ecb-168a-4eaf-851e-0f21961dae4e}. 返回代码: VBOX_E_OBJECT_NOT_FOUND (0x80BB0001) 组件: VirtualBox 界面: IVirtualBox {c28be65f-1a8f-43b4-81f1-eb60cb516e66} VBox 安装在64位 win7上,在网上google了一...
阅读全文
摘要:Oracle RAC中ASM 的配置可以有2种方式实现:raw和asmlib。 在实际的维护中,更推荐使用raw。 使用raw又有两种方法:使用multipath和UDEV。在Redhat 平台下参考:Redhat 5.4 +ASM + RAW+ Oracle 10g RAC 安装文档http://blog.csdn.net/tianlesoftware/article/details/5872593Redhat 5.4Oracle 10g RAC Openfiler+Multipath + RAW+ ASM 安装文档http://blog.csdn.net/tianlesoftware/a.
阅读全文