79131753

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

Assuming the implementation of the algorithm is correct. You might be hitting IEEE754 float precision limitations.

In which case you should use the BCMath extension, which handles arbitrary decimals. Using BCMath will be easier and faster in PHP 8.4 as it has a new class that supports operator overloading.

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

79131752

Date: 2024-10-28 00:09:19
Score: 1
Natty:
Report link

My answer might come a bit late, but this seems to be the difference between "Date order" VS "Ancestor order".

The "Date order" makes it that some commits have parent commit being defined before themself, and the sourcetree algorithm then create a branch line that will go down forever because it will never find the parent commit (which is above instead of below)

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

79131738

Date: 2024-10-28 00:00:17
Score: 1
Natty:
Report link

Had to add setZOrderOnTop

    videoView = findViewById(R.id.videoView);
    String videoPath = getIntent().getStringExtra("videoPath");
    videoView.setVideoPath(videoPath);

    mediaController = new MediaController(this);
    mediaController.setAnchorView(videoView);
    videoView.setMediaController(mediaController);
    videoView.setZOrderOnTop(true);
    videoView.start();
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Robert Davila

79131731

Date: 2024-10-27 23:54:15
Score: 2
Natty:
Report link

Don't know exactly what it should look like, but I would try to give the images a height of 80% and let the browser/engine handle the width calculation of the Image.

If that's not what you want to achieve, I need more detailed information on that matter.

By the way: Using inset properties (top, right, bottom, left, ...) without a position attribute can lead to unexpected results in different browsers/engines and should not be rendered as per specification.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sascha Haßler

79131729

Date: 2024-10-27 23:53:15
Score: 3
Natty:
Report link

Here are the THREE locations I've seen:

enter image description here

enter image description here

enter image description here

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Chris Sprague

79131724

Date: 2024-10-27 23:48:14
Score: 2
Natty:
Report link

The way to tackle this question is to use the equation of a circle. The equation of a circle is x^2 + y^2 = r^2. Since you are given r and x, to find y you can simply rearrange this equation. So y = + or - sqrt(x^2+r^2). Now to find whether to use the positive or negative y, you can simply look at the picture. Since y is above the x-axis, it must be positive or y = sqrt(x^2+r^2). Let me know if you have any other questions!

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

79131722

Date: 2024-10-27 23:47:11
Score: 7 🚩
Natty: 5.5
Report link

Всё это ложь, ПРОГРАМИ ДАЖЕ ПЛАТНИЕ ВРУТ

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • No latin characters (3.5):
  • Low reputation (1):
Posted by: Vlad motobloger

79131720

Date: 2024-10-27 23:45:11
Score: 2.5
Natty:
Report link

Since PHP 8.0 there is methods: ZipArchive::setMtimeIndex(int $index, int $timestamp, int $flags): bool or setMtimeName to set on an entry by it's name

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: William Desportes

79131718

Date: 2024-10-27 23:45:11
Score: 4
Natty:
Report link

Here is a condensed version of what I'm trying to accomplish:

Sub functionFa()
    Dim savePath As String, saveName As String, changeDate As String
    Dim countForms As Integer, i As Integer, j As Integer
    
    Dim serialNum As String, lastThree As String, LastThreePlusOneStr As String
    Dim LastThreeInt As Integer, LastThreePlusOne As Integer, k As Integer
    
    changeDate = dateFA.Value
    changeDate = Replace(changeDate, "/", ".")
        
        Set WordApp = CreateObject("Word.Application")
        Set WordDoc = WordApp.Documents.Add
        WordApp.Visible = False
        fileTemplate = Range("A1").Value
        Set WordDoc = WordApp.Documents.Open(fileTemplate)

        If startAt.Value <> "" Then     ‘Start at a number other than 1
            countForms = Val(startAt.Value) + (qtyFA.Value - 1)
            j = startAt.Value
        Else
            countForms = qtyFA.Value
            j = 1
        End If
                
    For i = j To countForms
        
        If incSerialCheck = True Then 'Checkbox on userform to increment entered serial number
            serialNum = serialNumberFAA.Value
            lastThree = Right(serialNum, 3)
            LastThreeInt = CInt(lastThree)
            LastThreePlusOne = LastThreeInt + 1
            LastThreePlusOneStr = CStr(LastThreePlusOne)
            NewSerialNumStr = Left(serialNum, Len(serialNum) - 3) & LastThreePlusOneStr
        Else
            NewSerialNumStr = SerialNumber.Value
        End If
            serialNum = NewSerialNumStr
            Debug.Print NewSerialNumStr  ' for debugging 
        End If
        
            WordDoc.FormFields(1).Result = formTrackingNumber.Value
            WordDoc.FormFields(3).Result = workOrder.Value      
            WordDoc.FormFields(17).Result = NewSerialNumStr
            WordDoc.FormFields(27).Result = dateFA.Value
  
                If ValidFileName(saveName) Then
                    With WordDoc
                        .SaveAs savePath & "\" & saveName & ".docx"
                    End If
            End If
Next i

    WordDoc.Close
    WordApp.Quit
    Set WordDoc = Nothing
    Set WordApp = Nothing
    
    Application.ScreenUpdating = True    
End Sub

And this is the section I'm struggling with. I'm trying to get the serial number to increment and inserted into "WordDoc.FormFields(17)" on EACH form created.

 If incSerialCheck = True Then 'Checkbox on userform to increment entered serial number
            serialNum = serialNumberFAA.Value
            lastThree = Right(serialNum, 3)
            LastThreeInt = CInt(lastThree)
            LastThreePlusOne = LastThreeInt + 1
            LastThreePlusOneStr = CStr(LastThreePlusOne)
            NewSerialNumStr = Left(serialNum, Len(serialNum) - 3) & LastThreePlusOneStr
        Else
            NewSerialNumStr = SerialNumber.Value
        End If
            serialNum = NewSerialNumStr
            Debug.Print NewSerialNumStr  ' for debugging 
        End If

