79160753

Date: 2024-11-05 21:40:07
Score: 0.5
Natty:
Report link

In addition to what other people suggest, net_address also offers a simple and lightweight way to work with IPs and ranges.

In the OP's case, you can do something like:

iex(9)> import IP
IP
iex(10)> ip_ranges = [~i"49.14.0.0..49.14.63.255", ~i"106.76.96.0..106.76.127.255"]
[~i"49.14.0.0..49.14.63.255", ~i"106.76.96.0..106.76.127.255"]
iex(11)> {:ok, ip} = from_string("49.14.1.2")
{:ok, {49, 14, 1, 2}}
iex(12)> ip
{49, 14, 1, 2}
iex(13)> Enum.any?(ip_ranges, fn ip_range -> ip in ip_range end)
true
iex(14)> {:ok, ip} = from_string("49.14.64.1")
{:ok, {49, 14, 64, 1}}
iex(15)> Enum.any?(ip_ranges, fn ip_range -> ip in ip_range end)
false

For more info, check out this documentation.

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

79160751

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

You get an error because of wrong reference to fetchTranscript.

Here is the correct way:

 var yt = require("youtube-transcript");
 var transcript_obj = await yt.YoutubeTranscript.fetchTranscript('_cY5ZD9yh2I'

 const text = transcript_obj.map((t) => t.text).join(' ');
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ugmurthy

79160749

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

This was an issue when I used the "prefilled Link" Once you use the correct link/form then this issue will go away.

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

79160741

Date: 2024-11-05 21:36:06
Score: 0.5
Natty:
Report link

This code snippet cleared the cookies for my website upon loading my logout page.

if (!IsPostBack)
{
    // Clear cookies for Drawing Viewer upon logout
    if (Request.Cookies != null)
    {
        var cookies = Request.Cookies.AllKeys;
        foreach (var cookie in cookies)
        {
            var httpCookie = new HttpCookie(cookie)
            {
                Expires = DateTime.Now.AddDays(-1),
                Value = string.Empty
            };
            Response.Cookies.Add(httpCookie);
        }
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user18337380

79160736

Date: 2024-11-05 21:32:05
Score: 1
Natty:
Report link

In new Ubuntu 24.04.1 LTS it seems that the *.list files are obsolete, and only *.sources files are used. To avoid this annoying message you can add not mandatory field:

Architectures: amd64

somewhere in the beggining of the file. I did it for google-chrome and microsoft-edge repos:

Types: deb
URIs: https://dl.google.com/linux/chrome/deb/
Suites: stable
Architectures: amd64
Components: main
Signed-By: -----BEGIN PGP PUBLIC KEY BLOCK-----
 ........etc.....
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28151547

79160735

Date: 2024-11-05 21:32:05
Score: 0.5
Natty:
Report link

So, you've got these two search engines in RavenDB - Lucene and Corax right? Here's how you can tell RavenDB which one you want to use:

The easiest way in code would be something like this:

{
    public YourIndex()
    {
        // Just tell it straight up which engine you want to use
        SearchEngineType = Raven.Client.Documents.Indexes.SearchEngineType.Lucene;
        
        // That's it! Simple as that
    }
}

But here's the thing - you've got options!

  1. You can set it right in your code (like shown above)
  2. You can click around in the RavenDB Studio if you're more of a visual person
  3. Or you can edit the settings.json file if you're old school

I totally get that you might have some complex indexes that aren't ready for Corax yet - no worries! That's actually super common. My friendly advice? Start with explicitly setting Lucene for those complex indexes in your code, keeps everything stable while you figure out your next move.

Need me to clarify anything? I'm here to help!

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Thiago Cezário

79160732

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

To override the minSDK use:

<uses-sdk tools:overrideLibrary="com.xxxx.xxxx"/>

To fix the merge error use:

android {
packagingOptions {
    pickFirst 'google/protobuf/*.proto'
    pickFirst 'google/protobuf/compiler/*.proto'
    }
}

source: https://github.com/protocolbuffers/protobuf/issues/8694

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

79160729

Date: 2024-11-05 21:28:04
Score: 2.5
Natty:
Report link

I've tested this issue.

Steps performed:

  1. New Azure VPN config downloaded from the Azure Portal VPN Gateway P2S (doesn't work)

  2. Checking of ipconfig /all , route print, tracert, nslookup, test-netconnection, telnet, wifi/wired interfaces settings (all checked, no issues)

  3. The problem is somehow related to the the Microsoft EDGE web browser DNS settings. When open Microsoft EDGE -> Settings -> search for "dns" -> look for "Use secure DNS to specify how to lookup the network address for websites". By default there is a settings set "Use current service provider". To solve the case and have the internet connection while on Azure VPN select "Choose a service provider", click in the empty field below and select e.g. "Cloudflare (1.1.1.1)". It will appear as "https://chrome.cloudflare-dns.com/dns-query". Screens attached. Then reboot the web browser - Microsoft Edge - and the internet will start to work right away.

enter image description here

enter image description here

Security info: In this Cloudflare DNS is used to resolve your DNS queries. If you do not want to do that try with your own DNS servers or other DNS you prefer in this step.

NOTE: If this will help you feel free to leave short comment or just share this to other that have such issue.

In case of questions feel free to let me know via comments as well.

Best regards,

Tomasz Wieczorkowski

Reasons:
  • Blacklisted phrase (0.5): Best regards
  • Blacklisted phrase (1): regards
  • Contains signature (1):
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Tomasz Wieczorkowski

79160725

Date: 2024-11-05 21:27:04
Score: 2.5
Natty:
Report link

A bit late but this c# code will do it. It finds the most uniform (least ragged) solution for a given number of lines, or a max line length.

It works by using recursion to bifurcate at each word separator. Then it sorts the potential solutions by lowest-standard-deviation-of-line-length, and returns the first solution.

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

79160723

Date: 2024-11-05 21:26:04
Score: 1
Natty:
Report link

thank you all for your contributions! I am quite new to all of this, but a way around it was using another Playwright function that allowed to manipulate the HTML string to match the text. So, instead of using :text-matches I used inner_text()

Please find the code snippet that was modified below:

while names_to_find:
    # Get all <tr> elements in the table body
    rows = page.locator("table tbody tr")

    # Iterate over each row in the table
    for i in range(await rows.count()):
        # Get the name in lowercase
        name_unit = await rows.nth(i).locator('td[data-label="nameunit"]').inner_text()
        name_unit_lower = name_unit.strip().lower()
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sofía Fayó

79160714

Date: 2024-11-05 21:22:03
Score: 3
Natty:
Report link

I tried Flutter_blue_plus, it is pretty simple to understand. I am having however some issues connecting to BLE devices on Android. I wrote a simple test app and I have to try connect several times before connection is successful. I don't seem to have this issue on iOS though.

According to this article, another good library is flutter_reactive_ble.

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Matte86

79160704

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

I had the exact same problem, but it was solved when I installed the correct SDK version.

Since the PySpin module is looking for "libSpinnaker.so.4" and you are using Python3.10, it seems you that you have installed the python wheel for Spinnaker 4.x.x on Ubuntu 20.04. However, you should install Spinnaker 3.2.0.62 and use Python3.8 if you are on Ubuntu 20.04.

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

79160692

Date: 2024-11-05 21:15:01
Score: 2
Natty:
Report link

this is really a very annoying issue but there is a solution to it.

import os module and then you have to enter two path variable as follows: Note: please look for the tcl and tk libraries in your python313 folder. and copy the relevant path. for me it can be the fllowing:

import os

os.environ['TCL_LIBRARY'] = r'C:\Users\User1\AppData\Local\Programs\Python\Python313\tcl\tcl8.6'

os.environ['TK_LIBRARY'] = r'C:\Users\User1\AppData\Local\Programs\Python\Python313\tcl\tk8.6'

do it inside the program/script you are writing.

it will defeinitly solve the issue..

get back to me if it doesn't

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): User1
  • User mentioned (0): User1
  • Low reputation (1):
Posted by: ikram ullah

79160688

Date: 2024-11-05 21:14:00
Score: 3.5
Natty:
Report link

Can you enable Liberty trace with trace string com.ibm.ws.security.* and com.ibm.ws.classloading.*, recreate the problem and send me the trace.log and message.log.

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): Can you
  • Low reputation (1):
Posted by: Ut Le

79160683

Date: 2024-11-05 21:12:00
Score: 3
Natty:
Report link

To me, it was "Python Indent" that caused the issue.

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

79160680

Date: 2024-11-05 21:10:59
Score: 4.5
Natty: 5
Report link

Here are the settings for GitHub Copilot VsCode plugin: https://code.visualstudio.com/docs/copilot/copilot-settings

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

79160679

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

Is it possible to search without using nested fields, achieving exact matches within the same object in an array in ElasticSearch?

Short answer: No

Explanation: In Elasticsearch, non-nested fields within an array are “flattened” at indexing time, so Elasticsearch doesn’t inherently recognize that individual field values in an array of objects are associated within the same object. Without the nested field type, fields in an array of objects are treated as if they were part of a single object, which means searches can’t distinguish between values belonging to separate objects.

Official explanation: The nested type is a specialised version of the object data type that allows arrays of objects to be indexed in a way that they can be queried independently of each other. https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html

Workaround: If you’re unable to use nested fields, another option is to restructure your data to avoid arrays of objects.

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it
  • High reputation (-1):
Posted by: Musab Dogan

79160678

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

I recommend you to use DrissionPage python library for web scraping and automation projects.

DrissionPage is a python-based web automation tool. It can control the browser, send and receive data packets, and combine the two into one. It can take into account the convenience of browser automation and the high efficiency of requests. It is powerful and has numerous user-friendly designs and convenient functions built in. Its syntax is concise and elegant, with little code and is friendly to novices.

Please reference the following url: https://drissionpage.cn/dp40docs/

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

79160653

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

Instead of

sh.getRange ('1' + e.range.columnStart)

you may change it to

sh.getRange (1 , e.range.getColumn())

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

79160646

Date: 2024-11-05 20:57:54
Score: 2
Natty:
Report link

minimumElasticInstanceCount is a parameter used in Autoscaling. It is used to define the number of instances that should be available at the minimum when the load is very low. You can see more about autoscaling at Microsoft TechCommunity - Apps on Azure Blog

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

79160644

Date: 2024-11-05 20:56:54
Score: 3.5
Natty:
Report link

Not sure if this limit is hard for all the bots, but it's good to have a reference of avoiding more than 30 messages per second. https://telegram.org/tos/bot-developers#6-2-5-broadcasting-messages-with-stars

Another suggestion:

  1. Use a VPN to avoid having multiple accounts from the same IP.
  2. Use one account to consume data from the first channel and a different one to produce into the second one.
  3. I considered having the consumer and the producer bots running into different VPS, communicating via API.
  4. Rate limit of 20-30 messages per minute.
  5. Avoid using virtual numbers?
Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Martín Morales

79160638

Date: 2024-11-05 20:54:53
Score: 3.5
Natty:
Report link

Pixi support for Visual Studio Code to manage Pixi projects VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=jjjermiah.pixi-vscode

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

79160637

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

Is this possible using scapy?

Likely not, here the Scapy documentation discusses specifics of loopback interface and its usage: link.

Are there other ways to do it ?

I can only recommend connecting two machines and sending packets from one machine two another. One can use virtual machines, for example, created in VirtualBox, to do experimenting with only one physical machine available.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this
  • Low reputation (0.5):
Posted by: Pavel Shishpor

79160616

Date: 2024-11-05 20:47:52
Score: 1.5
Natty:
Report link

You can check this out, it looks simple. You have to include the number as well.

num = int(input("Enter a number: "))

for i in range(1, num + 1):
    if num % i == 0:
        print(i, end=" ")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Prince Mensah

79160615

Date: 2024-11-05 20:47:52
Score: 1
Natty:
Report link

T in std::vector<T> can be accessed through value_type:

template<typename C, typename T = C::value_type, std::invocable<T> Visitor>
void template_ref_visit(C& c, Visitor& visit) { visit(c[0]); }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nil Admirari

79160611

Date: 2024-11-05 20:45:49
Score: 9.5 🚩
Natty: 5.5
Report link

I am facing the same issue. Did you able to fix it?

Reasons:
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nihal

79160605

Date: 2024-11-05 20:42:48
Score: 0.5
Natty:
Report link

As far as I know you can’t directly set a sessionID for an insertAll request using the BigQuery Java client. insertAll is designed for streaming inserts and doesn't participate in explicit transactions the same way queries do.

I think a parameterized INSERT statement within your transaction would be a good alternative. This way, you guarantee atomicity of your operations, so either all changes are applied, or none are. This is a better approach for managing multiple changes within a single transaction in BigQuery.

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

79160603

Date: 2024-11-05 20:42:48
Score: 3
Natty:
Report link

Turns out the problem was with the definition of the layout in landscape mode. Elements from the main layout were showing up on top of the graph's legend.

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

79160601

Date: 2024-11-05 20:38:47
Score: 1.5
Natty:
Report link

You can specify that you wish to use the Corax engine in 3 ways/levels:

  1. Setting the search engine server-wide (for all databases):
    update your settings.json file as shown in this link:
    https://ravendb.net/docs/article-page/6.2/csharp/indexes/search-engine/corax#select-search-engine-server-wide
  2. Setting the search engine per database:
    done via the Studio as shown in this link:
    https://ravendb.net/docs/article-page/6.2/csharp/indexes/search-engine/corax#select-search-engine-per-database
  3. Setting the search engine per index:
    can be done via the client API code as shown in this link:
    https://ravendb.net/docs/article-page/6.2/csharp/indexes/search-engine/corax#select-index-search-engine-using-code
Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Danielle

79160596

Date: 2024-11-05 20:37:45
Score: 11.5 🚩
Natty: 6
Report link

I'm having the same issue here, have you been able to fix it? thanks

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1.5): have you been able to
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pato Draghi

79160586

Date: 2024-11-05 20:34:41
Score: 6 🚩
Natty: 4
Report link

Unfortunately this doesn't work for me. Checked and correct PATH is exposed to the running process but still getting No ST-LINK detected

Version: 1.16.1 Build: 22882_20240916_0822 (UTC)

OSX version 15.0.1

Any ideas?

Reasons:
  • Blacklisted phrase (1): Any ideas
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: dstrbad

79160585

Date: 2024-11-05 20:34:41
Score: 3
Natty:
Report link

this problem is solutioned by subscription-manager refresh

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: JORGE MARIO MARQUEZ COTES

79160550

Date: 2024-11-05 20:19:37
Score: 1
Natty:
Report link

I also just ran into this issue, and in my case I fixed it by moving away from bodyParser to using the express.json() and express.text() built-in middleware functions.

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

79160545

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

I see, the acutal reason missing in all answers. Its because you are trying to open a large file using Document() , which throws package not fount exception. Try to use docx2txt or other libs for the same usecase , it will work .

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

79160541

Date: 2024-11-05 20:16:34
Score: 15 🚩
Natty:
Report link

I am having the same error. Do you have any solutions?

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (1): I am having the same error
  • RegEx Blacklisted phrase (2.5): Do you have any
  • RegEx Blacklisted phrase (2): any solutions?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same error
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin

79160530

Date: 2024-11-05 20:13:34
Score: 1
Natty:
Report link
#include <iostream>
#include <chrono>

int main() {

    using namespace std::chrono;

    seconds sec(5);

    milliseconds ms = duration_cast<milliseconds>(sec);

    std::cout << "5 seconds is " << ms.count() << " milliseconds.\n";

    return 0;
}

When converting between different time units using std::chrono in C++, the typical approach is to use the duration_cast function. This ensures that conversions are precise and explicit.

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Saurabh Rajput

79160526

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

For those developing for the web, the solution would be to use event.stopPropagation(). It stops clicks for the parent not to trigger the child and vice versa

https://developer.mozilla.org/en-US/docs/Web/API/Event/stopPropagation

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

79160514

Date: 2024-11-05 20:06:32
Score: 1.5
Natty:
Report link

I based my answer on @walyrious idea. I execute bash -c 'source run.sh; custom-script.sh' in maven-antrun-plugin so that custom-script.sh is in the same shell as the sourced run.sh. Though, I think this maven execution is much cleaner than his answer:

<plugin>
    <artifactId>maven-antrun-plugin</artifactId>
    <groupId>org.apache.maven.plugins</groupId>
    <executions>
        <execution>
            <id>source file</id>
            <phase>process-resources</phase>
            <goals>
              <goal>run</goal>
            </goals>
            <configuration>
                <target>
                    <exec executable="bash">
                        <arg line="-c 'source run.sh; custom-script.sh'"/>
                    </exec>
                </target>
            </configuration>
        </execution>
    </executions>
</plugin>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @walyrious
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kyle Seaman

79160511

Date: 2024-11-05 20:05:32
Score: 2
Natty:
Report link

SOLVED. Here is what I did : Copy the file opencv_world4xxx.dll to the same directory of your_project.exe. If in cargo run mode, copy to target/debug. Then you will get new error collerated with onnxruntime.dll, then simply download onnxruntime.zip from here : https://github.com/microsoft/onnxruntime and extract it then copy onnxruntime.dll to the same directory of your_project.exe just like the previous opencv_world file

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

79160508

Date: 2024-11-05 20:03:31
Score: 3
Natty:
Report link

This problem exist because in express lib in node_modules in index.d.ts file no export of 'express' function, instead it exports 'e' function. So we must use 'e' from 'express' instead of 'express'. enter image description here

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

79160505

Date: 2024-11-05 20:03:31
Score: 3
Natty:
Report link

Quit buttons are banned from the apple app store, as they ruin the seamless user experience that Apple wish to provide, as Ios has it's own way to open and close applications.

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

79160493

Date: 2024-11-05 19:55:29
Score: 0.5
Natty:
Report link

I had the same issue on Win 11 and solved it by installing setuptools with the following:

python3 -m pip install -U setuptools
Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Koray Biçer

79160486

Date: 2024-11-05 19:51:28
Score: 1
Natty:
Report link

You have clearly a different configurations, one has run.skip-dirs, the other doesn't. Also, you seem have something like:

issues:
  new-from-rev: "origin/develop"

in your configuration which appears to be missing in the fork - this could explain the different outputs. Please provide a minimal, reproducible example we can check out and analyze when you require a more precise explanation.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: eik

79160479

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

Just to close out this question and answer the below,

God no! I am not using an email hash as the only thing that authenticates a user. I am using a pair of an access token and a refresh token to authenticate users. Both are signed by different, randomly generated, keys and verified by the middleware in every request to a protected route. Both have expiry times, the access token having a very short and refresh token a bit longer lifetime and I keep track of the refresh token family in case a consumed refresh token is used. In this case I invalidate all tokens, because someone is trying to use a token that was probably scraped by a hacker. For anyone that might be interested in a more detailed explanation, check out this article: https://auth0.com/blog/refresh-tokens-what-are-they-and-when-to-use-them/

The original question was just concerning access to a part of the DB, but as was commented on my initial post, the client shouldn't (and won't) be used as a cache. Instead, the DB will be queried directly.

