79179254

Date: 2024-11-11 22:03:26
Score: 2
Natty:
Report link

Answering my own question: this is called Attestation.

On iOS, in Swift and Objective C it's called DCAppAttestService:

https://developer.apple.com/documentation/devicecheck/establishing-your-app-s-integrity

Google has SafetyNet attestation API, but they're deprecating it:

https://developer.android.com/privacy-and-security/safetynet/deprecation-timeline

On the Web, you also have webauth attestation sometimes available, but they are for authenticators, which may or may not be the phone itself. Regardless, it does sort of guarantee scarcity:

https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API/Attestation_and_Assertion

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Gregory Magarshak

79179238

Date: 2024-11-11 21:57:24
Score: 0.5
Natty:
Report link

Register WMI DLL files: Run the commands in cmd.

regsvr32 %windir%\system32\wbem\wmidcprv.dll
regsvr32 %windir%\system32\wbem\wbemprox.dll

Register MOF (Management Object Format) files:

Run the following commands to ensure that MOF files are correctly registered:

mofcomp %windir%\system32\wbem\wmiprvsd.mof
mofcomp %windir%\system32\wbem\cimwin32.mof

In my case, one of the files was missing and I followed the next step:

Restore Corrupted System Files with DISM and SFC Since the MOF file is missing, it could indicate that other important files are also missing or corrupted. Let's try to use SFC and DISM tools to fix the system:

Run SFC (System File Checker):

In Command Prompt as Administrator, run the following command:

sfc /scannow

After finishing, just restart the computer, but first run:

netsh advfirewall firewall add rule name="Allow WMI" protocol=TCP dir=in localport=135,49152-65535 action=allow

To open WMI ports.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Leonel Sebastião

79179228

Date: 2024-11-11 21:54:23
Score: 3.5
Natty:
Report link

I have used the above code, and I am able to export the file as a pipe delimited file. However, I have spaces between the pipe if there is no value. How to I remove the spaces??? With the TSQL export, I see - Sql

With a MS Access - I see MS_Access

Reasons:
  • Blacklisted phrase (1): ???
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Audi

79179218

Date: 2024-11-11 21:47:22
Score: 1.5
Natty:
Report link

Mostly in a Macbook m series chip you are going to face this problems if you encounter this error that mean you need to increase your stack size

for that type 'ulimit -n' on you bash or zsh terminal

and then type 'ulimit -n 4096' for temporary increase the limit.

or To make it permanent, you can add the following line to your ~/.bash_profile or ~/.zshrc.

Make sure to restart your system

If still the problem if there delete node module and reinstall it.

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

79179216

Date: 2024-11-11 21:46:21
Score: 2.5
Natty:
Report link

Setting "Include Package JSON Auto Imports" to "On" instead of "auto" worked for me.

Not exactly sure why it improves performance, so if anyone knows, I would love an explanation.

Source: https://github.com/microsoft/TypeScript/issues/58709#issuecomment-2153332198

config

Reasons:
  • Blacklisted phrase (1): anyone knows
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: BryceLarkin

79179207

Date: 2024-11-11 21:43:20
Score: 0.5
Natty:
Report link

Maybe something like this: vuetify-play

  <template>
  <v-app>
    <v-container>
      <v-date-picker></v-date-picker>
    </v-container>
  </v-app>
</template>

<style>
  .v-date-picker-years .v-btn__content::after {
    content: ' Test';
  }
</style>

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

79179198

Date: 2024-11-11 21:39:19
Score: 1
Natty:
Report link

After @hardillb answer, I realized that, indeed, the client was not authorized to subscribe to that topic, but another connection issue was happening. After a couple of attempts to make the code work, finally I came up with a solution that was capable of connecting to the IoT Core MQTT broker instance, publishing and subscribing to that topic, and receiving the message. This is the working code.

import (
    "bufio"
    "crypto/ecdsa"
    "crypto/rsa"
    "crypto/tls"
    "crypto/x509"
    "encoding/pem"
    "fmt"
    "log"
    "net"
    "net/http"
    "net/url"
    "time"

    "golang.org/x/net/proxy"

    "os"
    "os/signal"
    "syscall"

    MQTT "github.com/eclipse/paho.mqtt.golang"
)

type TlsCerts struct {
    IotPrivateKey     string
    IotCertificatePem string
    CaCertificatePem  string
    AlnpProtocols     []string
}

type Config struct {
    ClientId  string
    BrokerUrl string
    TlsCerts  TlsCerts
}

type httpProxy struct {
    host     string
    haveAuth bool
    username string
    password string
    forward  proxy.Dialer
}

func parseTlsConfig(tlsCerts TlsCerts) *tls.Config {
    if tlsCerts.IotPrivateKey == "" || tlsCerts.IotCertificatePem == "" {
        return nil
    }

    cert := parseTlsCertificates(tlsCerts)

    caCertPool := x509.NewCertPool()
    caCertPool.AppendCertsFromPEM([]byte(AmazonRootCA1Cert))

    return &tls.Config{
        RootCAs:            caCertPool,
        Certificates:       []tls.Certificate{cert},
        InsecureSkipVerify: false,
        NextProtos:         tlsCerts.AlnpProtocols,
        ServerName:         "iot.customdomain.io",
    }
}

func parseTlsCertificates(
    tlsCerts TlsCerts,
) tls.Certificate {
    block, _ := pem.Decode([]byte(tlsCerts.IotPrivateKey))
    if block == nil {

        log.Panic("Failed to parse private key")

    }

    var key interface{}
    var err error

    key, err = x509.ParsePKCS1PrivateKey(block.Bytes)
    if err != nil {
        key, err = x509.ParsePKCS8PrivateKey(block.Bytes)
        if err != nil {
            log.Panicf("Failed to parse private key: %v", err)
        }

        switch k := key.(type) {
        case *rsa.PrivateKey:
            key = k
        case *ecdsa.PrivateKey:
            key = k
        default:
            log.Panicf("Unsupported private key type: %T", key)
        }
    }

    block, _ = pem.Decode([]byte(tlsCerts.IotCertificatePem))
    if block == nil {
        log.Panic("Failed to parse certificate")
    }
    cert, err := x509.ParseCertificate(block.Bytes)
    if err != nil {
        log.Panicf("Failed to parse certificate: %v", err)
    }

    return tls.Certificate{
        PrivateKey:  key,
        Certificate: [][]byte{cert.Raw},
    }
}

func (s httpProxy) String() string {
    return fmt.Sprintf("HTTP proxy dialer for %s", s.host)
}

