RSSAmplifier

Blog

ciesie.com

Recent content on ciesie.com

ciesie.comRSS feed ↗59 posts

Latest posts

Parsing JSON-RPC in C

Yeah you&rsquo;re not convincing me that JSON-RPC is a real protocol < &#xA; &#xA; &#xA; Let&rsquo;s deal with JSON-RPC in C! Something I don&rsquo;t ever want to hear when sipping an iced coffee, during a sunny, June afternoon. Fortunately, it&rsquo;s January and I haven&rsquo;t seen the sun in a while! This article is sponsored by my lack of vitamin D! &#xA; I have been building my own Moonraker…

Things I&#39;m looking forward to in 2026

AI wheels coming off < &#xA; &#xA; &#xA; Do you remember&#xA; people loudly proclaiming we’ve built a sentient intelligence ? &#xA; Because you should. Those people should be remembered as the first line of “intellectuals” that has fallen to the onslaught of AI propaganda. AI is a marketing term and in the last few years it has become a test, just like NFTs, testing your resilience to corporate…

Ender 3 and the power of 3D printing community

I really like my Ender 3. After several necessary upgrades, I think I&rsquo;ve reached a place where it&rsquo;s&#xA;dependable and I know it well enough to fix most of the issues. Moving apartments forced me to&#xA;pull it apart. That became a perfect opportunity to build it back up into something better. &#xA; I&rsquo;ve always had an issue with leveling the bed - me, and everyone else who bought…

Well, it seems you just don&#39;t like programming

I already tried to write a blog post about AI. An article, discussing AI generated art, still&#xA;festers in my drafts folder. As someone who enjoys 3D modelling, drawing, animating, someone&#xA;who believes in art lifting our spirits, I find it pointless and distasteful. Not much to&#xA;discuss. &#xA; Here are some loose thoughts about AI, mostly from software development perspective, but…

Update for December, &#39;here we go again&#39; 2024

It&rsquo;s been a while since I have written one of these. There&rsquo;s definitely a cadence to these.&#xA;That cadence would be something between once and thrice a year. 2024 will have to make with&#xA;just one. &#xA; I have spent a bit of time understanding the ggwave &#xA;project, which allows for sending data over sound. It&rsquo;s not an extremely complicated protocol.&#xA;I think the most…

Tagged Unions - bag them and tag them

I have recently tried to update my Zig project from 0.11.0 version of Zig, to 0.12.0. Zig compiler brings in its own build system. Since Zig is still under development, that API changes. The 0.12.0 changes forced me to dive a bit deeper into Zig&rsquo;s source code. I went through Build.zig and Step.zig . What caught my attention was the usage of Tagged Unions . &#xA; Tagged unions aren&rsquo;t…

Custom Linux build for Raspberry PI with Buildroot

It seems working in embedded means you&rsquo;ll, sooner or later, use a Raspberry PI.&#xA;At my current work place we use Raspberry PIs, connected to the hardware we&rsquo;re developing for,&#xA;as Github CI runners.&#xA;Anytime we want to add a new runner we need to flash an SD card and manually install all&#xA;the dependencies and tools. &#xA; What I&rsquo;m looking for is an ability to generate…

Naive comments system

This website used Cactus comments system, which leverages&#xA;Matrix protocol. It was a nice little experiment but it&rsquo;s a half baked project, which&#xA;didn&rsquo;t grow in the last few years. I have decided to make my own comment system.&#xA;Something as simple as possible, where comments are stored in the most universal way possible.&#xA;Because systems change, but data? Data is forever.…

1S Li-Po battery charger

One day I hope to design a product with quality of a commercial product. I do not feel I can go&#xA;through the entire process by myself. While I might never be able to do that, I still want to&#xA;close as much of that gap as possible. &#xA; This time the exercise was to design a PCB that can charge a 1S Li-Po battery. The design is not&#xA;a product of my lacking, electronics knowledge.…

Emotional value of the bytes you don&#39;t own

