79106840

Date: 2024-10-20 10:34:32
Score: 0.5
Natty:
Report link

In MySQL, the LIMIT clause does not support named parameters like (:paramName). you should use positional parameters (?N), where N is the position of the argument in the method signature.

eg:

@Query(value = "SELECT q.id FROM question q WHERE q.category = :category ORDER BY RAND() LIMIT ?5", nativeQuery = true)
List<Integer> findRandomQuestionsByCategory(@Param("category") String category, int numQ);
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Naren D

79106836

Date: 2024-10-20 10:34:32
Score: 4
Natty:
Report link

in the menu Build -> Rebuild Project

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Naghi Khalilnejad Kiasari

79106832

Date: 2024-10-20 10:32:31
Score: 2.5
Natty:
Report link

Sorry what is the single cluster endpoint? Something like this?

clustercfg.xxxx-redis.xxx.xxx.cache.amazonaws.com:6379

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

79106823

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

check your UID in WSL(not in container):

$ echo $UID
1001

here my non-root user UID in WSL is 1001 because I added an extra user long time ago,
so in laravel .env add:

WWWGROUP=1001
WWWUSER=1001

now sail user in devcontainer will have the same UID as my normal user in wsl problem fixed without using chown

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

79106819

Date: 2024-10-20 10:26:30
Score: 1
Natty:
Report link

You need to set name for activity attribute explicitly:

[Activity(
    Label = "CastHub",
    Name = "App.Name.MainActivity",
    LaunchMode = LaunchMode.SingleInstance,
    ScreenOrientation = ScreenOrientation.Landscape,
    Icon = "@mipmap/icon",
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: MacFIsh

79106817

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

When Priority is hosted on Prioity cloud, the parameter tabulaini won't be just 'tabula.ini'.

It should be a specific string for your account.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Matan Yardeni

79106794

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

I wanted to thank everyone who helped me find a solution. The original problem was to deploy my C# application together with a firebirdsql instance as a service (and connect to it) installing everything from a single file and single click. I ended up using InnoSetup (which I had never used). I of course added all the application ddl + my firebird.FDB database and the Firebird installation file Firebird-5.0.1.1469-0-windows-x64.exe. The setup first installs only my C# application in which the Setup procedure starts the Firebird .exe file and connects the database that I find in the app's installation dir. Before installing, I check that there is no Firebird already installed.

This is the code to check if there is an active firebird service

foreach (ServiceController s in ServiceController.GetServices())
    {
        if (UCase(Strings.Mid(s.ServiceName, 1, 8)) == "FIREBIRD") // AndAlso s.Status = ServiceControllerStatus.Running
        {
            switch (s.Status)
            {
                case 4: // ServiceControllerStatus.Running
                    {
                       // to do something
                    }
                case 1: // ServiceControllerStatus.Paused
                    {
                        // to do something
                    }
            }
        }
    }

This is the code to silently install Firebird as Service:

 string appPath = Path.GetDirectoryName(Application.ExecutablePath);
    string exedinstall = "Firebird-5.0.1.1469-0-windows-x64.exe";
    string installFile = appPath + @"\" + exedinstall;
    string Arguments = @"/SP- /SILENT /SUPPRESSMSGBOXES /NOCANCEL  /NORESTART/MERGETASKS='UseSuperServerTask\CopyFbClientAsGds32Task'/SYSDBAPASSWORD='masterkey'/FORCE";     
    var installerProcess = new Process();
    installerProcess.StartInfo.CreateNoWindow = true;
    installerProcess.StartInfo.RedirectStandardOutput = true;
    installerProcess = Process.Start(installFile, Arguments);

    while (installerProcess.HasExited == false)
    {
        // indicate progress to user 
        Application.DoEvents();
        System.Threading.Thread.Sleep(250);
    }

I am not a professional and there may be some formal errors, but I will be very happy if this code can help someone. Thanks again everyone

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: L.Andrea

79106783

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

To install an APK from your PC onto your Android device, you can follow these methods:

  1. Using ADB (Android Debug Bridge): ADB allows you to install APK files via command line:

First, ensure you have enabled "Developer Options" and "USB Debugging" on your device. Download and install ADB on your PC. Connect your Android device to your PC via USB. Open a command prompt or terminal, navigate to the folder where your APK file is stored, and run

Code

This will install the APK on your device.

  1. Using File Transfer and Manual Installation: Another simple method is to manually transfer the APK file to your phone and install it:

Connect your Android phone to your PC via USB. Transfer the APK file to a folder on your phone (e.g., Downloads). On your phone, navigate to the file location using a file manager, then tap the APK to install it. Make sure to enable "Install from Unknown Sources" in your phone settings. 3. Using Third-Party Apps: There are apps that can help you install APKs from your PC over Wi-Fi or USB, such as AirDroid or Xender.

If you're looking for a reliable place to download APKs, you can visit this APK source to get the files you need before installation.

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

79106771

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

As I did not get any response, I tried to solve it myself. I also found a working solution which I have added in the codepen link.

Here is the link to the working solution - https://codepen.io/gokunik/pen/YzmqQJV

Below is a small snippet

function onPointerDown(e, element) {
  const originalRect = element.getBoundingClientRect();
  const rect = scaleRect(element.getBoundingClientRect(), scale);

  initialCoords = {
    x:
      e.clientX +
      (rect.right - e.clientX) +
      (e.clientX - originalRect.right) * scale,
    y:
      e.clientY +
      (rect.bottom - e.clientY) +
      (e.clientY - originalRect.bottom) * scale,
  };
  draggedPreview = element;
  translateDragPreview(e.clientX, e.clientY);
}

Approach used to solve the question.

I used a simple approach. I initially thought about this while solving this but did not pursue it then but it worked when I tried it now.

So the idea is the element is scaled down when it is dragged so it's either shrinks or increases in size, changing it's rect values like x, y, top, left etc which displaces the dragged element which needs to be adjusted. So first I added a function to give me a updated rect for a element when scaling is applied. Now I have the rect of both original and dragged scaled element.

If you notice in the screenshot I have shared, the scaled element shrinks and increases in size by maintaining it's centre with the original element so first I tried to align the scaled element edges with the initial point of click using (rect.right - e.clientX) and (rect.bottom - e.clientY) which just aligned the element to the bottom right corner.

Now All I had to do is to find where the click has happened in the original rect and scale it down for the updated scaled rect. So I repeated the same same thing and multiply it with the scale value (e.clientX - originalRect.right) * scale and (e.clientY - originalRect.bottom) * scale so it adjust it according to the scaled element.

I hope you find this helpful. I did not find the answer to this problem no where on the internet that's why I'm sharing it here.

Reasons:
  • Blacklisted phrase (1): Here is the link
  • Whitelisted phrase (-1): it worked
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: GokuNik

79106768

Date: 2024-10-20 10:01:25
Score: 0.5
Natty:
Report link
// CSS 1
/**
 * Button 02
 */
.btn--2{
  background: #232426;
  overflow: hidden;

  .btn__text{
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    width: 100%;
    height: 100%;
    line-height: 45px;
    transition: top $time;
  }

  &::after{
    position: absolute;
    top: 100%;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    line-height: 45px;
    background-color: $color-red;
    content: "Click!";
    transition: top $time;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
  }

  &:hover::after{ top: 0; }
  &:hover > .btn__text{ top: -100%; }
}


// HTML 1

<div>
      <span>02</span>
      <button type="button" class="btn btn--2"><span class="btn__text">Button</span></button>
    </div>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27894284

79106765

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

In 2024, to increase the default limit globally, you can do:

import { EventEmitter } from 'events'
EventEmitter.defaultMaxListeners = 20
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vitor Barbosa

79106762

Date: 2024-10-20 09:59:24
Score: 1.5
Natty:
Report link

I don't know how your project is structured. If the symbol you're missing is from a compiler lib, like GCC, you need to create a new project with all the h files from the compiler install dir, and later add it (the project) as additional symbols in the project settings (look for "import symbols").

Sometimes a declaration of a symbol uses a macro that interferes with the parsing, you need to add the macro the C.tom file so the parser will disregard it. Look for token file in the SI help.

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

79106760

Date: 2024-10-20 09:58:24
Score: 2
Natty:
Report link

Solved. I had a javascript error in the basic code wich only appeared as error in Javascript for IPad. (Date conversion error) The rather poor error reporing in chrome://inspect made me go in the wrong direction. And the code is now working.

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

79106757

Date: 2024-10-20 09:55:23
Score: 1
Natty:
Report link

No. No. No.

Only the new versions of Android Studio with a service pack magically correct these moronic, incomprehensible errors!

No need to build a garden - adding even more garbage to the project!

Only new versions of Android Studio miraculously fix such errors!

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

79106756

Date: 2024-10-20 09:55:23
Score: 1
Natty:
Report link

The error you're encountering, Runtime error -2147221020 (800401e4) Automation error Invalid Syntax, typically indicates that the GetObject function is not able to retrieve the active SAP GUI

  1. Check SAP GUI Scripting is Enabled
  2. Ensure SAP Logon is Running as Administrator
  3. Use CreateObject Instead of GetObject Set SapGuiAuto = CreateObject("SAPGUI") If Not IsObject(SapGuiAuto) Then MsgBox "SAP GUI could not be started." Exit Sub End If
  4. Check if SAP GUI is Running
  5. Verify 64-bit vs 32-bit
  6. Reinstall SAP GUI
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ishika Nahar

79106755

Date: 2024-10-20 09:55:21
Score: 8.5 đźš©
Natty: 6
Report link

How did you manage to get the response after clicking on Googe login? In my case, I have tried it and everytime I click on Google login, it redirects me to Sign in with Google but it shows me error: Access Blocked: Authorization Error.

any idea?

Reasons:
  • Blacklisted phrase (1): any idea?
  • RegEx Blacklisted phrase (3): did you manage to get the
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How did you
  • Low reputation (1):
Posted by: Taha Sheikh

79106721

Date: 2024-10-20 09:36:17
Score: 1.5
Natty:
Report link

Thanks to @Yogi for recommending bootstrap dropdown instead

Using bootstrap Dropdown and jquery, i am able to replicate the select in my question :)

$(document).ready(function (e) {
    $('.dropdown-menu a').on('click', function () {
        var selectedOption = $(this).attr("data-value");
        $('#accessListOptions').val(selectedOption); 
        $('.dropdown-item').removeClass('active');  
        $(this).addClass('active');                 
    });
});
.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    width: 100%;
}
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet"
    integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.6.0/css/all.min.css" integrity="sha512-Kc323vGBEqzTmouAECnVceyQqyqdsSiqLQISBL29aUW4U/M7pSPA/gEUZQqv1cwx4OnYxTxve5UMg5GT6L4JJg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
    integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
    crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>

<div class="mb-3">
    <div class="dropdown">
        <label for="access_list">Access List</label>
        <input type="text" class="form-control dropdown-toggle" id="accessListOptions" placeholder="Select an option"
            value="Publicly Accessible" data-bs-toggle="dropdown" aria-expanded="false" readonly />

        <ul class="dropdown-menu" aria-labelledby="accessListOptions">
            <li>
                <a class="dropdown-item active" href="javascript:void(0);" data-value="Publicly Accessible">
                    <i class="fa-solid fa-lock-open" style="color:gold;"></i>&nbsp;Publicly Accessible <br />
                    <span class="text-muted" style="font-size:12px;">No Access Restrictions</span>
                </a>
            </li>
            <li>
                <a class="dropdown-item" href="javascript:void(0);" data-value="Internal Service">
                    <i class="fa-solid fa-lock" style="color:red;"></i>&nbsp;Internal Service <br />
                    <span class="text-muted" style="font-size:12px;">0 Users, 2 Rules - Created: 28 May 2022, 06:14 AM</span>
                </a>
            </li>
        </ul>
    </div>
</div>

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Yogi
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: LogicalDeveloper

79106702

Date: 2024-10-20 09:18:13
Score: 0.5
Natty:
Report link

Thanks Mark - I had to make a minor change as it looks like the .Net tick counter is different to Python. My code looks like:

        public DateTime ExtractTime(string GUID)
        {
            var Parts = GUID.Split('-');           

            // 100-ns intervals since 10/15/1582 00:00:00.  60 bits.
            // Trim off 1st digit of parts[2] as it is the UUID version.
            //           12 bits    +  16 bits + 32 bits
            var HexTime = Parts[2].Substring(1) + Parts[1] + Parts[0];
            var Time = Convert.ToInt64(HexTime, 16);

            var Epoch = new DateTime(1582, 10, 15);
            var Diff = TimeSpan.FromTicks(Time);
            
            return Epoch.Add(Diff);
        }
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nigel Tunnicliffe

79106697

Date: 2024-10-20 09:16:11
Score: 6.5 đźš©
Natty:
Report link

I have a text file which has the following input

ST Loan 2023 RABI DMR Report KOTA DCCB, RAMGANJ MANDI BRANCH BRANCH, KHEEMACH PACS Application No. BL00181453 Bhamashah No. 9999-YA5Z-00007 DMR A/c No. DMR27000000925542 Customer Name SUNITA Father's Name GAJANAND Caste GEN Farmer Type LARGE Crop RABI Share Capital Rs. 9,600.00 Agri Insurance Rs. 3,084.83 Life Insurance Rs. 0.00 Accidental Insurance Rs. 0.00 MCL Amt. Rs. 119,225.00 Sanctioned Amt. Rs. 116,229.00 TRANSACTION DETAILS Transaction Date Description Debit Credit Outstanding Balance (Dr) Remaining Limit 08-02-2024 DR PACS MAIN TO CR SB : 2700711154005777 - TRANSFER WITHDRAW 92,430.00 0.00 92,430.00 23,799.00 28-03-2024 AGRI INSURANCE DR FROM PACSMAIN:27007610640004900 - - 1,296.83 0.00 93,726.83 22,502.17 13-06-2024 CR FROM PACS MAIN:2700761064000490 - MATM AGT CR OR NO BOOK DEPOSIT TRANSFER 0.00 93,726.83 0.00 116,229.00 13-06-2024 DR 3% INT FROM DMR ACCT : DMR27000000925542 - - 962.79 0.00 962.79 115,266.21 13-06-2024 CR 3% INT IN DMR ACCT : DMR27000000925542 - - 0.00 962.79 0.00 116,229.00 13-06-2024 DR 4% INT FROM DMR ACCT : DMR27000000925542 - - 1,283.72 0.00 1,283.72 114,945.28 13-06-2024 CR 4% INT IN DMR ACCT : DMR27000000925542 - - 0.00 1,283.72 0.00 116,229.00

and output something

ST Loan 2023 RABI DMR Report KOTA DCCB, RAMGANJ MANDI BRANCH BRANCH, KHEEMACH PACS | None | None | None | None 09-01-2024 DR PACS MAIN TO CR SB : 2700510574004549 - TRANSFER WITHDRAW 29,809.00 0.00 29,809.00 0.00 | SUNITA | GAJANAND | BL00181453 | DMR27000000925542 31-08-2024 CR FROM PACS MAIN:2700561064000199 - MATM AGT CR OR NO BOOK DEPOSIT TRANSFER 0.00 29,809.00 0.00 29,809.00 | SUNITA | GAJANAND | BL00181453 | DMR27000000925542 31-08-2024 DR 3% INT FROM DMR ACCT : DMR27000000912329 - - 574.19 0.00 574.19 29,234.81 | SUNITA | GAJANAND | BL00181453 | DMR27000000925542 31-08-2024 CR 3% INT IN DMR ACCT : DMR27000000912329 - - 0.00 574.19 0.00 29,809.00 | SUNITA | GAJANAND | BL00181453 | DMR27000000925542 31-08-2024 DR 4% INT FROM- DMR ACCT : DMR27000000912329 - - 765.59 0.00 765.59 29,043.42 | SUNITA | GAJANAND | BL00181453 | DMR27000000925542 31-08-2024 CR 4% INT IN DMR ACCT : DMR27000000912329 - - 0.00 765.59 0.00 29,809.00 | SUNITA | GAJANAND | BL00181453 | DMR27000000925542

Can anyone help me to get the output like this ? Can someone write me the powershell code ?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can anyone help me
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rayan Khan

79106680

Date: 2024-10-20 09:03:05
Score: 6.5 đźš©
Natty: 6.5
Report link

I am also suffering from this error>> please help !!

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bhaskar Katara

79106678

Date: 2024-10-20 09:01:04
Score: 3.5
Natty:
Report link

I think you forgot to change FILESYSTEM_DISK in .env

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

79106677

Date: 2024-10-20 09:01:04
Score: 0.5
Natty:
Report link

If node was installed fresh, something that I ran into on Windows was the following needed to be done before it worked in PATH:

nvm on
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gurtaj Chhabra

79106673

Date: 2024-10-20 08:58:04
Score: 0.5
Natty:
Report link

I know it has been over a decade, but I found this question by explicitly searching to see if there was anyone out there who had asked such a question.

I find its existence both funny and heart-warming, and the responses cause me to wonder if one factor keeping more people from asking such a question is the obvious self-answer of "well, the output of tree is meant for humans."

And while that is certainly correct, it hasn't - for me - stopped the question from popping into my head several times (over many years, but still.) For example, what if OP did not have access to a filesystem like the answer using the find command requires, but like OP stated "This tree output is saved in a file" and the user wants to parse this file, which those find commands will not do.

So... I ended up spending way more time than expected or intended solving this problem, so the time-value/cost-benefit ratios are not in favor of the resulting tool. As such, I thought that since I will never likely correct that value imbalance with my own usage, that I would set about to see if anyone else had searched for a solution to the problem of parsing tree output from some document, and creating the directories and (empty) files represented in this tree on a filesystem.

So, in the interest of retroactively recouping the time/effort spent with collective time/effort saved, I would like to present this new tool, which you can run from bash, or even from vscode (I already admitted to spending too much time on this): https://github.com/scottvr/eert

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

79106672

Date: 2024-10-20 08:56:03
Score: 4
Natty:
Report link

requests.exceptions.TooManyRedirects: Exceeded 30 redirects.i have this problem during processing InSAR data by licsbas

Reasons:
  • Blacklisted phrase (1): i have this problem
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shaukat Parvaiz

79106671

Date: 2024-10-20 08:55:02
Score: 1.5
Natty:
Report link

For me, the issue was that my Fragment class was extended from android.app.Fragment

Instead of androidx.fragment.app.Fragment

android.app.Fragment does not have registerForActivityResult callback.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Hassaan J.

79106670

Date: 2024-10-20 08:54:02
Score: 0.5
Natty:
Report link

Geometry does not have such attributes as color or style. Those are provided when you draw or fill it, with DrawGeometry/FillGeometry. So no, it's not possible to set color for the geometry segments at all.

If you need to switch styles or colors you'll need to have multiple geometries, and several draw/fill calls. It's possible to pack those in a single command list.

Reasons:
  • No code block (0.5):
Posted by: bunglehead

79106668

Date: 2024-10-20 08:51:02
Score: 2
Natty:
Report link
STR([year]) + '-' + STR([year]+1)

Place this calculated field in x-axis

Upvote if you got solution

Reasons:
  • Blacklisted phrase (0.5): Upvote
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Likhith R Gowda

79106667

Date: 2024-10-20 08:51:02
Score: 3.5
Natty:
Report link

There's a series on Visual Code with a lesson dedicated to debugging:

https://laracasts.com/series/visual-studio-code-for-php-developers/episodes/13

or check this post you may find something helpfull Here

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

79106666

Date: 2024-10-20 08:50:01
Score: 1
Natty:
Report link

I had made a console text editor, in which I had to detect ctrl+s to save the document. My code was something like this:

int d;
while(true){
  if(_kbhit()){
    d=_getch();
    if(d==19){
      // code for when ctrl+s is hit  
    }
    // condition for other keys
  }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Umer Baig

79106661

Date: 2024-10-20 08:44:00
Score: 1
Natty:
Report link

Disabling reCaptcha fully is not possible/recommended now. But you can minimize this by downgrading your dependence. Now if the user solves the puzzle once then the puzzle will not come from the next time.

convert your browser dependence into:

implementation 'androidx.browser:browser:1.2.0'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Akash Das

79106644

Date: 2024-10-20 08:31:58
Score: 5.5
Natty:
Report link

phải anh Phú khôngggggggggggggggggggggggggggggggggg

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): gggggggggggggggggggggggggggggggggg
  • Low entropy (1):
  • Low reputation (1):
Posted by: Aquarius

79106628

Date: 2024-10-20 08:19:56
Score: 1
Natty:
Report link

After git merge Click the "pen" icon at the bottom left of the screen:

Pending changes button

You will see a panel showing files having merge conflict, select any to open the merge editor. Save and close the file after you resolved conflict(s), a dialogue will appear telling you to accept the merged result, then click OK.

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

79106622

Date: 2024-10-20 08:14:54
Score: 2
Natty:
Report link

I agree with @steoleary. "ISSorted" property doesn't really sort the data. You should use Sort component. I had the same issue and I received null values. when I used Sort Component instead of "IsSorted" property of Data source my data returned the correct values.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @steoleary
  • Low reputation (1):
Posted by: Frn

79106589

Date: 2024-10-20 07:45:50
Score: 0.5
Natty:
Report link

You might have deleted this file. To re-instantiate it properly, run npx husky install.

It will not just add the husky.sh but also the necessary .gitignore in _.

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

79106585

Date: 2024-10-20 07:44:50
Score: 3
Natty:
Report link

best bet is to use a popular algorithm such as RSA, DES, Blowfish, etc.

Many (most?) popular encryption algorithms are supported by the

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

79106580

Date: 2024-10-20 07:40:49
Score: 3
Natty:
Report link

how do it work for yours?

long _fixLastScan = 0;
String _fixTargetAddress = null;

final ScanCallback _fixCallback = new ScanCallback() {
    @SuppressLint("MissingPermission")
    @Override
    public void onScanResult(int callbackType, ScanResult result) {
        BluetoothDevice seek = result.getDevice();
        String addr1 = seek.getAddress();
        if (addr1 != null) {
            if (addr1.equals(_fixTargetAddress)) {
                debug("trying fix Reconnect " + _fixScanner  + " seeking " + addr1);
                seek.connectGatt(context, false, BleMidiCentralCallback.this).connect();
            }
        }
    }
};

BluetoothManager _fixBluetoothManager = null;
BluetoothAdapter _fixbluetoothAdapter = null;
BluetoothLeScanner _fixScanner = null;
List<ScanFilter> _fixFilters = null;

@SuppressLint("MissingPermission")
public void stopFixScan() {
    debug("stop fix Reconnect");

    if (_fixScanner != null) {
        _fixScanner.stopScan(_fixCallback);
        _fixScanner = null;
    }
}

public void reconnect(BluetoothDevice device) throws  SecurityException{
    _fixTargetAddress = device.getAddress();
    debug("need fix Reconnect");

    if (_fixBluetoothManager == null || _fixScanner == null) {
        _fixBluetoothManager = (BluetoothManager) context.getSystemService(Context.BLUETOOTH_SERVICE);
        _fixbluetoothAdapter = _fixBluetoothManager.getAdapter();
        _fixScanner = _fixbluetoothAdapter.getBluetoothLeScanner();
        _fixFilters = BleMidiDeviceUtils.getBleMidiScanFilters(context);
    }

    if (_fixLastScan != 0 && _fixLastScan + 30000 > System.currentTimeMillis()) {
        //nothing
    }else if (_fixLastScan != 0) {
        _fixScanner.stopScan(_fixCallback);
        new Handler(Looper.getMainLooper()).postDelayed(() -> {
            reconnect(device);
        }, 1000);
        _fixLastScan = 0;
    }else {
        _fixLastScan = System.currentTimeMillis();

        ScanSettings scanSettings = new ScanSettings.Builder()
                .setLegacy(false)
                .setScanMode(ScanSettings.SCAN_MODE_BALANCED)
                .setMatchMode(ScanSettings.MATCH_MODE_AGGRESSIVE)
                .setCallbackType(ScanSettings.CALLBACK_TYPE_ALL_MATCHES)
                .build();

        _fixScanner.startScan(_fixFilters, scanSettings, _fixCallback);
    }
}

private volatile static Object gattDiscoverServicesLock = null;
@Override
public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) throws SecurityException {
    debug( "onConnectoinStateChange " + status + " -> " + newState);
    // In this method, the `status` parameter shall be ignored.
    // so, look `newState` parameter only.
    if ((status == 133 && newState == 0) || (newState == 8)) {//both timeout
        gatt.close();
        new Handler(Looper.getMainLooper()).postDelayed(() -> {
            BluetoothDevice device = gatt.getDevice();
            reconnect(device);
        }, 5000);
        return;
    }

    if (newState == BluetoothProfile.STATE_CONNECTED) {
        stopFixScan();
        //do something
    } else if (newState == BluetoothProfile.STATE_DISCONNECTED) {
    }
}
Reasons:
  • Blacklisted phrase (1): how do i
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): how do it
  • Low reputation (1):
Posted by: SynthTAROU

79106579

Date: 2024-10-20 07:40:49
Score: 5.5
Natty:
Report link

heloo con cacccccccccccccccccccccccccccccccccccccc

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Filler text (0.5): cccccccccccccccccccccccccccccccccccccc
  • Low entropy (1):
  • Low reputation (1):
Posted by: Aquarius

79106578

Date: 2024-10-20 07:39:48
Score: 4.5
Natty:
Report link

helo fdhfdhaskjhfkjdsahkjfhsiodjf vcnđ

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

79106577

Date: 2024-10-20 07:39:48
Score: 1
Natty:
Report link

Managed to get this fixed by ensuring the transforms in the y direction accounted for the centre grey circle's offset in the y direction like so:

           g.TranslateTransform(CentreScene.X, CentreScene.Y + RodLength + CompressionHight);
           g.RotateTransform(315); // Use first piston tilt angle
           g.TranslateTransform(-CentreScene.X, -CentreScene.Y - RodLength - CompressionHight);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MajedKM

79106575

Date: 2024-10-20 07:36:47
Score: 2.5
Natty:
Report link

I came across similar problem, it is because since the process.env is only accessible on the server side the client sdk can not get access to those variables, its better to leave the firebase config as it is and control who/what domains can read/write on your database from the console.

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

79106569

Date: 2024-10-20 07:33:46
Score: 2
Natty:
Report link

You have a fixed navbar that is too wide.

You can add another anchor to an element with no text(or hidden) in it before the actual header you want to jump to - but this is crappy solution. - or by having the bar shrink once you’ve scrolled past its initial appearance.

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

79106568

Date: 2024-10-20 07:33:46
Score: 2
Natty:
Report link

Remove proxy_set_header Host $host; from server_3, it is giving server_2 the wrong server name.

From Richard Smith comment

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

79106563

Date: 2024-10-20 07:26:43
Score: 6 đźš©
Natty: 5.5
Report link

@nonopolarity All the answers are focusing on just replying to a part of your question i.e. why does react use a virtual dom. But what about the question that After the text changed to “hi” in the actual DOM why did react not change the text back to its original state when the button is clicked after 3 seconds? The virtual dom in react’s memory would have the original text then why didn’t it change in the re-rendering?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @nonopolarity
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Intangible _pg18

79106560

Date: 2024-10-20 07:23:42
Score: 1
Natty:
Report link

enter image description here

Sometimes it is a problem with the Java version. You can try changing the Java version that comes with the editor.

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Albert.Qing

79106559

Date: 2024-10-20 07:23:42
Score: 1
Natty:
Report link

I found this problem very interesting , I took a local copy and checked , I have added below snippet into the css and it is working perfectly fine.

h2 {
    scroll-margin-top: 102px; // header min height 62px + padding bottom 40px
}

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

79106551

Date: 2024-10-20 07:17:41
Score: 2.5
Natty:
Report link

I experienced the same thing on ios.

I have implemented autoAcceptAlerts: true, permissions: { photos: "yes" }

but it still fails

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Satria Tho'at

79106544

Date: 2024-10-20 07:15:41
Score: 3
Natty:
Report link

S3 website endpoint requires public access

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

79106538

Date: 2024-10-20 07:11:40
Score: 2
Natty:
Report link

I faced this issue, while trying to install the Unreal Engine on Ubuntu. The main culprit in the whole log was:

Unhandled Exception: SIGSEGV: invalid attempt to write memory at address 0x0000000000000003

This error line indicates that an unhandled exception has occurred, specifically a segmentation fault (SIGSEGV) caused by an invalid attempt to write to memory.

So, I resolved it by installing in a folder where I have all the permissions to read, write and Execute.

Because even if you try to give permissions and install in the current folder, you might face same issue while trying to build the project or deploy your game like here. So it is better to change the installation to a folder where you have all the necessary permissions.

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): face same issue
  • Filler text (0.5): 000000000000000
  • Low reputation (1):
Posted by: Shabbir khan

79106537

Date: 2024-10-20 07:10:40
Score: 2.5
Natty:
Report link

on what condition you are differentiating the sheet1 and sheet2. based on that condition create a calculated field like this

put that calculated field in color marks

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Likhith R Gowda

79106530

Date: 2024-10-20 07:09:40
Score: 1.5
Natty:
Report link

I was also having the same error, where I am inheriting key fro, BaseEntity class. To resolve this just add

'[DatabaseGeneratedAttribute(DatabaseGeneratedOption.Identity)]'

on the BaseEntity class or wherever your primary key is

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

79106529

Date: 2024-10-20 07:09:40
Score: 2.5
Natty:
Report link

After some debugging, I found that

When setState is called, React will schedule a micro task to rerender.

The assumption is wrong.

For more details, check https://github.com/facebook/react/issues/31182#issuecomment-2421205201

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

79106521

Date: 2024-10-20 07:05:39
Score: 2
Natty:
Report link

First of all FATAL is client side error so try to check and try to match server and client time zone like i fix this

i am using spring boot App

i just add

TimeZone.setDefault(TimeZone.getTimeZone("Asia/Kolkata"));

in mainfile of spring boor app..

to set my request timezone and match with my server timezone.

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

79106503

Date: 2024-10-20 06:52:36
Score: 3.5
Natty:
Report link

Update: Out of curiosity I gave this error logs to chat GPT and it told me to install Visual C++ redistributable as part of its 10 steps solution, luckily I decided to re-install my latest C++ redistributable and fortunately emulator started working.

redistributable

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shaheen N S

79106501

Date: 2024-10-20 06:50:35
Score: 2
Natty:
Report link

Based on this comment https://github.com/NixOS/nix/issues/7165#issuecomment-1309220847 and https://www.tweag.io/blog/2022-09-22-rust-nix/

Define a package all:

packages.all = pkgs.symlinkJoin {
  name = "all";
  paths = [ packages.a packages.b packages.c ];
};
default = packages.all;
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Peter Becich

79106492

Date: 2024-10-20 06:44:34
Score: 1.5
Natty:
Report link

The API key must be registered with the full host, including the port if using a non-standard port. If you're using localhost:8080, enter this whole host during the API key registration.

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

79106491

Date: 2024-10-20 06:44:34
Score: 3.5
Natty:
Report link

A variable created with let on global space is present on the separate scope called script scope, even its present in the script tag in HTML or an external JS file. enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Raghavendra Malagi

79106490

Date: 2024-10-20 06:44:34
Score: 0.5
Natty:
Report link

This online retailer’s Domain seems to be composed of these four primary Subdomains: Product Catalog, Orders, Invoicing, and Shipping. enter image description here

Notice that at this time just three physical systems exist to realize this retailer’s Domain, only two of which are hosted internally. Those two internal systems represent what we might think of as two Bounded Contexts.

Reasons:
  • No code block (0.5):
Posted by: Hany

79106485

Date: 2024-10-20 06:41:34
Score: 3
Natty:
Report link

color of possible ways. color of ture tone. behind blunders of trinity. ways to blend.

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

79106480

Date: 2024-10-20 06:39:33
Score: 1.5
Natty:
Report link

If you can't find a GameMode, you can create it using either C++ class or Blueprint class. If you are familiar with C++, then go ahead with it. But if you are beginner, I suggest to go with blueprints and understand the GameMode concept. Once the GameMode has beed customized, assign your GameMode to the project through "Project Settings" -> "Maps and Modes" -> "Default GameMode".

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

79106447

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

Aap isko name se team create na kare algorithm se kre it means numbers 🔢 se aapka solution ho jayega aap agar or koi madad chahate he mujhse contact kar skte he 9928147865 is number par

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

79106445

Date: 2024-10-20 06:11:28
Score: 3.5
Natty:
Report link

The problem is resolved by creating the project switching from using SwiftUI to storyboard. Then manually remove the storyboard references.

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

79106442

Date: 2024-10-20 06:08:27
Score: 4.5
Natty:
Report link

Just use this library, it will handle everything for you. Read the docs and implement https://github.com/CodeWithTamim/NasaDownloader

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tamim Hossain

79106439

Date: 2024-10-20 06:06:27
Score: 1
Natty:
Report link

There are mentions here of the fact you can create an empty project from the command line but I also want to add this can be done in Android Studio as well.

When you are going through the "New Flutter Project" dialog, when you get to the screen where you name your project there is a field for "Project type".

Just select the option "Empty Project" and click on the "Create" button.

Flutter New Project

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Net-worker

79106432

Date: 2024-10-20 05:57:25
Score: 0.5
Natty:
Report link

Based on JF Bastien's 2018 CppCon talk:

Many (most?) integer overflows are bugs—not just because they open the door to undefined behavior, but also because, even if the overflow was defined to wrap, the code would still be wrong.

Your compiler and other tools could help you find these bugs by trapping on overflow, which is allowed because overflow is UB, so the compiler can do whatever it wants. If the behavior were defined, the compiler wouldn't have the flexibility to help.

Thus the standard declares that the representation shall be two's complement. It does not require define how the arithmetic operations should behave when there's an overflow because there is no good solution that works for everyone.

If the standard were to define overflow behavior, how should it define it? Many would want/expect wrapping, but others would find trapping more useful, and saturation can be useful in several domains. Since programmers can make C++ classes that behave like arithmetic types, you could have a library of integer-like types that implement whatever overflow policy you like. If you know that your code will never overflow, why should you pay the overhead of any of those behaviors?

Reasons:
  • Blacklisted phrase (1): how should i
  • Long answer (-1):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Adrian McCarthy

79106429

Date: 2024-10-20 05:55:25
Score: 2
Natty:
Report link

Another option would be to use this libary:

CTkTable

But I only would use that, when you don't have a lot of data.

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

79106428

Date: 2024-10-20 05:52:24
Score: 2
Natty:
Report link

Although marked answer worked for me I’ve found this solution better. No need to iterate with for loop every time new control group is added.

https://stackoverflow.com/a/45249752/8679394

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dozobus

79106424

Date: 2024-10-20 05:45:23
Score: 1
Natty:
Report link

Juts do not use official MySQL Docker image, it full of bugs.

Use bitnami/mysql Docker image

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Igor

79106417

Date: 2024-10-20 05:39:21
Score: 1.5
Natty:
Report link

