79420548

Date: 2025-02-07 10:36:58
Score: 3
Natty:
Report link

Just an addition to wsaleem's answer, as I'm not allowed to comment.

Reinstalling with M-x elpy-rpc-reinstall-virtualenv helped in my case, most likely because the python version has changed and so has the path for python. In my case from 3.12 to 3.13.

Reasons:
  • Blacklisted phrase (1): not allowed to comment
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Clown77

79420528

Date: 2025-02-07 10:27:56
Score: 2
Natty:
Report link
  1. check your MongoDB URI
  2. console logs inside the connectDB function so that we can see that connecting successfully or not. Restart you server again and try in postman with the url http://localhost:4000/api/v1/register
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sarabjeet

79420526

Date: 2025-02-07 10:26:55
Score: 4.5
Natty:
Report link

this is not the answer to your challenge. And I hope that after 3 years my message will be seen.

Regarding your application, it seems that you have the problem that you want your application to be closed by swiping the application. And this is the opposite for us. We have bluetooth app. And when the program is swiped, Everything breaks, and we don't want that to happen, Like this is the case with you. And I want you to help me to make the app not close when I swipe to connect bluetooth. What have you done that the bluetooth connection does not close?

Please contact me here or on my email([email protected]). I'm really mad about the bluetooth running in the background thing.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): contact me
  • Blacklisted phrase (1): Please contact me
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Iman Ghasemi Arani

79420525

Date: 2025-02-07 10:26:55
Score: 0.5
Natty:
Report link

Despite what commenters have said in issue #2350, this phenomenon of Snakemake running the python code twice is a feature, not a bug, and it's not going to be "fixed". Even if the behaviour was changed for the simple -j1 case it will still manifest as soon as you allow parallel jobs or submit your jobs to a HPC cluster (this includes your fixed code, @antje-janosch!)

The actual bug in this code is on line 16. If you replace {tarfile} with "{tarfile}" (only on line 16, not line 12) in the original example you will find that it works, just by adding the two quotes.

The difference is this: {tarfile} means "a python set containing the single fixed string from the variable tarfile", whereas "{tarfile}" is a template string that will act as a placeholder for any filename. These are not the same!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @antje-janosch
  • Low reputation (0.5):
Posted by: Tim Booth

79420523

Date: 2025-02-07 10:26:53
Score: 6 🚩
Natty:
Report link

Unhandled Exception: NoSuchMethodError: The method '+' was called on null. i am getting same error in the code of background service code where i am storing the pedometer steps to the sqlite db on daily basis.

Reasons:
  • RegEx Blacklisted phrase (1): i am getting same error
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): i am getting same error
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29545517

79420518

Date: 2025-02-07 10:23:52
Score: 3
Natty:
Report link

linked list head is normally set to null since the initial list is empty. When an element is introduced to the list then the head is set to the new element ---python

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

79420517

Date: 2025-02-07 10:23:52
Score: 0.5
Natty:
Report link

Maybe I am missing something, but why dont you just use:

SELECT 
    MODEL,
    MAX(DATE)
FROM 
    MODEL_TABLE
GROUP BY MODEL

(Null-values are handled well, works fine with Sql-Server)

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

79420507

Date: 2025-02-07 10:21:51
Score: 0.5
Natty:
Report link

With the nearest neighbor method from scipy one can find the nearest vertex and then assign the color or other things to the sliced mesh.

from scipy.spatial import cKDTree

if hasattr(mesh.visual, 'vertex_colors') and mesh.visual.vertex_colors is not None:
        tree = cKDTree(mesh.vertices)
        _, indices = tree.query(cut_mesh.vertices)
        cut_mesh.visual.vertex_colors = mesh.visual.vertex_colors[indices]
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SGKlee

79420506

Date: 2025-02-07 10:21:51
Score: 1
Natty:
Report link

This is just replacing a pointer with another pointer. nix1 = nix2

That was a total thinking failure. What I actually wanted to test was something like that:

{
     Nix nix4(4, "Hello, I'm four");

     *nix1 = nix4;
}
qWarning() << "nix1: " << nix1->display(4);

And that works.

solved, actually with help from SGaist (qt.forum)

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

79420498

Date: 2025-02-07 10:18:51
Score: 1.5
Natty:
Report link

I had the same problem on Windows, also check that your connection is not defined as limited in your network settings.

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: Xavier Soh

79420493

Date: 2025-02-07 10:16:50
Score: 2
Natty:
Report link

I suspect that vm.setLoading(false) immediately executed if uiState.data is empty.

Replace

vm.setLoading(false)

on

if(uiState.data.isNotEmpty())
{
  vm.setLoading(false)
}

The example using LiveData for a view state and CircularProgressIndicator: https://github.com/kl-demo/mvvm-compose-hilt-example/blob/main/app/src/main/java/kldemo/mvvmcomposehiltexample/presentation/langs/ProgrammingLanguagesScreenScreen.kt#L66

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

79420487

Date: 2025-02-07 10:13:49
Score: 1.5
Natty:
Report link

I can suggest a few more plugins:

I'm sorry for not pointing to the exact one, but on my server I have all three and I have the "Pipeline script" and "Pipeline script from SCM" options you desire to see

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

79420481

Date: 2025-02-07 10:10:49
Score: 0.5
Natty:
Report link

use this properties:

spring.ssl.bundle.pem.mybundle.keystore.certificate=classpath:application.crt
spring.ssl.bundle.pem.mybundle.keystore.private-key=classpath:application.key

You can refer to spring official docs here : spring-ssl

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kush parsaniya

79420478

Date: 2025-02-07 10:09:49
Score: 3
Natty:
Report link

With Playwright it is not possible to save such JWTs in a separate file and then load them globally for all tests using a general instruction.

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

79420473

Date: 2025-02-07 10:08:48
Score: 1.5
Natty:
Report link
const obj = {}
obj.a = "hello";
obj.a.b = {};
obj.a.b = "hello";
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Altivo

79420472

Date: 2025-02-07 10:08:48
Score: 2.5
Natty:
Report link

In my case, restoring/deleting the package-lock.json file solved the problem.

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

79420469

Date: 2025-02-07 10:07:48
Score: 3
Natty:
Report link

The results from @shotor answer show otherwise , cluster mode performing better than non cluster mode as opposed to my findings in the question.

I cloned the provided github repo in the answer, ran the tests in cluster mode and in non cluster mode, I believe @shotor has interchanged the results for cluster mode and non clustered mode. I ran the tests with n = 100,000 and c = 1,000. Non cluster mode completed all tests in 4.5s at 22,379 req/s and served 99% of the requests in 53s while cluster mode completed all tests in 5.6s at 17,790 req/s and served 99% of the requests in 85s