I appreciate everyone's help on this, coding I'm very new to and have limited capacity when writing more complicated things. Please excuse my noobness. Please let me know if what I posted isn't clear

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • RegEx Blacklisted phrase (1.5): I'm very new
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mike

79131693

Date: 2024-10-27 23:24:07
Score: 3.5
Natty:
Report link

Good evening,

just for my curiousity: Are you creating a fresh sonarqube instance per scan? If so, why? :)

If not, just use an authentication token? https://docs.sonarsource.com/

If yes, sounds like you want to do an oidc login with username/password, change the password and login again? Can't understand your flow fully right now.

To change your password by commandline / script, use the api:

curl -u admin:admin -X POST "http://localhost:9000/api/users/change_password?login=admin&previousPassword=admin&password=XXXXXXXXX"

Source, Documentation and Api-Documentation

Best regards

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (0.5): why?
  • Blacklisted phrase (1): Good evening
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sascha Haßler

79131690

Date: 2024-10-27 23:22:07
Score: 1
Natty:
Report link
 // Decode the response body explicitly in UTF-8 to handle special characters
 dynamic responseJson = jsonDecode(utf8.decode(response.bodyBytes));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ndiaga GUEYE

79131688

Date: 2024-10-27 23:21:06
Score: 4
Natty: 5
Report link

Estou usando @inject NavigationManager NavigationManager, adicionei o @rendermode InteractiveServer e funcionou.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @inject
  • User mentioned (0): @rendermode
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rubão

79131687

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

Yes I find this confusing as well. To access the latest state, we need to get it from the store:

