随笔分类 - [12] 它山之石
摘要:
Uploading files is a common requirement in web applications. In ASP.NET Core 1.0 uploading files and saving them on the server is quite easy. To that end this article shows how to do just that.Begin by creating a new ASP.NET Core project. Then add HomeController to the controllers folder. Then add UploadFiles view to Views > Home folder of the application.
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Aspnet.png)
摘要:
So, you installed .NET Core RC2 , you followed the getting started tutorial and you got your “Hello World!” printed on your command prompt just by using the CLI. Then you went the next step and you tried to use Visual Studio Code and the C# extension to edit the application outside of Visual Studio. And finally you want to try and debug and set a breakpoint inside the application, but you encountered some pr
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_VS.png)
摘要:
Exciting times lie ahead for .NET developers. During Build, Microsoft’s biggest developer event of the year, clear roadmaps were given on the future of .NET and C#. Microsoft is re-positioning .NET to be a platform that can be written anywhere and run anywhere, which is a departure from it’s long history of proprietary technologies.
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Dotnet.png)
摘要:
Whether you have already drawn insights from our (free) 2016 .NET Developer Community Report or not, you will likely find this new slice of the results delicious. This infographic presents a few interesting cross-sections of data from our 2016 .NET Developer Survey, some of which are not included in the report.
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Dotnet.png)
摘要:
上周四在看Knockout.js的官方文档,阅读过程中顺便将其整理成了一份完整的文档,如果你对此有兴趣,可以从这里下载。
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/o_knockout.png)
摘要:
Criminals have long employed the tactic of masking their true identity, from disguises to aliases to caller-id blocking. It should come as no surprise then, that criminals who conduct their nefarious activities on networks and computers should employ such techniques. IP spoofing is one of the most common forms of on-line camouflage. In IP spoofing, an attacker gains unauthorized access to a computer o
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Security.png)
摘要:
Oracle uses a Data Dictionary to store details of all the Tables, Columns etc.. (check out the associated Data Model). You will normally be interested only in your own Tables, which are provided by the 'USER' views, which are for the User who is currently logged in.
The System Administrator or DBA will usually be interested in the 'ALL' Views, which show data for all Users.
阅读全文
摘要:
[J.D. Meier's Blog]“Life is like skiing. Just like skiing, the goal is not to get to the bottom of the hill. It’s to have a bunch of good runs before the sun sets.” – Seth Godin
It's been a good run. After more than 10 years in patterns & practices, I'm on to my next adventure here at Microsoft.
For this post, I wanted to take a stroll down memory lane. During my time at patterns & practices,
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_EnterLib.png)
摘要:
“梦想这东西和经典一样,永远不会因为时间而褪色,反而更显珍贵。”这是10月28日上线的网络短片《老男孩》在片尾打出的一行字幕,连日来,这部以草根、怀旧、青春、人生、爱情、友情等为基调的“电影”让众多网友直言“飙泪”、“泪流满面”,截至昨天下午,该片仅在某视频网的官方播放次数就已近1600万次。如果这是一部正式上线的电影,有一半的人买票(每张计半价25元),票房也有两个亿了……《老男孩》为什么红,它凭啥点中了观众的泪穴?
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Leisure.png)
摘要:
Change Data Capture records INSERTs, UPDATEs, and DELETEs applied to SQL Server tables, and makes a record available of what changed, where, and when, in simple relational 'change tables' rather than in an esoteric chopped salad of XML. These change tables contain columns that reflect the column structure of the source table you have chosen to track, along with the metadata needed to understand the c
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_SqlServer.png)
摘要:
Rob beat me to it. Blogging about T4 (the Text Template Transformation Toolkit) had been on my list literally for a year. He and I were singing its praises last night. Hopefully I can add something small to the conversation.
What's the story? Well, T4 is a code generator built right into Visual Studio. To be clear, you HAVE THIS NOW on your system…go play. Now's the time to introduce code generation to y
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_VS.png)
摘要:
Windows Communication Foundation (WCF) 中的可靠会话使用传输窗口保存客户端和服务上的消息。可配置属性 MaxTransferWindowSize 指示传输窗口可以保存多少条消息。在发送方,这指示在等待确认消息时传输窗口可以保存多少条消息,在接收方,则指示为服务缓冲多少条消息。选择合适的大小可影响使用网络的效率以及运行服务的最佳容量。
当编写一个允许从不同的客户端启用可靠会话通信的服务时,可能会有许多客户端同时建立与该服务的可靠会话。在这些情况下,服务的响应取决于 MaxPendingChannels 属性。当发送方创建到接收方的可靠会话通道时,发送方和接收方之间的握手将建立可靠会话。建立可靠会话之后,该通道会放入到挂起的通道队列中以供服务接受。此 MaxPendingChannels 属性指示有多少个通道可以处于此状态。
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_WCF.jpg)
摘要:
我每日坐5路地铁,从伽尼一站出来,都会看到一个没有头的人坐在路边,不时发出些古怪声响,引得途人侧目,他的面前,摆了只扁盒子,零散会有人丢几个硬币进去。
于这城里,这类表演是常见,无非是把肩下垫得很高,头缩下去,便看来效果了。尽管人皆心知肚明,但不免当下兴致,还有支付;或是孩子,不明就里,好奇大作,每每观析过多,父母不过意,扔几枚意思。
一日里,我一样经过这没有头的人,却有几个警察也过来,和他说了些什么。就在身旁,我不觉听了一下,大约是自这一日,上面下了新的时令,便是不得在街上行演了。
无头的人便释解起来,说是平日只是老实地坐在那里,并不妨碍行人;受来多少,任人自愿,从没纠缠;且是每日里收工,也把原地打扫一二,不留丝毫垃圾再去……。声音闷声闷气,从领子的洞里传出。
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Leisure.png)
摘要:
In my current project the MVP pattern is used in the supervising controller mode. The MVP pattern is an adaption of the old MVC pattern that incorporates that the capabilities of WinForms views have become smart enough to lift some of the burdens previously implemented in the controller. This applies to e.g. handling click events and data-binding; a presenter only injects the model into the view which
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_EnterLib.png)
摘要:
As discussed last time, delegates can produce memory leaks in our applications if not used carefully. Most often, this happens with events when we add a handler to an event, forget to remove it and the object on which the event is declared lives longer than the object that handles it. The following diagram illustrates the problem.
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Dotnet.png)
摘要:
[From J.D. Meier's Blog]A final PDF is now available for our patterns & practices Application Architecture Guide, second edition. This is our platform playbook for the Microsoft application platform.
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_EnterLib.png)
摘要:
[For Arnon Rotem-Gal-Oz’s Article:http://dobbscodetalk.com/index.php?option=com_myblog&show=CRUD-is-bad-for-REST.html&Itemid=29]In one of my previous posts (Rest: good, bad and ugly), I made a passing comment, about how I think using CRUD in RESTful service is a bad practice. I received a few comments / questions asking why do I say that – so what’s wrong with CRUD and REST?
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Architecture.png)
摘要:
Why don't you partition your table if you have millions of rows and get complaints about the degradation of performance?
This is the question I asked my friend and I was amazed to find out he, along with many people, wasn't aware of this feature of SQL Server. This feature was first made available in SQL Server 2005, and today I will discuss what partitioning is.
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_SqlServer.png)
摘要:
Are you creating a new Web site and developing a user registration system that requires new visitors to sign-up and create a user ID and password? Stop now and read this. There are now more effective approaches for dealing with Web accounts which are more powerful and are better for you and your users...
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Security.png)
摘要:
In the last year or so, after quite a lull, the software architecture business has gotten rather exciting again. We're finally seeing major new topics emerging into the early mainstream that are potential game-changers, while at the same time a few innovations that have been hovering in the margins of the industry are starting to break out in a big way.
The big changes: The hegemony of traditio
阅读全文
![](http://images.cnblogs.com/cnblogs_com/artech/158198/r_Architecture.png)