What I mostly wanted to know was the answer by CBHacking in the first three paragraphs (before the However). I wasn't sure how secure salted hashes really are and now I know! :)

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

79160474

Date: 2024-11-05 19:47:28
Score: 0.5
Natty:
Report link

when it comes to focusing components between open/active states you need to wrap the focus setter around a setTimeout with a very small delay, so your code should look something like this:

useEffect(() => {
  if (commandRef.current) {
    setTimeout(() => {
      commandRef.current.focus();
    }, 50)
  }
}, []);

if you're trying to highlight a CommandItem component, you'll want to set the data-selected attribute alongside the focus, which looks something like this:

useEffect(() => {
  if (commandItemRef.current) {
    setTimeout(() => {
      commandItemRef.current.setAttribute("data-selected", "true")
      commandRef.current.focus();
    }, 50)
  }
}, []);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): when it
  • Low reputation (1):
Posted by: seb crossa

79160472

Date: 2024-11-05 19:47:28
Score: 2.5
Natty:
Report link

im faced with behabior now , i have aconcurrent job what fails showing this menssage :

failed to execute with exception Exceeded maximum concurrent compute capacity for your account: 1000. Please retry after currently running jobs complete

and

failed to execute with exception Exceeded maximum concurrent compute capacity for your account: 1000. Please retry after currently running jobs complete. (Service: AWSGlueJobExecutor; Status Code: 400; Error Code: InvalidInputException

The max job concurrencyis set to 200 , so i dont know what happend any help ?

Reasons:
  • Blacklisted phrase (1): any help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Cristián Vargas Acevedo

79160462

Date: 2024-11-05 19:41:26
Score: 1
Natty:
Report link

Update for 2024, I had to do the following to get my styling to apply to an a-tag.

.my-content-with-link {
    :deep(a) {
        color: red;
    }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrew Pye

79160448

Date: 2024-11-05 19:29:23
Score: 2.5
Natty:
Report link

Why note fanout directly from the SNS to the SQS queues?

Like: SNS -> SQS (P0 - PN)

I think that's the standard in this case.

https://docs.aws.amazon.com/sns/latest/dg/sns-sqs-as-subscriber.html

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why not
Posted by: Raul Barreto

79160446

Date: 2024-11-05 19:29:21
Score: 6 🚩
Natty:
Report link

This has been solved thanks to pskink's comment on my question:

this could be a good starting point: pastebin.com/YTyCPVZd – pskink

thank you so much brother, please post the answer yourself so I can choose it !

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (2.5): please post the answer your
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Youssef Hanna

79160422

Date: 2024-11-05 19:19:19
Score: 2.5
Natty:
Report link

You can create a directory within the root directory and save the data to the file within that directory. Ex: C:\Test\Metric.csv

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

79160405

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

Host your Node.JS Backend separately from the React Frontend app and create a .env file in the Remote Backend project. You can try setting up dotenv this way.

import * as dotenv from "dotenv";
dotenv.config();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Richard Kenneth

79160403

Date: 2024-11-05 19:12:17
Score: 5.5
Natty: 6.5
Report link

here link for avr mcu washing machine program. never been tasted. temperature measurement is not implemented

https://docs.google.com/document/d/1zpD91VNDjDGJ6VeZuVOODWFSMHn1mkZ9a7_tIjchrlU/view?

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Sergii Kovalenko

79160389

Date: 2024-11-05 19:07:15
Score: 1
Natty:
Report link

Jeremy's suggestion to use JsonSchema.Net.OpenApi is good, but I'd recommend going one step further and using Graeae. Graeae provides Open API description models and supports validation and dereferencing.

Disclaimer: Both JsonSchema.Net and Graeae are my projects.

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

79160380

Date: 2024-11-05 19:04:14
Score: 1
Natty:
Report link

I did it like this, to me it seems easier to read

def caught_speeding(speed, is_birthday):
   value = 0
        
   if is_birthday:
       speed -= 5
   if speed >= 81:
       value = 2
   elif speed >= 61:
       value = 1

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

79160379

Date: 2024-11-05 19:03:14
Score: 0.5
Natty:
Report link

The error occurred because I used an incorrect cast while trying to display enum values in a dropdown in the Razor view. Since Enum.GetValues can't be directly used as an array, it needed to be cast to DifficultyLevel with Cast(). The incorrect expression wasn't understood by Razor, resulting in an error.

In Edit.cshtml, I replaced the form in which I perform Enum operations with the following form:

 <div class="form-group mb-4">
      <label asp-for="Difficulty" class="form-label font-weight-bold">Zorluk Derecesi</label>
      <select asp-for="Difficulty" class="form-control bg-secondary text-light border-0 shadow-sm">
          <option value="">Seçiniz</option>
          @foreach (var level in Enum.GetValues(typeof(Question.DifficultyLevel)).Cast<Question.DifficultyLevel>())
          {
              <option value="@level">@level</option>
          }
      </select>
      <span asp-validation-for="Difficulty" class="text-danger"></span>
  </div>
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: onurkaygn

79160378

Date: 2024-11-05 19:02:13
Score: 2.5
Natty:
Report link

dotnet core api.

builder.Services.AddControllers().AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy=null);

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

79160374

Date: 2024-11-05 19:00:13
Score: 0.5
Natty:
Report link

I got this error on mac. Seems like a rights issue. One thing that works is settings-> privacy-&security-> full disk access .Add cursor.

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

79160371

Date: 2024-11-05 18:59:13
Score: 1.5
Natty:
Report link

You would need to update the IOS version in Project->Targets->General->Minimum Deployments should be set to the lowest IOS version then only your older version simulator will appear. Open Xcode. Select the "Window" menu. Select "Devices and Simulators". Select Simulators tab. Click on the "+" icon at the left bottom. Choose the desired device & preferred iOS. Click "Create".

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

79160357

Date: 2024-11-05 18:53:11
Score: 1.5
Natty:
Report link

In C# 6.0 or later (which includes .NET Framework 4.6, .NET Core 1.0, and all subsequent versions)

string formattedDate = $"{DateTime.Now:dd/MM/yyyy}";

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

79160345

Date: 2024-11-05 18:48:09
Score: 0.5
Natty:
Report link

You may request here for a higher quota value for the encountered error message quota exceeded.

If you find that you can't request an adjustment from the console, request the increase from Cloud Customer Care you may ask here as well your confusion why you have the project ID which is not owned by your organization.

Cloud Quotas adjustment requests are subject to review. If your quota adjustment request requires review, you receive an email acknowledging receipt of your request. If you need further assistance, respond to the email. After reviewing your request, you receive an email notification indicating whether your request was approved.

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

79160344

Date: 2024-11-05 18:48:09
Score: 5.5
Natty:
Report link

I have the same exact problem and I've tried everything to fix it but with no luck unfortunately.

Reasons:
  • Blacklisted phrase (1): ve tried everything
  • Blacklisted phrase (1): no luck
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: john_doe99

79160334

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

i've been using it in prod for a while now

br {
    content: '';
    display: block;
    height: 5px;
}

works beautifully 👍

thanks @Morrisramone and @Rok

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Morrisramone
  • User mentioned (0): @Rok
  • High reputation (-1):
Posted by: Felipe Chernicharo

79160330

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

One of the main reasons I see why it took 19 seconds to run in Node.js is because the Vertex AI SDK for Node.js lets you use the Vertex AI Gemini API to build AI-powered features and applications. Both TypeScript and JavaScript are supported. The sample code in this document is written in JavaScript. There are additional installations that might take some time before it fully executes the code.

Key Factors Contributing to Latency Differences:

Tips for Optimizing Node.js Performance:

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

79160329

Date: 2024-11-05 18:43:08
Score: 3
Natty:
Report link

r.HairStrands.PathTracing.InvalidationThreshold -1

run this console command, fixed it for me. It doesn't have to be -1, just a negative number..

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

79160325

Date: 2024-11-05 18:41:07
Score: 1.5
Natty:
Report link

It is 600 requests (combined from list below) per second per account per region

To Quote official doc:

The AWS STS service has a default request quota of 600 requests per second per account, per region. This quota is shared across the following STS requests that are made using AWS credentials: AssumeRole, DecodeAuthorizationMessage, GetAccessKeyInfo, GetCallerIdentity, GetFederationToken, GetSessionToken

Source: AWS STS Quota

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

79160312

Date: 2024-11-05 18:37:07
Score: 0.5
Natty:
Report link

so if you are using angular 18 or above version then use below changes in app.config.ts file

providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideHttpClient()]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sarad Vishwakama