I recently started working on upgrading my xamarin.android app to Maui, even though it is only for Android. The reason for this is that support for Xamarin has now officially ended. I would continue using xamarin.android, but I figured with no more support, the only way to plan for the future is to get the upgrade over with ASAP. There are some useful documents available at Xamarin.com (although I haven't actually had a chance to start working on them yet), but hopefully they will help. Good luck!

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nathan Sokalski

79106411

Date: 2024-10-20 05:31:19
Score: 4.5
Natty:
Report link

pip install --upgrade jupyter-lsp

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

79106406

Date: 2024-10-20 05:21:17
Score: 0.5
Natty:
Report link

The release notes of Expo SDK 51 discuss the situation with Expo Go and how to work with older versions of the SDK. It specifically mentions that the updated Expo Go in the AppStore no longer supports SDK 49 and SDK 50, and how to deal with that.

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

79106399

Date: 2024-10-20 05:12:15
Score: 1
Natty:
Report link

With a 90-day incremental refresh configured, the 100-day old record would not be picked up because it's outside the refresh range. The existing record from a previous refresh will remain unchanged.

The Detect Data Changes section of the incremental load documentation indirectly lists approaches to this issue when it addresses cardinality and memory consumption:

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

79106391

Date: 2024-10-20 05:02:13
Score: 3
Natty:
Report link

You are using simple moving average, try using Wilder's smoothing. Using this I was able to get the correct values.

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

79106390

Date: 2024-10-20 05:00:13
Score: 1
Natty:
Report link

I was converting my project from using SQLite "manually" to using EFCore. I still had package references for SQLitePCLRaw.core and System.Data.SQLite.Core which once I removed, deleted the bin/obj folders and rebuilt my dotnet ef migrations add InitialCreate command worked.

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

79106385

Date: 2024-10-20 04:57:12
Score: 3
Natty:
Report link

perhaps you need to begin with: export DISPLAY=:0.0

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

79106379

Date: 2024-10-20 04:52:11
Score: 2.5
Natty:
Report link

To convert your QML WebEngine app to HTML5, avoid using iframes for Google services due to security restrictions; instead, redirect users directly to the sites and consider using Bootstrap for navigation without embedding.

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

79106378

Date: 2024-10-20 04:52:11
Score: 2.5
Natty:
Report link

I'm unsure whether I understood your question, but why not just use the align property? Layout (Modifier = Modifier. align(Alignment.TopStart)) The position of a composable is calculated from its initial alignment. I just implemented a BoundingBox to check whether a composable is inside another, and it depends on its initial alignment. We only need to use a Modifier.graphicsLayer { transformOrigin = transformOrigin.copy(0f, 0f) } for the coordinate system's origin when we use rotation or scale.

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

79106375

Date: 2024-10-20 04:47:11
Score: 3.5
Natty:
Report link

Just use globalThis.window instead of window and its done

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

79106372

Date: 2024-10-20 04:40:09
Score: 1
Natty:
Report link

depending on your application it can be rewritten like this

struct Parameter {
    int min;
    int max;
};

std::map <EnumType, Parameter> parametersMap {
    { FIRST_PARAMETER, { 0, 100 }},
    { SECOND_PARAMETER, { 0, 100 }},
};

int min = parametersMap[FIRST_PARAMETER].min;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dimitre L

79106371

Date: 2024-10-20 04:40:09
Score: 1
Natty:
Report link

I ran into a similar issue. Mine was being caused by my dashboard layout that i was using incorrectly. I'm sure you've tried this but if you are using a custom layout file try removing it or placing a global variable that triggers if the page has already been rendered.

Hope this helps

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Michael Gaud

79106367

Date: 2024-10-20 04:35:08
Score: 5
Natty:
Report link

I don't know but is this pattern you are searching? please let me know I will try to provide another ^(?=[A-Z])(?:(?:[A-Z][a-z0-9!@#$%^&()_+-=,.?;:'"<>/\|`~ ]?)+|\w+)$

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Nymul Islam Moon

79106366

Date: 2024-10-20 04:35:08
Score: 0.5
Natty:
Report link

If your documents exist in MongoDB (MO) but are not being found in the Spring AI Vector Store, there could be several potential issues to investigate:

  1. Document Indexing Vector Representation: Ensure that the documents from MongoDB are properly indexed in the AI Vector Store. For AI search mechanisms to function, they often need vector embeddings of the data (e.g., using models like OpenAI's embeddings or other AI-driven vectorization). If these embeddings are not created or not accurate, the documents won't be found. Index Updates: Ensure that when documents are added or updated in MongoDB, the corresponding vectors in the AI Vector Store are also updated. There might be a delay or failure in synchronizing the data between MongoDB and the vector store.
  2. Vector Store Configuration Misconfiguration: The configuration settings of the Spring AI Vector Store could be incorrect, leading to search queries not executing correctly or vectors not being stored in the first place. Check your Spring configurations for the vector store (data source, indexing configuration, etc.). Indexing Strategy: Some vector stores require specific fields to be indexed. Make sure that the fields you want to search in MongoDB are being properly mapped and indexed in the vector store.
  3. Search Query Query Mismatch: The search query might not be correctly constructed or may not be targeting the right vector space. AI-based vector stores usually work by performing similarity-based searches, so ensure that your query is well-aligned with the vector search methodology. Wrong Search Parameters: Check the search parameters, such as similarity threshold, distance metric, or filtering options, which might prevent relevant documents from being returned.
  4. Data Format or Type Inconsistent Data Format: If the data types or formats between MongoDB and the vector store are inconsistent, this might prevent the AI system from linking the MongoDB documents to their vectorized counterparts. Normalization of Data: Ensure the data is preprocessed (e.g., normalized or tokenized) consistently across both systems so that embeddings in the vector store reflect the true nature of the documents.
  5. Synchronization or Connectivity MongoDB and Vector Store Sync Issues: If your system syncs MongoDB documents to the vector store, there could be issues with the synchronization process. Logs or error reports should indicate whether the sync was successful or if any documents were missed. Connection Problems: If the connection between MongoDB and the vector store is not stable, there may be issues with data retrieval or indexing.
  6. AI Model Issues Embedding Model: The model used to generate the embeddings might not be capturing the content in a way that is conducive to search. You might need to adjust the model or the parameters it uses for generating vectors. Embedding Granularity: If the embedding model used in the vector store works on a different granularity (e.g., document level vs. sentence level), the search might not return the expected documents. Suggested Steps: Verify that documents in MongoDB are being correctly indexed into the vector store. Check the logs for errors related to indexing or search execution. Ensure that the embedding model and search algorithms are properly configured and functioning as expected. Test with simple queries to verify basic search functionality in the vector store.
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Naveen

79106358

Date: 2024-10-20 04:26:06
Score: 0.5
Natty:
Report link

You can also write SCAN() like below to count consecutive non-blank cells:

=SCAN(0,H4:O4,LAMBDA(aggregated,current, (aggregated+1)*(current<>"")))

To find the largest consecutive count, you can also use SORT() and TAKE():

=TAKE(SORT(VSTACK(H3:O3, SCAN(0, H4:O4, LAMBDA(aggregated, current, (aggregated + 1) * (current <> "")))), 2, -1, TRUE), 1, 1)

enter image description here

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

79106356

Date: 2024-10-20 04:26:06
Score: 3
Natty:
Report link

is this fine Best way to read properties in Spring Boot is by using the @Value annotation for individual properties or by binding them to a configuration class using @ConfigurationProperties. This allows for easy injection of property values from application.properties or application.yml into your components, services, or beans.

@Value("${creds}") private String creds;

in application file define creds=32432432432

it will pick value 324324324

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Value
  • User mentioned (0): @ConfigurationProperties
  • Starts with a question (0.5): is this
  • Low reputation (1):
Posted by: Yash

79106355

Date: 2024-10-20 04:25:06
Score: 2.5
Natty:
Report link

1.when you use nextInt() to get your param,you must input a number; 2. as Int ,it has a limited range in [-2147483648 ,2147483647]

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

79106351

Date: 2024-10-20 04:20:05
Score: 0.5
Natty:
Report link

On ChromeOS specifically I installed default-jre using apt and then edited eclipse-inst.ini remove -vm from the bundled java binary plugins/org.eclipse.justj.openjdk.hotspot.jre.minimal.stripped.linux.x86_64_17.0.12.v20240802-1518/jre/bin/java to java instead.

Thus..

-vm
java
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Maarten ten Velden

79106340

Date: 2024-10-20 04:05:02
Score: 3
Natty:
Report link

enter image description hereYou answered your own question. it is because it overflowed. it is like a vintage audio cassette tape counter, after 999 the next number is 000 again. so 2147483647 + 1 = -2147483648

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

79106337

Date: 2024-10-20 04:04:02
Score: 5
Natty:
Report link

i have this error when deploying. {"error":{"message":"Network Error"}}enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (1): i have this error
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Houston Ho

79106335

Date: 2024-10-20 04:00:01
Score: 2
Natty:
Report link

It was a simple answer I should have thought of a while ago. The solution was I pre-generated the 25 geometries (5x5 chunks) and set an ID to them. When the player moved between chunks, the geometry vertices would reset, and add it to a list of geometries that have been untaken. When it was time for the new chunk to be loaded in, a function would spit out the ID to an untaken geometry

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

79106329

Date: 2024-10-20 03:51:59
Score: 0.5
Natty:
Report link

When your sidebar is set to right side, the scroll bar usually appears on the left side. To add the scroll bar to the right side of the sidebar you can achieve it by adding one line of CSS.

direction: ltr;

This will move the scroll bar to the right side

.sideBar {
z-index: 1000;
background: #273c75;
position: fixed;
top: 10px;
left: auto;
padding: 40px 30px;
box-shadow: 0 10px 20px #00000030;
border-radius: 10px;
max-height: 1000px;
width: 120px;
display: flex;
flex-direction: column;
transition: width 0.2s ease;
overflow-y: scroll;
overflow-x: hidden;
direction: ltr;

}

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Ushan Kavishka

79106326

Date: 2024-10-20 03:48:59
Score: 1
Natty:
Report link

In my case I just use :

jupyter-notebook /path/to/note_book.ipynb

That works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tommy Trinh

79106322

Date: 2024-10-20 03:40:57
Score: 2.5
Natty:
Report link

This can be achieved with document generation available on the version 2.1 of the eSignature REST API. Keep in mind it is available in all developer accounts, but must be purchased for production account plans.

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

79106316

Date: 2024-10-20 03:30:56
Score: 1.5
Natty:
Report link

You can follow this example below.

nest g service [path]

example: nest g service modules/users

Output: [rootFolder]/modules/users/users.service.ts

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

79106301

Date: 2024-10-20 03:09:52
Score: 4
Natty: 4.5
Report link

Follow-up Q:

I really like the third solution above :Python wrapper for TradingView's Lightweight Charts library

How is this used for a real-time API datafeed so the candles are built in real time?

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

79106300

Date: 2024-10-20 03:07:52
Score: 0.5
Natty:
Report link

Im my case I got this error because I was running Trino on different port and ip than 8080 and localhost. It turns out the Trino CLI has its own server configuration that can be set using the following bash command : trino --server=http://<trinp-ip>:<port-number>

Once I did that the CLI started working as expected.

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: samsal77

79106297

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

Clearing the Output worked for me! The file was too heavy.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jose Moreira

79106294

Date: 2024-10-20 02:55:50
Score: 2
Natty:
Report link

Based on the RFC 2616 (1999)

10.4.1 400 Bad Request The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Huy Jayden Nguyen

79106290

Date: 2024-10-20 02:53:49
Score: 3
Natty:
Report link

I think it can be easier if you use an ofPolyline object to draw your triangle, apply your transformation in ofPolyline object (rotation, translation) https://openframeworks.cc/documentation/graphics/ofPolyline/#show_rotateDeg https://openframeworks.cc/documentation/graphics/ofPolyline/#show_translate and then use https://openframeworks.cc/documentation/graphics/ofPolyline/#show_inside to test your mouse coordinates and see if it is inside

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

79106278

Date: 2024-10-20 02:40:46
Score: 5
Natty:
Report link

Finally the issue was fixed. I just uninstall the Ladybug version and downgraded to Giraffe (September 2023) version and everything works fine. If you have same problem downgrade your Android Studio.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): have same problem
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Somnath Dash

79106273

Date: 2024-10-20 02:36:45
Score: 1.5
Natty:
Report link

No unfortunately you can't. Tools like npm dedupe or try pnpm, can be used which saves space by sharing dependencies across projects.

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

79106266

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

string query = " select '' as name, 0 as id union Select DISTINCT name, id from Airlines ORDER BY Name ";

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: D.madhusree Madhu