---
title: "Collected Notes"
date: 2025-12-03T00:00:00Z
lastmod: 2026-10-16T19:06:54+02:00
url: https://klimek.link/posts/collected_notes/
author: "Marcin Klimek"
source: https://klimek.link/posts/collected_notes/
---

# Collected Notes

A collection of short notes and links.

## Algorithms & Math

### Papers to read - papers we love
_2014-09-02T07:51:12+00:00_

Repo for good papers to read.

<https://github.com/papers-we-love>

> What was the last paper within the realm of computing you read and loved? What did it inspire you to build or tinker with?  
> Come share the ideas in an awesome academic/research paper with fellow engineers, programmers, and paper-readers. Lead a session and show off code that you wrote that implements these ideas or just give us the lowdown about the paper (because of HARD MATH!).  


---

### Designing a SIMD Algorithm from Scratch
_2023-11-29T13:52:45+01:00_

Another explainer on a fun, esoteric topic: optimizing code with SIMD (single instruction multiple data, also sometimes called vectorization). Designing a good, fast, portable SIMD algorithm is not a simple matter and requires thinking a little bit like a circuit designer.


   [Designing a SIMD Algorithm from Scratch](https://mcyoung.xyz/2023/11/27/simd-base64/)

---

### Bring algorithms to life

[Algorithm Visualizer](https://algorithm-visualizer.org/)

An interactive online platform designed to bring algorithms to life through visualization.

## C++

### Introduction to Lock-free Programming with C++ and Qt
_2012-04-18T12:48:52+00:00_

[Introduction to Lock-free Programming with C++ and Qt](http://woboq.com/blog/introduction-to-lockfree-programming.html)

Problem ABA

---

### "The View from Aristeia: std::string, SSO, and Move Semantics"
_2012-04-18T12:56:11+00:00_

[The View from Aristeia: std::string, SSO, and Move Semantics](http://scottmeyers.blogspot.ca/2012/04/stdstring-sso-and-move-semantics.html)

---

### Czytelne wskaźniki na funkcje C/C++
_2014-01-02T07:36:14+00:00_

[Readable function pointers - /dev/krzaq](http://dev.krzaq.cc/readable-function-pointers/)

---

### Introduction to C++ Metaprogramming
_2017-10-26T08:08:03+00:00_

Interesting introduction to metaprogramming in the context of embedded systems.

[C++ Metaprogramming: Part 1: Introduction to C++ Metaprogramming](http://odinthenerd.blogspot.com/2014/07/introduction-to-c-metaprogramming-part-1.html)

Corresponding  C++ library with full static checking and abstractions to special function registers of embedded microcontrollers.


---

### Marching tetrahedra
_2018-06-19T22:54:00+00:00_

Marching tetrahedra with geometry shaders instanced tetrahedra grid and colors

[Bitbucket](https://bitbucket.org/lisyarus/xgl/src/master/demo/gpu\_marching\_tetrahedra.cpp)

---

### Optimizations enabled by -ffast-math
_2021-10-21T10:38:32+00:00_

>This blog post describes the optimizations enabled by `-ffast-math` when compiling C or C++ code with GCC 11 for x86_64 Linux (other languages/operating systems/CPU architectures may enable slightly different optimizations).

[Optimizations enabled by -ffast-math - Krister Walfridsson's blog - Compilers, programming languages, etc.](https://kristerw.github.io/2021/10/19/fast-math/)

---

### How To Enable A 64 Bit Visual Cpp Toolset On The Command Line
_2023-11-28T19:04:20+01:00_

x64 Native Tools Command Prompt for VS 2022

[how to enable a 64 bit visual cpp toolset on the command line](https://learn.microsoft.com/en-us/cpp/build/how-to-enable-a-64-bit-visual-cpp-toolset-on-the-command-line?view=msvc-170)

---

## Embedded

### Are We Shooting Ourselves in the Foot with Stack Overflow
_2014-02-19T11:44:47+00:00_

[How-to Articles \| Barr Group](http://embeddedgurus.com/state-space/2014/02/are-we-shooting-ourselves-in-the-foot-with-stack-overflow/)


---

### moduł RF zigbee
_2014-07-14T11:43:32+00:00_


MICROCHIP TECHNOLOGY MRF24J40MA-I/RM
  
  <div>
  </div>
[MRF24J40MA-I/RM MICROCHIP TECHNOLOGY - Moduł: RF \| PCB; ZigBee; O-QPSK; 2,4GHz; 4-wire SPI; -94dBm; 5dBm; SMD \| Transfer Multisort Elektronik Polska](http://www.tme.eu/pl/details/mrf24j40ma-i_rm/moduly-komunikacyjne-rf/microchip-technology/)

---

### "Gamasutra - In-Depth: Static Code Analysis"
_2015-05-28T23:09:41+00:00_

Stare to jak świat, ale można spoglądnąć co Carmack ma do powiedzenia

[Gamasutra - In-Depth: Static Code Analysis](http://www.gamasutra.com/view/news/128836/InDepth_Static_Code_Analysis.php)

---

## Graphics
_2014-01-08T13:32:48+00:00_

Site for the Geometric Tools source code for real-time computer graphics and physics, mathematics, geometry, numerical analysis, and image analysis


[Geometric Tools](http://www.geometrictools.com/)

---

### The blog of Fabian “ryg” Giesen
_2014-08-19T10:17:45+00:00_

This is the blog of Fabian “ryg” Giesen(RAD Game Tools in Kirkland/WA as a programmer). He is also active in the demoscene group Farbrausch and have written some useful tools and other pieces of code, most of which are available on his homepage.

[The ryg blog \| When I grow up I'll be an inventor.](http://fgiesen.wordpress.com/)

---

### Precise 3D mapping and visualization of wifi signal strength inside 1ft³
_2015-02-14T18:35:40+00:00_

[Reddit - The heart of the internet](http://www.reddit.com/r/dataisbeautiful/comments/2vuvhf/precise_3d_mapping_and_visualization_of_wifi/)

---

### A French Demoscene Group
_2018-06-19T22:53:59+00:00_

[Ctrl-Alt-Test - A French Demoscene Group, since 2009](http://www.ctrl-alt-test.fr/)

---

### The blog at the bottom of the sea
_2018-06-19T22:53:57+00:00_

Programming, Graphics, Gamedev, Exotic Computation, Audio Synthesis

[The blog at the bottom of the sea « Programming, Graphics, Gamedev, Exotic Computation, Audio Synthesis](https://blog.demofox.org/)

---

## Linux

### Aptana, pyCharm
_2011-10-28T12:32:47+00:00_

W przypadku Aptany i pyCharm, warto sprawdzić czy używamy przypadkiem nie używamy Open JDK.

Poziom zmulenia tych aplikacji jest niewiarygodny pod Open JDK.

Zmiana na nieco lepiej:

```bash
sudo apt-get update
sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts
```

zawartość /etc/jvm

```bash
/usr/lib/jvm/java-6-sun
```

zawartość ~.bash_profile

```bash
export JAVA_HOME=/usr/lib/jvm/java-6-sun
export PATH=$PATH:$JAVA_HOME/bin
```

---

### Eli Bendersky’s website » Adding bash completion for your own tools - an example for pss
_2013-12-28T19:28:32+00:00_

  
[Adding bash completion for your own tools - an example for pss - Eli Bendersky's website](http://eli.thegreenplace.net/2013/12/26/adding-bash-completion-for-your-own-tools-an-example-for-pss/)

---

### Ftrace - eLinux.org
_2014-02-09T16:41:31+00:00_


Ciekawe narzedzie to pokazania co sie wywoluje w obrebie kernela w trakcie dzialania aplikacji
  
[Ftrace - eLinux.org](http://elinux.org/Ftrace)

---

### FIQ Handlers in the ARM Linux Kernel
_2014-02-09T23:01:19+00:00_

[FIQ Handlers in the ARM Linux Kernel - Bootlin](http://free-electrons.com/blog/fiq-handlers-in-the-arm-linux-kernel/)


---

### Why kernel space sucks
_2014-02-27T21:11:21+00:00_

[Why kernelspace sucks? \| PDF](http://www.slideshare.net/openfest/why-kernel-spacesucks20111105)

---

### "Ftrace: The hidden light switch"
_2014-08-21T07:57:37+00:00_

<div>
  The database was performing poorly after a system upgrade, and disk I/O inflation (a massive increase in the number of I/O operations submitted) was suspected. There can be many causes for this: a worse cache-hit ratio, record-size inflation, readahead inflation, other applications, even other asynchronous kernel tasks (file system background scrubs). The question was: which one, and how do we fix it?
</div>

[Ftrace: The hidden light switch \[LWN.net\]](http://lwn.net/Articles/608497/)

---

### Linux Performance
_2014-08-21T08:04:19+00:00_

This page links to various Linux performance material
[Linux Performance](http://www.brendangregg.com/linuxperf.html)

---

## Misc

### Optymalizacja struktur z klasą instrumentującą do raportów
_2014-01-02T10:59:55+00:00_

[» memory cache optimizations](http://blog.libtorrent.org/2013/12/memory-cache-optimizations/)

---

### Solone hasła - jak to robić dobrze
_2014-01-02T14:13:19+00:00_

Salted Password Hashing &#8211; Doing it Right  

[Salted Password Hashing - Doing it Right - CodeProject](http://www.codeproject.com/Articles/704865/Salted-Password-Hashing-Doing-it-Right)

---

### How Misaligning Data Can Increase Performance 12x by Reducing Cache Misses
_2014-01-03T14:05:52+00:00_

[Data alignment and caches](http://danluu.com/3c-conflict/)

---

### Porównanie kompilatorów intel vs gcc w kontekście wektoryzacji kodu
_2014-01-03T23:05:10+00:00_

[comparing-c-compilers-parallel-programming-performance](http://slashdot.org/topic/bi/comparing-c-compilers-parallel-programming-performance)

---

### Dokumenty poszerzające zrozumienie wszystkiego
_2014-01-11T11:59:24+00:00_

[450 Mind Expanding Documentaries (Down The Rabbit Hole)](http://www.diygenius.com/mind-expanding-documentaries/)

---

### Ciekawe linki
_2014-01-23T20:26:02+00:00_

[10 Ways to Get Inspiration as a Programmer](http://halffull.org/2009/01/03/10-ways-to-get-inspiration-as-a-programmer/)
[http://www.megalith.co.uk/8086tiny/](http://www.megalith.co.uk/8086tiny/)

---

### Leciało w trójce i było ciekawe
_2015-01-28T13:48:01+00:00_

Damien Rice - My Favourive Faded Fantasy  
Damien Rice - It Takes A Lot To Know A Man

Leliwa - Listopad

Machine Head - Ghosts Will Haunt My Bones  
Machine Head - Sail Into The Black

The BoDeans - Worlds Away  
Urban Dance Squad - Fast Lane  
The Rolling Stones - We Love You

Gary Clark Jr. - Catfish Blues  
Foo Fighters - Something From Nothing

Louise Hoffsten - King Creole  
Booker T. Jones - Can't Buy Me Love  
Bryan Ferry - Loop De Li  
Dion - Drive My Car

---

### Maze generator - 13 bytes
_2015-01-28T13:46:00+00:00_

[Maze Generation In Thirteen Bytes « Oldskooler Ramblings](http://trixter.oldskool.org/2012/12/17/maze-generation-in-thirteen-bytes/)

---

### References for “The Future of Programming”
_2015-02-18T13:17:48+00:00_

<div dir="ltr">
  A talk at the DBX conference called The Future of Programming.
</div>

<div dir="ltr">
</div>
[References for "The Future of Programming"](http://worrydream.com/dbx/)

---

### Sometimes a bug is hit only after code was executed 100 trillion times
_2015-09-04T06:57:54+00:00_

> All of us are familiar with overflow bugs. However, sometimes you write code that counts on overflow. This is a story where overflow was supposed to happen but didn’t, hence the name _underflow bug_.

[Underflow bug \| Spotify Engineering](https://labs.spotify.com/2015/08/27/underflow-bug/)

---

### Finding a CPU Design Bug in the Xbox360
_2018-01-08T12:17:20+00:00_

Random ASCII: programming, tech topics, with a chance of unicyclingFinding a CPU Design Bug in the Xbox 36

The recent reveal of [Meltdown][1] and [Spectre][2] reminded me of the time I found a related design bug in the Xbox 360 CPU - a newly added instruction whose mere existence was dangerous.

[Random ASCII – tech blog of Bruce Dawson \| Forecast for randomascii: programming, tech topics, with a chance of unicycling](https://randomascii.wordpress.com/)

[meltdown](https://meltdownattack.com/meltdown.pdf)
[spectre](https://spectreattack.com/spectre.pdf)

---

### Alan Zucconi -  passionate developer
_2018-06-19T22:53:59+00:00_

Alan Zucconi is a creator of a series of tutorials about game development and machine learning.

[Alan Zucconi - Tutorials for GameDevs](https://www.alanzucconi.com)

---

### "Fibonacci Hashing: The Optimization that the World Forgot "
_2018-06-19T22:54:00+00:00_

> or: a Better Alternative to Integer Modulo)

[Fibonacci Hashing](https://www.reddit.com/r/programming/comments/8rlr3a/fibonacci_hashing_the_optimization_that_the_world/e0sic25/)

---

### PlayStation 3 Architecture
_2021-10-21T10:37:42+00:00_

[PlayStation 3 Architecture](https://www.copetti.org/writings/consoles/playstation-3/) - A practical analysis by Rodrigo Copetti

---
### Avalonia
_2023-01-16T21:55:42+00:00_

In case of trouble while installing the package Avalonia, check the *NuGet.config*:

	c:\Users\<USER>\AppData\Roaming\NuGet\NuGet.Config
	
	<?xml version="1.0" encoding="utf-8"?>
	<configuration>
		<packageSources>
	    <add key="nuget.org" value="https://www.nuget.org/api/v2/" />
		</packageSources>
	</configuration>

---

## Python

### Elixir pod pypy
_2012-04-18T14:10:31+00:00_


  1. apt-get install libpq-dev
  2. pypy/bin/pip install psycopg2ct
  3. map CT version:

```
from psycopg2ct import compat
compat.register()
```

---

### upipe
_2015-04-27T09:56:53+00:00_

Jesli dwa elementy nie chcą się spiąć, to trzeba sprawdzać w input\_set\_flow_def co mu nie pasuje.

Zaczynając od definicji bloku

---

### A Guide to Python Itertools
_2018-02-08T09:28:15+00:00_

Those iterables are more powerful than you can possibly imagine.

[A Guide to Python Itertools. Those iterables are more powerful than… \| by Jason Rigden \| Medium](https://medium.com/@mr_rigden/a-guide-to-python-itertools-82e5a306cdf8)

---

### Every Dunder Method
_2024-04-03T14:07:29+02:00_

> Python includes tons of dunder methods ("double underscore" methods) which allow us to deeply customize how our custom classes interact with Python's many features. What dunder methods could you add to your class to make it friendly for other Python programmers who use it?

[Every dunder method in Python](https://www.pythonmorsels.com/every-dunder-method/)

---

## Tools

### Zmiana rozmiaru partycji, gparted i ew. problemy
_2014-01-14T11:24:56+00:00_

Może się zarzyć, że przy próbie zmiany rozmiaru partycji dostaniemy komunikat:

`$ parted /dev/sdd unit s print`

Błąd: Nie można mieć partycji poza dyskiem!

W takiej sytuacji należy zmodyfikować lekko TP:

[GParted -- How-to Fix Invalid MSDOS Partition Tables](http://gparted.org/h2-fix-msdos-pt.php#partition-outside-disk)

---

### marching wooden toys
_2015-02-26T12:37:39+00:00_

[Comment](https://www.reddit.com/r/videos/comments/2tjavo/i_am_blown_away_by_these_marching_wooden_toys/cnzxwbw/) from discussion [nutterbird's comment from discussion "I am blown away by these marching wooden toys this guy makes."](https://www.reddit.com/r/videos/comments/2tjavo/i_am_blown_away_by_these_marching_wooden_toys/).

---

### A great way to feed OpenAI all your source code
_2023-01-16T21:55:42+00:00_

A great way to feed OpenAI all your source code for auto generating commit message based on code differences(GPT based approach):

[Fetching Data](https://github.com/markuswt/gpt-commit/blob/main/gpt-commit.py)
[commitomatic](https://github.com/tiborpilz/commitomatic)
[what the commit](https://whatthecommit.com/)

---

### Git Mounter
_2023-11-29T14:07:38+01:00_

Has anyone made a read-only FUSE filesystem for a git repository where every commit is a folder and the folder contains all the files in that commit?

The idea is that you could just run cd COMMIT_ID and poke around instead of checking out the commit and maybe the branches could be symbolic links to the commit folders?

[Git Mounter](https://belkadan.com/blog/2023/11/GitMounter/)

---

### Pchord Training Tool
_2023-11-29T15:12:41+01:00_

My own project

https://github.com/marcinklimek/pchords

---

## Web

### TestCoverage - Martin Fowler
_2012-04-18T12:36:13+00:00_

[Test Coverage](http://martinfowler.com/bliki/TestCoverage.html)

---

### systemy rozproszone
_2014-01-03T18:13:36+00:00_

[Distributed systems for fun and profit](http://book.mixu.net/distsys/appendix.html)

---

### Ex. 10 measuring jitter and latency
_2014-02-09T17:06:59+00:00_

In real-time programming one usually has to guarantee that certain deadlines are always met. Hence, predictability of timing is crucial. In this exercise we investigate a few aspects of predictability by measuring scheduling jitter and interrupt latency.

[Measuring Jitter and Latency](http://www.cs.ru.nl/lab/xenomai/exercises_xenomai2.4/ex10/Exercise-10.html)

---

### Algorytm Raft - wybór lidera i replikacja
_2014-08-27T07:55:49+00:00_

Raft Consensus algorithm.

Prezentacja: [Raft](http://thesecretlivesofdata.com/raft/)
Dokładniejszy opis: [http://raftconsensus.github.io/](http://raftconsensus.github.io/)

---

### "[lang] JavaScript Guide - JavaScript"
_2014-08-27T20:25:17+00:00_

Niby trywialne, ale warto czasem przypomnieć sobie co i jak.

[JavaScript Guide - JavaScript \| MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide)

 Pulling JPEGs out of thin air _2014-11-09T13:59:24+00:00_ This is an interesting demonstration of the capabilities of afl. http://lcamtuf.blogspot.com/2014/11/pulling-jpegs-out-of-thin-air.html https://code.google.com/p/american-fuzzy-lop/ --- ### Some disasters caused by numerical errors _2015-02-02T09:43:43+00:00_

Some disasters caused by numerical errors
- Patriot Missile Failure
- Explosion of the Ariane 5
- EURO page: Conversion Arithmetics
- The Vancouver Stock Exchange
- Rounding error changes Parliament makeup
- The sinking of the Sleipner A offshore platform
- Tacoma bridge failure (wrong design)
- 200 million dollar typing error (typing error)
- What's 77.1 x 850? Don't ask Excel 2007
- Collection of Software Bugs
  
[Computer Arithmetic Tragedies page of Kees Vuik](http://ta.twi.tudelft.nl/users/vuik/wi211/disasters.html)

---

### how to center in CSS
_2015-04-20T07:56:33+00:00_

 Centering in CSS is a pain in the ass. There seems to be a gazillion ways to do it, depending on a variety of factors. This consolidates them and gives you the code you need for each situation.

[How to Center in CSS](http://howtocenterincss.com/)

---
### paxos consensus protocol
_2015-08-27T12:29:37+00:00_

This website explains the infamously difficult to understand Paxos consensus protocol using easy to understand invariants and code.
  
[Paxos Made Moderately Complex \| Explains the Paxos Consensus Protocol in an easy to understand way. Provides a working implementation in Python.](http://paxos.systems/)

---

### ROP Emporium
_2018-01-08T13:58:58+00:00_

Learn return-oriented programming through a series of challenges designed to teach ROP techniques in isolation, with minimal reverse-engineering and bug-hunting.

[ROP Emporium](https://ropemporium.com/index.html)

---

[injuly  Blog](https://injuly.in/blog/)


>    A programmer, hobbyist game-dev, and math enthusiast. On this website I document my projects, interests, and research endeavours.
>    
>    A collection of my thoughts, projects or ideas that are elaborate enough to warrant a full article.
>    
>    There is no coherent theme across all posts, but you can expect game-dev, programming languages, math and just about anything else. And while I still have your attention, here's some of what I've managed to write over the course of time.

---


> One of the most exciting things about learning a foreign language is developing a proficiency for reading it. At first, sentences in the foreign languages start off as intimidating blocks of text, totally opaque and meaningless. With lots of practice, single words start to make sense here and there. A basic understanding of the language’s syntax transforms the process.
 
[Analyzing Japanese with Natural Language Processing and Go](https://medium.com/@enocom/analyzing-japanese-with-natural-language-processing-and-go-64b26cb2436)

---

Ventoy is an open source tool to create bootable USB drive for ISO/WIM/IMG/VHD(x)/EFI files.

With ventoy, you don't need to format the disk over and over, you just need to copy the ISO/WIM/IMG/VHD(x)/EFI files to the USB drive and boot them directly.
You can copy many files at a time and ventoy will give you a boot menu to select them.
You can also browse ISO/WIM/IMG/VHD(x)/EFI files in local disks and boot them.
x86 Legacy BIOS, IA32 UEFI, x86_64 UEFI, ARM64 UEFI and MIPS64EL UEFI are supported in the same way.

Most types of OS supported (Windows/WinPE/Linux/ChromeOS/Unix/VMware/Xen...)

[Ventoy](https://www.ventoy.net/en/index.html)

---

Sound event detection involves analyzing ongoing acoustic signals to identify and symbolize the various sounds within an auditory environment. This technology has multiple applications, such as enabling context-specific search and retrieval in multimedia databases, discreet monitoring in healthcare settings, and use in surveillance systems.

This collection of papers provides insights into the field of sound event detection and the broader area of Sound AI.

[Real Time Sound Event Detection](https://github.com/robertanto/Real-Time-Sound-Event-Detection)
[Awesome Sound Event Detection](https://github.com/soham97/awesome-sound_event_detection)
[Sound Event Detection Transformer](https://github.com/Anaesthesiaye/sound_event_detection_transformer)
[Sound Event Detection](https://github.com/reyvaz/Sound-Event-Detection)

Source: https://klimek.link/posts/collected_notes/
