instruction
stringlengths
0
30k
|spartacus-storefront|
I'm encountering a TypeError while working on a React project where I'm using a Chart component to display user analytics data fetched from an API. Additionally, I'm seeking guidance on how to implement filtering by year. Here's the error message I'm seeing: ``` TypeError: Cannot read properties of undefined (readi...
TypeError: Cannot read properties of undefined (reading 'year') in React Chart Component, and How to Implement Filtering by Year?
|reactjs|node.js|mongodb|mern|
if you use Mysql 8, can use this packge: [staudenmeir/laravel-adjacency-list][1] no need any change in your structure or other version : [lazychaser/laravel-nestedset][2] need add 2 column _lft,_rgt to your table [1]: https://github.com/staudenmeir/laravel-adjacency-list [2]: https://github.co...
Timezone Issue with Clickhouse - Asia/Tehran Timezone
I'm trying to get the descriptorMatcher to work. I have a template image that I want to look for in every frame of a video feed. Here is the relevant code: //the following is done once since the template is static: templateImage = Utils.loadResource(mContext, R.raw.watch); detector.detect(rgb, template...
Android OpenCV descriptorMatcher CvException error
your namespaces in the begining of the controller file should match the herirechy of the data sturcture it should implement [PSR-4 autoloading standard][1]. check [laravel doc][2] for more details so namespace for DokterController should be namespace App\Http\Controllers\dokter; and the use should be...
I have a nested list which has alway 5 values. The elements of the list can be different. I like to copy the list into two seperate lists and exchange in both new lists always two values. The code is doing this but for the second loop the first list will be again overwritten. I don´t know why Example: te...
How to restrict vpasolve() to only integer solutions (MATLAB)
|matlab|math|
null
I'm trying to create a pod for a project's api from a yaml file. The pod will be created from an image that I already have in docker desktop and docker hub. I've even pulled this image to minikube, and even so, I can't create the pod and it stays in Back-off status, and gives an error, see my logs: and Normal Schedu...
I can't create a pod in minikube on windows
|windows|docker|kubernetes|minikube|
null
|c++|stdvector|
Geographical dimension tables are commonly used in a lot of data models, which has hierarchy by nature just like Date / DateTime dimensions. I'm just wondering if there is any trick to get OOTB geographical dimension tables from Power BI, or alternatively any open source to import, so that each Power BI developer do...
Does Power BI provide an OOTB Geographical Dimension Table
|powerbi|data-modeling|business-intelligence|dimensional-modeling|
null
In one iteration over the input array you can: * Collect the unique values in their order of first appearance * Count how many you have of each (Both can be captured by using a hash map that maintains insertion order, like for instance a dict in Python 3.6+, a Map in JavaScript, or a LinkedHashMap in Java) ...
Please, don't be harsh, I'm just a beginner! I have a MERN stack application which I deployed to Render (server side as web service and front end as static). In my application, I have a profile where users can upload avatar image. I store an image as a url string in my MongoDB atlas in User model. Images are saved o...
MERN Stack App - User Avatar Upload - 500 Error After Deployment on Render
|reactjs|mongodb|file-upload|mern|render.com|
null
It seems my collection doesn't contain that case but we can achieve it by combining #37 with #21 https://css-generators.com/tooltip-speech-bubble/ First you copy the code of #37, then you add an extra span that will contain the code of #21 (not all its code but only the pseudo element part) <!-- begin snippet: js...
Polars with Rust: Out of Memory Error when Processing Large Dataset in Docker Using Streaming
|database|database-normalization|first-normal-form|
null
null
null
null
I'm making my first game in Twine. I'm trying to figure out JS. I immediately apologize for the code in my examples, because... Twine has slightly modified HTML, but I don’t know how to write it correctly in pure HTML, so I copied it directly from the project. Everything in it is correct and works, but in an excerpt an...
An array of images and a for loop display the buttons. How to assign each button to open its own block by name?
|javascript|
null
Hello Stack Overflow community, I am encountering a peculiar issue with my PyTorch model where the presence of an initialized but unused FeedForward Network (FFN) affects the model's accuracy. Specifically, when the FFN is initialized in my CRS_A class but not used in the forward pass, my model's accuracy is higher ...
Influence of Unused FFN on Model Accuracy in PyTorch
|python|deep-learning|pytorch|neural-network|
null
If you want a single plot with two y-axes, it's possible with ggplo2 but requires a bit of fiddling. 1) You can add a second y-axis with a magnitude scaled relative to the first one using ``` + scale_y_continuous( sec.axis = sec_axis(~./6000, name="Belysning") ) ``` Here, I'm taking the first axis to...
unable to retrieve record from MySQL using UUID with springboot jpa
|java|mysql|spring|jpa|jdbc|
null
Navigate To IAM section then click on 'Access Reports' and then select 'Credentials report' and click on download Credentials report, you will get root user creation date.
This is because you misunderstand the usage of `scanf`. This function considers a string to be any contiguous collection of non-whitespace characters, ignores preceding whitespace, and *stops reading at whitespace*. So you can get three reads from one line with three words. Instead of scanning for a string, I would use...
import pymqi queue_manager = 'QM1' channel = 'DEV.APP.SVRCONN' host = '127.0.0.1' port = '1414' queue_name = 'TEST.1' message = 'Hello from Python 2!' conn_info = '%s(%s)' % (host, port) First I did the PUT operation like the below code and I worked fine. I put for more 2...
Android compose animations crashing in release builds
|android|android-jetpack-compose|android-r8|
You can create an extension on `DateTime` to be able to use it directly on objects: ```dart extension DateTimeWeekday on DateTime { DateTime setWeekday(final int weekday) { final int current = this.weekday; // If the day of the week is already past the current value, set it to the next week's day. ...
I've been trying to solve this for a while now but I keep getting this error. I am using VS code and Python version 3.11. I trying using IDLE, and Spyder, but I still have this error. Anyone know how to solve it? I uninstalled all the libraries and installed them again, but it didn't work. Here's the code: ``` imp...
I removed this extension from vs code and this solved my issue. [1]: https://i.stack.imgur.com/9mcig.png If this helped you solving the issue vote up.. :)
|svg|icons|moodle|moodle-theme|
guys. As usual: doing first steps in Data Science. Trying to build Extra Trees REgressor model from the data frame with lists Data frame size is 47724 rows × 27 columns, each cell contains a list with 4 figures, for example [7.69, 7.68, 7.66, 7.74]. This is X factor Y (target) is the single one, just float number. ...
How to transfer object dataframe in sklearn.ensemble methods
|python|pandas|dataframe|numpy|scikit-learn|
null
> Is it even possible to bootstrap a multilevel sem model in R? Yes, but what kind of resampling procedure do you think is appropriate? There are some proposals you can search the literature for (e.g., resample clusters as a whole; or resample clusters followed by resampling observations within each cluster; or res...
{"Voters":[{"Id":10304804,"DisplayName":"Christopher"},{"Id":466862,"DisplayName":"Mark Rotteveel"},{"Id":839601,"DisplayName":"gnat"}],"SiteSpecificCloseReasonIds":[11]}
|python|pytorch|
I'm getting this primary key constraint error ``` Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed: org.springframework.dao.DataIntegrityViolationException: could not execute statement [Unique index or primary key violation: "PUBLIC.CONSTRAINT_INDEX_...
null
Simply using `apt` in place of `apt-get` worked for me https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
I have created the API in .net 6 C# with docker support and it worked perfectly when I try to run from Visual Studio , When I deploy the docker build image to docker desktop app it gives following error tried to run the project with .net 7 and used latest package and followed the checked on the https://gith...
Unable to connect to Azure keyvault when I deploy API(C#) .net 6 , the docker image to docker desktop app
|asp.net-web-api|azure-keyvault|docker-desktop|azure-identity|
null
I am using Azure services in my application (AppService, AppInsight) Also, I've implemented my project int **.net Core7** I am using `Microsoft.ApplicationInsights.AspNetCore` library (version `2.22.0`) My Application Insight configuration in appsetting.json is like this "ApplicationInsights": { ...
Custom Metrics stop saving in App Insight after one hour
|c#|.net-core|azure-application-insights|azure-appservice|
I'm trying to encrypt a ZIP file using AES-256 GCM in C and decrypting it in Python. Here is the C code I'm using: ```c NTSTATUS generateRandomBytes(BYTE *buffer, ULONG length) { BCRYPT_ALG_HANDLE hProvider; NTSTATUS status = BCryptOpenAlgorithmProvider(&hProvider, BCRYPT_RNG_ALGORITHM, NULL, 0); if (...
Could bcrypts AES-256 GCM encryption corrupt ZIP files?
|python|c|corruption|aes-gcm|
We could add a temporary column `".rm"` (for remove), created from unlisting the `"id"` column and scanning it for `duplicated`. This gives a vector that can be `split`ted along `rep`eated consecutive integers each `nrow` times for each sub-list and added to the sub-lists using `` `[<-`() ``. Finally we `subset` for no...
Download and correctly install an updated [CA bundle][1] for your PHP's curl. Better yet, update or switch to a webserver with a current version of PHP, as whatever you are using is likely to have security vulnerabilities. [1]: https://curl.se/docs/caextract.html
``` <template> <div class="flex"> <SidebarComponent /> <div> <slot /> </div> </div> </template> <style></style> <script setup lang="ts"> </script> ```
I am writing a program that reads a bmp file, and then outputs the same BMP file but cropped in half. I'm doing this by simply dividing the bmp height in half, and that results in the top half of the BMP image being cropped out. However, I can only crop out the top half. I am trying to find a way to crop out the bottom...
How to crop a BMP image in half using C
|c|crop|bmp|
null
The answer is [here](https://cabal.readthedocs.io/en/latest/cabal-package-description-file.html#library), I was just looking at some old version of the doc. Here's what the new has to say > Before version 3.0 of the Cabal specification, all sublibraries were internal libraries. Before version 2.0, a package could n...
It appears that it's important to express that you want the 7 specific items extracted by calling for tokens=1-7. Token 1 will be %%G, with each successive, stipulated token using %%H, %%I, etc. Wanting to express one line for each token comes by echoing them 1 echo command at a time for each token's variable, either...
if you don't have a value in the array to use as key, the solution proposed in [this answer][1] works like a charm: ... routes.map(route => <li className='mr-8' key={JSON.stringify(route)}> ... [1]: https://stackoverflow.com/a/52706585/1787312
You can develop new code to act automatically based on html direction with `*-inline-*` css rules. There is a [website][1] helping you convert your `CSS` code to such styles, but your `writing-mode` should be horizontal. [1]: https://www.bicss.net/
I am trying to upgrade our version of JFROG from 7.33 to 7.77 on Centos 7 but getting the follow error: Error: Package: jfrog-artifactory-pro-7.77.6-77706900.x86_64 (Artifactory-pro) Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit) Would anyone in the forum have experience with this issue? My initial res...
Centos 7 and JFROG Artifactory 7.77.X
|centos|centos7|
Try combining those data columns into a table and then expanding ``` let [...] // Converter a resposta JSON em uma tabela jsonResponse = Json.Document(response), #"Convertido para Tabela" = Record.ToTable(jsonResponse), Value = Table.FromRecords(List.Transform(#"Convertido para Tabela"{0}[Va...
I'm trying to figure out how I can stop maya from displaying some messages such as info and warnings. it sounds like a job for the logger by just settings its level but it doesn't seem to affect the commands such as cmds.warning() are those commands even using the logger? is maya playing some trick on use by forc...
Maya.cmds.warning() relying on a maya's logger?
|debugging|logging|maya|
In my application the user can assume one of 3 different roles. These users can be assigned to programs, and they can be assigned to 3 different fields, each of those exclusevely to a role. In my API I'm trying to query all my users and annotate the programs they are in: ``` def get_queryset(self): ...
Annotations returning pure PK value instead of Django HashID
|python|django|postgresql|django-orm|hashids|
null
From your documentation your LCD has an I2C interface. You need a different library in this case such as LiquidCrystal_I2C. This code should work: #include <LiquidCrystal_I2C.h> LiquidCrystal_I2C lcd(0x27,16,2); // Set the LCD I2C address - ususally 0x27 or 0x3F void setup() { lcd...
Add this line ``` storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null at android{ release{ storeFile keystoreProperties['storeFile'] ? file(keystoreProperties['storeFile']) : null } } ``` If you have already then replace with: ``` storeFile file("key.jks") ? ...
I had a similar issue, I think the OP solved the problem the same way I did. But their answer isn't too clear. So what I had to do is add an URI under 'Authorized redirect URIs' for my google app on GCP (Select your project -> Credentials -> Authorized redirect URIs). The URI is https://{my-domain}.auth.{region...