How to set up Kafka Streams topology without defining a Spring Bean?

in several examples of how to set up a topology for Kafka Streams in a SpringBoot based application (e.g. here), a method is defined which is annotated with @Bean. The method has a parameter of type StreamsBuilder (and maybe other parameters) which is the Streams API for defining the topology. Like this: @Bean KStream<Integer, String> … Read more

Uvicorn would not stop reloading

ui.run(title=”Chat with Autogen Assistant”,host=”localhost”,uvicorn_reload_excludes=”.groupchat/**/*”) Have this app which keeps reloading on changes in files in this directory. I have tried uvicorn_reload_excludes=”.*,” uvicorn_reload_excludes=”**/*” reload=False The docs say –reload-exclude – Specify a glob pattern to match files or directories which will excluded from watching. May be used multiple times. By default the following patterns are excluded: ., … Read more

(node:21) UnhandledPromiseRejectionWarning: Error: “escapeHtml” is not allowed

(node:21) UnhandledPromiseRejectionWarning: Error: “escapeHtml” is not allowed
 at internals.Object.checkOptions (/opt/api-gateway/node_modules/joi/lib/types/any/index.js:95:19)
 at internals.Object._validateWithOptions (/opt/api-gateway/node_modules/joi/lib/types/any/index.js:663:18)
 at module.exports.internals.Any.root.validate (/opt/api-gateway/node_modules/hapi/node_modules/joi/lib/index.js:138:23)
 at Object.internals.input (/opt/api-gateway/node_modules/hapi/lib/validation.js:143:20)
 at exports.headers (/opt/api-gateway/node_modules/hapi/lib/validation.js:52:22)
 at each (/opt/api-gateway/node_modules/hapi/lib/request.js:399:16)
 at iterate (/opt/api-gateway/node_modules/items/lib/index.js:31:13)
 at done (/opt/api-gateway/node_modules/items/lib/index.js:23:25)
 at authenticated (/opt/api-gateway/node_modules/hapi/lib/auth.js:414:20)
 at internals.Authenticator.validate (/opt/api-gateway/node_modules/hapi/lib/auth.js:421:20)
(node:21) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch … Read more

Execution failed for task ‘:react-native-firebase_app:compileDebugJavaWithJavac’

Build failed while using react native firestore. What went wrong: Execution failed for task ‘:react-native-firebase_app:compileDebugJavaWithJavac’. Could not resolve all files for configuration ‘:react-native-firebase_app:androidJdkImage’. Failed to transform core-for-system-modules.jar to match attributes {artifactType=_internal_android_jdk_image, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}. > Execution failed for JdkImageTransform: C:\Users\AKSHAY\AppData\Local\Android\sdk\platforms\android-33\core-for-system-modules.jar. > Error while executing process C:\Program Files\Java\jdk-21\bin\jlink.exe with arguments {–module-path C:\Users\AKSHAY.gradle\caches\transforms-3\bef6f10d85defe5f18bb0844bb85f7a2\transformed\output\temp\jmod –add-modules java.base –output C:\Users\AKSHAY.gradle\caches\transforms-3\bef6f10d85defe5f18bb0844bb85f7a2\transformed\output\jdkImage –disable-plugin … Read more

Snowflake Change Tracking to implement SCD2

Has anyone used change tracking feature in Snowflake to track DML changes on a table and create SCD2 tables in a Snowflake data warehouse? Not talking about using streams and tasks but specifically turning on change tracking on the table and using a stored procedure/ SQL to create SCD2 tables. CHANGES It looks like a … Read more

Run waitress server with Flask and Pywebview

If I pass the flask instance to pywebview is uses the bottle server. app = Flask(__name__) if __name__ == ‘__main__’: webview.create_window(‘Flask example’, app) webview.start(debug=True) I am trying to figure out how to use the waitress server without creating an additional thread. I can do it like this with another thread: def waitress(): serve(app, host=”127.0.0.1″, port=5000) … Read more

When trying to access files throug sftp request takes too long and hangs the server

I am using a server to store my files, and I have employed storages.backends.sftpstorage.SFTPStorage to manage URLs, downloads, and uploads. However, I occasionally encounter the following issue when I try to get files from server, causing the entire server to hang and become temporarily unavailable. My error log. My sftp configuration SFTP_STORAGE_HOST = “host” SFTP_STORAGE_ROOT … Read more

Pysomeip sample

Can someone provide a sample using pysomeip package to send data to a service id, instance id and an event id. I couldnt find a working code that will publish data to an event id. I will be receiving the data using a c++ application which uses vsomeip. But data needs to be send from … Read more