For a long while now I&rsquo;ve been using Google Photos service to store my photos. Few years ago I&rsquo;ve switched to using iOS devices and Apple &rsquo;s ecosystem. That made me start using Apple Cloud service. I guess my life would be simple if not for the fact that these two places don&rsquo;t store my entire photos collection. Some photos and videos are stored on my local drive, backed up…

Alternative social media and federation

At this point most people are pretty cynical about social media. The worst offender in that&#xA;space is Facebook , recently rebranded into Meta . In a world constantly incentivized by&#xA;profit it&rsquo;s difficult to imagine Meta optimizing for anything else. The striking part&#xA;was always how cunning and ruthless they are in pursuing profit. Nevertheless, despite many&#xA;controversies…

MagKnob

Let&rsquo;s control volume with a (moderately) fancy knob! &#xA; &#xA; &#xA; &#xA; &#xA; &#xA; AS5601 might be my favourite sensor right now. It&rsquo;s an on-axis magnetic&#xA;rotary position sensor. It generates a signal typical for encoders, but it does it by detecting the&#xA;change in a magnetic field of a diametrically magnetized, rotating magnet. &#xA;&#xA; &#xA; &#xA;&#xA; &#xA;&#xA; The…

Website... this website

You should start a website. It&rsquo;s quite fun!

Update for September, year of the new hope 2021

I&rsquo;ve not written one of those at all this year. Not surprisingly, the most productive year for this&#xA;website was 2020&hellip; thanks global pandemic&hellip;? &#xA; I&rsquo;ve posted the RFID Explained blog post. I&rsquo;m trying to&#xA;gather everything I&rsquo;ve learned, while working on my RFID project, in one place. This is an&#xA;assumption but in the maker&rsquo;s space a lot of…

[STM32] - part 4 - CPU goes brrrrr

This is the final part of a series of articles. I&rsquo;d suggest going through part 1 ,&#xA; part 2 and part 3 first. &#xA; I&rsquo;ve been working on a project (which you can find here ),&#xA;using Bluepill board with a&#xA; STM32F103C8T6 microcontroller. It&rsquo;s a USB keyboard project. It uses the libopencm3 project and&#xA;I&rsquo;d consider this a pretty minimalistic, baremetal project.…

You can’t create in a bad environment

Recently I haven’t been as productive as I’d like. Sure, the pandemic took its toll.&#xA;The summer is coming and if there is a time to consume what life has to offer,&#xA;instead of producing what you have to offer, this is it. Productivity should&#xA;never be the goal in itself. &#xA; Nevertheless, I could be better at focusing on what’s important. Significant amount&#xA;of time gets wasted.…

[WIP] RFID Explained

RFID is complex but It&rsquo;s also fun. Personally I find this technology to be a bit underutilized.&#xA;I&rsquo;d like to explain it in a simple way so you don&rsquo;t have to do the &ldquo;wait, what?&rdquo; through the many, many&#xA;documentation PDFs. I hope to give you some confidence and maybe inspire you to do something fun with RFID. &#xA; My experience is that you either grab the…

Perks and difficulties of tech blogging

Having your own blog is a very interesting experiment. Like any other project it will teach you&#xA;something. Your writing skills will improve (that&rsquo;s an assumption but it&rsquo;s difficult not to improve&#xA;if you do it regularly). If you&rsquo;re not writing in your native language, you&rsquo;ll improve in the&#xA;language you do write in. You&rsquo;ll notice holes in your understanding…

C as a scripting language thanks to TinyCC

This year I&rsquo;d like to play around with music. Mostly live looping. Live looping is a pretty specific&#xA;way of making music. It&rsquo;s about recording short, simple music clips and overlaying those to create&#xA;more complex and interesting music. &#xA; A recent googling session took me to OpenAV &rsquo;s website. It&rsquo;s Harry Van Haaren&rsquo;s initiative.&#xA;He&rsquo;s focusing on…

Update for December, year of total chaos 2020

