.github
workflows deploy.yaml
content
notes 2022-08-13-algae-spotted-on-river-sava.md 2023-05-01-cachebusting-in-hugo.md 2023-05-05-run-9front-in-qemu.md 2023-05-06-git-push-multiple-origins.md 2023-05-07-mount-plan9-over-network.md 2023-05-08-write-iso-usb.md 2023-05-09-catv-weechat-config.md 2023-05-10-plan9-screenshot.md 2023-05-11-fix-plan9-bootloader.md 2023-05-12-install-plan9port-linux.md 2023-05-13-download-youtube-videos.md 2023-05-14-convert-mkv.md 2023-05-15-preview-troff-man-pages.md 2023-05-16-mass-set-permission.md 2023-05-22-non-blocking-shell-exec-csharp.md 2023-05-23-extend-lua-with-custom-c.md 2023-05-23-parse-rss-with-lua.md 2023-05-24-fresh-9front-desktop.md 2023-05-25-dcss-new-player-guide.md 2023-05-25-show-xterm-colors.md 2023-05-25-tmux-sane-defaults.md 2023-05-27-cronjobs-github-with-actions.md 2023-05-27-dcss-on-4k-displays.md 2023-05-27-drawing-pixels-in-plan9.md 2023-05-28-easy-time-took-in-bash.md 2023-05-29-grep-to-less-maintain-colors.md 2023-05-31-extending-dte-editor.md 2023-06-01-ewd-manuscripts-ebook.md 2023-06-04-bulk-make-thumbnails.md 2023-06-21-presentations-with-markdown.md 2023-06-24-making-cgit-look-nicer.md 2023-06-25-alacritty-open-links-with-modifier.md 2023-06-25-development-environments-with-nix.md 2023-06-29-10gui-10-finger-multitouch-user-interface.md 2023-06-29-60s-ibm-computers-commercial.md 2023-07-10-fix-screen-tearing-on-debian-12-xorg-and-i3.md 2023-07-10-online-radio-streaming-with-mpv-from-terminal.md 2023-07-14-set-color-temperature-of-displays-on-i3.md 2023-08-01-make-b-w-svg-charts-with-matplotlib.md 2023-09-18-aws-eb-pyyaml-fix.md 2023-09-25-compile-drawterm-on-fedora-38.md 2023-11-04-using-ffmpeg-to-combine-video-side-by-side.md 2023-11-05-add-lazy-loading-to-jekyll-posts.md 2023-11-07-personal-sane-vim-defaults.md 2024-02-15-extract-lines-from-file.md 2024-02-21-dcss-online-rc-defaults.md 2024-02-23-uninstall-ollama-from-a-linux-box.md 2024-06-17-calling-assembly-functions-from-c.md 2024-06-17-sending-signals-to-c-programs.md 2024-06-19-embedding-resources-into-binary-with-c.md 2024-06-22-write-and-read-structs-to-files-in-c.md 2024-09-19-use-option-key-as-meta-macos-alactritty.md 2025-02-26-male-and-female-body-proportion-reference-images.md 2025-03-17-vim-ale-linters.md 2025-04-11-lua-performance-in-different-environments.md 2025-06-30-xfce-alt-to-win.md 2025-07-19-minimal-desktop-with-cwm-and-conky.md
pages bookmarks.md curriculum-vitae.md projects.fossil.md.part projects.github.md.part projects.md
posts 2011-01-13-most-likely-to-succeed-in-year-of-2011.md 2012-03-09-led-technology-not-so-eco.md 2013-10-24-wireless-sensor-networks.md 2015-11-10-software-development-pitfalls.md 2017-03-07-golang-profiling-simplified.md 2017-04-17-what-i-ve-learned-developing-ad-server.md 2017-04-21-profiling-python-web-applications-with-visual-tools.md 2017-08-11-simple-iot-application.md 2018-01-16-using-digitalocean-spaces-object-storage-with-fuse.md 2019-01-03-encoding-binary-data-into-dna-sequence.md 2019-10-14-simplifying-and-reducing-clutter.md 2019-10-19-using-sentiment-analysis-for-clickbait-detection.md 2020-03-22-simple-sse-based-pubsub-server.md 2020-03-27-create-placeholder-images-with-sharp.md 2020-03-29-the-strange-case-of-elasticsearch-allocation-failure.md 2020-03-30-my-love-and-hate-relationship-with-nodejs.md 2020-05-05-remote-work.md 2020-08-15-systemd-disable-wake-onmouse.md 2020-09-06-esp-and-micropython.md 2020-09-08-bind-warning-on-login.md 2020-09-09-digitalocean-sync.md 2021-01-24-replacing-dropbox-with-s3.md 2021-01-25-goaccess.md 2021-06-26-simple-world-clock.md 2021-07-30-from-internet-consumer-to-full-hominum-again.md 2021-08-01-linux-cheatsheet.md 2021-12-03-debian-based-riced-up-distribution-for-developers.md 2021-12-25-running-golang-application-as-pid1.md 2021-12-30-wap-mobile-web-before-the-web.md 2022-06-30-trying-out-helix-editor.md 2022-07-05-what-would-dna-sound-if-synthesized.md 2022-10-06-state-of-web-technologies-in-year-2022.md 2022-10-16-that-sound-that-machine-makes-when-struggling.md 2023-01-26-trying-to-build-a-new-kind-of-terminal-emulator.md 2023-05-16-rekindling-my-love-for-programming.md 2023-05-23-i-was-wrong-about-git-workflows.md 2023-05-31-re-inventing-task-runner-that-i-actually-used-daily.md 2023-07-01-bringing-all-of-my-projects-together-under-one-umbrella.md 2023-07-08-who-knows-what-the-world-will-look-like-tomorrow.md 2023-11-05-elitist-attitudes-are-sapping-the-fun-from-programming.md 2024-02-11-k-mer.md 2024-02-28-converting-valgrind-callgrinds-to-svg-format.md 2024-03-10-the-abysmal-state-of-linux-in-the-year-2024.md 2024-03-10-using-custom-software-with-github-actions-to-deploy-a-site.md 2024-03-14-configuration-and-plugin-hell-and-why-i-dont-use-vim-and-tmux-anymore.md 2025-04-08-embedding-game-assets-within-your-binary.md 2026-01-09-vim.md 2026-01-14-change-default-applications-on-linux.md 2026-01-15-using-address-sanitizer-with-clang.md
.gitkeep
static
assets
general animation.gif first.gif github.svg mitja-felicijan-hairytales.pdf trigraphs.gif
notes 10gui-10-finger-multitouch-user-interface.jpg 10gui-10-finger-multitouch-user-interface.mp4 60s-ibm-computers-commercial.jpg 60s-ibm-computers-commercial.mp4 9front-desktop.png asm64-handout.pdf cwm.png dcss-quickstart.pdf dcss.jpg dcss_manual.pdf embedding-assets.png embedding-binary-data.tar.xz embedding-window.png female-body-proportions.jpg grep-less.png male-body-proportions.jpg plan9-pixels.png plot.svg ps1-prompt.png trigraphs.gif xterm-palette.png
posts
algae-sava dji-algae-0.jpg dji-algae-1.jpg dji-algae-2.jpg dji-algae-3.jpg dji-algae-4.jpg dji-algae-5.jpg
cv avatar.gif
dfd-rice desktop.png install-00.png install-01.png install-02.png install-03.png install-04.png install-05.png installation.svg layout.png layout.svg script.png
dna-sequence benchmarks.csv chart-size.py chart-size.svg chart-speed.py chart-speed.svg dna-basics.jpg quote.png sample-binary-file.png sample.png
dna-synthesized
bison in.txt out.mp3 spectogram.png
elektron IMG_0619.jpg IMG_0620.jpg IMG_0622.jpg elektron.mp4 midi-studio.jpg
mouse in.txt out.mp3 spectogram.png
quote in.txt out.mp3 spectogram.png
taurus in.txt out.mp3 spectogram.png
symphony-no6-1st-movement.mp3 symphony-no6-1st-movement.png
do-fuse copy-benchmarks.tsv fuse-droplets.png fuse-spaces.png sqlite-benchmarks.tsv
dropbox-sync dropbox-spaces.png
esp8366-micropython boards.jpg
ewd ewd-manuscripts.epub ewd-manuscripts.mobi
go-profiling golang-profiling-cpu.pdf golang-profiling-mem.pdf
goaccess goaccess-dash-html.png goaccess-dash-term.png
godot-dynamic-tile-loading
example1 index.apple-touch-icon.png index.audio.worklet.js index.html index.icon.png index.js index.pck index.png index.wasm
2d-player-movement.webm cellular-automata.png village-creator.png
helix-editor editor.png
iot-application iot-app-output.png iot-rest-example.png iot-sqlite-db.png kcachegrind.png profiling-viewer.png simple-iot-application-overview.svg simple-iot-application.zip snakeviz.png
microsoundtrack cow.m4v
pid1 boxes.mp4 qemu.log unikernels.png unikernels.svg unikernels.webp
profile-bind-error error.jpg
python-profiling kcachegrind.png profiling-viewer.png snakeviz.png
sentiment-analysis
.ipynb_checkpoints TF Test-checkpoint.ipynb sentiment-analysis-checkpoint.ipynb
guardian-sa-title-desc-relationship.png sentiment-analysis.ipynb
simple-pubsub-server caniuse.png chrome-debugging.png clients.m4v pubsub-overview.png sse-pubsub-server.zip
state-of-web 2008-vs-2020.png compiling-vs-transpiling.png
valgrind-callgrind-svg kcachegrind.png out.c.svg out.zig.svg
vim-gdb demo.mp4
wap emulator.mp4 phones.gif
world-clock enclosure.stl hardware.jpg world-clock.jpg
yapyap hello.png pid1.jpg
zed zed-1.png zed-2.png
mitjafelicijan.pgp.pub.txt
projects ClassicEnhanced-v1.0.0.tar.gz ClassicEnhanced-v1.0.1.tar.gz TurtleTweaks-v0.1.tar.gz TurtleTweaks-v0.2.tar.gz TurtleTweaks-v0.3.tar.gz TurtleTweaks-v0.4.tar.gz TurtleTweaks-v0.5.1.tar.gz TurtleTweaks-v0.5.tar.gz TurtleTweaks-v0.6.tar.gz TurtleTweaks-v0.7.tar.gz abtts-v0.1.tar.gz abtts-v0.2.tar.gz abtts-v0.3.tar.gz blpconvert-v1.0.tar.gz clutch-v1.0.tar.gz jbmafp-v0.1.tar.gz jbmafp-v0.2.tar.gz jbmafp-v0.3.tar.gz lazycommit-v1.0.tar.gz makext-v1.0.tar.gz mprogress-v1.0.tar.gz newsbarge-v0.1.tar.gz oberon-v1.0.tar.gz p9tree-v1.0.tar.gz pats-v1.0.tar.gz pats.fossil rssperado-v1.0.tar.gz sm-v1.0.tar.gz sparklines-v1.0.tar.gz ttdaw-v0.1.tar.gz xmagnify-v1.0.tar.gz xmagnify.fossil
thumbnails glitch.png projects.xcf qwe-editor.png toy-debugger.png
.gitkeep
templates
includes .gitkeep
.gitkeep 404.html base.html bookmarks.html feed.xml index.html note.html page-no-title.html page.html post.html robots.txt sitemap.xml
tools fossil-projects.sh github-projects.py
.gitattributes .gitignore CNAME Makefile README.md config.yaml makext.mk shell.nix
static/assets/posts/godot-dynamic-tile-loading/example1/index.html raw
  1<!DOCTYPE html>
  2<html xmlns='http://www.w3.org/1999/xhtml' lang='' xml:lang=''>
  3<head>
  4	<meta charset='utf-8' />
  5	<meta name='viewport' content='width=device-width, user-scalable=no' />
  6	<title>html1</title>
  7	<style type='text/css'>
  8
  9		body {
 10			touch-action: none;
 11			margin: 0;
 12			border: 0 none;
 13			padding: 0;
 14			text-align: center;
 15			background-color: black;
 16		}
 17
 18		#canvas {
 19			display: block;
 20			margin: 0;
 21			color: white;
 22		}
 23
 24		#canvas:focus {
 25			outline: none;
 26		}
 27
 28		.godot {
 29			font-family: 'Noto Sans', 'Droid Sans', Arial, sans-serif;
 30			color: #e0e0e0;
 31			background-color: #3b3943;
 32			background-image: linear-gradient(to bottom, #403e48, #35333c);
 33			border: 1px solid #45434e;
 34			box-shadow: 0 0 1px 1px #2f2d35;
 35		}
 36
 37
 38		/* Status display
 39		 * ============== */
 40
 41		#status {
 42			position: absolute;
 43			left: 0;
 44			top: 0;
 45			right: 0;
 46			bottom: 0;
 47			display: flex;
 48			justify-content: center;
 49			align-items: center;
 50			/* don't consume click events - make children visible explicitly */
 51			visibility: hidden;
 52		}
 53
 54		#status-progress {
 55			width: 366px;
 56			height: 7px;
 57			background-color: #38363A;
 58			border: 1px solid #444246;
 59			padding: 1px;
 60			box-shadow: 0 0 2px 1px #1B1C22;
 61			border-radius: 2px;
 62			visibility: visible;
 63		}
 64
 65		@media only screen and (orientation:portrait) {
 66			#status-progress {
 67				width: 61.8%;
 68			}
 69		}
 70
 71		#status-progress-inner {
 72			height: 100%;
 73			width: 0;
 74			box-sizing: border-box;
 75			transition: width 0.5s linear;
 76			background-color: #202020;
 77			border: 1px solid #222223;
 78			box-shadow: 0 0 1px 1px #27282E;
 79			border-radius: 3px;
 80		}
 81
 82		#status-indeterminate {
 83			height: 42px;
 84			visibility: visible;
 85			position: relative;
 86		}
 87
 88		#status-indeterminate > div {
 89			width: 4.5px;
 90			height: 0;
 91			border-style: solid;
 92			border-width: 9px 3px 0 3px;
 93			border-color: #2b2b2b transparent transparent transparent;
 94			transform-origin: center 21px;
 95			position: absolute;
 96		}
 97
 98		#status-indeterminate > div:nth-child(1) { transform: rotate( 22.5deg); }
 99		#status-indeterminate > div:nth-child(2) { transform: rotate( 67.5deg); }