79160304

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

Alright. I've got this working now.

I posted this comment on reddit also and had someone give me a bit of advice that I needed to hear.

"You don't use venv between computers, you should always recreate it."

I've always added my virtual environments to my github repos and apparetnly this isn't common practice for obvious reasons that I have been running into.

So I added my venv into the .gitignore file, and I created a bash script to setup the environment.

Turns out this was a noob issue.

Reasons:
  • Blacklisted phrase (0.5): I need
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Skymero

79160303

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

avcodec_ functions return -12 value when the AVERROR_INVALIDDATA error is encountered. Therefore, you don't use the AV_CODEC_ID_ASS to open the context for the libass subtitle, but the AV_CODEC_ID_MOV_TEXT identifier is used instead. The mov_text codec seems incompatible with the graphical subtitle format you feed to it.

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

79160300

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

I worked around it by:

yum remove texlive-latex
cd R-4.4.2
./configure
make

As you see, this essentially disable PDF and Tex builds.

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

79160299

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

As refered to here :https://github.com/cetz-package/cetz/issues/740#issuecomment-2457796488

You can use a content frame to scale a circle or rectangle around text :

#import "@preview/cetz:0.3.1"

#cetz.canvas({
  import cetz.draw: *
  content(
    (0, 0),
    [cont],
    fill: rgb(50, 50, 255, 100),
    stroke: rgb("#000000"),
    frame: "circle",
    padding: 5pt,
  )
})
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28149662

