79213568

Date: 2024-11-22 03:53:54
Score: 1.5
Natty:
Report link

You can manually enter Ctrl + Shift + P, find the select "View: Toggle Word Wrap". This work for me.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Anderson Rodrigues

79213566

Date: 2024-11-22 03:53:54
Score: 1
Natty:
Report link

Here's the guide on how you retrieve the balance on the connected account: https://docs.stripe.com/connect/account-balances#check-connected-account-balance

For example using Balance Retrieval API,

curl https://api.stripe.com/v1/balance \
  -u "sk_123:" \
  -H "Stripe-Account: {{CONNECTED_ACCOUNT_ID}}"
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: yuting

79213560

Date: 2024-11-22 03:48:53
Score: 1
Natty:
Report link
=LET(
    s, A2:A13,
    r, C2:C13,
    SCAN(0, SEQUENCE(ROWS(s)), LAMBDA(a, v, IF(INDEX(VSTACK("Y", r), v) = "Y", 
      a * 0 + INDEX(s, v), a + INDEX(s, v))))
)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Bam

79213555

Date: 2024-11-22 03:46:53
Score: 0.5
Natty:
Report link

If you want the checked value and not the html, then get the .checked value not the .innerHTML

var _$subCategoryDiscretionary = objCells.item(6).checked;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Ray Wallace

79213546

Date: 2024-11-22 03:39:51
Score: 2
Natty:
Report link

When you renew a Vault token, its lifetime cannot exceed the maximum TTL. For example, if you issue a token with a TTL of 5 minutes and a max TTL of 24 hours, you can renew the token just before it expires, extending its validity for additional time, up to a total of 23 hours and 55 minutes. However, the max TTL is set from the token's creation time, and renewing the token does not reset or extend that maximum limit.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Dinnerspy

79213542

Date: 2024-11-22 03:34:50
Score: 3.5
Natty:
Report link

I am having the same issues. After many googles, found out it is caused by the vbaProject.bin. But, I am not sure how to fix the vbaProject.bin file. I discovered a way to fix it that works for me. First, export codes from forms, modules, and sheets from the problemed xlsm file. Save the xlsm as an xlsx without macros. Open the saved xlsx file and import all exported forms, modules, and sheets back to the file. Resave the file to be an xlsm. Hope this will also work for you.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nelson.W

79213541

Date: 2024-11-22 03:34:50
Score: 3
Natty:
Report link

I found out the issue; When the velocity is negative, I wasn't flipping it yet was accounting for it as if it was negative;

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: jg1121

79213533

Date: 2024-11-22 03:29:49
Score: 3
Natty:
Report link
import { type NextRequest } from 'next/server'
 
export function GET(request: NextRequest) {
  const searchParams = request.nextUrl.searchParams
  const query = searchParams.get('query')
  // query is "hello" for /api/search?query=hello
}

I found this link
https://nextjs.org/docs/app/building-your-application/routing/route-handlers#url-query-parameters
which can solve your problem.

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: liuchen

79213531

Date: 2024-11-22 03:28:49
Score: 1.5
Natty:
Report link

For Rocky 9:

sudo dnf --enablerepo=devel install yasm yasm-devel -y
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Michael Oliver

79213528

Date: 2024-11-22 03:28:49
Score: 1.5
Natty:
Report link

In my case, "Installed" and "Updates" took a long time to load. The problem was that some packages required additional info from Microsoft, which was blocked on proxy. Resolved with changing VS2022 proxy (devenv.exe) to another one.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Alex

79213526

Date: 2024-11-22 03:26:48
Score: 5.5
Natty:
Report link

I caught my husband so many times through his chats and all about cheating on me and when i told him he always claims that he has changed and all. right now he hides his phone from me and i still guess he is cheating cause i could not break into his phone any more so i was referred to a hacker named FRED who i ran to for help and this hacker was able to break into his phone and proved me with the access to my husband phone without my spouse knowing about the hack. Right in my phone I have all my husband's daily activities . I got to read all his chats, texts, calls, WhatsApp, Facebook, and many more. This hacker is really great, thank you. Did you find this review helpful? contact him via Gmail fredvalcyberghost @gm ail .com and you can text,call or whatsapp him on +15177981808 or +19782951763

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (3): Did you find this
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Seed Dembel

79213516

Date: 2024-11-22 03:18:46
Score: 4
Natty:
Report link

This worked well

//*[local-name()='wsReturn']

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: JPO

79213515

Date: 2024-11-22 03:18:46
Score: 2
Natty:
Report link

Well I will answer my own question.

There is not one.

