79176387

Date: 2024-11-11 04:27:47
Score: 1.5
Natty:
Report link

In C++, you cannot change the value of a constant variable through pointers or any method because the const qualifier enforces immutability, preventing any modifications to the variable's value.

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

79176385

Date: 2024-11-11 04:27:45
Score: 6 🚩
Natty:
Report link

Auto build is not applicable for Rider on C# projects. When build the solution, all build errors will be listed in the "Build tool window". Most build errors would be detected by Roslyn on editing stage, in "Problem tool window".

Could you provide a usecase in C# programming?

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you provide
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: LuckyBricks

79176382

Date: 2024-11-11 04:26:43
Score: 6 🚩
Natty: 5.5
Report link

now 11/10/2024 and this example not fixed. I got the same error : .cpp(112,22): warning C4996: 'ID2D1Factory::GetDesktopDpi': Deprecated. Use DisplayInformation::LogicalDpi for Windows Store Apps or GetDpiForWindow for desktop apps. // m_pD2DFactory->GetDesktopDpi(&dpiX, &dpiY); Using the recommended solution,AND ADD THE #pragma comment(lib, "d2d1.lib")

it did work no error but got another error: 1) winbase.h(9258,11): error C2061

1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winbase.h(9258,11): error C2061: syntax error: identifier 'FILE_INFO_BY_HANDLE_CLASS' 1>(compiling source file 'SimpleDirect2dApplication.cpp')

THAT IN THE WINBASE: how THE WINBAS has error

  1. only this include and nothing else for D2D? #include "SimpleDirect2dApplication.h" Can you explain why no d2d directives or any others, and program works? {is that means vs2022 has all the reference autmatically referenced?]

  2. that my first time to look at D2D, while I did before spent great time on GDI+. D2D seems from 2 days reading another mapping for GDI flow of commands, but in more wordy with some additions and wordy. The use of COM, like CoUninitialize(); is that means the wind32 as we used with GDI+[win32] changed to COM structures?

4)I started with: in the first day: and it seems so complicated for no obvious benefits or reasons. https://github.com/microsoft/Windows-classic-samples/tree/main/Samples/Win7Samples/begin/LearnWin32/OpenDialogBox [enter image description here][1] Here I looked at the Direct2Dcircle, D2Dclock, Draw circle. They all not build: error 1>LINK : fatal error LNK1327: failure during running mt.exe Using Insights rebuild give the last line as c:...\repose\Direcct2DCircle\basewin.h What is that problem? All samples failed on winbas mt.exe and --.manifist did not load and used notpad to copy and re-load to directory

next day I know there always different places look, which I went to the D2D pages with the above program errors. 5) The 2 groups of examples totally different, the one under D2D ahs more clearer and can integrate with GDI+ as seen in example for GDI however, the wWinMain and Win proc not straight forward? Why this convoluted process in the code structure/ [1]: https://i.sstatic.net/TMhuqM8J.png Many question, but that microsoft for us

Thank you elwolv

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (2.5): Can you explain
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: elwolv

79176381

Date: 2024-11-11 04:26:42
Score: 3
Natty:
Report link

This can be done.. You need to click the submit button, after this you will get options to delete the permissions.I have done the same

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

79176369

Date: 2024-11-11 04:20:41
Score: 1.5
Natty:
Report link

Testing uses different time instances than runtime. You should use things like this:

clock::create_for_testing(ctx);

test.take_shared<Clock>();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hipo potamus

79176360

Date: 2024-11-11 04:17:40
Score: 1
Natty:
Report link

This worked for me: uninstall numpy >=2

  1. pip uninstall numpy
  2. pip install numpy==1.25.1
Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohammad Bilal Niazi

79176355

Date: 2024-11-11 04:14:40
Score: 2
Natty:
Report link

Got it. Problem was with the name of saved .jpg files. From 11:50:45.jpg to 11-50-45.jpg did the trick.

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

79176346

Date: 2024-11-11 04:08:39
Score: 3
Natty:
Report link

Yes, it does.

This has been confirmed by nginx’s Konstantin Pavlov: https://github.com/nginxinc/docker-nginx/issues/540#issuecomment-824651057

For best performance, compile two binaries and swap them for each purpose.

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

79176345

Date: 2024-11-11 04:07:38
Score: 3
Natty:
Report link

I'm having this problem No solution found yet

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 大大只植物

79176342

Date: 2024-11-11 04:04:38
Score: 1.5
Natty:
Report link

Which webhook is normally used to detect payment status success? I've read some conflicting advice where some say to detect at checkout.session.completed, while I read that payment is not 100% confirmed as success at checkout.session.completed, and to use payment.intent.success instead. I will need to update the user's wallet balance upon success so it has to be 100%.

I'd recommend checking this guide on checking the payment outcome made on Checkout Session. To put it simply, you will check the payment_status property in the Checkout Session in any checkout.session.* event including both synchronous and asynchronous payment methods.

After topping up and Stripe routes to the success url, ideally the user will then be routed to a payment confirmation page on my app. How can I get details about the payment in this case? I read that it's possible to add a query parameter in the success url that has the session id, but it doesn't seem like a safe choice as the user can change the url if they wanted to. I was wondering what the normal way would be?

The query parameter will only contain the Checkout Session ID (cs_xxx) which your system should retrieve information that you're looking for. Alternatively, you can use the checkout.session.* event to check the payment information that suggested in the guide in the previous question.

Reasons:
  • Blacklisted phrase (1): this guide
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (2): was wondering
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Which we
Posted by: yuting

79176338

Date: 2024-11-11 04:02:38
Score: 1
Natty:
Report link

try this for newer ruby version:

sudo apt install ruby-dev

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28232100

79176330

Date: 2024-11-11 03:56:37
Score: 1
Natty:
Report link

Both answers from @RbMm and @AhmedAEK seemed to work well. Thanks to everyone for their suggestions. I believe I'll use Method 2, as it seems cleaner. Here are code examples of each:

Method 1: LdrRegisterDllNotification from @RbMm

This method uses DLL loading callbacks from ntdll.dll to call methods in the new libraries. It seems like there may be some vulnerabilities here in case you're not careful, and will likely require more thorough investigation.

#include <iostream>
#include <Windows.h>
#include "Allocator.hpp"

typedef struct _UNICODE_STR
{
    USHORT Length;
    USHORT MaximumLength;
    PWSTR pBuffer;
} UNICODE_STR, * PUNICODE_STR;

// Sources:
// https://shorsec.io/blog/dll-notification-injection/
// https://modexp.wordpress.com/2020/08/06/windows-data-structures-and-callbacks-part-1/

