原创 Postgres Sql獲取當前連接的客戶端列表
可以使用SQL語句來查看當前連接數據庫的客戶端情況。 1.獲取當前連接客戶端列表:SELECT * FROM pg_stat_activity; 2.獲取當前連接客戶端的個數:SELECT count(*) FROM (SEL
原创 WPF Cover Flow Tutorial : Part 3
In Part 2, we miss the animation part of the flow.In the main TestWindow, we save all the covers in a List : view
原创 WPF Cover Flow Tutorial : Part 4
We can improve the HCI from Part 3 with some mouse handling.We add a MouseDown handler method to our Viewport3D :
原创 Detection of Half-Open (Dropped) Connections
There is a three-way handshake to open a TCP/IP connection, and a four-way handshake to close it. However, once the co
原创 WPF Cover Flow Tutorial : Part 6 (bis)
I'll start with some Cover refactoring : Class becomes internalI add the ICover interface, mainly for unit testing with
原创 WPF Cover Flow Tutorial : Part 5
After Part 4, we will partly refactor the code to build a custom component.We define a new assembly called FlowCompone
原创 比較C#中幾種常見的複製字節數組方法的效率
在日常編程過程中,我們可能經常需要Copy各種數組,一般來說有以下幾種常見的方法:Array.Copy,IList<T>.Copy,BinaryReader.ReadBytes,Buffer.BlockCopy,以及Sy