New pages

Jump to navigation Jump to search
New pages
Hide registered users | Hide bots | Hide redirects

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

23 June 2025

  • 07:2207:22, 23 June 2025 Effect TS (hist | edit) [10,249 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

22 April 2025

  • 04:3704:37, 22 April 2025 Difference of Cubes (hist | edit) [546 bytes] Iwiseman (talk | contribs) (Created page with "Never done this before. I think people just remember this but here goes A³ - B³ = (A-B)(A² +AB + B²) Found an explanation which works for me. We have two cubes where their volumes are AxAxA and BxBxB.<br> 150px<br> You can fit the blue on inside the orange one<br> 150px<br> And now you can measure the 3 parts of the remaining area<br> 500px So we start with A³ - B³ = (A-B)A² + (A-B)AB + (A-B)B...")
  • 04:3504:35, 22 April 2025 Factored Form Equations (hist | edit) [1,172 bytes] Iwiseman (talk | contribs) (Created page with "For Quadratic Equations you can calculate the factored form. First I will list the terms for the parts *Quadratic Term (ax²) *Linear Term (bx) *Constant Term(c) Give the equation y = x² - 3x -10 This can be written like this y = (x -5)(x+2) The way to approach it is to identify the factors (numbers) when multiplied together add up to the constant (-10) part of the equation and when added together equal the linear (-3x) part of the equation<br> A more complex quadra...")
  • 04:3204:32, 22 April 2025 Logs (hist | edit) [441 bytes] Iwiseman (talk | contribs) (Created page with "=Logs= Going in Gaussian Naive Bayes I was redirected to logs. This showed how log number lines show the size of the differences. If for instance we take 1 and 8, 8 is 8 times the distance from 1 but if we do this with 1/8th and 1 which is also 8 times the distance the number line does not show this. But a log number line does<br> 500px<br> '''Fold Change''' is defined as Ratio that describes a change in a measured value<br>")

19 April 2025

15 April 2025

  • 22:0922:09, 15 April 2025 Wordpress (hist | edit) [3,909 bytes] Iwiseman (talk | contribs) (Created page with "=Information= This page is to capture things about wordpress to help my gorgeous wifey =Nginx= This is to capture the setup for nginx and wordpress ==Example 1 wordpress.example.com== Here we have an example where we use the domain name no subfolder <syntaxhighlight lang="nginx"> server { listen 9080; server_name wordpress.example.com; root /var/www/wordpress; index index.php; server_tokens off; access_log /var/log/nginx/wordpress_access.log; error_...")

10 April 2025

  • 03:3203:32, 10 April 2025 Setting up a Gitea server (hist | edit) [6,118 bytes] Iwiseman (talk | contribs) (Created page with "=Set up a MYSQL Database= Make sure you are listening on 0.0.0.0 and not localhost. <syntaxhighlight "bash"> CREATE DATABASE gitea_db; CREATE USER 'gitea_admin'@'you network IP' IDENTIFIED BY 'not saying'; GRANT ALL PRIVILEGES ON gitea_db.* TO 'gitea_admin'@'you network IP' WITH GRANT OPTION; </syntaxhighlight> =Gitea Setup= <syntaxhighlight "bash"> # Get Software wget -O gitea https://dl.gitea.com/gitea/1.23.7/gitea-1.23.7-linux-amd64 # Add Git User sudo adduser --sy...")

2 April 2025

  • 03:5503:55, 2 April 2025 Web Site Building (hist | edit) [3,589 bytes] Iwiseman (talk | contribs) (Created page with "=Introduction= This is a page for capturing thing that are website related =Dark Mode= When looking at implementing this be aware there is system, light and dark usually. Only if you go incognito do does the get switched off. I think it is held in LocalStorage somewhere =Sites= ==Components== Aceternity is a good place for NextJS components. You get the code and can change the components yourself. https://ui.aceternity.com/ here ==Generating Gradients== Go here to ge...")