100		#status-indeterminate > div:nth-child(3) { transform: rotate(112.5deg); }
101		#status-indeterminate > div:nth-child(4) { transform: rotate(157.5deg); }
102		#status-indeterminate > div:nth-child(5) { transform: rotate(202.5deg); }
103		#status-indeterminate > div:nth-child(6) { transform: rotate(247.5deg); }
104		#status-indeterminate > div:nth-child(7) { transform: rotate(292.5deg); }
105		#status-indeterminate > div:nth-child(8) { transform: rotate(337.5deg); }
106
107		#status-notice {
108			margin: 0 100px;
109			line-height: 1.3;
110			visibility: visible;
111			padding: 4px 6px;
112			visibility: visible;
113		}
114	</style>
115<link id='-gd-engine-icon' rel='icon' type='image/png' href='index.icon.png' />
116<link rel='apple-touch-icon' href='index.apple-touch-icon.png'/>
117
118</head>
119<body>
120	<canvas id='canvas'>
121		HTML5 canvas appears to be unsupported in the current browser.<br />
122		Please try updating or use a different browser.
123	</canvas>
124	<div id='status'>
125		<div id='status-progress' style='display: none;' oncontextmenu='event.preventDefault();'><div id ='status-progress-inner'></div></div>
126		<div id='status-indeterminate' style='display: none;' oncontextmenu='event.preventDefault();'>
127			<div></div>
128			<div></div>
129			<div></div>
130			<div></div>
131			<div></div>
132			<div></div>
133			<div></div>
134			<div></div>
135		</div>
136		<div id='status-notice' class='godot' style='display: none;'></div>
137	</div>
138
139	<script type='text/javascript' src='index.js'></script>
140	<script type='text/javascript'>//<![CDATA[
141
142		const GODOT_CONFIG = {"args":[],"canvasResizePolicy":2,"executable":"index","experimentalVK":false,"fileSizes":{"index.pck":7056,"index.wasm":13789463},"focusCanvas":true,"gdnativeLibs":[]};
143		var engine = new Engine(GODOT_CONFIG);
144
145		(function() {
146			const INDETERMINATE_STATUS_STEP_MS = 100;
147			var statusProgress = document.getElementById('status-progress');
148			var statusProgressInner = document.getElementById('status-progress-inner');
149			var statusIndeterminate = document.getElementById('status-indeterminate');
150			var statusNotice = document.getElementById('status-notice');
151
152			var initializing = true;
153			var statusMode = 'hidden';
154
155			var animationCallbacks = [];
156			function animate(time) {
157				animationCallbacks.forEach(callback => callback(time));
158				requestAnimationFrame(animate);
159			}
160			requestAnimationFrame(animate);
161
162			function setStatusMode(mode) {
163
164				if (statusMode === mode || !initializing)
165					return;
166				[statusProgress, statusIndeterminate, statusNotice].forEach(elem => {
167					elem.style.display = 'none';
168				});
169				animationCallbacks = animationCallbacks.filter(function(value) {
170					return (value != animateStatusIndeterminate);
171				});
172				switch (mode) {
173					case 'progress':
174						statusProgress.style.display = 'block';
175						break;
176					case 'indeterminate':
177						statusIndeterminate.style.display = 'block';
178						animationCallbacks.push(animateStatusIndeterminate);
179						break;
180					case 'notice':
181						statusNotice.style.display = 'block';
182						break;
183					case 'hidden':
184						break;
185					default:
186						throw new Error('Invalid status mode');
187				}
188				statusMode = mode;
189			}
190
191			function animateStatusIndeterminate(ms) {
192				var i = Math.floor(ms / INDETERMINATE_STATUS_STEP_MS % 8);
193				if (statusIndeterminate.children[i].style.borderTopColor == '') {
194					Array.prototype.slice.call(statusIndeterminate.children).forEach(child => {
195						child.style.borderTopColor = '';
196					});
197					statusIndeterminate.children[i].style.borderTopColor = '#dfdfdf';
198				}
199			}
200
201			function setStatusNotice(text) {
202				while (statusNotice.lastChild) {
203					statusNotice.removeChild(statusNotice.lastChild);
204				}
205				var lines = text.split('\n');
206				lines.forEach((line) => {
207					statusNotice.appendChild(document.createTextNode(line));
208					statusNotice.appendChild(document.createElement('br'));
209				});
210			};
211
212			function displayFailureNotice(err) {
213				var msg = err.message || err;
214				console.error(msg);
215				setStatusNotice(msg);
216				setStatusMode('notice');
217				initializing = false;
218			};
219
220			if (!Engine.isWebGLAvailable()) {
221				displayFailureNotice('WebGL not available');
222			} else {
223				setStatusMode('indeterminate');
224				engine.startGame({
225					'onProgress': function (current, total) {
226						if (total > 0) {
227							statusProgressInner.style.width = current/total * 100 + '%';
228							setStatusMode('progress');
229							if (current === total) {
230								// wait for progress bar animation
231								setTimeout(() => {
232									setStatusMode('indeterminate');
233								}, 500);
234							}
235						} else {
236							setStatusMode('indeterminate');
237						}
238					},
239				}).then(() => {
240					setStatusMode('hidden');
241					initializing = false;
242				}, displayFailureNotice);
243			}
244		})();
245	//]]></script>
246</body>
247</html>
248