Run Non cluster mode

non cluster mode

Performance Non Cluster Mode performance non cluster mode

Run Cluster Mode command to run cluster mode

Performance Cluster Mode performance cluster mode

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @shotor
  • User mentioned (0): @shotor
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: ariko stephen

79420466

Date: 2025-02-07 10:05:48
Score: 0.5
Natty:
Report link

No need to use Selenium, just a simple curl request in a shell will yield the result :

curl https://gallica.bnf.fr/services/ajax/notice/ark:/12148/cb42768809f/date

How did I found this ? Simply open the devtools of your browser, select the network tab and click on "Informations détaillées", a new GET entry will appear.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: iliak

79420462

Date: 2025-02-07 10:05:48
Score: 1
Natty:
Report link

At Travelogy India Private Limited, we are dedicated to curating extraordinary travel experiences. Established in 2010, we specialize in luxury train journeys, inbound & outbound travel services, and premium hospitality.

One of our flagship offerings is the world-renowned India palace on wheels, a luxury train that lets travelers explore Rajasthan’s royal heritage in unmatched elegance. From iconic destinations like Jaipur, Udaipur, Jaisalmer, and Agra to on-board luxury with lavish cabins, gourmet dining, and personalized service, we ensure a journey fit for royalty.

If you’re looking for an unforgettable, hassle-free luxury travel experience, Travelogy India is your perfect partner! Explore More: www.thepalaceonwheels.com

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

79420461

Date: 2025-02-07 10:05:48
Score: 0.5
Natty:
Report link

Implementing URL Sorting for Google Custom Search

This document explains how to implement sorting functionality for Google Custom Search URLs using JavaScript.

HTML Structure

<select id="selectsort" onchange="selectthesort()">
    <option value="">Sorted by relevance</option>
    <option value="&sort=date">Sort by date</option>
    <option value="&dateRestrict=d14&sort=date">Last two weeks by date</option>
</select>

JavaScript Implementation

1. Initialize Variables

var sortoptions;
var jsElm, jsElmIM; // Your search iframe elements

2. Select Change Handler

function selectthesort() {
    sortoptions = document.getElementById('selectsort').value;
    updateSearchUrls();
}

3. URL Update Function

function updateSearchUrls() {
    // Web Search URL
    jsElm.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&callback=hndlr" + sortoptions;

    // Image Search URL
    jsElmIM.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&searchType=image&callback=hndlrimages" + sortoptions;
}

4. Reloading the Search

function reloadSearch() {
    // Assuming you're using iframes for the search results
    document.getElementById('webSearchFrame').contentWindow.location.reload();
    document.getElementById('imageSearchFrame').contentWindow.location.reload();
}

Complete Example

var sortoptions;
var jsElm = document.getElementById('webSearchFrame');
var jsElmIM = document.getElementById('imageSearchFrame');

function selectthesort() {
    sortoptions = document.getElementById('selectsort').value;
    updateSearchUrls();
    reloadSearch();
}

function updateSearchUrls() {
    jsElm.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&callback=hndlr" + sortoptions;
    jsElmIM.src = "https://www.googleapis.com/customsearch/v1?key=key&cx=cx&start="+start+"&q="+query+"&searchType=image&callback=hndlrimages" + sortoptions;
}

function reloadSearch() {
    jsElm.contentWindow.location.reload();
    jsElmIM.contentWindow.location.reload();
}

Notes

  1. Replace key, cx, start, and query with your actual values
  2. Ensure your iframe elements have correct IDs
  3. Handle any potential URL encoding requirements
  4. Consider adding error handling for invalid selections
Reasons:
  • Blacklisted phrase (1): This document
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jasper Roque

79420459

Date: 2025-02-07 10:04:47
Score: 1
Natty:
Report link

try this one:

var ws = xlsx.utils.aoa_to_sheet([])

xlsx.utils.sheet_add_json(ws, [["TITLE HERE"]], {skipHeader: true})

xlsx.utils.sheet_add_json(ws, [{a: 1, b: 1}, {a: 2, b: 2}], {origin: 2})

const workbook = xlsx.utils.book_new()

xlsx.utils.book_append_sheet(workbook, ws, "LAPORAN PEMBELIAN")

let fileName = "purchase-invoice.xlsx"

xlsx.writeFile(workbook, fileName)

Reasons:
  • Whitelisted phrase (-1): try this
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: arz

79420457

Date: 2025-02-07 10:03:47
Score: 0.5
Natty:
Report link

Since the official methods I have seen so far seem inefficient for this part of the project, I used the following method to set two cookies to make the project work:

String cookieHeader = "ESPSESSIONID=" + sessionId + "; Path=/; Expires=" + expires + "; HttpOnly\r\n"
                  "Set-Cookie: UserRole=" + role + "; Path=/; Expires=" + expires;
response->addHeader("Set-Cookie", cookieHeader);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Amin Mashayekhan

79420452

Date: 2025-02-07 10:02:47
Score: 1.5
Natty:
Report link

I needed to add permissions:

PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.POST_NOTIFICATIONS);

now it works

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: filip_j

79420450

Date: 2025-02-07 10:01:46
Score: 0.5
Natty:
Report link

add this in your main layout


