instruction
stringlengths
0
30k
|swiper.js|gsap|react-swiper|
null
I am using cytoscape.js to build my nice networks. I would like to know if there is any way to export the styles and the elements of the network into one file so that users of my web-app to be able to load it into their own Cytoscape desktop for further exploration and modification. I know I can get the elements wit...
I am trying to help my niece with her Mercedes Sprinter W903 2000 model. The car is facing a well known "Start Error" fault, which is caused by a fault in the immobilizer unit. I have found a immobilizer emulator which works with the CR2 ECU in the car, but in order to get this to work, i need to overwrite some dat...
SPI - R/W to ST95P08 EEPROM
|arduino|spi|eeprom|
null
I don't think that's directly possible. You can certainly import the elements, but I don't know of a way to import the styles from cytoscape.js into Cytoscape desktop. You can do the other way by exporting to CX from the Desktop and then reading that into cytoscape.js, though. This might be worth posting a featur...
We are trying to export all current User Rights from our production environments following the guide posted here: https://community.sap.com/t5/crm-and-cx-blogs-by-sap/sap-commerce-export-only-usergroup-employee-access-rights/ba-p/13488710 This works fine in 3 out of 6 environments and takes less than 5 minutes. I...
Getting Entity not found when exporting User Rights from production only
Well, the short answer is that "it depends". If the network is heavily partitioned, then the individual partitions are laid out in parallel. If it is a single partition, then most of the force directed algorithms don't parallelize well, unfortunately.
I have a button called EXPORT and now I need to create a shortcut to export file to excel. The short cut is Ctrl+Alt+E. When I press the shortcut it have to call the function "onCommandExecution" which will check the ID condition and execute the function "onExportToExcel". I have been made debugging an I the ID was not...
How do you add an AltRoot for Windows using `p4 client` non-interactively?
|windows|perforce|
Having done this wrong several times, I'll contribute a solution to SAFELY and RELIABLY copy a table from one remote db to another. There's a lot that can go wrong between the dump and restore. For clarity, some additional criteria in this solution: - **Copy only one table** - **Does not delete anything in either...
I'm trying out deferrable views and have this code in the component of a normal (NgModule-based) component. @defer (on interaction) { <app-defer></app-defer> }@placeholder { <p>click to load</p> } The DeferComponent in the `@defer` block is standalone, but it is included in the in...
PATCH Request Body empty after converting Symfony HttpFoundation to PSR7
|symfony|guzzle|psr-7|
I need to add the chart in excel. From table data ,need a chart to be drawn in the excel.I have add xlsxAdd to append chart in excel, but its throwing **Missing helper: \"xlsxAdd\** error. So table is already there in the excel but chart is not rendering using this handlebars.This is the correct way to add chart in ex...
How to add the chart in excel using handlebars?
|javascript|excel|charts|handlebars.js|handlebarshelper|
I have a sidebar that's scrollable if the viewports height gets too low. The bottom entry is always visible because it's set to sticky. When you click on the bottom element, you get content that's sometimes wider than the navbar. That content needs to overflow the sidebar, while the sidebar needs to stay scrollable...
How to get x-overflowing text on a y-scrollable container
|html|css|position|overflow|
null
It seems no matter what model I'm trying to build I get the following error on the last line: ```model <- jags.model(paste0(tmpdir,'model.bug'), data = list(), n.chains = num_cores) Compiling model graph Resolving undeclared variables Allocating nodes Deleting model Error in jags.model(paste0(tmpdir, "model.b...
null
In order to add multiple related projects to the same IntelliJ IDEA project, you'll need to add them as modules. 1. In your client project, open the other project(s) from the menu File | New | Module from Existing Sources. 2. Select the directory in where one of the other projects (for example, Service Model A) is...
For me it was enough to set `clipToOutline = true` on the webview as recommended by the [documentation on `AndroidView`][1] and [this comment][2] on the google issue tracker. ```kotlin WebView(context).apply { clipToOutline = true } ``` [1]: https://github.com/androidx/androidx/blob/42d844f7f349384761bc...
I follow warnings and fix types in bind layout call. I found on https://www.w3.org/TR/webgpu/: ``` enum GPUSamplerBindingType { "filtering", "non-filtering", "comparison", }; ``` Also 'float' for texture. Correct way looks : ```js { binding: 3, visibili...
What is the purpose of the keyword "by" (property delegates) when declaring a MutableState<T> with remember?
|android|kotlin|android-studio|android-jetpack-compose|delegates|
Thanks! I added something to it so that all sublabels are displayed function getAllLabels(){ var results = []; var labels = GmailApp.getUserLabels(); for (var i = 0; i < labels.length; i++) { Logger.log("label: " + labels[i].getName()); results.push(labels[i].getNam...
I'm currently creating a HTML5 music editing program. I started with recording audio. I figured out how to get access on microphon and so on. Code from "Recorder.js" helped me a lot. But instead of writing into an .wave file I want to create an temporary audiobuffer. I got the Float32Array's from the inputtbuffe...
|html|web-audio-api|audio-recording|
I seem to have solved it. The login app sends a POST request to a server side API that accepts the user input and then the php code checks if the password is valid. Here is the the php that receives the user input POST then gives the user input to the function that does the validation: `````````````````````````````...
i'm trying to use a custom API provided by a client, its a login authentication api and when i test the url on tools it works fine but when i call it in my code i receive this error "Access to XMLHttpRequest at 'api url' from origin 'http://localhost:5174' has been blocked by CORS policy: Response to preflight request ...
API request blocked by CORS policy
|reactjs|api|cors|postman|swagger|
null
If you are looking to have a single producer of some data and multiple "consumers" of that data, then the following code uses `Condition` instances with notification. For demo purposes the producer only produces 10 pieces of data and we have 3 consumers. This will keep the output to a reasonable length: **Update Usi...
|docker-compose|logstash|elk|
I'm currently working on implementing a loader animation on my website, and I've noticed that there's a transparent background on my image. Is there a way to override this transparent background using CSS? It seems that setting a background color is not having any effect in covering up the transparency. For instance...
The problem you're having is that the [generic constraint](https://www.typescriptlang.org/docs/handbook/2/generics.html#generic-constraints) `ObjectWithSchemaId extends { schemaId: TSchemaId }` is not an *inference site* for the `TSchemaId` type parameter. Such functionality was suggested at [microsoft/TypeScript#7234...
creating querybuilder shows error , cant't figure it . what is happening ``` async findAllMetaData(q: any, offset: number = 0, limit: number = 10): Promise<ProductMetaDataEntity[]> { const qb = this.productMetaDataReposistory .createQueryBuilder('pm') .leftJoinAndSelect('pm.metaKey', 'metaKey') ...
I am trying to figure out the best way to loop multiple array values together. Sample input: `a = (1 2 3 4) b = ('A' 'B' 'C') c = ('x' 'y')` Now I want to create a combination of commands like following. ``` command A x 1 command A y 1 command A x 2 command A y 2 command A X 3 .... command C x 3 com...
what is the best way to loop multiple arrays in bash?
|bash|
null
null
null
null
null
null
As written in comments and other answers, use `CEntityManager::EBroadcastTypes` as the enum type, and use `CEntityManager::FAll` etc. as enum values. This compiles for me without warnings: ```C++ // EntityManager.h #include <vector> #include <string> class CEntityManager { public: enum EBroadcast...
For version <5 you can use <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-js --> const isMutating = !!useIsMutating({ mutationKey: [YOUR_MUTATION_KEY] }); <!-- end snippet -->
Currently, I am using Tanstack Query V5 in my vite-react project. Whenever I try to use `invalidateQueries` it throws an error `TypeError: Cannot read from private field` I want is, when the mutation for invoice deletion will trigger it refetch the invoice list again main.tsx ``` import React from 'react' i...
WSO2 MI 4.2.0 I am using Wso2 micro integrator version 4.2.0. and a rollover policy based on a time period for the log files. I'm trying to delete old rollover files with more than 58 days, meaning that I want to keep ~58 days of logs with the following configuration (as recommended on https://apim.docs.wso2.com/en/...
I had the same problem. The thing with gc.collect() and cuda.empty_cache() is that these methods don't remove the model from your GPU they just clean the cache. So you need to delete your model from Cuda memory after each trial and probably clean the cache as well, without doing this every trial a new model will re...
I tried installing Superset by following the steps provided in https://artifacthub.io/packages/helm/superset/superset. Postgresql and redis managed to install correctly. When i am running `helm install my-superset superset/superset --version 0.12.6` it takes a lot of time and returns ``` Error: INSTALLATION FA...
|postgresql|query-optimization|
I am a investigating the decorator pattern in kotlin and would like to encrypt/decrypt data class fields with a cryptography decorator. one thing i do not understand is that the decorator approach requires an instance of the class being decorated. which means the data class fields i wish to encrypt will already cont...
Put desired color to fill transparent areas of an image in CSS
|javascript|html|css|
Is there any way to setup a type checker to validate that SQL queries are using the right columns from the right tables and the right dialect?
Is there anyway to setup VSCode to check that SQL queries are valid
|postgresql|sqlite|visual-studio-code|
Because the audio source is not loaded directly on the audio element, and rather on the children nodes called `source`, you can't access it via `document.querySelector('audio').src`. The right way to do it is to get the child element and access the source from there, but since Puppeteer is a middle man between Node ...
Thought this might be helpful for other, While adding signing ssh key in git hub In the upper-right corner of any page, click your profile photo, then click **Settings --> SSH and PGP Keys --> new ssh key** Select the type of key as **signing** there are **authentication** and **signing** options
# Problem The real problem is the Xcode version does not match up with your cocoapods version. The command could be pod init or pod install, you'll face with the same error as the original question shared. # Solutions I've faced this issue multiple times, so I'll be sharing all the different scenarios that I'v...
Because the audio source is not loaded directly on the audio element, and rather on the children nodes called `source`, you can't access it via `document.querySelector('audio').src`. The right way to do it is to get the child element and access the source from there, but since Puppeteer is a middle man between Node ...
try to use " import { http } from 'msw' " instead https://mswjs.io/docs/migrations/1.x-to-2.x/
The newest MSW version has deprecated rest in favor of http. The solution then should be to update your import to: import { http } from 'msw'; From there you can follow the migration guides at this link: https://mswjs.io/docs/migrations/1.x-to-2.x/ to ensure you're properly setting up your mocks.
The ggplot function expand_limits(x = 0) produces very pleasing spacing for many graphs (in a loop) but I'd rather not have the zero label. Does anyone know how to remove the zero label only ? The labels also need to be integer so I've tried to modify Joshua Cook's function: integer_breaks <- function(n = 5, .....
R ggplot2: Is it possible to remove the zero label after using expand_limits(x = 0)?
|ggplot2|integer|zero|x-axis|
I press the send message key, everything works normally, I press the stop key, again normal, but app.stop does not stop, I get an error when sending a message again Code; ``` from customtkinter import * import customtkinter as ctk from threading import Thread import time, os, asyncio from pyrogram import...
TypeError: Cannot read from private field in Tanstack React Query
|javascript|reactjs|react-query|tanstackreact-query|
The problem. I had the button click inside a form tag on my page and the button type was not set so it defaulted to submit. Everytime it was clicked it tried posting and performing my async web call followed by page navigation. It then became confused and I got intermittent results. <button class="btn btn-prim...
In regex, you have to escape a slash with a backslash (`/` -> `\/`) So in your case: ``` \/log[^\/].* ^ ^ added backslashes ``` [link to regex101.com](https://regex101.com/r/tru7sf/1)
I haven't had time to check it on my code. But from my analysis it is only running random image name once and the function keeps running because of the server running only called the function once (singleton). I think you can refactor and create helper function for getting the randomImgName in different file like r...
I am working with SpringBatch and JPARepository. I have 2 Connections DB2 & Postgres. I need to switch the DataSources inside a JpaRepository So, to hold the DataSource Context, I followed the link : [AbstractRoutingDataSource][1] So here below is the code public class ClientDatabaseContextHolder { ...
I have a Next.js website where I've created a component named TestMe.tsx. This component uses Next.js Link and Image components, and my project is using Next.js version 14.1.0 . I want to generate a build of this component so that I can reuse it in other Next.js projects as an Npm package. I prefer to configure the ...
create reusable package from component in next.js
|javascript|reactjs|typescript|webpack|next.js|
i had both of these conditions inside an if statement to check if x was even or odd, but the !(x&1) seemed to execute the body of the if in case of even x,while x&1==0 didnt execute. i expected both to give 0 considering 1&0 is 0 and 1 in 32 or 64 bit representations will be 000..01 an if say x is something like 100...
why do x&1==0 and !(x&1) not yield the same results in an if statement in c++?
|c++17|
null
So I have a navbar, and in this navbar I have the logo, the options and then the button. Whenever I apply padding to the button it pushes everything else to the left? Any advice cause I have never had this happen before. This happens with other stuff as well, so if I give the logo any padding it also pushes the items a...
How to implement encryption for kotlin data class fields using decorator pattern
|kotlin|decorator|
null
I'm very new to jboss. I want to extract jboss metrics from my application using jmx_exporter. I'm working with version 5.2.0 of jboss and centos 7. the available docs are using jboss 7 so I didn't find any help in the doc or the examples in internet. I want just to extract some specefic jboss metrics and not all o...
extracting jboss metrics using jmx_exporter and jboss 5.2.0 version
|jboss|jmx-exporter|
null
I am trying to generate dynamically a sidebar using the template coreui with angular 17 The error ExpressionChangedAfterItHasBeenCheckedError ``` ERROR Error: NG0100: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: 'undefined'. Current value: 'disab...
Angular 17 user-layout.component.ts:70 ERROR Error: NG0100