Random snippets of all sorts of code, mixed with a selection of help and advice.
Airflow Papermill - No file output for Jupyter Notebook
25 February 2026 @ 10:43 am
I am currently working on a Airflow pipeline, using Taskflow API. The objective is to execute a Jupyter Notebook, and to get the result.
My airflow instance is launched inside WSL, and I can access without problem the api-server and execute bash or python task.
Here the dag I want to execute
import pendulum
from airflow.sdk import dag, task
@dag(
schedule=None,
start_date=pendulum.datetime(2025, 2, 23, tz="UTC"),
catchup=False,
tags=["test", "taskflow", "spark"],
)
def jupyter_pipeline():
@task.virtualenv(requirements=["notebook", "apache-airflow-providers-papermill", "scrapbook", "pyspark", "cloudpickle"], venv_cache_path="/tmp/anime_venv")
def read_jupyter_notebook():
"""
#### Read Jupyter Notebook
Task to read a Jupyter Notebook, and execute code inside
"""
f
Can I keep TelerikGrid Pageable automations alongside custom API pagination?
25 February 2026 @ 10:38 am
The premise
I'm working on a Blazor program which handles a database of companies and related CRUD operations.
I'm on .NET 8.0, writing on Visual Studio Community 2026 v. 18.3.2, with InteractiveServer as the default solution-wide render mode, and Telerik UI for Blazor v. 13.0.0.
The goal
I would like to have the API-side pagination work alongside the TelerikGrid component automations that come with the Pageable parameter, without modifying the API and without passing the whole dataset to the Blazor program.
The issue
As of now, the TelerikGrid component is receiving a single page of data, for the pagination is handled by the API, and therefore it results in a pagination bar with a single index because it sees the 10 elements as the entire collection of data; while I understand why this happens, this behaviour is unintended.
Conan C++ package and 3rd party license requirements
25 February 2026 @ 10:36 am
I'm using conan v2, and building a soft based on 3rd parties.
I'm searching for the best way to fulfill the 3rd parties license requirements:
list all external dependencies
get their license text and optionally the required NOTICE file (for Apache v2)
considering that i may use a build environment with or without access to the internet and my target is to have a json file containing all info needed to build after a latex or markdown based document
I'm looking at conan sbom and conan audit but for now I didn't find a way to really get what I would like out of those command.
Regards
Is it possible having two (or more) 'background' sections in a cell?
25 February 2026 @ 10:34 am
I'm newbie in APEX. I'm using APEX 24.2.13 and FullCalendar 6.1.15
By default, 'background' overlaps cells:
Would it be possible get this?:
Thanks in advance!!!
PD: Please, excuse me for posting mostly images but because my lacking in English
"A picture is worth a thousand words" ;-)
Would it be possible get this?:
Thanks in advance!!!
PD: Please, excuse me for posting mostly images but because my lacking in English
"A picture is worth a thousand words" ;-)Does digital marketing has future?
25 February 2026 @ 10:34 am
I want an honest and practical answer about whether digital marketing has a strong future as a career. Please explain the long-term scope, job opportunities, salary growth, required skills, and how AI and automation may impact this field. Iām especially interested in understanding if digital marketing is a stable and sustainable career option for beginners in the coming years.
How to set timeouts for requests for static files in HTML?
25 February 2026 @ 10:31 am
So I have an HTML-file like this
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="report-errors.js"></script>
<script src="https://unreachable.xxx/page.js"></script>
<title>My Page!</title>
</head>
<body>
<div>Loading...</div>
</body>
</html>
unreachable.xxx is unreachable for some reason: all requests there are being dropped by a firewall and no response to any of them is sent back.
But for the user it looks like an infinite loading state. Obviously, something went wrong ā in my case the developer used wrong storage, that's guarded by a firewall. The problem is that I don't even know that my page is unreachable, because the script from report-errors.js reports o
High disk usage growth in GridDB Community Edition (/var/lib/gridstore/data)
25 February 2026 @ 10:24 am
I am using GridDB Community Edition and facing an issue where disk usage
in /var/lib/gridstore/data increases by 8GB per day.
Environment:
GridDB Version: GridDB v4.6 Community Edition
OS: Red Hat Enterprise Linux release 8.5 (Ootpa)
Current Settings:
I have already enabled compression in gs_node.json:
"storeCompressionMode": "COMPRESSION"
The issue:
Even with compression, the .db files continue to grow rapidly.
Is this growth expected for this data volume?
How can I trigger or optimize checkpoints to reclaim space?
Does GridDB automatically shrink .db files after row deletion?
Any advice on how to mitigate this disk usage would be appreciated.
Added Context for Stack Overflow:
"When I restarted GridDB, the RECOVERY_MANAGER reduced the disk usage significantly.
However, it started increasing by 8GB/day again immediately after.
I want to achi
how to assign different values to a parameter of vector of record
25 February 2026 @ 10:20 am
I have a record with default parameter values for a system. I'm building a vector of system, so I build a vector of the record. I want to be able to edit this vector of record using the Dymola interface, so that I can make ajdustments to the default parameter prior simulation. This works fine.
To distinguish the various elements of system while editing the vector of record in the parameter's interface, I want to assign a default property to each element of the vector which is a differenciating property of the considered system. Which means the differenciating property must be assigned before the simulation.
The differenciating property values are computed eleswhere and are stored as parameter in a vector.
How can I assign the differenciating properties to each element of the record before the simulation, so I can edit them in the parameters's interface ?
I tried first to initialise the vector of records using:
record R "record"
Register metadata in accessor that survives pipes
25 February 2026 @ 10:16 am
I'm trying to combine pandas custom accessors and defining original properties.
I would like an original property to be defined in an accessor and to survive pipe operations.
Consider the following example:
import pandas as pd
@pd.api.extensions.register_dataframe_accessor("geo")
class GeoAccessor:
def __init__(self, pandas_obj):
self._obj = pandas_obj
def start(self):
print("start")
self._initial_shape = self._obj.shape
return self._obj
def end(self):
print("Previous shape:", self._initial_shape)
return self._obj
df = pd.DataFrame({"x": [1, 2, 3],
How to configure log4j2 for multiple hive processes
25 February 2026 @ 10:16 am
Looking through documentation and articles is not helping me to decipher configuration.
The default hive setup shows
name = HiveLog4j2
# list of properties
property.hive.log.level = INFO
property.hive.root.logger = DRFA
property.hive.log.dir = ${sys:java.io.tmpdir}/${sys:user.name}
property.hive.log.file = hive.log
property.hive.perflogger.log.level = INFO
# console appender
appender.console.type = Console
appender.console.name = console
appender.console.target = SYSTEM_ERR
appender.console.layout.type = PatternLayout
appender.console.layout.pattern = %d{ISO8601} %5p [%t] %c{2}: %m%n
# daily rolling file appender
appender.DRFA.type = RollingRandomAccessFile
appender.DRFA.name = DRFA
appender.DRFA.fileName = ${sys:hive.log.dir}/${sys:hive.log.file}
# Use %pid in the filePattern to append <process-id>@<host-name> to the filename if you want separate log files for different CLI session
appender.DRFA.filePattern = ${sys:hive.log.dir}/${sys:hive.log.f