79100476

Date: 2024-10-18 04:03:12
Score: 2.5
Natty:
Report link

Maybe the path where the script is located is too long, that's what happened to me, try placing it in the root of the disk.

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

79100474

Date: 2024-10-18 04:02:11
Score: 3.5
Natty:
Report link

showing errors at undeclared identifier ar_Strike, need running code to proceed further thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lino

79100471

Date: 2024-10-18 03:58:10
Score: 5.5
Natty: 6
Report link

i am build a solar pannel website here i want to build solar pannel seystem here base on logntute and latatute aslo monthly electricity bill on the rooftop user can see solar plette .

how can i implement it suggest some document . i already explore solar pannel api but i cant understand?

Reasons:
  • Blacklisted phrase (0.5): how can i
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Hasan Akon

79100465

Date: 2024-10-18 03:49:09
Score: 2.5
Natty:
Report link

Im trying to get Call Record data using api
GET https://graph.microsoft.com/v1.0/communications/callRecords

However we are unable to retrieve data for the call records that contains call state = answered or unanswered

Would like to get some help

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

79100460

Date: 2024-10-18 03:43:08
Score: 2.5
Natty:
Report link
  1. Mix 500g of Flour, 10g Yeast and 300ml Water in a bowl.
  2. Knead the dough for 10 minutes.
  3. Add 3g of Salt.
  4. Leave to rise for 2 hours.
  5. Bake at 200 degrees C for 30 minutes.
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: arshadullislam student

79100450

Date: 2024-10-18 03:37:06
Score: 1
Natty:
Report link

Have you tried to modify your DAG to include timeout and retry parameters, something like this?

     task_get_posts = SimpleHttpOperator(
     task_id="get_posts",
     http_conn_id="api_posts",
     endpoint="api/chat.postMessage",
     method="POST",
     headers={
         "Authorization": "Bearer #token",
         "Content-Type": "application/json"
     },
     data=json.dumps({
         "channel": "#channel",
         "text": "Hello from airflow"
     }),
     response_filter=lambda response: json.loads(response.text),
     log_response=True,
     execution_timeout=timedelta(seconds=60),  # Add timeout
     retries=3,  # Add retries
     retry_delay=timedelta(seconds=5),  # Add retry delay
     dag=dag,
 )
 
Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: vmhung

79100446

Date: 2024-10-18 03:31:05
Score: 1.5
Natty:
Report link

I reproduced it on my end, with a GET to google.com. I get the stream_truncated error as expectable in the wild. You already deal with that:

enter image description here

Replacing www.google.com with api.mailgun.net just removes that symptom for me:

enter image description here

Can you compare your implementation and check back with your own tests?

Live On Coliru

#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/beast.hpp>
#include <boost/beast/ssl.hpp>
#include <boost/url.hpp>
#include <iostream>
namespace beast       = boost::beast;
namespace http        = boost::beast::http;
namespace net         = boost::asio;
namespace ssl         = net::ssl;
using url             = boost::urls::url;
using tcp             = net::ip::tcp;
using http_ssl_stream = boost::beast::ssl_stream<boost::beast::tcp_stream>;
using RequestType     = http::request<http::string_body>;
using ResponseType    = http::response<http::string_body>;
using BufferType      = boost::beast::flat_buffer;

/**
 * Do the session
 */
struct Session {
    net::coroutine                     coroutine_; // by value
    boost::shared_ptr<http_ssl_stream> stream_;
    boost::shared_ptr<RequestType>     request_;
    uint                               timeout_;     // by value
    std::string                        host_, port_; // ephemeral

    std::unique_ptr<tcp::resolver> resolver_ = {}; // stable
    std::unique_ptr<ResponseType>  response_ = {}; // stable
    std::unique_ptr<BufferType>    buffer_   = {}; // stable

    /**
     * First call
     */
    template <typename Self> void operator()(Self& self) {
        std::cout << __LINE__ << ": " << std::endl;
        // Set SNI Hostname (many hosts need this to handshake successfully)
        if (!SSL_set_tlsext_host_name(stream_->native_handle(), host_.c_str())) {
            // Callback with error
            return self.complete(
                beast::error_code(static_cast<int>(::ERR_get_error()), net::error::get_ssl_category()),
                boost::none);
        }

        resolver_ = std::make_unique<tcp::resolver>(stream_->get_executor());
        resolver_->async_resolve(host_, port_, std::move(self));
    }

    /**
     * On resolved call
     */
    template <typename Self>
    void operator()(Self& self, beast::error_code error, tcp::resolver::results_type results) {
        std::cout << __LINE__ << ": " << error.message() << std::endl;
        // Resolve error, quit
        if (error) {
            return self.complete(error, boost::none);
        }

        // Set the expiration
        beast::get_lowest_layer(*stream_).expires_after(std::chrono::seconds(timeout_));

        // Do a connnect
        beast::get_lowest_layer(*stream_).async_connect(results, std::move(self));
    }

    /**
     * On connected
     */
    template <typename Self>
    void operator()(Self& self, beast::error_code error,
                    tcp::resolver::results_type::endpoint_type /*results*/) {
        std::cout << __LINE__ << ": " << error.message() << std::endl;
        // Connect error
        if (error) {
            return self.complete(error, boost::none);
        }

        // Set the expiration
        beast::get_lowest_layer(*stream_).expires_after(std::chrono::seconds(timeout_));

        // Do a handshake
        stream_->async_handshake(ssl::stream_base::client, std::move(self));
    }

    /**
     * After handshake
     */
    template <typename Self>
    void operator()(Self& self, beast::error_code error, size_t /*bytes_transferred*/ = 0) {
        // Coroutine for easy state knowing
        BOOST_ASIO_CORO_REENTER(coroutine_) {
            /*
            // Do the handshake
            BOOST_ASIO_CORO_YIELD
            {
                // Connect error
                if( error )
                    return self.complete( error, boost::none );


                // Set the expiration
                beast::get_lowest_layer( *stream_ ).expires_after( std::chrono::seconds( timeout_ ) );

                // Do a handshake
                stream_->async_handshake(
                            ssl::stream_base::client,
                            std::move( self )
                        );
            }
            */

            std::cout << __LINE__ << ": " << error.message() << std::endl;
            // Do the write
            BOOST_ASIO_CORO_YIELD {
                // Handshake error
                if (error) {
                    return self.complete(error, boost::none);
                }

                // Set up an HTTP GET request message
                request_->version(11);
                // request_->body() = body_;

                // Set the expiration
                beast::get_lowest_layer(*stream_).expires_after(std::chrono::seconds(timeout_));

                // Write the request
                http::async_write(*stream_, *request_, std::move(self));
            }

            std::cout << __LINE__ << ": " << error.message() << std::endl;
            // Execute a read
            BOOST_ASIO_CORO_YIELD {
                // Write error
                if (error) {
                    return self.complete(error, boost::none);
                }

                // Create the response
                response_ = std::make_unique<ResponseType>();

                // Create the buffa
                buffer_ = std::make_unique<BufferType>();

                // Set the expiration
                beast::get_lowest_layer(*stream_).expires_after(std::chrono::seconds(timeout_));

                // Receive the HTTP response
                http::async_read(*stream_, *buffer_, *response_, std::move(self));
            }

            std::cout << __LINE__ << ": " << error.message() << std::endl;
            // Shutdown the socket
            BOOST_ASIO_CORO_YIELD {
                // Read error
                if (error) {
                    return self.complete(error, boost::none);
                }

                // Set the expiration
                beast::get_lowest_layer(*stream_).expires_after(std::chrono::seconds(timeout_));

                // Receive the HTTP response
                stream_->async_shutdown(std::move(self));
            }

            std::cout << __LINE__ << ": " << error.message() << std::endl;
            // Shutdown error
            if (error == net::error::eof or error == ssl::error::stream_truncated) {

                // Rationale:
                // http://stackoverflow.com/questions/25587403/boost-asio-ssl-async-shutdown-always-finishes-with-an-error
                error = {};
            }

            std::cout << __LINE__ << ": " << error.message() << std::endl;
            // Did we get it?
            if (error) {
                self.complete(error, boost::none);
                return;
            }

            // Return no error and the buffer
            self.complete(error, *response_);
        }
    }
};

