Author Archive

Javascript to represent progress along irregular path

Share

The goal is to simulate a motion by filling this path drawn over a background image using JavaScript only. Will consider a simple way, cut in solid color, with transparent background. In real situation will be, say, a meaningful path with respect to some landscape.

Share
Tags:      

Dynamically generate ENUMs through assembly

Share

In C# ENUMs are storage efficient data structure acting at run-time just like primitive types. The following presents one way to generate an enumeration class within a dynamic assembly using database data.

Share
Tags:      

Binding Breakpoints in Visual Studio Debugging

Share

Few months back I ran into a strange behavior regarding breakpoints. Debugging a c# solution in Visual Studio 2008 I’ve noticed the breakpoints I have “click” removed during one debug session reappear as soon as session ends.

Share
Tags:    

ArgumentException in DataTable Select statement

Share

Under some circumstances, filtering a Datatable using its Select method may result in throwing following exception: “Min (some value) must be less than or equal to Max (-1) in a Range object.”

Share
Tags:      

Handling NULL values in PowerBuilder

Share

When it comes to NULL values, PowerBuilder treats them a little different than other languages. Not only that, when null is added, compared to or concatenated with any variable the entire result will become null, but also when given a null parameter most PowerBuilder functions will simply return NULL and perform no action.

Share
Tags:      

Quick note on Microsoft SQL transaction log file

Share

Every MS SQL Server database consists of at least two physical operating system files and these files are specified when a database is created or altered. One and possibly more (secondary files) are used for the data (as well as indexes and allocation pages) and one for the transaction log.

Share
Tags:      

Parse MIME string to retrieve message information

Share

The purpose is to gain access to the message information in code by extracting it from a raw email message. For this we will parse the content of the email using the IMessage interface.

Share
Tags:      

Populate DDDW based on the value of another DDDW

Share

The contents of a particular drop down datawindow depends on the value of another drop down datawindow. For example we need to filter some employees based on the team they belong to. In the current datawindow, Teams will be a drop down datawindow whose contents depend on the value of another DDDW – Departments.

Share
Tags:     

Generate iCalendar feed from ASP.NET

Share

In order to feed calendar clients (like MS Outlook, Google Calendar) it is required to supply a plain text file with the ‘.ics’ extension.

Share
Tags:    

Maintenance of a demo web application for test purposes

Share

Often it is useful to showcase a web application to potential customers allowing them to live test the application features. For this you need to publish and maintain a demo version with some relevant base data. A service application, triggered to run at a given time, basicly will clean the database by restoring it from […]

Share
Tags: