79135510

Date: 2024-10-29 01:00:46
Score: 2
Natty:
Report link

There's this react-native library react-native-voice that handles speech-to-text. I am doing the same project as you, I used it and it works after going through myriad debuggings. It works for me with the API 30, make sure to check 'Virtual microphone uses host audio input' in the microphone tab on your emulator device, to enable your computer audio. For more details, see the package repo enter link description here, the issue enter link description here, and the implementation exampleenter link description here

To walk you through, see the youtube tutorial https://www.youtube.com/channel/UCHau-Of64A57oL3EipcMpSA

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (0.5): enter link description here
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jnlan

79135504

Date: 2024-10-29 00:56:45
Score: 2
Natty:
Report link

I just ran into the same issue and it turned out to be an old workspace build setting that no longer appears to be exposed in Xcode GUI (located in file: workspace_name.xcworkspace -> xcshareddata -> WorkspaceSettings.xcsettings). I deleted the xcsettings file completely and Xcode now working as expected.

enter image description here

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

79135501

Date: 2024-10-29 00:55:45
Score: 2
Natty:
Report link
swal.getConfirmButton().disabled = true;

and

swal.getConfirmButton().disabled = false;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bytes4me

79135497

Date: 2024-10-29 00:52:44
Score: 0.5
Natty:
Report link

you can create a table for selection

Table 2 = DISTINCT('Table'[Class])

Do not create relationship between two tables.

Then create a measure

MEASURE =
IF (
    MAX ( 'Table'[Year] ) = MAX ( 'year'[Year] )
        && MAX ( 'Table'[Month] ) < MAX ( 'month'[Month] )
        && MAX ( 'Table'[Type] ) <> "C",
    1
)

add this measure to one visual filter and set to 1 enter image description here

You will see the selected type.

add this measure to another table visual filter and set to 0

enter image description here

then you can see the unselected type

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Ryan

79135494

Date: 2024-10-29 00:50:44
Score: 3
Natty:
Report link

In my case, disconnecting and reconnecting wifi access to my computer solved this problem.

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

79135493

Date: 2024-10-29 00:48:43
Score: 1.5
Natty:
Report link

The following has fixed this issue for me

