instruction stringlengths 0 30k ⌀ |
|---|
I have an existing application that I wrote that uses golang, mongodb, and vuejs. I was written to run locally. I am converting it to use AWS lambda, Atlas MongoDB (hosted on AWS) and VueJS on the front.
The lambda seems to work correctly (fetches documents from MongoDB) and I convert them to JSON. The slice of do... |
Golang JSON to vue front end has issues |
|json|go|lambda| |
Both ways of doing rerun your dependents because you are creating a new array with `[...files()]`.
The mystery comes from the fact that assigning, or not, a file to this element should have no incident on the input rendering (I have tested commenting out both update lines).
Note that the behavior is the same with... |
What's the type of csv.Dictreader.fieldnames in python? |
|python|csv|type-hinting| |
null |
In my react next.js project, using the following versions : `"next": "^14.1.0", "react": "^18"`, I'm declaring a react context object DataContext like so:
```js
// src/app/data/index.tsx
interface Actions {
save: (data: Data) => Promise<boolean>,
delete: (id: string) => Promise<boolean>,
}
export const D... |
null |
I have a fairly simple component, the initial page loads works fine but when I search for text it is not filtering or changing the DOM
I have been following this [guide][1]
could anyone help? It feels like I am missing a step or something is not marking the template as needing to be re-render
```
@page "/soft... |
We are getting URL on doUpdateVisitedHistory method of webview.
Code :
```
webView.setWebViewClient(new WebViewClient() {
@Override
public void doUpdateVisitedHistory(WebView view, String url, boolean isReload) {
super.doUpdateVisitedHistory(view, url, isReloa... |
I've got the following code https://pastebin.com/gp4VerFN/
`subscriptions:`
which fetches a list of names etc from a URL.
It also has a timer, which updates a span with the current time every second.
I'd now like to refresh the list every X seconds but I'm not able to get it to work. Could anyone please explain... |
Hyperapp with list and clock, want to refresh list every 5 seconds |
|javascript|hyperapp| |
null |
Oops, I see there's an answer. Might as well post, since it's already written:
There are two terminal events in the following code, which represents a simple harmonic oscilator.
```python3
import numpy as np
from scipy import integrate
def dy(t, y):
return [y[1], -y[0]]
def event1(t, y):
return y[... |
Hey here is a way to get inviter as rest action
```java
private RestAction<User> getInviter(Guild guild, User user) {
return guild.retrieveAuditLogs().type(ActionType.INVITE_CREATE).map(auditLogs -> {
for (AuditLogEntry entry : auditLogs) {
if (entry.getTargetId().equals(use... |
There's [`information_schema.column_privileges`][1]:
>The view `column_privileges` identifies all privileges granted on columns to a currently enabled role or by a currently enabled role. There is one row for each combination of column, grantor, and grantee.
For some reason it seems like it works fine for tables an... |
For example, given the inventory
```ini
shell> cat hosts
test_01
test_02
test_03
```
and the files */tmp/fstab* (all the same) for testing
```bash
shell> ssh admin@test_01 cat /tmp/fstab
UUID=423d168c-5a90-44f9-94b2-d2da9f0e1e4f / ext4 errors=remount-ro 0 1
UUID=0F15-7883 ... |
As the warning states, you can use an `A` element or other elements that rely on the router API under a Route component.
The problem is that you have an `A` component directly under the `Router` component through the `Header` component but it should be wrapped by a `Route` first. So, you need to move those links und... |
null |
I am retired aerospace engineer. Never used Python, just picking it up on the fly. Not a programmer either.
Using Visual Studio to write a propeller performance analysis code using Blade Element Momentum Theory. This requires using a free, available online, external code called XFOIL.
I have actually made a lot o... |
I'm trying to create a TextFormField that, in case of validation error, only has a red border, and that is happening. But, there is a strange behavior, when the field validation error occurs, the field moves up.
I believe this is caused by the "contentPadding" property that I added, without it, the field does not m... |
{"Voters":[{"Id":14122,"DisplayName":"Charles Duffy"},{"Id":1431720,"DisplayName":"Robert"},{"Id":1394729,"DisplayName":"tink"}],"SiteSpecificCloseReasonIds":[13]} |
I have this crud controller :
```
<?php
namespace App\Http\Controllers\Admin;
use App\Http\Requests\HotelRequest;
use Backpack\CRUD\app\Http\Controllers\CrudController;
use Backpack\CRUD\app\Library\CrudPanel\CrudPanelFacade as CRUD;
/**
* Class HotelCrudController
* @package App\Http\Controllers\Adm... |
Issues with image field (PRO) in Laravel BackPack |
|laravel-backpack| |
If you want to actually do what the question asked and just configure pylint to not complain about certain builtins being redefined, that's easy enough to do:
```
# pyproject.toml
[tool.pylint."messages control"]
allowed-redefined-builtins = [ 'id' ]
``` |
Coding a two-dimensional, dynamically allocated array of `int` is a non-trivial task. If you use a _double pointer_, there are significant memory allocation details. In particular, you need to check every allocation attempt, and, if any one fails, back out of the ones that didn't fail, without leaking memory. And, fina... |
If you're using standalone components you don't need in your routes any lazyloading, standalone it is already lazyLoading strategy.
Also, your homeComponent with `pash: ""` must be at first place, and you don't need this one with path: "home".
Make sure you are imported all necessary modules and components directly t... |
I am currently working through the zero to production in rust book. This is based around cloud native web apps in rust and therefore uses a postgresql database within a docker image. I run linux with purely foss/tracker-free software on my main OS with anything that contains trackers/analytics confined to virtual boxes... |
Does docker contain trackers/analytics |
|docker|analytics| |
I am creating a radar chart via echarts4r package in a shiny app. On small screens, the labels of the radar chart cut off. How do I make sure that the labels are completely visible on any screen? I understand that any solution for this would mean that the radar chart size decreases to accommodate the labels.
### Examp... |
Color pulse broken on linear gradient. Can someone fix it for me? |
|css|css-animations| |
null |
here is my code
```
const puppeteer = require("puppeteer-core");
const SBR_WS_ENDPOINT = "example link for stackoverflow"
async function main() {
console.log("Connecting to Scraping Browser...");
const browser = await puppeteer.connect({
browserWSEndpoint: SBR_WS_ENDPOINT
});
try {
const page ... |
I try to test the sample code from https://www.openssl.org/docs/man1.1.1/man3/EVP_PKEY_CTX_set1_hkdf_salt.html (with some modification). When I run it, the function call of EVP_PKEY_derive returns 0 but no clear error code.
```
#include <openssl/err.h>
#include <openssl/evp.h>
#include <openssl/kdf.h>
int ma... |
openssl: EVP_PKEY_derive failure |
|openssl|kdf|hkdf| |
I did a error while understanding about the polar decompositon.
I thought polar decomposition is `PU`, but it is `UP`. While trying to understand what went wrong, I realized that it is somewhat commutative for the inputs I am giving to it because of which I could not realize about this big mistake.
It would be great... |
Is polar decomposition commutative for diagonal matrices? |
Here the pg_available_extensions word is selected:
[enter image description here](https://i.stack.imgur.com/nWtnd.png)
. The selection is not visible
I tried to find a configuration parameter that would address this issue and could not find one. I lost hours trying to fix this as there are behavior associated to... |
Search ahead not updating template |
|blazor|blazor-server-side| |
Steps to reproduce:
Run the below docker compose file where am installing debugpy and using debugpy to connect to port 5672!
Broken pip -- tried downgrading the pip version to pip 20.0.2 yet that didnt work!
pip version
`bash-5.1# pip --version
pip 23.0 from /.venv/lib/python3.8/site-packages/pip (python 3.8)`
... |
AttributeError: type object 'Callable' has no attribute '_abc_registry' -- debugging Dockerized Python Apps on VS Code |
|python-3.x|visual-studio|debugging|visual-studio-debugging|vscode-debugger| |
null |
I've noticed several times that **after clicking on a Google search result**, the **URL** of the page I land on **contains my exact search query**.
This information is most likely collected for analytics purposes, *i.e. which query has the best conversion rate on the shop.*
I'd also like to be able to retrieve this... |
Retrieve visitor's Google query, pass it to the URL parameters and collect it for analytics purposes |
|google-chrome|google-analytics|google-tag-manager|google-search| |
The accepted answer is correct
git config --global core.autocrlf false
For anyone coming here just to learn - one very helpful thing to keep in mind is that modern IDEs can render files with LF or CRLF. So imagine you're a lone windows dev on a team of macOS users. You'll be checking out a codebase that's l... |
Pivot your "Legendary" columns to long format and map to `color`. This also handles the positioning such that you don't have to include `position_nudge(y=d$old)`.
```r
library(dplyr)
library(tidyr)
library(ggplot2)
d_long <- d %>%
select(grp, Old = old, Mature = mat) %>%
pivot_longer(Old:Mature, names_to... |
```
ffmpeg -i test.mp4 -vf select="eq(pict_type\,I)" %d.png
```
above code create file name incremental by 1, but I want the actual frame number in the source stream.
there is very [old thread][1] asking the same thing. But I wonder is there a solution right now?
[1]: https://lists.ffmpeg.org/pipermail/... |
I'm encountering an issue while trying to connect Spark to an H2 database for managing metadata.
However, I'm facing difficulties with mapping the **`LONGVARCHAR`** JDBC type for a particular field (**`viewExpandedText`**) in the **`org.apache.hadoop.hive.metastore.model.MTable`** class.
**Error Message:**
```... |
What went wrong:
Execution failed for task ':stripe_android:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.tasks.VerifyLibraryResourcesTask$Action
> Android resource linking failed
ERROR:/Users/mac/StudioProjects/cabme_driver_paid/build/stripe_android/intermediates/me... |
flutter stripe_android:verifyReleaseResources'. > A failure occurred while executing com.android.build.gradle.tasks > Android resource linking failed |
|flutter|gradle|colors|background|stripe-payments| |
null |
It often happens that the original name something is given is not the best name. Maybe requirements shifted slightly, or maybe as time went on, a better understanding of the concept being represented developed. Sometimes one name is used in developing a feature, but testing with real users reveals that a better name is... |
I've been experiencing issues with the `wxMediaCtrl` control causing an "Access Read Violation" and some other exceptions when calling `wxMediaCtrl->Load();` I'm fairly new to wxWidgets having only built one project before this one.
This is what I am attempting:
```
Main::Main() : wxFrame(nullptr, wxID_ANY, "MainFra... |
The TLS connection was non-properly terminated. What do i do? And I'm unable to push my files to git.
I tried to git push. I entered my github username and password, Authentication failed. I also used my fine classic token and now I got this response "fatal: unable to access 'https://github.com/Danniecodjoe/alx-syst... |
I'm unable to access 'https://github.com/Danniecodjoe/alx-system_engineering-devops.git/': |
|c#|.net|passwords|wsl-2|git-push| |
null |
Needed to add `@mui/x-data-grid` to the peer dependencies of the component library. |
You need to write a custom compare function. The basic idea is to get the string part and the number part. Then first compare strings and if that is not sufficient compare the optional number part.
// regex which gets a the suffix string and an optional number
const suffixNumberRegex = /([^\d]*)(\d+)?$/;
... |
While implementing PayPal webhooks in a Node.js application, I encountered an `401 Unauthorized` error with the message "Webhook signature verification failed". This issue arises when I make a `POST` request to `http://localhost:3001/paypal/subscriptions/webhook` using `Postman`.
**Background:**
To simulate webho... |
I had the same problem while running project on vscode terminal. I fixed it by running project(manage.py runserver) on the terminal of the my laptop and the updated .env file was loaded. |
try to delete the NodeModule folder and the package.lock.json file and repeat the update. Also try to add to the command `--legacy-peer-deps` |
The interesting observation I made recently while using GCC to compile for a Cortex M0 is that the veneer code generated in my project appears to be aligned to 8-byte boundaries.
[](https://i.stack.imgur.com/SzNn8.png)
Slightly modify the function before the veneer code:... |
Why veneer code generated by gcc for cortex-m0 seems 8-byte aligned? |
|gcc|linker|arm|cortex-m|function-call| |
null |
@brian61354270 already mentioned in the comments, that what you want is not really a [cartesian product]. Otherwise an obvious answer would be to use [`itertools::iproduct!`].
Going off of your main question:
> I wanted to attempt the same thing with an iterator.
Since we can assume `x: Vec`, and you want to p... |
I'm struggling with a VBA subroutine and would appreciate some assistance. The script is intended to perform the following tasks:
1. Read values from column `LADUNGSNUMMER` in the worksheet `NVL` cell by cell.
2. Find each value in column `Transport` of the worksheet `DATA`.
3. Read the corresponding values from c... |
How do I make sure that the labels of a echarts4r radar chart are completely visible on any screen? |
|r|shiny|echarts4r| |
I am trying to scrape all match reports links from the page but there is 'load more' button, and I don't want to use selenium. Is there any solution to collect all links without selenium.
Thanks in advance.
Here what I tried:
from bs4 import BeautifulSoup as bs
import requests
r =requests.get('https... |
Scraping all links using BeautifulSoup |
|python|selenium-webdriver|web-scraping|beautifulsoup| |
null |
The error message is coming from this line:
writeResult.set({timestamp: timestamp});
It's saying that the value of `timestamp` is `undefined`, which is not valid in Firestore. Since we can't see the results of the query, nor the contents of the document from the query, we can't tell you anything more... |
null |
{"Voters":[{"Id":3636601,"DisplayName":"Jens"},{"Id":1902010,"DisplayName":"ceejayoz"},{"Id":5468463,"DisplayName":"Vega"}],"SiteSpecificCloseReasonIds":[18]} |
You are correct that the native binding for `[FromForm]` cannot handle complex objects within the form data. To accomplish this, you need to help the middleware understand how to bind to the `Dto` class. You can do this with a an `IModelBinder` like so:
```c#
public class DtoFormBinder : IModelBinder
{
public... |
This is a simple question.
**Is there a way to increase github uploading file count in web ui?**
Currently github limit uploading more than 100 at a time.
So it is hard to upload a folder containing 100+ files. Even files are tiny like icons, this limit applies.
I was expecting that github will be more soph... |
Im using a docker-compose.yml file to set up a postgreSQL database service and a web application that uses that database. I need to set them both up to run a end-to-end test with cypress.
docker-compose.yml
```
version: "3.8"
services:
db:
image: "postgres:12"
ports:
- "5432:5432"
volum... |
Error: P1001: Can't reach database server at `db`:`5432` on github actions |
|postgresql|next.js|docker-compose|github-actions|prisma| |
null |
For eg:
if todays date is 03/39/2024
it should print after 60 days -05/28/2024
for todays date code:
$fromMillis($toMillis($now()), '[M01]/[D01]/[Y0001]')
but how to print for 60 calendar days in jsonata can anyone please help |
Exit loop condition when running the synpase notebooks based on metadata dependencies |
|azure|azure-data-factory|azure-synapse-analytics| |
On VS Code on macOS, how to keep two projects open in macOS window tabs (instead of two windows)? |
Based on your [comments](https://stackoverflow.com/questions/78243436/memory-efficient-parallel-repeated-rarefaction-with-subsequent-matrix-addition-o/78245135#comment137943647_78243436), we could `rrarefy` `R` times. Next, we transform the resulting list in a 3D-`array`, where we easily may `apply` a function, e.g. `m... |
{"Voters":[{"Id":1491895,"DisplayName":"Barmar","BindingReason":{"GoldTagBadge":"html"}}]} |
They say, that tasks are good, cause they are non-blocking. That makes sense. Since some time, we have everything async - async action in mvc, async web api calls, async ef methods, etc.
The one thing I do not understand - why?
Let's assume we have a method:
```
public async Task<User> GetUserAsync(int id, Canc... |