Rabu, 09 Februari 2011

Assembler. Структурная обработка исключений SEH

Windows 95 и Windows NT поддерживают обработку исключений, называемых Структурной Обработкой Исключений, которые обрабатываются операционной системой, но также имеет и прямую поддержку на языке программирования. "Исключение" - случай, который является "неожиданным" или прерывает(останавливает) работу процесса. Исключения могут быть вызваны как аппаратными средствами ЭВМ, так и программным

SharpPcap - A Packet Capture Framework for .NET

IntroductionPacket capturing (or packet sniffing) is the process of collecting all packets of data that pass through a given network interface. Capturing network packets in our applications is a powerful capability which lets us write network monitoring, packet analyzers and security tools. The libpcap library for UNIX based systems and WinPcap for Windows are the most widely used packet capture

How to customize the context menus of a WebBrowser control via the IDocHostUIHandler interface

Important noteUnfortunately, the customization approach, that I have originally used in this article, is not suitable for MFC applications (see the "Important Notice" message thread for more) and you should ignore the sections 4 and 6 of my article. On the contrary, section 5 is still 100% valid and can still be quite useful in the customization of the WebBrowser control context menus. The

Enabling HTTP Strict Transport Security on debian servers

I just enabled HTTP Strict Transport Security (HSTS) markers on a bunch of web servers that offer HTTPS.It's an easy step to take, and it means that users of HSTS-compliant browsers (such as Chromium and the upcoming Firefox 4) or browsers with HSTS-compliant extensions (like Firefox's NoScript or HTTPS-Everywhere) will no longer be vulnerable to attacks like sslstrip once they have made one

SQL SERVER – PAGEIOLATCH_DT, PAGEIOLATCH_EX, PAGEIOLATCH_KP, PAGEIOLATCH_SH, PAGEIOLATCH_UP – Wait Type – Day 9 of 28

t is very easy to say that you replace your hardware as that is not up to the mark. In reality, it is very difficult to implement. It is really hard to convince an infrastructure team to change any hardware because they are not performing at their best. I had a nightmare related to this issue in a deal with an infrastructure team as I suggested that they replace their faulty hardware. This is

AlphaFS v1.5 Released (think "The 'Long Path' IO support the BCL doesn't yet have..." or "Don't 'W' [Wide/Unicode API/etc] P/Invoke your Path API's when AlphaFS has done it already for you..."

Project DescriptionAlphaFS is a .NET library providing more complete Win32 file system functionality to the .NET platform than the standard System.IO classes. Features highlights: creating hardlinks, accessing hidden volumes, enumeration of volumes, transactional file operations and much more. News - AlphaFS 1.5 Stable ReleasedAlphaFS has now reached a stable state. Many improvements and bugfixes

BitNami

After several months in private beta, we’re excited to announce that BitNami Cloud Hosting is now available! BitNami Cloud Hosting simplifies the process of deploying and managing open source and other applications in the cloud. 1-Click Application Deployment: Launch servers with one or more applications or development stacks from the BitNami library in one click. Currently available applications

Deploying Web Applications on a remote IIS server using MSBuild

I have written down some important points that should be taken care while deploying applications. Hope it helps others trying to do that same.Ø  MSBuild arguments should be set correctly. /p:DeployOnBuild=True /p:DeployTarget=MsDeployPublish /p:MSDeployServiceURL=:8172/msdeploy.axd /p:DeployIISAppPath="/" /p:CreatePackageOnPublish=True /p:

Mollom Architecture - Killing Over 373 Million Spams At 100 Requests Per Second

Mollom is one of those cool SaaS companies every developer dreams of creating when they wrack their brains looking for a viable software-as-a-service startup. Mollom profitably runs a useful service—spam filtering—with a small group of geographically distributed developers. Mollom helps protect nearly 40,000 websites from spam, including one of mine, which is where I first learned about Mollom.

COM in plain C

Content A COM object and its VTable A GUID QueryInterface(), AddRef(), and Release() An IClassFactory object Packaging into a DLL Our C++/C include file The Definition (DEF) file Install the DLL, and register the object An example C program An example C++ program Modifying the code What's next? IntroductionThere are numerous examples that demonstrate how to use/create COM/OLE/ActiveX components.