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

Blog Directory  >  Technology Blogs  >  My personal technology Blog  > 

My Personal Blog
Semi-regular writings on statistics, machine learning, TILs and small victories against the CPU.
2024-03-31 15:19
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
2024-03-30 01:56
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
2024-03-17 18:27
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
2024-03-17 18:27
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
2024-03-04 00:14
I’ve made a k9s vaporwave skin. You can find it here. Hint: pairs well with the Emacs vaporwave icon Read More
2024-03-03 19:55
InstallationTo install k3s run: curl -sfL | sh Alternatively, to have the permissions fixed, run: curl -sfL | sh -s - --write-kubeconfig-mode 64 Context… Read More
2024-02-23 00:00
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
2024-02-10 16:17
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
2024-02-10 16:01
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
2024-01-28 14:51
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
2024-01-28 14:51
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
2023-10-01 19:46
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
2023-09-18 00:00
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
2023-09-16 20:31
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
2023-09-16 19:44
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
2023-09-07 00:00
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
2023-09-05 00:23
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
2023-09-05 00:00
Today I learned about JUnit’s ability to use null sources in conjunction with @ParamterizedTest. Example: @ParameterizedTest @NullAndEmptySource @ValueSource(strings = {"test", "JUnit"… Read More
2023-09-03 20:16
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
2023-09-03 09:53
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
2023-09-03 09:53
Software fettuccine, a Python library to manage code workflows (PyPi) Python Kubernetes utilities library, k8sutils (PyPi) TrustyAI Kubernetes Operator Read More
2023-03-19 21:26
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
2023-03-19 21:26
Unit test should start with should. Unit Testing is Overrated Start test names with “should” Read More
2023-02-19 15:04
This is originally at Getting startedTo quickly get started using ModelMesh Serving, here is a brief guide. Prerequis… Read More
2023-02-19 15:04
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
2023-01-19 20:56
Page on model serving. Seldon Serving models with Seldon ModelMesh ModelMesh Read More
2023-01-18 21:36
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
2023-01-15 15:53
-----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
2023-01-15 15:53
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
2023-01-03 11:19
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
2022-12-20 21:08
Life on the CLI Notes on the life on the CLI Read More
2022-12-16 21:34
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
2022-12-16 21:34
All of the examples presented in this page will be done using Scikit-learn Read More
2022-11-01 16:23
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
2022-10-27 10:22
Test locations By default JUnit will look for test following the glob pattern: **/Test*.java **/* **/* **/* If you want to add different patterns or locations… Read More
2022-09-24 20:50
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
2022-08-14 22:48
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
2022-08-09 15:35
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… Read More
2022-08-09 14:46
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
2022-07-31 11:41
This is a collection of the hot sauces I’ve tried. Piri piri Nando’s XX Hot Read More
2022-07-28 20:04
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
2022-07-24 21:08
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:37
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
2022-07-13 09:14
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
2022-07-13 09:14
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
2022-07-13 09:14
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
2022-07-01 09:49
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
2022-07-01 09:49
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
2022-07-01 09:49
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


Subscribe to My Personal

Get updates delivered right to your inbox!

Thank you for your subscription