Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Blog Directory  >  Technology Blogs  >  My personal blog technology Blog  >

My Personal Blog Blog


1
Tags:
Semi-regular writings on statistics, machine learning, TILs and small victories against the CPU.
To make Syncthing start automatically on Fedora, you can use systemd. This approach allows you to start Syncthing automatically at boot time under your user account, ensuring that it’s… Read More
Increasing your system’s security by limiting SSH access to a single, specified machine (is this example, within your Local Area Network (LAN)) is always a good strategic approach. Thi… Read More
Key strategies for safe refactoring include: Defining the scope and limits of refactoring efforts. Isolating improvements from new feature development. Writing comprehensive tests, including… Read More
In the realm of imagination, where the lines between the real and the fantastical blur, lies the heart of Software Engineering. It is not simply an occupation tethered to keyboards and scree… Read More
InstallationTo install k3s run: curl -sfL https://get.k3s.io | sh Alternatively, to have the permissions fixed, run: curl -sfL https://get.k3s.io | sh -s - --write-kubeconfig-mode 64 Context… Read More
Kubernetes RBAC Error for Operator LeasesIf you’re developing or managing a Kubernetes operator, you might encounter an error similar to this: E0223 11:11:46.086693 1 leaderelection.go… Read More
DesignA quote1 from Ron Minnich about Plan 9’s design: interesting questions. They kind of resonate with a discussion I had with someone recently. The question of feature(X) in linux c… Read More
Plan 9’s designAn interesting quote from Ron Minnich about Plan 9’s design: On Plan 9, the rule tends to be: if feature(X) can’t be implemented in a way that works for ever… Read More
Berkeley Software DistributionThere is an interesting post by Jacob Elder where I learned that John Lassetter (of Toy Story, A Bug’s Life, Cars and Cars 2) also created the BSD mascot… Read More
There is an interesting post by Jacob Elder where I learned that John Lassetter (of Toy Story, A Bug’s Life, Cars and Cars 2) also created the BSD mascot. Read more about UNIX in gener… Read More
In Kubernetes, labels serve as a mechanism to organize and select groupings of objects. They are key-value pairs associated with objects and can be used to apply operations on a subset of ob… Read More
The waters around the Iberian Peninsula (mostly reported off the Spanish and Portuguese coasts) have been of interest for marine biologists due to a notable increase in interactions between… Read More
Recently, I’ve been reading a fair bit about John Dos Passos, and while I haven’t still read any of his books, his approach to literature seems quite avant-garde for his time. Th… Read More
CauliflowerPreheat the oven to 220°C. In a large mixing bowl, combine the cauliflower florets with a generous portion of olive oil, a pinch of salt, pepper, cumin, coriander seeds, and c… Read More
If you’re using Minikube with Kubernetes 1.27.3 to install KServe 0.9 or 0.10, you might encounter this error: resource mapping not found for name: "activator" namespace: "knative-serv… Read More
Been trying out NeoVim in the format of LunarVim. To use with a GUI on macOS, I use NeoVide, with the command neovide --neovim-bin ~/.local/bin/lvim --multigrid --maximized --frame none If y… Read More
Today I learned about JUnit’s ability to use null sources in conjunction with @ParamterizedTest. Example: @ParameterizedTest @NullAndEmptySource @ValueSource(strings = {"test", "JUnit"… Read More
I’ve been a long-time user of Poetry for my Python projects, and it’s been a welcome change. However, my recent exploration into Hatch has sparked my interest. Poetry simplifies… Read More
Exception Bubbling in PythonOne aspect of Java that occasionally nudges at me is its explicit approach to exception handling. Java requires developers to either handle exceptions via try-cat… Read More
Software fettuccine, a Python library to manage code workflows (PyPi) Python Kubernetes utilities library, k8sutils (PyPi) TrustyAI Kubernetes Operator Read More
Inference data is represented in TrustyAI1 using objects implementing the Prediction interface. The objects always include two general entities representing collections of inputs (Prediction… Read More
Unit test should start with should. Unit Testing is Overrated Start test names with “should” Read More
This is originally at https://github.com/kserve/modelmesh-serving/blob/main/docs/quickstart.md Getting startedTo quickly get started using ModelMesh Serving, here is a brief guide. Prerequis… Read More
Eternal questionsWhy does Pepperoni curl in Pizza? As the pizza bakes, the edge of the pepperoni curls upwards, forming a distinct lip. Once exposed like this, the lip cooks faster than the… Read More
Introduction Douglas McIlroy1 summarized the Unix philosophy as follows: Write programs that do one thing and do it well. Write programs to work together. Write programs to handle text strea… Read More
-----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS/M/MU d-- s:+> !a C++$>+++ ULC P+>++ L+++>++++ E-@ W++ !N>+ !o K--? !w O>+ M+ !V PS++@ PE-@ !Y PGP@>++ t+ !5 X++ R@>+… Read More
Difference in Positive Proportions in Predicted Labels (DPPL) DPPL (Difference in Positive Proportions in Predicted Labels) is a metric used to evaluate the performance of machine learning m… Read More
Run specific tests Run all tests in a project $ pytest Run tests in a Single Directory To run all the tests from one directory, use the directory as a parameter to pytest: $ pytest tests/my… Read More
Radial Basis Function (RBF) Given $$ K(X_1,X_2)=\sigma^2\exp\left(-\frac{||X_1-X_2||^2}{2\ell^2}\right) $$ $\sigma^2$ is the overall variance (where $\sigma$ is also known as the amplitude)… Read More
Readonly Typescript supports the readonly attribute. Assume the following function to sort arrays: function sortNumbers(array: Array) { return array.sort((a, b) => a - b) } const numbers… Read More
Test locations By default JUnit will look for test following the glob pattern: **/Test*.java **/*Test.java **/*Tests.java **/*TestCase.java If you want to add different patterns or locations… Read More
Fairness Machine Learning fairness is directly related to almost all fields where Machine Learning can be applied: Autonomous machines Job application workflow Predictive models for the just… Read More
Example taken from the official Scikit-learn documentation1. Data We will start by generating a synthetic dataset. The true generative process is defined as $f(x)=x\sin(x)$. import numpy as… Read More
Unions For Python 3.10 onwards1, Unions can be specified with the character |. For instance: Union[int, str, float] # before 3.10 int | str | float # after 3.10 https://docs.python.org/3/lib… Read More
Trying coconut! "hello, world!" |> print hello, world! def binexp(x) = 2**x 5 |> binexp |> print 32 def last_two(_ + [a, b]): return a, b def xydict_to_xytuple({"x":x is int, "y":y… Read More
This is a collection of the hot sauces I’ve tried. Piri piri Nando’s XX Hot Read More
Abstract classes were added to Python with PEP-31191. One of the goals was to add interfaces to reinforce type checking. For instance: from abc import ABC, abstractmethod class AbstractFoo(A… Read More
A page with notes about Podman. Common problems Did not resolve to an alias If referencing an image, say postgres:14, the following error shows: Error: short-name "postgres:14" did not resol… Read More
Architecture Algorithm Input: Dataset $\mathcal{D}_{train}$, Instance $x$, lenght of explanation $\mathcal{K}$ Initialise $\mathcal{Y} \leftarrow {}$ Initialise cluster for $i$ /in/ $1,\dots… Read More
Notes on Kubernetes Architecture Concepts Custom Resource Definitions A Custom Resource Definiton (CRD) is an endpoint in the Kubernetes API that stores a collection of API objects. This abs… Read More
Introduction K-means is still one of the fundamental clustering algorithms. It is used in such diverse fields as Natural Language Processing (NLP), social sciences and medical sciences. The… Read More
Notes on Pikchr1. Installation Download pikchr~ from the downloads page To create the CLI command, compile using $ gcc -DPIKCHR_SHELL -o pikchr pikchr.c -lm And add it to your path. Examples… Read More
Isolation Forests (IFs), presented in Liu1 et. al (2012), are a popular algorithm used for outlier classification. In a very simplified way, the method consists of building an ensemble of Is… Read More
Summary Main page for all things Python. Other pages cover specific topics, such as: Python environments Python collections Python Pweave Pandas Notes on Python grammar of graphics Installat… Read More
Summary This page contains links to most Java topics. Java, created by James Gosling, among others. Tools Java build systems Includes Maven JReleaser Concepts Java Completable Futures Java c… Read More
Building counterfactually fair models Data To evaluate counterfactual fairness we will be using the “law school” dataset1. The Law School Admission Council conducted a survey acr… Read More
L-p metrics Manhattan distance (L1) Given two vectors $p$ and $q$, such that $$ \begin{aligned} p &= \left(p_1, p_2, \dots,p_n\right) \ q &= \left(q_1, q_2, \dots,q_n\right) \end{ali… Read More
Notes on LaTeX. Images side-by-side Use the subfig package. \documentclass[10pt,a4paper]{article} \usepackage[demo]{graphicx} \usepackage{subfig} \begin{document} \begin{figure}% Read More
There are several ways to measure the robustness of a clustering algorithm. Three commonly used metrics are the Dunn index, Davis-Bouldin index and Silhoutte index. But before we start, let… Read More
Useful algorithms: Conformalised density and distance-based anomaly detection in time-series data1 Anomaly detection in streams with extreme value theory Robust random cut forest based anoma… Read More
Notes on Neovim. Installation Fedora To install Neovim on Fedora simply run: sudo dnf install -y neovim python3-neovim vim-plug To install vim-plug1 run: sh -c 'curl -fLo "${XDG_DATA_HOME:-$… Read More
The Fedora1 OS A Linux distribution Upgrading To upgrade a Fedora distribution (to, say, version 36), run: $ sudo dnf upgrade --refresh $ sudo dnf system-upgrade download --releasever=36 Aft… Read More
Installation macOS You can install GPG on macOS using: $ brew install gpg Workflow Getting existing key To get an existing key id use: gpg --list-secret-keys --keyid-format LONG The key id w… Read More
Service systemd To enable the syncthing service at the user level on a systemd based OS (e.g. Fedora) use systemctl --user enable --now syncthing.service The service might be lost after pack… Read More
Introduction A random walk is a stochastic process which describes a path made of consecutive random steps. Gaussian In Gaussian random walk the steps follow a continuous Gaussian distributi… Read More
Generating synthetic data Synthetic data will be used mainly for these scenarios: Regression Classification Here we will mainly look at the methods provided by scikit-learn to generate synth… Read More

Share the post

My personal blog

×