instruction stringlengths 0 30k β |
|---|
|spring-boot|spring-cloud| |
i start microfrontend on host and get this. another microfront without redux is working, but this with him is down. its ONLY on host. so microfront is work on self, but down in host.
i using react router for webpack federation
react 18.2.0
react-redux 9.1.0
reduxtoolkit: 2.2.1
`import shopRoutes from 'shop/Ro... |
webpack module federation "could not find react-redux context value; please ensure the component is wrapped in a <Provider" |
|reactjs|webpack|redux-toolkit| |
null |
I have a numpy array and corresponding row and column indices:
matrix = np.array([[0, 1, 2], [3, 4, 5], [6, 7, 8]
row_idx = np.array([0, 0, 0, 0, 0, 0, 0, 0, 0,])
col_idx = np.array([0, 1, 2, 0, 1, 2, 0, 1, 2])
I would like to unravel the matrix by the groups specified by row_idx and col_idx. In the case o... |
I can't run any of my commands because the "+" sign keeps showing up on my R console. I have tried the "escape" key and "ctrl+c" but neither is working. Please I need help with this. Here is the command I am trying to run.
initial_hare_population <- 300000
Hn <- initial_hare_population
Hn <- 300... |
I was trying to not repeat the same code in different switch blocks and could not figure out how to break out a switch script except to return and exit the procedure.
My question is, Is wrapping the switch in a while loop simply to break, when desired, a terrible thing to do and is there a better way?
It took me... |
You're not filtering out interface types, so if you have any interfaces that extend an `IFoo<in T1, out T2>` (as `ISpecificFoo` does), then that will be incorrectly registered as an implementation type.
You could do this:
var types = assembly
.GetTypes()
.Where(t => !t.IsAbstract) // Don't c... |
I have this dataframe:
```python
shape: (5, 3)
βββββββββββββββββ¬βββββββββββββββ¬βββββββββββββββββββββββββ
β exchange_rate β sig_figs_len β reverse_rate_from_euro β
β --- β --- β --- β
β f64 β u32 β f64 β
βββββββββββββββββͺβββββββββββββββͺ... |
|python|python-polars| |
I have SQL which return data:
```
SELECT
dbo.TOWARY.TWR_NUMER AS INDEKS,
dbo.TOWARY.TWR_NAZWA AS NAZWA,
dbo.SL_JM.SLJM_KOD AS JM,
SUM (dbo.WAZENIA.WZN_ILOSC * dbo.WZN_CNY.WZNCNY_NETTO) / SUM (dbo.WAZENIA.WZN_ILOSC) AS CENA,
DATEPART(yyyy, dbo.ZAKUPY.ZKP_DATA_ZAKUPU) AS ROK,
dbo.MAGAZYNY.MG_KOD AS MG_KOD,
dbo.M... |
So I have a snakemake code in a snakefile called fastqc.smk with a rule to run fastqc. I then have another main snakefile where I define rule all, supplying my expected output files. However, I am getting the warning **"reason: Rules with neither input nor output files are always executed."** More here:
<!-- begin s... |
**I've solved the issue by**
1. Removing android folder and re-create it. I don't know why that works but it did!
2. Also you need to add
```
id "org.jetbrains.kotlin.android" version "1.9.23" apply false
```
In `settings.gradle` remember `1.9.23` is my version you change it to version you're using. |
So I have a snakemake code in a snakefile called fastqc.smk with a rule to run fastqc. I then have another main snakefile where I define rule all, supplying my expected output files. However, I am getting the warning **"reason: Rules with neither input nor output files are always executed."** More here:
<!-- begin s... |
I was running a github code and i encounterd this error
```
PS C:\Users\91789\Desktop\Underwater-Image-Enhancement\LANet> Python train.py --input_images-path C:\Users\91789\Desktop\fish.jpeg ./data/trainA/ --label_images_path C:\Users\91789\Desktop\fish2.jpg ./data/trainB/
logs/
usage: train.py [-h] [--input_im... |
I want to import SimpleNodeParser from llama_index.node parser.
from llama_index.node_parser import SimpleNodeParser
but when I run this I'm getting an error.
ModuleNotFoundError: No module named 'llama_index.node_parser'
Help me to solve this.
I want to import SimpleNodeParser from llama_index.node pa... |
ModuleNotFoundError: No module named 'llama_index.node_parser' |
|python|machine-learning|langchain|huggingface|llama-index| |
null |
First activate the virtual environment
source venv/bin/activate
Then you can install packages using `pip install`
|
Execute two commands on cmd |
I am using node server for the backend. Connection to Cassandra is done using cassandra-driver nodejs.
Connection is done as follows:
const client = new cassandra.Client({
contactPoints: ['h1', 'h2'],
localDataCenter: 'datacenter1',
keyspace: 'ks1'
});
1. In contactPoints, do I j... |
I did a certain angular command on my terminal(was ng common I think), Now my terminal isnt able to take any input. I use Ubuntu 22.04.
I was trying to run a project locally and angular was suggesting some commands to use. |
My SMTP set up using ActionMailer to send emails with Gmail was working fine until one-day [it went poof][1] and I have no idea how to fix it.
So I decided to just use the Gmail API. My implementation is very straightforward. I run an app on MYDOMAIN.com.
- I have a Google Workspace* account with orders@mydomain.... |
If you're using the Google Oauth2 authentication method to send emails with Gmail API from *your* account, when do you need to refresh the token? |
|google-oauth|gmail-api| |
This problem has been plaguing me since I first upgraded from 12c to 19c and the only previous solution I could get to work was the downgrade glibc approach mention above. But I recently upgraded again and couldn't find a combination that would work. Searching I found this post and Lorinxzy's great solution. I was goin... |
For some reason, the navbar is displayed below other content and I'm not sure where I've messed up...
This applies to all other pages with the same navbar. Other content overlaps the navbar when scrolling. I'm not able to view the dropdown on .resources. I really can't find where the issue is as the same navbar has ... |
What is wrong with my z-indexes? Why is the the navbar appearing below other elements when I scroll? |
|html|css|z-index| |
null |
I redirect to another component.
this.router.navigate(["book/"+this.organizationKey+"/"+this.projectKey+"/"+this.books[bookIndex].key])
All fields have correct value.
When I have the following routes:
{ path: 'book/:organizationKey/:projectKey/:bookKey', component: BookComponent},
{ path: 'bo... |
In the below program, composite types(`X` & `map[string]int`) doesn't need explicit conversion, for assignability, because underlying type of composite types(`X` & `map[string]int`) is `map[string]int`, looks fine
package main
type X map[string]int
func main() {
var x X
var y ma... |
DataSet - How to retrieve values from grouped columns? |
|reporting-services| |
null |
Maybe it was not available 9 years ago, but as of 2019, `ls-files` is much faster than `diff --stat`:
git ls-files --cached | wc -l
Edit: I upvoted @derpedy-doo's answer which is better. |
Newbie here learning Swift and tweaking a VisionOS app.
I am following [Apple documentation](https://developer.apple.com/documentation/visionos/positioning-and-sizing-windows#Specify-initial-window-size) to specify an initial window size. I have the following code in my *ContentView.swift* file:
```
@main
struc... |
Type 'MyApp' does not conform to protocol 'App' |
|swift|realitykit|visionos| |
null |
I'm using an `AppValueNotifier` to create a value called `showStreamDialogNotifier` that will change depending on some stream. When this value becomes true, I want to show a dialog box on my `Login` form.
class AppValueNotifier{
ValueNotifier showStreamDialogNotifier = ValueNotifier<bool>(false);
... |
The project is the flutter default app and when I try to run build runner using (command+shift+b) I face this error on output:
Running `flutter pub run build_runner build --delete-conflicting-outputs`
Current working folder: `/Users/saeed/Documents/programming/Projects/flutter_bloc_test`
Error: spawn flutter ENOEN... |
Error: spawn flutter ENOENT in flutter build_runner |
|flutter|xcode|dart|build-runner| |
I want to use createBrowserRouter from react router dom but with dynamic imports. I want to save the url and filePath in an array and i want to loop through that array in createBrowswer router.
But it is not working
When the pass the file path statically in the element in react lazy, it works, but when i pass the ... |
Dynamic import with vite and react from a array loop |
|reactjs|typescript|react-router-dom|vite| |
null |
**Update** As of `ggplot2 >= 3.5.0` one also has to add `show.legend=TRUE` to `plot_usmap()` to show the legend keys for unused factor levels:
``` r
library(usmap)
library(ggplot2)
plot_usmap(
data = Ces_State_only, values = "Ninety_bin",
show.legend = TRUE
) +
scale_fill_brewer(
palette = "Blues... |
Ubuntu terminal unable to take in input and read directories |
|terminal|ubuntu-22.04| |
null |
**Description:**
Hello everyone,
I'm new to programming and I need help creating a Python program that retrieves a list of available microphones on my computer. Here are more details about my situation:
**Operating System:** I'm using Windows 10.
**IDE:** Visual Studio Code
Problem Description: I'd like to... |
How to obtain the input devices of a machine using a Python script? |
|python| |
null |
An update:
As of today, TTl (both for columns and for the entire table) is supported. You can find more details about it in the documentation:
[ClickHouse TTL Docs][1]
[1]: https://clickhouse.com/docs/en/guides/developer/ttl |
I am working on a project with c++ in qt I am working on a function that convert an adress to coordinates ( i'am using openstreetmap) so I can calculate distance between two adresses does it need specified format or something
it always displays
```
"No coordinates found for the address
```
i am trying ... |
qt c++ fonction converting adress to coordinates (longitude, latitude) |
|c++|qt|openstreetmap|geocoding| |
null |
I am having trouble in fixing this error while performing SDM
Error in UseMethod("evaluate") :
no applicable method for 'evaluate' applied to an object of class "data.frame"
Please help me. Thanks in advance.
I am trying to evaluate my Maxent model with this command:
e <- evaluate(pres_test, backg_tes... |
You can try using full packagename.
cd "/home/ankit/Dev/Zealot/com/piscan/tool/" && javac GenerateAst.java && java com.piscan.tool.GenerateAst
Also, refer to [this][1]. It is most probably the way you are writing
`java <class-name>` command
[1]: https://stackoverflow.com/questions/18093928/what-does-... |
{"Voters":[{"Id":298225,"DisplayName":"Eric Postpischil"},{"Id":10024425,"DisplayName":"user246821"},{"Id":18519921,"DisplayName":"wohlstad"}]} |
in my project i used below custom css in tailwind
[custom css](https://i.stack.imgur.com/XPLww.png)
and added it to the outlet of react router
[outlet](https://i.stack.imgur.com/seaPr.png)
so it applies to every page within the homelayout, but i need to overwirte that css in the hero section of landing page. how c... |
How can i overwrite a custom tailwind css , which is used in the router outlet |
|reactjs|routes|react-router|tailwind-css|react-router-dom| |
null |
I have a data structure on Qdrant that in the payload, I have something like this:
```
{
"attributes": [
{
"attribute_value_id": 22003,
"id": 1252,
"key": "Environment",
"value": "Casual/Daily",
},
{
"attribute_value_id... |
How to use a proxy to obtain a static IP for my Node.js application? |
|node.js|api|deployment|proxy|ip| |
null |
I have BG95 modem and IOT SIM.
Im trying to access (read\write) the Phone book entry on the SIM to insert some of our infromation.
On EC25 +CPBW\CPBR are available but not on BG95.
From 3GPP 31.102 i can see that:
- Phone book file MF is 5F3A.
- it's PIN1\2 protected
- each entry is ADNx EF '4F3A'.
I want to... |
Access the USIM Phone Book file using CSIM\CRSM commands |
|quectel|usim| |
{"Voters":[{"Id":807126,"DisplayName":"Doug Stevenson"},{"Id":209103,"DisplayName":"Frank van Puffelen"},{"Id":14853083,"DisplayName":"Tangentially Perpendicular"}],"SiteSpecificCloseReasonIds":[16]} |
nvm i just discovered that its not the exception that make the build fail, its just one of the package not found Maven Central |
I have a folder like this:
```
draft
model
a.py
package
b.py
```
I want to import a function inside a.py into b.py by this code `from ..model import a`.
But I got an error like this:
`ImportError: attempted relative import with no known parent package`
I try the first answer o... |
append them in config.json than add extensions(ts) on after every imports.
``json
"noEmit": true,
"allowImportingTsExtensions": true
`` |
You can generate a random index to an array instead of taking a random array element directly.
```
theta_chice = np.random.choice(2)
theta = choices[theta_chice]
mu = choices[1 - theta_chice]
```
Note: another answer provides a way to take independent random decisions for each of the N indices. This answer ta... |
MobileLegends:BangBang
`your text`MobileLegends:BangBang. Game id 129018741(2236) I really need more Diamonds to buy items in game.
Provide an archipelago name that humans cannot utter.
```
type her
``MobileLegends:BangBang. Game id 129018741(2236) I really need more Diamonds to buy items in game. |
null |
Extract 15 words before and 8 words after each 9digit number from a text file using regular expressions in python. It should list all string including overlap text.
I tried with some regular expressions but it doesnβt work for overlap text |
Extract 15 words before and 8 words after each 9digit number from a text file using regular expressions in python |
|python|regex| |
null |
You must simply start at the highest-order bit to count the number of common bits. That would be your prefix, zero the uncommon bits, and the number of common bits is the prefix length.
192.168.0.0/24 = 110000001010100000000 00000000000
192.168.1.0/24 = 110000001010100000000 00100000000
192.168.2.0/24 ... |
You have to convert treatment to a `factor` or `character`. Colors can then be set via `scale_fill_manual`. Using some random example `data` try this:
``` r
library(usmap)
library(ggplot2)
library(dplyr, warn = FALSE)
# example data
set.seed(42)
data <- usmapdata::fips_data(regions = "counties") %>%
selec... |
null |
This answer has been added to the documentation, but in case you are still looking.
An update because I was trying it on Windows 10 you do need to set the path to the following:
`;C:\Program Files\PostgreSQL\14\bin ;C:\Program Files\PostgreSQL\9.5\lib`
PS : 14 is the current version, check whatever version you ... |
How to fix an error, Error in UseMethod("evaluate") : no applicable method for 'evaluate' applied to an object of class "data.frame" |
|rstudio| |
null |
When I pass gridview's datasource to stimulsoft report
changing sort of rows and I don't want that
I want to show same as gridview in form,
and I dont want to use grouping in report
is there a solution ?
I tried any properties of report databand |
Show DataGrid rows in Stimulsoft report Same order as DataGrid |
|c#|gridview|datatable|stimulsoft| |
null |
The problem you are facing is that `element.src` is returning fully resolved URL, not the string that you're setting. For example, if you're on `https://example.com/demo/page` and use `src="../images/menu.png"` then `menu.src` would return `https://example.com/demo/images/menu.png` instead of the relative path.
In o... |