Spiking Neuralnet (SNN) vs ANN: Event-based Instead of Feed-based

SNN is more active instead of passive compared to ANN. SNN can work in both modes: Feed & self-thinking (from a point in neuralnet); whi...

20 August, 2025

Spiking Neuralnet (SNN) vs ANN: Event-based Instead of Feed-based

SNN is more active instead of passive compared to ANN. SNN can work in both modes: Feed & self-thinking (from a point in neuralnet); while ANN is feed-based only. Even more advanced, SNN should be more bio-simulated instead of bio-inspired (maths). Even more bio, multiple types of neurons instead of the common multi-polar neuron, eg. convo, LSTM neurons have multi-polar dendrites but different at core (nucleus).

User: Why is it called 'spiking' in SNN (spiking neural network)?

ChatGPT:
It’s called “spiking” in Spiking Neural Networks (SNNs) because the neurons in these models communicate using discrete events called spikes (or action potentials), rather than continuous values as in traditional artificial neural networks (ANNs).

User: So it's event-based to trigger groups of neurons instead of feeding from input to output?

ChatGPT:
Exactly — you got it 👍

In a standard ANN, data flows layer by layer in a feedforward, clock-like manner:

  • Input → hidden layers → output.
    Every neuron updates every step, regardless of whether it’s "important" at that moment.

In a Spiking Neural Network (SNN), it’s event-driven instead:

  • Neurons sit idle most of the time.
    They only “fire” (emit a spike) when their membrane potential reaches a threshold due to accumulated input.
    That spike is an event that gets transmitted to connected neurons.
    Those neurons may (or may not) spike in response, depending on their own internal state.

16 August, 2025

Terms in Graph Data and Tree Data

Graph is the generalized version of tree, and tree is the special case in graph. Terms in graph and tree are different too, to avoid confusion.

Graph:
  • No root: Starting of navigation can be from any node
  • Current node: Is the present point of navigation
  • Next nodes: Are the next points of navigation
  • Terminus nodes: Are the points with no nexts
Tree:
  • Root: Starting point of navigation
  • Parent: Node with children
  • Child nodes: Branches from parent node
  • Leaf nodes: Nodes with parent but no children.
Terms in graph and tree are below, with the new invention of 'samepre' (same predecessor) term:


14 August, 2025

AI, the Maths Way or the Biology Way

AI = Genetics + ML = (Instincts + Evolution) + ML
  • Instincts are the known processes and known data
  • Evolution is the change in the mechanism of the instincts
  • Machine learning is the learning in life of AI
People are doing AI the maths-based way, but the bio-based way seems better, just as we are doing ANN now but will do SNN later, SNN is bio-simulated instead of bio-inspired (maths).

Autonomic Nervous System (ANS) and Insintric Cardiac Nervous System (ICNS)

There are some areas in the nervous system of human that are mostly not controllable my mind, but still affected by emotions:
  • Autonomic Nervous System (ANS), for the heart and other autonomic mechanism in body
  • Insintric Cardiac Nervous System (ICNS), for the heart
ANS is inside the brain in multiple regions. ICNS is inside the heart with around 50,000 neurons. ICNS is interesting as the brain of the heart, but ICNS is very small, even ant brain has 250,000 neurons.

09 August, 2025

How to Stop Gemini Code Assist from Editing Your Files Directly

By default, Gemini Code Assist in VS Code will change all of your files directly. It shows the 'Accept' / 'Reject' edits again and again, at multiple locations in multiple files and that is very distractive.

This option below in the screenshot 'Chat: Change View -> Default diff view' will stop Gemini from changing code files directly so you can focus on the current code trunk:


How to Create VS Code Extension

This guide is for Windows env, in Pwsh, because VS Code should run there instead of WSL, may fail if inside WSL.

Create repository for project
  • On GitLab, GitHub or somewhere else
Clone the repo to local
  • git clone...
Go to project folder to install libs
  • npm init
    npm install -g yo generator-code
Generate the project PROJNAME
  • yo code