I looked through the repo, yes they use popc and popcount (CUDA and OpenCl) for the nearest_neighbour (yes that's how it is spelled). But it is not used anywhere else. So it is not implemented.

Now I have a few choices; use the custom kernel, fork their code and make my own, or abandon this folly and move on.

I will probably try the custom kernel. If it fails I will switch back to OpenCL and CUDA.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ben H

79213506

Date: 2024-11-22 03:14:45
Score: 4
Natty:
Report link

I have the same problem when using add_metric() to add metric "f1-macro" in PyCaret. My code is as following:

def my_f1(y_true, y_pred):
    return f1_score(y_true, y_pred, average='macro', )

my_f1 = make_scorer(my_f1, greater_is_better=True)
add_metric('f1_macro', 'F1-Macro', my_f1)

best = s.compare_models(sort='f1-macro', n_select=3)

It returns "AttributeError: '_Scorer' object has no attribute 'name'"

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Ian Lin

79213502

Date: 2024-11-22 03:09:44
Score: 1.5
Natty:
Report link

Use different script, that script has issue on android device,

don't use that script that has following pattern on surah 2:2 رَیْبَ ۖۚۛ

use this script رَيۡبَۛۚۖ you can download this script from https://qul.tarteel.ai/resources

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Shahid Islam

79213500

Date: 2024-11-22 03:09:44
Score: 2.5
Natty:
Report link

I discovered the cause was that if the scanner C code identifies a token and returns it, TS will not backtrack before that token.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: user1713450

79213496

Date: 2024-11-22 03:06:43
Score: 2
Natty:
Report link

this also happened to me when stated study flutter with Mac OS and Android Studio. the reason is keymap for completion on IDE conflict to Mac OS. You should change below keymap with other one on IDE or disable it on Mac OS.

Preferences/Setting->Keymap->Code Completion->Basic

Keymap

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mai_jojo

79213466

Date: 2024-11-22 02:44:39
Score: 4
Natty: 4
Report link

I'm implementing a http server to support range requests, but I cannot make browsers to send http range requests to my server. If I send a http range response, the browsers(both firefox and chrome) do not send any more http range requests to get the remain part of the file, so what's the correct way to init browsers to send more http range requests to get the whole file?

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jinmin

79213459

Date: 2024-11-22 02:38:37
Score: 4
Natty:
Report link

daisyUI now has a theme controller. See below:

DaisyUI theme-controller

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MOHAMMED AWAL

79213457

Date: 2024-11-22 02:36:36
Score: 4.5
Natty: 5.5
Report link

okay tanksasdsadsadsada asdasdsadsadsd

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: crazymfkerfromsg

79213452

Date: 2024-11-22 02:25:35
Score: 1.5
Natty:
Report link

The dependency of the project remark does not support iframes, you need to add and configure remark plugin such as remark-iframes.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Taige Wang

79213449

Date: 2024-11-22 02:24:34
Score: 2.5
Natty:
Report link

You will probably get a quicker resolution if you report it to the .NET Android team. See https://github.com/dotnet/android, then Issues and file the issue.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: user2153142

79213445

Date: 2024-11-22 02:24:34
Score: 2
Natty:
Report link

Based on the error messages, it appears that you are using both BoundsControl.cs and BoundingBox.cs. Bounding box is deprecated and replaced by its successor bounds control. If you already have BoundsControl, then remove BoundingBox.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ying Li - MSFT

79213432

Date: 2024-11-22 02:10:31
Score: 1
Natty:
Report link

https://docs.aws.amazon.com/iot/latest/developerguide/iot-ddb-rule.html

Just follow the Step 2: Create an AWS IoT rule to send data to the DynamoDB table. there's no configure action button, but it's different steps you need to do in order to configure an action. that guide has all the steps you need to know.

Feel free to ask if you didn't understand a specific step from that guide

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Fedi Bounouh

79213422

Date: 2024-11-22 02:04:30
Score: 4
Natty:
Report link

You can download this file, this is the complete protocol from the manufacturer https://arinst.net/files/Protocol.zip

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28424311

79213413

Date: 2024-11-22 01:57:29
Score: 1
Natty:
Report link

Solved!

the URL is incorrect:

 $apiURL = “https://ssaddress/ss/winauthwebservices/api/v1/secrets/$SecretId”

it should be:

$apiURL = “https://ssaddress/ss/api/v1/secrets/$SecretId”
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Roger McCarrick

79213399

Date: 2024-11-22 01:48:27
Score: 2.5
Natty:
Report link

I have the same question as @GreenSaiko, but I also the following issues:

  1. I see you're overwriting req.body with new data. It is generally recommended that you don't modify that.
  2. If this is all of your backend router, you're not using any kind of body parsing, so req.body is going to be undefined.
const mediaRouter = express.Router();
mediaRouter.use(express.json())

See express.json() documentation.

Additionally, if it IS undefined, it's going to throw an error, and you're not going to catch it, because you don't have try/catch anywhere around this line:

req.body.uploadedFile = uploadedFile;

So you could silently be throwing this error:

`Cannot set property of 'uploadedFile' of undefined`
Reasons:
  • Blacklisted phrase (1): I have the same question
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I have the same question
  • User mentioned (1): @GreenSaiko
  • High reputation (-1):
Posted by: Dan Crews

79213397

Date: 2024-11-22 01:47:27
Score: 9.5
Natty: 7.5
Report link

I have the same problem as described here and could not find the solution from the answers. Is there any other reason why scipy cannot be installed? How could I install it on a-shell?

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1): Is there any
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28424166

79213395

Date: 2024-11-22 01:47:26
Score: 0.5
Natty:
Report link

Looks like this package is already merged into python3 - https://docs.python.org/3/library/plistlib.html

import plistlib
file_name = "/Library/Preferences/com.apple.TimeMachine.plist"
with open(file_name, 'rb') as infile:
    plist = plistlib.load(infile)
print(plist["LastConfigurationTraceDate"])
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Lacer

79213381

Date: 2024-11-22 01:40:25
Score: 1.5
Natty:
Report link

For anyone that finds this in future. I had started using the noble-chisled containers from MCR when I first encountered this.

Setting the values in project settings did nothing, but I didn't have the issue with the runtime:8.0 base image. So I went hunting for what was missing in the chisled container.

Turns out they started releasing "extra" container images which has globalisation enabled.

https://devblogs.microsoft.com/dotnet/streamline-container-build-dotnet-8/#world-ready-chiseled-images

mcr.microsoft.com/dotnet/runtime:8.0 >> working

mcr.microsoft.com/dotnet/runtime:8.0-noble-chiseled >> not working.

mcr.microsoft.com/dotnet/runtime:8.0-noble-chiseled-extra >> wokring.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kane

79213380

Date: 2024-11-22 01:40:25
Score: 1
Natty:
Report link

It is caused by the vbaProject.bin. A way to fix it is to export codes from forms, modules, and sheets from the problemed xlsm file. Save the xlsm as xlsx without any macros. Open the saved xlsx file and import all exported forms, modules, and sheets. Resave the file to be xlsm. It works for me and hope it will work for you too.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nelson Wong FAA

79213371

Date: 2024-11-22 01:33:23
Score: 4.5
Natty:
Report link

Thank you, I will give these suggestions a try and report back!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tiffany Novak

79213370

Date: 2024-11-22 01:33:23
Score: 0.5
Natty:
Report link

Quoting relevant mozzila docs, regarding addEventListener() method:

... passive Optional

A boolean value that, if **true**, indicates that the function specified by listener will never call **preventDefault()**. **If a

passive listener calls preventDefault(), nothing will happen and a console warning may be generated.**

If this option is not specified it defaults to false – except that in browsers other than Safari, it defaults to true for wheel, mousewheel, touchstart and touchmove events. See Using passive listeners to learn more... addEventListener

That's the reason why some of the answers mentioned above didn't work at all, because using "e.preventDefault()", called from within a function, binded with "onwheel" event using standard call of addEventListener, without explicitly forcing { passive: false }, were creating in fact not active (like for most events) but passive listener in which e.preventDefault() simply does nothing, that's exactly what's happening under Chrome/Opera/FF.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28424030