79160297

Date: 2024-11-05 18:33:05
Score: 4.5
Natty: 5
Report link

Use some library for this, https://github.com/asmyshlyaev177/state-in-url for example.

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

79160283

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

try:

$excel = New-object -ComObject excel.application
$workbook = $excel.WorkBooks.Open("filepath")
$Workbook.Parent.Calculation = -4135
...
...
#Turn recalculate back on
$Workbook.Parent.Calculation = 1

This works if you have Excel installed

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jeffrey L Prochaska

79160281

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

You can update this property using the Fields API

{
  "properties": {
    "useI18NFormat": true
  }
}

Will reflect as this change in the UI Field Settings: enter image description here

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

79160268

Date: 2024-11-05 18:21:02
Score: 0.5
Natty:
Report link

An even simpler solution is to use WHERE to filter out all NULL from VALUE:

SELECT USER_ID, VALUE, RANK() OVER(ORDER BY VALUE DESC) FROM yourtable
WHERE VALUE IS NOT NULL
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: NoKryst13

79160258

Date: 2024-11-05 18:18:01
Score: 2.5
Natty:
Report link

In my case, the functions were not showing up because a global variable initialization (in Python) was trying to access a secret that was missing in the production vault (and available in the test vault).

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

79160253

Date: 2024-11-05 18:15:01
Score: 1.5
Natty:
Report link

