instruction stringlengths 0 30k ⌀ |
|---|
Pine v5 How to Delete Certain Labels? |
|pine-script| |
null |
Good evening,
I am a Typescript newbie, probably I have a config issue I just can't find out where exactly.
The error message is when I run my test
TypeError: Cannot read properties of undefined (reading 'Brand')
14 | className='bg-body-tertiary shadow-lg'>
15 | ... |
Config issue when configuring Jest - Typescript |
|reactjs|typescript|jestjs|ts-jest| |
How to build veins inet project in omnet |
|clang|omnet++|veins|inet| |
null |
|swift| |
My code:
```
ggplot(faixa_vol_op_contagem, aes(x = "", y = num_vol_op, fill = FAIXA_DESENROLA)) +
geom_bar(stat = "identity") +
coord_polar("y", start = 0) +
theme_void()
```
returns this:
[![enter image description here][1]][1]
Instead of 1, 1.25 and so on, I just want 1 and 2. H... |
How to display integers instead of floats in a pie chart legend? |
Im trying to create an extension that searches google and allows the user to access the first 10 or so results, i did the google search code in python and have the code for an extension but i dont know how to get the results of the python code and get them to display like text and links in a html document
I've tried u... |
null |
I'm trying to create an extension that searches google and allows the user to access the first 10 or so results.
I did the google search code in python and have the code for an extension but I don't know how to get the results of the python code and get them to display like text and links in a html document.
I'... |
I had the same problem, turns out adding style directly to the `<body>` in the `layout.tsx` causes it
```jsx
...
export default function RootLayout({ children }: { children: React.ReactNode}) {
return(
<html lang="en">
<body style={{ display: "flex" }}>
...
</body>
</html>... |
# Description
Hi when i write code in VScode and i run it everything is fine, but when i change something to the code and hit ctrl + s the changes aren't updated or ran in the terminal.
For exemple changing the value of a variable that i want to print, when i execute the print after saving the changes to the var... |
Why my code doesn't update in the terminal when i ctrl + s changes made to the code? |
|python|terminal| |
null |
I have an array which is
```
[
'B. Wound Bed',
'A. Wound Location and Measurements',
'D. Drainage',
'B. Wound Bed',
'C. Surrounding Tissue',
'Haroon Question Group Without Show PCP',
'D. Drainage',
'Haroon Question Group With Show PCP',
'A. Wound Location and Measurements',
'C. Surroundi... |
I noticed an issue after I installed breeze on my Laravel application.
When trying to register my user I was receiving the following error:
``` Call to a member function prepare() on null ```
Which pointed to the following :
```
$user = User::create([
"name" => $request->name,
... |
Laravel Auth registration issues using MongoDB |
|laravel|mongodb|laravel-breeze| |
null |
**TASK:**
Migration from Spring Boot 2.7.18 to 3.2 and Java 11 to Java 17 and had a dependency from `com.docusign.docusign-esign-java`
Used the last stabil version
<dependency>
<groupId>com.docusign</groupId>
<artifactId>docusign-esign-java</artifactId>
<version>4.5.0</version>
... |
In your code, the worker threads continuing to execute even after main() has exited:
```lang-none
this is thread 1
this is thread 2
main exists
thread 2 exists
thread 1 exists
thread 1 exists
```
This behavior can lead to unpredictable results.
--
First, you should array your code:
```cpp
#includ... |
The problem is that we have to test code coverage in our angular project. So we use nyc, nyc modified source files(and insert some code to collect code coverage), but the issue is that while serving application webpack takes files from memory, not from /dist folder and these files are without our changes from nyc.
... |
How to force angular while executing take files from /dist folder (now webpack takes them from it's memory) |
|angular|webpack|webpack-dev-server|nyc|angular-builder| |
null |
The syntax for tox-related section in `pyproject.toml` is very strange:
```
[build-system]
requires = ["cython", "setuptools", "wheel"]
build-backend = "setuptools.build_meta"
[tool.tox]
legacy_tox_ini = """
[tox]
envlist = py310
[testenv]
deps = pytest
commands = pytest
"""
```
See [the docs](https:/... |
I have 2 collections in firebase
```
CategoriesCollection: [
{'Id':'1',Title:'Electronics',ParentId':''},
{'Id':'2','Title':'Clothe',ParentId':''},
{'Id':'3,'Title':'Mobile',ParentId':'1'},
{'Id':'4','Title':'Laptop',ParentId':'1'},
{'Id':'5','Title':'Shirts',ParentId':'2'},
{'Id':'6','Title':'Jeans',Paren... |
I want to Implement Google Authentication to my Flutter Windows Application, I Tried google_sigin plug but it does'nt support windows application.
How to achieve google sign in to my flutter windows application?
Do we have any documentation?
I tried with url_launcher for browser based login, but in local while... |
I want to Implement Google Authentication to my Flutter Windows Application |
|flutter|windows|authentication| |
null |
Simple question : how do I set a cookie or get bearer token for the googleapis.com domain name ?
I’m meaning there’re many tutorials in how to log‑in the current user being logged‑in on Google, but they all work using a local app.
In my case, I need to send data to the googleapis.com domain name using Oauth for m... |
How to use Oauth in order to log‑in on .googleapis.com on almost any arbitrary endpoints domains from the web browser? |
|google-app-engine|oauth-2.0|oauth|google-api|google-oauth| |
I am using Laravel 10 and slowly incorporating HTMX (which I LOVE). I am attempting to add a `data-hx-post` to a button that POSTs to a web route I have defined. I am getting a 419 error. Ok, cool, seen this before- all I have to do is add `@csrf` to the button, right?
That approach worked with forms, but apparentl... |
Adding CSRF tokens to HTML buttons with HTMX and Laravel 10 |
|laravel|htmx| |
null |
I have released a mobile app on production on 23rd of march and it does not fall in the review process and it's status directly turn into "Available on google play (Full Rollout)" but my app is not visible on google play store it's been almost 6 days and yes I have released the mobile app for internal testing after pas... |
I'm trying to write a test to make sure all ODR images are available in the main bundle:
let testBundle = Bundle(for: type(of: self))
for cat in cats {
let fileURL = URL(fileURLWithPath: cat.image)
let fileNameWithoutExtension = fileURL.deletingPathExtension().lastPathComponent
let fileExte... |
Testing for ODR image resources in main bundle |
|swift|bundle|xctest|xctestcase| |
```
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'prettier' imported from C:\Users\aryan\AppData\Local\npm-cache\_npx\86fd6f984ad48a35\node_modules\thirdweb\dist\esm\cli\commands\generate\generate.js
at packageResolve (node:internal/modules/esm/resolve:853:9)
at moduleResolve (node:internal/modules/esm/... |
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... |
I think you would need something a bit longer. Something that stores lines ending in `':'` and then checks, in some way, that the line that follows is empty (with `awk` simply checking `NF` works). You also need a trigger to indicate no output is waiting. Setting the variable holding the saved line to empty works.
T... |
Here is a way:
```
.arrays | map(
select(. == "a_string") = "b_string"
| select(objects | .name == "foo") .properties = [{type: "sometypeB", file: "filename"}]
)
```
<sup>[Online demo](https://jqplay.org/s/AXRKdSEi6cy)</sup> |
Bonjour, je travaille sur un projet laravel et j'utilise laravel breeze pour l'authentification, j'ai créer une fonction pour désactiver et réactiver des comptes, pour les comptes désactiver j'aimerais bloquer la connexion pour certains utilisateurs. Merci de votre aide.
J'ai essayé de me rendre dans le fichier App\... |
Activation et désactivation de compte |
|php|mysql|laravel| |
null |
You are correctly attempting to debug your dynamic SQL by using the `PRINT` statement, but you don't appear to have checked that the SQL it produces is correct. Because this:
```
SELECT
N.No,
N.Title
FROM test N
WHERE N.Title LIKE N'%@SerchText%'
```
Is searching for text containing the string `'@S... |
I'm currently working on a JavaScript project using EJS (Embedded JavaScript Templates) in Visual Studio Code and encountering a couple of issues that I need help with.
Environment:
- ubuntu Studio
- Visual Studio Code
- Node.js (v21.5.0)
- Express.js
- EJS
Problem:
- Syntax Highlighting: The EJS syntax, ... |
I want to scrape data using selenium and python. My chrome version is 123.0.6312.87 and web-driver is compatible with this chrome version. From this following page "https://web.bcpa.net/BcpaClient/#/Record-Search" , I want to scrape data. In this page when I am giving the address "2216 NW 6 PL FORT LAUDERDALE" using se... |
How to click the save or print button using selenium when the HTML page has shadow-root? |
|python|selenium-webdriver|shadow-root| |
null |
```
export const awsExports = {
Auth: {
Cognito: {
"userPoolId" : "ap-northeast-2_qp2lxxxxx",
"userPoolClientId" : "hqhcjil010lxxxxxxx"
}
}
}
export const awsExportsUser = {
Auth: {
Cognito: {
"userPoolId" : "ap-northeast-2_xxxxxxx"... |
How to use multiple user pools with AWS Amplify in React? |
|reactjs|amazon-cognito|aws-amplify| |
null |
I have a 2 files like below. In each csv, i have two columns for example : username and password details.
Ex : c://user.txt1.csv, c://user.txt2.csv files.
My scenario is like below
first iteration - i need to read from txt1.csv and 1st line.
Second iteration - i need to read from txt2.csv and 1st line.
T... |
how to fatch product based on category from collection in flutter? |
|flutter| |
Good day,
Could someone please assist with how to achieve the below. So the what happens is I need to take the first "Addition" which is the "Total_COB_Growth" + "Sum_of_Previous_Interest" where the "Sum_of_Previous_Interest" is dependent on the LAG of "Additions" if that makes sense. I can't get it right in SQL to ... |
I have an excel file where images are inserted into cells with [the "place in cell" function][1], which was introduced in 2024. I.e. local images have been inserted with: `Insert > Pictures > Place in Cell > Picture from File...`
I need to know the filename that each local file had when it was inserted. How can I de... |
Display filename of an image in Picture cell |
|excel| |
I have simply embedded google maps `<iframe>` tag in `index.html` file and hosted via VS code extension(live-server) in chromium based(brave) browser. It shows an error
```
GET https://maps.googleapis.com/maps/api/mapsjs/gen_204?csp_test=true net::ERR_BLOCKED_BY_CLIENT
```
Index.html file:
```html
<!DOCTYPE html... |
App is not visible after after full rollout on google play store |
|android|google-play|publish|google-play-console| |
null |
{"Voters":[{"Id":4294399,"DisplayName":"General Grievance"},{"Id":4541695,"DisplayName":"DVT"},{"Id":988169,"DisplayName":"pkc456"}]} |
Create a sublist from a list by comparing its elements in paire wise and choosing the minimum of the two in the new list (sublist).
Example : we have a list [1, 2, 3, 4, 5, 6] the output should be a sublist such as [1, 3, 5] since min(1,2) = 1 and min(3,4)=3 and min(5,6)=5.
```
Node* pairWiseMinimumInNewList... |
Has this happened to anyone? I have been trying to fix this for hours. My port 5500 used to work perfectly and update automatically, but now when I am looking for a specific console.log in the chrome browser, it gives me this error from a 'renderer.js' file:
try {
se = void 0 === global
There is a r... |
Liver Server console error when updating my app.js file in VScode? |
|npm-live-server| |
null |
{"Voters":[{"Id":6461462,"DisplayName":"M--"},{"Id":1030169,"DisplayName":"jmoerdyk"},{"Id":3744182,"DisplayName":"dbc"}],"SiteSpecificCloseReasonIds":[13]} |
Yes, this is possible with the json functions provided by PostgreSQL. Use a [lateral subquery](https://www.postgresql.org/docs/current/queries-table-expressions.html#QUERIES-LATERAL) and `jsonb_array_elements`. I assume that your `events` column type is JSONB rather than JSON.
```sql
with t as
(
select brand, (j -... |
You could use a tuple, but its restriction makes it almost useless: the JSON items must be named Item1, Item2, and so on.
var json = @"{""Item1"": ""abc"", ""Item2"": 123}";
var tuple = JsonSerializer.Deserialize<(string, int)>(json,
new JsonSerializerOptions { IncludeFields = true });
You coul... |
I wrote an example as a note of programmatically deleting variables.
It shows how to unset variables at each assembly level and through the entry point.
This is indicated as an example if there is a direct need to remove variables.
```
FROM busybox:latest
ENV HELLO=hello
RUN touch /unset_env.sh && chmod ... |
Eventually after long hours of testing vs. the Kubernetes cluster, and with the help of my devops engineer, I solved this issue. Seems that it was similar to the problem described on [This answer][1] (which I tried to use before but did not succeed to find the proper place to implement). It seems that the k8s cluster b... |
{"Voters":[{"Id":1506071,"DisplayName":"Pradeep Simha"},{"Id":3890632,"DisplayName":"khelwood"},{"Id":721855,"DisplayName":"aled"}],"SiteSpecificCloseReasonIds":[19]} |
You can simply separate base controllers and customize their routes.
With this you can limit authorizations and produce consume types as well.
**Base Controller**
```
[ApiController]
[AllowAnonymous]
[Consumes(ApiContentTypes.ApplicationJson)]
[Produces(ApiContentTypes.ApplicationJson)]
public class BaseApiCo... |
|java|math|numerical-integration|integral| |
Here's an example. It's a trimmed and simplified version of `org.springframework.cloud.gateway.filter.WebClientHttpRoutingFilter`:
```java
package com.example.gatewaydemo.misc;
import java.net.URI;
import java.util.stream.Stream;
import reactor.core.publisher.Mono;
import org.springframework.cloud.gateway.f... |
How can I make asserts on outbound HTTP requests? |
Issue with EJS Templating Syntax Highlighting and Rendering in Visual Studio Code |
|javascript|node.js|express|ejs| |
null |
[enter image description here][1]
While writing the output to FS, getting the above error. Using the storm client. getting the below error ERROR: org.apache.hadoop.fs.UnsupportedFileSystemException: No FileSystem for scheme "maprfs".
Here is the log.
consumer=org.apache.kafka.clients.consumer.KafkaCons... |
Tried running this code multiple different times and in different ways but still getting error.
```
library(caret)
model_multinom <- train(
Group ~ GPA + GMAT,
data = train_data,
method = "multinom",
trControl = trainControl(method = "none"),
preProcess = c("center", "scale"),
na.action = na... |
"wrong model type for regression" when attempting multinomial mode with caret |
I currently have a macro:
#define MY_MACRO(cond, msg) \
do \
{ \
if (!(cond)) \
{ \
s... |