template <typename Executor, typename Token> auto async_https_get(Executor ex, url what, Token&& token) {
    static ssl::context ctx(ssl::context::tlsv12_client);

    std::string port     = what.has_port() ? what.port() : "https";
    std::string resource = what.encoded_resource().decode();
    std::cout << "Host: " << what.host() << " Port: " << port << " Resource: " << resource << std::endl;

    auto request = boost::make_shared<RequestType>(http::verb::get, resource, 11, "{}");
    request->set(http::field::host, what.host());

    Session session{
        net::coroutine(),
        boost::make_shared<http_ssl_stream>(ex, ctx),
        request,
        5, // seconds
        what.host(),
        port,
    };

    return net::async_compose<Token, void(beast::error_code, boost::optional<ResponseType>)>(
        std::move(session), token, ex);
}

int main() {
    net::thread_pool ioc(1);

    // url what("https://www.google.com/");
    url what("https://api.mailgun.net/");

    async_https_get(make_strand(ioc), what,
                    [&](beast::error_code ec, boost::optional<ResponseType> response) {
                        std::cout << "--\nCompleting with error: " << ec.message() << std::endl;
                        if (!ec)
                            std::cout << "--\nResponse: " << response->base() << std::endl;
                    });

    ioc.join();
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1): I get the stream_truncated error
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: sehe

79100445

Date: 2024-10-18 03:30:04
Score: 1.5
Natty:
Report link

(This post is old ik but for Googlers) Though not as streamlined or secure as the Reverse Port Forwarding that the chrome://inspect tools give us for Android, I found ngrok is free and seems to work well enough to get a localhost server onto a remote Apple device (TL;DR it's a tunnel). Since it's not as secure, I'd recommend at least using their OAuth setup with restricted emails and only port forwarding for a short time when you need to, but I'm also not a networking engineer so I can't confidently comment on how secure it really is.

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

79100441

Date: 2024-10-18 03:27:01
Score: 1.5
Natty:
Report link

Circling back here.. it turns out, the issue was that the newly reserved internal IP addresses weren't getting the network tags fast enough and/or the firewall policy was not detecting them fast enough. Modifying the firewall rule to allow the entire CIDR ip range so that it no longer relies on the network tags did the trick. Haven't had a single hiccup since that change.

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

79100423

Date: 2024-10-18 03:15:59
Score: 2.5
Natty:
Report link

if only update ssl is required, don't reconfig gitlab, just reload nginx.

sudo gitlab-ctl hup nginx
sudo gitlab-ctl hup registry

here is the official docs:https://docs.gitlab.com/omnibus/settings/ssl/index.html#update-the-ssl-certificates

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

79100410

Date: 2024-10-18 03:11:59
Score: 3.5
Natty:
Report link

(&(objectClass=User)(objectcategory=person)(!(|(msDS-parentdistname=OU=Designers,OU=Employees,DC=company,DC=com))))

this worked.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: sajed alam

79100407

Date: 2024-10-18 03:10:58
Score: 10.5 🚩
Natty: 5
Report link

I'm also integrating Unity+ Vuforia with Android Studio and I'm having problems. Were you able to solve it?

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kptoo

79100393

Date: 2024-10-18 03:02:56
Score: 0.5
Natty:
Report link

Don’t install packages in the base environment!

Create a new environment for each project with

conda create --name myenv python=3.x

Remove Unused Environments and clean up old environments with

conda remove --name oldenv --all

and keep Conda updated! That's all you need.

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

79100392

Date: 2024-10-18 03:02:56
Score: 2
Natty:
Report link

check the import class

for example this println() do not show the text

import java.sql.DriverManager.println

enter image description here

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

79100382

Date: 2024-10-18 02:57:55
Score: 2.5
Natty:
Report link

package com.test.staticvariables;

import android.app.Activity; import android.os.Bundle;

public class MainActivity extends Activity {

@Override protected void onCreate(Bundle savedInstanceState) {

//---> Initial your singleton before creating the view for your activity

Test1 test1 = Test1.getInstance();

super.onCreate(savedInstanceState); setContentView(R.layout.layout_of_activity);

// do something Test2.printTest1Instances();

} }

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Override
  • Low reputation (1):
Posted by: Morteza Habib Zadeh

79100374

Date: 2024-10-18 02:52:54
Score: 2.5
Natty:
Report link

After researching many sources such as chemistry and github and stackoverflow, I have not found a way to add codes to the exist script in order to redirect pybel warnings to a log file. However, I can provide you a possible solution here by using script. By modifying your code:

import pybel

smiles = pybel.readfile('smi', 'smiles.txt')
converted = []
for mol in smiles:
    print(mol)
    smiles_str = mol.write('smiles')
    inchikey_str = mol.write('inchikey')

with a command run:

script -c "python smiles2sdf.py" log.txt

It will output everything shown on terminal during executing to log.txt. This feature makes us be careful to choose what will be appeared on screen.

Further information about this package is here.

Hope this help.

p.s: I also want to capture pybel warnings programmatically. If there is a possible method to do that, please provide me. Thank you very much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): Hope this help
  • RegEx Blacklisted phrase (2.5): please provide me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: M.Vu

79100366

Date: 2024-10-18 02:50:53
Score: 3.5
Natty:
Report link

Apologies, posting as I don't have enough reputation to reply in thread.

I am not familiar with powershell-empire but I would recommend you post a bug to their bug tracker. That will be your best bet for catching the right people's attention. Best of luck :)

Reasons:
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Zac Scott

79100360

Date: 2024-10-18 02:44:51
Score: 4.5
Natty: 5
Report link

But if we want to repopulate other values on the select2 using the livewire.Like another select that on change If we want to wire it to a public property.Is not there another way instead of wire:ignore?

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

79100358

Date: 2024-10-18 02:43:51
Score: 0.5
Natty:
Report link

Try to use and modify this code apply to your case, if it's any help. Replace Table1 in the first line with the name of your source table.

let
Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],

// Group by CurveName GroupedByCurve = Table.Group(Source, {"CurveName"}, { {"Data", each _, type table [CurveName=text, BusinessDays=number, InterestRate=number]}, {"MinDay", each List.Min([BusinessDays]), type number}, {"MaxDay", each List.Max([BusinessDays]), type number} }), // Generate interpolated data for each curve InterpolatedData = Table.AddColumn(GroupedByCurve, "InterpolatedData", each let AllDays = {[MinDay]..[MaxDay]}, Interpolate = (day) => let SortedData = Table.Sort([Data], {{"BusinessDays", Order.Ascending}}), PrevRow = Table.SelectRows(SortedData, each [BusinessDays] <= day), NextRow = Table.SelectRows(SortedData, each [BusinessDays] > day), Prev = Table.LastN(PrevRow, 1), Next = Table.FirstN(NextRow, 1), x1 = Prev[BusinessDays]{0}, y1 = Prev[InterestRate]{0}, x2 = Next[BusinessDays]{0}, y2 = Next[InterestRate]{0}, InterpolatedRate = y1 + (y2 - y1) * (day - x1) / (x2 - x1) in [BusinessDays = day, InterestRate = InterpolatedRate] in List.Transform(AllDays, Interpolate) ), // Expand the interpolated data ExpandedData = Table.ExpandListColumn(InterpolatedData, "InterpolatedData"), FinalResult = Table.ExpandRecordColumn(ExpandedData, "InterpolatedData", {"BusinessDays", "InterestRate"}, {"BusinessDays", "InterestRate"}), // Remove unnecessary columns and sort the result CleanedResult = Table.RemoveColumns(FinalResult, {"Data", "MinDay", "MaxDay"}), SortedResult = Table.Sort(CleanedResult, {{"CurveName", Order.Ascending}, {"BusinessDays", Order.Ascending}})

