Random snippets of all sorts of code, mixed with a selection of help and advice.
Why does a DAG created in /dags take time to appear in the UI?
7 April 2026 @ 5:31 am
In Apache Airflow, when a new DAG file is created in the /dags directory, it doesn't show up immediately in the Airflow UI. There is some delay before the DAG becomes visible and accessible.
Why does this happen?
How can we make it appear faster?
What is the best way to handle this?
How do I convert java .jar code to typescript?
7 April 2026 @ 4:47 am
I have a refactor job to convert contents in a .jar file into typescript. It is a pretty big codebase with many proprietary dependencies. So all the dependencies also have to be converted to TS. How can I go about this without just brute forcing with claude?
Git strategy for small team working on cloned project
6 April 2026 @ 9:39 pm
I have a clone of a project that I don't own. I am "customizing" the project by mostly adding files and periodically modifying upstream files.
I do my work on feature branches off dev. The purpose of dev is to aggregate my features and changes to the project.
I need to periodically "update" dev with upstream/main.
This is where I always run into trouble with merge conflicts or wiped out changes.
What does this community advise for a git workflow that makes updating to upstream/main less daunting of a task?
How to create a vector where each number doubles the last number?
6 April 2026 @ 5:33 pm
For example, I am trying to create a vector where the output would be 1, 2, 4, 8, 16... and so on.
I was attempting to use the rep-function, but now I am not even sure if that's the right place to start.
SSRS Stacked Bar Sorting by Series (Count of Series groups) within each Category Group
6 April 2026 @ 3:27 pm
I have a stacked bar report where the x-axis is a month ID, 202503 through 202604, a 13 month sliding window.
The stacked bars are different type of allegations (RCSPrimary). My user wants each Month_ID sorted by the number of each allegation, count of allegations. I've added 2 different flavors of SQL to do this, creating a column, SeriesFrequency, that does this essentially, and when I group on that column to sort the Series group, each month ID (x-axis, category) is indeed sorted by number of allegations.
, row_number() OVER(PARTITION BY Month_ID order by count(A.Allegation) desc) AS SeriesFrequency
But the legend duplicates and the colors for each allegation type in the legend change. I believe I know what is happening. It's because the SeriesFrequency can change for any allegation in any month
The stacked bars are different type of allegations (RCSPrimary). My user wants each Month_ID sorted by the number of each allegation, count of allegations. I've added 2 different flavors of SQL to do this, creating a column, SeriesFrequency, that does this essentially, and when I group on that column to sort the Series group, each month ID (x-axis, category) is indeed sorted by number of allegations.
, row_number() OVER(PARTITION BY Month_ID order by count(A.Allegation) desc) AS SeriesFrequency
But the legend duplicates and the colors for each allegation type in the legend change. I believe I know what is happening. It's because the SeriesFrequency can change for any allegation in any monthHow would you describe the Java programming language to a beginner?
6 April 2026 @ 3:14 pm
I've noticed in my Information Systems course that many people still lack the specific knowledge to program, and don't even understand a new and complex language like Java. We're in our third semester, and even so, we're having a lot of difficulty really understanding what the professors are actually trying to teach. Therefore, I'd like to know, "If you were teaching someone Java from scratch, what would your explanation be for understanding the basics?"
Does the new Lazarus 4.6 work on Intel macOS 10.15 Catalina?
22 March 2026 @ 10:51 pm
I'm trying to use Lazarus 4.6 on macOS Catalina 10.15.8 on a macBook with an Intel processor. I have Lazarus 4.4 installed and it works. I also have XCode 12.4 installed.
I downloaded lazarus-darwin-x86_64-4.6.zip, turned off the quarantine flag, and unpacked it. Both the lazarus.app and startlazarus.app applications have the circle-bar across their icons. Double-clicking either brings up a notice that says:
You can't use this version of the the application "lazarus" with this version of macOS.
You have macOS 10.15.8. The application requires macOS 15 or later.
Poking around in the Info.plist files, I don't see the OS range specified, so I don't know why or how that message comes up. Also, the posting on their forum mentions macOS 10.12, so if that older release is supported, I thought 10.15 would be, too.
Any clues?
Got TLS error trying to find package. TLS Error When Running flutter doctor or pub upgrade
22 March 2025 @ 3:31 am
I recently updated Flutter to version 3.29.2, and since then, I have been experiencing issues when running flutter doctor or pub upgrade. The error message I receive is:
flutter doctor
Building flutter tool.
Running pub upgrade - -.
Resolving dependencies ..
Got TLS error trying to find package crypto at https://pub.dev.
Error <69>: Unable to
Ratseconds ... (9 tries left>
flutter tool. Retrying in five
Waiting for 0 seconds, press CTRL+C to quit
Running pub upgrade.
Resolving dependencies ... (41.6s>_
I have tried the following solutions, but the issue persists:
Checked my internet connection and ensured https://pub.dev is accessible from my browser.
Used a VPN to bypass possible network restrictions.
Ran flutter upgrade --force, but the error remains.
Deleted the bin/cache folder inside the Flutter directory and retried flutter doctor.
Unset any p
Puppeteer does not generate .pdf file
7 June 2024 @ 4:43 pm
I want to use puppeteer to generate pdf file by visiting my website. The problem is that while the screenshot method works fine, I can't produce pdf file. This is my code:
async generatePdfByWisitingWebsite(user: UserEntity, data: InputGetPdfDto) {
const browser = await puppeteer.launch({ headless: true, protocolTimeout: 500000 });
const page = await browser.newPage();
await page.goto('http://localhost:3000/login', { waitUntil: 'networkidle2' });
await page.type('#email', '...');
await page.type('#password', '...');
await page.click('#loginButton');
await page.waitForNavigation({ waitUntil: 'networkidle2' });
await page.goto('http://localhost:3000/app/account', { waitUntil: 'networkidle2' });
await new Promise(function (resolve) {
setTimeout(resolve, 2000);
});
const content = await page.evaluate(() => document.body.innerHTML);
console.log(content);
await page.sc
How to convert only the first letter as uppercase?
27 April 2024 @ 2:55 am
So, I want to convert only the first letter using REGEX and then bypassing function to uppercase it.
However Typst return "expected string or content found dictionary"
This is the source:
#let text="oh this is it"
#text.replace(regex("^\w"), m=>upper(m))
and oh, If you have insight on custom function as a callback in Typst I would be happy as I really struggle to find good documentation on it.
thaks
I tried that code and I expect the first char to be upprcased but didnt work