by giis on 1/8/24, 3:13 AM with 27 comments
by rwmj on 1/8/24, 11:45 AM
https://archive.fosdem.org/2019/schedule/event/nbdkit/
Edit: If you're confused about the bit where I talk about the filesystem trims in "blue", well that's because apparently the projector at FOSDEM could not render the light blue colour I was using. I didn't know about this while giving the talk, it looked fine on the laptop screen. There's an accompanying video on my blog which is rendered correctly: https://rwmj.wordpress.com/2018/11/04/nbd-graphical-viewer/
by xt00 on 1/8/24, 8:39 AM
by Cieplak on 1/8/24, 10:05 AM
It can be helpful to plot these sorts of pixel arrangements on a Hilbert curve, rather than plotting pixels line by line. I learned this trick from a Ghidra plugin called cantordust [2]. 3blue1brown offers some mathematical intuition for the effectiveness of a Hilbert curve pixel arrangement [3].
[1] https://github.com/FireyFly/pixd
[2] https://inside.battelle.org/blog-details/battelle-publishes-...
by anupcshan on 1/8/24, 7:45 AM
by d33 on 1/8/24, 11:39 AM
dd if=/dev/zero bs=1K count=$(( 256 * 3 )) of=a.ext4
mfks.ext4 a.ext4
mkdir a
sudo mount a.ext4 a
cd a
sudo chown 1000:1000 .
python3 -c 'open("a", "wb").write(b"\xff\x00\x00" * 2000)'
python3 -c 'open("b", "wb").write(b"\xff\xff\x00" * 2000)'
python3 -c 'open("c", "wb").write(b"\xff\x00\xff" * 2000)'
cd ..
sudo umount a
(echo -n 'P6\n512 512\n255\n' ; cat a.ext4 ) > a.ppm
convert a.ppm a.png
The resulting a.png is reversible - you can convert it back to .ppm file, skip first 15 bytes and you should get a valid .ext4 back.
by aunderscored on 1/8/24, 6:44 AM
by sgarland on 1/8/24, 11:54 AM
[0]: https://github.com/jeremycole/innodb_ruby
[1]: https://blog.jcole.us/2014/10/02/visualizing-the-impact-of-o...
by philsnow on 1/8/24, 6:56 PM
ffmpeg -i ext4.gif -pix_fmt yuv420p -c:v libx264 ext4.mp4
and serving it with <video controls>
<source src="ext4.mp4" type="video/mp4">
</video>
by H8crilA on 1/8/24, 1:03 PM
by densh on 1/8/24, 1:02 PM