Random snippets of all sorts of code, mixed with a selection of help and advice.
How to avoid soft keyboard from appearing in an Android libGdx project?
9 April 2026 @ 9:25 am
Background
I wanted to start experimenting with LibGdx after some years, and I also use ScrCpy while developing, mirroring what's on the device.
The problem
At first I created something that handles keyboard keys, and it worked fine, but when I used some keys, I've noticed the soft keyboard appears.
Examples of such keys: "[", "]", but also numbers, English letters keys, spacebar and others...
Here's the code of the minimal project:
MainActivity.kt
class MainActivity : AndroidApplication() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
val config = AndroidApplicationConfiguration().also { configuration: AndroidApplicationConfiguration ->
configuration.useImmersiveMode = true
}
initialize(HelloWorldGame(), config)
}
}
Hell
AndroidTV - FocusRestorer does not focus fallback if currently focused node is removed
9 April 2026 @ 9:25 am
I am currently developing a video streaming app for AndroidTV. To reduce the amount of data the client loads, it's a business requirement that we are able to lazy-load Swimlanes (LazyRows) once they enter the screen. The screen itself is a LazyColumn. During the loading time we want to show some placeholders. As a quick proof-of-concept I created following code snippet that switches between placeholders and cards every 5 seconds to a random amount:
@Composable
fun UpdatingHome(
onNavigateToDetail: () -> Unit,
) {
val components = rememberSaveable {
listOf(
UpdatingHomeComponent.Swimlane((0..10).map { UpdatingHomeCard.Swimlane() }),
UpdatingHomeComponent.Swimlane((0..10).map { UpdatingHomeCard.Swimlane() }),
)
}
val horizontalPadding = 20.dp
LazyColumn(
verticalArrangement = Arrangement.spacedBy(20.dp),
modifier = Modifier
.focusRestorer()
.fillMaxSize(),
co
Automate the testing of AWS connect IVR call flows
9 April 2026 @ 9:24 am
I want to automate the testing of IVR call flows present in Amazon connect.
Tool should test the quality and validation testing of the call flow including playing correct voice prompts, take in the dtmf inputs , check the call routing
Recommend some open source
Or suggest me best practices to develop my own testing tool
Thanks!
How to implement real-time file scanning with FastAPI and background workers?
9 April 2026 @ 9:22 am
I’m building a cybersecurity tool (antivirus-style system) that scans files and detects malicious behavior.
Current setup:
- Backend: FastAPI
- Frontend: React (Vite)
- Features implemented:
File scanning endpoint
Basic SHA256 detection
UI dashboard
What I’m trying to achieve:
- Real-time scanning when a USB is inserted
- Background scanning without blocking the API
- Efficient handling of large file systems
Problem:
Right now, the scan endpoint blocks execution and becomes slow when scanning multiple files.
What I tried:
- Running scan in a normal loop
- Basic async functions (didn’t improve much)
Question:
What is the best architecture for handling real-time scanning in FastAPI?
Should I use Celery, multiprocessing, or another approach?
Any guidance or examples would be appreciated.
About contract Business Instagram/Facebook API process
9 April 2026 @ 9:22 am
I am reaching out to inquire about using the Instagram Graph API for our company.
Could you please guide us through the entire process — from creating a business account to accessing the Graph API under a business agreement? Specifically, we would like to understand:
The required steps for setting up a company account for API access
The app review and approval process for this type of use case
We would greatly appreciate your guidance on how to proceed.
Thank you for your time."
Unpredictable behavior when minimizing application child windows in Windows 11
9 April 2026 @ 9:14 am
I'm maintaining a Windows application which behaves strangely in Windows 11. When child windows are minimized the behavior is different on different Windows 11 computers running the same version of the application. On my computer they end up in the lower left corner of the screen but no window title is displayed so the user cannot tell which one is which.
On a second computer only the first letter of the window title is displayed followed by three dots. On a third computer the first ten or so characters are displayed, and on a fourth computer the minimized windows just disappear out of site and can only be retrieved my minimizing and restoring the main application window. So to summarize there are four different behaviors when minimizing a child window:
It's minimized and shows a larger part of the window title (the correct behavior).
On a second computer only the first letter of the window title is displayed followed by three dots. On a third computer the first ten or so characters are displayed, and on a fourth computer the minimized windows just disappear out of site and can only be retrieved my minimizing and restoring the main application window. So to summarize there are four different behaviors when minimizing a child window:
It's minimized and shows a larger part of the window title (the correct behavior).
Cannot Connect to SAP Datasphere Space by ODBC, asking provide X509 certificate
9 April 2026 @ 9:08 am
I am trying to connect to my SAP Datasphere Space database via ODBC, and I am getting the following error: "Provide X509 certificate file." Could someone let me know where I can get the file it's asking for? Or If anyone can tell me if we can disable this option of asking certificate and use only username and password, then it will be ok
Connection Error:
ERROR [08501] [SAP AG][LIBODBCHDB DLL][HDBODBC] +Communication link failure;-10709 Connection failed (RTE:[200117] Failed to initiate any authentication method. Please ensure all relevant connection properties have been supplied correctly. X.509: No key store or PEM provided (10.91.8.139:51046 ->
Connection Error:
ERROR [08501] [SAP AG][LIBODBCHDB DLL][HDBODBC] +Communication link failure;-10709 Connection failed (RTE:[200117] Failed to initiate any authentication method. Please ensure all relevant connection properties have been supplied correctly. X.509: No key store or PEM provided (10.91.8.139:51046 ->Python data structures in advanced python
9 April 2026 @ 9:02 am
Can we pass a function as an argument in python?
How are arguments passed by value or by reference in python?
What is lambda function?
What is break, continue and pass in python?
What is difference between set and dictionary?
Docker login fails with "error storing credentials... The stub received bad data" on Ubuntu WSL2 with Docker Desktop
9 April 2026 @ 8:57 am
Problem
I'm using Docker Desktop with WSL2 integration on Windows.
When I run
docker login <registry> -u <user> -p <password>
I get the following error:
error storing credentials: error storing credentials - err: exit status 1, out: error storing credentials - err: exit status 1, out: The stub received bad data.
At the same time, I notice that Docker Desktop keeps overwriting my ~/.docker/config.json and setting:
"credsStore": "desktop.exe"
What I've tried
Removing credsStore from config.json
Re-running docker login
Restarting Docker Desktop
Deleting ~/.docker/config.json
The file ke
Enable TRACE logs on debezium
9 April 2026 @ 8:12 am
how can I enable trace logs in Debezium version 3.0.8.Final? I tried enabling them using log4j2 and a .properties file. Is there anything else I can try?