instruction
stringlengths
0
30k
How do I change background and zoom settings in Spline Scene
|javascript|animation|spline|
null
I'm making a psychological quiz in REACT. There is text. In a text editor. The text consists of 100 questions and 340 answers. How to make a React program that took at least 2 questions, preferably 10 questions at once, and inserted brackets and other characters so that this data could be taken from an array file? I pu...
Using CSS module scripts (still not finalized, Stage 3, and currently only working in Chromium-based browsers): ```javascript // import the css and directly get a constructed stylesheet from it import css from './path/to/styles.css' assert { type: 'css' }; // ... // then, in the constructor: this.shadow...
I'm trying to restart my linux server before preforming some tests on it in my Jenkins job. I want to restart it and wait a while and then start to run some tests. but the restart keep failing my node (and my run) Iv used "shutdown" instead of "reboot" but if posable I wish to use "reboot" ``` node(my_server) {...
How to restart current node without failing the test in Jenkins scripted pipeline?
|jenkins-pipeline|
null
Im trying to do a enlistment system. that uses mysql to register players. i can add players to the diffrent spots but when i want to remove one i would just like the database to find witch one i want to remove and remove that one. There are 6 diffrent spots a player can have. I have tried a little bit of everything ...
Clear a Specific field in mysql
|mysql|
null
`GestureDetector` requires a child Widget to execute, the Gesture behaviour will execute on the child widget. Whatever widget you want clickable, just wrap with the `GestureDetector` and add **onTap** and other required property.
I am getting the error while hitting the home page. ``` java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator ``` I have created one spring-boot project where in the home.jsp page I am using the tag ``` <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> ``` In pom...
java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator in Spring-boot jsp application
|java|spring-boot|jsp|jstl|pom.xml|
null
`ret = (int **)malloc(sizeof(int) * len);` is wrong. The type of `ret` is `int **`. It is a pointer to `int *`. You are allocating space for `int *`. So you want the size of `int *`. Generally, it is preferable to calculate the size from the thing you are assigning to: ``` ret = malloc(len * sizeof *ret);` ``` `...
As an alternative to my other answer, I was just wondering how exactly are you using the storage class variables? Instead of 4 `boolean` variables wouldn't it be easier to just declare one `string` variable and add a condition in order to accept only valid values? For example, assuming that valid values are `sc1`...
socket io working fine on local environment but causes problem when run using deployed site
|reactjs|node.js|deployment|socket.io|mern|
null
[enter image description here](https://i.stack.imgur.com/OtOzM.png) Hello! I am new to Azure Container Registries and Azure Container apps. I am trying to create a container app using a private image in ACR. My ACR has admin user turned on for a username and password. I also have a managed identity with the proper...
null
{"Voters":[{"Id":9599344,"DisplayName":"uber.s1"}],"DeleteType":1}
So not only the order of the middleware was incorrect but there were a couple of things missing in the swagger configuration the RoutePrefix is set to empty so that opening localhost:5000/ will show the swagger page, otherwise localhost:5000/swagger should be used ``` csharp using Microsoft.EntityFrameworkCore; ...
I have a import some csv file in Pandas with using of Forward slash and Backslash. How Can I know which file will be use with forward and Backslash?[enter image description here](https://i.stack.imgur.com/Y9sr1.png) Please tell me answer as soon as possible.
For the exact code format , errors that I are logged and sent back to the client(Postman) when in 'development' are not sent back to the client when NODE_ENV= 'production'.this is the code for global error handler module.exports = (err, req, res, next) => { err.statusCode = err.statusCode || 500; e...
NODE_ENV='production' doesnt not log the errors from the global error handler middleware
|javascript|node.js|mongodb|express|mongoose|
I can't explain why exactly d3-sankey doesn't avoid that crossover, but if you change the order of your data (and don't bother messing with the iterations) you can avoid it... ``` r library(networkD3) source<-c(1,0,2,1) target<-c(3,3,4,4) value<-c(13320, 274, 10950, 96000) links<-data.frame(source, target, valu...
As stated in the error: 'sklearn' PyPI package is deprecated, use 'scikit-learn' rather than 'sklearn' for pip commands Therefore try: pip install scikit-learn
You already got some working versions of your query in the other answers, but noone told you why your query is wrong. **YOUR QUERY IS NOT WRONG!** It is a bug in MySQL, appearing in MySQL 8.0.22, which could point to the index condition pushdown optimization for derived tables which was added there and had [a lo...
Instead of `{{notification.quotationId}}`, you may use the following instead. ``` {{notification["quotationId"]}} ``` This is a quick-fix, which is also suggested by WebStorm.
pip install sklearn: Cannot install sklearn
Currently you are blocking thread where events are coming in and IO Operations can take some time. You could use something like this. When have the data coming from an event you immediately give it to a handler which keeps track of data in a queue which is safe to be accessed from many threads and uses First in first o...
If necessary add to `housing_labels['median_house_value']` all missing indices starting with `0` and maximal index and set to `0` first and then use advanced numpy indexing `b[idx]` with `np.median`: maximal = housing_labels.index.max() b = housing_labels['median_house_value'].reindex(range(maximal+1), fill...
Im trying to do a enlistment system. that uses mysql to register players. i can add players to the diffrent spots but when i want to remove one i would just like the database to find witch one i want to remove and remove that one. There are 6 diffrent spots a player can have. I have tried a little bit of everything ...
The documentation states that a list constant in scalar context currently returns the number of values, but this may change in the future. It also states that, to use a list constant as an array, place it in parentheses. So, what is the correct way to get the number of values in a list constant, and what and I doing wr...
How to get the number of items in a Perl constant list?
|list|perl|compile-time-constant|
I'm making a psychological quiz шт REACT. There is text. In a text editor. The text consists of 100 questions and 340 answers. How to make a React program that took at least 2 questions, preferably 10 questions at once, and inserted brackets and other characters so that this data could be taken from an array file? I pu...
``` <div className="product-information-tabs"> <nav> <div className="nav nav-tabs"> <a href="#" className={`nav-link ${activeTab === "Description" ? "active" : ""}`} onClick={(e) => { e.preventDefault() setActiveTab("Description") ...
I got stuck in switching tabs with animations as there are limitations in CSS properties
|css|reactjs|
null
I'm trying to limit the range of numbers entered into a TextField in my SwiftUI app, specifically between 8 and 64. I've implemented ParseableFormatStyle to handle this, and I've defined a custom logic in the format function. However, even though the format function seems to be working correctly, the changes aren't ref...
What is the difference between Forward slash and Backslash in Jupyter Notebook?
|python|pandas|dataframe|
null
{"OriginalQuestionIds":[27959258],"Voters":[{"Id":523612,"DisplayName":"Karl Knechtel","BindingReason":{"GoldTagBadge":"python"}}]}
If you're encountering the error, you can resolve it by wrapping the TextField inside an Expanded or Flexible widget within the Row. <!-- begin snippet: js hide: false console: true babel: false --> <!-- language: lang-html --> Row( children: [ TextField( ...
Swift Timer doesn't work on Linux. Works on macOS
Hi I am trying to archive this type of UI. But after running my code I am getting lots of issue. Here I am using list view with style GroupedListStyle(). I am taking 3 sections. isuues I am getting Lots of space between sections. section should have some corner radious A black color separator should be the...
Groups style list view in swiftui
|listview|swiftui|
null
Chrome Extension: How to remove orphaned script after Chrome extension update
According to the [Vercel guide][1] for deploying an Express server. Create a directory named /api. Inside /api, create a file named index.ts. This will be your main server file. You need to create an **/api** folder at the root level and rename your **server.js** to **index.js**, then move the file...
I have created child component and use angular material here i am showing dynamic data which are pass to parent component , i am unable to action icon and name so that i can pass event in parent component from child , this project also standalone using [![enter image description here](https://i.stack.imgur.com/qOf0j...
How to resuse Angular material table in angular 17
|angular-material|material-table|angular17|angular-dynamic-components|
null
|api|testing|ssl-certificate|rest-assured|sslhandshakeexception|
{"Voters":[{"Id":197758,"DisplayName":"toolic"},{"Id":9214357,"DisplayName":"Zephyr"},{"Id":6463558,"DisplayName":"Lin Du"}],"SiteSpecificCloseReasonIds":[13]}
I've often needed this, and I tried several solutions, including [hhighlighter](https://github.com/paoloantinori/hhighlighter), which is mentioned in another answer here. But none of the solutions I tried worked reliably when using multiple patterns, overlapping matches, or in other corner cases like [single](https://g...
TextField ParseableFormatStyle not working properly in SwiftUI
|ios|swiftui|textfield|
Here is how I finally solved it, I modified the code this way and it worked. 1. Api.ts ``` import { homepageQuery, blogPosts, blogPostBySlug } from './queries'; const API_URL = 'https://landing.copyandpost.com/graphql/'; async function fetchAPI(query, { variables = {} } = {}) { // Set up some headers ...
The bars in my bar chart using chartsjs are too wide. How can i make them thinner? Here is my code ```html <body> <div class="chart-container" style="position: relative; height:40vh; width:80vw"> <canvas id="myChart" ></canvas> </div> <script src=" https://cdn.jsdelivr.net/npm/chart.js@4.4.2/dist/chart.umd....
|php|charts|chart.js|width|
null
|charts|chart.js|width|
## *JTOpen Lite* and *JTLite* Instead of the libraries that you are trying to use, I recommend using IBM's *JTOpen Lite* and *JTLite* libraries, which are specifically designed for use on Android. For more information, please see: - IBM support page, [*JTOpen Lite and JTLite - enabling mobile devices which ...
I am importing CSS file in my react typescript project but it's always showing the error [You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders (https://i.stack.imgur.com/QdAl6.png)below Tried below things. ...
import css file in react typescript
|css|reactjs|react-typescript|
null
am facing same issue i add experimental: { optimisticClientCache: false, } in next.config file.It works for me
The pyautogui.keyDown and pyautogui.keyUp functions are not designed to hold a key down for a duration. They are designed to simulate the press and release of a key respectively. Easy way to do what you want is to use a loop that presses the backspace key repeatedly for the duration, as the example import pya...
It’s not possible to take text and translate it into a convenient format. I'm completely confused
I have a textarea where users can paste text from the clipboard. The text pasted `clipboarddata.getData('text')` gets modified. However, I need a switch that if pressing <kbd>CTRL</kbd> <kbd>SHIFT</kbd> <kbd>V</kbd> instead of <kbd>CTRL</kbd> <kbd>V</kbd> the pasted text does not get modified. I tried to cat...
When I use compare with previous period function in looker studio, the none percentage number is working fine, but for percentage number is not showing right, for example this month is 2% last month is 1.3% the difference should be 0.7% instead of (2%-1.3%)/1.3% I try all the ways in the compare with last period fun...
Looker studio compare previous period with percentage number
|percentage|looker-studio|
null
One possibility is to figure out which range each `Point` value lies in, then sum the beginning and end values from that range: ```python ranges = df2['Point'].apply(lambda v:np.argmax((df['A'] <= v) & (v <= df['B']))) df2['Returned Data'] = df.loc[ranges, 'A'].values + df.loc[ranges, 'B'].values ``` Output: ``` ...
I'm making a psychological quiz in REACT. There is text. In a text editor. The text consists of 100 questions and 340 answers. How to make a React program that took at least 2 questions, preferably 10 questions at once, and inserted brackets and other characters so that this data could be taken from an array file? I pu...
The `sharex=True` and `layout='constrained'` argument (as pointed out by @drmuelr) should be sufficient to solve your problem. i.e. `fig, axes = plt.subplots(3,1, sharex = True, layout='constrained')` in your case. Matplotlib by now has good documentation on how to arrange the colorbar here: <https://matplotlib.org...
{"OriginalQuestionIds":[29378566],"Voters":[{"Id":874188,"DisplayName":"tripleee","BindingReason":{"GoldTagBadge":"bash"}}]}
> I previously asked this question, but the question was closed. I don’t know who closed it, but clearly this person has a problem with his head and thinking. What exactly in the question is not clear and unclear? I want to be able to write on different preprocessors (LESS, SASS, SCSS) in one project. The answer to thi...
Angular version 17, is it possible and how to connect several preprocessors (LESS, SASS, SCSS, etc.)
|sass|less|angular17|
The function takes about 20-35ms when ran with `static inline` on GCC or Clang with at least O1 (on O0 its the same 400-600ms like without the static keyword), when static is removed the function takes +400ms to execute on an array with 1bil bytes/chars, when single threaded the function's time doesn't change whether i...
how to change return table column names on in below function. when ```select * from get_parameterbased_return_Table('condition2');``` query execute returns table name should be change (col3 text, col4 text) **table and function** ``` CREATE TABLE public.parameterbased_return_table ( col1 text NULL, col...
how to change return table column names in postgres function
|postgresql|
In VS code, if you have navigated away from an ephemeral tab using the "Ctrl + Tab" shortcut, The default keybinding for this action is "Ctrl + Shift + Tab" on Windows and Linux, and "Cmd + Shift + Tab" on macOS. Tyou can cycle back to the previously active tab, including ephemeral tabs. This allows you to navigate ...
{"Voters":[{"Id":23799442,"DisplayName":"Kouam Brice"}],"DeleteType":1}