typedef struct _LDR_DLL_LOADED_NOTIFICATION_DATA {
    ULONG           Flags;             // Reserved.
    PUNICODE_STR FullDllName;       // The full path name of the DLL module.
    PUNICODE_STR BaseDllName;       // The base file name of the DLL module.
    PVOID           DllBase;           // A pointer to the base address for the DLL in memory.
    ULONG           SizeOfImage;       // The size of the DLL image, in bytes.
} LDR_DLL_LOADED_NOTIFICATION_DATA, * PLDR_DLL_LOADED_NOTIFICATION_DATA;

typedef struct _LDR_DLL_UNLOADED_NOTIFICATION_DATA {
    ULONG           Flags;             // Reserved.
    PUNICODE_STR FullDllName;       // The full path name of the DLL module.
    PUNICODE_STR BaseDllName;       // The base file name of the DLL module.
    PVOID           DllBase;           // A pointer to the base address for the DLL in memory.
    ULONG           SizeOfImage;       // The size of the DLL image, in bytes.
} LDR_DLL_UNLOADED_NOTIFICATION_DATA, * PLDR_DLL_UNLOADED_NOTIFICATION_DATA;

typedef union _LDR_DLL_NOTIFICATION_DATA {
    LDR_DLL_LOADED_NOTIFICATION_DATA   Loaded;
    LDR_DLL_UNLOADED_NOTIFICATION_DATA Unloaded;
} LDR_DLL_NOTIFICATION_DATA, * PLDR_DLL_NOTIFICATION_DATA;

typedef VOID(CALLBACK* PLDR_DLL_NOTIFICATION_FUNCTION)(
    ULONG                       NotificationReason,
    PLDR_DLL_NOTIFICATION_DATA  NotificationData,
    PVOID                       Context);

typedef NTSTATUS(NTAPI* _LdrRegisterDllNotification) (
    ULONG                          Flags,
    PLDR_DLL_NOTIFICATION_FUNCTION NotificationFunction,
    PVOID                          Context,
    PVOID* Cookie);

VOID MyCallback(ULONG NotificationReason, const PLDR_DLL_NOTIFICATION_DATA NotificationData, PVOID Context) {
    if (lstrcmpiW(NotificationData->Loaded.BaseDllName->pBuffer, L"Library.dll") != 0) {
        return;
    }

    HINSTANCE dllHandle = reinterpret_cast<HINSTANCE>(NotificationData->Loaded.DllBase);
    auto fn = reinterpret_cast<void(*)(Allocator*)>(GetProcAddress(dllHandle, "RegisterAllocator"));
    if (!fn) {
        printf("Could not locate the function.\n");
        return;
    }

    fn(Allocator::GetAllocator());
}

int main() {
    Allocator allocator;
    Allocator::SetAllocator(&allocator);

    HMODULE hNtdll = GetModuleHandleA("NTDLL.dll");

    if (hNtdll != NULL) {
        _LdrRegisterDllNotification pLdrRegisterDllNotification = (_LdrRegisterDllNotification)GetProcAddress(hNtdll, "LdrRegisterDllNotification");

        PVOID cookie;
        NTSTATUS status = pLdrRegisterDllNotification(0, (PLDR_DLL_NOTIFICATION_FUNCTION)MyCallback, NULL, &cookie);
        if (status != 0) {
            printf("Failed to load DLL Callback! Exiting\n");
            return EXIT_FAILURE;
        }
    }
    else {
        printf("Failed to load NTDLL.dll! Exiting\n");
        return EXIT_FAILURE;
    }

    printf("Allocated Size Before: %zu.\n", allocator.GetUsedSize());
    HINSTANCE dllHandle = LoadLibrary(L"Library.dll");
    if (!dllHandle) {
        printf("Could not load the dynamic library.\n");
        return EXIT_FAILURE;
    }

    printf("Allocated Size After: %zu.\n", allocator.GetUsedSize());

    return 0;
}

Method 2: Getting the variable from a Singleton's Getter from @AhmedAEK

This alteration to Allocator.cpp uses the Getter of the Singleton to find its value in the main executable if it is not yet set. I use GetModuleHandle(NULL) to get the main module, and find the ProcAddress of a non-member function that will return the singleton's value.

// ...

#if MAIN_EXECUTABLE
extern "C" {
    __declspec(dllexport) Allocator* GetAllocator() {
        return Allocator::GetAllocator();
    }
}

Allocator* Allocator::GetAllocator() {
    return allocatorState;
}
#else
#include <Windows.h>

Allocator* Allocator::GetAllocator() {
    if (allocatorState == nullptr) {
        HMODULE module = GetModuleHandle(NULL);
        auto GetAllocatorFn = (Allocator*(*)(void))GetProcAddress(module, "GetAllocator");
        if (GetAllocatorFn != NULL) {
            return GetAllocatorFn();
        }

        return nullptr;
    }

    return allocatorState;
}
#endif
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @RbMm
  • User mentioned (0): @AhmedAEK
  • User mentioned (0): @RbMm
  • User mentioned (0): @AhmedAEK
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Karim Abdel Hamid

79176319

Date: 2024-11-11 03:45:35
Score: 3.5
Natty:
Report link

what if using this answer ?

const fault = heatData[`faults_${runningId}` as keyof HeatsTable];
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): what if
  • Low reputation (0.5):
Posted by: Carvel Saputra

79176318

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

The object type is - class llama_index.core.base.response.schema.StreamingResponse(response_gen: ~typing.Generator[str, None, None], source_nodes: ~typing.List[~llama_index.core.schema.NodeWithScore] = , metadata: ~typing.Optional[~typing.Dict[str, ~typing.Any]] = None, response_txt: ~typing.Optional[str] = None)

so use instead - st.write(response.response)

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

79176302

Date: 2024-11-11 03:33:32
Score: 1
Natty:
Report link

Try below methods to solve your issue.

  1. Clear Cached Credentials.
  1. Reconfigure GitHub Account in Visual Studio.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Tharuka Deshan

79176298

Date: 2024-11-11 03:28:31
Score: 2.5
Natty:
Report link

Use below tips to change your python version:

  1. Open Terminal
  2. cd
  3. nano ~/.bashrc
  4. alias python=python3 (Add this line on top of .bashrc file) or alias python=/python3.9
  5. Press ctr+o (To save the file)
  6. Press Enter
  7. Press ctr+x (To exit the file)
  8. source ~/.bashrc OR ~/.bashrc (refresh the bashrc file)
Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Dilux

79176297

Date: 2024-11-11 03:27:31
Score: 2
Natty:
Report link

GoDaddy sold me the domain I wanted: Heiðr.com

If you paste in, it will take you there, but then the address shows as https://www.xn--heir-dqa.com/

GoDaddy told me to call Wix because that's where I am building the site.

Wix told me to call Google. They fixed the SSL error, but have not addressed several requests for url resolution.

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

79176294

Date: 2024-11-11 03:25:30
Score: 4.5
Natty:
Report link