func newHTTPProxy(uri *url.URL, forward proxy.Dialer) (proxy.Dialer, error) {
    s := new(httpProxy)
    s.host = uri.Host
    s.forward = forward
    if uri.User != nil {
        s.haveAuth = true
        s.username = uri.User.Username()
        s.password, _ = uri.User.Password()
    }

    return s, nil
}

func (s *httpProxy) Dial(_, addr string) (net.Conn, error) {
    reqURL := url.URL{
        Scheme: "https",
        Host:   addr,
    }

    req, err := http.NewRequest("CONNECT", reqURL.String(), nil)
    if err != nil {
        return nil, err
    }
    req.Close = false
    if s.haveAuth {
        req.SetBasicAuth(s.username, s.password)
    }
    req.Header.Set("User-Agent", "paho.mqtt")

    // Dial and create the client connection.
    c, err := s.forward.Dial("tcp", s.host)
    if err != nil {
        return nil, err
    }

    err = req.Write(c)
    if err != nil {
        _ = c.Close()
        return nil, err
    }

    resp, err := http.ReadResponse(bufio.NewReader(c), req)
    if err != nil {
        _ = c.Close()
        return nil, err
    }
    _ = resp.Body.Close()
    if resp.StatusCode != http.StatusOK {
        _ = c.Close()
        return nil, fmt.Errorf("proxied connection returned an error: %v", resp.Status)
    }
    TlsCerts := TlsCerts{
        IotPrivateKey:     IotPrivateKey,
        IotCertificatePem: IotCertificatePem,
        AlnpProtocols:     []string{"mqtt", "x-amzn-mqtt-ca"},
    }
    tlsConfig := parseTlsConfig(TlsCerts)

    tlsConn := tls.Client(c, tlsConfig)

    return tlsConn, nil
}

func init() {
    // Pre-register custom HTTP proxy dialers for use with proxy.FromEnvironment
    proxy.RegisterDialerType("http", newHTTPProxy)
    proxy.RegisterDialerType("https", newHTTPProxy)
}

func onMessageReceived(client MQTT.Client, message MQTT.Message) {
    fmt.Printf("Received message on topic: %s\n", message.Topic())
    fmt.Printf("Message: %s\n", message.Payload())
}

var messagePubHandler MQTT.MessageHandler = func(client MQTT.Client, msg MQTT.Message) {
    fmt.Println("Received message on topic: " + msg.Topic())
    ProcessMessage(msg.Payload())
}

func ProcessMessage(payload []byte) {
    fmt.Println(string(payload))
}

func MainFunc() {
    MQTT.DEBUG = log.New(os.Stdout, "", 0)
    MQTT.ERROR = log.New(os.Stderr, "", 0)

    c := make(chan os.Signal, 1)
    signal.Notify(c, os.Interrupt, syscall.SIGTERM)

    server := "https://iot.customdomain.io:443"
    topic := "right/topic/now"
    qos := 0
    clientid := "my-client-id"

    os.Setenv("ALL_PROXY", fmt.Sprintf("http://localhost:%s", "3128"))
    defer os.Unsetenv("ALL_PROXY")

    connOpts := MQTT.NewClientOptions().AddBroker(server).
        SetClientID(clientid).
        SetCleanSession(true).
        SetProtocolVersion(4)

    connOpts.OnConnect = func(c MQTT.Client) {
        if token := c.Subscribe(topic, byte(qos), onMessageReceived); token.Wait() && token.Error() != nil {
            fmt.Println(token.Error())
        }

        text := `{"message": "Hello MQTT"}`
        token := c.Publish(topic, byte(qos), false, text)
        token.Wait()
    }

    dialer := proxy.FromEnvironment()
    connOpts.SetCustomOpenConnectionFn(func(uri *url.URL, options MQTT.ClientOptions) (net.Conn, error) {
        fmt.Printf("Custom dialer invoked for %s\n", uri.Host) // Debug log for verification
        address := uri.Host
        return dialer.Dial(uri.Scheme, address)
    })

    client := MQTT.NewClient(connOpts)
    if token := client.Connect(); token.Wait() && token.Error() != nil {
        panic(token.Error())
    }
    fmt.Printf("Connected to %s\n", server)

    time.Sleep(1 * time.Second)

    fmt.Println("Disconnecting")
    client.Disconnect(250)
    fmt.Println("Exiting")
}

A lot of stuff changed like the removal of the SetUsername and the SetPassword calls since I am already authenticating via certificates and private key.

This was removed as well:

connOpts.OnConnectAttempt = func(broker *url.URL, tlsCfg *tls.Config) *tls.Config {
        cfg := tlsCfg.Clone()
        cfg.ServerName = broker.Hostname()
        return cfg
    }

Apparently, the previous code was a complete mess, so there were a lot of issues, not only one issue, but one of those issues was exactly the problem if the lack of authorization for that specific topic. But the code above is capable of connecting to IoT Core through a Tinyproxy instance running on the localhost.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @hardillb
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tgdva

79179197

Date: 2024-11-11 21:39:19
Score: 0.5
Natty:
Report link

Session tickets are used for TLS session resumption. Usage of multiple tickets is best described in https://www.rfc-editor.org/rfc/rfc9149.html: "For example, clients can open parallel TLS connections to the same server for HTTP, or they can race TLS connections across different network interfaces. The latter is especially useful in transport systems that implement Happy Eyeballs."

In case of web browsers client may connect to the server, download the main page, then get two tickets and open two more connections to fetch resources, immediately using both tickets.

Regarding session resumption, I have only ever seen clients use the second ticket that was issued, never the first.

All the clients I have seen use session tickets in LIFO order. If they receive two tickets, they first use the second ticket, but then the first if they need to establish another connection.

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

79179191

Date: 2024-11-11 21:34:19
Score: 1
Natty:
Report link

SO today i was writing a query that "merged two querys with identical structure, 2 int cols and a varchar column - total width 40 bytes..

4,403,063 rows to another of 8,743,056 rows The resulting distinct result set was 8,141,350 rows.

Using a UNION to join both queries between 30 and 40 seconds Using a UNION ALL into a temp table then a SELECT DISTINCT on the temp table 10 seconds.

Dont assume you will see the same result with millions of rows that you see with hundreds or thousands or rows

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

79179189

Date: 2024-11-11 21:34:19
Score: 1
Natty:
Report link

This issue started happening to us yesterday with no changes in code; probably some dependent library issue.

The problem happens when you run amplify codegen

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

79179183

Date: 2024-11-11 21:32:18
Score: 3.5
Natty:
Report link

