delphiSocketChat(Hex源码)
delphiSocketChat(Hex源码)通过socket实现了简单的点点聊天功能,并在客户端增加了字符串转16进制方式接收发送功能
金蝶K3数据库表结构(全部).rar
从网上下载的金蝶带字段的比较全的数据库表结构
手机网页模拟器
本wap网页模拟器内含多种3g风格模板,希望能帮到大家
w3JMail.zip
jmail收发邮件控制(32位/64位),集成了delphi7、asp、aspnet、c++、Assembly、Perl、xml例程,是学习收发邮件原理的好帮手
ASPEnCode加密组件注册
ASP代码加密工具版本6的ASPEncode.DLL。很多人下载了ASP代码加密工具版本6破解版用来加密ASP代码,用但是发现加密完的代码无法使用。只要将此dll上传到服务器并注册以后,ASP代码加密工具版本6破解版加密的代码就可以正常运行了。
delphi7电压温度计控件
delphi7电压温度计控件
delphi串口cport.3.10
delphi串口cport.3.10
CommMonitor 侦测、拦截、逆向分析串口通信协议
CommMonitor 侦测、拦截、逆向分析串口通信协议, 是侦测RS232/422/485串行端口
的专业工具软件,是软硬件工程师的最佳助手。CommMonitor 能侦听、拦截、记录、分析
串行通信协议,让您对应用程序操作串行端口的过程和细节,让您及时的模拟被侦听程序
或设备的数据、控制流,提高工作效率。
Delphi_2007_2009_WOW64_Debugger_Fix.zip
borland 64 软件调试出错. 解决Assertion failure: (!SetThreadContext failed) in ..\win32src\thread32.cpp 问题
PowerDesigner12的破解文件
PowerDesigner 12变态破解方法
方法一:修改
1。先安装UltraEdit-32二进制编辑器。
2。找到pdfilm12.dll文件. 安装磁盘:"Sybase"PowerDesigner 12"pdflm12.dll 。
3。修改pdflm12.dll文件.使用UltraEdit-32打开此文件,查找:83 C4 14 8B 85 E4 FE FF FF将此字符串改为83 C4 14 33 C0 90 90 90 90。
方法二:覆盖
直接下载下载pdflm12.dll,覆盖即可,这次定能行.
SQL Monitor for Oracle,MySQL和DB2 v2.4.3.6 中文绿色版
SQL Monitor for Oracle,MySQL and DB2 是款免费的数据库跟踪工具,专门用来分析CPU使用率高的问题。
软件功能:
1. 监控SQL Server的进程和Job,查看当前执行的SQL/命令,并终止之。
2. 对象浏览器,跟 SQL Server Management Studio 类似
3. 查询数据
4. 数据库收缩、备份、分离等
5. 性能分析
6. 对象/脚本查找
原理非常简单,首先是获取所有SQL进程,方法有多种:
1.sys.sysprocesses:在SQL Server 2000就声明要被移除了,不建议使用。实际上sys.sysprocesses是用以下的dmv来映射的。
2. sp_who
3. sp_who2:跟sp_who类似,获取的字段比sys.sysprocesses和以下的dmv要少。
4. sys.dm_exec_sessions等相关dmv:
select * from sys.dm_exec_connections
select * from sys.dm_exec_requests
select * from sys.dm_exec_sessions
然后dbcc INPUTBUFFER(spid)来获取指定进程执行的SQL,最后用kill spid来中止SQL进程。
实际调试起来,会用到其它复杂的SQL,譬如是什么锁,锁定哪个数据库中的哪个表,等等,下一篇文章才写吧。
.NET中实现客户端联动菜单 (无刷新)
Ajax实现无刷新三联动下拉框
1.html代码
<HTML>
<HEAD>
<title>Ajax实现无刷新三联动下拉框</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
<SCRIPT language="javascript">
//城市------------------------------
function cityResult()
{
var city=document.getElementById("DropDownList1");
AjaxMethod.GetCityList(city.value,get_city_Result_CallBack);
}
function get_city_Result_CallBack(response)
{
if (response.value != null)
{
//debugger;
document.all("DropDownList2").length=0;
var ds = response.value;
if(ds != null && typeof(ds) == "object" && ds.Tables != null)
{
for(var i=0; i<ds.Tables[0].Rows.length; i++)
{
var name=ds.Tables[0].Rows[i].city;
var id=ds.Tables[0].Rows[i].cityID;
document.all("DropDownList2").options.add(new Option(name,id));
}
}
}
return
}
//市区----------------------------------------
function areaResult()
{
var area=document.getElementById("DropDownList2");
AjaxMethod.GetAreaList(area.value,get_area_Result_CallBack);
}
function get_area_Result_CallBack(response)
{
if (response.value != null)
{
document.all("DropDownList3").length=0;
var ds = response.value;
if(ds != null && typeof(ds) == "object" && ds.Tables != null)
{
for(var i=0; i<ds.Tables[0].Rows.length; i++)
{
var name=ds.Tables[0].Rows[i].area;
var id=ds.Tables[0].Rows[i].areaID;
document.all("DropDownList3").options.add(new Option(name,id));
}
}
}
return
}
function getData()
{
var province=document.getElementById("DropDownList1");
var pindex = province.selectedIndex;
var pValue = province.options[pindex].value;
var pText = province.options[pindex].text;
var city=document.getElementById("DropDownList2");
var cindex = city.selectedIndex;
var cValue = city.options[cindex].value;
var cText = city.options[cindex].text;
var area=document.getElementById("DropDownList3");
var aindex = area.selectedIndex;
var aValue = area.options[aindex].value;
var aText = area.options[aindex].text;
var txt=document.getElementById("TextBox1");
document.getElementById("<%=TextBox1.ClientID%>").innerText="省:"+pValue+"|"+pText+"市:"+cValue+"|"+cText+"区:"+aValue+"|"+aText;
}
</SCRIPT>
</HEAD>
<body ms_positioning="GridLayout">
<form id="Form1" method="post" runat="server">
<TABLE id="Table1" style="Z-INDEX: 101; LEFT: 96px; POSITION: absolute; TOP: 32px" cellSpacing="1"
cellPadding="1" width="300" border="1" bgColor="#ccff66">
<TR>
<TD>省市</TD>
<TD><asp:dropdownlist id="DropDownList1" runat="server"></asp:dropdownlist></TD>
</TR>
<TR>
<TD>城市</TD>
<TD><asp:dropdownlist id="DropDownList2" runat="server"></asp:dropdownlist></TD>
</TR>
<TR>
<TD>市区</TD>
<TD><asp:dropdownlist id="DropDownList3" runat="server"></asp:dropdownlist></TD>
</TR>
</TABLE>
<asp:TextBox id="TextBox1" style="Z-INDEX: 102; LEFT: 416px; POSITION: absolute; TOP: 48px" runat="server"
Width="424px"></asp:TextBox><INPUT style="Z-INDEX: 103; LEFT: 456px; WIDTH: 56px; POSITION: absolute; TOP: 96px; HEIGHT: 24px"
type="button" value="test" onclick="getData();">
</form>
</body>
</HTML>2.cs代码
using System;
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
namespace AjaxTest
{
/**//// <summary>
/// Summary description for WebForm1.
/// </summary>
public class WebForm1 : System.Web.UI.Page
{
protected System.Web.UI.WebControls.DropDownList DropDownList1;
protected System.Web.UI.WebControls.DropDownList DropDownList2;
protected System.Web.UI.WebControls.TextBox TextBox1;
protected System.Web.UI.WebControls.DropDownList DropDownList3;
private void Page_Load(object sender, System.EventArgs e)
{
Ajax.Utility.RegisterTypeForAjax(typeof(AjaxMethod));
if(!Page.IsPostBack)
{
this.DropDownList1.DataSource=AjaxMethod.GetProvinceList();
this.DropDownList1.DataTextField="province";
this.DropDownList1.DataValueField="provinceID";
this.DropDownList1.DataBind();
this.DropDownList1.Attributes.Add("onclick","cityResult();");
this.DropDownList2.Attributes.Add("onclick","areaResult();");
}
}
Web Form Designer generated code#region Web Form Designer generated code
override protected void OnInit(EventArgs e)
{
//
// CODEGEN: This call is required by the ASP.NET Web Form Designer.
//
InitializeComponent();
base.OnInit(e);
}
/**//// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.Load += new System.EventHandler(this.Page_Load);
}
#endregion
}
}3.AjaxMethod
using System;
using System.Data;
using System.Data.SqlClient;
namespace AjaxTest
{
/**//// <summary>
/// Summary description for AjaxMethod.
/// </summary>
public class AjaxMethod
{
GetProvinceList#region GetProvinceList
public static DataSet GetProvinceList()
{
string sql="select * from province";
return GetDataSet(sql);
}
#endregion
GetCityList#region GetCityList
[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]
public DataSet GetCityList(int provinceid)
{
string sql="select * from city where father="+provinceid;
return GetDataSet(sql);
}
#endregion
GetAreaList#region GetAreaList
[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]
public DataSet GetAreaList(int cityid)
{
string sql="select * from area where father="+cityid;
return GetDataSet(sql);
}
#endregion
GetDataSet#region GetDataSet
public static DataSet GetDataSet(string sql)
{
string ConnectionString=System.Configuration.ConfigurationSettings.AppSettings["ConnectionString"];
SqlDataAdapter sda =new SqlDataAdapter(sql,ConnectionString);
DataSet ds=new DataSet();
sda.Fill(ds);
return ds;
}
#endregion
}
}4.web.config
<httpHandlers>
<add verb="POST,GET" path="ajax/*.ashx" type="Ajax.PageHandlerFactory, Ajax" />
</httpHandlers>
testSpring
在testSpring项目上点右键:运行方式-JUnit测试
输出结果为:
2013-3-20 22:22:46 org.springframework.context.support.AbstractApplicationContext refresh
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@c1f10e: display name [org.springframework.context.support.ClassPathXmlApplicationContext@c1f10e]; startup date [Wed Mar 20 22:22:46 CST 2013]; root of context hierarchy
2013-3-20 22:22:46 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
信息: Loading XML bean definitions from class path resource [beans.xml]
2013-3-20 22:22:49 org.springframework.context.support.AbstractApplicationContext refresh
信息: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@c1f10e]: org.springframework.beans.factory.support.DefaultListableBeanFactory@15e234c
2013-3-20 22:22:49 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
信息: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@15e234c: defining beans [personService]; root of factory hierarchy
save()方法调用
testHibernate
在StudentTest.java文件上点右键,运行方式-Java应用程序
输出结果:能在数据库表hibernate中插入一条数据,则认为成功,其中id项不能重复
TestStruts2
MyEclipse中在项目上点右键:运行方式-MyEclipse Server Application运行后,在浏览器中输入 http://www-eyv4wadoro2:8080/TestStruts2/hello.action
输出为:The message generated by my first action is: hello world!出现hello world说明运行成功。
jna jna的jar包
从这里下载的jna的jar包:
https://jna.dev.java.net/servlets/ProjectDocumentList?folderID=7408&expandFolder=7408&folderID=0
※下载后,把后缀.zip改成.jar即可。