What data do you need to decrypt

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Lex

79176290

Date: 2024-11-11 03:24:30
Score: 2.5
Natty:
Report link

Make below changes to do python version change

  1. Open Terminal
  2. cd
  3. nano ~/.bashrc
  4. alias python=python3 (Add this line on top of .bashrc file) or alias python=/python3.9
  5. Press ctr+o (To save the file)
  6. Press Enter
  7. Press ctr+x (To exit the file)
  8. source ~/.bashrc OR ~/.bashrc (refresh the bashrc file)
Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Dilux

79176286

Date: 2024-11-11 03:19:27
Score: 6.5 🚩
Natty: 6
Report link

I have a file text with multilines with the same begin words, example: A: 23823-11212-35662 B: aBcjdjLJ C: 9o9j0l D: 990pln

A:76867-35624-63524 B: RtGhTbjO C: 775ply D: 452GNr

...

I only need text follow "A:" Please help me. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Please help me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Phong Minh

79176281

Date: 2024-11-11 03:16:26
Score: 1.5
Natty:
Report link

i am using a TI-basic editor so this might not work but if you type

wait 1

it will wait 1 second

i looked around my calculator options to find this answer.

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

79176258

Date: 2024-11-11 02:57:23
Score: 3
Natty:
Report link

PC app does put some logs in C:\programdata\SonosV2,_Inc\runtime but that's about it.

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

79176257

Date: 2024-11-11 02:56:23
Score: 1.5
Natty:
Report link

This kind of thing will only work with the Desktop app, or S1 mobile apps, or third party apps.

Sonos S2 mobile apps do not call SMAPI themselves any more, everything is proxied via their cloud, so your SMAPI endpoint needs to be public (and https) so their cloud service can call it.

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

79176250

Date: 2024-11-11 02:52:22
Score: 0.5
Natty:
Report link

1 Campo de texto de correo electrónico 2 Campo de texto con número y caracteres Contraseña 3 Campo de texto de registrarse a la aplicación 4 Campo de texto de correo alternativo registrarse 5 Campo de texto de nombre registrarse 6 Campo de texto de dirección registrarse 7 Campo de texto de fecha de nacimiento registrarse 8 Campo de texto Curp registrarse 9 Campo de texto celular registrarse 10 Botón de guardar datos registrarse 11 Campo de calendario de todos los meses del año medisk 12 Botón de cancelar los datos o solicitud en registrarse 13 Campo de texto de cerrar sección perfil 14 Campo de texto con número y caracteres Contraseña de registrarse 15 Correo electrónico de registrarse 16 Correo electrónico recuperación 17 Botón de guardar en recuperación 18 Campo de texto de correo electrónico perfil 19 Campo de doctor medisk 20 Campo de texto de nombre en registrarse 21 Campo de texto de apellido paterno registrarse 22 Campo de texto de apellido materno registrarse 23 Campo de fecha de nacimiento perfil 24 Campo contraseña de registrarse 25 Campo de Curp perfil 26 Texto de registro de usuario en registrarse 27 Texto de recuperación de contraseña 28 Botón enviar a tu correo electrónico recuperación 29 Campo disponible de cita en el calendario color verde 30 Campo no disponible de cita en el calendario color rojo no mostrar el horario 31 Horario disponible lunes a viernes 9 a 1 y 4 a 8 32 Campo de notificación 33 Mensajes de textos y numero en notificación 34 Campo de consulta de tus citas 35 Campo de nombre en perfil 36 Campo de celular en perfil 37 Campo de doctor su nombre 38 Campo de dirección del consultorio 39 Nombre de secretaria 40 Campo teléfono de consultorio hacerme un diagrama de

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

79176247

Date: 2024-11-11 02:48:21
Score: 1.5
Natty:
Report link

Complete clock constraint in sgdc file like this :

clock -name clk1 -period 10 -edge {0 5}
clock -name clk2 -period 20 -edge {0 10}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: liguo

79176245

Date: 2024-11-11 02:46:21
Score: 1
Natty:
Report link

This behavior is due to how signals are handled when Python is launched from a shell script with &. When Python is launched directly or through noproblem.sh, the default signal handler for SIGINT is used, which raises KeyboardInterrupt. However, when launched through problem.sh, the signal handler is set to SIG_IGN, causing SIGINT to be ignored. This behavior is not explicitly documented, but it's related to how the shell handles signals when running Python as a background process.

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

79176244

Date: 2024-11-11 02:44:20
Score: 1.5
Natty:
Report link

Adding box-sizing: border-box; to the div helped me resolve this issue

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Coder Gautam YT

79176239

Date: 2024-11-11 02:40:18
Score: 9.5 🚩
Natty: 5.5
Report link

Did you found a solution for this?

Reasons:
  • RegEx Blacklisted phrase (3): Did you found a solution
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: José Miguel Dager Montoya

79176238

Date: 2024-11-11 02:38:17
Score: 0.5
Natty:
Report link

uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785195.809344","reqId":"C5460A98-1F90-4D9F-97E4-1F4A6631805D","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785192.916526","reqId":"017128CC-D52D-4C3B-921D-C684AD680A64","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A … {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785192.909302","reqId":"27D3663D-F449-4BD0-96E7-2AEB02B5B759","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A … {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785148.969780","reqId":"65201892-A8E4-4607-9293-BA7FBC028DB6","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785135.605720","reqId":"39EA373C-16EC-4041-8FE1-4F369A421642","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785106.345279","reqId":"ED86CC94-80A7-4DF8-A072-B4B20F4EFC7F","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785106.326079","reqId":"6F137E76-7122-407D-8EC9-F2384F65A038","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785082.102261","reqId":"B0DA1CC7-A022-40A9-A997-E9EB8F9CC060","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785081.404443","reqId":"459C68FD-705E-4FCD-BB4F-A5CE23E7D6F5","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785080.881985","reqId":"39C4DD7E-BC3E-49E8-9477-EAD0CEDD9102","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785080.863259","reqId":"3E9E6C35-8AC8-4C4F-9B2A-A76B523CA86C","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}‚A… {"uuid":"476DBD8D-DFAD-452B-A393-0B82E093C86B","newsfeedMessages":[],"devMode":false,"deviceId":"","time":"1730785080.302527","reqId":"C4573F7E-9B9C-49F4-A77F-FFF009059EC7","action":"getVars","userId":"","token":"EfjCOFPQQliauMBFZZPVABcNtMBCBUWVhW9YCbvvjiw","client":"ios","sdkVersion":"4.1.0","includeDefaults":false}

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

79176236

Date: 2024-11-11 02:37:17
Score: 1.5
Natty:
Report link

I fixed it by set ReactPlayer muted={true}

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nam Nguyễn

79176235

Date: 2024-11-11 02:36:16
Score: 3
Natty:
Report link

This problem seems to have improved since yesterday, but the specific reason for it is still unclear

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

79176234

Date: 2024-11-11 02:35:16
Score: 1
Natty:
Report link

How about defineExpose - this will make the methods public for test purposes.

defineExpose({ showTopDown })

therefore in your test:

wrapper.vm.showTopDown // will be boolean

https://vuejs.org/api/sfc-script-setup#defineexpose

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): How
  • High reputation (-1):