In simple terms as said by @Easwar Chinraj

The delta touch activity over UI elements of the screen can simply be fixed by the following code

 if (EventSystem.current.currentSelectedGameObject == null)
 {
   // means the delta touch is not over ant UI controls(like buttons, joysticks, sliders)
   // your code for delta pointer movement
}

else Debug.Log(" pointer over this control "+ EventSystem.current.currentSelectedGameObject);

This works like a charm in mobile

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Easwar
  • Low reputation (1):
Posted by: chandrasekaran Natarajan

79160246

Date: 2024-11-05 18:13:00
Score: 1.5
Natty:
Report link

theres also another feature that would be very useful in MARS 4.5 software. the horizontal-scroll feature, which is exclusively for laptops and it works with trackpad.

in the current MARS 4.5 or MARS 4.5.1 (the one im using), if the user puts 2 fingers together on the trackpad and swipes them up or down, the "edit" tab in the MARS software scrolls up or down. however, sometimes we need to scroll sideways (horizontally) too (for example if you are reading or writing a long comment). horizontal-scroll would work with almost the same principle: put 2 fingers together on the trackpad, but swipe left or right instead of up and down. edit tab should scroll left or right, but in the current version it still scrolls up or down, despite swiping left or right.

many softwares have side-scroll feature. and in my case it would be really useful and time-saving.

