Saturday, July 27, 2019

datable to csv and vice versa

datable to csv and vice versa

  1. DataTable to Excel
  2. Print DataTable to Console (and more)
  3. POCO Generator
  4. Converting a List to a DataTable
  5. A generic Collection to DataTable Mapper
  6. Writing a DataTable to a CSV File
  7. GridView to a DataTable
  8. CSV To/From DataTable
  9. Exporting a DataTable to PDF
  10. Dealing with DataTables
  11. Conversion Between DataTable and List in C#
  12. Convert Datatable to Collection using Generic
  13. Various Ways to Convert DataTable to List
  14. How to Manually Create a Typed DataTable
  15. Obtaining Current DataTable Row for a DataGrid
  16. Convert a Generic List to a Datatable
  17. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 1
  18. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 4
  19. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 2
  20. A Practical Guide to .NET DataTables, DataSets and DataGrids - Part 3
  21. A Helper Class to Bind a DataTable to a Class
  22. DataTable caching performance
  23. Converting text files (CSV) to DataTable
  24. Converting a List to a DataTable
  25. Convert DataTable to List of Object
  26. good C# document: Index of /~lok/csharp/refdocs
  27. Bind/Map DataTable to Object's Fields and Properties
  28. C# Convert DataTable to List of Objects Dynamically
  29. XTree Part III - Trees, DataSets, and DataTables
  30. Databinding for Beginners
  31. DataTable Generator Using Attributes
  32. 反流性食管炎是怎么回事

good parser posts

good parser posts, Honey pos some good articles. need to play with it and them build my language.

  1. The Parser Construction Kit ("Puck")
  2. Pck: The Parser Construction Kit
  3. Pck/Edit: A GUI for Building Parsers
  4. Pck/Edit: A GUI for Building Parsers
  5. Pck/LALR(1): An LR parsing algorithm
  6. Pck/Cfg: Context Free Grammars in PCK
  7. Pck: Code Roundup and Quick Start Guide
  8. Pck/Cfg: Context Free Grammars in PCK
  9. Pck/Edit: A GUI for Building Parsers
  10. LL: A Parser Generator Playground
  11. LL: A parser generator playgroundJLogger - When You Care to Write the Very Best
  12. JHelpers - A Good and Faithful Servant
  13. JLogger - When You Care to Write the Very Best
  14. Modular Software Development In C#
  15. Easier Hand Rolled Parsers
  16. Newt: A Powerful C# Parser Generator in a Small Package
  17. ParseContext 2.0: Easier Hand Rolled Parsers
  18. How to Make an LL(1) Parser: Lesson 1
  19. How to Make an LL(1) Parser: Lesson 2
  20. How to Make an LL(1) Parser: Lesson 3

good coding practice

good coding practice

  1. Test-Driven Development In C#

directory selection component in C#

