自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(40)
  • 资源 (7)
  • 收藏
  • 关注

原创 解决php smarty 2.x register_object方法不支持多级对象方法调用的问题

由于smarty3速度慢,内存消耗大所以还是选择smarty2比较好。以最小破坏源码为前提,以当前最新版smarty 2.6.27为例打开smarty目录下Smarty_Compiler.class.php找到184行 //$this->_reg_obj_regexp = '[a-zA-Z_]\w*->[a-zA-Z_]\w*';//以支持多级对象语法标签的提取

2012-12-04 16:06:22 1060

转载 How to map an Entity framework model to a table name dynamically

<br />Using a code-first approach I'd like to map a single model to multiple table names dynamically. Currently I can do something like modelBuilder.Entity(Of Person)().MapSingleType().ToTable("Managers") but as the OnModelCreating method is only called on

2011-05-03 23:08:00 2546

转载 Code First DataAnnotations

<br />Entity Framework Code First modeling workflow allows you to use your own domain classes to represent the model which EF relies on to perform querying, change tracking and updating functions. Code first leverages a programming pattern referred to as c

2011-04-30 18:50:00 2093

转载 资料

<br />  I:Web Pages 1.0中以“_”开头的特别文件(文件命名时不区分大小写)<br />  “_appstart.cshtml” & “_pagestart.cshtml” & “_viewstart.cshtml”<br />  _appstart.cshtml - 应用程序启动时在Global. Application_Start方法后执行。<br />  功能:用于进行App的初始化时,需要进行处理的内容,例:向数据库记录系统初始化的一些信息。<br />  功能与Global.A

2011-04-29 21:07:00 622

转载 ASP.NET MVC3 基础教程 – Web Pages 1.0

<br />  I:Web Pages 1.0中以“_”开头的特别文件(文件命名时不区分大小写)<br />  “_appstart.cshtml” & “_pagestart.cshtml” & “_viewstart.cshtml”<br />  _appstart.cshtml - 应用程序启动时在Global. Application_Start方法后执行。<br />  功能:用于进行App的初始化时,需要进行处理的内容,例:向数据库记录系统初始化的一些信息。<br />  功能与Global.A

2011-04-21 16:01:00 895

原创 PHP数组编码转换

一晃好久没做记录了,今天因为一些特殊字符的原因不得不把习惯的utf-8工程改成了GBK,由于使用了ajax技术,又涉及到了老问题——编码转换。一些表单验证需要返回json数据,php的json_encode函数只支持utf-8编码,无奈只得iconv了,需要达到的效果是GBK数组转换成utf-8数组传给json_encode函数。最开始的思路,将数组序列化后用iconv函数转换编码,之后再反序列化,代码如下:unserialize(iconv('gbk','utf-8',serialize($array))

2010-12-09 16:49:00 4747 4

转载 WCF "Raw" programming model (Web) - receiving arbitrary data

The previous post mentioned how to return arbitrary data from WCF services. To receive data, however, there is one extra step, which Ill try to explain here.Like returning arbitrary data, the key

2010-04-12 03:32:00 1283

转载 IIS 服务器错误

Desktop Heap Overview  Desktop heap is probably not something that you spend a lot of time thinking about, which is a good thing.  However, from time to time you may run into an issue that is ca

2010-03-06 19:51:00 936

转载 Output an XML type attribute using DataContract

This tutorial will show you how to add an attribute to an XML stream returned from a Windows Communication Foundation (WCF) Web Service.  Some knowledge of WCF and XML is required; the code is in C#.

2009-12-29 16:43:00 673

转载 A Custom UITypeEditor for Activity Properties

As with many other technologies, the design time experience in Windows Workflow Foundation uses many of the same extensibility mechanisms found in other designers (such as the Windows Forms designer).

2009-10-27 02:32:00 929

转载 CPU Monitoring and Throttling in IIS 6

You can enable some basic CPU monitoring in IIS, but the downside is you have very few options if a given site takes up too much CPU. You can either a) record something in the event log, or b) have th

2009-10-08 23:17:00 944 1

转载 What??? You deleted "Default Web Site" from IIS?!?!

Some applications are just bent on seeing what appears to be the pristine original Default Web Site that is created when IIS is first installed.  For instance, when setting up Microsofts own Reportin