I managed to fixed it. In all tutorials they say only to modify the minimum API Level to Android 8 (currently). And they leave the target api level to highest. In my case when I specified Android 12, it installed some additional libraries and start working. Thanks for all comments.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Georgi Vladimirov

79179182

Date: 2024-11-11 21:31:15
Score: 6 🚩
Natty: 5
Report link

In this example, IND_WA is static. Is it possible to dynamically create the IND_WA structure and assign values for update?

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: simpleabap

79179168

Date: 2024-11-11 21:25:14
Score: 8.5
Natty: 8.5
Report link

@anandhu Have you found a solution? I am running into the same problem rn. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): Have you found a solution
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @anandhu
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: vanyans

79179166

Date: 2024-11-11 21:25:13
Score: 1
Natty:
Report link

Kind of late to the party here but I needed to do this today:

ADO pipeline makes it almost too easy. Treat this just like a powershell or AZcli script. Create a pipeline var & call it with $(var)

IF EXISTS (SELECT * FROM sys.database_principals WHERE name = '$(client)_user')
    BEGIN
    Print '$(client)_user already exists.  Dropping to reinitialize'
    DROP USER [$(client)_user]
    END

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dan

79179165

Date: 2024-11-11 21:25:13
Score: 2.5
Natty:
Report link

Please check the official logback's guide on Logging separation and apply suggestions described there.

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

79179152

Date: 2024-11-11 21:21:13
Score: 1.5
Natty:
Report link

The gridExtra package has concise syntax for this

library(gridExtra)

plot1 <- plot(eff, grid=FALSE)
plot2 <- plot(eff2, grid=FALSE)

grid.arrange(plot1, plot2, ncol=2)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Giancarlo

79179148

Date: 2024-11-11 21:20:12
Score: 0.5
Natty:
Report link

In Chrome 130 it's now Timestamps. Under Settings > Preferences > Console

Settings > Preferences > Console

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Mark Swardstrom

79179138

Date: 2024-11-11 21:14:11
Score: 2.5
Natty:
Report link

This turned out to be default caching in the (IBM Sterling COTS) map component. Under Fuse, the cache wasn't working for some reason (unintentional), when we migrated to Spring Boot, the cache started working, breaking some of our test cases. We just configured the IBM cache to expire in a very short interval and that satisfies our test cases.

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

79179131

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

Apparently, dbstop if warning and dbstop if error are independent, and should be called separately. Calling dbstatus shows their status, and they can be toggled independently.

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

79179123

Date: 2024-11-11 21:08:09
Score: 0.5
Natty:
Report link

Searched the answers for this but either I'm blind or nobody has mentioned this one yet. No idea where I learned it but if you don't have any special variables from the inventory to worry about just provide an adhoc CSV to the inventory flag like so.

ansible-playbook playbooks/example.yml -i ', imac-1.local'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RiverHeart

79179093

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

Alternatively, you can do

- name: Activate virtual environment
  run: echo PATH=${GITHUB_WORKSPACE}/.venv/bin:$PATH >> $GITHUB_ENV

GITHUB_WORKSPACE is the default working directory on the runner for steps

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

79179069

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

It is possible that you are hitting rate limits or other errors at the the API that your copilot is calling. This may result in error response. You can enable Debug mode and check why it is failing.

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

79179050

Date: 2024-11-11 20:36:02
Score: 0.5
Natty:
Report link

Turns out I was being slightly dumb. I was adding adding the components directly to the game rather than to the world which the camera is viewing. So just have to do world.add instead. Thank you Spydon for helping me out with this one :) Below full code that works:

import 'package:flame/game.dart';
import 'package:flame_forge2d/flame_forge2d.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(GameWidget(game: SimpleGame()));
}

class SimpleGame extends Forge2DGame {
  SimpleGame()
      : super(
          gravity: Vector2(0, 10),
          zoom: 2,
        );

  @override
  Future<void> onLoad() async {
    super.onLoad();

    // Add the component to the world for camera settings to apply
    world.add(JarComponent(position: Vector2(1, 2), size: Vector2(20, 40)));
  }
}

class JarComponent extends BodyComponent {
  final Vector2 position;
  final Vector2 size;

  JarComponent({required this.position, required this.size});

  @override
  Body createBody() {
    final shape = PolygonShape()
      ..setAsBox(size.x, size.y, position, 0);

    final bodyDef = BodyDef()
      ..position = position
      ..type = BodyType.static;

    final body = world.createBody(bodyDef);
    body.createFixtureFromShape(shape);
    return body;
  }
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bob E

79179042

Date: 2024-11-11 20:34:02
Score: 0.5
Natty:
Report link

Please do not rely on git ignore to keep files out of your repo. It is just too easy to make a mistake and all of a sudden, your passwords are in plain text for all the world to see (if it is a public repo). Then, when you realize it, you will delete the file--but may not realize the history still holds it. You may also neglect to change the password so, if someone already got it before you deleted it, you are still vulnerable. At the very least, encrypt them. You still have the problem of where to store the decryption key, but at least there is one more level of protection (security by obscurity).

O.S. environment variables are better in some ways, but aren't very safe either. Sys admins can see them and anyone able to run commands can do "env" command to get them all. Running remote commands is always a high prize for a bad actor for this reason (and others).

If your organization has an enterprise password manager, that is the obvious answer. If not, perhaps create a free AWS account and use their "Secrets Manager" service (or Microsoft or Google--they all have this ability and are considered very secure).

Only a little off topic, don't put secrets on the command line. While the process is running, the "ps" command will show the secret. After the process stops, there is the "history" command.

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

79179022

Date: 2024-11-11 20:23:59
Score: 0.5
Natty:
Report link

In this version 10.2.1 setup is a little different, you first need to set default options, your serverURL is a URL (domain) and setRoom would be your full url. Something like that:

 val defaultOptions = JitsiMeetConferenceOptions.Builder()
    .setServerURL(URL(https://meet.jit.si/))
    .setFeatureFlag("pip.enabled", false)
    .setFeatureFlag("welcomepage.enabled", false)
    .setFeatureFlag("invite.enabled", false)
    .setFeatureFlag("call-integration.enabled", false)
    .setFeatureFlag("calendar.enabled", false)
    .setFeatureFlag("raise-hand.enabled", false)
    .build()
JitsiMeet.setDefaultConferenceOptions(defaultOptions)

val options = JitsiMeetConferenceOptions.Builder()
    .setRoom(https://meet.jit.si/AliveObsessionsCreditFreely)
    .build()
JitsiMeetActivity.launch(context, options)

So, setRoom is not about nameRoom only, but about domain plus idRoom. It needs to be unique. To change the room name, use #config.subject= at the end of the url.

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

79179010

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

After some testing I was able to successfully get this to work:

| parse regex "\"ConfirmationNumber\":\"(?<ConfirmationNumber>[0-9]*)\"" multi nodrop
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Paulonious1

79179005

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

i had the same problem, the error is that you mount the same volum for two brokers.

Reasons:
  • Whitelisted phrase (-1): i had the same
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Brahim Djarallah

79178990

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

What I ended up having to do was refactor my usage of the FusedLocationProviderClient to make use of the intervals, and stick everything in a foreground service (as opposed to a Worker). The service starts when the user logs in, and runs continuously, and stops when they log out.

This seems to work fine for the most part, but becomes unreliable when the user selects "Only this time" when requesting location data. I will ask this in a separate question, however.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: Nelson

79178967

Date: 2024-11-11 20:04:55
Score: 1
Natty:
Report link

Figured out the below answer in the Firebase repo fixes the issue:

I've discovered if I move the db = firestore.client() into my cloud function, I'm able to deploy.

https://github.com/firebase/firebase-functions-python/issues/126#issuecomment-1682542027

It's really weird that Google does not update the docs or fixes the issue, but for now, this answer unblocks me, hope it helps others too.

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: haven-way

79178965

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

flutter pub global run intl_utils:generate Its Work....

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

79178960

Date: 2024-11-11 20:02:54
Score: 2.5
Natty:
Report link

Note: This is supposed to be a comment. Unfortunately I don't have enough reputation.

As a complement to Zhong's answer, I want to point out that this might not be as much a problem.

We assume every edge has a latency of 1ms.

Now, a: 2ms, b: 2ms, c: 1ms. If c--d is broken, then:

a: 2, b: 2, c: 1
  (change c)
a: 2, b: 2, c: 3
  (change a, b)
a: 4, b: 4, c: 3
  (change c)
a: 4, b: 4, c: 7
  (change a, b; now the next hop of a, b is c, because of poison reverse)
a: 11, b: 11, c: 7
... ...

You can see how rapidly the latencies increase. In fact, the latencies grow exponentially with time. In less than 30 rounds, the latencies will become so big (see the calculation below), that in all practical means, A is considered unreachable.

>>> l
array([1, 2])
>>> m
array([[1, 3],
       [1, 5]])
>>> np.linalg.matrix_power(m, 1) @ l
array([ 7, 11])
>>> np.linalg.matrix_power(m, 1 + 30 // 4) @ l
array([1296400, 2007584])
Reasons:
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Max Dickens

79178959

Date: 2024-11-11 20:02:54
Score: 1
Natty:
Report link
  1. Every time the user opens your app, generate a unique ID and add it as a query param in the URL.
  2. Any time a request is made from the app, fetch the unique ID from the query param.
  3. Reference the ID and match it against the query param to confirm which tab made the request.

You can't use cookies or local storage, because those are shared across tabs. Each browser tab can have a unique URL however, so this is the perfect opportunity to persist a unique ID.

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

79178958

Date: 2024-11-11 20:02:54
Score: 4.5
Natty: 7
Report link

nm. I got it covered. sorry about it

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

79178955

Date: 2024-11-11 20:01:53
Score: 1
Natty:
Report link

Try upgrading Node on your system and installing the latest version of firebase-tools.

Use NVM to Update Your Node Version

Then for firebase-tools:

npm update -g firebase-tools

or

npm install -g [email protected]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: markbosire

79178949

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

It is not mandatory to have at least 150 packages per week. You can have less but the number of collections from the address will decrease. For example, I have around 89-100 packages per week but the collection is done 3 days a week (Monday, Wednesday, and Friday) instead of 5 days as someone with over 150 packages has.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Iulius Mihai Boiangiu

79178943

Date: 2024-11-11 19:57:53
Score: 3
Natty:
Report link

I use SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17 -lstdc++") and target_link_libraries(stdc++) with cmake.

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

79178938

Date: 2024-11-11 19:53:52
Score: 1
Natty:
Report link

Answering my own question: flattening the df like this gives the desired outcome:

object_1df = pd.DataFrame([['a', 1], ['b', 2]],
                   columns=['letter', 'number'])
object_2df = pd.DataFrame([['b', 3, 'cat'], ['c', 4, 'dog']],
                   columns=['letter', 'number', 'animal'])
objects = [object_1df, object_2df]

catalog = pd.DataFrame()
for df in objects: 
    df.set_index('letter', inplace=True)
    flattened_data = {f'{index}_{col}': df.loc[index, col] for index in df.index for col in df.columns}
    flattened_df = pd.DataFrame([flattened_data])
    display(flattened_df)
    catalog = pd.concat([catalog, flattened_df], ignore_index=True)
display(catalog)

yields desired result

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

79178930

Date: 2024-11-11 19:50:51
Score: 2.5
Natty:
Report link

Did you tried running flutter doctor --android-licenses and accept all of them? that sometimes could cause issues if you didn't done that, also I found some other solutions to a similiar issue here: flutter error Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'

Also I'm not sure if you're on windows using WSL but looks like its one of the situations that could also cause your issue https://youtrack.jetbrains.com/issue/IDEA-291122/Cannot-query-the-value-of-this-provider-because-it-has-no-value-available-when-importing-the-Android-project

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Gapps

79178917

Date: 2024-11-11 19:43:49
Score: 3
Natty:
Report link

one simple question, i gonna use webdriver where is running in backend .go can i make this on goolang? like if u can explain better how i turn one webserver into one with run in appengine

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

79178912

Date: 2024-11-11 19:40:48
Score: 1.5
Natty:
Report link

I would create a new index with name as hashkey and use .getBatch function. It takes an array of ids (I believe 50 ids is the size limit).

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

79178911

Date: 2024-11-11 19:39:48
Score: 1.5
Natty:
Report link

go to the profile and then makesure that the TypeScript and JavaScript Language Features extention is turned on (enabled).

Name: TypeScript and JavaScript Language Features Id: vscode.typescript-language-features Description: Provides rich language support for JavaScript and TypeScript. Version: 1.0.0 Publisher: vscode

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mr.CraazY

79178910

Date: 2024-11-11 19:39:48
Score: 2
Natty:
Report link

You can include an observer changes on newWindow.window. After close the value becomes null.

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

79178903

Date: 2024-11-11 19:35:47
Score: 1.5
Natty:
Report link

I am using Open Sans with a ttf that is including 8 font families : Open Sans, Open Sans Condensed, Open Sans Condensed ExtraBold, Open Sans Condensed Light, Open Sans Condensed SemiBold, Open Sans ExtraBold, Open Sans Light, Open Sans SemiBold

I do not see how to implement "Open Sans Condensed" as it doesn't make use of the flags bold or italic

I'm quite lost...

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

79178898

Date: 2024-11-11 19:34:47
Score: 2
Natty:
Report link

In the Row Groups and Column Groups panel, click on the arrow to expand menu. Then select "Add total" and choose before or after your data. This with add the total for column and row, respectively, with the current level of aggregation.

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

79178897

Date: 2024-11-11 19:33:47
Score: 1
Natty:
Report link

I have one half of an answer, and two full answers if you allow a frame challenge.

Half an answer

Load has a constructor that allows injecting your own factory into the deserialization process, and the functions where have access to Node objects that do carry the anchor.
So the approach would be something like this:

  Map<Object, ?> metadata = new HashMap<>();
  Load loader = new Load(
    settings,
    // Inject a StandardConstructor; BaseConstructor does not know about Map etc.
    new StandardConstructor(settings) {
      @Override
      protected Object constructObjectNoCheck(Node node) {
        // Let it construct the Pojo from the Node normally.
        final Object result = super.constructObjectNoCheck(node);
        // Now that you have both Pojo and internal Node,
        // you can exfiltrate whatever Node info that you want
        // and do metadata.put(result, someInfoGleanedFromNode)
        return result;
      }
    });

The snag is: The Node created for the anchor does not generate a Pojo.
I.e. you have an anchor, but you don't really know to which object in your deserialized nested Map/List that anchor corresponds; you'll likely have to walk the Node tree and find the correct node. So, maybe somebody else wants to add instructions how to walk the Node tree; I do not happen to know that.

Frame challenge: Do you really want the anchor name?

If this is just about error messages, each Node has a startMark attribute that's designed specifically for error messages that relate to the Node, so you can do this:

  Map<Object, String> startMarks = new HashMap<>();
  Load loader = new Load(
    settings,
      @Override
      protected Object constructObjectNoCheck(Node node) {
        final Object result = super.constructObjectNoCheck(node);
        node.getStartMark().ifPresent(mark -> startMarks.put(result, mark));
        return result;
      }
    });

e.g. for this YAML snippet:

servers:
  - &hetzner
    host: <REDACTED>
    username: <REDACTED>
    private_ssh_key: /home/<REDACTED>/.ssh/id_rsa

the servers label has this start mark:

 in config.yaml, line 1, column 1:
    servers:
    ^

To get this output, I initialized the settings like this:

var settings = LoadSettings.builder().setUseMarks(true).setLabel(path.toString()).build();

setUseMarks makes it generate start and end marks so you have these texts. setLabel is needed to give the in config.yaml output; otherwise, you'll see something like in reader (if you pass in a stream reader), which is pretty unhelpful.

Frame challenge: Maybe give the anchored subobject a name?

Something like this:

unit:
  &kg
  name: Kilogram
  shorthand: kg
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: toolforger

79178887

Date: 2024-11-11 19:28:46
Score: 1.5
Natty:
Report link

I couldn't reproduce the images not loading issue, but if you are having trouble with the view resizing, have you considered delegating the same frame size (particularly the height) to the text as well?

As in,

if isImageVisible {
            Image(imageName)
                .resizable()
                .scaledToFit()
                .frame(width: 100, height: 100)
                .background(Color.gray.opacity(0.2))
        } else {
            Text("Image is hidden")
                .frame(width: 200, height: 100)
        }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Luck_Duracell

79178868

Date: 2024-11-11 19:21:44
Score: 2.5
Natty:
Report link

The only thing you have to do is toggle the drop down:

  1. enter image description here
  2. Change dropdown to "GitHub Actions" enter image description here
  3. Change dropdown back to "Deploy from a branch" enter image description here
  4. Finally you will see it auto select main branch. It is odd but it works. enter image description here
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Nathaniel Hibbler

79178867

Date: 2024-11-11 19:21:42
Score: 6.5 🚩
Natty: 5
Report link

Can somebody give new answer, matching new Vaadin docs

Reasons:
  • RegEx Blacklisted phrase (2.5): Can somebody give
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can somebody give
  • Low reputation (1):
Posted by: user28246116

79178866

Date: 2024-11-11 19:21:41
Score: 3
Natty:
Report link

I was facing a similar issue and then found out that there's a search-bar below the section where we add the environment variables. It's essentially a section which links your variables to a project. By selecting the relevant project I was able to solve this issue.

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

79178865

Date: 2024-11-11 19:21:41
Score: 2.5
Natty:
Report link

This answer is for anyone with the same issue. Try to change views to see the result. For me, when I opened the 3D view, I found the impact of changing height, and width of an element.

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

79178864

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

This is the right way to pre-grant permissions: https://source.android.com/docs/core/permissions/runtime_perms#creating-exceptions.

But an accessibility service isn't controlled by a permission. A service is enabled if it's in this list in settings: https://cs.android.com/android/platform/superproject/main/+/main:frameworks/base/core/java/android/provider/Settings.java;drc=ad46de2aa9707021970cb929d016b639f98a1ac7;l=8615.

Modify the code maintaining that setting to pre-enable your service. Or using the existing defaultAccessibilityService configuration (set it with a product overlay file) might work.

The simplest way to stop a user from turning it off is probably to modify the accessibility settings UI.

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

79178853

Date: 2024-11-11 19:14:39
Score: 4
Natty:
Report link

Is there any advantage or disadvantage to using a prime number as the length of a password? For example use a password that is 11, 13, 17, 19, 23 etc characters long. The AI-driven google search says maybe. I interpret that to mean absolutely not.

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (0.5):
Posted by: mnemotronic

79178843

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

google sheet with solution

the solution is in this formula :

=map(B2:B, C2:C, lambda(time, weight, if(isbetween(time, value("20:55"), value("21:05")), weight - offset(C2,counta(C3:C99999),0,1,1), iferror(ø) ) ))

thank you so much!!!

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Akis T

79178829

Date: 2024-11-11 19:04:36
Score: 14.5
Natty: 7.5
Report link

I have the same problem, but s3api command as above doesn't work, could you help me please?

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): could you help me
  • RegEx Blacklisted phrase (2): help me please
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Karina

79178825

Date: 2024-11-11 19:01:35
Score: 0.5
Natty:
Report link

I think there might be a small misunderstanding. With Standalone Components in Angular, you don't actually need to import them into App.component.ts. The key benefit is that Standalone Components are self-contained, meaning you can directly use them in templates or reference them in other components without needing an intermediary NgModule.

The idea of "importing into App.component.ts" makes more sense when you're dealing with components inside a traditional NgModule, where you would register components in the module. However, Standalone Components work independently, so there's no need for that extra step.

Regarding the benefits of NgModules, they offer fine-grained control over things like dependency injection, routing, and lazy loading, which is especially useful in larger, more modular applications.

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

79178824

Date: 2024-11-11 19:01:35
Score: 2
Natty:
Report link

don't know why, but on Raspberry

from   picamera2 import Preview

solved it

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

79178815

Date: 2024-11-11 18:55:34
Score: 2.5
Natty:
Report link

The operator ["/"][1] can be used for the concatenation by row of matrices. In this case my $sp=$dense_unit_matrix/$ar; $sp=$sp/extended_matrix; $sp=$sp/$arr3; works as well.

[1]: https://polymake.org/doku.php/user_guide/howto/matrix_classes#:~:text=GenericVector%26%2C%20const%20GenericVector%26)%3B-,Create%20a%20block%20matrix,-%2C%20virtually%20appending%20the

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jovana Dubak Ivanović

79178812

Date: 2024-11-11 18:55:34
Score: 0.5
Natty:
Report link

Use a mutex to read the current value of a variable. The mutex approach is simpler than communicating by channel.

type sensor struct {
    mu    sync.Mutex
    value int
}

func (s *sensor) run() {
    for {
        s.mu.Lock()
        s.value += 1
        s.mu.Unlock()
        time.Sleep(100 * time.Millisecond)
    }
}

func (s *sensor) get() int {
    s.mu.Lock()
    defer s.mu.Unlock()
    return s.value
}

Call like this:

temperature := &sensor{value: 42}
go temperature.run()
log.Println("EARLY TEMP READING:", temperature.get())
time.Sleep(3 * time.Second) //LET SOME ARBITRARY TIME PASS
log.Println("LATER TEMP READING:", temperature.get())

https://go.dev/play/p/SBKHAS6dqn9

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Mersa Dingwat

79178811

Date: 2024-11-11 18:55:34
Score: 2
Natty:
Report link

It looks like there’s a small issue with the syntax in your command. You have curly braces {} in the file paths, which are causing the error. Try removing them and make sure your paths are correctly formatted. Here’s an updated version of your command:

@echo off cd C:\Users\misha\Desktop\performance_monitor C:\Users\misha\AppData\Local\Programs\Python\Python313\Lib\site-packages\pip\app.py pause

Make sure to double-check that the file paths are correct and that Python is installed properly on your system

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @echo
  • Low reputation (1):
Posted by: Josephine Sanchez

79178808

Date: 2024-11-11 18:52:33
Score: 0.5
Natty:
Report link

After doing a lot of digging, i found a solution

first, right click on your main project directory folder thingy, and click properties https://i.sstatic.net/jymk7xmF.png

then, you want to go into c/c++ https://i.sstatic.net/nuxGOd4P.png

after that, go into additional include directories and edit https://i.sstatic.net/E45T38EZ.png

last, you want to enter the directory of the folder containing your header file, for example $(SolutionDir)Dependencies\GLEW\include where solutiondir is the path to the main folder (in this case engine) and then we path to the folder containing the header https://i.sstatic.net/O9crjAl1.png

hope this helps

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jakub Kania

79178803

Date: 2024-11-11 18:50:31
Score: 10 🚩
Natty: 5.5
Report link

I also have this problem, did you fix it?

Reasons:
  • RegEx Blacklisted phrase (3): did you fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Programmer

79178802

Date: 2024-11-11 18:50:31
Score: 2
Natty:
Report link

Here Steps to follow:

  1. Rtools is installed on your system to compile source packages.

  2. Ensure that the path provided points to the correct location of rcompanion_2.4.36.tar.gz

For example

install.packages("E:\download\rcompanion_2.4.36.tar.gz", repos = NULL, type = "source")

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

79178799

Date: 2024-11-11 18:49:30
Score: 0.5
Natty:
Report link

I forced java version into build.gradle.kts like this

java {
    toolchain {
        languageVersion = JavaLanguageVersion.of(17)
    }
}

which fixed the problem. I could remove the snippet later and build would work without it. I guess idea or gradle cache everything forever.

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

79178798

Date: 2024-11-11 18:48:30
Score: 1.5
Natty:
Report link

All this is demotivating. I'm getting this (for python 3.6):

I type "pip3 install pillow" and get:

Collecting pillow Could not fetch URL https://pypi.python.org/simple/pillow/: There was a problem confirming the ssl certificate: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:749) - skipping Could not find a version that satisfies the requirement pillow (from versions: ) No matching distribution found for pillow

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

79178781

Date: 2024-11-11 18:41:28
Score: 1
Natty:
Report link

With Gradle

For me the issue solved after I packed the jar including all dependencies by customizing the "jar" task (pay attention also to the guidance in the comments)

see guidance in this answer

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

79178773

Date: 2024-11-11 18:37:27
Score: 1.5
Natty:
Report link

For me, using Windows 11 + WSL, i had to do the following steps:

First I visited NVIDIA's website to download CuDNN for Ubuntu ( https://developer.nvidia.com/rdp/cudnn-archive ). After logging in, my browser automatically started downloading it, but i had the option to copy the full download link from the download that was in progress. It was quite long.

Then, on my Ubuntu terminal (WSL) I typed the following to download the deb package in there (please replace the long link with whatever you copied on the step above):

wget -O cudnn-local-repo.deb "https://developer.download.nvidia.com/compute/cudnn/secure/8.9.7/local_installers/12.x/cudnn-local-repo-ubuntu2204-8.9.7.29_1.0-1_amd64.deb?Wr2dTCzXY1M3FuHmuQIxUK9phLLYKkG8BCndRJ4TPwJPO3R_E9SAiojXcPKK7ivtaPbHXj49L1MqhjqfQKyuZF7B33dx5y8XDUz96_EPovRBytbRIwyNgSsNzQNxHoTeUQXrMcCGkogKQ8yADLABUQb4eIoO0HcuSDrKwbdKJvDHVJ-NboNM3kr9DGkQkUlGJ82oyQEM2vO_b51L7LN91DboWEo=&t=eyJscyI6IndlYnNpdGUiLCJsc2QiOiJkZXZlbG9wZXIubnZpZGlhLmNvbS9yZHAvY3Vkbm4tYXJjaGl2ZSJ9"

After the download was finished, I installed CuDNN like this:

sudo dpkg -i cudnn.deb

The command failed telling me to copy the certificates to a certain path before proceeding: sudo cp /var/cudnn-local-repo-/cudnn-local--keyring.gpg /usr/share/keyrings/

Then i retried:

sudo dpkg -i cudnn.deb sudo apt-get update sudo apt-get install libcudnn8 sudo apt-get install libcudnn8-dev

Now I need to copy one of the installed files inside the specific python that's being used with pyenv. I didn't know where it was so I used this command to find it:

sudo find / -name "libnvrtc*"

I learned that the file I needed was: ~/.pyenv/versions/3.10.15/lib/python3.10/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2

I needed a file called libnvrtc.so only, not libnvrtc.so.11.2, so i created a symbolic link:

ln -s ~/.pyenv/versions/3.10.15/lib/python3.10/site-packages/nvidia/cuda_nvrtc/lib/libnvrtc.so.11.2 libnvrtc.so

After that, when I tried the program I wanted again, the warning "Applied workaround for CuDNN issue, install nvrtc.so" was gone.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thiago Garcia

79178772

Date: 2024-11-11 18:36:27
Score: 1
Natty:
Report link

I think you can just add a big margin to the bottom div, and it will do what you want. In my case, I added mt-64.

<div class="mt-64 h-24 w-full bg-red-400">BOTTOM DIV</div>

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

79178770

Date: 2024-11-11 18:33:26
Score: 1.5
Natty:
Report link

I found a very easy solution to handle this. Docs: https://clerk.com/docs/references/nextjs/auth

import React from "react";
import { auth } from "@clerk/nextjs/server";
import { getDictionary } from "@/locales/dictionary";
import TenantTable from "@/components/TenantTable/TenantTable";

export default async function Page() {

  const dict = await getDictionary();
  const { userId, redirectToSignIn } = await auth();
  if (!userId) return redirectToSignIn();
  return (
    <div>
     Hello, ${userID}
    </div>
  );
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shristi Gupta

79178766

Date: 2024-11-11 18:32:25
Score: 0.5
Natty:
Report link

in vue3 this works for me without warning

const emit = defineEmits({
    IDialogConfirmComponentEvents: "IDialogConfirmComponentEvents",
});
Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Марк Мина

79178764

Date: 2024-11-11 18:31:25
Score: 4
Natty:
Report link

Very interresting approach, i have a similar issue. My problem is that i need to use sticky-sessions for two upstreams, each having the same number of upstream targets, but i need to have them pairwise. From your example above that would mean that a user is forwarded to server "server1:8080" and "server1:9080" and not to "server2:9080". So some kind of affinity between the upstream hosts. I could not find a way to make this work.

Reasons:
  • Blacklisted phrase (0.5): i need
  • No code block (0.5):
  • Me too answer (2.5): i have a similar issue
  • Low reputation (0.5):
Posted by: T-Regex

79178762

Date: 2024-11-11 18:30:24
Score: 0.5
Natty:
Report link

dude! In Postman, your JSON looks correct, but are you sure that this.puppy.race is really not undefined? You don't need to convert your object, because the Angular HTTP Client will handle that for you. Let Angular handle it.

 const puppyJson = {
  id: null,
  puppyId: this.puppy.puppyId,
  name: this.puppy.name,
  color: this.puppy.color,
  weight: this.puppy.weight,
  height: this.puppy.height,
  image: this.puppy.image,
  characteristic: this.puppy.characteristic,
  race: { id: null, race: this.puppy.race?.race }, 
  price: this.puppy.price
 };

You can also debug your object to make sure everything looks correct before sending it.

console.log(puppyJson)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mateus Oliveira

79178753

Date: 2024-11-11 18:27:23
Score: 1
Natty:
Report link

Patchwork is good at aligning plots:

library(patchwork)
g1 + g2
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Michiel Duvekot

79178751

Date: 2024-11-11 18:27:23
Score: 3
Natty:
Report link

Listen to webhooks on backend then connect your server to your frontend through websockets

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

79178738

Date: 2024-11-11 18:21:21
Score: 1
Natty:
Report link

As per the comments from paleonix, the solution is the compile option:

-arch=sm_75
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: bigcodeszzer

79178735

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

You can use an anti-spam bot (such as https://kolas.ai/kolasaibot/) which recognizes spam and blocks spammers.

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

79178717

Date: 2024-11-11 18:14:20
Score: 3
Natty:
Report link

Of course repositorie can be deleted. the whole JCenter repository was “deleted” and gone for good now.

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

79178713

Date: 2024-11-11 18:12:19
Score: 3
Natty:
Report link

This also (mostly) fixed my issue with jumping content while using the KeyboardAvoidingView FYI.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: some-dude-on-the-internet

79178695

Date: 2024-11-11 18:06:18
Score: 0.5
Natty:
Report link

The outline isn’t showing on the first <a> tag because <a> tags are inline by default, meaning they only take up as much space as their content. When you put a larger block element, like a <div>, inside an inline <a>, the outline doesn’t wrap around it correctly. Setting display: flex on the <a> tag fixes this by making it behave like a block element, allowing the outline to cover the entire content.

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

79178694

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

Use compressed layout - https://matplotlib.org/stable/users/explain/axes/constrainedlayout_guide.html#compressed-layout

fig, axs = plt.subplots(2, 2, layout='compressed')

It resizes the entire figure to remove redundant white space.

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

79178688

Date: 2024-11-11 18:05:18
Score: 1
Natty:
Report link

In case you land here because you wanted to put a UserControl into something and it doesnt stretch.

Change the following in your XAML

Height="600" Width="800"

to

d:DesignHeight="600" d:DesignWidth="800"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roli

79178685

Date: 2024-11-11 18:04:17
Score: 1.5
Natty:
Report link

Change your indentation

graph LR
  A-->B
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kategorically

79178683

Date: 2024-11-11 18:03:17
Score: 1.5
Natty:
Report link

Perhaps you are after IAR's C-RUN runtime heap analysis. It automatically instruments the code so that preventable leaks can be detected on the fly.

It is available as an add-on though there is a trial version as well.

https://github.com/iarsystems/crun-evaluation-guide?tab=readme-ov-file#heap-checking-capabilities

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

79178669

Date: 2024-11-11 17:57:16
Score: 1.5
Natty:
Report link

https://learn.microsoft.com/en-us/powershell/module/pki/new-selfsignedcertificate?view=windowsserver2022-ps

$params = @{DnsName = 'www.fabrikam.com', 'www.contoso.com' 
CertStoreLocation = 'Cert:\LocalMachine\My' } 

New-SelfSignedCertificate @params 

OR

New-SelfSignedCertificate -DnsName 'www.fabrikam.com','www.contoso.com' -CertStoreLocation Cert:\LocalMachine\My

These two examples create a self-signed SSL server certificate in the computer MY store with the subject alternative names www.fabrikam.com and www.contoso.com and the Subject and Issuer name set to www.fabrikam.com. (First one will be set to subject/Issuer unless otherwise indicated.

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

79178664

Date: 2024-11-11 17:55:15
Score: 1.5
Natty:
Report link

I spent a week trying to solve a similar problem. Turned out to be the bundler gem. The system bundler on my server was a different version than the bundler version on my development machine. Check your Gemfile.lock file. If last line says BUNDLED WITH a different version as "bundle -v" from the command-line, you should work to get them on the same version.

BTW, I found the answer in this long ticket: https://github.com/phusion/passenger-docker/issues/409

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

79178657

Date: 2024-11-11 17:53:15
Score: 1.5
Natty:
Report link

I found a solution, although not the most elegant.

Just set the backgound color with style sheet with 1/255 opacity:

window.setStyleSheet('background-color: #01000000;')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jacky

79178652

Date: 2024-11-11 17:51:15
Score: 2
Natty:
Report link

in my case the problem was $attributes, I had protected $attributes = ['my_attribute'];, but I didn't have a method for that attribute

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

79178639

Date: 2024-11-11 17:49:14
Score: 1
Natty:
Report link

Something that worked for me was to do the following: For Linux:

So .test works fine without redirection to http when using Selenium

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

79178638

Date: 2024-11-11 17:49:14
Score: 1
Natty:
Report link

Im not entirely sure how I would go about this but I feel like the main issue youre running into is that the highlights in the input image are too blown out. I would start by evening out the lighting in the original image before extracting the fingerprints. You could either bring the whites down in brightness or do a more complicated approach with highlights.

You could probably find an open source image editor with that functionality and just copy over what you need into a function in your script then run the rest of your script on the modified image.

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

79178631

Date: 2024-11-11 17:46:13
Score: 2
Natty:
Report link

There is a known bug when local value might not be taken into effect

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

79178629

Date: 2024-11-11 17:46:13
Score: 1
Natty:
Report link

You normally want to change the group list, rather than to drop it, to match your new identity after the suid/sgid-assisted switch. You need the group list to match your new uid (and actually gid too, as the group list usually includes gid itself).

Unfortunately, as was already mentioned, currently you need CAP_SETGID for calling initgroups(). However in an attempt to solve that, I posted a few proposals to LKML. This one allows to "restrict" a group list, which is somewhat similar to dropping it, but doesn't give you any extra access rights if they were blocked by one of the groups in a list. This one actually allows you to get the correct group list, but you need a privileged helper process to assist you with that task.

I personally prefer the second solution as it gives you a correct group list, but the first one is at least very simple and doesn't require any helper process or extra privs.

Unfortunately both patch-sets only yielded 1 review comment each, which means the lack of an interest to this problem among LKML people. Maybe those who are interested in this problem here, can evaluate my patches and offer some more discussion of them in LKML.

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

79178623

Date: 2024-11-11 17:44:13
Score: 1
Natty:
Report link

Add the API Key to the environment variable. Environment variable key should be "NVIDIA_API_KEY", and provide your API key as the value. Update the version of langchain-nvidia-ai-endpoints package to 0.3.5. This works for me with your code. Please check if it works for you.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Shanmugam Sudalaimuthu

79178621

Date: 2024-11-11 17:43:13
Score: 2
Natty:
Report link

Stupid mistake...had a stray createSupabaseClient() in the form.tsx component, when it only belonged in the api route. Deleted from form.tsx, and everything is working.

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

79178618

Date: 2024-11-11 17:42:12
Score: 3
Natty:
Report link

You should check the namespace in the file and ensure it is pointing to the right directory where the UserAccessMiddleware is located.

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

79178615

Date: 2024-11-11 17:41:11
Score: 9
Natty: 7.5
Report link

I also want to know the same thing if you find anything regarding this could you please share it with me as well? Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2.5): could you please share
  • RegEx Blacklisted phrase (1): I also want to know the same thing if you find anything regarding this could you please
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: CosmicMarine

79178604

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

I ended up needing to navigate further down the DOM to a parent element that didn't have so much stuff in it. Then, I waited for a button to populate within that specific parent div:

                await myPageSection.waitForSelector('button', { timeout: 15000 }).catch(() => {
                console.log('No buttons found within pageSections[3] after waiting.');
            });

And finally, I ran through all the buttons to find the one I needed. I think classes and innerText were dynamically changing, which is part of the reason why I couldn't target it:

const allButtons = await myPageSection.$$('button')
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: MrBuchmas

79178593

Date: 2024-11-11 17:32:09
Score: 1
Natty:
Report link

If you will use same way to implement i18n to next.js app with App Router (on next.js v13+), good to know:

The locale, locales, defaultLocales, domainLocales values have been removed because built-in i18n Next.js features are no longer necessary in the app directory.

Taken from Migrating Routing Hooks documentation.

Usefull links for implement i18n with App Router:

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: DarkDomian

79178582

Date: 2024-11-11 17:29:08
Score: 3.5
Natty:
Report link

From the requirements you've put forth, have you looked at/considered WCF + PowerShell? This would be far easier to control access and limit what can be run on the remote end.

I have an example of how to do this, both in the PowerShell commandlet and the WCF Service Activity side.

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

79178579

Date: 2024-11-11 17:28:08
Score: 4
Natty:
Report link

I spent almost half day fixing the similar issue. Turns out I didn't run the commit on the oracle database. This link helped me.

Reasons:
  • Blacklisted phrase (1): This link
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nitin

79178567

Date: 2024-11-11 17:23:03
Score: 7 🚩
Natty: 6.5
Report link

@wimpix - this is the solution I was looking for - do you know if there is a way to save my macro to the personal macro workbook if I previously created it in a regular workbook? Or do I have to record it again?

Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • User mentioned (1): @wimpix
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Liz Evans

79178565

Date: 2024-11-11 17:22:03
Score: 2.5
Natty:
Report link

Disable certificate and install nltk.download() command.

It will work for me. It will open pop-up window and click on download button.

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