This will be the last update for 2020. We&rsquo;re almost on the other side! We shouldn&rsquo;t expect much out&#xA;of 2021, since the time doesn&rsquo;t care about our labels. Still, there is a feeling of hope that we&rsquo;ll&#xA;be able to, slowly, transition to post pandemic world. How will that world look like? Time will&#xA;tell. &#xA; Last few months have been very productive for me. For…

My terminal, coding workflow - i3, Kakoune, nnn

If I&rsquo;m working on code or tech related tasks, I&rsquo;m doing it on Linux . That&rsquo;s because I enjoy&#xA;spending my time in terminal. I like playing around with new command line tools and fitting&#xA;them into my workflow. Improving my process is important so I often try to update parts of&#xA;my setup. The goal is to reduce the friction between my intention and execution. &#xA; Linux…

Communication with Blender via Python RPC

My current 3D graphics setup revolves around Blender , ZBrush and, less often, Marmoset Toolbag 3 .&#xA;Transferring the meshes between ZBrush and Blender is the constant dance of exporting and&#xA;importing (yes, I know about GoB but it&rsquo;s not good enough for me). I strongly dislike this&#xA;back and forth. I feel it adds a lot of friction, throws me off and wastes a lot of time.&#xA;That…

Flexbile Python use in Blender

This post is about using Python in Blender . It&rsquo;s not a tutorial. It&rsquo;s more of an inspiration&#xA;to learn and experiment with Python. &#xA; Imagine you work on a piece. The first stage is very experimental. You look for what works and what&#xA;doesn&rsquo;t. At some point the piece and the process take shape. Some things become repetitive. It&rsquo;s&#xA;very useful to notice those…

(Basic) Thoughts on Nim

Warning : this is a very opinionated post. I&rsquo;m not claiming I&rsquo;m right. I&rsquo;m describing&#xA;my observations. &#xA; This is a great time when it comes to new, fun programming languages. Languages&#xA;like Rust , Zig , Odin , Nim , Jai bring something new to the table. Those&#xA;are only the languages I&rsquo;m keeping tabs on. There is way more projects worth following. &#xA; This…

Update for August, year of total chaos 2020

Close to month and a half has passed since the last update. So many things have happened during that&#xA;time. I&rsquo;ll only write about tech related topics. It&rsquo;s not a hard constraint but it&rsquo;s also not a&#xA;personal blog about my life. &#xA; The project that takes most of my free time is the custom controller for CG artists. Unfortunately&#xA;the BLE version is on hold. I have not…

Song practice app concept

If you&rsquo;ve ever tried to get better at playing a particular song you want to learn, you might want&#xA;to first learn it in chunks. After you feel good with those chunks you start putting it all&#xA;together. Then you realize, you still suck at some of those chunks, so you practice them. &#xA; It would be nice to have a tool that works well for that process. I didn&rsquo;t feel like coding…

Update for July, year of total chaos 2020

I&rsquo;m trying something new. I&rsquo;d like to regularly write some sort of an update which explains what&#xA;I&rsquo;m working on. Since this website doesn&rsquo;t generate any meaningful traffic, I&rsquo;m doing this for&#xA;myself. I&rsquo;m not imposing any strict time frame on this. I don&rsquo;t want to do this too often, since&#xA;I don&rsquo;t want my blog to be full of posts like this…

Adding comments system to this website

I&rsquo;ve started this website with the Beautiful Hugo theme. At that point in time I was learning&#xA;how Hugo works. I knew I wanted to design my own theme, only because I like customizing and&#xA;designing. The theme I&rsquo;m currently using was designed and written by me. I&rsquo;m not a web developer&#xA;so it&rsquo;s not professional quality. It&rsquo;s made by me - that&rsquo;s what…

Bluetooth Graphics Controller

Process < &#xA; &#xA;

Connecting Ender3 to WiFi with ESP32

If you dabble in 3D printing, you&rsquo;ve probably stumbled upon the OctoPrint project .&#xA;It&rsquo;s a web interface for your printer. It&rsquo;s a very cool project with lots of features. The typical&#xA;use case is to host OctoPrint on a Raspberry PI . That requires a bit of fiddling around if you&#xA;want to power it from the printer&rsquo;s power supply. It&rsquo;s a very popular project…

