Advanced Search
Search Results
52 total results found
Development
Angular Dev
Spawning Processes into Interactive Sessions
Starting a Windows process using .NET is normally an easy thing.You call Process.Start() with a little setup, and the process runs. But, that starts a process in the same Windows session as the thread that calls Process.Start(). This, of course, doesn’t work...
When Two Referenced Assemblies Have Overlapping Namespace
You will come across a problem at some point, where you will use a class, that exists in two libraries that your project references. This problem is identified by the CS0433 compiler error, “The type exists in both…”. To workaround this, without updating one...
C# Equality Operator Overloading
Here’s a good example for how to implement operator for equality (==, !=, .Equals()). This is taken from the Version3 type in OGA.SharedKernel.Lib. NOTE: These overrides include method signatures for older and newer NET Framework versions. Equal / Not Equal...
Net Deep Copy/Cloning
Below are some references for different methods of accomplishing deep copies of object types. NOTE: You will need to evaluate which technique is better for your use case, as there is no single solution for all. This is because of several factors: Time-co...
DotNet Startup Remote Debugging Hook
When performing remote debugging of an application or service, it may be necessary to see what is happening during early startup. Adapted from this article: I Wish I Knew About Debugger.Launch Earlier Normally. By the time you have started the remote process...
DotNet Assembly Searching
Here are notes about the Assembly Helper classes that are part of OGA.SharedKernel.Lib and OGA.Common.Lib. Use Cases There are several use cases for searching loaded and referenced assemblies for classes and types.Here are some examples: Identify top-le...
Windows .SSH Config File Syntax
Here are use cases that require editing the SSH config file in your Windows user profile. References Syntax reference for the SSH config file is here: https://www.ssh.com/academy/ssh/config Tutorial for creating them: https://betterprogramming.pub/a-step-by...
Angular: Sorting Arrays
Here’s a simple technique for sorting an array of objects. It accepts a simple function that returns a 1 or -1 result. // The questions property is an array of objects with a display order property. // We want them to be ordered ascending. // NOTE: The sor...
How to Override Styles of Third-Party Components
This is a quick how to, for overriding the styles used inside third party angular components. For example: The Clarity angular library includes a datagrid (clr-datagrid), which has an obligatory margin at its top and bottom, which creates too much whitespace ...
How to Set Properties of a Web Component
Attribute binding can get complex. Here’s a running list of examples of how to do it. To set properties on a Web Component use the Angular [property] binding syntax. To listen to events use the Angular (event) binding syntax. <!-- - status - attribute sty...
How to Override Property Type In Derived Interfaces
Sometimes, an interface is created that the wrong datatype for a property.This can be because the interface is from a third-party or because you are composing a more specific interface type and need to swap out more generic properties of the base type. Taken ...
Jenkins Notes and Links
Here are links to Jenkins references. Jenkins User Manual: Jenkins User Handbook Dealing with the Jenkins System Account: Jenkins: Home Profile
NVM - Node.js Version Manager
When maintaining Angular apps and other Javascript-based libraries, you will come across the need to have a specific version of Node.js running on your development host.Node Version Manager, is a Windows based package, that will swap in desired versions of Nod...
VSCode CORS
When debugging webUI projects in VSCode, it can be necessary to disable any CORS checking, so that VSCode can serve your app, while your backend API calls point elswhere. Aside: For more information on how to debug Angular applications in VSCode, see this: De...
VSCode for GoLang
From this page: https://learn.microsoft.com/en-us/azure/developer/go/configure-visual-studio-code 1. Install Go Install Go from the official page. This installs the compiler, the Standard Library, and many tools to perform various common tasks during Go deve...
Angular: Add Query Parameters without Router
Sometimes it is necessary to add query parameters to a REST API url without going through the Angular router logic, such as when doing paginated lists on large tables. To make this easy to do, just use the HttpParams module. Import it with: import { HttpPar...
Angular Dynamic Routing
Here’s a technique for implementing dynamic routing, where we want a common page or component to serve multiple route paths. If you’re interested in passing query parameters through Angular routes, see this: Angular: Add Query Parameters without Router Imple...
Angular: Get Button Name
When building navigation, or handling button clicks, it’s sometimes necessary to retrieve the name of a button (or other control) from the click event. This is done by drilling into the MouseEvent that is passed into the handler. Basically, we get the target ...
Angular Context Menu
Here’s some notes on context menus in Angular. This article was used as basis: Context Menus Made Easy with Angular CDK The above article reference included a working StackBlitz, downloaded, here: angular-yd6ay3.zip It uses the overlay functionality from An...
Typescript This
Taken from an older version of the Typescript handbook, as the latest does not include this, but is still relevant. This Learning how to use this in JavaScript is something of a rite of passage. Since TypeScript is a superset of JavaScript, TypeScript develo...