some packages like react-i18next are not working properly with @module-federation/nextjs-mf in next js

I am folowing microforntends architecture using this module federation package “@module-federation/nextjs-mf”. I have 3 NextJS Apps One main-app which is the host application, Two microfrontends first-app and second-app here is the next.config.js for each app : main-app : (HOST APPLICATION) const path = require(“path”); const { NextFederationPlugin } = require(“@module-federation/nextjs-mf”); const { createDelegatedModule } = … Read more

storing dataclass member declarations into variables

I am calling a get_unit API that returns a json that contains info about a unit. The API supports sending a flag. For now let’s say the possible flags are basic, sensors, or last_update and depending on the flag, it returns data. I can provide multiple flags if I want I want to read the … Read more

Include header file from subdirectorie cmake

Given this tree: Project | CmakeLists.txt | File1 || CMakeLists.txt || include |||file1.h || src |||file1.cpp |||main.cpp | File2 || CMakeLists.txt || include |||file2.h || src |||file2.cpp |||main.cpp | Core || core.h || CMakeLists.txt |build ||”build files” I would like to link the core.h to file1.h and file2.h, but what I currently have does not … Read more

UIEdgeInset hides content beneath the UITabBarController

I have a structure which looks like this: UIView Header (at the top) WKWebView (in the middle) UITabBarController (at the bottom) To position the WKWebView beneath my header I have used UIEdgeInset. My WKWebView includes a fixed footer which I would like to stick on top of my UITabBar. The problem is that because of … Read more

Is floating point math broken?

Consider the following code: 0.1 + 0.2 == 0.3 -> false 0.1 + 0.2 -> 0.30000000000000004 Why do these inaccuracies happen? 211 Floating point variables typically have this behaviour. It’s caused by how they are stored in hardware. For more info check out the Wikipedia article on floating point numbers. –  92 JavaScript treats decimals … Read more

CMake target_compile_options does not recognize a target when using CMAKE_TOOLCHAIN_FILE

I am trying to set different linker flags per target. My setup is: CMakeFiles.txt cmakescripts/platform_ABC.cmake cmakescripts/platform_XYZ.cmake The CMakeFiles.txt defines two executables: targetA and targetB The platform_xxxx.cmake file define the custom platform build / link settings. How can I set two different setting for targetA and targetB in the platform_ABC.cmake? The build command: cmake . -DCMAKE_TOOLCHAIN_FILE=”cmakescripts/platform_ABC.cmake” … Read more

VS Code setup problems

Im right now setting up VS Code for my University (C++) on my windows PC and when I run my “Hello World” program it doesnt show the output in the cmd. I also still got 6 problems in the c_cpp_properties.json file png of the file + problems I watched many vids already but they couldnt … Read more

Stop scroll position from moving to the bottom

The code i added is just an example to show my problem in a simpler way. But the idea is that i have this titles array that gets looped through and shown on screen and when you click on a title its sub-titles show up below. Kinda like a drop down element. The problem is … Read more

Why Orion-ld after 0.8.0 is not supporting the formation of service/subservice in quantumleap logs?

Any version of orion-ld after 0.8.0 is not supporting the formation of service/subservice in quantumleap logs, thereby no table-schema formed with “mt” prefix in crate-db. But tables are formed with “et” prefix followed by entity type containing quantumleap persisted data. Below is my example quantumleap subscription { “description”: “Notify me of animal locations”, “type”: “Subscription”, … Read more