codes (1,774)


Unload a COM control when working in VB6 IDE

Part of my everyday work is maintaining and extending legacy VB6 applications. A common engine is written in C/C++ and VB6 uses these functions in order to improve performance. When it comes to asyn…


.net - Performance Considerations for throwing Exceptions

I have come across the following type of code many a times, and I wonder if this is a good practice(from Performance perspective) or not: try{...// some code}catch(Exception ex){...…


html - Fonts on the Web

This question already has an answer here: How to embed fonts in HTML? 6 answers The collection of fonts available to a web developer is depressingly limited. I remember reading long ago about TrueDoc,…


Flash designer/coder collaboration best practices

I've done several flash projects working as the ActionScripter with a designer doing all the pretty things and animation. When starting out I found quite a lot of information about ActionScript codin…



Finding City and Zip Code for a Location

Given a latitude and longitude, what is the easiest way to find the name of the city and the US zip code of that location.(This is similar to https://stackoverflow.com/questions/23572/latitude-longi…


Does Amazon S3 download fail sometimes?

We just added an autoupdater in our software and got some bug report saying that the autoupdate wouldn't complete properly because the downloaded file's sha1 checksum wasn't matching. We're hosted on…


Capturing Cmd-C(or Ctrl-C) keyboard event from modular Flex application in browser or AIR

It seems that it is impossible to capture the keyboard event normally used for copy when running a Flex application in the browser or as an AIR app, presumably because the browser or OS is intercepti…


How do I extract the inner exception from a soap exception in ASP.NET?

I have a simple web service operation like this one:[WebMethod] public string HelloWorld(){throw new Exception("HelloWorldException"); return "Hello World";}And t…


How to Catch an exception in a using block with.NET 2.0?

I'm trying to leverage the using block more and more these days when I have an object that implements IDisposable but one thing I have not figured out is how to catch an exception as I would in a nor…


css - On the web, what fonts should I use to create an equivalent experience cross-platform?

Because Linux(and its variants) have a completely different set of fonts than Windows and Mac OS X, is there anyone with any experience of creating cross-platform font families-ideally finding equ…




code error how example for list status http api with