Microphone stand for Novox NC-1 microphone

I like the idea of small, weekend projects. Something small you can make in a weekend. I&rsquo;ve used&#xA;the last two days to play around with an idea for a microphone stand. That&rsquo;s because the microphone&#xA;stand I&rsquo;ve got when buying the microphone is really, really bad. It&rsquo;s unstable and can barely hold&#xA;the weight of the microphone, which in my case is the Novox NC-1…

Learning Zig - first hour...

Today I&rsquo;ve played around with Zig , the new, hip (is it hip?) programming language. I find it&#xA;pretty neat. I&rsquo;m going to walk you (and myself) through my first, very short, piece of code. &#xA; Below you can see the entirety of it. It basically allocates a 2MB buffer and reads a file into&#xA;it&hellip; Yep, not particularly impressive, but this is a judgment free, learning zone,…

Cool, new language for 2020

A lot of new programming languages pop up here and there. It&rsquo;s a very interesting moment to pick&#xA;a new one up. The ones I&rsquo;m interested in are Rust , Nim and Zig . &#xA; Rust ? Might be a good choice but it&rsquo;s intimidating. I&rsquo;m not convinced yet that what it brings to&#xA;the table justifies its difficulty&hellip; Nim is pretty cool. Don&rsquo;t have that much experience…

Derotating image with EXIF orientation

If you want to overlay a rendered graphics on top of an image or a static video in Blender&#xA;you should use the fSpy tool. It matches the camera to specified frame&#xA;of reference. Unfortunately it doesn&rsquo;t support EXIF meta information. That means that&#xA;it sometimes fails to properly orient an image. &#xA; When it comes to an image orientation there are two factors: how image is…

Pointers to pointers in C

Pointers seem to be the most confusing part about C. It takes a while to fully understand them.&#xA;As soon as you start feeling what they are about you stumble on a pointer to a pointer. Technically&#xA;not that much changes but, again, it takes a while to create a solid understanding of what&rsquo;s going&#xA;on. As they say: you don&rsquo;t understand something if you can&rsquo;t explain it in…

Communication with Blender via sockets

I&rsquo;m always curious about expanding functionality and improving workflow by connecting devices to&#xA;software that I already enjoy using. I love using Blender and making custom controllers for&#xA;creating computer graphics is something very interesting to me. &#xA; As long as a program has a scripting environment or a plugin support, you can usually connect&#xA;anything you like to it. In…

What problem does it solve?

My experience in tech industry isn&rsquo;t that big. It would be something around 5 years working as a&#xA;coder. This industry moves fast, things change, new technologies emerge on daily basis. In order&#xA;to do my job well I have to constantly learn something new. I enjoy that a lot. Learning is great.&#xA;It allows you to look at the world differently than you did before. &#xA; Sometimes…

SparkFun Thing Plus - Ambiq Apollo3 - part 1

Driven by the idea of building a Bluetooth keyboard like device, I&rsquo;ve bought the SparkFun Artemis Thing&#xA;Plus board. It&rsquo;s a board designed for small, power efficient devices with Bluetooth capability. &#xA;&#xA; &#xA; &#xA;&#xA; &#xA;&#xA; The board carries an Ambiq Apollo3 processor. It&rsquo;s an ARM Cortex-M4F chip. Runs at 48MHz but&#xA;can, for a brief amount of time, go up to…

Blender - text with scanlines

With the release of Blender 2.8 I went back to messing around with graphics.&#xA;I would like to be able to replicate some of the, already existing, effects.&#xA;Nothing fancy. Nothing new. At the same time looking&hellip; good! I also would like&#xA;to explain the process to learn and improve. &#xA; Lets look at a text with some scanlines. &#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA; &#xA; &#xA;&#xA;…

Debugging image resources

I work a lot with image processing. There is a lot of transformations and sub&#xA;images extraction. Often, it would be great to actually see those images when&#xA;debugging. Quick Google search pointed me to the dump command present in gdb . &#xA; In short, to get the memory dump, you would do something like this: &#xA;&#xA;&#xA;&#xA; set $source = pointer_to_the_memory&#xA; set $size_of_the_dump…

