instruction stringlengths 0 30k ⌀ |
|---|
I'm encountering an issue with the RadzenTemplateForm component where the keydown event is not functioning as expected in Chrome and Edge browsers. The code I'm using is as follows:
`<RadzenTemplateForm Data="@_Contract" @onkeydown:preventDefault="shouldPreventDefault">
<!-- Form content goes here -->
... |
React Grid Drag n Drop |
|javascript|reactjs|drag-and-drop|grid|framerjs| |
null |
You should be able to resolve it by removing the quotes from around the values in your `.env` file. |
The **ggpmisc** tag should be used for questions related to the use of R packages 'ggpmisc' and 'ggpp'. These packages extend the grammar of graphics implemented in package 'ggplot2'. Package 'ggpp' is a spin-off from 'ggpmisc'. _However, bug reports and requests for enhancements should not be posted here, but instead ... |
null |
I've been using Google Vertex AI Search & Conversation for the past few weeks, and I've noticed a significant change recently.
Initially, when I made a query, it would only display the most relevant results. If the query was irrelevant, it would show no results at all. For instance, consider this example showing a c... |
How can I update existing mongodb database with a new array in Node js |
|node.js|mongodb|mongoose|mongoose-schema| |
I have done chunking of the data prior to this and intend to do embeddings and store in pinecone. I have reffered youtube on this as well and found this code and its not working.
docsearch = pc.from_documents([t.page_content for t in text_chunks], embeddings, index_name= 'mcahtbot')
AttributeError: 'Pinecone'... |
I am unable to perform the vector embeddings with the help of pinecon and python |
|langchain|word-embedding|huggingface|py-langchain|pinecone| |
null |
I'm facing difficulties in training multiple models using Keras and Transformers. Below are the code snippets of the models and the errors encountered during training:
- Model 1: LSTM Model
```
(X_train, y_train), (X_test, y_test) = keras.datasets.imdb.load_data()
X_train = X_train[:2500]
y_train = y_train[:25... |
--- ViewModel ---
public class ViewModel : ObservableObject
{
public ViewModel()
{
RequestCommand = new RelayCommand(RequestAsync);
}
private TaskNotifier<string> _requestTask;
public Task<string> RequestTask
{
get => _reques... |
```vb
Sub HighLightPvtHeader()
Dim pvtTable As PivotTable, pvtField As PivotField
Dim headerRow As Range
Set pvtTable = Sheet1.PivotTables(1)
With pvtTable.TableRange1.Rows(2)
Set headerRow = .Resize(, .Columns.Count - 1).Offset(, 1) ' modify as needed
End With
For Each pvtFiel... |
Does anyone know of a github page that was made with just HTML and Tailwind CSS (without any framework, library or static site generator), where a "background image" is displayed, as indicated in the Tailwind documentation [here][1] or [here][2] ?
I've already used github pages to publish a static page with HTML and... |
Tailwind CSS background image does not work on github pages |
Vertex AI Search is querying all the documents in a datastore. Is this a bug? or a feature? |
|google-cloud-vertex-ai|vertex-ai-search| |
null |
I would like to start by saying that I'm a beginner and I'm trying to learn React so please don't be too harsh if my question is dumb.
I'm trying to learn to animate my pages a bit, and I've seen that you can have a Drag and Drop feature on different elements on your page.
I've heard about libraries such as Reac... |
**index.html**
```
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>hello</h1>
<img src="D:\New folder\f2\pexel... |
I try to train a custom extraction model in Azure Document Intelligence Studio on an around 10 pages document.
In their sample labeling tool, I can see the first 2 pages having the OCR extracted value for ease of labeling.
(https://i.stack.imgur.com/rLCAg.png)
However, from every document's 3th page onwards, n... |
Is it expected that the doc intelligence studio labelling tool only returning 2 pages of extracted value? |
|azure|azure-form-recognizer| |
null |
I am working on an Angular application where I need to upload files or images to an S3 server using the http.put method. I have written the following code, but I am encountering issues with the upload process. Here is my code:`uploadFileToS3(fileUrl: string, file: File): Observable<any> {
const formData = new Form... |
The chatbot code works well on the console but not when deployed on the website |
|python|flask|pytorch|nltk|chatbot| |
null |
I'm using WIX v3 to create installer for our app. We already have an MSI that can be installed with standard wizard that gives user options to install it only for them or for all users.
Now clients said that they want to install it in console with
```
msiexec /i <app.msi> ALLUSERS=2 /qn
```
So they want to ins... |
create MSI that can be installed in console per user and per machine |
|windows-installer|wix3| |
null |
{"Voters":[{"Id":8982034,"DisplayName":"Skully"},{"Id":2943403,"DisplayName":"mickmackusa"},{"Id":11854986,"DisplayName":"Ken Lee"}],"SiteSpecificCloseReasonIds":[13]} |
Exception has occurred.
FlutterError (setState() or markNeedsBuild() called during build.
This _ModalScope<dynamic> widget cannot be marked as needing to build because the framework is already in the process of building widgets. A widget can be marked as needing to be built during the build phase only if one of its a... |
|tailwind-css|http-status-code-404|background-image|github-pages| |
--- ViewModel ---
public class ViewModel : ObservableObject
{
public ViewModel()
{
RequestCommand = new RelayCommand(RequestAsync);
}
private TaskNotifier<string> _requestTask;
public Task<string> RequestTask
{
get => _reques... |
varnish cache community edition doesn't support TLS connection to the backends. |
I came up with a solution myself.
```
SELECT DISTINCT *
FROM (
SELECT group_concat(v2_id ORDER BY v2_sort_me ASC)
FROM (
SELECT v1.id AS v1_id, v2.id AS v2_id, v1.sort_me AS v1_sort_me, v2.sort_me AS v2_sort_me
FROM t v1
JOIN t v2
ON abs(v1.value - v2.value) < 20
)
GROUP B... |
After much troubleshooting, the `"%7.2f"` was creating text that was too long for the text field defined by `widget` (NB, `widget` is a `gchar[]` string naming the widget, not a widget object).
The length of `txt` exceeded the text field's `max-length` as defined by the Glade XML, so `gtk_entry_set_text` would tri... |
This is Super Duper Duper annoying!
I found this comment...
https://github.com/lovell/sharp/issues/3295#issuecomment-1186927843
and tried this...
nitro: {
hooks: {
'dev:reload': () => require('onnxruntime-node')
}
}
Now I get a different error but I'm not sure if i... |
Try replacing localhost with 127.0.0.1
"proxy": "http://127.0.0.1:2371",
Your package.json should look something like this
{
"name": "something",
"version": "0.1.0",
"private": true,
"proxy": "http://localhost:2371",
"dependencies": {
},
"s... |
Latex overleaf error that I can't seem to solve |
|javascript|html|metro-ui-css| |
When embedding shell scripts in your compose file (or other YAML documents), you will in almost all cases find it more manageable to take advantage of YAMLs various extended quoting operators. Instead of this:
```yaml
command:
- "sh"
- "-c"
- "echo this is a test; date > some_file; some_other_command"
```
Us... |
Try this:
function insertcol() {
const ss = SpreadsheetApp.getActive();
const sh = ss.getSheetByName("Sheet0");
const vs = sh.getDataRange().getValues();
const o = vs.map(([a,b]) => [a,a+b,b]);
sh.getRange(sh.getLastRow() + 2,1,o.length,o[0].length).setValues(o);
}
Inpu... |
i'm currently writing a thesis in LateX and i'm still learning how to properly used it.
My problem is that i have something like this [not aligned paragraph](https://i.stack.imgur.com/14YXK.jpg) and i want something like this [aligned paragraph](https://i.stack.imgur.com/l68lr.jpg)
Here what i wrote:
```
\do... |
null |
|android|kotlin|integration-testing|dagger-hilt| |
I checked the docs:
> Snapshotting is effectively **“recording after the fact”**. Rather than starting recording at a specific point, snapshotting allows you to convert requests already received by WireMock into stub mappings.
If I'm reading it right, this should pass:
```java
package com.example.gatewaydemo.mi... |
WireMock's recordings are empty after a successful call |
I have written two blocks of R-code. I believe that they should both do exactly the same thing - except that one uses a for-loop approach and one uses the sapply function. However, they produce slightly different results. Does anyone know what is causing the slight differences here? Interestingly, both methods produce ... |
why static file handling in express js does not work for absolute path? |
|node.js|express|backend|mern| |
null |
There are a few issues with your code
1. `.click()` returns `void` (nothing) so assigning a variable to a click action does nothing,
df2.loc[df2["TF"]== "YES"] = elemento_tf.click()
1. I don't understand what this line is supposed to accomplish. You have a `df2.loc[]` index as `True` or `False`...?
... |
For those who wondering, this may be your answer
https://stackoverflow.com/a/51958272/23296640
https://nodejs.org/en/learn/asynchronous-work/the-nodejs-event-emitter |
{"Voters":[{"Id":3874623,"DisplayName":"Mark"},{"Id":5459839,"DisplayName":"trincot"},{"Id":2988,"DisplayName":"Jörg W Mittag"}]} |
[enter image description here][1]How to change the color of the liquid when two pipes merge to a given one, depending on which of the flows prevails?
The output is the color of the liquid, which is the first to reach the confluence point. Used Pipeline and Fluid Merge.
[1]: https://i.stack.imgur.com/qFT5V.jpg |
For those who wondering, this may be your answer
https://stackoverflow.com/a/51958272/23296640 <br>
https://nodejs.org/en/learn/asynchronous-work/the-nodejs-event-emitter |
How to change the color of the liquid when two pipes merge to a given one, depending on which of the flows prevails?
The output is the color of the liquid, which is the first to reach the confluence point. Used Pipeline and Fluid Merge.
[image][1]
[1]: https://i.stack.imgur.com/qFT5V.jpg |
I have made a simple CRUD database program for harvest. It is able to read from database, update the database, delete things from database and etc. by doing queries to the SQLite3 database. Now, I would like to make it executable so that I could share it to users for them to try out the program.
I have tried pyinst... |
How to change the color of the liquid when two pipes merge to a given one, depending on which of the flows prevails?
The output is the color of the liquid, which is the first to reach the confluence point. Used Pipeline and Fluid Merge.
[1]: https://i.stack.imgur.com/qFT5V.jpg |
If the application was compiled with line number information, it's possible.
However, most decompilers do not handle line number realignment natively, except https://github.com/java-decompiler/jd-gui. In Preferences menu, tick checkbox `Realign Line Numbers`.
See also this fork, line number realignment can't be per... |
I am getting error in flutter exception error |
|ios|flutter| |
null |
I tried to develop a chatbot using deep learning techniques and NLTK tools within the Python programming language. Initially, the chatbot performed satisfactorily when tested within the console environment, exhibiting no errors. However, upon attempting to deploy it onto a website, I encountered unexpected challenges. ... |
{"Voters":[{"Id":23528,"DisplayName":"Daniel A. White"},{"Id":298607,"DisplayName":"dawg"},{"Id":367865,"DisplayName":"Ouroborus"}]} |
Quite simply, the C++ standard explicitly imposes no requirements on the accuracy of floating-point operations or the numeric library functions like `std::pow`. They are *implementation-specific.*
The various standard library implementations<sup>1</sup> (glibc, musl, etc.) can and do use different approximations of ... |
{"Voters":[{"Id":40868,"DisplayName":"Fredou"},{"Id":1663001,"DisplayName":"DavidG"},{"Id":839601,"DisplayName":"gnat"}]} |
I have VS Code configured for formatting on saving and also configured for auto-saving after delay using the following settings:
{
...
"editor.formatOnSave": true,
"files.autoSave": "afterDelay",
"files.autoSaveDelay": 1000,
...
}
But, it does not format when auto-... |
How to format on "auto save" using VS Code? Currently, it only formats on manual save (ex. control+s) |
So I was trying this in Editor but I found that the Editor is Mono only and it can't support directly adding C++ files to it: https://forum.unity.com/threads/including-c-c-source-files-as-plugins-in-il2cpp-back-end.786287/ |
How meta Quest 3 device technical feasibility can be used to measure the following between two products?
Distance between Virtual-Virtual object & to Virtual-Real objects?
Physical interconnecting Virtual space between two objects and real-virtual objects?
can someone please explain the technicality and how to... |
```
def smooth_data_mp(data_frame, n): # dataframe is the data and n is number of data points to look at
num_processes = os.cpu_count() + 2
chunk_size = len(data_frame.index) // num_processes
print(chunk_size)
end_chunk = len(data_frame) // chunk_size - 1 # have to subtract 1 cuz indexing by 0 th... |
How can I chop up data before sending it into a multiprocessing function? |
|pandas|multiprocessing|signals| |
Finally, I've found a solution to this problem without utilizing the redirect and refreshListenable properties of GoRouter.
The concept involves creating a custom redirection component. Essentially, we listen globally for authStateChanges, and upon any change in AuthenticationState, we navigate to our redirection co... |
R Sapply function seems to produce slightly different values to for loop approach |
|r|arima|sapply| |
null |
So... I have figured it out through debugging it step by step
The problem was that iterator went past the `end()` of a list doing it twice.
I have fixed a problem and my code works correctly now, I simply needed to add `break;` so it won't go out of bounds of said list. Also made it into `while` loop, and renamed a f... |
{"OriginalQuestionIds":[10729983],"Voters":[{"Id":3959875,"DisplayName":"wOxxOm","BindingReason":{"GoldTagBadge":"google-chrome-extension"}}]} |
<!-- language-all: sh -->
* Your attempt to enclose `$appCheck.UninstallString` in _embedded_ `"..."` is unnecessary (and happens to make no difference in this case)
* PowerShell, when it constructs the process command line ultimately used behind the scenes, will _automatically_ enclose the value of `$appCheck.U... |
I have been studying about the useEffect hook in reactjs. and i studied the we can not pass parameters to useEffect function, this is understandable. but tried to search for the reason the why is it not allowed to pass parameters in useEffect function.
`useEffect((parameter)=> {
console.log(parameter)
... |
Why functoin in useEffect does not accept parameters? |
|javascript|reactjs|react-hooks| |
null |
This is an extension to this [post][1].
My DataFrame is:
import pandas as pd
df = pd.DataFrame(
{
'main': ['x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'x', 'y', 'y', 'y', 'y', 'y', 'y', 'y'],
'sub': ['c', 'c', 'c', 'd', 'd', 'e', 'e', 'e', 'e', 'f', 'f', 'f', 'f', 'g', 'g',... |
{"Voters":[{"Id":2777074,"DisplayName":"samcarter_is_at_topanswers.xyz"},{"Id":9214357,"DisplayName":"Zephyr"},{"Id":466862,"DisplayName":"Mark Rotteveel"}]} |
|pine-script|pine-script-v5| |
{"Voters":[{"Id":2756409,"DisplayName":"TylerH"},{"Id":1007220,"DisplayName":"aynber"},{"Id":354577,"DisplayName":"Chris"}],"SiteSpecificCloseReasonIds":[18]} |
Did you read the `np.dot` docs? Pay attention to what it says about 1d arguments?
In [209]: a = np.array([1,2,3,4])
...: b = np.array([1,2,3,4])
...: dot_product1 = np.dot(a, b)
...: print(dot_product1, type(dot_product1))
...:
...: a = np.array([1,2,3,4])
... |
I am running Windows 11 and have set Windows Terminal as my default terminal both in the `Settings>Privacy & Security>For Developers>Terminal` applet (per this question: https://stackoverflow.com/questions/63211882/visual-studio-launch-terminal-instead-of-command-prompt), *and* in Visual Studio 2022's Options>Environme... |
Uploading Files/Images to S3 Server Using Angular HTTP PUT Method |
|angular|ajax|http|amazon-s3|put| |