directory selection component in C#

  1. 4 ways to enable the latest C# features
  2. Thread: Save FolderBrowserDialog selection to file (config.txt)? share-icon
  3. It's real simple to use the built-in Settings functionality.

    To add a setting, just right click on your forms project in the solution explorer and choose, "Properties".

    On the left, click on the Settings tab.

    Enter a new setting (I called mine 'MySavedFolder'). Choose the type and visibility (User or application). I chose User. Give the setting a default value (I used 'default value').

    Next, wire up the setting in the forms code. I created a simple test form with an textbox and a save button. In the form editor, double click on the button to create a button handler.

    Next, wire up the setting.

    public partial class Form1 : Form { public Form1() { InitializeComponent(); // Retrieve the settings and load it into the textbox textBox1.Text = Properties.Settings.Default.MySavedFolder; } private void saveButton_Click(object sender, EventArgs e) { // Save the value from the textbox into the settings. Properties.Settings.Default.MySavedFolder = textBox1.Text; Properties.Settings.Default.Save(); } }

  4. How to use OpenFileDialog to select a folder?
  5. this link contains lot of good info. all kinds of component need to take a look and play around it.

  6. .NET Win 7-style folder select dialog
  7. Common dialog classes for Windows Forms applications
  8. RichTextBox Class
  9. FolderBrowserDialog Class
  10. How to: Choose Folders with the Windows Forms FolderBrowserDialog Component
  11. FolderBrowserDialog In C#
  12. C# FolderBrowserDialog Control
  13. Let the user select a folder in C#
  14. The second useful technique is that the program saves the user’s selection between runs. At design time I created a setting named Directory. To create a setting, double-click the Properties entry in Solution Explorer and go to the Settings tab.

    When it starts, the program uses the following code to load the value saved in this setting.

    // Restore the saved directory. private void Form1_Load(object sender, EventArgs e) { txtDirectory.Text = Properties.Settings.Default.Directory; }

    The program uses the following code to save the current selection when the form closes.

    // Save the current directory. private void Form1_FormClosing(object sender, FormClosingEventArgs e) { Properties.Settings.Default.Directory = txtDirectory.Text; Properties.Settings.Default.Save(); }

  15. Browse for a Folder in C# Winforms
  16. Example for FolderBrowserDialog in C#
  17. C# OpenFileDialog and FolderBrowserDialog to select Files & Folder
  18. Winform : How to use Folder and Open File Dialog Controls using C#
  19. Set InitialDirectory for FolderBrowserDialog
  20. How to Build a 'Folder Watcher' Service in C#
.

Thursday, July 25, 2019

abstract class and property

C# keyword: virtual

C# keyword: virtual

  1. Understanding virtual, override and new keyword in C#
  2. A Deep Dive into C# Property
  3. virtual (C# Reference)
  4. C# Virtual Keyword
  5. All about Virtual,Override and New in C#
  6. What is the difference between an abstract function and a virtual function?
  7. Understanding Collections and Collections Interfaces
  8. A Deep Dive into C# Interface
  9. A Deep Dive into C# Abstract Class
  10. A Deep Dive into C# Errors or Exceptions Handling
  11. C# Virtual Method (Runtime Type Is Used)
  12. Exploring virtual and abstract methods in C#
  13. What is the difference between virtual and abstract functions in C#?
  14. Virtual vs Sealed vs New vs Abstract in C#
  15. Virtual vs Override
  16. Virtual vs Override vs New Keyword in C#
  17. C# Virtual, Override, new and Abstract keywords
  18. Polymorphism, Method Hiding and Overriding in C#
  19. Difference between Abstract and Virtual in C#
  20. 反流性食管炎是怎么回事
  21. WHAT IS ABSTRACT AND VIRTUAL METHOD?
  22. UNDERSTANDING VIRTUAL, OVERRIDE AND NEW KEYWORD IN C#
  23. Virtual events in C#: something went wrong
  24. Difference Between Virtual And Abstract Keywords In C#

custom layout engine in C#

graphics API and Direct3D11 standards etc

graphics API and Direct3D11 standards etc

  1. Diligent Engine: A Modern Cross-Platform Low-Level Graphics Library
  2. this is my focus of this post.

  3. DirectX 11 Tutorials
  4. How to install the latest version of DirectX
  5. check if Directx3D11 installed on Windows 7 and earlier
    1. Click Start, type dxdiag in the search box. 2. Tap or click on dxdiag from the results. 3. Check DirectX Version on the first page of the report in the System Information section.

    DirectX versions and updates by Operating System. DirectX3D versions are installed on each Windows version. you can find more details from the above link.

  6. Direct3D 11 Install Helper
  7. The D3D11InstallHelper sample is designed to simplify detection of the Direct3D 11 API, automatically install the system update if applicable to an end-user's computer, and to provide appropriate messages to the end-user on manual procedure if a newer Service Pack is required.

  8. Direct3D 11 Deployment for Game Developers
  9. The Direct3D 11 API extends the existing Direct3D 10.1 API with support for multithreaded rendering and resource creation, Compute Shader, hardware tessellation, BC6H/BC7 texture compression, and HLSL Shader Model 5.0 with Dynamic Shader Linkage. In addition to the Direct3D 11 component, a number of additional graphics components are included in the DirectX 11 runtime: Direct3D 11, DXGI 1.1, 10level9 feature levels, WARP10 software rendering device, Direct2D, DirectWrite, and an updated Direct3D 10.1 with support for 10level9 and WARP10. For information on these and other Windows graphics components, see Graphics APIs in Windows.

    All of these new graphics components are built into the Windows 7 and Windows Server 2008 R2 operating systems. The Direct3D 11 API and related components can also be installed on Windows Vista by using a system update from Windows Update; see Knowledge Base article KB 971644. This update requires Windows Vista and Service Pack 2. End-users with automatic updates enabled will, therefore, likely already have the Direct3D 11 components installed, as will all Windows 7 users.

    The D3D11InstallHelper sample is designed to simplify detection of the Direct3D 11 API, automatically install the system update if applicable to an end-user's computer, and to provide appropriate messages to the end-user on manual procedure if a newer Service Pack is required.

  10. Graphics APIs in Windows
  11. Direct3D 11
    Windows 7 supports a new revision of Direct3D, Direct3D 11, built on the design of Direct3D 10.1 API. New features of the API include multithreaded rendering and resource creation, Compute Shader, support for 10level9 feature levels and the WARP10 software rendering device, and new Direct3D 11 class hardware features such as tessellation using hull & domain shaders, BC6H and BC7 texture compression formats, Shader Model 5.0, and Dynamic Shader Linkage. The new API can use existing Direct3D 10 and 10.1 class video cards, some Direct3D 9 cards through the 10level9 feature levels with limited feature support, and the latest generation Direct3D 11 class video cards.

    In addition to the Direct3D 11 API, Windows 7 includes DXGI 1.1, Direct2D, DirectWrite, and support for WDDM 1.1 drivers.

  12. Platform Update for Windows 7
  13. Platform update for Windows 7 SP1 and Windows Server 2008 R2 SP1
  14. Direct3D 11 Graphics
  15. In addition to Direct3D 11 being supported by Windows 7 and later and Windows Server 2008 R2 and later, Direct3D 11 is available down-level for Windows Vista with Service Pack 2 (SP2) and Windows Server 2008 by downloading KB 971644 and KB 971512.

    For info about new Direct3D 11.1 features that are included with Windows 8, Windows Server 2012, and are partially available on Windows 7 and Windows Server 2008 R2 via the Platform Update for Windows 7, see Direct3D 11.1 Features and the Platform Update for Windows 7.

  16. DiligentGraphics Engine on GitHub
  17. DiligentGraphics/DiligentEngine on GitHub
  18. Getting Started
  19. this has very good summary. reading through gives you clear picture.

  20. how to build for Windows 32
  21. Designing Efficient Thread-Safe Reference Counting System
  22. Add Crash Reporting to Your Applications with the CrashRpt Library
  23. Integrating Crash Reporting into Your Application - A Beginners Tutorial
  24. Modernizing Legacy C++ Code
  25. A CMake tutorial for Visual C++ developers
  26. My God, It’s Full Of Stars: And then there was CMake
  27. Command-Line Tools¶
  28. The CMake Build Manager
  29. Bring Food to the Table
  30. Bring Your Existing Application to Microsoft Store
  31. Modular Software Development In C#

Friday, July 19, 2019

researching on plotting in C++

researching on plotting in C++. I used key word: Chart in codeproject.com

  1. Plot Graphic Library
  2. Creating Custom User Controls : Basic – I
  3. Generate graph using Nplot
  4. A simple WPF LineChart control
  5. Oscilloscope/StripChart Control
  6. Line to Region
  7. C# Cubic Spline Interpolation
  8. State Pattern in C#
  9. QuickPlot Utility
  10. evelopment of Custom Studies for Bloomberg Terminal
  11. Build Stack Array for Formatting or Searching Data
  12. Basics of Signing and Verifying code
  13. Drawing a Line Graph in GDI+
  14. PDF File Writer C# Class Library (Version 1.25.0)
  15. HBarChart
  16. ChartControl
  17. NotifyIconChart
  18. What can SmartLabels™ Technology do for me?
  19. Monte Carlo Trade Simulator via WPFToolkit Charting
  20. Understanding Chart Areas with Dundas Chart for .NET
  21. Create Pie Chart Using Graphics in C# .NET
  22. High-speed Charting Control
  23. Scientific charting control
  24. Cristi Potlog's Chart Control for .NET
  25. An MFC Chart Control with Enhanced User Interface
  26. Stock Quotes and Charts from Google Finance using C#
  27. Highstock + Data-Forge + Yahoo
  28. modds Drag and Drop Programming for C# Sample Stock Chart (Part 2)
  29. modds Drag and Drop Programming for C# Sample Stock Chart Auto Completion (Part 3)

  30. Simple Performance Chart
  31. C# 3D Charting
  32. High performance WPF 3D Chart
  33. A Powerful Chart Control
  34. Realtime Chart and Graph in One
  35. Chad's Charts
  36. oxyPlot: A plotting library for .NET https://oxyplot.github.io/
  37. Write Your Own Bar Chart Winforms User Control
  38. OxyPlot source code
  39. OXYPlot on Windows.Forms
  40. OxyPlot documentation in PDF
  41. A control to display pie charts with highly customizable formatting
  42. 3D Pie Chart
  43. Drawing a Dynamic Chart in C#
  44. Cristi Potlog's Wizard Control for .NET
  45. Control Chart Using .NET
  46. Stock quote and chart from Yahoo! in C#
  47. High Speed, Feature Rich, and Easy-To-Use Graphs and Charts
  48. Charts for Windows Application using C#
  49. Multi-line Tracker for OxyPlot
  50. Wpf application with real-time data in OxyPlot charts

useful tips on creating controls

Saturday, July 13, 2019

XP Mode

XP Mode. follow the first link to finish all steps. 1). install XP mode file. 2).install Virtual PC.

my machine is HP compact Windows 7 workstation. when I check this machine, it did not support virtualization yet. so I downloaded Intel utility to check if my CPU supports virtualization. it turns out this CPU supports virtualization. then I need to enable HP BIOS virtualization feature. turning on virtualization on BIOS takes me some time to figure it out. finally I figure it out. after turned on BIOS virtualization feature, I downloaded XP_mode file from microsoft, then downloaded virtualization. everything goes wells from this spot.

  1. How to Use XP Mode in Windows 7
  2. Windows XP Mode
  3. Microsoft® Hardware-Assisted Virtualization Detection Tool
  4. test my CPU if support virtualization first. install tool by following the two links below:

    HP computer instruction is also in bluestacks link. I used HP assitant and did not find anything to update. but this link shows me how to turn on Virtualization on my HP machine.

  5. HP Workstation PCs - Enabling or Disabling Virtualization Technology in BIOS
  6. Expand the size of C: Drive without losing data -Windows 7: my C drive is full. need more space.
  7. HP - Illustrated example:

    1. While your PC is restarting repeatedly tap Esc key to enter BIOS
    2. Press the F10 key for BIOS Setup.(Follow the instruction on the screen)
    3. Press the right arrow key to System Configuration tab, Select Virtualization Technology and then press the Enter key.

  8. How can I enable virtualization (VT) on my PC?
  9. Intel® Processor Identification Utility - Windows* Version
  10. Enabling Virtualization in your PC BIOS
  11. How to Enable Hardware Virtualization
  12. https://support.hp.com/us-en/document/bph07110
  13. https://support.hp.com/us-en/document/c00007682

good books on Elliot Wave to buy

Tuesday, July 2, 2019

regression method

good understanding of struct, event and how to store my data

scientist stories

  1. a must -see for me: Articles by OriginalGriff (Articles: 12, Tip/Tricks: 84)
  2. ErrorMessageBox: an improved MessageBox for error reports
  3. Converting a List to a DataTable
  4. Where should I store my data?
  5. Save and restore your form size and location
  6. Upgrading Settings files when changing application version
  7. Transferring information between two forms, Part 1: Parent to Child
  8. Using a Chart With Multiple Lines From A Collection
  9. 雁过留声不留痕
  10. Understanding DateTime struct in .NET Framework (using C#)
  11. Complex numbers library in multiple languages
  12. How to connect SQL Database to your C# program, beginner's tutorial
  13. Working with Files (Using C# and .NET Framework)
  14. A multi-selection Drop Down List using a generic Abstract PopUp class
  15. A Simple Code Snippet to Add an Event
  16. Using struct and class - what's that all about?
  17. List - Is it really as efficient as you probably think?
  18. Timestamping assemblies with Build date and time.
  19. Why does x = ++x + x++ give me the wrong answer?
  20. C++ Operator Precedence

Monday, July 1, 2019

use assembly to create DLL

event handler

good articles on event handler

  1. Practical .NET2 and C#2: Event programming with C#
  2. C# event arguments library
  3. C# Event Implementation Fundamentals, Best Practices and Conventions
  4. this article is very good summary.

  5. Tweaked Events
  6. Step by Step: Event handling in C#
  7. this article needs to read and get solid grasp on it.

  8. Mouse Events
  9. good helper class to be used in my app.

  10. Threadsafe Events
  11. the comment section includes good comments and questions. worthy reading them.

  12. C# Multithreading and Events
  13. Facts and Fallacies of Events in C#
  14. Simplifying Events in .NET
  15. it has good comment section. reading it.

  16. Understanding .NET Delegates and Events, By Practice
  17. Multithreading, Delegates, and Custom Events
  18. How to Safely Trigger Events the Easy Way
  19. Tracing Events Raised by Any C# Object
  20. Yet Another Universal Event Handler
  21. DataGridView Event Sequences
  22. Menu State Handling
  23. Step by Step: Event handling in VB.NET
  24. .NET Shell Extensions - Shell Context Menus
  25. Using a TypeDescriptionProvider to support dynamic run-time properties
  26. How to pass data to worker threads
  27. Event Handling / Generating Basics
  28. Event Chain
  29. EventBroker: a notification component for synchronous and asynchronous, loosly coupled event handling
  30. Weak Events in C#
  31. Event handling in a Gridview User Control
  32. C# event fundamentals and exception handling in multicast delegates
  33. Events and Delegates
  34. Evolving Windows Forms Event Handling With Loosely Coupled Methods
  35. Delegates and Events
  36. How a C++ compiler implements exception handling
  37. Debug Tutorial Part 5: Handle Leaks
  38. Events in C#
  39. Events Made Simple
  40. Learning C# (Day 9): Understanding Events in C# (An Insight)
  41. Learning C# (Day 10): Delegates in C# (A Practical Approach)
  42. Learning C# (Day 11): Events in C# (A Practical Approach)
  43. Learning C#: Custom Collection Classes in C#
  44. this Akhil has lot of articles and can take a look at it.

  45. The Simplest C# Events Example Imaginable
  46. Raising Events, Event Handlers, and the Use of Delegates
  47. Events for Confused Beginners
  48. Application Event Handler for WinForms
  49. Power of Visual Inheritance in .NET – “Best”
  50. A behavior study of Windows form events
  51. Immediate display of WinForms using the Shown() event
  52. The .NET weak event pattern in C#
  53. ScrollableControl with Scroll Events
  54. Generic List of Mutable Objects with Events
  55. Event Aggregator with Specialized Listeners
  56. Delegates 101 - Part IV: Event Handling
  57. very good tech blogs from this writer

  58. Complete Class of Events
  59. Event Handler Made Simple
  60. .NET Weak Events for the Busy Programmer
  61. Targeting Design-Time Events of User Controls
  62. Events and Delegates Simplified
  63. Delegates and Events - Internals
  64. Event Like Processing for Properties
  65. How to route events in a Windows Forms application
  66. Implementing an event which supports only a single event handler, in C#
  67. Event Delegates in Simple English (Really, it's that simple)
  68. Common Capturing of GUI Events
  69. Generating Missing Paint Event for TreeView and ListView Controls
  70. A Simple Method for Handling Multiple Clicking on Windows Forms Controls
  71. Custom Event Handlers
  72. Raising Events from Other Threads
  73. Delegates and their role in Events in C# .NET
  74. Mocking Event Handlers
  75. How to handle custom node state images in a TreeView (e.g. tristate checkboxes)
  76. Basic Events Out Of The Box
  77. Simple effective Weak Event Dispatcher in C#
  78. C# Lectures - Lecture 5:Events, Delegates, Delegates Chain by C# example
  79. Simplest event delegate ever
  80. How to Create a Custom Jumplist with Custom Events in Windows Forms
  81. Asynchronous method calling using events and delegate
  82. Delegates, events, and namespaces using C#
  83. Directory Analysis with Custom Events and Threading
  84. SmartLists - Extended Lists with Events
  85. Building a Class that Raises Events in a Specific or UI Thread
  86. 6 important uses of Delegates and Events

C# vs VB comparison

C# vs VB comparison

  1. Cheat Sheet - Casting in VB.NET and C#
  2. Type.GetType Method
  3. Template Based Code Generator
  4. Static Code Analysis
  5. the above two links give very good knowledge I missed. now more confident about it.

  6. C# and VB.NET Comparison Cheat Sheet
  7. Complete Comparison for VB.NET and C#
  8. A Comparison Of .net COBOL, Visual Basic and C#
  9. Comparison of C Sharp and Visual Basic .NET
  10. C# Cheat Sheet
  11. CSharp Cheat Sheet for VB.NET Developers
  12. VB.NET & C# comparison cheat sheets
  13. Posting new CodeProject Content to a Slack Workspace
  14. Multi-Line Lambdas in C# and VB.NET
  15. NScript - A script host for C#/VB.NET/JScript.NET
  16. INI Reader / Writer Class for C#, VB.NET, and VBScript
  17. INI Files
  18. INI Class for .NET
  19. Read/Write XML files, Config files, INI files, or the Registry
  20. Simplified INI Handling
  21. Application Settings the .NET way. INI, Registry, or XML