Archive

Archive for June, 2010

C# Project: Data Processing Application (1)

June 4th, 2010 No comments

Introduction

I am a Mechanical Engineer. I write C programs to process a lot of experimental data in my daily work. The core module of these programs – how to interpret and process data – is different from project to project and needs to be rewritten for every new project. However, there are two modules which are almost identical for all the projects – reading data before processing and writing data after processing. The codes for these two modules are reusable and I usually copy and paste them to the new program. Having done this for a long time, I now wanted to write a general data processing application with an easy-to-use GUI.

Data Processing Application

  1. Application Architecture
  2. Input Data Files
  3. Here are some assumptions about the input data files.

    • Data files are text files with data sorted in columns.
    • Every data file can contain up to 99 columns of data.
    • Every line of a data file contains same number of data fields.
    • Data files can have blank lines which will be removed during data reading.
    • Data files can have comment lines which will be removed during data reading.
  4. Data Transfer Between Modules
  5. Output Data Files
Categories: C# Tags:

Use F2 to Rename a File in Total Commander

June 1st, 2010 1 comment

The default keyboard shortcut for Renaming a file in Total Commander (TC) is “Shift + F6”. But for those who are used to Windows Explorer, “F2” is the shortcut to rename a file. In order to use “F2” to rename a file in TC we need to do a key remapping. Here is how to do it:

From TC Menu: “Configuration” -> “Options” -> “Misc” -> “Redefine Hotkeys”. Select “F2”, then click the button with a glasses and select command “cm_RenameOnly” for renaming a file.

Categories: Tips and Tricks Tags: