If you post code to a blog, your own website, or code-developer sites, you often require the capability to embed code-excerpts into your writings. The easiest solution is to make use of an HTML generator that renders your source-code to HTML. This has already been done - many times - but most of these solutions rely on using class or CSS style tags. Although elegant, the HTML generated is often not suitable for publishing without modification. A comprehensive example of this type of solution is here: ......
An interesting adventure - if anyone is interested in how to do this contact me. We used the following devices: SAGEM MSO-series fingerprint reader pcPRox RFID reader ADAM primarily, with some AD integration to hold the fingerprint-minutae data What made this interesting was writing the application entirely in 'Unmanaged' C++ and integrating the SAGEM SDK (MorphoSmart API) and the pcProxlib API SDK. Both these APIs are provided as native C++ DLLs and ultimately drove our decision to go the complete ......
We needed to write an application that would automatically execute a time-out action, the time-out being a prescribed length of time that has expired without any user input occurring during that period. Not as easy as it sounds. One way to do it is to setup a set of system-hooks using the message hook APIs provided by Win32. I personally did not like this approach for the following reasons: Using system-hooks is intrusive and reduces overall system performance. Its more work, because the hooks provide ......
This means: forcing a page postback or redirect from a client browser without explicit user input. Why would you want to do that? The main reasons are: Auto-redirecting to a new URL after a brief time period Refreshing page information periodically Maintaining a valid session state indefinitely Forcing a specific process to run on the server when the client session has expired. The following methods are the constructs we have used in our web development projects: HTML header refresh tag The most ......
Recently I wanted to setup up an RSS feed reader and blog item display window on our website. In order to do something different (and because I'm inherently lazy), I thought it would be cool to use Microsoft's XSD.EXE tool to gen. the classes from an XML schema for RSS 2.0, write a bit of code around this and use it on our site. My primary interest was to consume the RSS feeds coming off various sites and use the blog channels I was interested in. So, the tasks that needed doing were: Validate the ......
[South African Specific] SAIDValidator Webservice SAIDValidator is an ASP.NET webservice to validate South African Person ID numbers. It provides validation of a person ID by calculating the check-digit (digit-13), and extracts the date-of-birth, gender, citizenship, sequence and other information. The following links are available: SAIDValidator Homepage SAIDValidator Test Page : Input an ID number and see if it is valid! SAIDValidator Webservice South African Department of Home Affairs If you would ......