354 questions
0
votes
1
answer
98
views
Laravel 11: Routes Work in Browser and Postman but Not Found in PHPUnit Tests
I am developing a modular project in Laravel 11, where each module defines its routes inside itself. The routes are working perfectly in the browser and Postman, but when testing the same routes using ...
0
votes
1
answer
47
views
"Global" variable from a module can not be changed/used in the scope of a function from another module?
I am writing code for my uni , when I stumbled upon an error.
We are studying Modular Programing in Python.
I created a module for keeping my variables organized which are so far only two :
...
2
votes
1
answer
5k
views
TypeError: Cannot read properties of null (reading 'ce')
The app I'm working with contains a core and modules. As I was migrating from Vue 2 to Vue 3, I encountered an error that I can't seem to solve. In the previous version, each module contained a Rollup ...
0
votes
2
answers
180
views
How To Work With Subscriber? Laravel Nwidart Modules
I'm new to using Laravel Modules, and have tried Event-Driven (via Event-Listener) but there is a little problem, where when using the subscriber method, the listener doesn't listen to events and the ...
0
votes
1
answer
166
views
Firebase web modular API get() and dbRef
I am migrating from the Firebase namespaced to modular API.
There is one detail I do not fully understand.
I have replaced the once() call with get(), but it's the database reference usage that ...
1
vote
1
answer
59
views
Typescript path module resolution is not working
I am using Express JS and Typescript. I am trying to implement a modular pattern.
tsconfig.json
{
"include": ["src"],
"exclude": ["node_modules"],
"...
0
votes
0
answers
171
views
@angular/fire modular equivalent to "compat" code to listen to snapshotChanges
How would I rewrite this function in the latest "modular" version of angular firestore?
getLatestEntries(limit = 5) {
return this.db.collectionGroup('Entries', ref => ref.orderBy('...
0
votes
1
answer
225
views
installed mojo programming language but finding a repeating command when executed
I've installed mojo on my compute : and went to ran the code 'nano__.zprofile'
previously when downloading modular/mojo I ve got network issue, couple of times so I've done it multiple times
Now when ...
1
vote
1
answer
211
views
Mojo (Mac) using wrong python lib
As most Mac users, I have two separate versions of python on my machine: The one installed by Apple (version 3.9 in /usr/bin) and one installed via Homebrew (version 3.11 in /opt/homebrew/bin).
I've ...
-1
votes
1
answer
2k
views
WslRegisterDistribution failed with error: XXX : mojolang [closed]
I am trying to download mojolang from the website
https://developer.modular.com/download
It says "Install Ubuntu 22.04 for WSL and open it."
I tried installing Ubuntu 22.04.2 LTS from the ...
0
votes
2
answers
559
views
Mojo: "Error: An error occurred in Python."
I am trying out Mojo by Modular and more specifically having a look at the Mandelbrot.ipynb available here. When running the line np = Python.import_module("numpy") I get the rather odd ...
5
votes
0
answers
460
views
How to parametrically check if a variable is of a type in Mojo?
I am trying to create a function that takes in any object and prints it if it is _Printable, and prints "object" otherwise.
To do this I am trying to use @paramter if to check the type at ...
0
votes
1
answer
278
views
How to prevent wall trim-sheets seams in Unity 3D URP?
Please take a look at the image. I have two planes touching, and I want to avoid seams in URP.
What is the best practice to mitigate this problem?
I tried, changing A-Aliasing in URP settings, and ...
0
votes
1
answer
410
views
Maven jlink plugin: native libraries not found when running the resulting image
Context: Linux Mint 21.1, Java Adoptium 17.0.7 JDK, Maven 3.6.3.
My modular application uses LWJGL (and then its native libraries); using the Maven jlink plug-in I generate a Java image. During ...
3
votes
2
answers
2k
views
vectorize vs parallelize in Mojo
According to the docs:
vectorize
vectorize[simd_width: Int, func: fn[Int](Int) capturing -> None](size: Int)
Maps a function which is parametrized over a simd_width over a range from 0 to size in ...
-1
votes
1
answer
100
views
Modular program in C does not seems to work
I am trying to make a program import a function to another however after following the steps I saw in a tutorial I can't make it work
here's the main program:
#include <stdio.h>
#include <...
0
votes
1
answer
54
views
Hwo i can generate Angular component depends on my Config?
I have an HTML snippet that I would like to use in my Angular component so that I can extend it using the config. Can anyone help me with this? I have big problems with the supbages
Config:
export ...
2
votes
1
answer
1k
views
Application class annotated with @HiltAndroidApp has to be defined in an android application project
I am having an Application class already annotated with @HiltAndroidApp but it is in a different module than App module, i needed it to be in the framework module so i can access it from my Service ...
0
votes
1
answer
122
views
How to check to see if a function is an object in the R workspace and if not, run a source file to invoke it?
In the below example code, the function testFunction() is defined in the separate source file functionsLibrary.R saved on the desktop. This example code works as intended.
How would I modify the code ...
-1
votes
3
answers
985
views
How to overlay a popup on top of MaterialApp navigator in a flutter App?
In case of internet connectivity loss I want to show a widget which informs the user on connectivity issues. I want this widget to show when connectivity status changes, no matter which route is ...
1
vote
1
answer
721
views
javax.json module not found building JavaFX application with Gradle
I am trying to run a modular JavaFX application, with few other modular and non modular dependencies, using Gradle, but I am stuck with dependencies resolution.
The project is in Eclipse, using ...
1
vote
1
answer
647
views
ANGULAR Modular Fédération - Why Mfe1 app.module.ts(root module) not able to configure in webpack instead of specific modules
I tried in webpack.config.ts:
instead of
exposes: {
'./Module': './projects/mfe1/src/app/users/users.module.ts',
},
replaced with
exposes: {
"./Module": "./projects/mfe1/src/app/app....
1
vote
0
answers
724
views
Time complexity of Modulus
I have developed the following algorithm to compute ciphertext as :
of ciphertext c =s (rp+mi ) mod q, where p, q are random primes and s,r is a random number from Zp. I searched to find the running ...
0
votes
0
answers
91
views
Exponential modular in mips assembly
I have to make a modular exponential of a^{b}(mod c), the problem is that the values of a and b can be very large, at most 65534 and less than 1
The code is already approved in most test cases, but ...
0
votes
1
answer
1k
views
Best practice for communication between different modules in python
I revisited the development of an application in python I wrote 5 years ago (It was my first interesting project/application in python 2.7, and as I revisit it now I am struggling to make heads or ...
0
votes
1
answer
327
views
How to change nwidart Module Folder
i use nwidart/laravel-modules in my laravel project.
By default Modules directory is in Module, and i will change the modules directory to app/Modules. Anyone can help me?
1
vote
0
answers
2k
views
How to build a single jar-file including all needed JavaFX modules [duplicate]
I have a (non-modular) JavaFX application that runs well from the command line, as I give to the command line the arguments --module-path and --add-modules to include the javafx modules (in my case, I ...
1
vote
1
answer
1k
views
Modular programming aarch64 assembly
I have this simple assembly for arm architecture 64 that will print "Hello World\n" from macro I made.
We know macro is analogy with function in high level programming.
So I want separate ...
0
votes
1
answer
98
views
How can I import 2 datasets, have them persist in my environment, and pass one of the column names as a parameter in my modular plot function?
The Questions
I have revised my code to one file as opposed to being organized in multiple files. I believe that by calling my dataframes I am unable to call them again in another module for some ...
-1
votes
2
answers
940
views
I want to add multi-language support for my modularly implemented project
I want to add multi-language support for my modularly implemented project. What is the best way or method you suggest to do this? General in one module)
Please help me.
0
votes
3
answers
2k
views
Using application context in another module
I have a singleton class like FileLog that I want to create a file in one of its methods and need a Context to do it. My problem is that FileLog class was placed in another module and I don't have ...
1
vote
2
answers
101
views
Calculate months elapsed since start value in pandas dataframe
I have a dataframe that looks as such
df = {'CAL_YEAR':[2021,2022,2022,2022,2022,2022,2022,2022,2022,2022,2022,2022,2022,2023,2023]
'CAL_MONTH' :[12,1,2,3,4,5,6,7,8,9,10,11,12,1,2]}
I want to ...
1
vote
1
answer
709
views
How to call Javascript function from helper scripts in a modular way
I am writing an extension for Firefox v97, and the main script is a content script. The final extension will perform different behavior depending on the top-level domain of the current page. Coming ...
1
vote
1
answer
2k
views
Creating an installer with Java-17 JPackage [closed]
I am developing a javafx application. This app communicates with a device and because of that the device jars are not modular and they come with some dll files that are added to the development. Now, ...
3
votes
1
answer
945
views
In a microservice architecture, what is the good way of sharing the request and response contracts among the internal clients of one service
I have 4 services as given below -
Notes-service -- takes NotesRequest and produces NotesResponse
Reminder-service -- takes ReminderRequest and produces ReminderResponse
Todo-service -- takes ...
0
votes
1
answer
1k
views
Can a <script> have two "types" at the same time?
I have the following problem, I want a function to be executed when I click a button, for which I have the following code:
<button type="button" onclick="printResult()">...
2
votes
0
answers
57
views
Flutter - How do I set a global versions file?
I've started modularising an app and can have the same dependency in a few modules. How can I extract package versions?
2
votes
1
answer
684
views
Using ServiceLoader to get All Instances of an Annotation
All!
I know that long questions are frowned upon, but this is the only way I will be able to get my problem adequately explained. So, I apologize up front for the length of this question.
I am working ...
0
votes
0
answers
266
views
How to make a responsive rectangle grid with images inside
I am trying to make a rectangular grid on my portfolio website with images inside. The problem is that all of these images have different sizes, which makes it hard for me to create a good modular ...
0
votes
1
answer
332
views
Flask Reverse of layout pattern to create page from multiple components/templates
I'm building a Website with Flask and it contains multiple views/tabs that are modular and should be replaceable depending on the client's request.
To that end, I'm trying to write a template index....
2
votes
0
answers
598
views
How can my flutter app remember the page states, when I change the tabs using bottom navigation bar?
I am using Flutter Modular to navigate between my tabs. I want to my pages remember the state (stay at the right scroll lposition) if I switch tabs with bottom navigation bar. But now it resets the ...
0
votes
2
answers
1k
views
Create two custom buttons inside Bottom Navigation Bar to control four pages using page view
I want to control four pages using two arrows on the bottom navigation bar, and in the middle of these two arrow buttons I have a counter to show the ID of the page. Like the image below:
I'm using ...
0
votes
1
answer
60
views
Right way to call headers in c
I'm new in c programming.
I'm playing with an exercise where I created a main program called main.c that includes two other modules: modulo1 and modulo2 with rispettives headers.
Modulo1 contains some ...
0
votes
0
answers
291
views
I use flutter_modular and I need to dynamically create the custom transitions. How I can do this?
I use flutter_modular and I need to dynamically create the custom transitions. How I can do this?
I have one more question. How can I do Modular.to.pushReplacementNamed without route name?
0
votes
1
answer
138
views
Android module supporting different languages (without application context)
I was trying to develop an android module with support for different languages.
I can create a strings .xml file but without appropriate context i cannot access it. For the sake of simplicity and to ...
0
votes
1
answer
505
views
importing function says "x is not a function" but on console log returns function. webpack
I'm builidng a Battleship game with webpack and trying to make it modular. The problem is that when I import the factory function that creates the players gameboards to my main js file and try to run ...
0
votes
1
answer
174
views
How to write modular code in c++ with gtkmm?
How to write modular code in gtkmm3
I want to create objects in a window that I have using the different classes I created (inherited from Gtk::Grid) and put them in the mainGrid window
I do this but ...
1
vote
0
answers
39
views
C Segmentation Fault with Modular Programming
I need to create a program which takes songs and outputs them as a playlist. It's my first time working with malloc and linked lists and I am getting a segmentation fault and I don't know where it is ...
0
votes
0
answers
50
views
Linked list works in when everything is in 1 file but does not during modular programming
I need to use a linked list in order to create a playlist of songs but when running the code it only takes my input but does not execute Song_Print function so I don't even know if the values entered ...
0
votes
2
answers
719
views
How to make c program modular with files.h in Codeblocks?
i hope you really can help me.
When i try to divide my c program into files.h i run into this error: undefined reference to value (name of the example function i'm using) in the main.c.
As you can ...