Posted by: Simon

79176224

Date: 2024-11-11 02:29:15
Score: 2.5
Natty:
Report link

I suggest you change a tool to complete the migration, such as mysql workbench, which is more compatible.

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

79176223

Date: 2024-11-11 02:28:15
Score: 1
Natty:
Report link

let input = document.querySelector('input');
document.querySelector('button').addEventListener('click', function(e){
    if(input.type === 'password') input.type = 'text';
    else input.type = 'password';
});
<input type="password" value="123456"> 
<button>
Toggle
</button>

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

79176212

Date: 2024-11-11 02:24:14
Score: 1
Natty:
Report link

I'm currently moving my code from SQL Anywhere to MySQL. The cleanest method I found with MySQL is to use a variable to do the math and then assign the variable to an alias to show the results.

@val1 =  SUM(currentbalance), 
@val2 =  SUM(principal),
@val1+@val2 AS 'Total',
// to show the values at columns
@val1 AS 'current',
@val2 AS 'prin', 
   
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ron Simons

79176204

Date: 2024-11-11 02:18:12
Score: 1.5
Natty:
Report link

try to add the RouterOutlet from @angular/router in your AppModule imports, like:

import { RouterOutlet } from '@angular/router';

imports: [RouterOutlet]

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

79176203

Date: 2024-11-11 02:18:12
Score: 1.5
Natty:
Report link

here is logic how you able to do that

  1. suppose you use firebase realtime database, there you store update= UpdateCompulsory /UpdateNotCompulsory / NoUpdate

  2. whenever your app is open it run a background task to fetch the update value, if UpdateCompulsory then show a dialog that didn't cancel out, if UpdateNotCompulsory then cancellable dialog box and if NoUpdate then do nothing

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

79176196

Date: 2024-11-11 02:09:10
Score: 0.5
Natty:
Report link

How can I get a result ... where the lines connect to the endpoints of the markers?

Introduce new datapoints, corresponding to the endpoints of markers. Ask matplotlib to alternately plot dotted lines, then solid lines for markers, then dotted lines....

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How can I
  • High reputation (-2):
Posted by: J_H

79176195

Date: 2024-11-11 02:09:10
Score: 2
Natty:
Report link

It's a good idea to manually update toml. An additional thing to Mohammed Faruk's answer worth pointing out is using bumpversion package in python.

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

79176185

Date: 2024-11-11 02:01:08
Score: 2
Natty:
Report link

It's been quite some time, but what it looks like the problem is your last parameter, you're defining it as char headers[]; while it should be a string like string headers;

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

79176184

Date: 2024-11-11 02:00:08
Score: 0.5
Natty:
Report link

It turns out that this behavior only happens when SKScene does not have a size. It works again after I specify the size of the scene:


      let scene = SKScene(size: view.frame.size)

I don't know how this is related. Could be a bug or some undocumented behavior.

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

79176179

Date: 2024-11-11 01:52:07
Score: 3
Natty:
Report link

In case it's useful, I wrote this R function which simulates nested logit errors https://github.com/wilburtownsend/r-nested-logit.

This function can handle many more alternatives and/or nests than can EVD.

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Wilbur

79176171

Date: 2024-11-11 01:47:05
Score: 3
Natty:
Report link

make sure udp 9993 firewall port is open.(default) make sure your service is running either in windows or linux (service zerotier-one status) if not systemctl enable zerotier-one sudo zerotier-one -p 9993 zerotier-one listnetworks zerotier-one listpeers

Cheers

Reasons:
  • Blacklisted phrase (1): Cheers
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Stewart Friday

79176156

Date: 2024-11-11 01:38:04
Score: 0.5
Natty:
Report link

Solved. I managed to get it working. Trick was to link the FrameGraph to the QRenderCapture instance. Here is the code added to init()

self.render_capture = QRenderCapture()
self.view.activeFrameGraph().setParent(self.render_capture)
self.view.setActiveFrameGraph(self.render_capture)

The other gotcha is to wait for the rendering to complete. Here is how I implemented it.

def capture_image(self):
   self.reply = self.render_capture.requestCapture()
   loop = QEventLoop()
   self.reply.completed.connect(loop.quit)
   QTimer.singleShot(200, loop.quit)  # Timeout after 1 second
   loop.exec()
        
   image = self.reply.image()
   image.save("capture_output.jpg", "JPG")

I just can't believe how poorly documented this Qt3D library is...

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

79176154

Date: 2024-11-11 01:37:03
Score: 1
Natty:
Report link

I believe that the issue is with latest version of "react-native-tab-view": "^4.0.1" not being compatible with "@react-navigation/material-top-tabs": "^6.6.14"

I had to drop down to "react-native-tab-view": "^3.5.2" to get it working.

Investigation process.

I had created new project using npx create-expo-stack@latest with nativewind and react navigation following instructions to add material-top-tabs for v6, I got the latest package for react-native-tab-view that is 4.0.1 so I tried to investigate and ran into this issue https://github.com/nativewind/nativewind/issues/1039 seeing that issue, I got the idea that react-native-tab-view is not compatible thus it is now working, will investigate further when moving to react-navigation v7 is required.

If you have nativewind installed you will run into the issue mentioned here

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

79176153

Date: 2024-11-11 01:36:03
Score: 2
Natty:
Report link

It seems that killing the "Windows Explorer" process does the trick

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Tom Huntington

79176147

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

When you use mpirun -np 3 . /foo, MPI creates 3 processes for your program, each running on a separate core. Even if your system has multiple cores, MPI may assign multiple processes to cores on the same CPU, not necessarily on different CPUs. Each core is like a mini-processor that can handle tasks independently. For example, if you have 1 CPU with 4 cores, you could run up to 4 tasks concurrently on those cores. With -np 3, MPI distributes your processes across available cores, but not necessarily on different CPUs.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When you use
  • Low reputation (1):
Posted by: Christian Peña Granillo

79176137

Date: 2024-11-11 01:14:59
Score: 2
Natty:
Report link

If we choose mouse click tab then we will have to click on the action button so that it perform action that is assigned to it.

If we choose the mouse over tab than we can have the mouse pointer over the action button and it will perform the action to it

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

79176136

Date: 2024-11-11 01:12:59
Score: 1
Natty:
Report link