2009-09-25 16:30:00 671

转载 WMI脚本入门

发布日期: 9/9/2004 | 更新日期: 9/9/2004Greg Stemp、Dean Tsaltas 和 Bob WellsMicrosoft CorporationEthan Wilansky网络设计小组摘要:定义 WMI 脚本库并展示如何使用它来访问和管理 WMI 托管资源。通览 7 个可以用 WMI 脚本库创建的基本脚本类型,它们用于如创建、删除、检索托管资源实例等任

2009-09-25 03:03:00 1186

转载 Creating an IIS Site through managed code (C#, .NET) by Mike

public static string CreateWebSite(string NewSiteIP, string webSiteName, string pathToRoot, string DomainName){ int siteID = 1; string sSiteID = ""; try {

2009-06-17 07:31:00 779

转载 Active Directory编程

要开发Active Directory程序,必须导入System.DirectoryServices命名空间。还必须引用System.DirectoryServices程序集。使用这个程序集中的类可以查询对象、查看和更新属性,搜索对象,把对象移动到其他容器对象中等。在下面的代码段中,简单的C#控制台应用程序说明了如何使用System.DirectoryServices命名空间中的类。本节将介绍

2009-06-15 11:37:00 1345

转载 SWFUpload V2.2.0 中文说明文档

SWFUpload V2.2.0 说明文档更新时间:2008-11-07TOCSWFUpload SWFUpload 2 概述 入门 SWFUpload JavaScript 对象 构造器 全局变量和常量 instances movieCount QUEUE_ERROR UPLOAD_ERROR FILE_STATUS Default

2009-06-13 02:05:00 6620 2

原创 Howto: (Almost) Everything In Active Directory via C#

引自:http://www.codeproject.com/KB/system/everythingInAD.aspxTable of ContentsIntroduction Background Points of concern: security & impersonation Running code in batch processes Method par

2009-06-09 11:35:00 2019

转载 php 的 3des加解密类,兼容C#/java

class Crypt3Des {           var $key;          function Crypt3Des($key){              $this->key = $key;     }     function encrypt($input){         $size = mcrypt_get_block_size(MCRYPT_3DES,ecb);  

2009-06-05 01:48:00 1060

转载 window2003支持8G内存

右键点击 我的电脑,选择属性 -> 高级 -> 启动和故障恢复 -> 系统启动  点编辑:在末尾添加 /pae例如:[boot loader]timeout=10default=multi(0)disk(0)rdisk(0)partition(1)/WINDOWS[operating systems]multi(0)disk(0)rdisk(0)partition(1)/WINDO

2009-06-05 01:46:00 916

转载 WebContentTypeMapper 示例

WCF 为内容类型提供一组默认的映射。例如,application/json 映射到 JSON,text/xml 映射到 XML。未映射到 JSON 或 XML 的任何内容类型都将映射到原始二进制格式。在某些方案(例如推送式 API)中,服务开发人员不控制由客户端返回的内容类型。例如,客户端可以将 JSON 作为 text/javascript 而不是 application/json 返回。

2009-06-02 23:10:00 4111 2

转载 HTML Form Handler Sample

引自:MSDN http://msdn.microsoft.com/en-us/library/bb943485.aspx Download sample  This sample shows how to extend the Windows Communication Foundation (WCF) Web Programming Model to handle HTML

2009-06-02 22:48:00 1162

转载 AES Encryption to Match PHP's Mcrypt Extension

Demonstrates how to match AES encryption results with PHPs mcrypt extension. Please refer to this discussion about PHP AES Encryption. The code here matches the PHP mcrypt results on that page. D

2009-06-02 13:31:00 768

原创 smarty 开启use_sub_dirs的错误修复

通过跟踪代码修改 internals/core.create_dir_structure.php 对照修改  //fix my template dir structure by zero array_splice($_dir_parts,0,count(explode(DIRECTORY_SEPARATOR,realpath($smarty->template_dir)))-1,

2009-05-29 17:27:00 552

转载 一个有趣、有用的js函数库 php.js

经常在写javascript代码的时候,想起php某些函数的功能,总觉得javascript也要这些函数就好了。比如intval之类的,当然也可以自己写函数来实现。后来在网上逛的时候,发现了还真有人在做这个事情。这个是作者的博客:http://kevin.vanzonneveld.net/techblog/category/php2js/他的这个js函数库已经在js中实现了大多数php常见函数

2009-05-20 05:36:00 680

转载 McAfee8.5不能升级之解决办法

近一个月的时间,自己电脑的McAfee8.5不能升级,只能使用升级包来升级,相当烦人,郁闷.不能升级时出现以下提示:        "初始化Common Updater子系统失败.确保McAfee Framework service正在运行.McAfee Framework service返回错误ffffffdf @ 3”    其中"ffffffdf @ 3"部分可能会因个别电脑不同。多

2009-05-19 20:55:00 766

转载 How to select the first/least/max row per group in SQL

Here are some common SQL problems, all of which have related solutions: how do I find the most recent log entry for each program? How do I find the most popular item from each category? How do I fin

2009-04-22 23:08:00 2229

转载 Handling Disconnects with WCF

Ive been working on an application which relies heavily on WCF to communicate. I have a very simple interface (contract) that the server supports to connect and disconnect: it exposes the methods Reg

2009-03-09 04:43:00 615

转载 聚焦WCF行为的扩展

WCF以其灵活的可扩展架构为开发者提供了方便,其中对行为的扩展或许是应用中最为常见的。自 定义对行为的扩展并不复杂,但仍有许多细节需要注意。在服务端,一般是对DispatchRuntime和DispatchOperation进行扩展, 扩展点包括了对参数和消息的检查,以及操作调用程序,它们对应的接口分别为 IParameterInspector,IDispatchMessageInspecto

2009-03-09 03:42:00 679

转载 REST in WCF: Varying response content type based on HTTP Request Headers

Damians used the same WCF extensibility points I used to produce some boilerplate that varies the response content type from JSON to XML, based on the Accept or Content-Type header of the GET request

2009-03-05 01:33:00 1550 1

转载 wcf webhttpbinding

1. The example below shows a client that talks to a service using WebHttpBinding. The service does not generate a meaninful WSDL for endpoints with WebHttpBinding (WSDL is for SOAP-based endpoints onl

2009-03-02 21:04:00 2783

转载 WCF: Throwing Exceptions With WebHttpBinding

One of the very cool new features in Windows Communication Foundation is the ability to create REST or POX services.  Unfortunately, you will quickly find that WebHttpBinding and WebHttpBehavior (both

2009-03-01 22:57:00 1284

转载 WCF 3.5: Hosting Services for WebGet

In my last post, I provided an overview of using the new WebGet attribute to map an HTTP GET operation to a specific method.  However, I didnt cover the the necessities for hosting a service that use

2009-03-01 02:12:00 845

转载 webresponsemodifier.rar

/*++ Copyright (c) Microsoft Corporation. All rights reserved. THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK OF THE USE OR THE RESULTS FROM

2009-01-23 11:23:00 1066

原创 iis6 + win2k3中调试isapi filter和extension的方法

iis6 + win2k3中调试isapi filter和extension的方法1.首先,编写代码,并编译成*.dll,留在debug/目录下(或任意目录)2.设置*.dll的访问权限,一般需加上user权限3.在iis测试站点下指定filter为[1]中路径,或指定待测的extension路径4.停止iis服务,在cmd中执行net stop w3svc5.在vs中更改该项目的启动命令为w3w

2009-01-17 07:58:00 1050

转载 ISAPI Filter编程重写URL

问题描述:要在一个Web站点上实现二级域名Url的重写。例如:http://abc.company.com/ 重写到 http://company.com/usersite.asp?sitename=abc 其中abc二级域名不定,根据用户申请的名字来决定。服务器上有一个DNS服务。可以吧*.compay.com所有二级域名正确解析到company.com。经过重写后。浏览器中的地址是http:/

2009-01-17 07:58:00 858

转载 Check Access Rights to File/Directory on NTFS Volume

More information: Windows NT/2000/XP has API function AccessCheck, which in fact checks access rights to every operating system object, which supports access rights. This function is called implicitly

2008-11-13 18:21:00 1326

转载 SIJO Soft DSN

************************************** Windows API/Global Declarations for :__      ____________...:::SIJO Soft DSN:::...___       **************************************  *********

2008-10-22 02:07:00 1913

原创 PSMLIB个人服务器管理组件,IIS管理组件,FTP管理组件

特别说明:本组件原名 “易网IIS管理组件”(可以在百度里搜索一下),之前发布的最新版为2.x,原为自己服务器使用,所以一直没有更新。因不断有网友要求新版本,所以重构了所有代码发布最新版本,原来的调用方法完全废弃。 程序主要功能:•本免费组件可以为所有支持COM组件调用的脚本语言使用,如asp,php,c#等,并提供完整的API帮助文档,可以轻松使用接口完成WEB在

2008-10-11 18:43:00 640

原创 精简ASP购物车类(Session+XML)

因朋友急需,写的匆忙,欢迎反馈BUG程序特点:商品属性可以任意多,属性名称完全自定义,脱离数据库操作,超时或关闭网页自动释放资源.<%购物车类(Session+Xml版)Author:Zero QQ931332008-9-4Class CartPrivate cartId,pAttr,pAttrv,productNode,iPublic XmlDom,Enco

2008-10-10 03:44:00 1110

原创 PHP通用分页类(支持php,ajax,html) v1.1.20100329修正版

<?php/** * 通用分页类 * Author:Zero QQ:93133 * ver 1.2.20120519 修正版 */class pagination{ private $pstyle=array(); private static $url=array(); public $arg=array(); public $cfg=array( 'text'=>ar

2008-10-10 03:29:00 1904 1

Redis Desktop Manager 2020.7 中文特别注册版下载

RedisDesktopManager 2020.7,Windows安装包,2020.12.25更新最新版 亲测可用

2021-01-17

HttpWatch.Professional.v8.0.8 注册版

HttpWatch.Professional.v8.0.8 注册版 HttpWatch是一款强大的网页数据分析工具。集成在Internet Explorer工具栏。包括网页摘要。Cookies管理。缓存管理。消息头发送/接受。字符查询。POST 数据和目录管理功能。报告输出。

2012-12-05

JQuery 1.4.1 中文开发手册 最新版

JQuery 1.4.1 中文开发手册最新版 JQuery 1.4.1 中文开发手册最新版

2010-03-07

WMI SDK for windows 2003 x86.rar

WMI SDK for windows 2003 x86 WMI SDK for windows 2003 x86

2009-09-25

php5.2中文手册.chm

php5.2中文手册php5.2中文手册php5.2中文手册php5.2中文手册php5.2中文手册php5.2中文手册php5.2中文手册

2009-09-25

MaxtoCode 2007 3.21 Professional 注册版

使用过.NET的程序员都知道,.NET是一个巨大的跨时代进步,它开发效率高、功能强、界面美观、耐用、新的语言C#已经提交为行业规范、CLR共公运行库资源丰富,这所有的特点标志着它成为主流编程语言是必然的。 可是他也有一个缺点,那就是编译好的程序集可以完全被反编译成源代码,这给一些不法份子提供了很好的机会,试想想,您辛苦的劳动成果就这样轻易的给别人利用,是多么不公平的事阿?所以如何保护我们的知识产权成了一个大问题。 MAXTOCODE 已经完全超越了传统的混淆手段来保护源代码的方式,他将完全加密您的代码,使您的代码完全没有办法反编译。保护强度已经不是混淆器可以与之抗衡,是目前保护强度最大,最完美的.NET产品保护方案。 MAXTOCODE 是 Aiasted.SOFT 完全自主开发的一款 .NET 代码保护工具。它是目前世界上高强度保护工具之一。 第一种代码保护方案是混淆,这是一个不错的方案,可惜强度还是无法保证,如果要做一个大的逆向工程有一定困难,但针对某个算法或功能进行解读还是很容易的。反观混淆原理则发现,混淆其实只是一个与障眼法差不多的技术。第二种就是MAXTOCODE的保护技术了,MAXOTCODE 采用了难以理解的机器语言来加密您的.NET程序集,(特别注意:MAXTOCODE的强度建立在加密算法之上,而不上简单的混淆。)在程序集运行时运态解放源代码,所以在原理上已经比混淆强度提高了许多。我们保护您所有的代码,不让不法份子看到您任何一个有效的代码,使不法份子完全无法被反编译。

2009-08-13

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除