instruction stringlengths 0 30k ⌀ |
|---|
null |
I am starting to learn Java Spring Boot 3.0 and I am using IntelliJ Community Edition with WSL2 as OS. After I installed the most recent Update (2023.3.6) this warning appeared. And it seems that it is avoiding me from Load Maven Project.
[enter image description here](https://i.stack.imgur.com/O5DZG.png)
Other ... |
Ubuntu-22.04 File watcher failed repeatedly and has been disabled (External file changes sync might be slow) |
|java|intellij-idea|wsl-2|ubuntu-22.04| |
null |
**1st solution** - automatic.
The PyCharm plugin **"PyCharm Help"** allows you to automatically download web help for offline use: when help is invoked, pages are delivered via a built-in Web server.
This solution has drawbacks - for me, it downloaded help only for one version of Python, but not for others. Also, i... |
GitHub Pages usage limitations and rate limiting are documented here. https://docs.github.com/en/pages/getting-started-with-github-pages/about-github-pages#usage-limits
At the time of this answer
> GitHub Pages sites have a soft bandwidth limit of 100 GB per month. |
|loops|parallel-processing|fortran|sparse-matrix| |
I have a react app created with create-react-app.
In package.json dependencies I have:
...
"react": "18.2.0",
"react-app-rewired": "2.2.1",
"react-scripts": "5.0.1",
...
in scripts I have:
"scripts": {
"start": "npm run watch:css & react-app-rewired start",
...... |
Why react app shows alert in chrome to confirm reloading? |
|javascript|reactjs|google-chrome| |
I have this settings page with some Input components on it. I want them to be white like the rest of the page but for some reason they are dark. Overwriting the classes doenst help. I use React, Tailwind CSS and DaisyUI.
I also have absolute no Idea why this is even dark at all. If someone could explain this I woul... |
Pytorch distribute process across nodes and gpu |
|python|pytorch|slurm|multi-gpu| |
je veux créer une class BottleOfWater () et une fonction def __init__(self, contenance, couleur, matiere, liquid) :
puis afficher le contenu de la bouteille : bouteille = BottleOfWater (30, "green", "glass", "water")
```
class BottleOfWater () :
def __init__(self, contenance, couleur, matiere, liquid) :
... |
I have my production database with some specific master password and a specific user. My database is AWS RDS with PostgreSQL.
I'm automatically cloning it every day to some *dev* environment, where I need multiple developers to have access to it, but they should not have access to the *production* environment.
Ho... |
null |
I have imported the .less file to the vue component, but it still gives me an error.
I define the variables in `base.less` under `assets/less`.
```
@font-face {
font-family: 'Poppins';
src: url(../fonts/Poppins-Regular.ttf);
font-weight: normal;
font-style: normal;
}
@button-bg-color: #809c2c;
@... |
Here's another easy way to add truly empty columns to your query.
[example of adding empty columns to a query][1]
=query(A:E;"SELECT Col1, 1/0, Col2, 2/0 label 1/0 'blank', 2/0 'blank'";1)
, where 1/0 and 2/0 (any number divided by zero) result in empty columns
[1]: https://i.stack.imgur.com/BBgaa.p... |
The documentation appears to be for the development version not the CRAN version. [In an open issue on GitHub][1], the package developer suggests this:
apa.reg.table(blk1,filename="exRegTable.doc")
[1]: https://github.com/dstanley4/apaTables/issues/40 |
I have recently been through this upgrade.
Upgrading to Appium 2 itself is not mandatory but recommended as most of the tools and frameworks depending on it will be doing it considering that it is the future. If you rely on cloud testing platforms, they would have supporting it as it can be difficult for them to mai... |
Yes. see JBeret examples below. This is specific to JBeret, not a standard feature in Java Batch spec.
https://github.com/jberet/jsr352/blob/main/test-apps/propertyInjection/src/main/java/org/jberet/testapps/propertyinjection/PropertyInjectionBatchlet.java#L215
https://github.com/jberet/jsr352/blob/main/test-apps... |
I am using docker compose watch with compose.yaml file and everything is configured to rebuild on env file change. However, although the image rebuilds and the container is being restarted, environment variables are not changed. Is there a way to do it with watch directive or maybe I would need to use watchtower(just r... |
How to use docker compose watch to sync environment variables change |
|docker|docker-compose| |
While you can't have a `box-shadow: linear-gradient(#9198E5, #E66465)`, you could take advantage of [Pseudo-elements](https://developer.mozilla.org/en-US/docs/Web/CSS/Pseudo-elements) to have the same gradient, mixing it with `filter: blur(10px)` to have the same effect of shadow. Note that `#back` must have `z-index: ... |
I have the following controller's action:
```C#
[HttpPost("api/v1/addProduct")]
[Consumes("multipart/form-data")]
public Task<ProductDto?> AddProduct([FromForm] ProductRequest request, CancellationToken cancellationToken)
{
return _productService.AddProduct(request, cancellationToken);
... |
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 reset vue product filter? |
|javascript|vue.js| |
null |
so I have a library (physical) with around 20k books and I am in the process of digitalising these books (making them into pdfs by scanning).
I want to make an open library which can host all these 20k books with search, the search is not limited to book name but can also be author or publications.
I’ve thought... |
Open Web Library |
|php|html|sql|database|server| |
null |
|javascript|reactjs|json|remix.run| |
In a basic Remix V2 app, i need help understanding if the following is expected behavior, a bug in V2, or possibly a missing configuration option or setting.
I could not find anything related to this issue in the Remix documentation.
I created an demo Remix V2 app by running `npx create-remix@latest`
I wrote a... |
in the current screen call
const CurrentScreen = ({navigation})=>{
navigation.navigate('TargetScreen', {phone});
}
in the other side you can get it on route params
const TargetScreen = ({navigation, route})=>{
console.log(route.params.phone) // the phone number is just hir... |
Kinda new to programming, but heres the problem:
As the title suggest, im correctly sending the data im writing to the database through the form.
```
<!-- VISUALIZZA TABELLA -->
<div>
<!-- MODALE AGGIUNGI -->
<div class="modal fade" id="addTreatment" tabindex="-1" role="dialog" aria-labe... |
I need an azure product where i can run my ffmpeg process on but i dont want to deal with acces overhead etc. But i need to be able to specify how strong the cpu and stuff should be.
So consumption functions would be to weak & Premium functions are billed with a fixed rate so i cant use that either
I tried first ... |
I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips? |
|azure|ffmpeg|cloud|scale|cost-management| |
null |
use the following:
python setup.py install --prefix=<your path> |
Assuming no date comes before Jan 1, 1970 (standard epoch time). This should suffice. And if you do have pre-1970 dates, change the `int year = 1970` statement below to have an initial value of `1`.
The code below basically counts up the number of seconds from 1/1/1970 at midnight accounting for leap years as it go... |
Every time i refresh the page, the form makes another db call |
|php|mysql| |
null |
If it is the last stage in your Jenkinsfile, (like my case), you can use `BUILD_ID=dontKillMe` to solve that problem, like this:
stage("Run"){
steps{
withEnv(['BUILD_ID=dontKillMe']) {
script{
sh '<YOUR COMMAND HERE>'
}
}
}
}
In my case, ... |
I need to train a model to add the SSML tags and punctuation to the input text.
For example, from the sentence "Hello world." I'd like to get the
`<speak> Hello! world. </speak>` output.
Another example:
Input: "In reverse bias, the electrons flow from anode to cathode (P -> N), while the holes (positive charg... |
|huggingface-transformers|training-data|large-language-model|huggingface|seq2seq| |
I am using Next.js 14 (App router) for my react project. I need to use Graphql. I also have the Apollo server set up. As a complete beginner, quite confused as to which directory to create which file. I have installed Apollo client and have
app\util\apolloClient.ts
So in order to wrap with Apollo provider, is it la... |
Using Apollo client wrapper in Next.js 14 App router |
|typescript|next.js|graphql|apollo-client|apollo-server| |
{"Voters":[{"Id":341994,"DisplayName":"matt"},{"Id":2395282,"DisplayName":"vimuth"},{"Id":11841571,"DisplayName":"Lamanus"}]} |
I'm having trouble getting my Oracle connection to work with IIS. I've tried different methods, such as adjusting access permissions for authenticated users/IIS users to the Oracle client directory and adding Oracle_Home to my environment path. However, I'm still facing the error 'System.Data.OracleClient requires soft... |
Oracle Managed Data Access Client can't work from IIS but work for local debug environment |
|c#|oracle|.net-4.8|oracle-manageddataaccess| |
null |
The VCALENDAR object, as supplied, is not strictly valid: the EXDATE property must have one or more date-time or date values (see [3.8.5.1. Exception Date-Times](http://icalendar.org/iCalendar-RFC-5545/3-8-5-1-exception-date-times.html)).
Despite that, *vobject* parses the data successfully, ending up with an empty ... |
For install **cudatoolkit and cudnn** by Anaconda you can use these following command `conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0`
You must aware the **tensorflow version** must be less than **2.11**
For check if the everything installed properly
1) In command prompt check `nvidia-smi` command... |
{"Voters":[{"Id":3966456,"DisplayName":"Weijun Zhou"},{"Id":550094,"DisplayName":"Thierry Lathuille"},{"Id":4032703,"DisplayName":"EJoshuaS - Stand with Ukraine"}],"SiteSpecificCloseReasonIds":[19]} |
Unable to decode audio data and get sample rate |
|javascript|web-mediarecorder| |
Unfortunately, you cannot parametrize the name of a table (see [this post][1]). You will have to use Python string operations to do what you are attempting here.
[1]: https://stackoverflow.com/questions/474261/python-pysqlite-not-accepting-my-qmark-parameterization |
I have created a new disk using the code below:
```
disk_client = compute_v1.DisksClient()
request = compute_v1.InsertDiskRequest(project=PROJECT, zone=ZONE,disk_resource=disk)
operation = disk_client.insert(project=PROJECT, zone=ZONE, disk_resource=disk)
```
Using gcloud I can see my operation:
```
gclou... |
How can I get the long running operation with google.api_core.operations_v1.AbstractOperationsClient |
|python|google-cloud-platform|google-compute-engine|long-running-processes|google-compute-disk| |
null |
|r|classification|decision-tree|rpart| |
To make it work on newly enabled High Performance Orders Storage (and in legacy mode too), use the following:
```php
add_action('manage_shop_order_posts_custom_column', 'custom_orders_list_column_content', 20, 2);
add_action('manage_woocommerce_page_wc-orders_custom_column', 'custom_orders_list_column_content', 20, ... |
|javascript|php|clipboard| |
I created my token on BSC and I am currently trying to verify the code on BSCScan:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract Token is ERC20 {
co... |
When your `m_data` object is constructed, its constructor first adds a *copy* of the `data1..data5` members to the `data` list *before* those members have been initialized. Those members are initialized *after* the `data` list is populated, and the pointers stored in the `data` list are never being updated.
So, whe... |
simply put nothing inside th oninitialise method runs the public class TutorialModClient appears grey in IntelliJ .I have all the necessary entries in my fabric.mod.json :
the json entries are
```
"entrypoints": {
"main": [
"net.example.vladimir.TutorialMod"
],
"client": [
"net.example.vladimir.Tuto... |
Well, the current version of XSLT is 3.0, there you could use `xsl:where-populated` as follows:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="3.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="#all"
expand-text="yes">
<... |
{"OriginalQuestionIds":[14368788],"Voters":[{"Id":4108803,"DisplayName":"blackgreen"}]} |
I found the issue.
The culprit was this line
```dart
final int index = y * width + x;
```
where I wrongly assumed ```width``` to be always equal to ```image.planes[0].bytesPerRow```
but the values shown in my question already point out that they can be different (512 vs 320).
The additional length is a paddin... |
|xml|xslt|xslt-2.0| |
The Google Docs explain that the peak_qps Google Cloud Metric is the project's maximum per-second crypto request count but it always seems to read too high when I view it in the console using the Metrics Explorer. Am I mis-understanding what it represents?
If I do
- 3 decryptions every second the peak_qps... |
I want to know why I get this JDBC connection error. I already added the SQL driver in classpath.
When I try use init parameter
```
@WebServlet(urlPatterns="/addServlet",initParams= {@WebInitParam(name="dburl",value="com.mysql.cj.jdbc.Driver"),`
`@WebInitParam(name="dbUser",value="test"),@WebInitParam(name="dbP... |
I am running into an issue where I am getting a CORS error when trying to fetch an Excel file from Firebase Storage.
This is the error I am getting:
> Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <Firebase_Storage_File_URL>. (Reason: CORS header ‘Access-Control-All... |
From [\[bit.cast\]/2](https://timsong-cpp.github.io/cppwp/n4950/bit.cast#2):
> [...] A bit in the value representation of the result is indeterminate if it does not correspond to a bit in the value representation of _from_ [...].
For each bit in the value representation of the result that is indeterminate, the smal... |
In OWASP ZAP what does the summary in the Token Generation and Analysis tool mean?
What do each of the tests mean? There is not very much info about this tool online.
[ZAP Token Generation and Analysis tool][1]
[1]: https://i.stack.imgur.com/pWU9q.png |
I have been dealing with WordPress for many years, but have a delicate problem with an access rule that I want to store in .htaccess. I use actually Apache 2.4.56.
- Initial situation 1: The web server should only be accessible from the outside for certain users.
- Initial situation 2: I have two given IP addresses... |
Special access rule in an .htaccess file for IP addresses, authorized only for one directory structure |
|regex|apache|.htaccess| |
null |
1. I have a classic build pipeline
2. I have defined a non-secret (var1), and a secret var (var2) in variables tab
3. I have maven task that runs my java application
4. I have tried to access the value of the variables through getenv, getProperty and ProcessBuilder approach.
5. getenv and getProperty return n... |
I'm trying to connect my php web application to mysqli for a school project, but mysqli does not seem to be installed. When I try to run my localhost8080 I get:
[mysqli error message](https://i.stack.imgur.com/aYlsL.png)
I was under the impression of my instructor that mysqli is part of PHP and automatically inst... |
After I plugged my iPhone into my mac, I started debugging my app. For the first few days, it all seemed smooth.
But after a few days, things changed.
The `Debug` -> `Attach to process` menu is empty, as shown below. I can't figure out why.
But the weirder thing is that when I debugged my app three months later, t... |
Consider something like [Google Input Tools](https://www.google.com/inputtools/) for instance, which can transliterate text in multiple languages using the Latin script. As you type a word, it interactively autocompletes it, showing you multiple possible results.
My question is, do the major OSs (i.e. Linux, macOS a... |
We're building an API and I'm working on the rewriterule of my htaccess to make our URL like this `example.com/student/user/parameter1/parameter2`.
Everything is working fine until I caught a problem:
The `parameter2` consists of random alphanumeric and special characters, and it also includes a forward slashes (... |
I am working on a fabric mod and I have issues with the ClientOnInitialize method |
|java|json|intellij-idea|minecraft|fabric| |
null |
How can I get the screen reader to read controls that are not tab stops (e.g. static labels)? |
Saving a custom template with humanize function in it, fails with the following error: `Error: failed to save and apply Alertmanager configuration: template: mytemplate:2: function "humanize" not defined`.
Template contents are:
```
{{ humanize (0.123456) }}
```
Grafana version: 9.5+
|
Grafana error: function "humanize" not defined |
null |