I understand your confusion. That's because every peace of code in your class which is enclosed with either " or """ (called string literal and text block respectfully) are beeing added into String Pool during compile time. Whereas the keyword "new" doesn't add anything into String Pool instead it creates a reference to an object of type String and puts it somewhere into the memory heap during runtime. String literal "Java" and variable s1 point to different objects in heap memory so that's why you have to use String.intern when comparing them during runtime.

The only time when String.intern adds new string into the String Pool is when it doesn't already contain that exact string.

Source: java specification §3.10.5.

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

79176132

Date: 2024-11-11 01:06:58
Score: 3.5
Natty:
Report link

using Gtk4 ... show(win) This code is working, thanks Sundar

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Nenad Stevanovic

79176127

Date: 2024-11-11 01:02:57
Score: 2
Natty:
Report link

Thanks Phil I tried to pull my image with the latest tag it was not existed because of the image name there should be e in aiftikhar instead of I

image: aiftekhar/platformservice:latest 

i ran again and it works thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Asad Iftikhar

79176107

Date: 2024-11-11 00:43:54
Score: 1
Natty:
Report link

Now there is a scanIterator() function in the redis client library that returns an async generator.

This makes it a lot easier to iterate over records using the for await syntax.

for await (const key of client.scanIterator({ MATCH: 'key-prefix:*' }) {
    console.log(key);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zicklag

79176106

Date: 2024-11-11 00:43:54
Score: 1
Natty:
Report link

replace

implementation com.wang.avi:library:2.1.3

as it is not working now.

with

implementation io.github.maitrungduc1410:AVLoadingIndicatorView:2.1.4

it should be working successfully.

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

79176103

Date: 2024-11-11 00:41:53
Score: 2
Natty:
Report link

I read the comments above, but it took me hours to finally realize the "configName" people are talking about is actually referring to the name of the push provider you setupped.

enter image description here

In flutter it's

streamChatClient.addDevice(
_token,
 PushProvider.firebase,
 pushProviderName: "FirebasePsDev" //THIS
)
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Climactic

79176102

Date: 2024-11-11 00:41:53
Score: 1.5
Natty:
Report link

The /public folder is meant to store static files (JavaScript, CSS, images etc), so using it to serve dynamically uploaded files isn't a great solution.

You'd need to store the files on an external service, e.g. AWS S3. Then you can store the URL to access it in your DB, and fetch the file from S3 with that URL whenever a user requests it.

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

79176099

Date: 2024-11-11 00:39:53
Score: 1
Natty:
Report link

after a few hours of reading nextjs official docs, i figured out the root cause is the router, I changed my router page to align with nextjs doc, and the issue got fixed.

Reasons:
  • Whitelisted phrase (-2): i figured out
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Gilbert

79176095

Date: 2024-11-11 00:35:52
Score: 1.5
Natty:
Report link

Ensure that Git is using UTF-8 for commit metadata. You can explicitly configure Git to use UTF-8 with the following command:

git config --global i18n.commitEncoding UTF-8
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Max AB

79176086

Date: 2024-11-11 00:25:50
Score: 1
Natty:
Report link

Building off of 0stone0's answer (with some added stuff to make the scroll more smooth and testing all the pointer events).

// scroll bar functionality for fixed element
// https://stackoverflow.com/questions/41592349/allow-pointer-click-events-to-pass-through-element-whilst-maintaining-scroll-f#
function scroller(event) {
  scrollable = document.getElementById("scrollable");
  switch (event.deltaMode) {
    case 0: //DOM_DELTA_PIXEL       Chrome
      scrollable.scrollTop += event.deltaY
      scrollable.scrollLeft += event.deltaX
      break;
    case 1: //DOM_DELTA_LINE        Firefox
      scrollable.scrollTop += 15 * event.deltaY
      scrollable.scrollLeft += 15 * event.deltaX
      break;
    case 2: //DOM_DELTA_PAGE
      scrollable.scrollTop += 0.03 * event.deltaY
      scrollable.scrollLeft += 0.03 * event.deltaX
      break;
  }
  event.stopPropagation();
  event.preventDefault()
}

document.onwheel = scroller;


// scroll to an item that inside a div
//   https://stackoverflow.com/questions/45408920/plain-javascript-scrollintoview-inside-div
function scrollParentToChild(parent, child, threshold = 0) {
  // Where is the parent on page
  const parentRect = parent.getBoundingClientRect();
  // What can you see?
  const parentViewableArea = {
    height: parent.clientHeight,
    width: parent.clientWidth,
  };
  // Where is the child
  const childRect = child.getBoundingClientRect();
  // Is the child viewable?
  const isViewableVertically = childRect.top >= parentRect.top &&
    childRect.bottom <= parentRect.top + parentViewableArea.height;
  const isViewableHorizontally = childRect.left >= parentRect.left &&
    childRect.right <= parentRect.left + parentViewableArea.width;
  // if you can't see the child try to scroll parent
  if (!isViewableVertically || !isViewableHorizontally) {
    // Should we scroll using top or bottom? Find the smaller ABS adjustment
    const scrollTop = childRect.top - parentRect.top;
    const scrollBot = childRect.bottom - parentRect.bottom;
    const scrollLeft = childRect.left - parentRect.left;
    const scrollRight = childRect.right - parentRect.right;
    if (Math.abs(scrollTop) < Math.abs(scrollBot) && Math.abs(scrollLeft) < Math.abs(scrollRight)) {
      // we're nearer to the top and left of the list
      parent.scrollTo({
        top: parent.scrollTop + scrollTop - threshold,
        left: parent.scrollLeft + scrollLeft - threshold,
        behavior: 'smooth',
      });
    } else {
      // we're nearer to the bottom and right of the list
      parent.scrollTo({
        top: parent.scrollTop + scrollBot + threshold,
        left: parent.scrollLeft + scrollRight + threshold,
        behavior: 'smooth',
      });
    }
  }
}
html,
body {
  overflow: hidden;
  margin: 0;
  padding: 0;
  background-color: pink;
}

.container {
  position: relative;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

#stage-layer {
  position: absolute;
  width: 100vw;
  height: 100vh;
  background-color: yellow;
  margin: 0;
  padding: 0;
}

#application-layer {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 0;
}

rect:hover {
  fill: blue;
}

#scrollable {
  position: relative;
  overflow: auto;
  color: hotpink;
  height: 100%;
  width: 100%;
  background-color: blue;
  padding-left: 0;
}

p:hover {
  color: white;
  transform: translateX(20px);
  transition: 0.3s;
}

.menu {
  position: fixed;
  background-color: red;
  width: 100px;
  z-index: 100;
}

.hover:hover {
  background-color: orange;
}
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="styles.css">
  <title>Blank HTML</title>
</head>