Node based GUI app

Inspired by a horrible Jenkins CI workflow I thought about a GUI app that could&#xA;help compose and request/monitor CI jobs. Node based GUI seemed like an&#xA;interesting option for that. I&rsquo;ve tested several technological stack to develop&#xA;something like that and here are my observations. &#xA;&#xA;&#xA;&#xA;&#xA;&#xA;&#xA; &#xA; &#xA;&#xA; &#xA; &#xA; &#xA;&#xA; &#xA; &#xA;&#xA; Nodes…

Time tracker

THIS IS A WORK IN PROGRESS < &#xA; &#xA; &#xA; Below you will find log entries that describe the design/thinking process. &#xA; Idea < &#xA; &#xA; &#xA; The goal is to build a device that could allow me to comfortably measure time spent on a&#xA;project. I want to have a full history of the time spent on particular project. The time log&#xA;needs to be plain text, easily queried and human…

Fuel gauge - Godot Engine

I&rsquo;ve made a small visualization of a motorcycle fuel gauge in&#xA; Godot engine . It allows you to disassemble the gauge&#xA;and learn what&rsquo;s inside without actually buying a motorcycle&hellip; I did&#xA;that for you&hellip; &#xA; &#xA; &#xA;

Wii Nunchuk as a USB HID controller

TL;DR < &#xA; &#xA; &#xA; You can find the source code here . &#xA; I used the Wii Nunchuk controller to prototype one handed controller for creating&#xA;computer graphics. I used the Blue Pill board which carries a STM32F1 &#xA;microcontroller with a built-in USB peripheral . That allowed me to implement&#xA;it as a true USB HID (Human Interface Device) for the Windows OS . &#xA; The results were…

Black magic probe out of cheap STLink programmers

If you have ever worked with ARM Cortex M processors you&rsquo;ve probably used GDB +&#xA; OpenOCD combo for debugging. If you didn&rsquo;t: OpenOCD connects to the processor&#xA;via a STLink programmer and opens a socket to which GDB can connect. It will push&#xA;data necessary for debugging (and understandable for GDB ) through this socket.&#xA;That means that if you connect GDB to this socket…

Using txti.es &#43; Python as a data dashboard

Have you ever heard about txti.es ? It&rsquo;s a basic web page creator. You can basically&#xA;create a very simple website by typing content into a form. I thought it might be used as a&#xA;very simple frontend. &#xA; I always dabbled with automation. An example would be a scraping script that gets the job&#xA;postings from a specific website or one that checks when the bus I take every morning…

Creators responsibility

Recently I&rsquo;ve enjoyed reading blog posts by Nikita .&#xA;You can find the blog here . One blog post I see quoted often is&#xA; this one (you can read it in 6 languages - that&#xA;says something). It&rsquo;s about the disastrous state of current software development. &#xA; The author brings a lot of good points. The message is that no one puts effort&#xA;into making software performant. We…

Setting up a PiHole

What&rsquo;s a PiHole ? < &#xA; &#xA; &#xA; It&rsquo;s basically a DNS sinkhole. DNS servers resolve domain names into IPs. DNS&#xA;sinkholes are basically faulty DNS servers. For example when you go to a website&#xA;your web browser will also download ads. In order to get them it has to&#xA;resolve the domain name of the ads provider into an IP. That&rsquo;s what DNS server&#xA;does. PiHole is…

Setting your pc for remote access

I&rsquo;m not sure I need it. Maybe you will. It is an exercise in excess.&#xA;I rarely need something from my home PC because nowadays it&rsquo;s so easy&#xA;to store things in the magical cloud . Still, it&rsquo;s a nice exercise. &#xA; I have set up remote access on Void Linux and I will describe the&#xA;process of doing so for that OS. You might encounter some problems&#xA;if you are using…

Capacitive buttons keyboard

A video showing the a keyboard made with capacitive buttons. &#xA; &#xA; &#xA; &#xA;&#xA; Source code