if anyone has a version of MARS that includes horizontal-scroll, please comment a github link! thank you and take care.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ლუკა გოგოხია

79160237

Date: 2024-11-05 18:09:59
Score: 1.5
Natty:
Report link

I just tested the delta API and hit a 20 user limit as well for this one:

https://graph.microsoft.com/v1.0/groups/delta?$expand=member
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user26830288

79160220

Date: 2024-11-05 18:02:58
Score: 2.5
Natty:
Report link

What worked for me was simply navigating to the directory containing the Program.cs file, and running the NuGet installation package command.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Jibril

79160207

Date: 2024-11-05 17:57:56
Score: 3
Natty:
Report link

Thanks @kriegaex!

But I think this is getting too convoluted. I tried various things:

  1. @Around("execution(* createGame*(..))") This was recognized but it threw an error because it found the controller method, not the service

  2. @Around("execution(* com.phil.cardgame.service.GameService.createGame*(..))") This worked

  3. @Around("crap") This should have thrown an exception "Pointcut is not well-formed...", but didn't and obviously the aspect was not called.

  4. @Around("execution(* com.phil.cardgame.service.GameService.createGame())") This was the original which didn't work, but now it does work.

So it seems this is some subtle intermittent thing which I believe is not worth further attention. I have gotten AOP working in other applications, so I won't waste your or my time on this. Thanks very much for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @kriegaex
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: philb