<body>
  <div class="container">
    <svg id="stage-layer">
            <rect></rect>
        </svg>
    <div id="application-layer">
      <div class="menu">
        <p onClick="scrollParentToChild(document.getElementById('scrollable'), document.getElementById('first'));">
          go to top of page</p>
        <p onClick="scrollParentToChild(document.getElementById('scrollable'), document.getElementById('last'));">
          go to bottom of page</p>
      </div>

      <div id="scrollable">
        <li id="first">_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li class="hover">HOVER TEST</li>
        <li>_________</li>
        <li>_________</li>
        <li><a class="link" href="https://www.google.com/">LINK TEST</a></li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li>_________</li>
        <li id="last">_________</li>
      </div>

    </div>
  </div>
  <script src="/website/test/scripts.js"></script>
</body>

</html>

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: ClassicRanch

79176082

Date: 2024-11-11 00:18:49
Score: 1
Natty:
Report link

1. Enable the CDP (Chrome Devtolls Protocol) monitor.

Settingsd Enable CDP monitor enter image description here

2. Go into the Protocol Monitor Tab

Open Protocol Tab

3. Open the side panel

Open Protocol Monitor Side Panel

4. Set the target to Main

Set the Target to Main

5. Send the command for the CPU throttling

Select CPU Throttling command Send

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

79176072

Date: 2024-11-11 00:12:47
Score: 2.5
Natty:
Report link

As pointed out - while loop was never reached. Messed up a variable. but thankfully my main question of what to do instead of this was also answered - Refactor using after to manage recurring tasks. – OysterShucker

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

79176061

Date: 2024-11-11 00:05:46
Score: 2.5
Natty:
Report link

The entire software was clearly explained to me over the mail. They supplied everything they had promised in such a way that it is all so simple. I highly recommend hackerspytech @ g ma il co m hacking network security to anyone who is thinking of getting a hack job completed

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

79176052

Date: 2024-11-10 23:58:44
Score: 2
Natty:
Report link

Thank you all for this great thread, it was very helpful as I also needed to automate code signing with a YubiKey. In case someone else finds it useful, here's a Linux Docker container project that takes care of all the dependencies, with a web service based on the one suggested in this thread, using osslsigncode, plus HTTPS and basic authentication:

https://github.com/cloudbase/signsvc

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

79176045

Date: 2024-11-10 23:52:43
Score: 1
Natty:
Report link

Solved:

sRestURL = "https://graph.microsoft.com/v1.0/users/MAILBOX/mailFolders/inbox/messages?$expand=singleValueExtendedProperties($filter=Id eq \'LONG 0x0E08\')&$count=true&$search=\"from:\\\"greet\\\"\"";
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Frederik Gysel

79176042

Date: 2024-11-10 23:49:42
Score: 0.5
Natty:
Report link

I found the issue, It was simple, the uploadFlagToCustomer() function is inside a ViewModel and I am calling this function from an AlertDialog.Builder. when I removed that AlertDialog, its inserting value to SQLite.

Below is the code on the Activity

    private fun callDialog(database, flags) {
    flagViewModel.uploadFlagToCustomer(database, flags)
 /*   val bl = AlertDialog.Builder(this)
    bl.setTitle("Save/Clear Flags?")
    bl.setNeutralButton("Clear", null)
    bl.setPositiveButton(
        "Save & Exit"
    ) { dialog: DialogInterface?, _: Int -> flagViewModel.uploadFlagToCustomer(database, flags) }
    val d: Dialog = bl.create()
    d.setCanceledOnTouchOutside(false)
    d.setCancelable(false)
    d.setOnDismissListener { _: DialogInterface? ->
        flagViewModel.clearFlags(routeId)
    }
    d.show()*/
}

There was no issue with the SQlite it was this part that caused the problem

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

79176039

Date: 2024-11-10 23:47:42
Score: 1
Natty:
Report link

UFFI is abandoned. I use cffi-uffi-compat with CLSQL and it works well. Just make certain CFFI is loaded before you load CLSQL. You can do that with (asdf:load-system :cffi). Use (ql:quickload :cffi) if you don't already have it downloaded.

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

79176012

Date: 2024-11-10 23:20:37
Score: 3
Natty:
Report link

Same here... New Expo-project with a Drawer/(tabs) routing this is how it looks

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Daniel Niquet

79175996

Date: 2024-11-10 23:04:35
Score: 1.5
Natty:
Report link

If you are doing it from the child theme, you may want to replace the template. for example copy your current - single-post.php (or for custom post type "single-{custom-post-type}.php") and replace those elements, easiest way actually.

Other solution you may try - ob_start() on 'wp_head' them ob_get_clean() in the 'wp_footer'.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Артур Димерчан

79175992

Date: 2024-11-10 22:59:34
Score: 1.5
Natty:
Report link

I have come across the same problem, I think the only way was to use PostgreSQL wire protocol. But if the flag pg.security.readonly is set to true, you will need to change it. You will also need to run it in a retry/backoff loop to avoid the table busy [reason=insert] error.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mert Yılmaz

79175980

Date: 2024-11-10 22:51:32
Score: 1
Natty:
Report link

I just found that I also have this issue. The problem with the green-checked answer is that Alt+J is used for finding the Next Occurrence and it conflicts with that. I use that shortcut a lot when using the Multiple Cursors feature.

And I set Shift+K for showing the pop-over on my code (an equivalent to when you hover on the variables, classes, etc.).

So, I'm going with the Ctrl+N for Down (Next) and Ctrl+P for Up (Previous). I won't need to go left or right in the menus anyway. And, in my experience, I don't use the existing keymaps for Ctrl+N and Ctrl+P. I've never knew about them.

I'm more happy with this choice and don't see a point in going left or right in the tool windows or other menus.

Cheers.

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

79175973

Date: 2024-11-10 22:48:31
Score: 3.5
Natty:
Report link

You are missing the @Validated annotation on your @RestController. Without it SpringMVC doesn't validate parameters of your methods.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @Validated
  • User mentioned (0): @RestController
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Chasca

79175970

Date: 2024-11-10 22:46:30
Score: 3.5
Natty:
Report link

Maybe the parent element of Tab.Screen has a color white set

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

79175968

Date: 2024-11-10 22:45:30
Score: 3.5
Natty:
Report link

thatk can't be achieved as string can not be transformed into date or datetime

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

79175962

Date: 2024-11-10 22:41:29
Score: 0.5
Natty:
Report link

Unfortunately, there is currently (as of Firefox 132.0) no option to control the alignment of the side panels. And the threshold is actually hardcoded.

Therefore, I've now filed a feature request to provide some control over the layout of the Inspector side panels.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: Sebastian Zartner

79175952

Date: 2024-11-10 22:33:27
Score: 0.5
Natty:
Report link

In my case I was able to significantly reduce DLL size by changing compilation method and IDE.

First I tried to compile using Cmake in CLion IDE and the DLL size was always above 2 MB. Then I compiled the same code using default settings in Visual Studio 2022 and I was able to reduce DLL size to 11 KB.

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