in SortedResult

Reasons:
  • Blacklisted phrase (1): any help
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vmhung

79100354

Date: 2024-10-18 02:40:50
Score: 1
Natty:
Report link

This is the native and correct way to create a gradient background for the ElevatedButton using backgroundBuilder!

Code Sample:

 ElevatedButton(
  style: ElevatedButton.styleFrom(
    backgroundBuilder: (context, state, child) {
      return Container(
        decoration: const BoxDecoration(
          gradient: LinearGradient(
            colors: [Colors.purple, Colors.blue],
            begin: Alignment.topLeft,
            end: Alignment.bottomRight,
          ),
        ),
        child: const Icon(Icons.apple),
      );
    },
  ),
  child: const Icon(Icons.apple),
  onPressed: () {},
)

Button

Good coding! 🩵

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

79100342

Date: 2024-10-18 02:34:49
Score: 1
Natty:
Report link

I figured out how to solve the issue. The problem can be resolved by downgrading the pandas version to 1.2.5 or lower. Any version higher than 1.2.5 seems to cause the failure. However, I am not sure why this is happening.

If anyone has insights into why versions higher than 1.2.5 of pandas might be causing this issue, I would appreciate any explanations or suggestions.

Here is how you can downgrade pandas:

pip uninstall pandas
pip install pandas==1.2.5

After downgrading, the code should work as expected on both Windows and Linux.

Reasons:
  • Blacklisted phrase (1): how to solve
  • Blacklisted phrase (1.5): would appreciate
  • Whitelisted phrase (-2): I figured out
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rain

79100341

Date: 2024-10-18 02:32:48
Score: 0.5
Natty:
Report link

We can do this:

def rindex(array, value) -> int:
    i = array[::-1].index(value)
    return len(array) - i - 1

That will not revert array in memory address, then it avoids two array.reverse() calls.

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

79100339

Date: 2024-10-18 02:30:48
Score: 1.5
Natty:
Report link
find -empty -type d | xarg rm -d 

This will find and delete all empty folders only at your current location.

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

79100325

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

You can achieve this by writing a functional validator like so:

from typing import Annotated

from pydantic import BaseModel, HttpUrl, AfterValidator

HttpStr = Annotated[HttpUrl, AfterValidator(str)]


class MyModel(BaseModel):
    url: HttpStr


m1 = MyModel(url="https://hello.com")
assert m1.url == "https://hello.com/"

m2 = MyModel(url="https://hello[.]com")  # raises ValidationError("Input should be a valid URL, invalid domain character")

In this example we leverage HttpUrl annotated type, and then add an AfterValidator to coerce the Url back into a string.

However, quickly shimming through the SQLAlchemy documentation it looks like this might be a common problem with a documented workaround. Potentially this might be more elegant approach to your specific problem?

A frequent need is to force the “string” version of a type, that is the one rendered in a CREATE TABLE statement or other SQL function like CAST, to be changed.

https://docs.sqlalchemy.org/en/20/core/custom_types.html#overriding-type-compilation

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Zac Scott

79100323

Date: 2024-10-18 02:19:45
Score: 10.5 🚩
Natty: 6.5
Report link

@TanyaMarchuk we're having this problem 4 years later... Can you help with the solution if you were able to solve it? Thank you so much.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1.5): solve it?
  • RegEx Blacklisted phrase (3): Can you help
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @TanyaMarchuk
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: TicTac Toe

79100319

Date: 2024-10-18 02:18:44
Score: 1
Natty:
Report link

Sometimes restarting your ADB server can help resolve connection issues. You can do this with:

adb kill-server
adb start-server

To check if the debugger is attached you can run:

jinfo <pid>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: darkod7

79100308

Date: 2024-10-18 02:07:43
Score: 3.5
Natty:
Report link

I am trying to get the status of lambda function as failed or successful based on the presence of error/exceptions along with the timestamp of lambda start and end time to be shown in cloudwatch dashboard. I am succesfull in getting the timestamps but not sure how to get the status. here is what i have tried:

fields @timestamp, @message, @type
| filter @type in ["START", "END", "REPORT"] or @message like /(?i)(error|exception)/
| parse @message /(?[0-9a-f-]{36})/
| parse @log //aws/lambda/(?[^/]+)/
| stats
earliest(@timestamp) as start_time,
latest(@timestamp) as end_time,
count(*) as total_count,
count(@message like /(?i)(error|exception)/ or @message like /Task timed out/ or @message like /Function Error/) as error_count
by functionName, requestId
| sort by start_time desc
| fields
functionName,
requestId,
start_time,
end_time,
(error_count > 0) as failed,
(error_count = 0) as successful
| limit 100

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @timestamp
  • User mentioned (0): @message
  • User mentioned (0): @type
  • User mentioned (0): @type
  • User mentioned (0): @message
  • User mentioned (0): @message
  • User mentioned (0): @log
  • User mentioned (0): @message
  • User mentioned (0): @message
  • Low reputation (1):
Posted by: ameer hamza

79100300

Date: 2024-10-18 02:02:42
Score: 1
Natty:
Report link

Let's see what would we get if pred was a const&

std::copy_if doesn't take a const& predicate so lets implement our copy_if_const_ref

#include <vector>
#include <iostream>

/* Custom copy_if implementation using const& */
template <typename InputIt, typename OutputIt, typename UnaryPred>
OutputIt copy_if_const_ref(InputIt first, InputIt last, OutputIt d_first, const UnaryPred& pred) {
    for (; first != last; ++first) {
        if (pred(*first)) {  /* error: no match for call to '(const main()::<lambda(int)>) (int&)' */
            *d_first++ = *first;
        }
    }
    return d_first;
}

int main() {
    std::vector<int> n1 = {1, 2, 3, 4, 5, 6};
    std::vector<int> n2;

    int count = 0;

    /* Mutable lambda that modifies a captured state because i simply want to do this */
    auto pred = [=](int x) mutable {
        ++count;
        return x % 2 == 0;
    };

    /* This will fail to compile because the lambda cannot modify its state */
    copy_if_const_ref(n1.begin(), n1.end(), std::back_inserter(n2), pred);

    return 0;
}

This code won't compile because the predicate is passed as a const UnaryPred&, which prevents the mutable lambda from modifying its captured state

A fix to this code is as simple as modifying the predicate to be

auto pred = [/* = */](int x) mutable {
    /* ++count; */
    return x % 2 == 0;
};

The list of the reasons for the predicate not to be a const& goes on, that was just a simple use case where my copy_if_const_ref fails.

Why would the "Standards" put limits to the flexibility of the "Standard functions" ?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Moe

79100294

Date: 2024-10-18 01:58:41
Score: 5
Natty:
Report link

i am having this problem too, i am also looking for a powershell script to run automatically when the installer is run. i am still new to jvm. haha

Reasons:
  • Blacklisted phrase (2): i am also looking
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alvian Iqbal

79100284

Date: 2024-10-18 01:49:39
Score: 1
Natty:
Report link

for me, problem solved by removing proxy from gradle.properties file in C:\Users\USERNAME\.gradle directory removing these lines:

systemProp.http.proxyHost=hostname
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=de\\username
systemProp.http.proxyPassword=xxx
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ahzare

79100278

Date: 2024-10-18 01:42:37
Score: 4.5
Natty: 5
Report link

THANKS,i meet the same problem

Reasons:
  • Blacklisted phrase (0.5): THANKS
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Asinin

79100274

Date: 2024-10-18 01:41:37
Score: 0.5
Natty:
Report link

filter by foreign object, need '__'. usin '_' is not find foreign object.

# call foreign object
a = Current_tests.object.get({some code})
b = a.poduct

# filter by foreign object
a = Current_tests.object.get(product__name='{some name}')
b = a.poduct
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: django.seolpyo.com

79100266

Date: 2024-10-18 01:33:35
Score: 2.5
Natty:
Report link

Answer based on https://stackoverflow.com/a/77610649/8218659, but have a problem in Xcode 16 and higher of iOS 17 'Preview(_:traits:_:body:)' is only available in iOS 17.0 or newer

solved:

@available(iOS 17.0, *) // <- Here add
#Preview(traits: .landscapeLeft) { //<- Here
    ContentView()
        //.previewInterfaceOrientation(.landscapeLeft) //<- no longer work
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andres Garcia

79100265

Date: 2024-10-18 01:33:35
Score: 1
Natty:
Report link

You actually has 2 way to get cookie values. One is using HttpContext when SSR. Another is using Javascript Interop to read from the browser storage.

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

79100258

Date: 2024-10-18 01:26:34
Score: 1
Natty:
Report link

From the documentation, matplotlib.pyplot.savefig takes a transparency and backend argument that may help you. Also, it takes a format argument so that you could save the figure as png to see if that works instead, if that's an option for you. You could try calling it like this:

plt.savefig("test.pdf", format="png")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jon DuBois

79100244

Date: 2024-10-18 01:17:33
Score: 1
Natty:
Report link

Just use

ReflectionTestUtils.setField(yourClass, "variable", value);

from org.springframework.test.util

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

79100236

Date: 2024-10-18 01:12:31
Score: 1.5
Natty:
Report link

This answer worked for me: https://stackoverflow.com/a/78619685/6199781

  1. Uninstalling node using fnm uninstall <version> (in my case 20)
  2. Then run fnm env --use-on-cd | Out-String | Invoke-Expression
  3. Then reinstall node fnm install <verson>

The problem I'm having is that I have to do these steps every time I start powershell. I have no clue how to get the settings to stick.

Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): worked for me
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ozzy

79100224

Date: 2024-10-18 01:03:29
Score: 3.5
Natty:
Report link

Một vài trường hợp nó thực sự không thay đổi. Tôi đã đợi hơn 1 tháng và meta title khác, hiển thị trên google vẫn khác. Đây là demo, bạn sẽ thấy rõ. https://chuyengiakholanh.com/kho-lanh/kho-lanh-mini/ Và hình ảnh Google search keyword

Meta title code

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: JSC Tủ đông lạnh

79100219

Date: 2024-10-18 01:01:29
Score: 4
Natty:
Report link

Since data comes from Amazon it can happen that it arrives in utf8mb4 instead of utf8. The first one can store 4 bytes, the other can hold max 3. This can cause the Replacement character. Characters like emojis or others can create trouble for utf8. In MySQL utf8 equals to utf8mb3.

More about this here: What is the difference between utf8mb4 and utf8 charsets in MySQL?

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

79100215

Date: 2024-10-18 00:55:27
Score: 3
Natty:
Report link

Following on from the above answer, you may be able to use require() if you prefer your original style of importing the assets. This seems like a React syntactical sort of issue.

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

79100211

Date: 2024-10-18 00:51:27
Score: 3
Natty:
Report link

Finally we figure it out,Lockless qdisc has concurrent problem,it's a kernel bug in linux 5.10,below is the link which solve the problem.

Lockless qdisc has concurrent problem.

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

79100207

Date: 2024-10-18 00:49:26
Score: 0.5
Natty:
Report link

First of all ensure that your templates use label key from the values.yaml:

labels:
    app: {{ .Chart.Name }}

Then set up your value in the values.yaml:

YourLabels:
  YourLabel1: "some-value"
  1. Run
helm install <your-chart> . --set yourLabels.yourLabel1=yourlabel
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: poisoned_monkey

79100203

Date: 2024-10-18 00:46:25
Score: 1.5
Natty:
Report link

How about including the ids when you add to the db

chroma.add_texts(
    texts=split_texts, 
    embeddings=embeddings, 
    metadatas=[{'source': doc['source']} for doc in documents], 
    ids=ids  # Include the IDs here
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): How
  • Low reputation (1):
Posted by: EGGoist

79100188

Date: 2024-10-18 00:32:22
Score: 1
Natty:
Report link

I solved this by installing the latest version Ladybug Nightly on the jetbrains toolbox https://www.jetbrains.com/toolbox-app/

Reasons:
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: prensj

79100180

Date: 2024-10-18 00:28:21
Score: 3.5
Natty:
Report link

I found the error. My db relationship config was wrong, when I changed the user in room the Adm was replaced with this user. This happening because of the db relationship.

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

79100167

Date: 2024-10-18 00:17:19
Score: 2.5
Natty:
Report link

You already have the answer to your question, but I just want to point that you are using ReLU in the last layer, but you said you were doing classification. I think you should use SoftMax there, no ReLU.

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

79100147

Date: 2024-10-18 00:05:16
Score: 2
Natty:
Report link

If you are asking if the silent notification can detect if a device has uninstalled your app then the answer is no. APNs stores all device tokens and handles them itself. All that 200 code is telling you is that the device token is still in their system(Whether or not the device is still active).

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

79100141

Date: 2024-10-17 23:58:15
Score: 2.5
Natty:
Report link

To add to romainl’s excellent answer, if the aim is to keep the default palette but replace the bright colours, start from syntax/syncolor.vim.

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

79100139

Date: 2024-10-17 23:57:15
Score: 1.5
Natty:
Report link

I think the issue here is related to the version of MySQL server that you're connecting to. At least that's what I saw in my environment. You should upgrade the engine to a newer version and you'll solve this issue and avoid security threats in the process.

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

79100131

Date: 2024-10-17 23:49:13
Score: 1
Natty:
Report link

for me, problem solved by removing proxy from gradle.properties file in C:\Users\USERNAME\.gradle directory removing these lines:

systemProp.http.proxyHost=hostname
systemProp.http.proxyPort=8080
systemProp.http.proxyUser=de\\username
systemProp.http.proxyPassword=xxx
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ahzare

79100130

Date: 2024-10-17 23:48:13
Score: 2
Natty:
Report link

run cmd

 cd C:\Program Files\Docker Toolbox
 docker-start
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: varry

79100125

Date: 2024-10-17 23:45:12
Score: 4.5
Natty: 5
Report link

Choosing the right website design agency in phoenix is key to success, and this blog clearly explains how to make an informed decision.

Reasons:
  • Blacklisted phrase (1): this blog
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Oris H

79100118

Date: 2024-10-17 23:41:11
Score: 0.5
Natty:
Report link