input:focus, textarea:focus, select:focus {
    outline: none !important;
    border-color: transparent !important;
    box-shadow: none !important;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Dayne Game

79135490

Date: 2024-10-29 00:47:43
Score: 5
Natty: 5
Report link

я тоже помучился и нашёл выход , py.exe -m venv venv и все заработала,

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (1.5):
  • Low reputation (1):
Posted by: Толиб Ибадуллаев

79135485

Date: 2024-10-29 00:44:42
Score: 0.5
Natty:
Report link

Here is a workaround for you. You can create two tables for filtering.

year = DISTINCT('Table'[Year])
month = DISTINCT('Table'[Month])

Do not create relationships between tables.

then create a measure

MEASURE =
IF (
    MAX ( 'Table'[Year] ) = MAX ( 'year'[Year] )
        && MAX ( 'Table'[Month] ) < MAX ( 'month'[Month] )
        && MAX ( 'Table'[Type] ) <> "C",
    1
)

add this measure to visual filter and set to 1.

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Ryan

79135482

Date: 2024-10-29 00:40:41
Score: 0.5
Natty:
Report link

Most probably you have to install Cron first,

sudo yum install cronie -y
sudo systemctl enable crond
sudo systemctl start crond

Then run to add corn task,

crontab -e
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Maduka Jayalath

79135481

Date: 2024-10-29 00:40:41
Score: 1.5
Natty:
Report link
Select MAX(ID) AS ID, FileSize FROM DupTable 
GROUP BY FileSize
HAVING COUNT(*)=1

gives error: Circular reference cause by alias 'ID' in query definition's SELECT list

But the but the last SQL: Select * FROM DupTable WHERE FileSize in ( Select FileSize FROM DupTable GROUP BY FileSize HAVING COUNT(*)=1 ) is giving me the results I needed.

Thank You for the SQL and also teaching me about HAVING/WHERE

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Alan

79135478

Date: 2024-10-29 00:37:40
Score: 1
Natty:
Report link
type tParams = { slug: string[] };

export default async function Challenge({ params }: { params: tParams }) {
  // No need to await `params` here since it's not a Promise anymore
  const { slug } = params;
  const productID = slug[1];

  // other code here
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: hello_world

79135470

Date: 2024-10-29 00:29:39
Score: 0.5
Natty:
Report link

I found yet one more way to get obtain a 404 with Eclipse, Spring Boot hello world application, and Maven. If you choose to 'Run on Server' or Maven install, that won't work. As the answer by Sengar already indicates, Run as, Maven Configuration, with the goal set to spring-boot:run, that will work. This answer is only to say that 'Run as Java Application' also works. But more importantly, 'Run on Server' won't, even though the war is exploded in the .metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/ directory.

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

79135465

Date: 2024-10-29 00:27:38
Score: 1
Natty:
Report link

i think you want count manytomany relation.

# template
{{portfolio.equity.count}}
or
{{portfolio.equity.all|length}}


Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: django.seolpyo.com

79135453

Date: 2024-10-29 00:14:36
Score: 2
Natty:
Report link

In iOS 18.1, textSelection(_:) works in List!

struct ContentView: View {
    var body: some View {
        List {
            Text("Hello World")
                .textSelection(.enabled)
        }
    }
}

image

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: donchan

79135451

Date: 2024-10-29 00:13:36
Score: 1.5
Natty:
Report link

I use an easy way to unlock mouse click, insert the following code in the URL field:

javascript:var script = document.createElement("script");script.src="https://ck0630.github.io/Scripts/mouse_unlock.js";document.head.appendChild(script);

this can :

unlock right click

unlock css select

unlock javascript select

unlock copy past

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bobson Chen

79135447

Date: 2024-10-29 00:11:36
Score: 3
Natty:
Report link

I solve this by creating a run configuration

Step 01

Step 02

Step 03

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: onBIM - Treinamentos e Consult

79135442

Date: 2024-10-29 00:07:35
Score: 3.5
Natty:
Report link

It does look like CallByName works..... :) It's like if you can't find a tool go buy another one.... if you can't figure out a problem you've researched ask the gurus.... then find a few minutes later. Thanks for anyone that started looking.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anthony Holland

79135420

Date: 2024-10-28 23:51:32
Score: 2
Natty:
Report link

Worked for me by deleting package-lock.json and hitting npm i

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pratik Agarwal

79135396

Date: 2024-10-28 23:34:28
Score: 3
Natty:
Report link

Thank you, tigeravatar! I just used your answer for my situation:

=IFERROR(SUM(B121:M121)/COUNTIFS(B121:M121,">0"),"")

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hallesque

79135393

Date: 2024-10-28 23:33:28
Score: 1
Natty:
Report link

Have you tried to activate the host audio in the emulator device? I tried it in the API 30, it works for me: check "Virtual micropohone uses host audio", under the microphone tab in the emulator. It should work. For more details, refer to the issue https://github.com/react-native-voice/voice/issues/429

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jnlan

79135359

Date: 2024-10-28 23:14:24
Score: 1
Natty:
Report link

This may not be relevant to big query though I assume a similar workflow is possible you may want to look into. In Snowflake we use the GCS storage integrations which allow you to basically query csvs inside of the gcs buckets. We were able to then setup a script that would copy the data from the file into a temp table, then run a similar merge script like you have here to quickly merge (upsert) data into our true sources then drop temp table. Works like a charm and minimizes compute time.

I'd recommend trying something like that to see if it works for your purposes.


use CSV helper to take your list and turn it into a csv memory stream:

https://joshclose.github.io/CsvHelper/examples/writing/write-class-objects/

upload memory stream to gcs bucket

https://cloud.google.com/storage/docs/uploading-objects-from-memory

move data from gcs to bigquery into temp table

https://cloud.google.com/bigquery/docs/loading-data-cloud-storage-csv#c

now run your merge script.

cleanup any files/temp tables

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

79135352

Date: 2024-10-28 23:07:22
Score: 0.5
Natty:
Report link

I think I found a way to massage @EdMorton "copy_array" implemntation, into something that "flattens" the true multi-dimensional array:

$ cat flatten.awk
BEGIN {
    arr["a"]["a"] = 21
    arr["a"]["b"] = 21
    arr["b"]["a"] = 2
    arr["b"]["b"] = 3
    arr["c"]["a"] = 4
    arr["d"]["x"]["y"]= 90
    arr["d"]["x"]["z"]= 95


    walk_array(arr, "arr")

    PROCINFO["sorted_in"]="@val_num_asc"
    flatten_array(arr, flatten, "")

    print "----------"

    walk_array(flatten, "flatten")
}

function flatten_array(orig, flatten, idx,      i)
{
    for (i in orig) {
        if (isarray(orig[i])) {
            flatten_array(orig[i], flatten, (length(idx) ? (idx SUBSEP i) : i) )
        }
        else {
            #printf("idx->[%s]\n", idx) > "/dev/stderr"
            flatten[idx SUBSEP i] = orig[i]
        }
    }
}

function walk_array(arr, name,      i)
{
    for (i in arr) {
        if (isarray(arr[i]))
            walk_array(arr[i], (name "[" i "]"))
        else
            printf("%s[%s] = %s\n", name, i, arr[i])
    }
}

$ gawk -f flatten.awk
arr[a][a] = 21
arr[a][b] = 21
arr[b][a] = 2
arr[b][b] = 3
arr[c][a] = 4
arr[d][x][y] = 90
arr[d][x][z] = 95
----------
flatten[ba] = 2
flatten[bb] = 3
flatten[ca] = 4
flatten[aa] = 21
flatten[ab] = 21
flatten[dxy] = 90
flatten[dxz] = 95

Not particularly graceful, but... Unless someone else can offer an alternative...

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @EdMorton
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: vgersh99

79135351

Date: 2024-10-28 23:07:22
Score: 1.5
Natty:
Report link

This document describes the syntax for python annotations. As you can see, they can be any arbitrary python expression, including any random string. Type hinting is just one of the possible applications.

Now, without knowing what was in that string, we cannot know for sure what it was used for in your example, but my guess would be that they are still type hints (as defined in pep 484), enclosed in strings as described in this section of pep 484. For more explanations on that case see this question

Reasons:
  • Blacklisted phrase (1): This document
  • No code block (0.5):
Posted by: tbrugere

79135342

Date: 2024-10-28 23:02:22
Score: 1
Natty:
Report link

Just use code like this:

import my.package.name.MyClass

/**
 * Click to follow: [MyClass.myField], [MyClass.myMethod]
 */
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: antaki93

79135339

Date: 2024-10-28 23:00:21
Score: 1.5
Natty:
Report link

This is because php isn't recognizing these as hexadecimal numbers but rather scientific notation, so when it converts to a decimal integer they are both zero because zero to the power of one is zero and zero to the power of two is zero. The opposite is true for strict comparison as that will return a comparison of the string literals.

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

79135338

Date: 2024-10-28 22:59:21
Score: 1.5
Natty:
Report link

You can do that by setting animations.x.from and animations.y.from callbacks (docs); they are called for each point of the chart so case has to be taken to identify the last datapoint that was just added.

const fromX = function(context){
    if(!context.element){
        return;
    }
    if(context.dataIndex === context.dataset.data.length -1){
        const [prevValue] = context.chart.data.labels.slice(-2); // penultimate element
        return context.chart.getDatasetMeta(context.datasetIndex)['xScale'].getPixelForValue(prevValue);
    }

    return context.element.x;
};

const fromY = function(context){
    if(!context.element){
        return;
    }
    if(context.dataIndex === context.dataset.data.length -1){        
        const [prevValue] = context.dataset.data.slice(-2); // penultimate element
        return context.chart.getDatasetMeta(context.datasetIndex)['yScale'].getPixelForValue(prevValue);
    }

    return context.element.y;
};

and the configuration:

options: {
   ....... other options
   animations: {
      x: {
         from: fromX 
      },
      y: {
         from: fromY 
      }
   }
}  

This works fine as long as the new data is inside the existing chart area; if it is not, and the chart will rescale with the new point, things get more complicated. We have to put the initial position of the new point using the initial axes scales, and its final position will be computed using the final scales. Here's a simple approach that starts the new point at halfway between the current and previous positions:

let labels = [1, 2, 3, 4, 5, 6, 7];
let data = [65, 59, 80, 81, 56, 55, 40];

const chartData = {
    labels: labels,
    datasets: [
        {
            label: "My First dataset",
            backgroundColor: "rgba(75,192,192,0.4)",
            borderColor: "rgba(75,192,192,1)",
            data: data,
        },
    ],
};

const fromX = function(context){
    if(!context.element){
        return;
    }
    if(context.dataIndex === context.dataset.data.length -1){
        const [prevValue, lastValue] = context.chart.data.labels.slice(-2);
        const scale = context.chart.getDatasetMeta(context.datasetIndex)['xScale'];
        return (scale.getPixelForValue(prevValue) + scale.getPixelForValue(lastValue))/2;
    }

    return context.element.x;
}

const fromY = function(context){
    if(!context.element){
        return;
    }
    if(context.dataIndex === context.dataset.data.length -1){
        const [prevValue, lastValue] = context.dataset.data.slice(-2); // penultimate element
        const scale = context.chart.getDatasetMeta(context.datasetIndex)['yScale'];
        return (scale.getPixelForValue(prevValue) + scale.getPixelForValue(lastValue))/2;
    }

    return context.element.y;
};

const options = {
    responsive: true,
    scales: {
        x: {
            display: true,
            title: {
                display: true,
                text: "Time",
            },
        },
        y: {
            display: true,
            title: {
                display: true,
                text: "Value",
            },
        },
    },
    animations: {
        x: {
            duration: 800,
            from: fromX
        },
        y: {
            duration: 800,
            from: fromY
        }
    },
};

const chart = new Chart("canvas", {
    type: "line",
    data: chartData,
    options: options,
});
let interval;

function startInterval(){
    interval = setInterval(() => {
        data.push(Math.random() * data.length + 1);
        labels.push(labels.length + 1);
        chart.update();
    }, 2000);
}

addEventListener("DOMContentLoaded", () => {startInterval();});

document.querySelector('#reset').onclick = () => {
    chart.data.datasets[0].data = [1];
    chart.data.labels = [1];
    data = chart.data.datasets[0].data;
    labels = chart.data.labels;
    chart.update()
};

document.querySelector('#stop').onclick = () => {
    clearInterval(interval);
};
<div>
    <button id="reset">reset</button> <button id="stop">stop</button>
    <canvas id="canvas"></canvas>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

and codesandbox fork


Note This code is based on code from what I think must have been a similar answer before, but for some reason I don't find it on SO; by the dates of my original code, it must have been for this post, which I also upvoted, but for some reason I must've not posted it. If that's wrong and I already posted something similar before, please let me know.

Reasons:
  • Blacklisted phrase (0.5): upvote
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (1): I already posted something similar before, please
  • Long answer (-1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: kikon

79135336

Date: 2024-10-28 22:59:19
Score: 7 🚩
Natty:
Report link

I'm facing same error here and wasted about 2 days exploring why it's not working

Reasons:
  • RegEx Blacklisted phrase (1): I'm facing same error
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: QAZI SAFIULLAH

79135335

Date: 2024-10-28 22:59:18
Score: 2
Natty:
Report link

Example of usage:

drupal_add_css('body.navbar-is-fixed-top {padding-top: 26px;}', array('type' => 'inline','preprocess' => TRUE));

drupal_add_css('profiles/standard/libraries/mediaelement_new/mediaelementplayer.min.css', array('preprocess' => TRUE));

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

79135326

Date: 2024-10-28 22:56:17
Score: 0.5
Natty:
Report link

The error message is telling you the address your server is trying to listen to is already in use EADDRINUSE: address already in use :::5000, probably you have another instance from a previous test running?

To test, try changing the port your server is listening to. Modify the line:

var server = app.listen(5000, function () {

to

var server = app.listen(5001, function () {
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: KnoVz

79135314

Date: 2024-10-28 22:52:17
Score: 1.5
Natty:
Report link

The answer is in the link you supplied for CVImageBuffer; CVImageBuffer is an abstraction allowing the same functions to use either CVPixelBuffers or CV OpenGL buffers. Its a shared base rather than a thing unto itself that you can instantiate.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: G Huxley

79135313

Date: 2024-10-28 22:52:15
Score: 6 🚩
Natty: 6
Report link

TimesWasting - if you use TinyMCE how did you stop the "data-contrast" being pasted in?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: KIm

79135301

Date: 2024-10-28 22:45:13
Score: 0.5
Natty:
Report link
String.prototype.sha256 = function() {
const hash = await window.crypto.subtle.digest("SHA-256", msgUint8b).then(function(hashArrayBuffer) {return Array.from(new Uint8Array(hashArrayBuffer), (b) => b.toString(16).padStart(2, "0") ).join("");},);
return hash;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Greg Tonoski

79135300

Date: 2024-10-28 22:44:13
Score: 0.5
Natty:
Report link

Qiang thank you very much for the brilliant idea. Below is the actual code that worked in my solution.

    @using MudBlazorTraining.Components.Layouts
@inject NavigationManager Navigation

<Router AppAssembly="typeof(Program).Assembly">
    <Found Context="routeData">
        <RouteView RouteData="routeData" DefaultLayout="GetLayoutType()" />
        <FocusOnNavigate RouteData="routeData" Selector="h1" />
    </Found>
</Router>

@code {

    private Type GetLayoutType()
    {
        if (Navigation.Uri.EndsWith("Tab"))
        {
            return typeof(TabLayout);
        }
        else
        {
            return typeof(MainLayout);
        }
    }
}
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Axium7

79135296

Date: 2024-10-28 22:41:12
Score: 1
Natty:
Report link

i found the same eror i fix it by using yarn instead of npm use this command to install it:

yarn add react-native-image-picker

if you dont have already yarn use this command to install it

npm install --global yarn
yarn install
yarn add react-native-image-picker
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hind Ait Taleb

79135292

Date: 2024-10-28 22:40:12
Score: 5.5
Natty: 4.5
Report link

Ctrl + R -> //.* -> Replace enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Erica

79135291

Date: 2024-10-28 22:39:11
Score: 1
Natty:
Report link

First of all you need to understand what kind of leak do you discuss:

Memory Leaks, Buffer Over Flows, Mismatched Memory Management leaks (etc).

Above leaks are most common - some of those are not really important, some can be absolutely crucial.

Some leaks are indeed false positive due to inappropriate settings of your environment or library you trying to debug (please refer to my last question).

For instance, major vendors like Tesseract or OpenCV tend to throw tons of false positive errors which should be just suppressed.

Also these errors are not really leaking memory or lead program to break.

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

79135282

Date: 2024-10-28 22:33:10
Score: 1.5
Natty:
Report link

If you want to define an one-to-one relationship, you need define your entities like this:

Each entity references each other with a foreign key to have that relationship, and the foreign key relationated with its IDs need to have same data type.

Try it...

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

79135274

Date: 2024-10-28 22:31:09
Score: 5.5
Natty:
Report link

I had the same problem and raised the issue to their support team but they said that my answer is still wrong, please let me know if you figured it out!

Reasons:
  • Whitelisted phrase (-1): I had the same
  • RegEx Blacklisted phrase (2.5): please let me know
  • RegEx Blacklisted phrase (1): I had the same problem and raised the issue to their support team but they said that my answer is still wrong, please
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Soulaymane KACEM

79135272

Date: 2024-10-28 22:31:09
Score: 1.5
Natty:
Report link

For me it was because I forgot to specified the id in the url /api/user/{missing_id} in a PATCH request. So it is not your case but could help other reader.

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

79135263

Date: 2024-10-28 22:28:08
Score: 0.5
Natty:
Report link

Maybee is too late, but this is working fine for me:

https://github.com/SantiTabbach/pkf/blob/main/react/RTK_QUERY_WRAPPERS.md

import {
    BaseQueryFn,
    MutationDefinition,
    QueryArgFrom,
    QueryDefinition,
} from '@reduxjs/toolkit/query';
import {
    UseMutation,
    UseQuery,
} from '@reduxjs/toolkit/dist/query/react/buildHooks';
import { MaybePromise } from '@reduxjs/toolkit/dist/query/tsHelpers';

/**
 * BaseOptions: Define optional callbacks for handling
 * success, error, and loading states for both mutations and queries.
 *
 * @template ResponseType - The expected type of the API response.
 * @template S - The type of the error state.
 * @template T - The type of the success state.
 *
 * @property {function} [onSuccess] - A callback executed on a successful response.
 * @property {function} [onError] - A callback executed on an error.
 * @property {boolean} [showLoader] - Whether to display a loading spinner (default: true).
 */
interface BaseOptions<ResponseType, S, T> {
    onSuccess?: (response: ResponseType) => MaybePromise<T>;
    onError?: (error: unknown) => MaybePromise<S>;
    showLoader?: boolean;
}

// Mutation handler types

/**
 * MutationArgs: Defines the arguments for mutation functions.
 *
 * @template U - The mutation argument type.
 * @template V - BaseQueryFn from Redux Toolkit for managing base queries.
 * @template X - The cache key type for the mutation.
 * @template W - The response type for the mutation.
 */
export type MutationArgs<
    U,
    V extends BaseQueryFn,
    X extends string,
    W
> = QueryArgFrom<MutationDefinition<U, V, X, W>>;

/**
 * UseMutationHandlerParams: Defines the parameters for the mutation handler hook.
 *
 * @template R - Type of the 'finally' callback return.
 * @template S - Type of the 'onError' callback return.
 * @template T - Type of the 'onSuccess' callback return.
 * @template U - The mutation argument type.
 * @template V - BaseQueryFn from Redux Toolkit for managing base queries.
 * @template W - The response type for the mutation.
 * @template X - The cache key type for the mutation.
 *
 * @property {UseMutation} mutation - The mutation hook from Redux Toolkit.
 * @property {object} [options] - Optional callbacks for success, error, and finally.
 */
export interface UseMutationHandlerParams<
    R,
    S,
    T,
    U,
    V extends BaseQueryFn,
    W,
    X extends string = string
> {
    mutation: UseMutation<MutationDefinition<U, V, X, W>>;
    options?: BaseOptions<W, S, T> & {
        onFinally?: (args?: unknown) => MaybePromise<R>;
    };
}

// Query handler types

/**
 * QueryArgs: Defines the arguments for query functions.
 *
 * @template U - The query argument type.
 * @template V - BaseQueryFn from Redux Toolkit for managing base queries.
 * @template W - The response type for the query.
 * @template X - The cache key type for the query.
 */
export type QueryArgs<
    U,
    V extends BaseQueryFn,
    W,
    X extends string = string
> = QueryArgFrom<QueryDefinition<U, V, X, W>>;

/**
 * UseQueryHandlerParams: Defines the parameters for the query handler hook.
 *
 * @template S - Type of the 'onError' callback return.
 * @template T - Type of the 'onSuccess' callback return.
 * @template U - The query argument type.
 * @template V - BaseQueryFn from Redux Toolkit for managing base queries.
 * @template W - The response type for the query.
 * @template X - The cache key type for the query.
 *
 * @property {UseQuery} query - The query hook from Redux Toolkit.
 * @property {object} [options] - Optional callbacks for success, error.
 * @property {object} [extraOptions] - Extra options for query.
 */
export interface UseQueryHandlerParams<
    S,
    T,
    U,
    V extends BaseQueryFn,
    W,
    X extends string = string
> {
    query: UseQuery<QueryDefinition<U, V, X, W>>;
    options?: BaseOptions<W, S, T>;
    queryArgs?: QueryArgs<U, V, W, X>;
    extraOptions?: QueryDefinition<U, V, X, W>['extraOptions'];
}
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Santi Tabbach

79135242

Date: 2024-10-28 22:18:04
Score: 7.5 🚩
Natty: 5.5
Report link

@Juergen looking for pre-sales/support answers on aircable[dot]co Please reply to recent emails re: Are products still available. Thx

Reasons:
  • Blacklisted phrase (1): Thx
  • Blacklisted phrase (1.5): Please reply
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Juergen
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Tony S

79135234

Date: 2024-10-28 22:14:03
Score: 1
Natty:
Report link

This github issue discusses the topic : https://github.com/r-lib/callr/issues/172. Here is a workaround usable from within an R session:

Sys.setenv(TMPDIR = "MY TEMP DIRECTORY")
unlink(tempdir(), recursive = TRUE)
tempdir(check = TRUE)
tempdir()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Félix de Carpentier

79135223

Date: 2024-10-28 22:10:02
Score: 3.5
Natty:
Report link

I am having the same issue. I found this, brace yourself, it is not supported

https://repost.aws/questions/QU_f3P9W5KQ7KKc4xVaiHqLQ/how-can-i-use-the-data-manager-api-playground-ui-in-aws-amplify-gen2-for-my-sandbox-environment

The passage of interest is "Unfortunately, the Data Manager UI in the AWS Amplify Console is not available for sandbox environments in AWS Amplify Gen 2. The Data Manager and API Playground features are designed for use with deployed environments, typically associated with Git branches in your repository.Unfortunately, the Data Manager UI in the AWS Amplify Console is not available for sandbox environments in AWS Amplify Gen 2. The Data Manager and API Playground features are designed for use with deployed environments, typically associated with Git branches in your repository."

It does fly in the face of do whatever you want and we do the hard stuff. Amazon have chosen sandbox deploy speed over functionality. I would love to see a local sandbox manager. It would not that could look at local sandboxes and cloud deployments.

Going to add this reply to the other thread

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Low reputation (1):
Posted by: Nigel Bond

79135221

Date: 2024-10-28 22:10:02
Score: 2
Natty:
Report link

This works in 6.0.0.preview.1

It didn't work in 5.4.1

(thanks to Svyatoslav Danyliv)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: MrD at KookerellaLtd

79135213

Date: 2024-10-28 22:06:01
Score: 1
Natty:
Report link

if you set updateMode=conditional then the page will not refresh but the event will fire.

Setting ChildrenAsTriggers="true" only says that any event from the children elements will update the panel. If you set childrenAsTriggers to false then in the code behind in you event you can simply call updatePanel1.Update(); This is a better way as it allows you to control what panel gets updated at what time.

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

79135189

Date: 2024-10-28 21:50:58
Score: 2
Natty:
Report link

Which is different? Find "both" answers. Responses

A text reads, what is twenty percent of 30 question mark. Image with alt text: A text reads, what is twenty percent of 30 question mark.

A text reads, twenty percent of what number is 30 question mark. Image with alt text: A text reads, twenty percent of what number is 30 question mark.

A text reads, what is one-fifth of 30 question mark. Image with alt text: A text reads, what is one-fifth of 30 question mark.

A text reads, what is two-tenths of 30 question mark, Image with alt text: A text reads, what is two-tenths of 30 question mark, Question 2 what is the answer

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Which is
  • Low reputation (1):
Posted by: Claire Kolthoff

79135181

Date: 2024-10-28 21:46:57
Score: 10.5
Natty: 7.5
Report link

Did you solved it? if so, would you share the answer?

Reasons:
  • RegEx Blacklisted phrase (3): Did you solved it
  • RegEx Blacklisted phrase (1.5): solved it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you solve
  • Low reputation (1):
Posted by: Sebas Dc

79135180

Date: 2024-10-28 21:45:57
Score: 0.5
Natty:
Report link

After running get_pip.py with Python embed, you have to modify your pythonXX._pth file in the root folder. Uncomment import site to get something like this:

pythonxxx.zip
.
# Uncomment to run site.main() automatically
import site

Adding instead Lib\site-packages as mentioned by Why am I getting ImportError: No module named pip ' right after installing pip? also works.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jorge Moraleda

79135179

Date: 2024-10-28 21:45:57
Score: 0.5
Natty:
Report link
set.seed(123)
data <- matrix(runif(100, min = 0, max = 1), nrow = 10)
data[, 1] <- 0   
data[, 5] <- 0   
data[, 7] <- 0 
data[, 8] <- 0 
df <- as.data.frame(data)
correlation_matrix <- cor(df)
correlation_matrix <- (correlation_matrix + 1) / 2
correlation_matrix[is.na(correlation_matrix)] <- 0
correlation_matrix

# Identify rows and columns with non-zero values (excluding the diagonal)
ix <- rowSums(correlation_matrix- diag(diag(correlation_matrix))) != 0; correlation_matrix[ix, ix]

# Subset the correlation matrix using ix
correlation_subset <- correlation_matrix[ix, ix]

# Ensure the subset is of class "matrix" for compatibility with corrplot
correlation_subset <- as.matrix(correlation_subset)

# Plot using corrplot with coefficients displayed
library(corrplot)
corrplot(correlation_subset, method = "color",addCoef.col = "black")

enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Davyd Antoniuk

79135161

Date: 2024-10-28 21:37:55
Score: 1
Natty:
Report link

Use the miniforge prompt. Then try to run the follwing as explained in mamba docs, but at least mamba package at the end for installation:

mamba create -n nameofmyenv mamba

for me it worked

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: AKhad

79135159

Date: 2024-10-28 21:37:55
Score: 3.5
Natty:
Report link

quotation about bts and they are hard woking

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

79135155

Date: 2024-10-28 21:35:55
Score: 1
Natty:
Report link

It seems that the recommended best practice, once you've added the color with its shades in tailwind.config.ts, is to add the color value to ui.safelistColors in the nuxt.config.ts. Then, you can apply the color name directly to the component. nuxt.config.ts :

export default defineNuxtConfig({
    ui: {
        safelistColors: ['variantred']
    }

In the component file :

<template>
  <UButton color="variantred">Button</UButton>
</template>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Anthony26

79135151

Date: 2024-10-28 21:34:55
Score: 1.5
Natty:
Report link

Emulators often encounter issues with receiving notifications, especially on iOS, as many emulators don't fully support this functionality.

Testing on a real device should resolve the problem.

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

79135149

Date: 2024-10-28 21:33:54
Score: 1.5
Natty:
Report link

You'll want to trigger the Pyspark job via an Action, which lets you generate and send an email notification as a side effect. Check out the docs here.

In principle you could hit a 3rd party API like SendGrid to send the email, although you lose some of Palantir's data security guarantees this way. To do it this way would require getting egress to the email provider whitelisted, creating a Data Connection to that provider, and then using that to send the request.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: William Gentry

79135138

Date: 2024-10-28 21:28:51
Score: 6 🚩
Natty:
Report link

Se você está tentando modificar a propriedade Font.Bold=False de um controle, faça o seguinte:

'se o objeto que deseja alterar não estiver dentro de um Frame, é só retirar a instrução 'frame1'

 For Each objecto In UserForm1.frame1.Controls

   objecto.Font.Weight = 400

 Next
Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): não
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Keliton André

79135131

Date: 2024-10-28 21:23:50
Score: 1.5
Natty:
Report link

Opening it with JProfiler helped me a lot.

Shows you the Heap Walker with all the threads, packages, classes and relations between them, so you can navigate, walk the incoming/outgoing references and visualize.

There is a plenty of guides on using it, so getting the general idea on dump analyzing should be enough to start using it.

It requires a paid license, but has 10 days of free trial.

Reasons:
  • Blacklisted phrase (1): helped me a lot
  • No code block (0.5):
Posted by: RAM237

79135129

Date: 2024-10-28 21:22:49
Score: 0.5
Natty:
Report link

I have fixed this error with flutter config --jdk-dir /your/path/jvm/java-17-openjdk/

This is a global config and it changes the jdk for all of your projects. You can unset the config with flutter config --jdk-dir ''

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Csaba Mihaly

79135128

Date: 2024-10-28 21:22:49
Score: 11.5
Natty: 7.5
Report link

I am still facing this issue. Can someone help me out with this?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can someone help me
  • RegEx Blacklisted phrase (2): help me out
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Abhinandan

79135122

Date: 2024-10-28 21:18:48
Score: 1
Natty:
Report link

Most likely, you transferred your project or loaded it from a repository. The issue is not with the folder itself but with the rendered cache file. You need to clear all the cache. Start by trying php artisan optimize & php artisan view:clear (view:clear might be sufficient on its own). This will delete those files, and on the next application initialization, the framework will create new files with the correct permissions.

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

79135119

Date: 2024-10-28 21:16:48
Score: 0.5
Natty:
Report link

Task scheduling can also be done in /bootstrap/app.php using withSchedule:

use Illuminate\Console\Scheduling\Schedule;

->withSchedule(function (Schedule $schedule) {
    $schedule->command('some:signature')->daily();
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: polycode

79135117

Date: 2024-10-28 21:15:47
Score: 2
Natty:
Report link

You need to use the topicfilter resource for the subscribe filters, not topic. Something like this: "arn:aws:iot:<REGION>:<ACCOUNT>:topicfilter/+/livetracking".

See AWS docs: https://docs.aws.amazon.com/iot/latest/developerguide/pub-sub-policy.html#pub-sub-specific-topic

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

79135109

Date: 2024-10-28 21:13:45
Score: 8 🚩
Natty: 6
Report link

do you maybe solve the problem ? i have the same problem but i dont see really some solutions

Reasons:
  • Blacklisted phrase (1): i have the same problem
  • RegEx Blacklisted phrase (1.5): solve the problem ?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): i have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: SuperBabaMo

79135107

Date: 2024-10-28 21:12:44
Score: 1.5
Natty:
Report link

Even though UHF C1G2 is a standard, the standard stipulate or leave a backdoor for RFID reader manufacturer to have vendor specific functionality, this is a specific Impinj functionality, means only works between Impinj Readers (using Octane SDK) and Impinj tag chips (No all-tag chips have this functionalities).

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

79135106

Date: 2024-10-28 21:11:44
Score: 2
Natty:
Report link

Ran into this problem with VS2022, on one project but not another for some reason.

The solution boiled down to checking the appsettings file properties, and setting these two options:

enter image description here

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

79135090

Date: 2024-10-28 21:06:43
Score: 3
Natty:
Report link

Turns out it was a silly error for which i wasted 2 days, Reason: my spotify app was in developer-mode , so for any user i try to register , i should first go to spotify dashboard -> click on the app -> settings -> user management -> manually add user to access your app for testing. When you are ready to deploy go in settings -> extension request -> submit an extension request ! cheers ! thats why always read the docs !!

Reasons:
  • Blacklisted phrase (1): cheers
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Pakshal Shah

79135087

Date: 2024-10-28 21:04:42
Score: 2.5
Natty:
Report link

i think yii is the best choice if you are a senior php developer looking for performance, security and simplicity , else use laravel ( big community & awesome plugins that's updated frequently unlike yii)

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

79135086

Date: 2024-10-28 21:04:40
Score: 9.5 🚩
Natty: 4
Report link

have you found any other solutions for this problem? I'm facing the same problem and I really don't want to downgrade to mongoose 5.

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (2.5): have you found any other solutions for this problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mhc

79135076

Date: 2024-10-28 20:59:38
Score: 0.5
Natty:
Report link

This info may be useful to someone while installing CocoaPods on brand new MacBook Pro. Mine is M3 pro chip. Please use SUDO depending on your local user's access level.

After following @VinothV's steps, CocoaPods installed with version 1.15.2.

But when I actually tried: [sudo] pod install

I ran into: no such file to load -- ffi_c (LoadError). After going through some of the SO posts and following the below steps, I am able to install the pods for my Xcode project.

Follow the below steps:

Finally: verify that ffi gem should be of type arm64-darwin.

Use command: gem list ffi and you see the below output

*** LOCAL GEMS ***

ffi (1.17.0 arm64-darwin)

public_suffix (4.0.7)

That's all!! Now pod install worked.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @VinothV's
  • Low reputation (0.5):
Posted by: Rishi

79135074

Date: 2024-10-28 20:59:38
Score: 2
Natty:
Report link

Try this code, its rewrited php_templates.so to PHP on github.

https://github.com/Pavel852

https://github.com/Pavel852/php_templates

Reasons:
  • Whitelisted phrase (-2): Try this code
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Pavel Bartoš

79135071

Date: 2024-10-28 20:58:37
Score: 1
Natty:
Report link

I figured this out using JObject to a JArray and then converting back to an JOBject when iterating through each item of the array so I can access the remove property for that particular property. Solution is here:

https://dotnetfiddle.net/TDJ87v

Reasons:
  • Whitelisted phrase (-1): Solution is
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: David Andrews

79135070

Date: 2024-10-28 20:57:37
Score: 1.5
Natty:
Report link

We have built an numbered heading app for Confluence. It's surprisingly complicated, even if you get it to work once, what happens when you update add/delete a heading. Nobody wants to pay for an app, myself included, but if you are dealing with public pages, example Confluence is popular for technical documentation..

5 apps on the Atlassian Marketplace, but only 3 companies, ie 2 have 2 apps and prices vary a lot.

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

79135068

Date: 2024-10-28 20:56:37
Score: 1.5
Natty:
Report link

Emulators often encounter issues with receiving notifications, especially on iOS, as many emulators don't fully support this functionality.

Testing on a real device should resolve the problem.

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

79135067

Date: 2024-10-28 20:56:37
Score: 2
Natty:
Report link

The problem turned out to be that the directory workdir/.snakemake/scripts had become bogged down with many files (~600,000) from previous runs of the workflow. Deleting the old scripts there solved the problem.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yotam Feldman

79135064

Date: 2024-10-28 20:55:37
Score: 2.5
Natty:
Report link

Also worth adding to this thread, the bahaviour of proxy on the application context is slightly different depending whether it's an interface based proxy or class based (CGLIB) proxy. Something to be aware of.

This is nicely demonstrated on this SpringDeveloper conference talk taking Spring security as an example: https://www.youtube.com/watch?v=9eoi1TViceM&ab_channel=SpringDeveloper

Reasons:
  • Blacklisted phrase (1): youtube.com
  • No code block (0.5):
  • Low reputation (1):
Posted by: marcin

79135058

Date: 2024-10-28 20:52:36
Score: 2
Natty:
Report link

I'm not familiar with CloudFront, or some of the other details of what you're talking about. However, is it not simply that when something is served from a cache, your script is not creating/adding to the response header because the cache mechanism itself is in fact creating the response header for the cached resource? Or perhaps I just don't understand all the 'edge' business ; )

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

79135055

Date: 2024-10-28 20:49:35
Score: 1
Natty:
Report link

The datatype is incompatible with the numpy function you are calling, but can you cast the datatype to float and then try rounding?

I have some python code that labels distances on an image and do the decimal rounding with text = f"{data_list[i]:0,.3f}" where data_list is a list of floats.

import numpy as np
# convert to float
arr.astype(np.float32)
K=3
rounded=np.round(arr,K)
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Haley Schuhl

79135052

Date: 2024-10-28 20:49:35
Score: 2.5
Natty:
Report link

Hi detectChanges did not have desired effects. But thing was that view was ready before actual data processing was done. So issue was fixed by delaying rendering of actual component view after the data processing was done.

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

79135050

Date: 2024-10-28 20:48:32
Score: 8.5 🚩
Natty:
Report link

@SIGHUP , how do i know i can do it in a more pythonic way? and how do i learn those pythonic ways?

Reasons:
  • Blacklisted phrase (1): how do i
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @SIGHUP
  • Self-answer (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: karen

79135047

Date: 2024-10-28 20:48:32
Score: 2
Natty:
Report link

I didn't find a way to do the grouping without activating the sheet where you do the grouping in. the proposed solution to replace selection with row works as long as the sheet you are doing it in is active or selected.

In my case I want to split up my data into 2 sheets and do some grouping and formatting. I can insert rows, copy formatting from my sample format to each line and everything without usage of any selection, just the grouping requires me to select the sheet and thus will cause the screen to flicker.

I did switch off screen updating already, but it would be much nicer

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Markus Mueller

79135035

Date: 2024-10-28 20:43:31
Score: 0.5
Natty:
Report link

I had a similar issue and in my case the problem was stemming from a default "django.contrib.sessions.middleware.SessionMiddleware" implementation. It seems that this vanilla implementation looks for session_key only in cookies of a request. However, when you explicitly pass allauth's "X-Session-Token" header, Django has no idea that it should look for session_key there. The solution that seems to work (with database-based sessions at least) is to inherit from default SessionMiddleware:

from django.conf import settings
from django.contrib.sessions.middleware import SessionMiddleware as _SessionMiddleware


class SessionMiddleware(_SessionMiddleware):
    def process_request(self, request):
        session_key = request.COOKIES.get(settings.SESSION_COOKIE_NAME)
        if session_key is None:
            session_key = request.headers.get("X-Session-Token")
        request.session = self.SessionStore(session_key)

and add this implementation into settings.INSTALLED_APPS in place of the original one.

Disclaimer: I'm very new to Django myself and haven't thought through all the security implications of this solution.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm very new
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: zeronineseven

79135022

Date: 2024-10-28 20:37:30
Score: 2.5
Natty:
Report link

I think the problem is that Gmail by default closing smtp forwarding, so did you check the gmail settings ?

  1. In your Google/Gmail account, go to Settings - See all settings.
  2. Select the Forwarding and POP/IMAP tab.
  3. Under the IMAP access section, toggle on the option to Enable IMAP.

enter image description here

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: aemaddin

79135017

Date: 2024-10-28 20:33:29
Score: 2.5
Natty:
Report link

I did this messing with setting the battery to 500% ect and seeing the maximum % could use and now my charge cycles has messed up big time when I run dumpsys log and check my battery stats. Not sure how to reverse it.

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

79135009

Date: 2024-10-28 20:29:28
Score: 2.5
Natty:
Report link

Add in IAM One of this permissions

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

79134984

Date: 2024-10-28 20:21:27
Score: 1.5
Natty:
Report link

[MethodImpl(MethodImplOptions.AggressiveInlining)] is for the JIT-compiler and the calls to the Finalizers are not initiated from JIT-compiled code (unmanaged part of the runtime). So, logically it shouldn't have any effect.

But even if was the case, I'd assume that the code that runs them is something like:

foreach(var finalizer in finalizers){
    finalizer(); // inline here?
}

how would you inline that?

Reasons:
  • Blacklisted phrase (1): how would you
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Ivan Petrov

79134982

Date: 2024-10-28 20:19:26
Score: 2
Natty:
Report link

This?

You can change the plot range using col.lim variable, with the min and max as a vector i.e. =c(min, max).

corrplot(col.lim=c(0,1),correlation_matrix, method="circle",  col = rep(rev(brewer.pal(n=8, name="RdYlBu")), 2))

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: scott.pilgrim.vs.r

79134981

Date: 2024-10-28 20:19:26
Score: 0.5
Natty:
Report link

OK so I eventually worked out that I needed to add conditions to the references in the csproj file like this:

  <ItemGroup Condition="'$(TargetFramework)|$(Configuration)|$(Platform)'=='net8.0-windows|Debug|x64'">
    <Reference Include="RevitAPI">
      <HintPath>c:\Program Files\Autodesk\Revit 2025\RevitAPI.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="RevitAPIUI">
      <HintPath>c:\Program Files\Autodesk\Revit 2025\RevitAPIUI.dll</HintPath>
      <Private>True</Private>
    </Reference>
  </ItemGroup>

  <ItemGroup Condition="'$(TargetFramework)|$(Configuration)|$(Platform)'=='net481|Debug|x64'">
    <Reference Include="RevitAPI">
      <HintPath>c:\Program Files\Autodesk\Revit 2024\RevitAPI.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="RevitAPIUI">
      <HintPath>c:\Program Files\Autodesk\Revit 2024\RevitAPIUI.dll</HintPath>
      <Private>True</Private>
    </Reference>
  </ItemGroup>
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: sean2000

79134974

Date: 2024-10-28 20:17:26
Score: 0.5
Natty:
Report link

Have a look at tables 3-6 and 3-7 in the Unicode spec (version 16):

Table 3-6. UTF-8 Bit Distribution
Scalar Value First Byte Second Byte Third Byte Fourth Byte
00000000 0xxxxxxx 0xxxxxxx
00000yyy yyxxxxxx 110yyyyy 10xxxxxx
zzzzyyyy yyxxxxxx 1110zzzz 10yyyyyy 10xxxxxx
000uuuuu zzzzyyyy yyxxxxxx 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx

Table 3-6 specifies the bit distribution for the UTF-8 encoding form, showing the ranges of Unicode scalar values corresponding to one-, two-, three-, and four-byte sequences.

Table 3-7. Well-Formed UTF-8 Byte Sequences
Code Points First Byte Second Byte Third Byte Fourth Byte
U+0000..U+007F 00..7F
U+0080..U+07FF C2..DF 80..BF
U+0800..U+0FFF E0 A0..BF 80..BF
U+1000..U+CFFF E1..EC 80..BF 80..BF
U+D000..U+D7FF ED 80..9F 80..BF
U+E000..U+FFFF EE..EF 80..BF 80..BF
U+10000..U+3FFFF F0 90..BF 80..BF 80..BF
U+40000..U+FFFFF F1..F3 80..BF 80..BF 80..BF
U+100000..U+10FFFF F4 80..8F 80..BF 80..BF

Table 3-7 lists all of the byte sequences that are well-formed in UTF-8. A range of byte values such as A0..BF indicates that any byte from A0 to BF (inclusive) is well-formed in that position. Any byte value outside of the ranges listed is ill-formed.

In Table 3-7, cases where a trailing byte range is not 80..BF are shown in bold italic to draw attention to them. These exceptions to the general pattern occur only in the second byte of a sequence.

As long as you stay within those limitations, I believe you should be fine. If you only use it to store binary data, that won't be displayed in text, you don't have to worry about noncharacters, control characters and just weird characters that can mess things up.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Filler text (0.5): 00000000
  • Low reputation (0.5):
Posted by: ximo

79134973

Date: 2024-10-28 20:17:26
Score: 3
Natty:
Report link

Update: if anyone has this issue sudo nano /etc/apt/sources.list Ensure these lines are included and not commented out (remove # if present): deb http://archive.ubuntu.com/ubuntu/ jammy universe deb http://archive.ubuntu.com/ubuntu/ jammy multiverse in my case: i installed the missing dependencies manually. Check for the availability of libavcodec58, libavformat58, and libavutil56:

apt-cache policy libavcodec58 libavformat58 libavutil56 at the end, it was the issue of the latest wine devel version, at this time its wine-devel (= 9.20~jammy-1), so maybe wait for wine devel 9.21? i dont know if it doesnt work because of my stupidity or its because of some bugs with wine devel itself

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: GD Gaming

79134972

Date: 2024-10-28 20:16:25
Score: 0.5
Natty:
Report link

As per ouroborus1's comment:

df.iloc[1:, df.columns.get_loc('num')] = 22
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: YGA

79134965

Date: 2024-10-28 20:15:25
Score: 1.5
Natty:
Report link

Here's the answer :

define( 'ICON_PATH', plugins_url( 'img\sh-logo.svg', __FILE__ ) );
define( 'BASE64_PLUGIN_ICON', base64_encode(wp_remote_retrieve_body(wp_remote_get(ICON_PATH))) );
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sam

79134964

Date: 2024-10-28 20:15:25
Score: 1
Natty:
Report link

A connection from another application through a DSN to pull data from a query within an MDB does NOT trigger an autoexec macro.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Bart McEndree

79134957

Date: 2024-10-28 20:12:24
Score: 1.5
Natty:
Report link

It seems like there is no solution for my issue? Except maybe assume a slow typing speed so that _kbhit() returns zero in between keypresses.

I'm still open for suggestions, but it seems I asked for too much and the Windows console input is just not well-defined when it comes to "escape sequences" (extended keys) and that some combinations are ambiguous. 🤷‍♂️

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: RobinLe

79134951

Date: 2024-10-28 20:09:23
Score: 5.5
Natty: 4.5
Report link

Have you fixed this issue? Cause I'm having the exact same one.

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed this issue?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mao Issac

79134943

Date: 2024-10-28 20:05:22
Score: 2
Natty:
Report link

According to the GATT Specification Supplement, Chap. 3.222 Temperature Measurement, the data type is medfloat32, which is defined in IEEE 11073-20601.

Here is a description of how to convert a float value: https://stackoverflow.com/a/60843099/8124605

For example, a value of 25.63℃ can be coded as

Exponent: 0xFE -> -2

Mantissa: 0x000A03 -> 2563

uint8_t ess_temperature[] = {0x00, 0xFE, 0x00, 0x0A, 0x03};
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Risto

79134939

Date: 2024-10-28 20:03:22
Score: 2.5
Natty:
Report link

i came across this article and i followed the steps

https://daviddrever.com/2018/04/microsoft-powerapps-updating-a-data-card-from-a-button/

Here is what i did:

Step1- in the OnVisible property of Screen1 i have this: Set(AmountVar,SharePointIntegration.Selected.Amount)

Step2- The Value property of DataCardValue3 i set to AmountVar (the new variable which i created in Step1)

Step3- The OnChange property of DataCardValue3 i have this: UpdateContext({AmountVar:3})

thats it

now when i change the amount it gets set to 3

Reasons:
  • Blacklisted phrase (1): this article
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: vivek m

79134929

Date: 2024-10-28 19:59:21
Score: 1
Natty:
Report link

I think you've an issue with the way you've define your UI scaling.

The best way is to set your canvas to scale with screen size and define a reference resolution according to the one in your editor/simulator. I also recommend to set the scale on match height only for a landscape game and width for portrait.

You can then set anchors to define where each element will try to place itself.

Find more information there : https://docs.unity3d.com/Packages/[email protected]/manual/HOWTO-UIMultiResolution.html

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Alexi Courieux

79134910

Date: 2024-10-28 19:55:20
Score: 2.5
Natty:
Report link

Typically, the timeout comes from trying to connect to the sql server. Does your connection string include all the required keywords? (For example, I have seen 'server' instead of 'host' and 'port', 'Initial Catalog' instead of 'Database') .

Also, this may help - SQL Server connection string in Appsettings.json + .net Core 3.1

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sri

79134898

Date: 2024-10-28 19:51:19
Score: 1.5
Natty:
Report link

I had the same problem and was able to fix it by removing all my source control accounts under Xcode -> Setting -> Accounts and adding them back.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Costea Bogdan

79134897

Date: 2024-10-28 19:51:19
Score: 0.5
Natty:
Report link

Is there any additional output when you position the caret on the fastforce call? If yes, that will probably tell you what the problem is.

But my guess is that there is none, and in that case the problem is usually that the fastforce call diverges and eventually runs out of memory and crashes. That is usually the cause of lines in Isabelle being printed in red like this. This can have a number of reasons: excessive backtracking, a simplifier loop, etc.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is there any addit
  • High reputation (-1):
Posted by: Manuel Eberl

79134896

Date: 2024-10-28 19:51:19
Score: 4
Natty: 5
Report link

Im working on some like that, I have two fields but I want to get options dynamically from the Keycloak API, I think that a custom SPI should to solve it but I don't know how can Implement the SPI.

Reasons:
  • Blacklisted phrase (0.5): how can I
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MrP4sten