79175941

Date: 2024-11-10 22:25:25
Score: 4.5
Natty: 5
Report link

Я тоже хочу убрать это раздражающее окно. Ранее, на android 13 это помогало. С android 14 они исправили ошибки, но теперь не могу убрать эту раздражающую штуку. Если кто сможет помочь, буду благодарен. Device TANK 3 pro

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

79175940

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

@GeekyGeek's response is correct and it works.

however, I just wanted to share that I found another solution from this link. I tested out the suggestion and it works like a charm - you can KEEP your collections.add() statement.

However, you're still required to install onnxruntime but no need to specify the onnxruntime version and it should work (I use the latest Nov 2024 version).

pip install onnxruntime

Here is the updated code - I tested it with your collection.add() statement and it works:

# add this import statement 
from chromadb.utils.embedding_functions.onnx_mini_lm_l6_v2 import ONNXMiniLM_L6_V2

# create an embedded function variable 
ef = ONNXMiniLM_L6_V2(preferred_providers=["CPUExecutionProvider"])

# finally, pass the embedding_function parameter in your create_collection statement
collection = client.get_or_create_collection("my_collection", embedding_function=ef)


# now you can run your collection_add() statement successfully
collection.add(
    documents=[
        "This is a document about machine learning",
        "This is another document about data science",
        "A third document about artificial intelligence"
    ],
    metadatas=[
        {"source": "test1"},
        {"source": "test2"},
        {"source": "test3"}
    ],
    ids=[
        "id1",
        "id2",
        "id3"
    ]
)
Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @GeekyGeek's
  • Low reputation (0.5):
Posted by: punsoca

79175935

Date: 2024-11-10 22:17:21
Score: 6 🚩
Natty: 5.5
Report link

Are you still using this strategy?

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

79175924

Date: 2024-11-10 22:09:19
Score: 2
Natty:
Report link

To transfer data between CANoe and external server running on UDP you have to configure fdx xml and enable fdx in CANoe options so that it runs as server. fdx sample fdx Based on this you can form a UDP packet and send data you wanted to send to CANoe and vice versa

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

79175917

Date: 2024-11-10 22:06:18
Score: 2
Natty:
Report link

I do not think you can do this using the out of the box list forms, you can customize the using Power Apps, which will allow you to have a dropdown list inside the form then you can pass the drop down selection into your single line.

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

79175883

Date: 2024-11-10 21:45:12
Score: 6 🚩
Natty: 5.5
Report link

Are you still using this strategy?

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

79175880

Date: 2024-11-10 21:44:12
Score: 3
Natty:
Report link

In today’s complex financial landscape, finding a reliable financial service provider can be challenging. Whether you’re an individual looking to manage personal wealth or a business aiming to optimize its financial operations, having a trusted partner is essential. Swift Funds Financial Services has become a notable name in this space, offering a range of tailored solutions to meet diverse financial needs. In this article, we’ll explore the key services Swift Funds provides and why they might be a great fit for you.

Reasons:
  • Blacklisted phrase (1): this article
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sofia Alice

79175869

Date: 2024-11-10 21:39:11
Score: 3.5
Natty:
Report link

Just use the autocomplete from this git repo: https://github.com/marlonrichert/zsh-autocomplete

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

79175861

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

I am already using Spring Boot 3.2.6, and the same problem occurred. These dependencies fixed my problem:

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.2.0'
implementation 'io.swagger.core.v3:swagger-annotations-jakarta:2.2.10'
implementation 'io.swagger.core.v3:swagger-core:2.2.10'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Farid Guluzade

79175856

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

To transfer data between CANoe and external server runninng on UDP you have to configure fdx xml and enable fdx in CANoe options so that it runs as server. UDP_datagram fdx sample

based on this you can form a UDP packet and send data you wanted to send. and you can send data via UDP back to CANoe

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

79175834

Date: 2024-11-10 21:19:06
Score: 1.5
Natty:
Report link

Found the answer:

I added to /opt/homebrew/Cellar/octave/9.2.0_1/share/octave/site/m/startup/octaverc the lines:

setenv("PYTHON", "/opt/homebrew/bin/python3")
setenv("PYTHONPATH", [getenv("HOME")"/.local/pipx/venvs/sympy/lib/python3.13/site-packages"])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: malligator

79175829

Date: 2024-11-10 21:17:06
Score: 0.5
Natty:
Report link

One of the ways I have found is using Hashicorp Vault as a secrets engine for minting Cloudflare Access service tokens. This Vault plugin allows you to manage Cloudflare tokens.

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

79175827

Date: 2024-11-10 21:16:05
Score: 1.5
Natty:
Report link

This error occurs because PowerShell has a security policy that restricts the execution of certain scripts, including the npm.ps1 script, which is part of the Node.js installation. By default, the PowerShell execution policy may be set to "Restricted" or "AllSigned," preventing these types of scripts from running.

Here's how to solve it:

Solution 1: Change PowerShell's Execution Policy Temporarily You can bypass this policy temporarily by changing the execution policy for the current session only:

Open PowerShell as Administrator. Run this command: powershell

Copy code "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass"

Now, run the npm --version command again to check if it works. This method only changes the execution policy for the current session, so you won’t need to modify the system policy permanently.

Solution 2: Change PowerShell's Execution Policy Permanently If you prefer a more permanent solution, you can change the execution policy on your system:

Open PowerShell as Administrator. Run this command: powershell

Copy code "Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned"

Confirm by typing Y (Yes) if prompted. This change will allow locally created scripts to run, while still protecting against untrusted remote scripts.

After following either of these solutions, try running npm --version in PowerShell again.

Reasons:
  • Blacklisted phrase (1): how to solve
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: hamza

79175815

Date: 2024-11-10 21:11:04
Score: 0.5
Natty:
Report link

java.time

Today it‘s recommended that you use java.time, the modern Java date and time API, for your time work. Avoid Date and SimpleDateFormat since they had bad design problems (of which you have only seen a little bit) and have been outdated since Java 8, which came out more than 10 years ago.

The correct way to do your conversion depends on whether your string in mm ss.S format denotes an amount of time or a time of day since these concepts are represented by different java.time classes. You would confuse your reader if you used the wrong one.

Converting an amount of time

Since your string does not include any hours, I considered an amount of time up to one hour more likely. For that we need the Duration class. Duration isn‘t very well suited for parsing, so we have a little hand work to do:

    String amountOfTimeString = " 14 37 485";
    String[] parts = amountOfTimeString.trim().split(" ");
    Duration duration = Duration.ofMinutes(Integer.parseInt(parts[0]))
            .plusSeconds(Integer.parseInt(parts[1]))
            .plusMillis(Integer.parseInt(parts[2]));
    System.out.println("Duration: " + duration);
    double seconds = duration.toSeconds() + duration.getNano() / NANOS_PER_SECOND;
    System.out.println("Seconds: " + seconds);

