Saturday, December 30, 2017

openGLtips and frameworks

Interface

why do we need interface?

  1. Why use an interface?

Windows Application

when I start to test a demo Win32 application, I ran into several easy problems. take note now for future reference.

step 1: create a new project.
step 2: select Win32 application. do not use Wizards.
step 3: give your project a name, the press OK. then select "emptry Project".
step 4: add your files to project.
step 5: once the project files are created, you need manually select the static MFC class library.
you can set this through project property-> Configuation Properties-> General ->Use of MFC-> user MFC static library.

  1. FAQ: Cannot convert from 'const char [..]' to 'LPCTSTR'
  2. Problem
    This error message means that you are trying to pass a multi-byte string (const char [12]) to a function which expects a unicode string (LPCTSTR). The LPCTSTR type extends to const TCHAR*, where TCHAR is char when you compile for multi-byte and wchar_t for unicode. Since the compiler doesn't accept the char array, we can safely assume that the actual type of TCHAR, in this compilation, is wchar_t.

    Resolution
    You will have to do one of two things:
    1. Change your project configuration to use multibyte strings. Press ALT+F7 to open the properties, and navigate to Configuration Properties > General. Switch Character Set to "Use Multi-Byte Character Set".
    2. Indicate that the string literal, in this case "Hello world!" is of a specific encoding. This can be done through either prefixing it with L, such as L"Hello world!", or surrounding it with the generic _T("Hello world!") macro. The latter will expand to the L prefix if you are compiling for unicode (see #1), and nothing (indicating multi-byte) otherwise.

  3. Cannot convert argument 1 from 'const char [5]' to 'LPCTSTR'
  4. td::wstring VS std::string

Monday, December 25, 2017

stack frame

  1. Lecture 18: Intermediate Code
  2. Lecture 19: Efficient IL Lowering
  3. Stack Frame - Tim Teitelbaum
  4. Lecture 21: Generating Pentium Code
  5. Lecture 22: Implementing Objects
  6. Lecture 23: Introduction to Optimizations
  7. Lecture 24: Control Flow Graphs
  8. Lecture 25: Liveness and Copy Propagation

  9. The Call Stack
  10. The Call Stack
  11. 3. Activation Records

  12. The Call Stack
  13. x86 Assembly, Video 1: Move operations
  14. x86 Assembly, Video 2: x86-64 Assembly
  15. Procedures, Video 3: Stack-based languages
  16. Procedures, Video 4: Linux stack frame
  17. Procedures, Video 5: Registers and variables

  18. Procedures, Video 1: Stacks
  19. Procedures, Video 2: Call stack
  20. Procedures, Video 5: Registers and variables

  21. x86 Assembly Guide
  22. Lecture 12.1: The mechanics of function calls - Richard Buckland UNSW
  23. Lecture 12.2: The mechanics of function calls (part 2) - Richard Buckland UNSW
  24. 21:Everything u need 2 know about pointers -Richard Buckland
  25. 16: Frames (revision) - Richard Buckland (UNSW)
  26. 23: Stack Frames - Richard Buckland UNSW
  27. 21:Everything u need 2 know about pointers -Richard Buckland
  28. 21:Everything u need 2 know about pointers -Richard Buckland
  29. Procedures, Video 2: Call stack
  30. Procedures, Video 1: Stacks
  31. The Call Stack
  32. Call Stack, Scope & Lifetime of Variables
  33. x64 Assembly and C++ Tutorial 28: Stack Frames
  34. Writing a Function in Assembly: Intel x86 Att Assembly Stack Part 1
  35. Writing a Function in Assembly: Intel Att Assembly Stack Part 2
  36. GCC Calling Conventions: Intel Assembly Att Stack
  37. Stack and local variables: Intel Assembly Att
  38. Prologue: Intel x86 Assembly Att Stack
  39. x86 Assembly: Simple stack operation
  40. Top 20 ASM Instructions Every Programmer Should Know
  41. Using the Stack in Assembly Language
  42. x86 Assembly Crash Course
  43. Intro to x86 Assembly Language (Part 1)
  44. Intro to x86 Assembly Language (Part 2)
  45. x86 assembly language
  46. Intro to x86 Assembly Language (Part 3)
  47. 80x86 instruction set
  48. X86 Opcode and Instruction Reference Home
  49. x86 assembly language- wiki
  50. Call stack
  51. Build a Raspberry Pi 3 Cluster
  52. Bramble 4 or 6 Stack Case for Raspberry Pi 3 & Pi Drive~ Made by C4Labs
  53. Tiny Raspberry Pi 'Server Rack' / Cluster Case (4 slots) - V2
  54. HIGOLE F1 5 inch 720 x 1280 Mini PC Windows 10 / Android 5.1 - 4GB+64GB US PLUG
  55. GPD Pocket Mini Laptop UMPC - SILVER 2

Monday, October 2, 2017

C# exception handling

c printf format

evaluation order

Saturday, September 30, 2017

easylanguage

AI library

AI library

  1. Build Simple AI .NET Library - Part 6 - ML Algorithms
  2. C/C++ Build Errors
  3. C - Error Handling
  4. Error Handling in C programs
  5. Error handling in C
  6. 131 Linux Error Codes for C Programming Language using errno
  7. Defining error codes
  8. Error handling in C code
  9. Error numbers
  10. Error numbers
  11. strerror, strerror_s, strerrorlen_s
  12. Errno Codes by Platform
  13. C Programming/Error handling
  14. errno.h - C Error Codes in Linux
  15. 2.2 Error Codes
  16. 2.3 Error Messages
  17. What is the correct way to implement error propagation in C?
  18. How to know what the 'errno' means?
  19. C naming suggestion for Error Code enums
  20. C Tutorial – Error Handling (Exception Handling)
  21. Error handling style in C (pixelstech.net)
  22. Exception Handling in C without C++
  23. CHAPTER 10 : Programming Usage
  24. : returning an error code from a function that has a pointer return type
  25. Error codes vs exceptions: critical code vs typical code
  26. Error Reporting
  27. The compiler errors and warnings
  28. mming Error Types – Runtime, Compile & Logical Errors C Programming Error Types – Runtime, Compile & Logical Errors
  29. Issues with compiling code on VC++6

Saturday, September 9, 2017

research on parser

research on parser. need to know what kind of math functions need to be included inside a language. research on EL to get basic grammar requirements as base line. math functions, string functions, array functions, list functions.

  1. muparserx - Math Parser Library
  2. muparser - Fast Math Parser Library
  3. Building Winning Algorithmic Trading Systems, + Website: A Trader's Journey From Data Mining to Monte Carlo Simulation to Live Trading (Wiley Trading) 1st Edition
  4. Trading Systems: A New Approach to System Development and Portfolio Optimisation
  5. TradeStation EasyLanguage Home Study Course 231 Color Page Book + CD
  6. TradeStation Made Easy!: Using EasyLanguage to Build Profits with the World's Most Popular Trading Software Paperback – April 5, 2011
  7. Building Winning Algorithmic Trading Systems, + Website: A Trader's Journey From Data Mining to Monte Carlo Simulation to Live Trading (Wiley Trading) 1st Edition
  8. Trading Systems: A New Approach to System Development and Portfolio Optimisation
  9. Monte Carlo – Estimate π (Pi) and Option Pricing
  10. Monte Carlo Simulation
  11. A High Performance Monte Carlo Integration Simulation Framework
  12. Cppcheck is a static analysis tool for C/C++ code
  13. ANSI C Lex grammar
  14. ANSI C Yacc grammar
  15. Free Grammars for Programming Languages
  16. ANSI C grammar, Lex specification
  17. ANSI C Yacc grammar
  18. C grammar in GCC source code
  19. C99 Lex/Flex & YACC/Bison Grammars
  20. ANSI C Yacc grammar
  21. ANSI C Yacc grammar
  22. Lex和Yacc应用方法(一).初识Lex
  23. Grammar List
  24. https://raw.githubusercontent.com/antlr/examples-v3/master/C/C/C.g

Friday, September 1, 2017

C fputs() function

C# Access

C NULL pointer

Saturday, June 24, 2017

visual C++ output folder setup

visual C++ output folder setup

Changing the Build Output directory
To change the build output directory
1. On the menu bar, choose Project, Appname Properties. You can also right-click the project node in the Solution Explorer and select Properties. If you have a Visual Basic project, select the Compile tab. If you have a Visual C# project, select the Build tab. If you have a C++ project or a JavaScript project, select the General tab.
2)In the configuration drop-down at the top, choose the configuration whose output file location you want to change (debug, release, or all). Find the output path entry (Build output path in Visual Basic, Output Directory in Visual C++, Output Path in JavaScript and C#). Specify a new build output directory relative to the project directory.

  1. How to: Change the Build Output Directory
  2. How can I change the default build output directory in Visual Studio?
  3. Change destination build directory in Visual Studio
  4. How to: Change the Build Output Directory
  5. Output path for build in visual studio 2010
  6. CONTROLLING WHERE VISUAL STUDIO PUTS FILES
  7. Basic Debugging with Visual Studio 2010
  8. What is size_t in C?
  9. size_t
  10. A FULL FEATURED EDITOR BASED ON THE RICHTEXT BOX

Saturday, June 17, 2017

Visual Studio C++ debugging

Visual Studio C++ debugging

  1. file as stdin in C in command line in visual studio
  2. error C2143: syntax error : missing ';' before 'type'
  3. Visual Studio only supports C89. That means that all of your variables must be declared before anything else at the top of a function.
    EDIT: @KeithThompson prodded me to add a more technically accurate description (and really just correct where mine is not in one regard). All declarations (of variables or of anything else) must precede all statements within a block.

  4. syntax error : missing ';' before 'type' IN C
  5. Invisible editor problem : '0xa0': this character is not allowed in an identifier
  6. code behaviour is strange

Friday, May 5, 2017

how to connect Windows 10 to my domain?

how to connect Windows 10 to my domain?

  1. How to Join a Windows 10 PC to a Domain
  2. Windows 10 Machine Cannot Connect to Domain; Others Can
  3. i can't see my domain computers
  4. Networked PC's are no longer viewable in File Explorer Network after the Win 10 Update 1511.
  5. find-domain-name-command-line/
  6. Topic: can't see Domain Controller - need help ASAP! (Read 11793 times)
  7. Windows 10 - Cannot Join Domain
  8. adding two entries in registry is not necessary. I removed them and flush DNS again.

  9. Windows 10 can't rejoin domain to Windows Server 2003
  10. [SOLVED] Can't join a client to Active Directory domain!
  11. I can Ping the server and the DC but cannot Join a computer to the domain
  12. Unable to contact DC to join a domain, yet I can ping by name & IP - ideas?
  13. I checked other machines in the network and find their ip address besides DCHP server address, DNS server IP address.
    GateWAy IP: 192.168.1.1
    DHCP server IP: 192.168.1.1
    DNS server IP: 192.168.1.102

  14. Cannot join domain - ip address set correctly to DNS server - please help!
  15. Cannot join client to domain (non virtual, DNS issue)
  16. So I manually set up the network property on Windows 10.
    For TCP/IP V4, I only set up DNS server and Alternate DNS server IP.
    For TCP/IP V6 version I leave it as default.
    When I set up DNS server IP, rightaway my Windows 10 machine finds my intranet. So everything look good.

  17. How To Change IP Address in Windows 10: A Visual Guide
  18. You may receive an “Access denied” error message when you try to join a client computer to a Microsoft Windows Small Business Server 2003 domain by using the ConnectComputer Wizard
  19. get quotes from the following article:
    "I had the exact same issue and all I did to fix it was to use the full login when it prompts me for the domain rights i.e. domainname\username. It may be an issue with the domain not resolving properly so also check that the correct domain is entered and that the computer actually has access to your domain controller. Try domainname instead of domainname.company.com."

  20. Can't join Win 7 to domain
  21. first page: user name: PEAKER domain name: mycompany.com

    here is the second page: computer name: peak
    my computer domain name is: intra.mycompany.com

    because I made some mistakes and I need to remove this client machine from this domain. then start joining process again.But the following article does not work.

    But Windows 10 itself give you prompt: use Peak\Local Computer Account to log in local computer. it works.

  22. Remove a Computer from a Domain
  23. I re-do all steps and join the Peak into intra domain. When I log in I got the error message saying can not load user profile etc. Then I find this post.

  24. You receive a "The User Profile Service failed the logon” error message
  25. How to fix " user profile can not be loaded" on Windows 10
  26. How o Fix corrupt user profile on Windows 10
  27. Fix: The User Profile Service failed the logon on Windows 10
  28. Windows 10: Fix “User profile cannot be loaded” Error
  29. How to Fix "User Profile Service service failed the sign-in. User Profile cannot be loaded." Error in Windows 8 and 8.1
  30. under my users folder, user administrator folder is empty. So I copied files under Peaker to administrator folder. not sure it is right, just for document purpose here. this administrator user I believe it is created when it is joined to intranet domain.

  31. 4.6.1. Structure of OS (Folders and Files)
  32. Windows 10 Tip: Manage Files and Folders with File Explorer
  33. How to view NTUSER.DAT file like in registry without using it?
  34. Moving/Copying User Profiles In Windows
  35. how-can-i-move-ntuser-dat-and-the-similar-files-and-yes-i-know-what-they-are
  36. 街拍:北京清凉潮女袒肩露背很性感!(组图) 图、文/@原生泰

VSPackage tutorials

VSPackage tutorials

    please note the future of this VSPackge.

  1. The Future of Visual Studio Extensions is Bright (and easier :)
  2. this is a good summary to VSPackage series.

  3. How to Create, Debug and Deploy Visual Studio Extension Packages
  4. this is very good introduction.

  5. Adventures in Visual Studio Extension Development: Part 1 - The Basics
  6. Adventures in Visual Studio Extension Development: Part 2 - Events
  7. this is a good advanced, detailed introduction

  8. VS 2010 Package Development – Chapter 1: Visual Studio Packages
  9. VS 2010 Package Development – Chapter 2: Commands, Menus and Toolbars
  10. Visual Studio 2010 Package Development Fundamentals
  11. others

  12. Visual Studio Extensions - from Add-in to VSPackage
  13. VSPackage makes Visual Studio Extensions easy
  14. How to create Visual Studio add-ins with VSPackages
  15. SPackage Tutorial 1: How to Create a VSPackage
  16. VSPackage Tutorial 2: How to Create a Tool Window
  17. VSPackage Tutorial 3: How to Extend the Tool Window
  18. VSPackage Tutorial 4: How to Integrate into the Properties Window, Task List, Output Window, and Options Dialog Box
  19. Tutorial: Simple VSPackage Deployment
  20. Tutorial 2– Creating Your First VSPackage
  21. the following are for Visual Studio 2012.

  22. Walkthrough: Creating a VSPackage (Part 1 of 4)
  23. Walkthrough: Creating a Tool Window (Part 2 of 4)
  24. Walkthrough: Extending the Tool Window (Part 3 of 4)
  25. Walkthrough: Integrating into the Properties Window, Task List, Output Window, and Options Dialog Box (Part 4 of 4)
  26. only one book from Amazon.com:

  27. Professional Visual Studio Extensibility
  28. Professional Visual Studio 2015 1st Edition

.NET code analysis tools

Thursday, April 13, 2017

Graphics card

Graphics card

  1. ardware Reference Guide - dc5800 Small Form Factor Model HP Compaq Business P
  2. AK818AW - HP Compaq dc5800 Small Form Factor PC
  3. HP Compaq dc5800 Small Form Factor Business PC
  4. HP Business dc5800 (Core 2 Duo E8400 3GHz, 2GB RAM, 160GB HD, Vista Business) S
  5. How can I find out which graphics card I have in my PC?
  6. How to Find Out What Graphics Card You Have
  7. What Graphics Card Do I Have?
  8. Checking the Graphics Card Specifications on Your Computer
  9. Finding out which graphics card and driver a Windows PC has
  10. Identifying the Graphics Card Model and Device ID in a PC
  11. Solved HOw to Test graphic card whether its working fine or not
  12. How to check graphics card memory in Windows 7, Vistas & 8
  13. Windows 10 - How to Check Which Graphics Card You Have
  14. How to find what graphics card you have
  15. Upgrade Your Graphics Card for Free
  16. the following link is a good tutorial and need a look:

  17. How to Disable the Onboard Graphics and Install a New Graphics Card in Your HP Pavilion 6630
  18. How to Disable Onboard Video & Install a Video Card
  19. how to disable on-board graphics card and install a new one
  20. How to switch from intel hd graphics to dedicated AMD or Nvidia graphics card
  21. Graphics Card Installation - Disabling the On Board Video
  22. Installing a Video Card - How To: Basics
  23. Disable Integrated Onboard Gaphics Card
  24. How to switch from intel hd graphics to dedicated AMD or Nvidia graphics card
  25. How to Switch between AMD & Intel Graphics + Graphics Comparison HD