I found this thread, in which a fully docker installation is explained.

They used the compose feature 'extra_hosts' to make the servers know each other.

extra_hosts:
  - "code.foo.tld=x1.x2.x3.x4"
  - "nextcloud.foo.tld=y1.y1.y1.y1"

As you are running it all on one docker host, you could probably use the local IP addresses. According to the log, the CODE server was converting your FQDN for the nextcloud server to z.z.z.z instead of y1.y1.y1.y1

Yet, instead of setting this up all by yourself, I do recommend to use nextcloud-aio instead. It comes with Nexcloud, redis and CODE containers already preconfigured. A great setup to start with nextcloud

external CODE server

As I myself have rented a nextcloud server at hetzner, I needed an external CODE server, as hetzner does not install a CODE server and does not allow installation of one due to limited resources of the server running the nextcloud instances.

Hence I am running a CODE docker container on a private vserver, behind a reverse proxy (using nginx proxy manager), which handles the SSL certificate and the encryption.

As I got the same error message "convert-to: Requesting address is denied: x.x.x.x", I ended up in this thread.

Here is my finally working commented compose.yaml - maybe it helps anyone with the same problem:

# the docs: https://sdk.collaboraonline.com/docs/installation/CODE_Docker_image.html

services:  
  collabora_code:
    container_name: code_office
    image: collabora/code:latest
    restart: always

    # "privileged" needs to be set for the collabora server (see docs) but just throws many errors. rather use MKNOD (see below)
    # privileged: true  

    # I have the reverse proxy forwarding the traffic to port 9980, so no need to expose the ports on the public interface of the docker host
    # ports:
      # - '9980:9980' # CODE Ports

    environment:
      server_name: "collabora.mydomain.de"  # the FQDN address this server is reachable at
      cert_domain: "collabora.mydomain.de"  # the FQDN address this server is reachable at
      DONT_GEN_SSL_CERT: true  # do not generate a SSL certificate

      aliasgroup1: https://nc.mydomain.com  # the FQDN of the nextcloud server - access via WOPI
      # aliasgroup1: "https://x.x.x.x"  # try your IPv4 if the FQDN  does not work
      # aliasgroup1: "https://.*:443"  # this allows all hosts to connect via WOPI

      username: "admin"
      password: "mytopsecretpassword"
      dictionaries: "de_DE en_GB en_US"  # the dictionaries for the correction in text files

      # disable ssl as NGINX Reverse Proxy is handling the certification 
      # additionally termination has to be set according to the docs, as the traffic is not encrypted between the docker host and the docker container (http is enough for network traffic within the docker host)
      # also load fonts from the nextcloud server 
      extra_params: "--o:ssl.enable=false --o:ssl.termination=true --o:remote_font_config.url=https://nc.mydomain.com/apps/richdocuments/settings/fonts.json"  

    cap_add:
      # gives additional filesystem access to the container
      - MKNOD

If you fail to open a file or connect the Nextcloud server to the Code server, try the aliasgroup1: "https://.*:443" setting, to allow every host to connect to the CODE server. It might help to see where you are stuck at.

And remember to enable Websocket Support in your reverse proxy!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Red

79100115

Date: 2024-10-17 23:40:11
Score: 3.5
Natty:
Report link

According to meaningfulness towards terminal adaptability towards commonness of command.

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

79100113

Date: 2024-10-17 23:39:11
Score: 0.5
Natty:
Report link

This might be extremely outdated, but i hope it helps someone. It looks like those options only appear when executed in the console, soo you have to set run in the console by default. Go to the upper right to debug configurations, press edit configuration, modify options and select run with python console. Photos to guide. [1]: https://i.sstatic.net/mL17Tj1D.png [2]: https://i.sstatic.net/0bZc7YyC.png

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sergio Contreras Cabrera

79100112

Date: 2024-10-17 23:38:10
Score: 1
Natty:
Report link

This one works with the gitpython library:

from git import Repo
repo = Repo('https://github.com/readme')
repo_tags = repo.git.ls_remote("--tags",'https://github.com/readme',sort='-v:refname')
print(rr.split('\n')[0].split('/')[-1])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Towhid Islam

79100111

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

i create a new directory, i put dist directory(if u using vite) into that file, and set it as a public directory.

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

79100104

Date: 2024-10-17 23:29:08
Score: 13.5 🚩
Natty:
Report link

Do you find any solution? I have the same problem

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2.5): Do you find any
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Edzon Bolivar Santos

79100094

Date: 2024-10-17 23:25:07
Score: 2.5
Natty:
Report link

Lose the backslashes and it all matches as you wish.

enter image description here

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

79100088

Date: 2024-10-17 23:21:05
Score: 8.5 🚩
Natty:
Report link

Can you share the VBA code to remove 'FW:' from Outlook calendar invites?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can you share the
  • Low reputation (1):
Posted by: rcporter

79100084

Date: 2024-10-17 23:17:04
Score: 4.5
Natty: 6
Report link

how do I write the numbers in IDLE SHELL 3.12.6? it very confusing if I write int=500,after clicking on enter it will then write ... and if I click on it I won't be able to write anything on line ...

Reasons:
  • Blacklisted phrase (1): how do I
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Starts with a question (0.5): how do I
  • Low reputation (1):
Posted by: Damaris

79100081

Date: 2024-10-17 23:16:02
Score: 11 🚩
Natty: 6.5
Report link

did you found a solution for this ? I have the same problem with release...

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you
  • Low reputation (1):
Posted by: Aarón Joffré

79100074

Date: 2024-10-17 23:09:01
Score: 1
Natty:
Report link

On configure a new CYBERNET Panel PC with Win10, I experienced the similar issue (ie some widgets are not shown after some screen activities until switched to other app Alt-Tab, or click onto some other buttons in the app), it doesn't happened on a development CYBERNET Panel PC. After create a new user, install the same Python 3.9.12, the same kivy 2.2.1 the issue still exist. Until I found the Graphic Driver is different. It was 31.0.101.3222 Intel Iris Xe Graphics 11/07/2022. After update to 32.0.101.6083 2/10/2024, the issue disappeared. Hope this useful for someone in future.

ps I am surprised by a new PC in 2024 is installed with a 2022 Graphic Driver :p

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: T VV I N 5 You

79100073

Date: 2024-10-17 23:08:01
Score: 4
Natty:
Report link

here is fresh guide and extension implemented. I wrote a instruction about it with test setup. Works with keycloak 25 https://www.zloom.org/blogs/how-to-add-external-data-to-keycloak-token/

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

79100071

Date: 2024-10-17 23:07:00
Score: 2
Natty:
Report link

all i had to do is install vite-node and execute the following script. stupid simple!

    "dev": "vite-node --watch src/index.ts",

found here: https://github.com/TypeStrong/ts-node/issues/1997#issuecomment-2405925074

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stefan Löhers

79100065

Date: 2024-10-17 23:00:59
Score: 7.5 🚩
Natty:
Report link

@yee379 @larsks

Did you ever get this working? We're having the same issue and I can't figure out what we're doing wrong. I even went so far as to create a custom CNPG image with our root CA baked into it. But it still refuses to work. The only solution we've found is to disable certificate checking via:

  env:
    - name: LDAPTLS_REQCERT
      value: never

I realize this is a security risk and the wrong way to solve this issue, but I'm exasperated about how to get it to work any other way.

Reasons:
  • RegEx Blacklisted phrase (3): Did you ever get this
  • RegEx Blacklisted phrase (2): working?
  • Has code block (-0.5):
  • Me too answer (2.5): having the same issue
  • Contains question mark (0.5):
  • User mentioned (1): @yee379
  • User mentioned (0): @larsks
  • High reputation (-1):
