New pages
Jump to navigation
Jump to search
24 July 2025
- 02:1402:14, 24 July 2025 CSharp and OTEL (hist | edit) [12,215 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= It seemed a bit easy using Open Telemetry with C#. It is a shame that the lingo is a bit different. But basically the Activities are spans. I have built demonstration for Grpc which can be found https://git.bibble.co.nz/bibble235/grpc_workspace_cs here")
23 July 2025
- 19:5919:59, 23 July 2025 Fixing Apparmor (hist | edit) [1,410 bytes] Iwiseman (talk | contribs) (Created page with "=Approach= == Switching an AppArmor Profile to Complain Mode == === Step 1: Enable Complain Mode === Use ''aa-complain'' to switch the target profile: <syntaxhighlight lang="bash"> sudo aa-complain /etc/apparmor.d/unix-chkpwd </syntaxhighlight> This allows the profile to log denials without enforcing them—useful for debugging without service disruption. === Step 2: Reproduce the Issue === Trigger the behavior that was causing denials, such as authentication or servic...")
22 July 2025
- 12:0312:03, 22 July 2025 Monitoring Observability Setup (hist | edit) [3,799 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= My setup =Resources=")
21 July 2025
- 22:0522:05, 21 July 2025 Prometheus (hist | edit) [4,614 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This is a page on Prometheus. =Components= This diagram from [https://github.com/iam-veeramalla/observability-zero-to-hero iam-veeramalla] is a really good picture of what goes on.<br> [File:Prometheus-architecture.gif]")
17 July 2025
- 00:5000:50, 17 July 2025 Grafana (hist | edit) [2,817 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This is a quick page to note about setup of Grafana =CA Cert= The CA Cert is configured against the datasource. You cut and paste the rootCA.pem. Otherwise you get the error client: failed to call resources: error querying resource: Post \"https://192.168.1.220:9090/api/v1/labels\": tls: failed to verify certificate: x509: certificate signed by unknown authority")
15 July 2025
- 00:5100:51, 15 July 2025 Linux fail2ban Setup (hist | edit) [3,164 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= fail2ban is a tool to monitor http requests and activate ip firewall based on a config =How I use it= On my domain I monitor for 403 http codes if this is found then the IP is blocked for a configurable amount to time. We need to -Install fail2ban (just use apt) -Make a filter -Make/Append jail.local -Restart =Make a filter= To make a filter you pointer you create a file in /etc/fail2ban/filters.d. In this case we look for 403 errors and extract the remot...")
4 July 2025
- 00:2600:26, 4 July 2025 Java Naming Standards (hist | edit) [2,833 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= I guess I run with whatever the linter tells me but wanted to capture '''a way''' here =Naming Standards= Here we go. {| class="wikitable" ! Type !! Convention !! Example |- | Variables || camelCase || <code>String userName = "John";</code> |- | Methods || camelCase || <code>public void calculateTotal() { ... }</code> |- | Parameters || camelCase || <code>public User getUser(String userId) { ... }</code> |- | Classes || PascalCase || <code>public class Us...")
- 00:2400:24, 4 July 2025 Java Functional Interface (hist | edit) [6,072 bytes] Iwiseman (talk | contribs) (Created page with "=Functional Interface= A functional interface is an interface that contains only one abstract method. They can have only one functionality to exhibit. =Java Example= Before Java 8, we had to create anonymous inner class objects or implement these interfaces. <syntaxhighlight lang="java"> // Java program to demonstrate functional interface class Test { public static void main(String args[]) { // create anonymous inner class object new Thread(ne...")
3 July 2025
- 23:5923:59, 3 July 2025 Typescript Naming Standards (hist | edit) [1,553 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= I guess I run with whatever the linter tells me but wanted to capture '''a way''' here =Naming Standards= Here we go {| class="wikitable" ! Type !! Convention !! Example |- | Variables || camelCase || <code>const userName = "John";</code> |- | Functions || camelCase || <code>function calculateTotal() { ... }</code> |- | Parameters || camelCase || <code>function getUser(userId: string) { ... }</code> |- | Classes || PascalCase || <code>class UserAccount {...") originally created as "Typescript naming standards"
- 23:4223:42, 3 July 2025 CSharp Naming Standards (hist | edit) [639 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= I guess I run with whatever the linter tells me but wanted to capture '''a way''' here =Naming Standards= Here we go {| class="wikitable" ! Type !! Convention !! Example |- | Parameters || camelCase || <code>string actorId</code> |- | Local variables || camelCase || <code>var firstName = "John";</code> |- | Private fields || _camelCase || <code>private string _serverAddress;</code> |- | Properties || PascalCase || <code>public string ServerAddress { get; s...") originally created as "Naming Standards"
28 June 2025
- 05:5705:57, 28 June 2025 GRPC (hist | edit) [4,364 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= gRPC is a high-performance, open-source RPC framework that uses Protocol Buffers for serialization and HTTP/2 for transport. It enables efficient communication between services across different languages and platforms. =Define Your Service, Messages= <syntaxhighlight lang="proto"> syntax = "proto3"; package dvdrental.v1; import "google/protobuf/empty.proto"; option go_package = "git.bibble.co.nz/bibble235/grpc_server_go/pb;pb"; // Film represents a mo...")
27 June 2025
- 04:5304:53, 27 June 2025 Open Telemetry (hist | edit) [3,175 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This is a quick page about open telemetry which I came across doing the "effect ts"")
23 June 2025
- 07:2207:22, 23 June 2025 Effect TS (hist | edit) [10,317 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= Dipped my toe into this. It seems to be a combination of RxJs and Microsoft DI. Not sure why it is worthwhile using types rather than a typed language. If all you have is TS resource then it makes sense. Make change my mind. =First Program= <syntaxhighlight lang="ts"> import { Effect, pipe, Schema } from 'effect'; const Pokemon = Schema.Struct({ name: Schema.String, weight: Schema.Number, }); type Pokemon = Schema.Schema.Type<typeof Pokemon>; const...")
22 June 2025
- 03:0903:09, 22 June 2025 Vue Revisited II 2025 (hist | edit) [9,230 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= The changes to Vue are so big I needed to give these changes their own page. First what I will be talking about. *Composition API *Data *Methods *LifeCycle hooks *Directives *Vue Router *Lists, Teleport, Template Refs, next Tick *Child Components *Composables *State with Pinia *Bulma =Composition API= So I had forgotten how awful the options API is and since doing my stuff in composition API<br> Here is the old approach<br> File:Viue options api.png<br...")
19 June 2025
- 02:0902:09, 19 June 2025 Nuxt (hist | edit) [8,280 bytes] Iwiseman (talk | contribs) (Created page with "=Whirlwind Tour= ==nuxt.config== Where your modules go e.g. eslint ==Hello World== All starts in App.Vue <syntaxhighlight lang="vue"> <template> <div> <div>Hello World</div> </div> </template> </syntaxhighlight> And to run it uses port 3000 <syntaxhighlight lang="bash"> npm run dev </syntaxhighlight> ==ESLint== This is how he did it in nuxt.config.ts <syntaxhighlight lang="tsc"> export default defineNuxtConfig({ modules: ['@nuxt/eslint'], devtools: { enabled:...")
- 01:3201:32, 19 June 2025 ECMA 2025 (hist | edit) [1,125 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= Not much to say here - hi =Promise.try= Allow you to return a promise from a function <syntaxhighlight lang="js"> Promise.try(func) </syntaxhighlight> =New Set Functions= Loving the diagram for Mr dyslexic.<br> File:Set functions.png")
- 00:1700:17, 19 June 2025 Vue Revisited 2025 (hist | edit) [3,711 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= Well a interview for a job means I need to revisit this. So hopefully I will learn new tricks. But first thing is I needed to install pygments 2.19 as that comes with a lexer for vue. To install this I made an python environment and installing it a there was no ubuntu package <syntaxhighlight lang="bash"> python3 -m venv /opt/mediawiki-venv source /opt/mediawiki-venv/bin/activate pip install pygments==2.19.0 </syntaxhighlight> Then set mediawiki to point t...")
4 June 2025
- 01:4101:41, 4 June 2025 Windows Setup (hist | edit) [511 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This is my first use of windows since about 2000 so need to make some note =Setting up Proxy to WSL= When we set up the WSL it would be nice to set up a proxy to allow ssh <syntaxhighlight lang="powershell"> # Show Proxy netsh interface portproxy show all # Add Proxys netsh interface portproxy add v4tov4 listenport=22 listenaddress=0.0.0.0 connectport=22 connectaddress=172.28.58.213 # Delete Proxy >netsh interface portproxy delete v4tov4 listenport=22 list...")
27 May 2025
- 02:1602:16, 27 May 2025 Nano EEPROM Page (hist | edit) [6,845 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= I while ago I started my interest in the 6502 where it all began to me. This led me to Ben Eater and building an 8-bit computer. Which led me to building a EEPROM programmer and a Nano was required to build it. I had a bit of work to do and my interest seemed to be waning a little. Partly because of the time to get it to work and and because I just felt demotivated. So I solved my motivation by returning to rust and saw that it is possible to run it on a N...")
17 May 2025
- 20:4520:45, 17 May 2025 Linux Backups (hist | edit) [363 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This page is for reminding me of what needs backing up when I move PC =Desktop= On the desktop I should look at *Dev *Documents *Downloads *Pictures */etc *.config/google-chrome Make sure the following are removed *node_modules *Py Environments You need to check *Any databases, Postgres or MySQL */usr/local anything */var/lib Export the Bookmarks")
6 May 2025
- 05:2105:21, 6 May 2025 GoAccess (hist | edit) [858 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This page is to capture the goaccess setup. =Configuration= Well it is not too completed <syntaxhighlight lang="bash"> apt install goacess </syntaxhighlight> To configure you should create a .goaccessrc as this allows you to use zcat more easily. I gave a sample - oo matron - to copilot and they gave me <syntaxhighlight lang="txt"> time-format %T date-format %d/%b/%Y log-format %h %^ %^ [%d:%t %^] "%r" %s %b "%R" "%u" </syntaxhighlight> Now we can do unp...")
1 May 2025
- 04:2304:23, 1 May 2025 Temperature App (hist | edit) [7,060 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction=")
- 02:1102:11, 1 May 2025 Calculus (hist | edit) [1,237 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This is my page on Calculus hopefully reminding me of my earlier youth =Limits= This is where you are given and equation and you have to specify the limit. The approach to solving these is *Substitute the value asked for *Multiply the top to cancel the bottom *Multiply by the conjugate, this is where we take and expression with a real and imaginary part and flip the signs.So the x -3 has a real value of x and an imaginary value of -3.<br> File:Conjugate1...")
28 April 2025
- 21:0621:06, 28 April 2025 Blender Page (hist | edit) [1,478 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= Hi just enough to remind me =Moving= Use the mouse scroll either down or up =Camera Angles= 1,7,9,3 on the number pad")
- 04:4304:43, 28 April 2025 Keycloak and NextJS (hist | edit) [2,993 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= Only do it once a project so wanted to capture how to this. Thanks to Harsh Bhandari =Keycloak= ==Create a Client== Awful way to document but here goes 600px")