Output from this snippet is:

Duration: PT14M37.485S
Seconds: 877.485

So 877.485 seconds, a positive number as expected. If you like, you may use the first line of output to verify that parsing is correct: PT14M37.485S means 14 minutes 37.485 seconds, which agrees with the input string of 14 37 485.

Converting a time of day

For a time of day we need the LocalTime class. It can parse your string with the help of a DateTimeFormatter. So declare:

private static final DateTimeFormatter TIME_PARSER
        = new DateTimeFormatterBuilder()
                .appendPattern(" mm ss ")
                .appendValue(ChronoField.MILLI_OF_SECOND)
                .parseDefaulting(ChronoField.HOUR_OF_DAY, 0)
                .toFormatter(Locale.ROOT);

public static final double NANOS_PER_SECOND = Duration.ofSeconds(1).toNanos();

Then do:

    String timeOfDayString = " 14 37 485";
    LocalTime time = LocalTime.parse(timeOfDayString, TIME_PARSER);
    System.out.println("Time of day: " + time);

    int wholeSeconds = time.get(ChronoField.SECOND_OF_DAY);
    int nanoOfSecond = time.getNano();

    double secondOfDay = wholeSeconds + (nanoOfSecond / NANOS_PER_SECOND);
    System.out.println("secondOfDay: " + secondOfDay);

Output agrees with the output from before:

Time of day: 00:14:37.485
secondOfDay: 877.485

What went wrong in your code?

Why is it negative?

Is there something wrong with the code?

We don‘t really need to know since we are not using Date and SimpleDateFormat any more -- fortunately! But out of curiosity.

First, the Date class that you tried to use never was able to represent an amount of time. And it could represent a time of day only if you assumed a date and a time zone.

To give a full account of what I think happened in your code I have made some assumptions, but even if the concrete assumptions are not to the point, I still believe that the idea in my explanation is. I assume that you were running your code in a Central European time zone such as Europe/Oslo or Europe/Rome or some other time zone that used UTC offset +01:00 in February 2013. Next I assume you ran your code at 13:14:37.485 before posting your question at 13:44 in your time zone. Or at some other hour where the minutes and seconds were 14:37.485.

Then this happens: new Date() produces a Dateobject representing the current point in time. This is formatted into a String of 14 37 485. This string is parsed back into a Date of Thu Jan 01 00:14:37 CET 1970 because defaults of 1970-01-01 and your default time zone are confusingly applied. The getTime method returns the number of milliseconds since the start of 1070-01-01 in UTC, the so-called epoch. Because of your UTC offset of +01:00, in UTC the date and time mentioned are equal to 1969-12-31T23:14:37.485Z, so before the epoch. This explains why a negative number comes out. Your observed rsult of -2722.515 corresponds to 45 minutes 22.515 seconds before the epoch, so the time I just mentioned.

Link

Oracle Tutorial trail: Date Time explaining how to use java.time.

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

79175813

Date: 2024-11-10 21:11:04
Score: 4.5
Natty:
Report link

I am newbie too and I am commenting purely to be able to see the answers to your question. Maybe if the results are too large(providing this is not a red herring error) you should try splitting your list of dictionaries into smaller chunks and iterate over it? Hoping for some decent answers for you :)

Reasons:
  • RegEx Blacklisted phrase (1.5): I am new
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kitkat-pixel

79175800

Date: 2024-11-10 21:04:02
Score: 0.5
Natty:
Report link
$spl = 'apples?'
'This apple for you', 'This apples for you' | ForEach-Object { $_ -split $spl }

enter image description here

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

79175777

Date: 2024-11-10 20:51:00
Score: 0.5
Natty:
Report link

Your WeatherRepository method getWeather(city) should return just String. And fetchWeatherDate(city) method should look like:

public void fetchWeatherData(String city) {
    String weatherString = repository.getWeather(city);
    weatherResult.setValue(weatherString);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: iramm

79175773

Date: 2024-11-10 20:50:00
Score: 1
Natty:
Report link

You can simply add an additional set of brackets:

#table([[My text]])
// Or with content-style function call:
// #table[[My text]]

If you wanted to use raw strings, the text field has the unstyled content:

#table(`[My text]`.text) // Same result

Command output

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

79175767

Date: 2024-11-10 20:47:59
Score: 2.5
Natty:
Report link

FOR STM32CUBE IDE To ensure all compilation units use the same DWARF version, you need to specify your desired DWARF version in the compiler options of your compiler settings. DWARF is primarily a debugging format used in compiling and debugging programs. The method for doing this is shown in the following 3 screenshots.

enter image description here

enter image description here

enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mustafa Ergül

79175762

Date: 2024-11-10 20:45:58
Score: 2
Natty:
Report link

caused by https://github.com/textmate/html.tmbundle/issues/113

escape the 2nd slash \/ as a workaround
<div onclick="window.open('https:/\/example.com')">

fix

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

79175749

Date: 2024-11-10 20:41:57
Score: 1
Natty:
Report link

You would get the same error locally by building it with next build.

Route Handlers have a different signature with App Router, see the official docs. If you rely on your response, try awaiting it from the request as follows:

export const POST = async (req: NextRequest) => {
  const data = await req.json();
  const { params } = await data as MyResponse;

  if (!params || !params.action)
    return NextResponse.json({ success: false, message: "Incorrect usage" });

  const action = params.action;
  ...
};
Reasons:
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • High reputation (-1):
Posted by: sm3sher

79175730

Date: 2024-11-10 20:34:56
Score: 2.5
Natty:
Report link

For me issue was I did not put my actual code inside functions folder I was uploading from root folder,,,placing actual code inside functions code solved my issue!!

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

79175726

Date: 2024-11-10 20:33:56
Score: 2
Natty:
Report link

I found a previous answer suggesting adding the attribute to the web component class directly. This works very nicely:

    override render() {
        this.slot = `button-icon-${this.position}`;
        return html`<span>*</span>`
    }
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SmujMaiku

79175724

Date: 2024-11-10 20:32:56
Score: 3
Natty:
Report link

This issue was resolved by upgrading python3 to python version 3.12.7 and re-installing firebase-admin.

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

79175718

Date: 2024-11-10 20:30:55
Score: 3.5
Natty:
Report link

Maybe it will help you to connect workflow variables to Transfer Files node? I see that in the node there is a tab "Flow Variables" where you can specify source location - path.

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

79175710

Date: 2024-11-10 20:28:55
Score: 0.5
Natty:
Report link

I had the same issue and found the nmake in the following directory

C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64

inside the MSVC directory i found two versions installed and the only added the latest version to my PATH environment variableenter image description here

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mostafa Farrag