Since entering the blog garden page through Baidu search, I have been paying attention toArticleTo learn about various programming technologies, I have gained a lot of insights and benefited a lot, but I have never had time to write my own blog. My
Generally, our TCP server is placed behind one or more firewalls in the IDC, And the TCP connection between the client and the server passes through the firewall, as shown in:In this case, note that when the TCP connection between firewall and the
My colleagues in the Department said they would go to the manager's house today and check out his son (born on the 15th). I haven't had a good rest these days. I was planning to take a nap. As a result, I slept, let's say we went there at. We got up
Avoid using pseudo columns (that is, *), for example: Select * from [tablename]
Create a clustered index for the connection Field
The "minimal query" principle is recommended, that is, only necessary data is returned.
Perform index
Recently, I want to review a previous project and find a database file,
It is a database backed up on SQL2000. I don't know the suffix,
Therefore, after being renamed to XYZ. MDF on sql2005, the attached database fails;
Rename it to XYZ. Bak, and
1. Throw as few exceptions as possibleThrow new system. Exception (.);
Throwing an exception seriously affects performance.(A) for ASP. NET,Response. Redirect (...)
Will throwThreadabortAnd the method will return two times between the client and the
A project at hand used spring .net's AOP to handle program exceptions, and accidentally fell into the trap. It was recorded here, hoping to help later. Spring. Net's AOP implementation is achieved by creating a dynamic AOP proxy at runtime. A simple
This situation is often encountered during development. In A. dll, the type in B. DLL needs to be reflected. If you do not pay attention to it, a runtime error will occur. For cross-assembly reflection, remember the following two points:
(1) If
This problem is often encountered after you get used to interface-based programming. For example, component B needs to use the component that implements the IA interface, however, without component A, component B can also work normally, like this:
There is no doubt that nhib.pdf is powerful. However, it is complicated to use in many places. For example, we cannot build a complete data layer, and we often need to bypass nhib.pdf to directly use ado.net. For example, any data access, even for
You must always see icons similar to the following:
They indicate "undo" and "undo ". In programs, this function is usually implemented in command mode, and this article is no exception. First, the command is abstracted and the icommand interface:
We often need to call the method of the target object through reflection or get/set the attribute of the target object. The type. invokemember method signature is as follows:
Public object invokemember (string name, bindingflags invokeattr, binder,
The spring. Services Program provides support for remoting. Using spring.net can easily publish and use the remoting service.
1. remoting Publishing (server)(1) first, register the channel in the config file:
(2) configure and release the remoting
Compared with the old XP and win2003, win7 has stricter security control. For example, when we log on to XP or win2003 as administrator, all programs are started as administrators. However, when you log on to win7 as administrator, normal programs
One of our current. NET applications requires about 2 GB of memory. When we put this program on a server with 4 GB memory for running, an outofmemory exception will be thrown.
To find out the cause of the exception, I wrote a test program for
The dcframwork framework consists of four core dll: dcframework. dll, dcframework. master. dll, dcframework. Worker. dll, and dcframework. Client. dll.
We can see that the other three DLL libraries depend on the most basic dcframework. dll. These
Wor files have been created with great care, including adjusting the annotation icons, fonts, and visual ranges of each layer. Initially satisfied. Just run the program to create the GST file. Based on previous experience, we opened geoset manager
When I was doing research, I found some strange phenomena, that is, when decision makers in many cases make decisions, the mistakes are often hard to be understood by normal people, but the decision makers have no hesitation.Looking deeper, these
1. One day James put plaster on his hand,The teacher asked: What's wrong with your hand?James said: disconnected.The teacher said: Why?James said: I am too lazy.The teacher said: Will a lazy hand be disconnected?James said: I am on the road and my
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service