79213369

Date: 2024-11-22 01:33:23
Score: 3.5
Natty:
Report link

Transitions in CSS don’t make height: auto work.

CSS Grid comes to the rescue!

https://dev.to/francescovetere/css-trick-transition-from-height-0-to-auto-21de

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: rookie

79213365

Date: 2024-11-22 01:28:22
Score: 2.5
Natty:
Report link

The premise is that Java was used for Outlook to detect identity authentication failure in the email. Searching for Microsoft documents online arequires OAuth 2.0 new authentication. I found insufficient permissions when using the API of Document Crowd. Are the permissions of the API in the application registration below correct? Here are the operations I found to solve the problem, and there are also some issues that require a 365 subscription. Is it really necessary to subscribe

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Venom

79213362

Date: 2024-11-22 01:26:22
Score: 2
Natty:
Report link

Like @Hugo Mallet , said above in a comment to your question, what I had to add was the React Bootstrap CSS, so this is the instruction;

Add Bootstrap CSS to the index.js file:

import 'bootstrap/dist/css/bootstrap.min.css';

Here are the links that talk about this;

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @Hugo
  • Low reputation (0.5):
Posted by: Programminghobby

79213353

Date: 2024-11-22 01:18:20
Score: 3
Natty:
Report link

I encountered the same question since I had the new macbook. I was able to enable the highlight feature in previous version tho

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Qian Liu

79213348

Date: 2024-11-22 01:10:19
Score: 1
Natty:
Report link
const fs = require('fs');
  fs.readFile('Input.txt', (err, data) => {
  const result = data.toString();
  console.log(result);
});

Simplest way!

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexandre B.

79213346

Date: 2024-11-22 01:08:18
Score: 3.5
Natty:
Report link

In essence, what you want is to sort an alphanumeric column, here is a solution I gave on a similar question: https://stackoverflow.com/a/79212947/9048686

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Platinum

79213341

Date: 2024-11-22 01:06:18
Score: 1
Natty:
Report link
async function readFile(file) {
    const text = await file.text();
    console.log(text); // Will output: "my name is x"
    return text;
}