import { StatusBar } from "expo-status-bar";

  return (
      <Stack>
         <StatusBar />
           //  ...other stacks or components 
      </Stack>


Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: abdelrahman aboneda

79420449

Date: 2025-02-07 10:01:46
Score: 2
Natty:
Report link

You may have to select the Signing Account in Xcode.

Also add NSPhotoLibraryUsageDescription in info.plist.

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

79420448

Date: 2025-02-07 10:00:46
Score: 1.5
Natty:
Report link

I had the exact same issue and I was able to solve it by turning off the VPN on my test device. So if you are currently using a VPN connection, that might be one of the things to try.

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

79420447

Date: 2025-02-07 10:00:46
Score: 0.5
Natty:
Report link

I know this is super old but i just ran across this issue myself the other day, and as the other answer suggested, you cant call SetWindowsHookEx() from the DLLMain function or other threads.

BUT, thats because the DLL main function runs in its own thread, separate from the main thread. And thats relevant because apparently it seems that when you call SetWindowsHookEx(), as soon as the thread that you called that from, expires, then it automatically unhooks for some reason (and i couldn't find this documented anywhere on the internet).

So if you call SetWindowsHookEx() from any thread other than the main one of the target process (assuming you can do that) then theres always a possibility that your hook will be undone before the main process itself expires. And in this instance, once the DLLMain function returns, it terminates the thread and consequently removes the hook.

So to fix this i call the hook from a new thread, and then i suspend the thread indefinitely, which should mean the hook only gets removed when the process itself closes.

The fixed version of the code from the question could look something possibly like this

HHOOK hHook = NULL;
LRESULT CALLBACK KeyHit(int code, WPARAM wParam, LPARAM lParam){
    // replace with whatever logic you want to run in the target process when keyboard event is called
    cout << "keyboard event detected.\n";
    return CallNextHookEx(hHook, code, wParam, lParam);
}
void ThreadHookEvents() {
    DWORD thread_id = 0; // set this to the thread id of your main/hwnd thread
    HHOOK hHook = SetWindowsHookExA(WH_KEYBOARD, (HOOKPROC)KeyHit, 0, thread_id);
    // then pause the thread so the hook never expires
    SuspendThread(GetCurrentThread());
}
BOOL APIENTRY DllMain(HANDLE hModule, DWORD  ul_reason_for_call, LPVOID lpReserved){
    switch (ul_reason_for_call){
    case DLL_PROCESS_ATTACH:
        CreateThread(nullptr, 0, (LPTHREAD_START_ROUTINE)ThreadHookEvents, 0, 0, 0);
        break;
    }
    return TRUE;
}

As a bonus incase someone actually reads this, i put together another small function to get the thread ID of a window (not specifically the main one, if multiple) from the process, which you could just plug right into the above script for getting the thread_id

DWORD GetAWindowThreadID() {
    auto EnumWindowsProc = [](HWND hwnd, LPARAM lParam) -> BOOL {
        DWORD windowProcessId;
        DWORD thread_id = GetWindowThreadProcessId(hwnd, &windowProcessId);
        if (windowProcessId == GetCurrentProcessId())
            *(DWORD*)lParam = thread_id;
        return TRUE; 
    };

    DWORD target_thread = 0;
    EnumWindows(EnumWindowsProc, (LPARAM)&target_thread);
    return target_thread;
}
Reasons:
  • Blacklisted phrase (1): this document
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Connorjt

79420446

Date: 2025-02-07 10:00:46
Score: 2
Natty:
Report link

In my case , I have moved from Docker desktop to Rancher Desktop, and this command from @volkovs worked form

sudo ln -s $HOME/.rd/docker.sock /var/run/docker.sock
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @volkovs
  • Low reputation (0.5):
Posted by: Zaroual Mohamed

79420443

Date: 2025-02-07 09:59:46
Score: 2
Natty:
Report link

import thunk from "redux-thunk"; // Import redux-thunk not use this type use this type import { thunk } from "redux-thunk"; // Import redux-thunk

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

79420439

Date: 2025-02-07 09:58:46
Score: 2.5
Natty:
Report link

Small correction to the accepted answer:

The keychain data doesn't get deleted with the app uninstall. Be careful with that.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Yiğit Can Atılgan

79420437

Date: 2025-02-07 09:57:45
Score: 2.5
Natty:
Report link

Same request, but to be applied on an "icon list" widget in Elementor. I don't know if the code is different or the problem it's me :-) I've tryed to insert this code in the advanced -> personalized css tab but I cannot see any effetct. I need some hover effect because the icon list it's in a mega menu. Tnx in advance.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (0.5): I cannot
  • No code block (0.5):
  • Low reputation (1):
Posted by: user29545029

79420435

Date: 2025-02-07 09:57:45
Score: 0.5
Natty:
Report link

You should add attribute to res/values/*.xml:

<attr name=«foo» format=«string»/>

Use @BindingAdapter without the :app prefix:

@BindingAdapter("foo")
fun setFoo(view: ImageView, foo: String) {
    print(foo)
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dmortal

79420423

Date: 2025-02-07 09:54:44
Score: 4
Natty:
Report link

oh my god,how to resolve this problem on Eclipse 2025

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

79420421

Date: 2025-02-07 09:53:44
Score: 1.5
Natty:
Report link

I've been having the same problem and I found a workable solution.

Rather than using a managedApiConnection in the connections.json file, in your parameters.json file add this (as per your example):

"webApiAuthentication": {
  "type": "object",
  "value": {
    "type": "ActiveDirectoryOAuth",
    "tenant": "common",
    "audience": "@appsetting('graph-audience')",
    "clientId": "@appsetting('WORKFLOWAPP_AAD_CLIENTID')",
    "credentialType": "Secret",
    "secret": "@appsetting('WORKFLOWAPP_AAD_CLIENTSECRET')"
  }
}

This will be used during local development. For deployment to Azure, create a new file called parameters.azureenv.json and put this in it:

"webApiAuthentication": {
  "type": "object",
  "value": {
    "type": "ManagedServiceIdentity",
    "identity": "@appsetting('logicApp_identity')",
    "audience": "@appsetting('graph-audience')"
  }
}

Note that I've put all the settings into the appsettings; for local development these will be in the local.settings.json file, while the appsettings deployed to the Logic App Standard resource in Azure will be set using your ARM template (or Bicep / Terraform), and will be appropriate to the environment (dev/stage/prod, etc.).

In your Logic App workflow, the HTTP action needs to look like this:

"HTTP_-_GET_NAME": {
  "type": "Http",
  "inputs": {
    "uri": "@{parameters('url')}",
    "method": "GET",
    "headers": {
      "HeaderName": "@{parameters('HeaderValue')}"
    },
    "authentication": "@parameters('webApiAuthentication')"
  },
  "runtimeConfiguration": {
    "contentTransfer": {
      "transferMode": "Chunked"
    }
  }
}

Because the parameter webApiAuthentication is defined as an object, when using the local or deployed version the whole thing is substituted in, and it doesn't matter that they have different shapes.

In addition to the above, the mechanism for deploying this into Azure has to be considered, because the parameters.azureenv.json has to become parameters.json when deployed. Firstly, make sure that all the parameters files end up in the ZIP file used to deploy the Logic App Standard resource. Then, follow these steps in your Azure DevOps pipeline (or whatever other deployment tool you use):

Once all this is done, you should be able to run the Logic App locally, and the deployed version will also work, and the Logic App remains the same. I've seen some other solutions online that require changes to the code in the Logic App during deployment, but my solution avoids that complication.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (0.5):
Posted by: grahama

79420413

Date: 2025-02-07 09:50:43
Score: 0.5
Natty:
Report link

good article about timing

Once a value has been calculated, it is immutable, meaning it can no longer be changed.

Therefore I agree with previously mentioned that the order matters.

Also once I had a problem with nested let-clause -- it didn't want to update or it was updated too late - I don't know. Second case concerns link above of my answer. First possible case concerns global parameters of the query itself - described here - changing Confidentials helped me.

Open Power Query options,

Open confidentiality settings in Global or Current file section,

Check the last box saying something like "Always ignore"

In all other cases codes already given helped.

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

79420397

Date: 2025-02-07 09:43:39
Score: 7.5 🚩
Natty:
Report link

I'm new to debezium and could you share how to get that data and create visualization like that. Is there any other information to tracking debezium's activities. Sorry for that my English is not good at all.

Reasons:
  • Blacklisted phrase (1): Is there any
  • RegEx Blacklisted phrase (2.5): could you share how
  • RegEx Blacklisted phrase (1.5): I'm new
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: thaison

79420395

Date: 2025-02-07 09:43:39
Score: 4.5
Natty:
Report link

I believe it is a bug. I have created a GitHub issue: https://github.com/liquibase/liquibase/issues/6711

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Manuel K

79420393

Date: 2025-02-07 09:43:39
Score: 2
Natty:
Report link

For me, simply deleting the .python_version file which was created after I ran pyenv local 3.XX.XX resolved the error message.

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

79420359

Date: 2025-02-07 09:33:36
Score: 2.5
Natty:
Report link

Finally sorted it

"Debug: Inline Values" was set to Auto. Changed it to off and that cleared it.

I did try disabling showPythonInlineValues in the DebugPy and Notebook settings but that had no effect

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

79420358

Date: 2025-02-07 09:33:36
Score: 1.5
Natty:
Report link

this seems to work:

ncap2 -O -s 'lat=-lat;' ncfile.nc temp.nc 
ncks -O --msa -d lat,0, temp.nc output.nc
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: aaaaa

79420357

Date: 2025-02-07 09:32:36
Score: 1.5
Natty:
Report link

Because 32-bit OS means the cpu has 32-bit architecture, which means it has 32 bit registers. How does this relate to RAM?

Registers point to a particular RAM address during cpu operation. Think of it as the RAM addresss needs to be loaded in register. If you can load only 32 bits in register you cannot put more than 2^32 bytes of data in it (4GB)

Further explanation:

So for example in 8-bit architecture if register's current value is 11111111 it is pointing to 1111111 address in RAM. Each address in RAM points to some value of size 1 byte. Address that is composed of 8 binary digits can have 2^8 (256) combinations for unique name. Each combination can store(point to) the value of 1 byte therefore hold up to 256 bytes.

So in this case if we had 512 bytes in RAM, we just cannot represent it all because 8 bit (8 binary digit) register can point only to 256 different combinations which is 256 bytes.

Same applies for larger numbers. 32 bit = 2^32 combinations to be used as a address = 429496... bytes or short 4 GB

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Filler text (0.5): 11111111
  • Low reputation (1):
Posted by: BratZdenko

79420348

Date: 2025-02-07 09:30:36
Score: 0.5
Natty:
Report link

I found that Marshal.ReleaseComObject can release the Marshaled data, Modified the Managed C# code like below, now the out proc exe is closing after release.

object obj;
 int hr = Ole32.CoCreateInstance(Constants.MyImplClassGuid,
     IntPtr.Zero, Ole32.CLSCTX_LOCAL_SERVER, typeof(IMyInterface).GUID, out obj);
 if (hr < 0)
 {
     Marshal.ThrowExceptionForHR(hr);
 }

 var server = (IMyInterface)obj;
 string output = server.MyMethod();

 Marshal.ReleaseComObject(obj); 
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: srajeshnkl

79420333

Date: 2025-02-07 09:26:34
Score: 8.5 🚩
Natty: 5
Report link

user23292793 Hi. Can you show a working variant of the code for ADC interrupt mode on cmsis?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you show
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • User mentioned (1): user23292793
  • Low reputation (1):
Posted by: Ihar

79420329

Date: 2025-02-07 09:24:33
Score: 0.5
Natty:
Report link

I was suffering from this and I had to take some time but I figured it out and it is based on the documentation here.

https://tailwindcss.com/docs/colors#using-a-custom-palette

I will share my example of my css file with the new tailwind v4 and hopefully that might be of help to anyone so far. This is my first time ever commenting on StackOverflow so hope its good code lol.

@import "tailwindcss";

:root {
  --background: hsl(276 10% 95%);
  --foreground: hsl(276 5% 10%);
  --primary: hsl(276 100% 50%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(276 10% 70%);
  --secondary-foreground: hsl(0 0% 0%);
  --muted: hsl(238 10% 85%);
  --muted-foreground: hsl(276 5% 40%);
  --destructive: hsl(0 50% 50%);
  --destructive-foreground: hsl(276 5% 90%);
  --border: hsl(276 20% 55%);
  --input: hsl(276 20% 50%);
  --ring: hsl(276 100% 50%);
}

.dark {
  --background: hsl(276 10% 10%);
  --foreground: hsl(276 5% 90%);
  --primary: hsl(276 100% 50%);
  --primary-foreground: hsl(0 0% 100%);
  --secondary: hsl(276 10% 20%);
  --secondary-foreground: hsl(0 0% 100%);
  --muted: hsl(238 10% 25%);
  --muted-foreground: hsl(276 5% 60%);
  --destructive: hsl(0 50% 50%);
  --destructive-foreground: hsl(276 5% 90%);
  --border: hsl(276 20% 50%);
  --input: hsl(276 20% 50%);
  --ring: hsl(276 100% 50%);
}

@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);
}

Essentially you just declare values in root and .dark as in normal css and then tag them with --color- . This --color- is necessary for tailwind so you just use colors like any other color thats part of tailwind. I think thats the case. It works as expected. I do not know what that inline does in there? Would love to see a response to that if anyone knows.

Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): StackOverflow
  • Blacklisted phrase (1): anyone knows
  • Whitelisted phrase (-2): I figured it out
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Rei Koka

79420325

Date: 2025-02-07 09:22:32
Score: 0.5
Natty:
Report link

Definition of Information Retrieval (IR) Information Retrieval (IR) is the process of finding and retrieving information relevant to a user's query from a collection of data, such as documents, web pages, databases, or multimedia files. Goals of IR The primary goals of IR are to:

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

79420320

Date: 2025-02-07 09:20:32
Score: 1
Natty:
Report link

In my case, the index.html simply had no extra css file, only inline styles. Adding a css file made this warning go away.

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

79420311

Date: 2025-02-07 09:18:31
Score: 4
Natty: 5
Report link

Perfect solution! Thank you. This was causing me great mental trauma.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raymond Stevens

79420300

Date: 2025-02-07 09:11:29
Score: 0.5
Natty:
Report link

Stepped progress bar with android compose

My requirement was slightly different from the actual question so i have update the code based on answers from other folks.

Thank You everyone for the help, here is the updated code

@Composable
fun StepsProgressBar(modifier: Modifier = Modifier, numberOfSteps: Int, currentStep: Int, color: Color) {
    Row(
        modifier = modifier,
        verticalAlignment = Alignment.CenterVertically
    ) {
        for (step in 0..numberOfSteps) {
            Step(
                modifier = Modifier.weight(1F),
                isCompete = step < currentStep,
                isLast = step == numberOfSteps,
                isPending = currentStep - step == 1,
                stepColor = color
            )
        }
    }
}

@Composable
fun Step(modifier: Modifier = Modifier, isCompete: Boolean, isLast: Boolean, isPending: Boolean, stepColor: Color) {
    val color: Color = if (isCompete) stepColor else colorResource(id = R.color.Gray300)
    val sColor: Color = if (!isPending && isCompete) stepColor else colorResource(id = R.color.Gray300)

    Box(modifier = modifier) {
        if (!isLast) {
            //Line
            HorizontalDivider(
                modifier = Modifier.align(Alignment.Center),
                color = color,
                thickness = 4.dp
            )
        }
        //Circle
        Canvas(modifier = Modifier
            .size(12.dp)
            .align(Alignment.CenterStart),
            onDraw = {
                drawCircle(color = color)
            }
        )
    }
    if (!isLast) {
        Box(modifier = modifier) {

            //Line
            HorizontalDivider(
                modifier = Modifier.align(Alignment.CenterEnd).background(
                    Brush.horizontalGradient(
                        startX = 0f,
                        endX = 25f,
                    colors = listOf(
                        color,
                        sColor
                    )
                )),
                color = Color.Transparent,
                thickness = 4.dp
            )
        }
    }
}

For @Preview() use like this

StepsProgressBar(modifier = Modifier.fillMaxWidth(), numberOfSteps = 5, currentStep = 3, color = Color.Red)

In case if you want to use it in XML based UI

<androidx.compose.ui.platform.ComposeView
            android:id="@+id/progress_view"
            android:layout_width="match_parent"
            android:layout_height="12dp"/>

findViewById<ComposeView>(R.id.progress_view).setContent {
MaterialTheme {
                    Surface {
                        StepsProgressBar(
                            modifier = Modifier.fillMaxWidth(),
                            numberOfSteps = 5,
                            currentStep = 3
                            ),
                            color = colorResource(
                                id = R.color.Primary
                        )
                    }
                }
}

Output:

enter image description here

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Preview
  • Low reputation (0.5):
Posted by: MadLeo

79420299

Date: 2025-02-07 09:11:29
Score: 1.5
Natty:
Report link

I found that the Tile Scale matters when printing poster-wise from Adobe. Firstly work out what page size it thinks it's printing (in my version this is under Document Properties).

If this is A3 then you would think that setting the Tile Scale to 50% would mean that you get two sheets of A4? Not quite. You have to factor in the Overlap (in inches) and possibly the page margin (which applies to the A4 sheet in this case, not the A3) - so - by trial and error it turns out the scaling that works is 48%.

To make things worse, if you press enter after giving it a new scale, it starts printing straight away, without showing you on the print dialogue what it is actually going to print. Grrrr...

However, you can get it to show you by changing the print from Portrait to Landscape or vice versa (It doesn't matter which, as the print dialogue isn't taking any notice of that). Hmmm....

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Arthur H

79420294

Date: 2025-02-07 09:09:28
Score: 0.5
Natty:
Report link

The problem seems to occur when you use the same mailaddress in To field and in Bcc field.

If you filter out at forehand which mailaddress is in To and in Bcc and then remove it in 'To', it should work.

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

79420289

Date: 2025-02-07 09:06:26
Score: 6.5
Natty: 7
Report link

I want to ask something else... It is not the data that I label as a class, some of the attributes I use are ordinal (1-5 Likert scale) and I want to classify in Weka, I do not want to leave this data numerical or nominal, but how can I use it as ordinal?

Reasons:
  • Blacklisted phrase (0.5): how can I
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ysmn

79420288

Date: 2025-02-07 09:06:26
Score: 3
Natty:
Report link

Having your online account disabled can feel frustrating and scary. Understanding why it happened and knowing what to do next is crucial. Whether it's on social media platforms or other online services, recovering your account is possible. reach her [email protected] and whatsapp:+1 712 759 4675

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

79420284

Date: 2025-02-07 09:06:26
Score: 1
Natty:
Report link

Killing all Dart Process using below command will fix this issue

killall -9 dart
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Shakila

79420283

Date: 2025-02-07 09:05:26
Score: 3
Natty:
Report link

Nowadays you can change paste settings in Tools -> Advanced Settings -> Editor -> «When pasting a line copied with no selection:»

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

79420282

Date: 2025-02-07 09:05:26
Score: 3
Natty:
Report link

I think as separate to another tables for management users of 2 types. Because, that's not good "customer will have a lot of null fields" for optimize database. I hope this can help you. Regards.

Reasons:
  • Blacklisted phrase (1): Regards
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: stack ninja

79420277

Date: 2025-02-07 09:03:25
Score: 3
Natty:
Report link

The regex for the $contentDisposition and $boundaryMatches where incorrect. Somehow the regex changed between versions.

It works now.

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

79420269

Date: 2025-02-07 09:00:25
Score: 1
Natty:
Report link

The answer provided by @3CxEZiVlQ is great. My project is not using a C++20 capable compiler but I was able to modify the code to work with an older compiler. For anybody else stuck with an older C++ compiler this is the code I used:

template <typename T>
struct fmt::formatter<T, std::enable_if_t<std::is_base_of<google::protobuf::Message, T>::value, char>>
    : fmt::formatter<string>
{
    auto format(const T& message, format_context& ctx) const
    {
        auto result = fmt::format("{}", message.DebugString());
        return fmt::formatter<std::string>::format(result, ctx);
    }
};
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @3CxEZiVlQ
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Glenn Coombs

79420263

Date: 2025-02-07 08:59:24
Score: 3
Natty:
Report link

You are eprobably using NO for standard locks, use NC for Maglock as it needs constant power supply. It will open once power supply is cut short

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

79420261

Date: 2025-02-07 08:58:24
Score: 2.5
Natty:
Report link

Probably your scripts/auth.js file is not in your public folder.

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

79420246

Date: 2025-02-07 08:52:23
Score: 2
Natty:
Report link

Started experiencing this issues out of the sudden. Running on MacOS 15.3 ( (24D60) and XCode Version 16.2 (16C5032a). In my case !even before doing anything with my Keychain, I just closed the IDE, XCode and restarted the Mac. After that I could build the ios from flutter again.

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

79420245

Date: 2025-02-07 08:51:23
Score: 2
Natty:
Report link

you can access the order id in the thank you page.

  const data = useApi("purchase.thank-you.block.render");
  const orderId = data?.orderConfirmation?.current?.order?.id;
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Agustin Mouratoglou

79420239

Date: 2025-02-07 08:50:22
Score: 1
Natty:
Report link

What am I missing?

I don't know – is there an error here that you're trying to solve? What you're seeing is a warning that's saying, well, exactly what it's saying, that projects these days should use PEP 517 builds.

Why would pysmt-install use the deprecated setup.py?

Because that's what it's written to do (1, 2).

There's a whole bunch of grody patching going on in those installers anyway, and looks like those "sub-packages" just haven't been updated to use modern build methods.

Reasons:
  • RegEx Blacklisted phrase (1.5): solve?
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What am I
  • High reputation (-2):
Posted by: AKX

79420235

Date: 2025-02-07 08:48:22
Score: 2
Natty:
Report link

VictoriaMetrics querying API could return only one value per time series, so you can't have highest temperature and its derivative within one query. It should be two separate queries.

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

79420229

Date: 2025-02-07 08:45:21
Score: 1
Natty:
Report link

I reccomend using tksvg instead

   `svg_imag = tksvg.SvgImage(file="test.svg")`
   `labelx = ctk.CTkLabel(root_frame, image=svg_imag, text='')`
   `labelx.grid(row=0, column=0, padx=5, pady=5)`

Note that if the root is using grid selection, .pack() would not work

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

79420227

Date: 2025-02-07 08:44:21
Score: 2
Natty:
Report link

I have found the issue. The issue was I was creating an instance of the Focusable class. Without remember scope. So the class was rerendering resulting is loosing focus.

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

79420214

Date: 2025-02-07 08:39:19
Score: 1.5
Natty:
Report link

Is my understanding of the JLS / JMM correct in that the program above is allowed to not halt? If no, where is my mistake?

As far as I understand, that is correct.
The reason is that the JMM lacks requirements that volatile writes should become visible in another threads in some finite amount of time.

Here is how such requirements expressed in C++:

18 An implementation should ensure that the last value (in modification order) assigned by an atomic or synchronization operation will become visible to all other threads in a finite period of time.

11 Recommended practice: The implementation should make atomic stores visible to atomic loads, and atomic loads should observe atomic stores, within a reasonable amount of time.

It would be nice to add something like that to the JMM as well.


If my understanding is correct, is there some combination of circumstances (CPU architecture, JDK build, JVM arguments, ...) where the program given above, or a variant of it (as long as flag is volatile) does not halt on a real JVM?

I haven't heard about anything like that.

For any "serious" JVM (e.g. HotSpot, OpenJ9, GraalVM) such behavior IMO would be a bug, even if the math in the JMM permits that.

BTW strictly speaking a JVM where all volatile writes are never visible to other threads meets the JMM spec.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29544191

79420208

Date: 2025-02-07 08:35:18
Score: 4
Natty:
Report link

Using the same directive in the Environment Varaible work like a sharm:

enter image description here

Hope helps.

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

79420197

Date: 2025-02-07 08:30:17
Score: 0.5
Natty:
Report link

You can use an ETL tool like Tapdata Go to Tapdata to support real-time data replication with sub-second latency. It automatically creates collections in MongoDB and maintains the schema without manual intervention, all through an easy drag-and-drop mechanism.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: umer

79420189

Date: 2025-02-07 08:28:16
Score: 3.5
Natty:
Report link

I threw away my "PHP > Servers" in "Settings" for a reset.

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

79420187

Date: 2025-02-07 08:27:16
Score: 0.5
Natty:
Report link

The issue that I see is with the space and the + in the first group, i.e. the minimum capture requirement in the first of two optional groups.

This is why the first group, even if it is lazy, can and will to capture the Com: 123 at the beginning of the line.

The first capture group ( .+?)?:

The second capture group ( Com:.*)?:

This is why your pattern reads like ^( .+?)( Com:.*)?$.

When Com: 123 is at the beginning of the line, the first group will attempt to grab the first two characters, and ., which are its minimum requirement. This is the laziest it can get. It does not have an option to try to match an empty string. After matching the minimum C there is only om: 123 left. This no longer matches the second group, so the first lazy group has to continue munching away all the way to the end $.

The "super lazy" solution by @Guillaume Outters is elegant and perfect, because it allows you to keep the requirement for a space followed by one character as the minimum match for the first group.

However, to demonstrate the space-plus issue (i.e. the minimum requirement for first of two optional patterns) with the pattern you had, Here is a solution that would get you close:

^(.*?)?( Com:.*)?$

You would remove the space from the first group, because the period . will capture spaces as well. Also, you would want to change the .+ to .* so that the lazy does not have to capture anything. This way, because the first group capture is lazy and optional with no minimum capture requirement, when it sees a Com:123 ahead, it will stop right there and capture nothing, capture an empty string. And, more importantly it will not consume the first space and another character, allowing the second group to capture the entire Com:123.

There is a problem with this solution though. Although it captures the space in front of the characters at the beginning of both captured groups, it will also capture any string that does not have a space at the beginning of the line. This can definitely be a problem.

Link: https://regex101.com/r/nISB75/1

This is why the solution by @Guillaume Outters is an the perfect solution to guarantee the desired outcome.

For comparison, @Guillaume Outters solution ^( .+?)??( Com:.*)?$ with additional test strings: https://regex101.com/r/MobsDN/2

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Guillaume
  • User mentioned (0): @Guillaume
  • User mentioned (0): @Guillaume
  • Low reputation (0.5):
Posted by: rich neadle

79420180

Date: 2025-02-07 08:26:14
Score: 6 🚩
Natty:
Report link

I have had the same issue but my problem is that I dont want to start the file I want to open it in VsCode itself what should I do, as I am getting an error $ code chapter1.txt bash: code: command not found

Reasons:
  • Blacklisted phrase (2): what should I do
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1): I am getting an error
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: parihar anjali

79420179

Date: 2025-02-07 08:25:13
Score: 1.5
Natty:
Report link

I actually figured it out, I had inputed the images as RGB when they were actually greyscale. I fixed this and the code is working now.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eve

79420170

Date: 2025-02-07 08:23:12
Score: 3
Natty:
Report link

The accepted awk answer works on AIX ksh. But I use it with very big (120G) files and it takes 30 minutes to split the file.

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

79420166

Date: 2025-02-07 08:21:12
Score: 1.5
Natty:
Report link

Try running with parameters:

dbt run --project-dir /path/you_project_dir --profiles-dir /path/you_profile_dir
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alexei91482

79420165

Date: 2025-02-07 08:20:12
Score: 2.5
Natty:
Report link

You can use repeat property in Text style.

Take a look at https://stackoverflow.com/a/79420050/12879646

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mehdi Mollaei

79420164

Date: 2025-02-07 08:20:11
Score: 5
Natty: 6.5
Report link

Did you fing the solution? i need to fix the same issues

Reasons:
  • Blacklisted phrase (0.5): i need
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Lals

79420158

Date: 2025-02-07 08:18:11
Score: 2
Natty:
Report link

Based on the comments given (thanks a lot!) I finally solved it this way:

<div class="input-group p-0 d-flex justify-content-end flex-nowrap">
Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: soyxan

79420148

Date: 2025-02-07 08:13:09
Score: 2.5
Natty:
Report link

Everything was configured correctly. I just had to wait for a couple of days for the Google servers to update, I guess. Google support answered me today after more than one week, saying that they needed to investigate more the issue...so I told them I already solved it.

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

79420142

Date: 2025-02-07 08:11:09
Score: 3
Natty:
Report link

Since Symfony 6.3, the correct way is using #[MapRequestPayload].

Read more here

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

79420130

Date: 2025-02-07 08:08:08
Score: 1.5
Natty:
Report link

Using GraphQl is the way to go!

To properly answer the question. Using references is the key:

$em->getReference(Entity::class, 1);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: yhu420

79420121

Date: 2025-02-07 08:02:07
Score: 5
Natty:
Report link

I'm having the same experience, and I suspect it may be a regional issue. Have you tried using a VPN and then restart your CodeGPT/VSCode to see if that resolves the problem?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • RegEx Blacklisted phrase (1.5): resolves the problem?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: m.musni

79420116

Date: 2025-02-07 08:00:06
Score: 0.5
Natty:
Report link

I guess you will also have to look at Cache-Control header of the page and its values, this can help vercel to return the page directly from edge network only, you might have values public, immutable, and may be the reason for revalidation not working.

I'm not 100% sure but once try changing revalidation time to 2 minutes and Cache-Control headers to never cache anything and try. also can read more here - https://vercel.com/docs/edge-network/caching

Reasons:
  • No code block (0.5):
Posted by: Ranu Vijay

79420114

Date: 2025-02-07 07:59:06
Score: 1.5
Natty:
Report link

In Chrome version 92, this flag has worked for me: chrome.exe --disable-features=OverscrollHistoryNavigation

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhanad Znbrakji

79420105

Date: 2025-02-07 07:56:05
Score: 2
Natty:
Report link

The Problem was the serial to ethernet server(brainbox) the power supply was connected to had the serial ports set to telnet protocol type, while looking for a solution on the brainbox webside:

https://www.brainboxes.com/product/ethernet-to-serial/db9/es-701

I checked their debugging video for c# and there they set the serial ports protocol to Raw TCP, after this setting was changed I was able to get the response from the power supply.

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

79420102

Date: 2025-02-07 07:55:04
Score: 2
Natty:
Report link

If you are Using android client ID or the Web client ID. If using Android Client ID you will get API exception 10, If Using Web Client Id you will get API exception 8.

You just need to go to to your credentials screen and download the json file. Then just rename it to "google-services" and put that under android/app/.

It will remove the API Exception Issue.

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

79420101

Date: 2025-02-07 07:55:03
Score: 9 🚩
Natty: 4.5
Report link

sorry to bother you, has your issue been resolved? I am facing the same problem.

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

79420099

Date: 2025-02-07 07:53:02
Score: 1
Natty:
Report link

If you are running on Python version 3.13, downgrading it to Python 3.12 might solve the problem. According to my testing, both trying to replicate the issue and fix it. I found out that there is a Deprecated API in Python 3.13 as shown below,

scient/calc_expr.c(17866): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call

While for my case it was a problem with the "Scient" Package, it might not necessarily be the same. Regardless, in my case, Py_UNICODE is deprecated in Python 3.13, causing warnings.

In order to fix this, I reccomend downgrading to Python 3.12. And installing it in a virtual environment.

It is important to note that, I tested on Python 3.11, and due to unknown reason. I was not able to make it work.

Cheers,

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammad Caessar Cizer

79420097

Date: 2025-02-07 07:51:02
Score: 1.5
Natty:
Report link

Don't worry, just paste this on your terminal, and you're good to go!

SET PATH=C:\Program Files\Nodejs;%PATH%

Actual credits: @ammarsecurity âš¡

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

79420080

Date: 2025-02-07 07:45:59
Score: 6.5 🚩
Natty:
Report link
I'm trying to do a manual signing with dnssec-signzone with this 
command:
dnssec-signzone -t -N INCREMENT -o gentil.cat -f 
/etc/bind/gentil.cat.signed 
gentil.cat Kgentil.cat.+013+17694.key Kgentil.cat.+013+06817.key

This is my zone archive (it's named gentil.cat.hosts and it is in 
/etc/bind)
Screenshot of the archive:
https://i.sstatic.net/lQUPTvy9.png

And then the result of the command is this:
https://i.sstatic.net/f55JRMh6.png

Here is a screenshot with all de archives I have in /etc/bind
https://i.sstatic.net/ziubA75n.png
Note: "signat" is "signed" in catalan

Please can you help me?
Thanks
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can you help me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Adrià Gentil Solà

79420077

Date: 2025-02-07 07:43:58
Score: 1
Natty:
Report link

For Standalone Components:

import { CommonModule } from '@angular/common';
@Component({
templateUrl: './mycomponent.component.html',
styleUrls: ['./mycomponent.component.scss'],
standalone: true,
imports: [CommonModule, ... ]
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leon1246

79420064

Date: 2025-02-07 07:40:58
Score: 1.5
Natty:
Report link

I finally found out the solution myself. The problem was that I had to extend BasicDataSourceFactory from org.apache.tomcat.dbcp.dbcp2 insted of extending BasicDataSourceFactory from org.apache.commons.dbcp2. Apparently, the both classes hace a few differences and do not manage authentication the same way. Hope it helps.

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: avitoria

79420063

Date: 2025-02-07 07:39:56
Score: 9 🚩
Natty: 5.5
Report link

I am also facing this error since last month. did you happen to find a fix for this?

Reasons:
  • Blacklisted phrase (1): also facing this
  • RegEx Blacklisted phrase (1.5): fix for this?
  • RegEx Blacklisted phrase (1): I am also facing this error
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Temporary Juxtaposition

79420061

Date: 2025-02-07 07:37:55
Score: 3.5
Natty:
Report link

Can you provide some background, why you want to have a result like this?

Actually if you want Dummy.name + List the most easiest way is to select the Dummyentities:

// Repo is a SpringData repository interface
Set<Dummy> result = repo.findAll();
final Map<String, List<SubEntity>> collect = result.stream().collect(Collectors.toMap(Dummy::getName, Dummy::getSubs));

In case you want to use criteria queries for filtering by subentity-property, just add this to the findAll, might look like this:

 // Not really tested...            
 Set<Dummy> result = repo.findAll( (root, query, cb) -> 
    query.where(cb.equal(root.get(Dummy_.SUBS).get(Sub_.SOMEPROP), cb.literal("some-value"));

final Map<String, List<SubEntity>> collect = result.stream().collect(Collectors.toMap(Dummy::getName, Dummy::getSubs));

Alternatively use entity-manager + create query etc. to const

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide some
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Peter Vigier

79420059

Date: 2025-02-07 07:37:55
Score: 1.5
Natty:
Report link

Just to vent my frustration - simple things like these make me hate all this Microsoft databinding. Why can't life just be easy by default, like checkbox being true of false, 1 or 0. If someone wants to complicate things with implementing tristates etc. that should be the extra option, not the default option.

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

79420045

Date: 2025-02-07 07:29:54
Score: 2.5
Natty:
Report link

Obviously, It is not a good idea to store the images in the room db, as it size increase with it's quality and the cursor limit of room db is 2mb so it could cause runtime exceptions. Rather you should save the image in cache or files Directory and save it's path as a String in the Room Database

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

79420040

Date: 2025-02-07 07:25:53
Score: 1.5
Natty:
Report link

why can't you use @Environment(.presentationMode) var presentationMode this it's easy to navigate using Environment variables

not much complex and just need to add one variable rather than passing it to all along

this is the very simple example to use @Environment variable to navigate

struct HomeView: View {
    var body: some View {
        NavigationStack {
            NavigationLink("Go to Detail", destination: DetailView())
        }
    }
}

struct DetailView: View {
    @Environment(\.presentationMode) var presentationMode
    
    var body: some View {
        Button("Go Back") {
            presentationMode.wrappedValue.dismiss()
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Environment
  • Starts with a question (0.5): why can't you use
  • Low reputation (1):
Posted by: HeWhoRemains

79420037

Date: 2025-02-07 07:24:52
Score: 4
Natty: 5
Report link

I am currently in the same boat with setting up egress gateway using mTLS at origination. In our case we want to terminate ssl connection at gateway and then establish new mTLS connection via destination rule and following the doc doesn’t seems to be working. Currently setting this in GKE ASM managed and using gateway api for gateway deployment. When test http://externalservixe.com errors out 503 server unavailable error. Openssl vtls1.3 failed to verify certificate. Any tips or steps is appreciated. Istio documentation is very confusing. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any tips
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ash

79420033

Date: 2025-02-07 07:23:51
Score: 3
Natty:
Report link

I agree with Eric Aya and SOuser, also in addition you will need to close your browser and open another one and then re-enter Kaggle.

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

79420029

Date: 2025-02-07 07:22:51
Score: 2.5
Natty:
Report link

Just add #import <WebKit/WebKit.h> before #import "Runner-Swift.h" in your Objc file. :)

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

79420024

Date: 2025-02-07 07:19:51
Score: 2
Natty:
Report link

The reason Entity Framework Core (EF Core) scaffolds your model with null for string properties, even though the database columns are NOT NULL, is because in C#, strings are reference types, and EF Core doesn’t assume a default value unless explicitly told to. This means even if your database enforces NOT NULL, EF Core won't automatically assign an empty string (string.Empty); it just ensures the column can't be null when stored in the database.

This happens because

  1. C# Default Behavior: Since strings are reference types, they default to null unless initialized explicitly.

  2. EF Core Doesn't Assume Defaults: It only respects the database constraint but doesn’t enforce a default value in your C# model.

  3. Flexibility for Developers: Some prefer handling default values in their application logic instead of having EF enforce it.

How to Fix This?

If you don’t want null values in your C# objects, here are a few ways to handle it:

  1. Use Default Initialization in the Model

    Modify your model to initialize string properties with string.Empty:

    public class StudyInvitation { public int Id { get; set; } public string Name { get; set; } = string.Empty; public string Subject { get; set; } = string.Empty; public string Body { get; set; } = string.Empty; }

    This ensures the properties are never null in your C# objects.

  2. Use a Constructor

Another approach is to initialize them inside a constructor:

public class StudyInvitation
{
    public int Id { get; set; }
    public string Name { get; set; }
    public string Subject { get; set; }
    public string Body { get; set; }

    public StudyInvitation()
    {
        Name = string.Empty;
        Subject = string.Empty;
        Body = string.Empty;
    }
}
  1. Configure EF Core to Use Default Values

You can also configure EF Core using Fluent API inside your DbContext class:

protected override void OnModelCreating(ModelBuilder modelBuilder)
{
    modelBuilder.Entity<StudyInvitation>()
        .Property(e => e.Name)
        .IsRequired()
        .HasDefaultValue(string.Empty);

    modelBuilder.Entity<StudyInvitation>()
        .Property(e => e.Subject)
        .IsRequired()
        .HasDefaultValue(string.Empty);

    modelBuilder.Entity<StudyInvitation>()
        .Property(e => e.Body)
        .IsRequired()
        .HasDefaultValue(string.Empty);
}

This ensures that even if you forget to initialize these properties, the database will automatically use an empty string.

Which One Should You Use?

If you want to prevent null in your C# code, go with Option 1 (Default Initialization) or Option 2 (Constructor).

If you want to enforce it at the database level too, use Option 3 (Fluent API).
Reasons:
  • RegEx Blacklisted phrase (1.5): How to Fix This?
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
Posted by: BSG