Advanced Search
Search Results
178 total results found
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...
HTML CSS Prevent Text Selection
Here’s a simple css style you can add to your styles.scss of any project, to prevent user selection of text. .prevent-select { -webkit-user-select: none; /* Safari */ -ms-user-select: none; /* IE 10 and IE 11 */ user-select: none; /* Standard syntax ...
Thin Vertical Scrollbar
Here's a block of CSS that will generate a thin vertical scrollbar: .scroll-thin { overflow-y: auto; /* Firefox */ scrollbar-width: thin; scrollbar-color: rgba(0, 0, 0, 0.3) transparent; } /* WebKit Browsers */ .scroll-thin::-webkit-scrollb...
Swapping Side-Nav Groups
As your application grows in complexity, it will be come necessary to add layers to your side navigation menus. One way to do this, is to swap in the different layers, based on context. For example: Below is a side-nav menu with a top-level entry list: If...
OpnSense Notes
Here’s a collection of notes and details for the house router setup. Build Software: OpnSense 24.7.4_1 Hardware: Gigabyte H97N-Wifi motherboard Processor: Intel i5-4460 Setup Base setup was done following this article: https://homenetworkguy.com/how-to/s...
Angular: Access CSS Variables
CSS Variables can be defined in css (or SCSS) like this: NOTE: These are defines in the root element, in the styles.scss file of an app. :root { --sidenav-width: 300px; --sidenav-collapsed-width: 50px; --sidenav-background-color: var(--app-bac...
Layout Service
The layout service provides the means to display and swap in outer-frames of an app. This service is given two things: Layout Anchor - that tells where to inject outer frame layouts into the DOM Layout Choices - an array list of available outer frames, or...
Runtime Security Service
Add the Library Add the library to your app. App.Config.ts (formerly App.Module.ts) Import the service and injection token: import { RUNTIMESECURITYSERVICE_INJTOKEN } from 'lib-oga-webui-sharedkernel'; import { RuntimeSecurityService } from 'lib-oga...
REST Base Service
We have a base REST API service that we can leverage in the entire app stack. It encapsulates the ceremony of dealing with backend calls, and provides us with a clean set of generic, async methods. It's located in: lib-oga-webui-sharedkernel. To use in a co...
Generic Web Reply
This is a class that is returned by the REST Base Service: Runtime Security Service It is a generic struct, returned by a web call, that contains the status of the call, any error that occurred, and the data if received. It has the following properties: d...
Web Push Notifications
Here’s some initial references for setting up Push Notifications in web pages. Service Worker API - Web APIs | MDN Push API - Web APIs | MDN Push notifications overview | Articles | web.dev Push notifications are now supported cross-browser | Blog |...
Supermicro Fan Problems
If you are running Noctua cooling fans in your PC and the PC is cycling fans up and down, then it’s probably because the motherboard thinks a fan has failed and is ramping them all up to compensate. This is happening because Noctua fans run a lower RPM than o...
Supermicro Fan Scripting
Some references: https://www.truenas.com/community/threads/script-hybrid-cpu-hd-fan-zone-controller.46159/ https://www.truenas.com/community/threads/script-to-control-fan-speed-in-response-to-hard-drive-temperatures.41294/ https://forums.servethehome.com/in...
Good Article on Net Core With or Without IIS
Publishing and Running ASP.NET Core Applications with IIS - Rick Strahl's Web Log (west-wind.com)
Raspberry PI Notes
Here’s some references and notes for PI service and IO stuff. NET Core and GPIO on the Raspberry PI - LEDs and GPIO PinNumberingScheme Enum (System.Device.Gpio) Use GPIO for binary input - .NET Blink an LED - .NET Blink an LED - .NET