Random snippets of all sorts of code, mixed with a selection of help and advice.
Ofelia scheduler job-run skips command arguments passed to custom Docker entrypoint script
17 June 2026 @ 2:49 am
I'm using Ofelia (mcuadros/ofelia:latest) as a cron scheduler alongside a custom Python/Scrapy batch container.
The batch container (archiver) is designed to spin up, run a single spider task, and then shut down. When it boots, it uses a custom bash entrypoint.sh script to check for a database file, run Alembic migrations, and then execute whatever trailing command arguments were passed to it via exec "$@".
The Problem
When Ofelia triggers the cron job, the container successfully boots and runs its database migrations. However, it always exits early claiming that no command arguments were provided.
Ofelia's logs clearly show it is invoking the command:
[Job "weekly-full-indexer" (937e3da66dd6)] Started - scrapy crawl my_spider
But inside the container, the bash script's argument count check ($# -eq 0) triggers, printing out my fallback me
How do I start building a custom AOSP-based OS for a POS device?
17 June 2026 @ 2:39 am
I want to build my own Android operating system based on AOSP for a Point of Sale (POS) device, but I am not sure where to start.
My requirements are:
The OS will run only on dedicated POS hardware.
Users should not be able to install arbitrary applications from APK files, Google Play, or other sources.
I want to customize the boot process and possibly use a custom bootloader.
The device should boot directly into my POS application (kiosk mode).
System settings should be restricted so users cannot modify important configurations.
I may need remote updates for the OS and the POS application.
I would like to remove unnecessary Android components to reduce the attack surface and improve performance.
My background is mostly application development, and I have only recently started experimenting with AOSP builds for the Android emulator.
W
Interfacing an ICS43434 MEME Mic with an ESP32
17 June 2026 @ 2:21 am
I'm trying to get an ICS43434 MEME mic which uses I2S to work with an ESP32-WROOM-32D with no luck.
I have the following module:
https://www.adafruit.com/product/6049?s ... f3UZiuYQ2c
And I'm running the following code:
#include <driver/i2s.h>
#define I2S_WS 17
#define I2S_SD 14
#define I2S_SCK 12
// Use I2S Processor 0
#define I2S_PORT I2S_NUM_0
// Define input buffer length
#define bufferLen 64
int16_t sBuffer[bufferLen];
void i2s_install() {
// Set up I2S Processor configuration
const i2s_config_t i2s_config = {
.mode = i2s_mode_t(I2S_MODE_MASTER | I2S_MODE_RX),
.sample_rate = 44100,
.bits_per_sample = i2s_bits_per_sample_t(16),
.channel_format = I2S_CHANNEL_FMT_ONLY_LEFT,
.communication_format = i2s_comm_format_t(I2S_COMM_FORMAT_STAND_I2S),
.intr_alloc_flags = 0
Github pages form to Post to ... image? To Discord?
17 June 2026 @ 2:15 am
I've got a cockamamie scheme. Context, I've got a github pages site as a spot for info for a pokemon game I'm playing with my friends. My friends have started posting fake twitter posts in discord "in-character" as their pokemon trainers. I put together some html/css to format jekyll posts as these tweets to put on the page. My experience outside of html and css is not very much.
Part 1 of my scheme, I'd LIKE to be able to use a form for my buddies to submit posts themselves and just stick the correct values into the markdown frontmatter. I'm hoping I can do this with Staticman? Unsure how but it seems possible.
Part 2 of my scheme, render the posts with formatting as something, i guess an image. I imagine I'll have to self-host something to run this part, but I barely know how to start with it tbh.
Part 3, post image-posts to discord channel. Seems doable enough with an rss feed situation.
As stated, I am pretty inexperienced with most kinds of
Any advice for the data analytics career world?
17 June 2026 @ 2:13 am
I'm taking college courses and my professor recommended that I take Google Analytics. I am very interested in this area of study and I am wondering if after I am finished with this course, if it is possible to get employment with just the certificate until I have graduated. If you were to recommend something to study alongside this, what would it be? I'm a spreadsheet whiz kid, and I love the straightforward nature of SQL. What kinds of things can I do with these three things? Any leads to get there? Indeed and Glassdoor are a joke anymore.
Thanks!
Which programming language is best for novice programmers to learn first?
17 June 2026 @ 2:08 am
I am an incoming freshman majoring in Electrical Engineering, and I am about to start learning programming. With so many programming languages available, I am unsure which one to choose first. I would highly appreciate any advice or recommendations from the experts.
When using the XVF3800 for white noise recording, there will be fluctuations in the initial stage
17 June 2026 @ 1:34 am
Using the XVF3800 chip, when recording white noise sound with the original mic output, there was a fluctuation at the beginning stage.
1. The current operation method is to control the chip using the xvf_host tool, with the command "xvf_host AUDIO_MGR_OP_L 3 0" and "xvf_host AUDIO_MGR_OP_R 12 0" for processing. After setting, the white noise is played through Audacity while recording the sound.
2. In the audio settings of Audacity, the host (H) is set to Windows WASAPI, the project sampling rate is set to 48000 Hz, and the channel is set to mono. The generated white noise has an amplitude of 1.
3. The test was conducted using an exposed microphone board. The firmware used for the test was provided by the supplier. The current architecture platform is 64-bit x86, and the firmware was burned using dfu-util.
Could you please help me analyze what exactly caused this? I now suspect that it might be a problem with the firmware and the mother
aerospace engineer new to programming, need guidance
17 June 2026 @ 1:16 am
Sorry to bother. I’m currently a second-year Aerospace Engineering student, and I’m looking for some guidance on how to properly restart my programming journey and pivot my career goals.To give you some background, during my first year, I took a year-long course in Python. The syllabus was divided into two main parts:
1. Programming Fundamentals:
Introduction to IDEs, code editing, execution, and debugging.
Data types, assignments, operators, arithmetic, and logical expressions.
Control flow (conditional structures and iterative loops).
Data structures (vectors, matrices, lists, and operations on them).
Functions (intrinsic functions, standard libraries, and user-defined functions).
Structured programming (Input/Output, file handling, and modules).
2. Applied Math & Numerical Methods:
Linear systems,
How do I read a python CSV file in a fortran program? [closed]
17 June 2026 @ 1:09 am
When I try to read a python CSV (comma separated values) file in a fortran program I get a end-of-file execution error.
I have tried including the commas as literals in the format declaration and the compiler will not accept this in a read file.
I have considered the commas as blanks in the format declaration but I still get the end-of-file execution error.
How can I handle this in a fortran program?
All the answers so far are fortran->python, I need to go python->fortran
How to make FlaUI GUI test respond to WeakReferenceMessenger.Default.Send?
17 June 2026 @ 12:02 am
I have some NUnit unit tests that use FlaUI to run GUI tests on a c# wpf application. The color of my controls should update when the WeakReferenceMessenger.Default.Register part of the code is hit. So I have a unit test that starts the application and navigates to the window under test and then calls WeakReferenceMessenger.Default.Send to send the message. The running application does not seem to update when I send the message. How to use WeakReferenceMessenger to send the message externally? Otherwise, how can I test the GUI updates using FlaUI?