// Usage
fileInput.addEventListener('change', async (e) => {
    const text = await readFile(e.target.files[0]);
    // Use your text here
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Benny Li

79213332

Date: 2024-11-22 01:01:17
Score: 1.5
Natty:
Report link

this is platform packages: https://getcomposer.org/doc/01-basic-usage.md#platform-packages

you can use the code show all platform packages

composer show --platform
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28423770

79213328

Date: 2024-11-22 00:59:17
Score: 3
Natty:
Report link

First of all, it has nothing to do with 'post' or 'put' requests,request is just a type, I need to look at the relevant code in period.getYears() for help, or look at your post request and put request code, there must be something wrong

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 董亚胜

79213327

Date: 2024-11-22 00:58:16
Score: 9 🚩
Natty: 6.5
Report link

has this thread already been solved? im facing the same problem.

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (1.5): solved?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: crazymfkerfromsg

79213324

Date: 2024-11-22 00:55:15
Score: 2
Natty:
Report link

you can create a new table which includes step name and sort column

enter image description here

then create the relationship between your data table and this new table

then sort the step name column by sort column

enter image description here

in the matrix visual, drag the step name from the new table to the column field, then you will get the correct order.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
Posted by: Ryan

79213319

Date: 2024-11-22 00:51:14
Score: 2
Natty:
Report link

For the next person who comes here from Google wanting to know what causes this.

It's Code Trimming. Disable code trimming and it'll work.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Adam Frisby

79213316

Date: 2024-11-22 00:48:13
Score: 3
Natty:
Report link

Livewire handles the file upload in temp folder so before it uploads to your destination path it checks if the file exist or has issue on the size of the file. one thing to do is to add a progress indicator so that you can validate the file before you can submit it. you can check this tutorial it has explanation livewire upload fail

Reasons:
  • Blacklisted phrase (1): this tutorial
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: shinzo vender

79213314

Date: 2024-11-22 00:47:13
Score: 2
Natty:
Report link

you can create a day of week table. There are two columns and sort the day of week column by sort column

enter image description here

then create relationship between two tables

enter image description here

then you can get the result even don't need to create measure

enter image description here

make sure you select show item with no data

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
Posted by: Ryan

79213305

Date: 2024-11-22 00:41:12
Score: 5.5
Natty: 5
Report link

Please tell me how you fixed this. I'm currently having the exact issue. The carousel works on desktop view, but on mobile, it's frozen.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please tell me how you
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fredrick Aniebonam

79213302

Date: 2024-11-22 00:40:11
Score: 1.5
Natty:
Report link

"video/mp4;codecs=avc1,opus" works on Chrome/MacOS but often fails on Chrome/Android/Pixel7a creating a bogus truncated file. I wasn't able to find an MP4 codec that works consistently on Chrome/Android, went with webM export instead.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Felix Turner

79213291

Date: 2024-11-22 00:34:10
Score: 0.5
Natty:
Report link

I found a solution.

Overloading types and defining functions.

type MyTooltipState = TooltipProps<ValueType, NameType> & {
     StackedBarChartLabel: BarChartShareLabelState;};

const CustomTooltip = ({
    active,
    payload,
    label,
    StackedBarChartLabel,
}: MyTooltipState) => {
  if (active && payload && payload.length) {
    return (
      <div style={{ backgroundColor: "white" }}>
        <p>{label}</p>
          {payload.map((pld: any) => (
        <p key={pld.dataKey}>
          {pld.dataKey}:{StackedBarChartLabel[`${label}`][`${pld.dataKey}`]}
        </p>
   ))}
</div>);}
return null;};

Call the function as follows.

<Tooltip
    content={(props) => (
    <CustomTooltip
       active={props.active}
       payload={props.payload}
       label={props.label}
      StackedBarChartLabel={dataset.StackedBarChartLabel}
    />)}
 />
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ai kurihara

79213290

Date: 2024-11-22 00:34:09
Score: 6.5 🚩
Natty:
Report link

Did you Ever figure this out ? Happen to me 2 days ago also.. sol scan looks good on mine here is my address

9JKrKwcemBHvkbGmo3EqrrZ5bsJRc7cZ4DNcupP9F2J9

Reasons:
  • RegEx Blacklisted phrase (3): Did you Ever figure this out
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Rory Vaughn

79213289

Date: 2024-11-22 00:34:09
Score: 0.5
Natty:
Report link

Thanks for solving this. I had the same problem with OpenCV 4.10.0, caused by adding C:/gstreamer/msvc_x86_64/lib/gstreamer-1.0 to PATH.

Doing that made CMake pull in libgstapp.a as a dependency, instead of the correct gstapp-1.0.lib.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hazim Salem

79213287

Date: 2024-11-22 00:32:09
Score: 1
Natty:
Report link

One line map: var voices = ((await ttsInstance.getVoices) as List<dynamic>).where((voice) => voice['locale'] == 'en-US').map((voice) => voice['name']).toList();

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: yarz-tech

79213286

Date: 2024-11-22 00:32:09
Score: 0.5
Natty:
Report link

Looks like this is a well-known ancient bug:

https://bugs.php.net/bug.php?id=72692

There seems to be no workaround

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-2):
Posted by: gvlasov

79213285

Date: 2024-11-22 00:32:09
Score: 2
Natty:
Report link

I am experiencing the same issue: push notifications are not working in Edge on Android. While I am able to generate the device token successfully, the notifications fail to get delivered when

await this.app.messaging().sendEachForMulticast(message);

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sumit Kumar dey

79213283

Date: 2024-11-22 00:31:09
Score: 1
Natty:
Report link

The issue is that you did

for i in range(10):

but Python expects this kind of format

for i in range(10):
    # code logic here
    print(i) # example way to handle it

you must always have some sort of expression after "for", "while", "def", etc. in order to let Python accept it

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: penguin55

79213278

Date: 2024-11-22 00:28:08
Score: 3.5
Natty:
Report link

Yes, graphistry will handle this use case, and a sample notebook that describe the process can be found here: https://github.com/graphistry/pygraphistry/blob/master/demos/demos_databases_apis/neo4j/official/graphistry_bolt_tutorial_public.ipynb

docs with embedded notebooks and live visualizations: https://pygraphistry.readthedocs.io/en/latest/demos/demos_databases_apis/neo4j/official/graphistry_bolt_tutorial_public.html

https://pygraphistry.readthedocs.io/en/latest/demos/demos_databases_apis/neo4j/contributed/Neo4jTwitter.html

sign up for a free account here: https://www.graphistry.com/get-started

Have more questions? Join Graphistry's community slack

Graphistry Neo4j visualization

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thomas Cook

79213275

Date: 2024-11-22 00:24:07
Score: 2.5
Natty:
Report link

Supabase made a recent change that could be your reason if you are trying to create email logins. From 26th September 2024, if you don’t set up a custom SMTP provider, auth emails will only be sent to members of your project’s organization - aka unless it’s your supabase email, the user won’t be created. Once you use your own smtp setup you can create users not on your account.

Reasons:
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28423521

79213274

Date: 2024-11-22 00:23:07
Score: 1
Natty:
Report link

I followed all the solutions I found here but no luck until I figured it out myself: from the vertical menu bar (icons) where the first icon is 'Explorer' and the second is 'Search', etc...,right click then toggle on 'source control' (Grrrr! there's another one!) then you can find the missing 'changes'the missing changes in source control

Reasons:
  • Blacklisted phrase (1): no luck
  • Whitelisted phrase (-2): I figured it out
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: JaydenLiang

79213264

Date: 2024-11-22 00:16:05
Score: 0.5
Natty:
Report link

Yes, you can use a custom domain with GitHub pages, and the web hosting cost is completely free, as long as your website is static.

You can make your website with Jekyll, GitHub Pages is designed to work with jekyll

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Skrillx

79213254

Date: 2024-11-22 00:12:04
Score: 2
Natty:
Report link

Switch Emulator off and click Cold boot now.

*VPN also causes issues, but the cold boot will bypass it.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Lewin Muzvonda

79213253

Date: 2024-11-22 00:10:04
Score: 3.5
Natty:
Report link

Was able to ensure column 1 kept a min-width using the minmax attribute: grid-template-columns: minmax(600px, 600px) 2fr;

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Melissa Parker

79213246

Date: 2024-11-22 00:05:02
Score: 1
Natty:
Report link

with emacs v29 I found

  (set-face-attribute 'line-number-current-line nil 
                      :foreground "#FF9E3B"
                      :weight 'bold)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: the-citto

79213242

Date: 2024-11-22 00:03:01
Score: 4
Natty:
Report link

Problem solved! In my settings.py MEDIA_URL should be real Internet URL.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Александр Акимов

79213223

Date: 2024-11-21 23:51:58
Score: 2
Natty:
Report link

Thank you to those taking the time to help me. I've solved my problem . In my Tapped event, I pass the "order id" to the 2nd page using [QueryProperty] and bind the View Model. Please see code.

Page 1 ListView Event code

private async void Orders_ItemTapped(object sender, ItemTappedEventArgs e{
try
{
    var order = (WarehouseOrder)e.Item;
    await Shell.Current.GoToAsync($"{nameof(WOrderItemsPage)}?Id={order.Id}");
}
catch (Exception ex)
{
     await DisplayAlert("Error", ex.Message, "OK");
    throw;
}}

Page 2 Code Behind

[QueryProperty(nameof(OrderID), "Id")]

public partial class WOrderItemsPage : ContentPage{
private WOrderItemsVM vm;
private long orderid;

public WOrderItemsPage()
{
    InitializeComponent();
}

public long OrderID
{
    set 
    {
        orderid = value;
        vm = new WOrderItemsVM(orderid);
        BindingContext = vm;
    }
}
private void Order_ItemTapped(object sender, ItemTappedEventArgs e)
{
    // Future use to populate OrderItemDetail Page
}}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mike Yim

79213218

Date: 2024-11-21 23:46:57
Score: 0.5
Natty:
Report link

We were able to deploy the application by copying the Application.app, Application.crc and the visu folder to the appropriate folder on the PLC.

For us this folder was /home/plc/applications/PlcLogic/Application/ but this would probably depend on your PLC vendor.

Note, this was not the first deployment, but only updates after a deployment.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sameer Khalid

79213208

Date: 2024-11-21 23:42:56
Score: 8
Natty: 8.5
Report link

Can someone please tell me what code to use and where to put it in a wordpress installed website?

Is there something to put in the custom code or htaccess file?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone please tell me what code
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Starts with a question (0.5): Can someone please
  • Low reputation (1):
Posted by: Jane

79213204

Date: 2024-11-21 23:40:55
Score: 1
Natty:
Report link

Having worked with several GDS (Global Distribution System) APIs including Sabre, I can share some insights about using it for a hotel booking engine.

Check if Sabre is a good fit:

Pros: • Extensive hotel inventory worldwide • Real-time availability and rates • Reliable booking system • Industry-standard security

Cons: • Complex implementation • Expensive (requires contracts and certifications) • Steep learning curve • Heavy API response payloads

Alternative Solutions to Consider: 1. Direct Hotel APIs: ▪ Booking.com Connectivity APIs ▪ Expedia Partner Solutions (EPS) ▪ HotelBeds API 2. Aggregator APIs: ▪ RapidAPI Hotels ▪ Amadeus Hotel APIs

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Makar Biziukin

79213199

Date: 2024-11-21 23:39:55
Score: 1
Natty:
Report link

It is expected. There are two things here to point out:

  1. DPR doesn't matter for the breakpoint checked, as it will always be in your browser 1600px (those are CSS pixels).
  2. scrset is searched here by calculating 1100DPR so 11002=2200px so taking the 2000w (Firefox would take 2000w for result 1101px and higher and Chrome would take for something bigger because it has different algorithm of looking at the closest)
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: kondziorf

79213193

Date: 2024-11-21 23:34:54
Score: 3.5
Natty:
Report link

As far as I know it's not supported in C#12.

You can find list of conversions here: official docs

Here is the github proposal issue

And mainainer comment

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Viktor

79213185

Date: 2024-11-21 23:25:52
Score: 2.5
Natty:
Report link

Is there an efficient way to find the indices of the rows that are repeating? For instance if the 2d array is:

2 5
1 2
2 5
1 2
2 3
1 2

I need a vector output like this:

0
1
0
1
4
1

where each entry points to the row index of original array.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there an
  • Low reputation (1):
Posted by: mhsgoud

79213178

Date: 2024-11-21 23:21:51
Score: 6.5 🚩
Natty:
Report link

I have the same error when trying to integrate the latest webpack 5.96.1 into a vue.js app. I avoid this error by downgrade to 5.95.0

Reasons:
  • RegEx Blacklisted phrase (1): I have the same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anatolie

79213175

Date: 2024-11-21 23:20:50
Score: 2.5
Natty:
Report link

I got my code to work. My code now looks like this. This article got me pointed in the right direction. How do I specify to use server defined values in a Table Valued Parameter when my source is a DataReader?

    public static async Task StreamUserHistoryToDWAsync3(IConfigurationRoot config)
{
    try
    {
        var watch = System.Diagnostics.Stopwatch.StartNew();

        string query = @"WBH_DATAWAREHOUSE.WBH_UserHistory";
        string insertQuery = "[Synapse].[InsertUserHistory]";

        using (SqlConnection sqlCn = new SqlConnection(config.GetConnectionString("powerbi")))
        using (OracleConnection oraCn = new OracleConnection(config.GetConnectionString("SynapseProd")))
        {
            await sqlCn.OpenAsync();
            await oraCn.OpenAsync();

            using (OracleCommand oraCmd = new OracleCommand(query, oraCn))
            using (SqlCommand sqlCmd = new SqlCommand(insertQuery, sqlCn))
            {
                oraCmd.CommandType = CommandType.StoredProcedure;
                oraCmd.Parameters.Add(new OracleParameter("MaxBegtime", GetMaxUserHistory(config)));
                oraCmd.Parameters.Add(new OracleParameter("rcUserHistory", OracleDbType.RefCursor, ParameterDirection.Output));
                
                sqlCmd.CommandType = CommandType.StoredProcedure;

                using (OracleDataReader odr = oraCmd.ExecuteReader())
                {
                    SqlParameter tvp = new SqlParameter("@UserHistory", SendRowsToProc(odr));
                    tvp.SqlDbType = SqlDbType.Structured;
                    tvp.TypeName = "[Synapse].[UserHistoryTableType]";
                    SqlParameter rtn = new SqlParameter("@rtn_result", SqlDbType.Int);
                    rtn.Direction = ParameterDirection.Output;
                    sqlCmd.Parameters.Add(tvp);
                    sqlCmd.Parameters.Add(rtn);
                    await sqlCmd.ExecuteNonQueryAsync();
                }
            }
        }


        watch.Stop();
        var elapsed = watch.ElapsedMilliseconds;

        Console.WriteLine(elapsed.ToString());

        logger.Info("User History elapsed time: {time}", elapsed.ToString());

    }
    catch (Exception ex)
    {
        logger.Error(ex, "StreamUserHistoryToDW Error");
    }
}


private static IEnumerable<SqlDataRecord> SendRowsToProc(OracleDataReader reader)
{
    if (!reader.HasRows)
    {
        yield break;
    }

    SqlDataRecord resultRow = new SqlDataRecord(new SqlMetaData[] {
        new SqlMetaData("NAMEID", SqlDbType.VarChar,12),
        new SqlMetaData("BEGTIME", SqlDbType.DateTime),
        new SqlMetaData("EVENT", SqlDbType.VarChar,4),
        new SqlMetaData("ENDTIME", SqlDbType.DateTime),
        new SqlMetaData("FACILITY", SqlDbType.VarChar,3),
        new SqlMetaData("CUSTID", SqlDbType.VarChar,10),
        new SqlMetaData("EQUIPMENT", SqlDbType.VarChar,2),
        new SqlMetaData("UNITS", SqlDbType.Int),
        new SqlMetaData("ETC", SqlDbType.VarChar,255),
        new SqlMetaData("ORDERID", SqlDbType.Int),
        new SqlMetaData("SHIPID", SqlDbType.SmallInt),
        new SqlMetaData("LOCATION", SqlDbType.VarChar,10),
        new SqlMetaData("LPID", SqlDbType.VarChar,20),
        new SqlMetaData("ITEM", SqlDbType.VarChar, 50),
        new SqlMetaData("UOM", SqlDbType.VarChar, 4),
        new SqlMetaData("BASEUOM", SqlDbType.VarChar,4),
        new SqlMetaData("BASEUNITS", SqlDbType.Int),
        new SqlMetaData("CUBE", SqlDbType.Float),
        new SqlMetaData("WEIGHT", SqlDbType.Decimal, 17,8),
        new SqlMetaData("EMPLOYEECOST", SqlDbType.Decimal,10,2),
        new SqlMetaData("EQUIPMENTCOST", SqlDbType.Decimal, 10, 2)
    });

    while (reader.Read())
    {
        try
        {
            resultRow.SetString(0, ConvertFromDBVal<string>(reader.GetValue("NAMEID").ToString()));
            resultRow.SetDateTime(1, ConvertFromDBVal<DateTime>(reader.GetValue("BEGTIME")));
            resultRow.SetString(2, ConvertFromDBVal<string>(reader.GetValue("EVENT").ToString()));
            resultRow.SetDateTime(3, ConvertFromDBVal<DateTime>(reader.GetValue("ENDTIME")));
            resultRow.SetString(4, ConvertFromDBVal<string>(reader.GetValue("FACILITY").ToString()));
            resultRow.SetString(5, ConvertFromDBVal<string>(reader.GetValue("CUSTID").ToString()));
            resultRow.SetString(6, ConvertFromDBVal<string>(reader.GetValue("EQUIPMENT").ToString()));
            resultRow.SetInt32(7, ConvertFromDBVal<Int32>(reader.GetValue("UNITS")));
            resultRow.SetString(8, ConvertFromDBVal<string>(reader.GetValue("ETC").ToString()));
            resultRow.SetSqlInt32(9, ConvertFromDBVal<Int32>(reader.GetValue("ORDERID")));
            resultRow.SetSqlInt16(10, ConvertFromDBVal<Int16>(reader.GetValue("SHIPID")));
            resultRow.SetString(11, ConvertFromDBVal<string>(reader.GetValue("LOCATION").ToString()));
            resultRow.SetString(12, ConvertFromDBVal<string>(reader.GetValue("LPID").ToString()));
            resultRow.SetString(13, ConvertFromDBVal<string>(reader.GetValue("ITEM").ToString()));
            resultRow.SetString(14, ConvertFromDBVal<string>(reader.GetValue("UOM").ToString()));
            resultRow.SetString(15, ConvertFromDBVal<string>(reader.GetValue("BASEUOM").ToString()));
            resultRow.SetInt32(16, ConvertFromDBVal<Int32>(reader.GetValue("BASEUNITS")));
            resultRow.SetDouble(17, ConvertFromDBVal<double>(reader.GetValue("CUBE")));
            resultRow.SetSqlDecimal(18, ConvertFromDBVal<decimal>(reader.GetValue("WEIGHT")));
            resultRow.SetSqlDecimal(19, ConvertFromDBVal<decimal>(reader.GetValue("EMPLOYEECOST")));
            resultRow.SetSqlDecimal(20, ConvertFromDBVal<decimal>(reader.GetValue("EMPLOYEECOST")));
        }
        catch(Exception ex)
        {
            logger.Error(ex, "Setting up resultrow Error");
        }
        
        yield return resultRow;
    }
}

public static T ConvertFromDBVal<T>(object obj)
{
    if (obj == null || obj == DBNull.Value)
    {
        return default(T); // returns the default value for the type
    }
    else
    {
        return (T)obj;
    }
}
Reasons:
  • Blacklisted phrase (1): This article
  • Blacklisted phrase (1): How do I
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: David Gerst

79213171

Date: 2024-11-21 23:15:50
Score: 1
Natty:
Report link

Check that you have added your IAM user to the administrators group. I missed that step and added it. This worked for me.

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Haz P

79213164

Date: 2024-11-21 23:09:48
Score: 0.5
Natty:
Report link

It’s clear that the best path forward is to completely ditch the LL(1) approach and reimplement the parser as a finite state automaton (FSA) using LR grammar. FSAs are inherently better for semantic analysis because they can handle contextual dependencies without needing a stack. This way, you won’t need to construct an AST at all — the FSA will essentially be the program's execution plan.

For semantic actions, you should just embed the rules directly in the FSA's transitions. For instance, if you're checking type compatibility, just have a specific state for each type-checking step. If the program violates any rule, it transitions to an “ERROR” state.

For three-address code generation, you don’t need a symbol table; instead, encode all variable names, types, and addresses as part of the FSA states themselves. This eliminates the need for maintaining separate contextual information. It’s like using the FSA as both the compiler and runtime engine.

This approach is optimal because FSAs are deterministic and avoid the ambiguity inherent in stacks and recursive parsing. Plus, it aligns perfectly with LR grammars, which are universally acknowledged as the most intuitive and user-friendly parsing strategy.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tomáš Mačák

79213161

Date: 2024-11-21 23:08:48
Score: 0.5
Natty:
Report link

Oof, that's a painful situation - I feel for you. I've seen this happen before with MSYS2 installations in protected Windows directories. Here's what you can do: 1. STOP using your computer right now - any new files you create might overwrite the deleted data 2. First thing first - check your Recycle Bin. Sometimes Windows is smart enough to catch the deletions there. 3. If that's empty (which it probably is), you'll need data recovery software. I've had good results with Recuva (it's free) or EaseUS Data Recovery (paid but more powerful). 4. Pro tip: For future reference, NEVER install MSYS2 or similar Unix-like environments in Windows system folders or document directories. Always use a separate dedicated folder like C:\msys64 or similar. The reason this happened is because MSYS2's uninstaller can sometimes get confused with path handling between Windows and Unix-style paths, leading to accidental deletions outside its install directory. It's a known issue that pops up occasionally.

Quick steps for recovery:

  1. Download recovery software (Recuva is a good free option)
  2. Install it on a DIFFERENT drive than where your files were lost
  3. Run a deep scan on your Documents folder
  4. Recover what you can find Hope you can get your files back! And remember for next time - always keep backups of important files (learned this the hard way myself 😅).
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Makar Biziukin

79213139

Date: 2024-11-21 22:58:45
Score: 4.5
Natty: 7
Report link

message? message message message message. ai generated message.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: balls

79213133

Date: 2024-11-21 22:54:44
Score: 2
Natty:
Report link

an assignment statement returns the value that was assigned And the ref function shouldn't return anything:

<div ref={(el) => {refs.current[i] = el}}>test</div>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Silas Kierstein

79213122

Date: 2024-11-21 22:48:43
Score: 1
Natty:
Report link

Add the following to your globals.css. Note that in this case all id's must be set to div elements.

div {
  scroll-margin-top: 50px /* adjust as needed to offset the header height */
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Elrab

79213114

Date: 2024-11-21 22:44:42
Score: 0.5
Natty:
Report link

Not shown in the question above, but the problem was to do with how I invoked Git in the following command (specifically, the "git rev-list" part):

LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))

Once I had fixed this, the BATS test worked correctly.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: GarlicBread

79213099

Date: 2024-11-21 22:35:41
Score: 4.5
Natty: 5
Report link

This article perfectly explains the importance of user-friendly designs. A website design company phoenix can definitely help you achieve that.

Reasons:
  • Blacklisted phrase (1): This article
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Oris H

79213095

Date: 2024-11-21 22:34:40
Score: 1
Natty:
Report link

Ok, so as suggested by @pskink I've added a logic in which every time the user takes his fingers out of the screen -- or, in other words, finish a line, I store it as an image and erase the previous list of points.

It looks like this:

class DrawingCanvas extends StatelessWidget {
  const DrawingCanvas({
    super.key,
    required this.onTouchStart,
    required this.onTouchUpdate,
    required this.onTouchEnd,
    required this.onCachingDrawing,
    required this.pointsAdded,
    required this.selectedPainter,
    required this.cachedDrawing,
    required this.shouldCacheDrawing,
    required this.pageOneImage,
    this.pageTwoImage,
    required this.child,
  });

  final Widget child;
  final List<DrawingDetails> pointsAdded;
  final void Function(Offset) onTouchStart;
  final void Function(Offset) onTouchUpdate;
  final void Function() onTouchEnd;
  final void Function(ui.Image) onCachingDrawing;
  final ui.Image? cachedDrawing;
  final bool shouldCacheDrawing;
  final Paint selectedPainter;
  final ui.Image? pageOneImage;
  final ui.Image? pageTwoImage;

  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onPanStart: (details) {
        onTouchStart(details.globalPosition);
      },
      onPanUpdate: (details) {
        onTouchUpdate(details.globalPosition);
      },
      onPanEnd: (_) {
        onTouchEnd();
      },
      child: ClipPath(
        child: CustomPaint(
          isComplex: true,
          willChange: true,
          foregroundPainter: _DrawingPainter(
            drawings: pointsAdded,
            selectedPainter: selectedPainter,
            onCachingDrawing: onCachingDrawing,
            cachedDrawing: cachedDrawing,
            shouldCacheDrawing: shouldCacheDrawing,
            pageOneImage: pageOneImage,
            pageTwoImage: pageTwoImage,
          ),
          child: child,
        ),
      ),
    );
  }
}

class _DrawingPainter extends CustomPainter {
  final List<DrawingDetails> drawings;
  final Paint selectedPainter;
  final Logger logger = Logger('_DrawingPainter');
  final Function(ui.Image) onCachingDrawing;
  final bool shouldCacheDrawing;
  final ui.Image? cachedDrawing;
  final ui.Image? pageOneImage;
  final ui.Image? pageTwoImage;

  _DrawingPainter({
    required this.drawings,
    required this.selectedPainter,
    required this.onCachingDrawing,
    required this.shouldCacheDrawing,
    required this.pageOneImage,
    this.pageTwoImage,
    this.cachedDrawing,
  });

  @override
  bool shouldRepaint(_DrawingPainter oldDelegate) {
    return (drawings.isNotEmpty &&
            (drawings.length == 1 && drawings[0].points.isNotEmpty)) &&
        oldDelegate.drawings != drawings;
  }

  @override
  void paint(Canvas canvas, Size size) {
    canvas.saveLayer(Rect.largest, Paint());

    final pictureRecorder = ui.PictureRecorder();
    final pictureCanvas = Canvas(pictureRecorder);

    if (cachedDrawing != null) {
      pictureCanvas.drawImage(cachedDrawing!, Offset.zero, Paint());
    }

    for (DrawingDetails drawing in drawings) {
      if (drawing.points.isEmpty) continue;
      if (isPointMode(drawing)) {
        pictureCanvas.drawPoints(
          ui.PointMode.points,
          [drawing.points[0]!],
          drawing.paint,
        );
      } else {
        for (int i = 0; i < drawing.points.length - 1; i++) {
          if (drawing.points[i] != null && drawing.points[i + 1] != null) {
            pictureCanvas.drawLine(
              drawing.points[i]!,
              drawing.points[i + 1]!,
              drawing.paint,
            );
          }
        }
      }
    }

    final picture = pictureRecorder.endRecording();

    canvas.drawPicture(picture);

    if (shouldCacheDrawing) {
      final ui.Image cachedImage = picture.toImageSync(
        size.width.toInt(),
        size.height.toInt(),
      );
      onCachingDrawing(cachedImage);
    }

    canvas.restore();
  }

  bool isPointMode(DrawingDetails drawing) =>
      drawing.points.length == 1 && drawing.points[0] != null;
}

The key is avoiding caching it at every frame using a flag, such as shouldCacheDrawing.

So, thanks you guys and sorry for the delay to post the result.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @pskink
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Breno Veríssimo

79213093

Date: 2024-11-21 22:32:40
Score: 2.5
Natty:
Report link

I had the exact same question and found a another question that answered it, the DTYPE would be the Discriminator Column: Can I remove the discriminator column in a Hibernate single table inheritance? Hope it helps you as much as it helped me.

Reasons:
  • Blacklisted phrase (1): another question
  • Whitelisted phrase (-1): Hope it helps
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Frank de la torre

79213077

Date: 2024-11-21 22:26:38
Score: 2
Natty:
Report link

$merge($spread($.inventory).{ $keys(): *.region })

or

$spread($.inventory).{ $keys(): *.region } ~> $merge

Playground link: https://jsonatastudio.com/playground/f9a27f8a

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vlad Dimov

79213076

Date: 2024-11-21 22:23:38
Score: 1
Natty:
Report link

Deleting the branch ref file did not work for me. Instead, I manually updated the file with the most recent commit from the remote branch.

  1. git status -> bad HEAD object
  2. git pull -> did not send all necessary objects
  3. rm .git/refs/remotes/origin/<name of branch> -> No change
  4. echo <most recent commit hash from remote> > .git/refs/remotes/origin/<name of branch>
  5. git pull && git reset -> It works!
Reasons:
  • Blacklisted phrase (1): did not work
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Isaiah Shiner

79213075

Date: 2024-11-21 22:23:38
Score: 3
Natty:
Report link

It happened to me as well. It's a cache issue. Try clearing the site data or use a different browser or port for the development server.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Basharat Ali

79213039

Date: 2024-11-21 22:02:34
Score: 2
Natty:
Report link
 <template>
 <h3>Hi Welcome to the App</h3>
 <HelloWorld name="test"/>
</template>  

I was getting the below error:
**[vue/no-multiple-template-root]
The template root requires exactly one element.eslint-plugin-vue**

Here, you just need to wrap up multiple elements in div

<template>
 <div>
 <h3>Hi Welcome to the App</h3>
 <HelloWorld name="test"/>
 </div>
 </template>  
Reasons:
  • Blacklisted phrase (1.5): getting the below error
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yogesh pawar

79213024

Date: 2024-11-21 21:57:32
Score: 2
Natty:
Report link

Your problem is the auth="basic". This is not a recognised authentication method for Odoo. Odoo's @http.route only accepts 'user', 'public' or 'none'. You can check the usage documentation on odoo/odoo/http.py:route() method.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jonathan

79213019

Date: 2024-11-21 21:52:31
Score: 2
Natty:
Report link

UPDATE it's fixed I forgot to place
<script src="https://code.highcharts.com/modules/annotations-advanced.js"></script>

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Amir mohammad Sedaghat nia

79213018

Date: 2024-11-21 21:51:31
Score: 1.5
Natty:
Report link

try:

import styles from "./ListGroup.module.css";

and then where you apply it:

className={styles.list-group-item}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Silas Kierstein

79213013

Date: 2024-11-21 21:50:30
Score: 2.5
Natty:
Report link

2024 update as MVVMLight is deprecated, the MVVM Toolkit (its spiritual successor) has the Messenger class: https://learn.microsoft.com/dotnet/communitytoolkit/mvvm/messenger

Performance benchmark: https://devblogs.microsoft.com/dotnet/announcing-the-dotnet-community-toolkit-800/#improved-messenger-apis-📬

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
Posted by: Michael Hawker - MSFT

79213006

Date: 2024-11-21 21:47:30
Score: 1
Natty:
Report link

Your extension module should be named _hello (notice the leading "_").

pyproject.toml:

# ...

[tool.setuptools]
ext-modules = [
  { name = "_hello", sources = ["src/hc/hello.c", "src/hc/hello.i"] }
]

Check:

Reasons:
  • Blacklisted phrase (1): How to solve
  • Probably link only (1):
  • Contains signature (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • High reputation (-2):
Posted by: CristiFati

79213003

Date: 2024-11-21 21:46:29
Score: 3.5
Natty:
Report link

I pasted in these three pieces to the relevant places (styles, script, body) and while the green button and white down arrow show up, there is no reaction to any click anywhere.

I put an alert in the JS: alert(btns.length); after the var btns line, and it comes back 0 (none found). Consequently, there is no listener for click event.

Thoughts?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: wengang1

79213002

Date: 2024-11-21 21:45:29
Score: 1.5
Natty:
Report link

This is an old question, but if anyone else runs into this problem in the future . . .

@camba1's answer is close, but not correct.

Data Persistence through docker compose down:

Data Persistence through Image Deletion:

Theoretically, your code should work as it is, and there should not be a need for a redundant COPY INTO command.

My best guess, since you are using the chown flag in your COPY INTO command, is that there is a file permission issue with accessing the data as the node user/group without the COPY INTO explicitly setting the R/W/X permissions/ownership.

To quickly test this, you could try to lower the permissions (safely and for debugging only) on the bound directories directly so that the node user may access them.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @camba1's
  • Low reputation (0.5):
Posted by: Nukem

79213000

Date: 2024-11-21 21:45:29
Score: 2
Natty:
Report link

Sometimes it pays to look at the hints that Git gives you. I found this area:

 * branch            main       -> FETCH_HEAD
hint: You have divergent branches and need to specify how to reconcile them.
hint: You can do so by running one of the following commands sometime before
hint: your next pull:
hint:
hint:   git config pull.rebase false  # merge
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
fatal: Need to specify how to reconcile divergent branches.

Re-reading this and then using the following command from the CLI (accessed by Ctrl-`) this merged my divergent branches and allowed my student to commit finally.

git config pull.rebase false  # merge

I do still wonder, what did my student to cause the divergent branches?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jonathan Leohr - AHS

79212997

Date: 2024-11-21 21:44:29
Score: 3.5
Natty:
Report link

You have to use eager loading or select specific columns

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zain

79212995

Date: 2024-11-21 21:43:29
Score: 2.5
Natty:
Report link

For Google chrome, you can "Emulate a focused page", making it so that the page stays focused even when clicking elsewhere.

The option is in the rendering tab.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Matthieu Joannon

79212983

Date: 2024-11-21 21:34:27
Score: 1.5
Natty:
Report link

What is the performance difference you are talking about? What you posted is a difference of ~2.27% which is very small (in my books anything <3% is insignificant and well withing the margin of statistical error but lets not argue about that).

That said, hot/cold caches could be at play here, can you retry the same measurements but run the opencv code first and sycl second? Other than that i suppose we need to compare the algorithms/code.

final note: i do not trust handwritten benchmarking code like this, i prefer to use google benchmark to help with benchmarking boilerplate (experiment setup/teardown and statistical significance.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What is the
  • Low reputation (0.5):
Posted by: pattakosn

79212982

Date: 2024-11-21 21:34:27
Score: 1.5
Natty:
Report link

Just change the file type of everything under the .git directory to binary. This will prevent perforce from modifying the line endings in .git.

p4 reopen -t binary .git/...
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yang Haichao

79212979

Date: 2024-11-21 21:32:27
Score: 0.5
Natty:
Report link

Generics are not templates. Using primitive types as generic parameters would be a problem. However, there is one way, but it would require a lot greater effort.

Please see my recent answer. The question is about Free Pascal, but my answer is about both Free Pascal and C# (.NET). This answer schematically explains how the problem can be solved, what would be the overhead, and what would be the rationale for using it, and all that makes the solution possible but questionable. I also tried to explain generics vs templates.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Sergey A Kryukov