Rename (because the repo name is already the project name)
Note: Load the 'src' dir instead of its parent dir to VS Code or Run and Debug (F5) won't work.
  • mv PROJNAME src
Yeoman (yo) may make mismatching versions for the actual VS Code installed, for my case was 1.103 as dependencies for the extension while my VS Code app is 1.102 after updating again and again with no such 1.103. So edit the package.json file created by Yeoman, in 'src' dir:
  • engines.vscode
  • devDependencies.@types/vscode
Edit the version of the being-created extension in package.json too, the initial version should be 0.1.0 instead of 0.0.1 'cause it's the first minor code being created, not first patch.

Run the extension in separate VS Code window 'cause the src folder is inside project folder which VS Code will think the parent of 'src' folder is the extension folder and fails to load.
  • cd src
  • code .
Run the extension
  • Click 'Run and Debug' button on left rim of VS Code
  • Click Run (F5)
Package to .vsix file to use and publish
  • npm i -g vsce
  • vsce package

06 August, 2025

The New Throne of the Web: Who?

Google Search started after many other search engines but got to the throne by 
  • Having the most results
  • While also having the most relevancy
OpenAI started the new era with ChatGPT and everybody is vibing about chatbots. But will OpenAI get to the new throne? It depends.

The situation of the new era business is:
  • Google has both AI (Gemini) and search engine (Google Search)
  • The Microsoft-OpenAI alliance is also with AI (ChatGPT) and search engine (Bing)
  • Others are without either AI or search engine, including Perplexity (no search engine), DuckDuckGo (no AI)
  • Search engine is still important here 'cause it's about Internet data
Both Google and the Microsoft-OpenAI Alliance are going to the correct direction:
  • Google has AI Mode (in some countries now, not global yet)
  • Bing has the Copilot Button next to search input box
But a tiny usage feature can be different in this rivalry, in my personal opinions, Google AI Mode is better:
  • Though both have the same power of AI, and search engine
  • But AI Mode is integrated in Google.com without opening a new tab, and this tiny convenience may make the win; it looks tiny but users usually even avoid a single extra click or page load.


Game UI Design: Presentable and Useful

Quite a bit related to tech, more about UI design is the game UI design. The following design is presentable, and useful.

Points to be applied in UI design
  • UI should be at bottom so it's easier to see 'cause human eyes look down easier, especially on large display
  • Avoid the 4 corners (or put stats there only) 'cause human eye vision of both eyes are rather elliptical than a rectangle.
  • Should be harmony about being on left or right
Locations of UI items:
  • Left: Chat area, quite a standard in most of all games
  • Right: Quest list, can't put on left 'cause chat area is already there
  • Bottom: Action bar, quite a standard
  • Centre
    • Left: Character, should align to left instead of character being perfectly at centre 'cause the interaction target or combat target is the aim point on right
    • Right: Minimap or radar or compass moved here to see easier.
This UI design is rather interesting, Dan's favourite UI setup.

27 July, 2025

Scientific UI Design vs Arts

Software UI designs should start with being scientific. Scientific here means well organized. One of the way for UI to be organized is to: Make sure each UI element is aligned or related to at least 1 other UI element

When the rule above is ensured, the whole UI design is as one.

Scientific UI design is first but not the last. A well scientific UI design is considered, let's say 80% of quality, then the rest of 20% is UX part of UI, attractive, beautifulness, arts. But this should be done later, since practically it takes 20% of time to make a well designed UI, but it takes the rest of 80% of time to make the rest of the beauty and luxurious UI.

25 July, 2025

AI Entities in the Future and the Concepts of Life and Soul

In the future, or even now, these are the entities related to AI:
  • Computer
    • A computer is an oracle computer (knowledge) operating on input/ouput or functions on top of avatar.
  • Avatar
    • Avatar is a lifeless body for computer.
  • Machine
    • Machine is intelligent, and functions on its own
  • Automaton
    • Automaton is automated may with intelligent features to understand input but totally automated
The concepts of living and soul
  • When an entity functions on itself, it has LIFE
  • When an entity believes in God, it has SOUL