79160204

Date: 2024-11-05 17:56:56
Score: 0.5
Natty:
Report link

The arrow pointing to the "LOCAL" file doesn’t make sense in the context of Git. Meld was originally designed as a file comparison tool rather than specifically for conflict resolution in version control. The files on the left and right are literally files – likely temporary files created by Git specifically for loading them into the left and right panes in Meld. The middle pane holds the "BASE" version of the file, which is the common ancestor of both changes.

The author needs to build the final version of the file in the center, using the insertions from the left (LOCAL) and right (REMOTE) panes. Modifying the LOCAL and REMOTE files themselves doesn’t make sense because they are temporary files, which will presumably be deleted after the merge process is completed.

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

79160197

Date: 2024-11-05 17:54:55
Score: 2.5
Natty:
Report link

This could be the result of a few problems. First of all, this implies that your python language server does not have the packages installed. You said that when you reinstalled the packages it said they are already installed, therefore I assume your code looks for the wrong python version.

If you used a virtual environment (like venv for example) to setup your installed packages, then you probably need to activate it (run the activate script in the terminal you want to run your python code. On Windows its a .bat file, on Linux you can do source .../activate)

If you did not use a virtual environement, there can be multiple versions of python installed. Figure out which one you use when you install the packages and try to run your program with this version directly. Also, if your code is from a jupyter notebook, see if you selected the right python kernel.

Finally, you didn't say whether you tried running the problem. Did you get an error? If the program works just fine, then only the language server has a problem and it might be an issue with the IDE.

I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • RegEx Blacklisted phrase (3): Did you get an
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Znerual

79160142

Date: 2024-11-05 17:37:51
Score: 3
Natty:
Report link

I have seen a very good article where everything is explained with java sample code. link

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

79160133

Date: 2024-11-05 17:34:50
Score: 2
Natty:
Report link
newAverage * (numberOfGrades + 1) - oldAverage * numberOfGrades
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sanja

79160124

Date: 2024-11-05 17:29:48
Score: 0.5
Natty:
Report link

https://learn.microsoft.com/en-us/dotnet/api/system.data.entity.infrastructure.dbupdateconcurrencyexception?view=entity-framework-6.2.0 The above documentation states: "Exception thrown by DbContext when it was expected that SaveChanges for an entity would result in a database update but in fact no rows in the database were affected. This usually indicates that the database has been concurrently updated such that a concurrency token that was expected to match did not actually match."

Entity Framework contexts are not thread safe. Seeing as the above is running in a task, I would make sure the actual EF Core operations are happening in a thread safe manner.

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

79160119

Date: 2024-11-05 17:28:48
Score: 1
Natty:
Report link

Solution I found

connection.add_global_handler('namreply', on_names)
connection.add_global_handler('endofnames', on_names)

To get all events from twitch

connection.add_global_handler('all_events', on_any_event)