Posted by: Brad

79100059

Date: 2024-10-17 22:57:58
Score: 1.5
Natty:
Report link

Kong Nopwattanapong published a blog post with regards to Building a simple RAG chatbot with LangChain.

Nopwattanapong concluded, the model isn’t perfect and there are still many things to add to and improve the model in future. However, this will hopefully give you a basic understanding of how to create an RAG chatbot and how vector databases work.

Another example that might help you in Building an LLM and RAG-based chat application using AlloyDB AI and LangChain. In this codelab you will learn how to deploy the GenAI Databases Retrieval Service and create a sample interactive application using the deployed environment. You may explore this github repository for more code level guide in GenAI Databases Retrieval App.

Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: McMaco

79100058

Date: 2024-10-17 22:56:57
Score: 2
Natty:
Report link

For a quick solution you can wrap it with <div>

<template> <div> ... </div> </template>
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ecemozturk

79100041

Date: 2024-10-17 22:45:55
Score: 1.5
Natty:
Report link

The lazy way is to only set your parameters in your Jenkinsfile. Do not set in Jenkins web interface. (Something will auto-populate into Jenkins, but ignore this.) When you switch to a new branch with different parameters, run a build just long enough for it to pull from SCM. Then abort the build. Then run again. The second run will have the correct parameters.

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

79100037

Date: 2024-10-17 22:43:55
Score: 0.5
Natty:
Report link

Stripe is currently running a test with different placeholder treatments in the Payment Element. You'll see different placeholder text appear, change, or disappear until they're done testing.

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

79100034

Date: 2024-10-17 22:41:54
Score: 1
Natty:
Report link

I needed to combine an answer with research from a comment to do what I wanted: actually download the files and get them in their actual forms (so, e.g., I could open image files).

git lfs fetch --all
git lfs pull
git lfs checkout
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sam R

79100023

Date: 2024-10-17 22:36:53
Score: 2
Natty:
Report link

I'm using teamcity-sdk-maven-plugin im my pom.xml to facilitate development, with this in IntelliJ, some shortcuts appear to start, restart, etc., the TeamCity is shown on Maven window, below tc-sdk

enter image description here

Using tc-sdk:start, the server debug happens on port 10111 and the agent debug happens on port 10112.

You need to include in IntelliJ a debug configuration for each of the ports

enter image description here

You can see some other information on https://github.com/JetBrains/teamcity-sdk-maven-plugin

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

79100021

Date: 2024-10-17 22:36:53
Score: 1.5
Natty:
Report link

try removing the android folder

then press the "flutter create ." on your terminal. this will regenerate the folder afresh and resolves the problem

flutter create .

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

79100018

Date: 2024-10-17 22:35:53
Score: 1.5
Natty:
Report link

Thanks for your replies everyone, I took on the advice of @Andreas Wenzel and re-read hint in the question. Implimented by making a nested loop just for the copy array and moved all the other code to another nested for loop. I also applied the cast to float and round functions within the loop and removed the section at the bottom of the loop where I reassign the values from "copy" to "image".

code now passes all the checks.

void blur(int height, int width, RGBTRIPLE image[height][width])
{

RGBTRIPLE copy[height][width];
int count = 0;

for (int i = 0; i < height; i++)
{
    for (int j = 0; j < width; j++)
    {
        copy[i][j] = image[i][j];
    }
}
for (int i = 0; i < height; i++)
{
    for (int j = 0; j < width; j++)
    {
        // check that the + 1's and - 1's won't take loop out of bounds
        // left bottom corner (/4)
        if (i + 1 == height && j - 1 < 0)
        {
            count = 4.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i - 1][j].rgbtRed +
                               copy[i][j + 1].rgbtRed + copy[i - 1][j + 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i - 1][j].rgbtGreen +
                               copy[i][j + 1].rgbtGreen + copy[i - 1][j + 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i - 1][j].rgbtBlue +
                               copy[i][j + 1].rgbtBlue + copy[i - 1][j + 1].rgbtBlue) /
                      count);
        }
        // right top corner
        else if (i - 1 < 0 && j + 1 == width)
        {
            count = 4.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i + 1][j].rgbtRed +
                               copy[i][j - 1].rgbtRed + copy[i + 1][j - 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i + 1][j].rgbtGreen +
                               copy[i][j - 1].rgbtGreen + copy[i + 1][j - 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i + 1][j].rgbtBlue +
                               copy[i][j - 1].rgbtBlue + copy[i + 1][j - 1].rgbtBlue) /
                      count);
        }
        // right bottom corner
        else if (i + 1 == height && j + 1 == width)
        {
            count = 4.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i - 1][j].rgbtRed +
                               copy[i][j - 1].rgbtRed + copy[i - 1][j - 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i - 1][j].rgbtGreen +
                               copy[i][j - 1].rgbtGreen + copy[i - 1][j - 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i - 1][j].rgbtBlue +
                               copy[i][j - 1].rgbtBlue + copy[i - 1][j - 1].rgbtBlue) /
                      count);
        }
        // left top corner
        else if (i - 1 < 0 && j - 1 < 0)
        {
            count = 4.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i + 1][j].rgbtRed +
                               copy[i][j + 1].rgbtRed + copy[i + 1][j + 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i + 1][j].rgbtGreen +
                               copy[i][j + 1].rgbtGreen + copy[i + 1][j + 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i + 1][j].rgbtBlue +
                               copy[i][j + 1].rgbtBlue + copy[i + 1][j + 1].rgbtBlue) /
                      count);
        }
        // left edge (/6)
        else if (j - 1 < 0)
        {
            count = 6.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i + 1][j].rgbtRed +
                               copy[i - 1][j].rgbtRed + copy[i][j + 1].rgbtRed +
                               copy[i + 1][j + 1].rgbtRed + copy[i - 1][j + 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i + 1][j].rgbtGreen +
                               copy[i - 1][j].rgbtGreen + copy[i][j + 1].rgbtGreen +
                               copy[i + 1][j + 1].rgbtGreen + copy[i - 1][j + 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i + 1][j].rgbtBlue +
                               copy[i - 1][j].rgbtBlue + copy[i][j + 1].rgbtBlue +
                               copy[i + 1][j + 1].rgbtBlue + copy[i - 1][j + 1].rgbtBlue) /
                      count);
        }
        // right edge
        else if (j + 1 == width)
        {
            count = 6.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i + 1][j].rgbtRed +
                               copy[i - 1][j].rgbtRed + copy[i][j - 1].rgbtRed +
                               copy[i + 1][j - 1].rgbtRed + copy[i - 1][j - 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i + 1][j].rgbtGreen +
                               copy[i - 1][j].rgbtGreen + copy[i][j - 1].rgbtGreen +
                               copy[i + 1][j - 1].rgbtGreen + copy[i - 1][j - 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i + 1][j].rgbtBlue +
                               copy[i - 1][j].rgbtBlue + copy[i][j - 1].rgbtBlue +
                               copy[i + 1][j - 1].rgbtBlue + copy[i - 1][j - 1].rgbtBlue) /
                      count);
        }
        // top edge
        else if (i - 1 < 0)
        {
            count = 6.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i + 1][j].rgbtRed +
                               copy[i][j + 1].rgbtRed + copy[i][j - 1].rgbtRed +
                               copy[i + 1][j + 1].rgbtRed + copy[i + 1][j - 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i + 1][j].rgbtGreen +
                               copy[i][j + 1].rgbtGreen + copy[i][j - 1].rgbtGreen +
                               copy[i + 1][j + 1].rgbtGreen + copy[i + 1][j - 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i + 1][j].rgbtBlue +
                               copy[i][j + 1].rgbtBlue + copy[i][j - 1].rgbtBlue +
                               copy[i + 1][j + 1].rgbtBlue + copy[i + 1][j - 1].rgbtBlue) /
                      count);
        }
        // bottom edge
        else if (i + 1 == height)
        {
            count = 6.0;
            // red
            image[i][j].rgbtRed =
                round((float) (copy[i][j].rgbtRed + copy[i - 1][j].rgbtRed +
                               copy[i][j + 1].rgbtRed + copy[i][j - 1].rgbtRed +
                               copy[i - 1][j + 1].rgbtRed + copy[i - 1][j - 1].rgbtRed) /
                      count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i - 1][j].rgbtGreen +
                               copy[i][j + 1].rgbtGreen + copy[i][j - 1].rgbtGreen +
                               copy[i - 1][j + 1].rgbtGreen + copy[i - 1][j - 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i - 1][j].rgbtBlue +
                               copy[i][j + 1].rgbtBlue + copy[i][j - 1].rgbtBlue +
                               copy[i - 1][j + 1].rgbtBlue + copy[i - 1][j - 1].rgbtBlue) /
                      count);
        }
        else
        {
            count = 9.0;
            // red
            image[i][j].rgbtRed = round(
                (float) (copy[i][j].rgbtRed + copy[i + 1][j].rgbtRed + copy[i - 1][j].rgbtRed +
                         copy[i][j + 1].rgbtRed + copy[i][j - 1].rgbtRed +
                         copy[i + 1][j + 1].rgbtRed + copy[i + 1][j - 1].rgbtRed +
                         copy[i - 1][j + 1].rgbtRed + copy[i - 1][j - 1].rgbtRed) /
                count);
            // green
            image[i][j].rgbtGreen =
                round((float) (copy[i][j].rgbtGreen + copy[i + 1][j].rgbtGreen +
                               copy[i - 1][j].rgbtGreen + copy[i][j + 1].rgbtGreen +
                               copy[i][j - 1].rgbtGreen + copy[i + 1][j + 1].rgbtGreen +
                               copy[i + 1][j - 1].rgbtGreen + copy[i - 1][j + 1].rgbtGreen +
                               copy[i - 1][j - 1].rgbtGreen) /
                      count);
            // blue
            image[i][j].rgbtBlue =
                round((float) (copy[i][j].rgbtBlue + copy[i + 1][j].rgbtBlue +
                               copy[i - 1][j].rgbtBlue + copy[i][j + 1].rgbtBlue +
                               copy[i][j - 1].rgbtBlue + copy[i + 1][j + 1].rgbtBlue +
                               copy[i + 1][j - 1].rgbtBlue + copy[i - 1][j + 1].rgbtBlue +
                               copy[i - 1][j - 1].rgbtBlue) /
                      count);
        }
    }
}
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Andreas
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user27842128