const handleSortChange = async (event) => {
  setSort(event.value)  
  console.log(event.value)
  console.log(sortBy) //  event.value != sortBy
  console.log(store.getState().sortBy) // event.value == sortBy
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user2425402

79131686

Date: 2024-10-27 23:20:06
Score: 1
Natty:
Report link
 // Decode the response body explicitly in UTF-8 to handle special characters
  dynamic responseJson = jsonDecode(utf8.decode(response.bodyBytes));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ndiaga GUEYE

79131685

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

Do you guys have any update from this topic ?

I downloaded Tizen Studio and have the same problem on my W11 PC. As a substitute solution, I use a Virtual Machine with W10 to overpass the problem

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: HichamElk

79131675

Date: 2024-10-27 23:12:04
Score: 2.5
Natty:
Report link

@Michal
Thanks for your input. It put me on the right track.
Found the right solution for me.

    if (invoices.Count() == 1)
        {
            qry_order = (int)invoices.FirstOrDefault().orderId;
        }
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Michal
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Paul_412

79131673

Date: 2024-10-27 23:09:04
Score: 0.5
Natty:
Report link

ALX23z thank you for the explanation I adjusted my code and now it works

#include <iostream>
#include <mutex>
#include <condition_variable>
#include <thread>
#include <chrono>

using namespace std;

class Monitor
{
private:
    string line = "";
    mutex mtx;
    condition_variable cv;
    int vowel_count = 0;
    int max_count = 0;

public:
    void AddA(char symbol)
    {
        unique_lock<mutex> lock(mtx);
        cv.wait(lock, [this] { return vowel_count < 3; });

        if (max_count >= 15)
        {
            return;
        }

        line += symbol;
        vowel_count++;
        max_count++;
        cv.notify_all(); 
    }

    void AddBC(char symbol)
    {
        unique_lock<mutex> lock(mtx);
        cv.wait(lock, [this] { return vowel_count >= 3; });

        if (max_count >= 15)
        {
            return;
        }

        line += symbol;
        max_count++;
        vowel_count = 0;
        cv.notify_all();
    }

    string getLine()
    {
        unique_lock<mutex> lock(mtx);
        return line;
    }

    int getVowelCount()
    {
        unique_lock<mutex> lock(mtx);
        return vowel_count;
    }

    int getMaxCount()
    {
        unique_lock<mutex> lock(mtx);
        return max_count;
    }
};

void First(Monitor& monitor)
{
    while (true)
    {
        if (monitor.getMaxCount() >= 15)
        {
            break;
        }

        monitor.AddA('A');

        std::this_thread::sleep_for(std::chrono::milliseconds(100));
    }
}

void Second(Monitor& monitor)
{
    while (true)
    {
        if (monitor.getMaxCount() >= 15)
        {
            break;
        }
        monitor.AddBC('B');

        std::this_thread::sleep_for(std::chrono::milliseconds(100));
    }
}

void Third(Monitor& monitor)
{
    while (true)
    {
        if (monitor.getMaxCount() >= 15)
        {
            break;
        }

        monitor.AddBC('C');

        std::this_thread::sleep_for(std::chrono::milliseconds(100));
    }
}

void Print(Monitor& monitor)
{
    while (true)
    {
        cout << monitor.getLine() << endl;

        if (monitor.getMaxCount() >= 15)
        {
            break;
        }

        std::this_thread::sleep_for(std::chrono::milliseconds(1000));
    }
}

int main()
{
    Monitor monitor;

    thread t1(First, ref(monitor));
    thread t2(Second, ref(monitor));
    thread t3(Third, ref(monitor));
    thread t4(Print, ref(monitor));

    t1.join();
    t2.join();
    t3.join();
    t4.join();

    cout << "Done" << endl;
    cout << monitor.getLine() << endl;

    return 0;
}
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: mrd

79131668

Date: 2024-10-27 23:07:03
Score: 1.5
Natty:
Report link

so after 3 hours of debugging, for those of you using visual studio and have setup your urls and app on google console using their documentation.

simply run visual studio as administrator and it'll work.

god damn....

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

79131662

Date: 2024-10-27 23:03:03
Score: 3
Natty:
Report link

What Python is doing in this case is memory conservation. Since there is already an address pointing to the value 20, there is no point in creating a new one. This is different for classes, though, because each time a class is referenced, it creates a new class object for the variable.

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

79131658

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

Lots of solutions here, so I'll add another...

find /path -type f -printf '"%p" '

This yields:

"/path/file1" "/path/file2" "path/file 3 with spaces" ...
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: pkSML

79131649

Date: 2024-10-27 22:57:01
Score: 0.5
Natty:
Report link

This turned out, after some pointers in another question, to be an access issue. However advice here on json.loads() and request.body() also formed part of the answer. Another additional was JSON.stringify() and that instead of nesting an array in an array, I nested an object inside an array - not sure how much difference that made but its in the end result.

The JSON being sent was valid. After adding the json.loads() and the using request.body instead of request.POST, I still needed to access the values and keys which I will share below:

JQuery:

$(document).on('click','#exModel',function () {
        const sending = [];
       $("table tr").each(function () {

               var p1 =  $(this).find("th label").html();
               var p2 = $(this).find("td input").attr('id');
               var p3 = $(this).find("td input").val();

               const build = {bnaa:p1,id:parseInt(p2),vals:parseInt(p3)};
               
               sending.push(build);
              // build.push(p1, p2, p3);
               
           });
        console.log(sending);
        //console.log(JSON.parse(JSON.stringify(sending)));
       $.ajax({
               url: '../coreqc/exModel/',
               data: JSON.stringify({'sending':sending}),
               //data: {'sending':sending},
               //processData: false,
               type: 'POST',
               headers: {'content_type':'application/json','X-CSRFToken': '{{ csrf_token }}'},
              // headers: {'X-CSRFToken': '{{ csrf_token }}'},
               async: 'true',
               success: function (data) {
                   
                console.log("I made it back")
                        //dom: 'Bfrtip',

               }
                    });

Then in my view:

def exModel(request):
        data = request.body
        data = json.loads(request.body)
        print(type(data))
        for i in range(len(data['sending'])):
            print(data['sending'][i]['bnaa'])
            print(data['sending'][i]['id'])
            print(data['sending'][i]['vals'])

        template = loader.get_template('coreqc/tester.html')
        context = {
        #'blabla':blabla
        }
        return HttpResponse(template.render(context, request))

Note I have not dealt with the response yet but the above will give you access to individual values, which will print to your terminal.

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

79131647

Date: 2024-10-27 22:56:01
Score: 6.5
Natty: 7.5
Report link

But how do you get back to the page with the pencil?

Reasons:
  • Blacklisted phrase (1): how do you
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lepome

79131641

Date: 2024-10-27 22:48:57
Score: 6 🚩
Natty:
Report link

Good evening,

you should wrap your code into a code box (even better with css syntax highlighting). ;)

To transform your absolute values into percentage ones, we would have to know the surrounding code/layout/sizes. E.g.: The child is as big, as the parent when setting width/height to 100%.

So way more information needed on this one, or am I getting you totally wrong here?

Best regards

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Blacklisted phrase (1): Good evening
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Sascha Haßler

79131638

Date: 2024-10-27 22:46:57
Score: 1.5
Natty:
Report link

Use nested "standard" enumerated lists in the source, e.g.

#. Point 1

   #. Point 1.1.
   #.  Point 1.2.

#. Point 2.

and use custom CSS to style the result as intended. (See, e.g. HTML ordered list 1.1, 1.2 (Nested counters and scope) not working)

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

79131637

Date: 2024-10-27 22:46:57
Score: 1.5
Natty:
Report link

So I had this error and it was caused because my IDE automatically set this: from random import random

So I would check that... Good luck

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

79131633

Date: 2024-10-27 22:43:56
Score: 1.5
Natty:
Report link

I came here as I was suffering this on flutter debugging, but I think I have the solution for you, needed to find the specific menu going through all the settings, to 'remove' it (or hide to not show) you just need to:

Go to Settings > Build, Execution, Deployment > Debugger > Data Views

There you just need to uncheck the second option like the following image: Value Tooltip disabled

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

79131627

Date: 2024-10-27 22:36:55
Score: 1.5
Natty:
Report link

Have you checked that Flask has opened the socket? If you have another SSH session open you could check with the command:

netstat -na | grep :<port>

If you find it, check iptables with following command:

iptables -L -v -n

Do this command as root or with sudo.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Aldo Pellini

79131623

Date: 2024-10-27 22:32:54
Score: 2.5
Natty:
Report link

In my experience, this can happen if you are running the project for the first time from the solution file and not the project file. Is that the case here?

(If it's possible, I personally find eclipse or netBeans to be much better IDEs for Java, but I understand that that may not be a possibility for you)

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

79131619

Date: 2024-10-27 22:31:54
Score: 3.5
Natty:
Report link

i think your greater thans and less thans are in the wrong order

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

79131612

Date: 2024-10-27 22:23:52
Score: 1.5
Natty:
Report link
<Button disabled={true} >
        LOGIN
      </Button>

Instead of doing this you have to just pass disabled

<Button disabled >
        LOGIN
      </Button>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: sushruth murakare

79131605

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

Multinomial mixed model equation

library(mclogit)
multinom_model <- mblogit(Spawn_ID2 ~ average_Ca + average_Mn + average_Zn, data = train, random = ~1 | ID)

To obtain the parameters of the mixed multinomial model

coefs <- summary(multinom_model)$coefficients
LLs <- coefs[,1] + qnorm(.025)*coefs[,2]
ULs <- coefs[,1] + qnorm(.975)*coefs[,2]
OR <- exp(coefs[,1])
ORLL <- exp(LLs)
ORUL <- exp(ULs)
HHES <- coefs[,1]/1.81 # Hasselblad and Hedges Effect Size

To obtain the coefficients of the mixed multinomial model

round(cbind(coefs, LLs, ULs), 3)

enter image description here

To obtain the odds ratio of the mixed multinomial model

round(cbind(OR, ORLL, ORUL, HHES), 3)

enter image description here

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

79131604

Date: 2024-10-27 22:18:51
Score: 2.5
Natty:
Report link

No. And this question doesn't make sense. Your program can write to any part of RAM. How could it possibly know if you're using it or not? As soon as you write into a RAM location it becomes "not used".

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

79131602

Date: 2024-10-27 22:15:50
Score: 1.5
Natty:
Report link

In modern C++, std::mdspan is a flexible solution for multidimensional arrays with sizes only known at runtime, providing a view over contiguous memory without multiple allocations. However, it can be verbose, and while it isn’t as concise as std::vector, it minimizes overhead. Alternatively, libraries like Eigen or Boost.MultiArray offer robust multidimensional array handling with runtime sizing and may be more straightforward if additional dependencies are acceptable. Standard support for dynamic multidimensional arrays has been limited by complexity and performance considerations, making these alternatives the best current options.

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

79131589

Date: 2024-10-27 22:08:49
Score: 1.5
Natty:
Report link

While you can just store a single JWT in a HTTP-Only Cookie the downside is that the user gets logged out once the JWT expires, meaning this solution is not really suitable for keeping alive long sessions.

Instead, a common practice is to generate an Access and Refresh Token Pair.

In short you store the access token (short-lived) in an HTTP-only cookie or in-memory, and store the refresh token (longer-lived) in a separate, secure HTTP-only cookie.

However, this involves implementing a more complex solution for your auth flow.

I found this guide if you want to delve deeper into the topic.

Reasons:
  • Blacklisted phrase (1): this guide
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: sori

79131574

Date: 2024-10-27 21:59:47
Score: 0.5
Natty:
Report link

try to add this to your app/build.gradle

minifyEnabled false
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'

create a pro guild file add this

-keep class **.zego.** { *;}
-keep class **.**.zego_zpns.** { *;}
-keep class **.**.zpns.** { *;}
-keep class **.**.hms.** { *;}
-keep class **.heytap.** { *;}
-keep class **.vivo.** { *;}
-keep class **.**.mipuch.** { *;}
# Retrofit
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes *Annotation*

# Firebase
-keep class com.google.firebase.** { *; }
-dontwarn com.google.firebase.**

add this to your gredle.properties

android.enableR8.fullMode=true
android.enableR8=true
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Rioland

79131573

Date: 2024-10-27 21:58:46
Score: 2.5
Natty:
Report link

You can paste the stack trace into tidytrace.com, and it will automatically format it for you.

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

79131572

Date: 2024-10-27 21:57:46
Score: 1
Natty:
Report link

I used this extension which allowed me to use a regex. It also verified all the changes before committing them, where hand-jamming sqlite wouldn't.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Aaron D. Marasco

79131570

Date: 2024-10-27 21:56:46
Score: 3.5
Natty:
Report link

What is about RowEnter_Event get your data e.RowIndex

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Starts with a question (0.5): What is
  • Low reputation (1):
Posted by: samo kaifi

79131552

Date: 2024-10-27 21:48:44
Score: 2
Natty:
Report link

Have a look at the blog where building the code is explained (https://www.moserware.com/2011/11/life-death-and-splitting-secrets.html) or the library at https://github.com/shinji-san/SecretSharingDotNet

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

79131547

Date: 2024-10-27 21:45:44
Score: 1
Natty:
Report link

For me the issue was that by mistake I moved the .gitconfig file from my user folder path. Recovering this file solved the issue.

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

79131541

Date: 2024-10-27 21:42:43
Score: 0.5
Natty:
Report link

This approach works for me, but once an item is chosen, the cell shows a little red triangle in the upper right corner. Hovering over it shows "Invalid: input must fall within specified range".

Ideally, the dropdown list would be the one with used items removed but the valid list would be the original list. I'm not sure if that is possible.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Melodie Williams

79131535

Date: 2024-10-27 21:35:42
Score: 2
Natty:
Report link

Basicly my dumb-ass put the database handler in a go-routine, because I thought, that multi-threading the database connection is a good idea.

My database connection design pattern sucks, so I had to rewrite the database wrapper and now it works like a champ!

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

79131528

Date: 2024-10-27 21:30:41
Score: 1
Natty:
Report link

@xdhmoore, this question in your comment indeed works, as well as @Weekend suggestion.

Look at the snippet:

#!/bin/zsh

err_handler() {
    echo error at $funcfiletrace[1]
}
trap err_handler ZERR

myfunc() {
   (( 1/0 ))
}

myfunc

It will produce:

myfunc:1: division by zero
error at ./test:9

Line 9 contains (( 1/0 )) statement which rises the error.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Weekend
  • Low reputation (0.5):
Posted by: Alek

79131523

Date: 2024-10-27 21:27:40
Score: 1
Natty:
Report link

I was questioning this. Anything under 200 is "almost" instantaneous. Ideal would be less than 100ms, but you would need to have your server very close to your users.

For most users, the server latency in a good location will be 20-50ms, mid range will increase to 70-100 and far away locations will usually yield 150-500ms

This is just the server latency, without considering the time it tooke for your server to complete a request.

Let's say you have a really fast server with 20ms response times. In the end that will end up with response times of 100-200ms if users are not really far away from your server.

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

79131519

Date: 2024-10-27 21:22:39
Score: 1
Natty:
Report link

Try this: Sub SelecteerDatum() Cells(Application.Match(CLng(Date), Range("A:A"), 1), "A").Select End Sub

Reasons:
  • Whitelisted phrase (-2): Try this:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Cees Swagerman

79131516

Date: 2024-10-27 21:21:39
Score: 4
Natty: 4
Report link

**

I think this folowing link will help you very well

** https://dev.to/ngconf/the-true-difference-between-and-bindings-in-angular-2h9i

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

79131510

Date: 2024-10-27 21:15:37
Score: 3
Natty:
Report link

AREG Framework is based on Object RPC and exactly triggers methods of remote objects: https://github.com/aregtech/areg-sdk

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

79131505

Date: 2024-10-27 21:12:36
Score: 3
Natty:
Report link

Set the MARIADB_CC_INSTALL_DIR environment variable to InstallationDir of MariaDB Connector/C.

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

79131499

Date: 2024-10-27 21:09:35
Score: 4
Natty:
Report link

C++ toolchain is OK. The problem was that my driver/GPU combination don`t support MSAA textures. For more information see [VTK 9.0.0] Rendering issue (many artifacts) with Nouveau driver.

VTK merge request that fixes this OpenGLRenderWindow: Disable MSAA on nouveau

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

79131493

Date: 2024-10-27 21:05:34
Score: 1
Natty:
Report link

Yes, because your for loop starts from 10 and goes till 0, irrespective of explicitly giving it +1. You should change the condition in the loop as below:

for i = 0 to 10 by 1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Parmesh

79131482

Date: 2024-10-27 21:00:33
Score: 1
Natty:
Report link

Solution

Based on an online solution (thanks Aroon), this fix resolves the issue of Docker ignoring the /etc/hosts file inside the GitLab Runner Build-Container by adding the following line to the /etc/hosts file on the Docker host.

10.10.30.2 registry.gitlab.example.com

It’s not the most ideal solution but serves as a working workaround for now.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jasper

79131471

Date: 2024-10-27 20:54:32
Score: 1
Natty:
Report link
  1. Comparable:
    • This is used when you want to set up a single, default way to compare objects of your class.
    • You make your class implement the Comparable interface and define the compareTo() method.
    • Use this when you need just one way to sort objects.
  1. Comparator:
    • This is used when you don’t control the class or when you want multiple ways to compare the same objects.
    • You create separate classes that implement the Comparator interface (or use lambdas in Java 8+) and define the compare() method.
    • This is more flexible since you can create different ways to compare objects.
  1. Summary:
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mujeeb Ur Rehman

79131467

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

The method of authentication preferred for your project solely depends on your project's requirements. Both token and cookie based approaches have their own list of pros and cons. Nest.js as a framework gives you the ability to achieve both of these approaches.

Cookie based authentication

Token based authentication

Conclusion

Token based approach results in a more flexible approach, though it requires some manual code to be written from your side.

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

79131465

Date: 2024-10-27 20:49:30
Score: 2
Natty:
Report link

In cloud services, storage refers to raw data storage solutions like file storage, object storage, and block storage, ideal for saving files, backups, and multimedia. Databases, on the other hand, are structured systems specifically designed to organize, query, and manage data efficiently, supporting complex operations like transactions and real-time data processing. While storage is generally for simple data retention, databases enable sophisticated data manipulation and retrieval.

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

79131460

Date: 2024-10-27 20:44:30
Score: 0.5
Natty:
Report link

Solution is below:

~/llvm-project/llvm/CMakeList.txt

set(LLVM_DEFAULT_RUNTIMES "libcxx;libcxxabi;libunwind")
set(LLVM_SUPPORTED_RUNTIMES "libc;libunwind;libcxxabi;pstl;libcxx;compiler-rt;openmp;llvm-libgcc;offload")
set(LLVM_ENABLE_RUNTIMES "libunwind" CACHE STRING

build command:

cmake -GNinja ../llvm      -DCMAKE_BUILD_TYPE=Release      -DLLVM_ENABLE_PROJECTS="libcxx;libcxxabi"       -DCMAKE_C_COMPILER=clang    -DCMAKE_CXX_COMPILER=clang++    -DLLVM_USE_SANITIZER=MemoryWithOrigins

second part derived to LLVM Build Fails with MemorySanitizer Enabled

Reasons:
  • Whitelisted phrase (-1): Solution is
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JacobNowicki

79131455

Date: 2024-10-27 20:42:29
Score: 2
Natty:
Report link

The property you are looking for is CascadeInputTransparent which allows child views to register clicks differntly from it's parent. Set CascadeInputTransparent = false and InputTransparent = true on parent and InputTransparent = false on Child

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Вячеслав Хохо

79131452

Date: 2024-10-27 20:41:29
Score: 0.5
Natty:
Report link

This worked for me:streamplot(x.T, z.T, Bx.T, Bz.T).

Reasons:
  • Whitelisted phrase (-1): This worked for me
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gregory R Macchio

79131451

Date: 2024-10-27 20:41:29
Score: 0.5
Natty:
Report link

TL;DR

Virtual threads are intended for transient and I/O-bound loads while platform threads are used for long-running CPU-bound tasks.

Virtual threads have less startup/shutdown overhead and are more efficient when I/O bound, but they aren't as good at scheduling CPU-bound tasks.

Platform threads

Before JDK 19, all that was available was platform threads. They were simply a Java wrapper to an OS-level thread. You had a chunk of code that could run concurrently, but you had to hand it off to the system. This involved slow syscalls and allocations, alongside reliance on the OS's scheduler. It wasn't a huge deal for big tasks that stay running, but it wasn't great for transient tasks or blocking I/O operations, as the system still had to perform a context switch only to find the thread blocked.

Additionally, some operating systems limit the amount of threads a program can have. This causes issues for large server-type software with a lot of concurrency.

Virtual threads

This is why virtual threads were introduced. They are "threads" that are really run on top of a pool of OS-level threads, kept alive by the VM. This cuts down on context switches and expensive allocations, as well as limiting the thread count.

For example, if you wanted to thread a basic image filter, virtual threads would work well (if the filter was very lightweight). With platform threads, the VM would have to make a thread (with all of the syscalls), add some handles, run it for under 100 milliseconds, then destroy it (with more costly syscalls). Virtual threads allow the VM to quickly pick one out of a pool and get it running.

This is also beneficial for blocking I/O. If a thread is running and is waiting on a lock or a buffer, the VM can just skip it without wasting time on context switches, and even reassign the underlying OS thread to another task.

Problems

The main problem with virtual threads is that they're based on a pool of platform threads. This isn't normally an issue if used well, but if you have too many tasks, it becomes a problem.

If you have a pool of 12 platform threads supporting 12 virtual threads, the JVM doesn't really need to get involved. However, if you add 1 more virtual thread, the JVM has to do its own scheduling.

If you use virtual threads properly, the JVM would remove a thread blocked on I/O or a lock to run another. Additionally, short CPU-heavy tasks wouldn't cause too much of an issue as the OS thread wouldn't be locked up for too long, and the overhead dies with the thread.

However, if they're all long-running CPU-bound tasks, you run into problems. The JVM's scheduler is going to be less efficient (especially since the OS is also scheduling the underlying OS threads with everything else). In the end, you get roughly double the overhead from 2 schedulers, and need to deal with a lot of context switching.

This is why platform threads are still used. If you want to thread a long file transfer or mass hashing operation, you shouldn't take up virtual thread time if you're not going to benefit from it.

Additionally, platform threads have more memory and stack space for complex operations.

Effectively using virtual and platform threads

To effectively use virtual threads:

Likewise, for platform threads:

Conclusion

Virtual threads are very useful, but not universally so. Use virtual threads for small or "sparse" (mostly I/O blocked) tasks, and use platform threads for heavy/long tasks, where the overhead is less important and the scheduling more of an issue.

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

79131450

Date: 2024-10-27 20:39:28
Score: 3.5
Natty:
Report link

Remove the extra venv path from python.venvPath in vscode setting.

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

79131440

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

Trigger: (BOX) When a file is created (properties only) V2 - will return the List of File property array

using that property (id) from a trigger, need to download that file content

Action: (BOX) Get file content using id

Previous action content should be saved in Sharepoint

Below sample fetch file content from Box and sed it to mail [1]: https://i.sstatic.net/65f5iMoB.png

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

79131426

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

One of the sub-arrays passed into val was incorrectly formatted in the original text file which meant that the sub-array had 4 values instead of the intended 3.I fixed the text file and everything worked from there.

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

79131415

Date: 2024-10-27 20:18:24
Score: 2.5
Natty:
Report link

Since C++11, you can #include <cmath> and use std::llround().

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

79131411

Date: 2024-10-27 20:17:24
Score: 0.5
Natty:
Report link

How is your CSS loaded? i checked your code and for me both names work as expected since both names have the same style definition. Make sure your HTML code is correctly defined with all tags and try refreshing / reopening the program after you changed the id (+saved it).

<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
<style>
#myTest {
  font-family: "FuzzyRegular";
  font-size: 3vw;
  overflow-wrap: break-word;
  word-wrap: break-word;
  color: #000;
  text-align: left;
  font-weight:400;
  letter-spacing:2px;
  padding-right: 2.19em;
  border-bottom: 5px solid rgba(255, 240, 0, 0.5);
}

#cucamonga {
  font-family: "FuzzyRegular";
  font-size: 3vw;
  overflow-wrap: break-word;
  word-wrap: break-word;
  color: #000;
  text-align: left;
  font-weight:400;
  letter-spacing:2px;
  padding-right: 2.19em;
  border-bottom: 5px solid rgba(255, 240, 0, 0.5);
}
</style>
</head>
<body>

<table>
<thead>
<tr>
<td>
<div id="cucamonga">TEST</div>
</td>
</tr>
</thead>
</table>

</body>
</html>
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How is you
  • Low reputation (1):
Posted by: Electronout

79131391

Date: 2024-10-27 20:04:22
Score: 2
Natty:
Report link

init has deprecated. However you can still use :

npx @react-native-community/cli@latest init newapp

source : https://reactnative.dev/docs/getting-started

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

79131387

Date: 2024-10-27 20:02:19
Score: 7.5 🚩
Natty:
Report link

When I remove the @emotion/react package, the slowness disappeared. Is there anything wrong with this package?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Starts with a question (0.5): When I
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Abdulrahman Alkurdi

79131386

Date: 2024-10-27 20:02:19
Score: 2
Natty:
Report link

I recently had the same issue. Finally I found out that in the build.gradle file in android/app folder, under signingConfigs -> debug the keystore file did not match with the google-services.json I'm using.

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

79131384

Date: 2024-10-27 19:59:19
Score: 1.5
Natty:
Report link

I've come to the conclusion that the stack that gets aligned is not the current, but the one before the exception entry and so I shouldn't be concerned.

There's an ambiguous paragraph which mentions:

The CCR.STKALIGN bit indicates whether, as part of an exception entry, the processor aligns the SP to 4 bytes, or to 8 bytes

That made me think of the SP as the current stack pointer. However, researching more carefully, I've found a better explanation:

On an exception entry, the exception entry sequence ensures that the stack pointer in use before the exception entry has 8-byte alignment, by adjusting its alignment if necessary

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

79131383

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

If you really want to loop over variable names you could use base R instead of dplyr

for (var in list_var) {
df[[var]] # do your thing
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jo_

79131368

Date: 2024-10-27 19:51:17
Score: 1
Natty:
Report link

Manually testing this scenario indicates that the position rolls over:

Progress: 4294964450
Progress: 4294965179
Progress: 4294965904
Progress: 4294966636
Progress: 89
Progress: 826
Progress: 1546
Progress: 2298

While in this specific test run the position never hit 0, the rate at which the position was sampled (60Hz) was significantly less than the wave's sample rate (44100Hz) - I would assume that it did, in fact, roll over through 0.

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

79131356

Date: 2024-10-27 19:44:15
Score: 1
Natty:
Report link

The version that supports React 19 is still on alpha I used framer-motion: 12.0.0-alpha.1 to solve the problem. Taken from this issue https://github.com/framer/motion/issues/2843

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

79131352

Date: 2024-10-27 19:41:15
Score: 3
Natty:
Report link

I don't know why, but the Firebase Code Generation tool destroyed my build.gradle.

The namespace was simply half empty, the generation tool made this out of my working build.gradle

enter image description here

I needed to fix it so it looks like

enter image description here

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Felix K

79131347

Date: 2024-10-27 19:38:14
Score: 3
Natty:
Report link

How to add Mlib library to Spark?

This solved my issue:

Try to do pip install numpy (or pip3 install numpy if that fails). The traceback says numpy module is not found.

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

79131346

Date: 2024-10-27 19:38:14
Score: 2
Natty:
Report link

I have installed pandas package, and then I could open the data.

conda install pandas
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Majid

79131337

Date: 2024-10-27 19:36:14
Score: 1.5
Natty:
Report link
Resources :https://nextjs.org/docs/app/api-reference/components/form    
<form
                action={async () => {
                  "use server";
                  await signOut();
                }}
              >
                <button>Signout</button>
              </form>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: omar

79131332

Date: 2024-10-27 19:34:13
Score: 5.5
Natty:
Report link

Are you using a custom library for the counters?

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

79131325

Date: 2024-10-27 19:31:12
Score: 0.5
Natty:
Report link

Currently, I have found that the best formatter to use for Tera templates is Twig Language 2.

Set it up as follows:

  1. Install the Twig Language 2 extension
    https://marketplace.visualstudio.com/items?itemName=mblode.twig-language-2

  2. Bind HTML to the twig language.
    Add the following settings inside your project at .vscode/settings.json

{
    "files.associations": {
        "*.html": "twig"
    },
    "emmet.includeLanguages": {
        "twig": "html"
    },
    "[twig]": {
        "editor.defaultFormatter": "mblode.twig-language-2"
    }
}
  1. After that, HTML files should automatically be detected as HTML(Twig).

    HTML(Twig)

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

79131322

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

The explanation is in SRCREV_FORMAT

As described here,

SRCREV_FORMAT helps construct valid SRCREV values when multiple source controlled URLs are used in SRC_URI.

The system needs help constructing these values under these circumstances. Each component in the SRC_URI is assigned a name and these are referenced in the SRCREV_FORMAT variable. Consider an example with URLs named “machine” and “meta”. In this case, SRCREV_FORMAT could look like “machine_meta” and those names would have the SCM versions substituted into each position. Only one AUTOINC placeholder is added and if needed. And, this placeholder is placed at the start of the returned string.

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

79131321

Date: 2024-10-27 19:27:12
Score: 1.5
Natty:
Report link

Hy, I was having the same issue, and as it seems a lot of people too. Im in university so i asked my friends from the year above me if they had the same problem. Basically version 2.2.45 it's the last one where vpcs seem to work. No ideia why tho, just download the .dmg from their github https://github.com/gns3/gns3-gui/releases?page=1

If something else doesn't work just try a ever older version i guess, the life of users of working in process products.

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

79131312

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

While that's not a recommended setting for a large project with many users, you can allow it by enabling the branch setting for "Allowed to force push" under Project > Settings > Repository

enter image description here

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

79131311

Date: 2024-10-27 19:20:10
Score: 3
Natty:
Report link

I have used prism "eons" ago .. but, what happens when you add opening <?php tag before php code ?

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: Spooky

79131309

Date: 2024-10-27 19:19:10
Score: 3
Natty:
Report link

So apparently it might be a glib related issue after all. Minimum requirements for AS say that at least version 2.31 is needed for Ladybug. However, it works just after upgrading ubuntu to 22 and glib with it to version 2.35. After upgrade, I can edit layouts finally.

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

79131308

Date: 2024-10-27 19:19:10
Score: 0.5
Natty:
Report link

Before adding a new adornment, check if an adornment already exists. Update your UpdateAdornments() in IntraTextAdornmentManager with an additional check

if (_activeAdornments.ContainsKey(snapshotSpan))
continue;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Byron

79131304

Date: 2024-10-27 19:18:10
Score: 0.5
Natty:
Report link

was having this issue on rails 7.2

after implementing resque & resque-pool, i had config.cache_classes = truein the development and production file for worker forking.

removing this config.cache_classes = true in development.rb fixed the problem

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Denis S Dujota

79131295

Date: 2024-10-27 19:11:08
Score: 0.5
Natty:
Report link

You’re absolutely right! When you copy images directly from File Explorer, the Windows clipboard doesn't store the actual image data but rather references (such as file paths or file identifiers). Programs like Discord or WhatsApp can access these references and then load the image from the file system, which is why they can handle multiple images without issue.

However, when you work with Python’s win32clipboard or similar libraries, you're dealing with raw data formats (like BMP or DIB) directly in the clipboard, and it doesn't include this kind of metadata (like file paths). That's why multiple images can't be handled natively, as the clipboard has no concept of "files" without such references.

To implement a workaround, you’d need to essentially mimic the way Windows handles this by implementing your own logic to store and manage file references rather than the raw image data. Unfortunately, this would likely require diving deeper into how clipboard formats are managed and possibly creating a custom clipboard format handler.

It’s not an easy task, but not impossible if you're familiar with how the Windows API and clipboard structures work. Hope that clarifies the difference!

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

79131294

Date: 2024-10-27 19:11:08
Score: 1
Natty:
Report link

Create a project under your organization (if you haven't already). Then inside your app.json

{ 
  "expo": {slug: <project slug here>, 
  "owner": <project name here>,
    "extra": {
      "eas": {
        "projectId": <project id here>
      }
    }
  }
}

Then

eas build:configure
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Liyu Mesfin

79131293

Date: 2024-10-27 19:10:08
Score: 6.5
Natty: 7.5
Report link

what about making a pdf from read only to editable ?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): what
  • Low reputation (1):
Posted by: Gaming Clan

79131288

Date: 2024-10-27 19:10:08
Score: 1.5
Natty:
Report link

Simply:

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

79131280

Date: 2024-10-27 19:06:06
Score: 4
Natty:
Report link

Just go inside IAM Identity Center > Dashboard, then "Settings summary" on the right.

enter image description here

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

79131273

Date: 2024-10-27 19:01:05
Score: 0.5
Natty:
Report link

I dont have the full context (table names etc.) but based off your requirement, I think you could make use of the WEEKNUM function in PBI.

= WEEKNUM(datetime_column, 2) -- if your week starts on Monday = WEEKNUM(datetime_column, 2) -- if your week starts on Sunday

So your dax query would essentially be:

SumPreviousFourWeeks =

VAR CurrentWeek = WEEKNUM(MAX(YourTable[datetime_column]), 2) // 2 for Monday as start of the week

VAR CurrentYear = YEAR(MAX(YourTable[datetime_column]))

RETURN CALCULATE( SUM(YourTable[YourValueColumn]), FILTER( YourTable, WEEKNUM(YourTable[datetime_column], 2) >= CurrentWeek - 4 && WEEKNUM(YourTable[datetime_column], 2) < CurrentWeek && YEAR(YourTable[datetime_column]) = CurrentYear ) )

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Onga Leo-Yoda Vellem

79131268

Date: 2024-10-27 18:58:02
Score: 9 🚩
Natty: 4
Report link

I get this error when I do the following in the jupyter lab:

from pyspark.ml.feature import VectorAssembler

Error: ModuleNotFoundError Traceback (most recent call last) Cell In[5], line 1 ----> 1 from pyspark.ml.feature import VectorAssembler

Can anyone tell how to fix?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can anyone tell how
  • RegEx Blacklisted phrase (1.5): how to fix?
  • RegEx Blacklisted phrase (1): I get this error
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Trango

79131264

Date: 2024-10-27 18:52:00
Score: 5
Natty: 6
Report link

You can create a program script, or simply use third-party tools like https://app.shubraj.com/email-checker/ https://email-checker.net. You can find the detail in this blog: https://blog.shubraj.com/verify-email-address-without-sending-an-email/

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ab Raj

79131254

Date: 2024-10-27 18:46:59
Score: 4.5
Natty:
Report link

Does any of this work on a database client like Jetbrains Datagrip?

More specifically i am looking for a way to generate uuid while i am feeding and testing data into the table's GUI. And I remember that i used to do it in a way like an excel formula where i wrote something in the column's field for a record and it would know that i want to generate a UUID. Upon hitting Ctrl+Enter it would insert/update the data and generate a uuid as well.

I just do not happen to recall what was it that i used to write :)

Reasons:
  • Blacklisted phrase (2): i am looking for
  • RegEx Blacklisted phrase (1): i want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sukumar Rastogi

79131246

Date: 2024-10-27 18:41:57
Score: 3.5
Natty:
Report link

I have a related question to my original post:

Suppose in the terminal window I entered the following;

doc_path="/Users/joeblogs/My Files/Documents/"

file3_L="$doc_path/txt/Testfile.txt"

echo $file3_L

which outputs:

/Users/joeblogs/My Files/Documents/txt/Testfile.txt

and then I enter;

n=3

left="file${n}_L"

echo $left

which outputs:

file3_L

Issue:

I can't seem to get the same output as I got from using echo $file3_L by instead using the value of $left - is there something I am missing in terms of the bash syntax / brace expansion?

What I would like to get (by using $left in some way) is:

/Users/joeblogs/My Files/Documents/txt/Testfile.txt 

This will help with the my original goal(s).

Any help/advice is much appreciated.

Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: TheEngineer

79131245

Date: 2024-10-27 18:41:57
Score: 0.5
Natty:
Report link

What you could do is to streamline your code by getting rid of match 1 and case 1 if and you should do the matching on the set itself plus and if guard within each case to compare the set like so:

def categorize_strings(string1, string2, string3):
    s = {string1, string2, string3}
    match s:
        case s if s == {' Hello', ' world', '!'}:
            return "Greeting"
        case s if s == {'beautiful', 'fair', 'nice'}:
            return "Compliments"
        case s if s == {'extremely', 'hyper', 'strongly'}:
            return "Adverbs"
        case _:
            return "Unknown"
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What you
  • Low reputation (1):
Posted by: sori

79131231

Date: 2024-10-27 18:31:54
Score: 10
Natty: 7
Report link

I am having the same struggle following this article getting PostMessage to work. Did you find a solution?

Best Regards Albert

Reasons:
  • Blacklisted phrase (0.5): Best Regards
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (1): this article
  • RegEx Blacklisted phrase (3): Did you find a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: AlbNor

79131229

Date: 2024-10-27 18:31:54
Score: 0.5
Natty:
Report link

Kafka by default is large distributed messaging system that supports horizontal scaling easily so it's better to be used for cases like when having a large real-time stream of data or high number of consumers. RabbitMQ by default doesn't support this high volume, it supports basic patterns of Pub/Sub or message broker system. But using Masstransit, can extend the functionality of Rabbitmq so it can support multiple topics and scale out. But for usage as per what I saw, for scalable message broker that can process high volume of data, many go by default to Kafka

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

79131228

Date: 2024-10-27 18:31:54
Score: 1
Natty:
Report link

Solution Worked For me : Make below 2 path'S java version similar in IDE :

  1. File -> Project Structure -> Project Settings -> Project -> SDK
  2. File -> Project Structure -> Project Settings -> Modules -> Module SDK
Reasons:
  • Whitelisted phrase (-1): Worked For me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: VIKRANT SINGH

79131222

Date: 2024-10-27 18:27:53
Score: 2
Natty:
Report link

The package.swift files are made to be standalone files without dependencies, So this is not possible unfortunately.

But if your shared code is mostly data, You can put it in a structured Json file and read it in the package file

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

79131220

Date: 2024-10-27 18:23:52
Score: 5.5
Natty:
Report link

does appear the same error whene click sync gradle?

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

79131217

Date: 2024-10-27 18:21:51
Score: 1
Natty:
Report link

You can omit the pipe '|' at the end of appSettings, and that should also work:

appSettings:
  -Port 8080
  -RequestTimeout 100
  -WEBSITE_TIME_ZONE "Singapore Standard Time"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: brunochaina