def on_any_event(connection, event):
    logging.info(f"Event received: {event.type} - Arguments: {event.arguments})
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Oliver Conway

79160115

Date: 2024-11-05 17:27:48
Score: 0.5
Natty:
Report link

This is because the content overflows from the card and user can hover on them in order to fix it add overflow: hidden; to your card like this:

.card {
  overflow: hidden;
}

This makes sure that the content that overflows are hidden and user can't hover on them.

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

79160106

Date: 2024-11-05 17:25:47
Score: 2.5
Natty:
Report link

I'm posting this, but @jasonharper provided the answer. The solution to my problem was to subclass collections.UserList rather than list. All of its methods generate objects of the same class. Works perfectly.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jasonharper
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Steven Dickinson

79160096

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

The types HTMLAttributes and Component are not documented on the Vue.js website. Instead, they are defined only in the files runtime-dom.d.ts and runtime-core.d.ts, so the only way to read them is by directly checking those files.

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

79160089

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

I can't even pass through first test objective. Everytime getting HTML error. Even on empty page with three default tags and one button( Even html example pubished in their instruction is failing while upload.

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

79160086

Date: 2024-11-05 17:20:46
Score: 0.5
Natty:
Report link

Thanks to Athanasios Karagiannis

My codes run well to export RDLC to PDF!

// dump PDF to browser
Warning[] warnings;
string[] streamids;
string mimeType, encoding, extension;
byte[] bytes = ReportViewer.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamids, out warnings);
Response.Buffer = true;
Response.Clear();
Response.ContentType = mimeType;
Response.AddHeader("content-disposition", "inline; filename=myfile." + extension);
Response.BinaryWrite(bytes);
string pdfPath = Server.MapPath("~") + "pdf." + extension;
FileStream pdfFile = new FileStream(pdfPath, FileMode.Create);
pdfFile.Write(bytes, 0, bytes.Length);
pdfFile.Close();
Response.Flush();
Response.End();
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Codaqua

79160081

Date: 2024-11-05 17:19:45
Score: 4.5
Natty:
Report link

Thank you, the javascript solution works.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: askbloopink

79160078

Date: 2024-11-05 17:17:45
Score: 1
Natty:
Report link

The %c modifier is typically used in case of character, in case you want to fetch just a single character.

%s is used to fetch a string or group of characters Lets for the sake of ease of understanding, We take 2 string of character type arrays.

One of the array of string type char str[] will hold the original string.

The second array which hold the substring which the user input to check from their end if the substring exists or not.

Also lets declare a flag variable "found" of type int as boolean types are not part of C.

The code is attached in image format as per your reference. Click on the link

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

79160065

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

This is the first response on a google search on how to confirm that a string is valid css. So that's a pretty good answer. :) I would add rem and em to the regex. (\d*)(px|%|em|rem).

And depending on the situation, might want to check that \d is greater than or equal to 0, unless you want people to be able to say that something is -100px wide or something. And allow either '0' or 0.,

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

79160063

Date: 2024-11-05 17:12:42
Score: 6 🚩
Natty:
Report link

Please watch this video, it will solve your issue

https://www.youtube.com/watch?v=K9zFoVWgs2M

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Digital NexGen

79160053

Date: 2024-11-05 17:09:41
Score: 2.5
Natty:
Report link

The TouchAction class in Appium was deprecated with Appium 2.0. Instead of using TouchAction for touch gestures like scrolling, swiping, or tapping, Appium now encourages the use of the W3C Actions API.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joseph Cole-Showers

79160047

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

I am wondering about the same thing when I got stuck on the same problem recently.

As far as I have researched. Without a timeout, if one file takes too long to download (due to network issues, slow server response, or file size), then in the meantime new download cascades over the previous one because files are downloading on a single thread because of JS nature which only makes the last file to get downloaded.

and when we add a timeout in between downloading the files, then Javascript consider that as a separate task.

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

79160037

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

I've seen in this video that mocking automapper its not a good approach: https://www.youtube.com/watch?v=RsnEZdc3MrE

Instead, you can use a Mapper creator and return your real application mapper.

In the test project:

//this is going to return your real mapper    
var mapper = MapperBuilder.Create();

--

public static class MapperBuilder
{
    public static IMapper Create()
    {
        return new AutoMapper.MapperConfiguration(options =>
        {
            options.AddProfile(new MyRealMapper());
        }).CreateMapper();
    }
}

In your Application project:

public class MyRealMapper : Profile
{
    public MyRealMapper()
    {
        RequestToDomain();
        DomainToResponse();
    }

    private void DomainToResponse()
    {
        CreateMap<User, ResponseUserCreateJson>();
        CreateMap<User, ResponseUserChangePasswordJson>();
    }

    private void RequestToDomain()
    {
        CreateMap<RequestUserCreateJson, User>()
            .ForMember(u => u.Password, config => config.Ignore());
    }
}
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dama-dev

79160032

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

Create own decorator @IsNotEmpty() which run @IsNotEmpty() only in some conditions, some check to what classe is ttached

Some thing like

import { IsNotEmpty as LibraryIsNotEmpty } from '...';

const IsNotEmpty = (target) => {
  if (some condition may be some check on target) {
    return LibraryIsNotEmpty(target) // call original decorator
  }
}

class User {
  @IsNotEmpty() // custom decorator
  username: string;
}

I don't need IsNotEmpty decorator when updating

From Nestjs for example

By default, all of these fields are required. To create a type with the same fields, but with each one optional, use PartialType() passing the class reference (CreateCatDto) as an argument:

export class UpdateCatDto extends PartialType(CreateCatDto) {}

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

79160025

Date: 2024-11-05 17:03:39
Score: 1
Natty:
Report link

from pyspark.sql.functions import col

it'll allow you to do column operations.

df.filter(col("Age") > 30)
.show()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ali BOUHLEL