79100016

Date: 2024-10-17 22:34:52
Score: 1
Natty:
Report link

Looks like the issue was that the model id I was using is incorrect. It should have been meta.llama3-2-11b-instruct-v1:0. However, it looks like this specific model does not support this functionality

ValidationException: An error occurred (ValidationException) when calling the Converse operation: The provided model doesn't support on-demand throughput.
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Nathan Bennett

79100011

Date: 2024-10-17 22:32:52
Score: 1
Natty:
Report link

I presume, of you wrote a const array ready to be called, you could 'push' a text chunk, but as a common case, library limitation could conflict, and might not allow conversion, particularly on code attributes that may be common to other languages. For respondance however, your 'look' may not be replied to, but on a word-to-word basis you may get a partial sentence or another word, and even better of you can define that in your array. You can display of the same way by either calling directly by input or calling an array variable name by input, if you can fix that back to the language. Web sockets needn't be intertwined with, and you can let the browser do its best compatible for you, if you use api keys, or in case of open resources like wikipedia, just use the searcharea code.

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

79100004

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

It is not possible to use some Python script there:

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

79099999

Date: 2024-10-17 22:22:50
Score: 1
Natty:
Report link

In my case it made most sense to just throw the Exception inside the try catch block. I want to do this because I want to make sure that a user is logged in and don't want to handle a nullable User object.

@override
void onNavigation(NavigationResolver resolver, StackRouter router) {
  try {
    final user = ref.watch(firebaseAuthProvider).currentUser;
    if (user == null) {
      throw UserNotSignedInException();
    }
    resolver.next();
  } on UserNotSignedInException {
    logger('User is not logged in, pushing intro route', name: 'IntroGuard');
    router.push(const IntroRoute());
  } catch (e, s) {
    logger(
      'Error navigating to intro route',
      error: e,
      stackTrace: s,
      name: 'IntroGuard',
    );
    router.push(const IntroRoute());
  }
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dario Digregorio

79099997

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

The best solution for my case was to work with UDP:

udpClient = new UdpClient();
endPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 99999); 
byte[] data = Encoding.UTF8.GetBytes(dataToSend);
udpClient.Send(data, data.Length, endPoint);
Debug.Log("Sent data to JavaScript server: " + dataToSend);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rick James

79099996

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

Drives me nuts when companies don't give developers admin rights. This is a dumb mindset where they're treating them like a regular users. If you are concerned about them having elevated rights and what they can or cannot do on their machines, put them in a different domain from the rest of the users. That way it won't matter what they have access to.

The funny part is, when I have worked at places that restrict developers rights like that, normally have so much red tape already, nothing gets done in a timely manner. They tend to be ok with having unproductive developers.

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

79099988

Date: 2024-10-17 22:20:49
Score: 0.5
Natty:
Report link

try:

# Data payload, with variables as a list of dictionaries
data = {
    'ref': branch,
    'variables': [
        {'key': 'TAG_NAME', 'value': tag},
        {'key': 'RELEASE_NUM', 'value': str(release)}  # Ensure release is a string
    ]
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: NEOhitokiri

79099987

Date: 2024-10-17 22:18:49
Score: 0.5
Natty:
Report link

The solution was remarkably easy. Adding .to_i on the set_duration call solved it - apparently passing an int to postgres instead of a float makes all the difference!

  def set_duration
    self.duration = (end_datetime - start_datetime).to_i
  end

It's still not totally clear to me why Rails 7.2 broke the previous functionality, but a quick solution like this is a win.

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

79099974

Date: 2024-10-17 22:12:47
Score: 1
Natty:
Report link

I solved my issue by creating a private function I pass my variable into, rather than using the class variable, but I'm still happy to hear other suggestions.

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

79099968

Date: 2024-10-17 22:08:46
Score: 1
Natty:
Report link

This is not particularly elegant but here is one way using reshape2::dcast and plyr::rbind.fill.matrix. I expect there is a cleaner way.

This uses each unique value of df$bench and filters for df2$start for that value, makes a table of the filtered data's end value, transforms the table to a matrix and binds those together for each value of bench in the original data.

df <- data.frame(
  ids = c(123, 456, 456, 789, 789),
  time = c("start", "start", "end", "start", "end"),
  bench = c("urgent", "intervene", "benchmark", "watch", "above")
)

df2 <- reshape2::dcast(df, ids ~ time, value.var = "bench")
tab <- do.call(plyr::rbind.fill.matrix, lapply(unique(df$bench), function(i) {
  sub <- df2[df2$start == i, ]
  if (nrow(sub) > 0 & any(!is.na(sub$end))) {
    tab <- table(sub$start, sub$end)
    matrix(tab, ncol = ncol(tab), dimnames = dimnames(tab))
  } else {
    out <- matrix(0)
    colnames(out) <- i
    out
  }
}))
rownames(tab) <- unique(df$bench)
tab

          urgent benchmark above
urgent         0        NA    NA
intervene     NA         1    NA
benchmark     NA         0    NA
watch         NA        NA     1
above         NA        NA     0
# using larger example data
set.seed(123)
df <- do.call(rbind, lapply(1:100, function(i) {
  tms <- times[seq_len(round(runif(1, 1.3, 2)))]
  bnch <- sample(benchmarks, length(tms), replace = TRUE)
  data.frame(ids = i, time = tms, bench = bnch)
}))
# ... same steps as above
# this time no 0s because the data has more options present for start/end

          above benchmark intervene urgent watch
benchmark     3         1         2      1     4
intervene     7        NA         3      4     3
above         3         5        NA      2     2
urgent        5         5         7      3     3
watch         3         2        NA      2     2
Reasons:
  • RegEx Blacklisted phrase (2): urgent
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jsumner

79099957

Date: 2024-10-17 22:04:45
Score: 5
Natty:
Report link

I am having the same issue, I'm using the OAuthPrompt one, the auth works fine for some users but for others we have the same behavior as you do, the token is not returned, in this post they suggest to use a different teams version but I'm using the web app and is not working, but maybe can be useful for you.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tania Reyes Martínez

79099952

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

Webhooks only trigger when a change of state occurs. If you have existing pull requests when you create the webhook, nothing will trigger until the state changes, such as when a merge occurs. If you create a new pull request after you set up the webhook, it should trigger.

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

79099933

Date: 2024-10-17 21:57:43
Score: 0.5
Natty:
Report link

You may try:

=filter(PRODUCT,PRODUCT[VALUE]=max(PRODUCT[VALUE]))

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-2):
Posted by: rockinfreakshow

79099929

Date: 2024-10-17 21:56:42
Score: 5
Natty: 4
Report link

Unfortunately, I have the same problem here, and I have tried many different ways to fix it but I couldn't manage to, though I share the most practical and suspicious one: Go to the gradle.properties directory then add android.enableJetifier = true just below the android.useAndroidx = true

Hope this works for you

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Ahmad Shiravand

79099928

Date: 2024-10-17 21:56:42
Score: 1
Natty:
Report link

Use Filter or Query

You may use either:

Filter:

=LET(a,MAX(C2:C4),FILTER(A2:C4,C2:C4=a))

or Query:

=LET(a,MAX(C2:C4),QUERY(A1:C4,"SELECT * WHERE C = "&a,0))

Output:

Filter:

Filter Output

Query:

Query Output

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

79099916

Date: 2024-10-17 21:51:41
Score: 2
Natty:
Report link

I had same problem but got it fixed by doing:

import {
 ValidateNested,
 IsDefined,
 IsNotEmptyObject,
} from 'class-validator';

import { Type } from 'class-transformer';
import { ApiProperty } from '@nestjs/swagger';

@IsDefined()
@IsNotEmptyObject()
@ValidateNested()
@ApiProperty()
@Type(() => AddressDto)
address: AddressDto;

Using this answer stackoverflow.com/a/53685045/4694994

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Friday Onojah

79099913

Date: 2024-10-17 21:50:41
Score: 2
Natty:
Report link

Problem Solved.

When reading an old ticket, I noticed that each version of Microsoft.SDK.Contracts is intended for a specific version of the Windows SDK.

And in fact, I did a lot of maneuvers to try to solve this problem, but what brought the solution was:

Update to the latest version of Windows 11 OS, previously I was using Windows 10 OS;

Use the latest version of Windows 11 SDK at this time, .26100.0;

Use the version of Microsoft.SDK.Contracts equivalent to this version, namely: .26100.1742;

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

79099893

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

If you're referring to InputControlScheme ( https://docs.unity3d.com/Packages/[email protected]/api/UnityEngine.InputSystem.InputControlScheme.html ) then you'll need a custom class to monitor the scheme independent of the device or a 3rd party tool to get it to work.

I tried the custom class route through replacing the PlayerInputManager component. However, I have yet to get it to work. A full scene that includes that custom class (and hopefully will eventually also include fixes for getting it fully working) are posted at https://discussions.unity.com/t/2-players-1-keyboard-custom-playerinputmanager-to-handle-sharing-a-device-with-multiple-players/1535785

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

79099891

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

I have been deleting the default code behind file and linking to classes within in my libraries with the following;

<%@ Assembly name="<AssemblyName>" %>
<%@ Import Namespace="<DefaultNamespace>" %>
<%@ Page Language="C#" AutoEventWireup="false" Inherits="<Namespace(s)>.<ActingCodeBehind>" %>

NB: There is no intellisense this way. Furthermore, I am no longer sure if the first two lines are still relevant. Cheers

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anonymous

79099885

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

You should secure the spell in a shelter safely and allow the entrance needed. Do not burninate the spell. Code: the homepage and make it more acceptable for the client to generate there answers and give them access limited but all and shelter and secure the spell keeping the client going Toward there mark to complete full tasks:

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

79099879

Date: 2024-10-17 21:34:37
Score: 2
Natty:
Report link

Thanks everyone for your answers.

I actually found what it was about a while ago but forgot to post it

turned out to be a browser issue: AWS Console was showing error pop-ups, but they didn’t appear in Opera for some reason. When I switched browsers, the error messages became visible. The model i was trying to use was not supported at the time as Rag only supported Anthropic models. Also, as of August 24, they support LLaMA too! https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-supported.html

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: user21484523

79099876

Date: 2024-10-17 21:34:37
Score: 2.5
Natty:
Report link

the error is in:

MAIL_PASSWORD=********686d

The password that is in mailtrap is hidden,

  1. Enter mailtrap and click where it says "MAIL_PASSWORD=********686d",
  2. The password will be copied to the Windows clipboard,
  3. paste password into laravel env file
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Filler text (0.5): ********
  • Filler text (0): ********
  • Low reputation (1):
Posted by: Daniel DD

79099872

Date: 2024-10-17 21:32:37
Score: 1.5
Natty:
Report link

I think the error means your OAuth 2.0 Client you’re trying to use to verify app ownership is not recognized as being associated with any Google Play app or the published app you mentioned.

You mentioned that the app was published on Google Play years ago, you can try referring to this documentation for another way to verify your App ownership. As per the documentation, the Android app ownership verification is only available for Google Play apps. You can also check these steps on how to authenticate your client using Play App Signing.

This OAuth 2.0 for Mobile & Desktop Apps documentation might be a good read and can be helpful for you.

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

79099861

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

You could use a very handy plugin called cypress-terminal-report.

This provides verbose output on failure including:

You can find this plugin here: https://www.npmjs.com/package/cypress-terminal-report

For me, it's a must-have tool to improve Cypress E2E.

Reasons:
  • Blacklisted phrase (1): this plugin
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: J.Long

79099860

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

I would suggest checking out: https://skorch.readthedocs.io

You can write your own linear model with a custom loss function in PyTorch. Then, with skorch use the model in your pipeline.

Limitation: can only work with linear/non-linear classifiers. Can't work with trees.

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

79099859

Date: 2024-10-17 21:23:35
Score: 0.5
Natty:
Report link

If you have a big list of commits, you may want to use less along with nl.

git log --oneline | nl | less

I use this to combine a set of commits in a single commit using git reset --soft

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