79366302

Date: 2025-01-17 23:15:21
Score: 0.5
Natty:
Report link

why is there a compatibility issue?

Loki4j v1.6.0 requires Logback v1.4.x. If I remember correctly, ILoggingEvent.getNanoseconds() was introduced back in Logback v1.3.0. So your project is probably using Logback v1.2.3. That's why you have compatibility issue.

You can either force Maven to use Logback v1.4.x, or downgrade Loki4j to version that supports Logback v1.2.x (see compatibility matrix).

Also please note that recent versions of Loki4j support JSON layout natively, so you don't have to specify message pattern like this.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): why is the
  • Low reputation (0.5):
Posted by: nehaev

79366300

Date: 2025-01-17 23:14:21
Score: 1
Natty:
Report link

Adding to the discussion, here are those tests in the linked page reproduced with some minor changes to see if anything has changed since that original post was made almost 8 years ago and python and many of its libraries have upgraded quite a bit since then. According to python.org the newest version of python available at the time of his post was 3.6 .

Here is the source code, copied from the linked page and updated to be runnable as posted here, plus a few minor changes for convenience.

import pandas
import matplotlib.pyplot as plt
import seaborn
import numpy

import sys
import time

NUMBER_OF_ITERATIONS = 10
FIGURE_NUMBER = 0

def bench_sub(mode1_inputs: list, mode1_statement: str, mode2_inputs: list, mode2_statement: str) -> tuple[bool, list[float], list[float]]:

    mode1_results = []
    mode1_times = []
    mode2_results = []
    mode2_times = []

    for inputs, statementi, results, times in (
            (mode1_inputs, mode1_statement, mode1_results, mode1_times),
            (mode2_inputs, mode2_statement, mode2_results, mode2_times)
    ):
        for inputi in inputs:
            ast = compile(statementi, '<string>', 'exec')
            ast_locals = {'data': inputi}
            start_time = time.perf_counter_ns()
            for _ in range(NUMBER_OF_ITERATIONS):
                exec(ast, locals=ast_locals)
            end_time = time.perf_counter_ns()

            results.append(ast_locals['res'])
            times.append((end_time - start_time) / 10 ** 9 / NUMBER_OF_ITERATIONS)

    passing = True
    for results1, results2 in zip(mode1_results, mode2_results):
        if not passing:
            break
        try:
            if type(results1) in [pandas.Series, numpy.ndarray] and type(results2) in [pandas.Series, numpy.ndarray]:
                if type(results1[0]) is str:
                    isclose = set(results1) == set(results2)
                else:
                    isclose = numpy.isclose(results1, results2).all()
            else:
                isclose = numpy.isclose(results1, results2)
            if not isclose:
                passing = False
                break
        except (ValueError, TypeError):
            print(type(results1))
            print(results1)
            print(type(results2))
            print(results2)
            raise
    return passing, mode1_times, mode2_times

def bench_sub_plot(mode1_inputs: list, mode1_statement: str, mode2_inputs: list, mode2_statement: str, title: str, label1: str, label2: str, save_fig: bool = True) -> tuple[bool, list[float], list[float]]:
    passing, mode1_times, mode2_times = bench_sub(mode1_inputs, mode1_statement, mode2_inputs, mode2_statement)

    fig, ax = plt.subplots(2, dpi=100, figsize=(8, 6))
    mode1_x = [len(x) for x in mode1_inputs]
    mode2_x = [len(x) for x in mode2_inputs]

    ax[0].plot(mode1_x, mode1_times, marker='o', markerfacecolor='none', label=label1)
    ax[0].plot(mode2_x, mode2_times, marker='^', markerfacecolor='none', label=label2)
    ax[0].set_xscale('log')
    ax[0].set_yscale('log')
    ax[0].legend()
    ax[0].set_title(title + f' : {"PASS" if passing else "FAIL"}')
    ax[0].set_xlabel('Number of records')
    ax[0].set_ylabel('Time [s]')

    if mode1_x == mode2_x:
        mode_comp = [x / y for x, y in zip(mode1_times, mode2_times)]
        ax[1].plot(mode1_x, mode_comp, marker='o', markerfacecolor='none', label=f'{label1} / {label2}')
        ax[1].plot([min(mode1_x), max(mode1_x)], [1.0, 1.0], linestyle='dashed', color='#AAAAAA', label='parity')
        ax[1].set_xscale('log')
        ax[1].legend()
        ax[1].set_title(title + f' (ratio)\nValues <1 indicate {label1} is faster than {label2}')
        ax[1].set_xlabel('Number of records')
        ax[1].set_ylabel(f'{label1} / {label2}')
    plt.tight_layout()
    # plt.show()

    if save_fig:
        global FIGURE_NUMBER
        # https://stackoverflow.com/a/295152
        clean_title = ''.join([x for x in title if (x.isalnum() or x in '_-. ')])
        fig.savefig(f'outputs/{FIGURE_NUMBER:06}_{clean_title}.png')
        FIGURE_NUMBER += 1

    return passing, mode1_times, mode2_times

def _print_result_comparison(success: bool, times1: list[float], times2: list[float], input_lengths: list[int], title: str, label1: str, label2: str):
    print(title)
    print(f'  Test result: {"PASS" if success else "FAIL"}')
    field_width = 15
    print(f'{"# of records":>{field_width}} {label1 + " [ms]":>{field_width}} {label2 + " [ms]":>{field_width}} {"ratio":>{field_width}}')
    for input_length, time1, time2 in zip(input_lengths, times1, times2):
        print(f'{input_length:>{field_width}} {time1 * 1000:>{field_width}.03f} {time2 * 1000:>{field_width}.03f} {time1 / time2:>{field_width}.03f}')
    print()

def bench_sub_plot_print(mode1_inputs: list, mode1_statement: str, mode2_inputs: list, mode2_statement: str, title: str, label1: str, label2: str, all_lengths: list[int], save_fig: bool = True) -> tuple[bool, list[float], list[float]]:
    success, times1, times2 = bench_sub_plot(
        mode1_inputs,
        mode1_statement,
        mode2_inputs,
        mode2_statement,
        title,
        label1,
        label2,
        True
    )
    _print_result_comparison(success, times1, times2, all_lengths, title, label1, label2)
    return success, times1, times2


def _main():

    start_time = time.perf_counter_ns()

    # In [2]:
    iris = seaborn.load_dataset('iris')


    # In [3]:
    data_pandas: list[pandas.DataFrame] = []
    data_numpy: list[numpy.rec.recarray] = []
    all_lengths = [10_000, 100_000, 500_000, 1_000_000, 5_000_000, 10_000_000, 15_000_000]
    # all_lengths = [10_000, 100_000, 500_000] #, 1_000_000, 5_000_000, 10_000_000, 15_000_000]
    for total_len in all_lengths:
        data_pandas_i = pandas.concat([iris] * (total_len // len(iris)))
        data_pandas_i = pandas.concat([data_pandas_i, iris[:total_len - len(data_pandas_i)]])
        data_pandas.append(data_pandas_i)
        data_numpy.append(data_pandas_i.to_records())

    # In [4]:
    print('Input sizes [count]:')
    print(f'{"#":>4} {"pandas":>9} {"numpy":>9}')
    for i, (data_pandas_i, data_numpy_i) in enumerate(zip(data_pandas, data_numpy)):
        print(f'{i:>4} {len(data_pandas_i):>9} {len(data_numpy_i):>9}')
    print()

    # In [5]:
    mb_size_in_bytes = 1024 * 1024
    print('Data sizes [MB]:')
    print(f'{"#":>4} {"pandas":>9} {"numpy":>9}')
    for i, (data_pandas_i, data_numpy_i) in enumerate(zip(data_pandas, data_numpy)):
        print(f'{i:>4} {int(sys.getsizeof(data_pandas_i) / mb_size_in_bytes):>9} {int(sys.getsizeof(data_numpy_i) / mb_size_in_bytes):>9}')
    print()

    # In [6]:
    print(data_pandas[0].head())
    print()

    # In [7]:
    # ...

    # In [8]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = data.loc[:, "sepal_length"].mean()',
        data_numpy,
        'res = numpy.mean(data.sepal_length)',
        'Mean on Unfiltered Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    # In [9]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = numpy.log(data.loc[:, "sepal_length"])',
        data_numpy,
        'res = numpy.log(data.sepal_length)',
        'Vectorised log on Unfiltered Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    # In [10]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = data.loc[:, "species"].unique()',
        data_numpy,
        'res = numpy.unique(data.species)',
        'Unique on Unfiltered String Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    # In [11]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = data.loc[(data.sepal_width > 3) & (data.petal_length < 1.5), "sepal_length"].mean()',
        data_numpy,
        'res = numpy.mean(data[(data.sepal_width > 3) & (data.petal_length < 1.5)].sepal_length)',
        'Mean on Filtered Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    # In [12]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = numpy.log(data.loc[(data.sepal_width > 3) & (data.petal_length < 1.5), "sepal_length"])',
        data_numpy,
        'res = numpy.log(data[(data.sepal_width > 3) & (data.petal_length < 1.5)].sepal_length)',
        'Vectorised log on Filtered Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    # In [13]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = data[data.species == "setosa"].sepal_length.mean()',
        data_numpy,
        'res = numpy.mean(data[data.species == "setosa"].sepal_length)',
        'Mean on (String) Filtered Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    # In [14]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = data.petal_length * data.sepal_length + data.petal_width * data.sepal_width',
        data_numpy,
        'res = data.petal_length * data.sepal_length + data.petal_width * data.sepal_width',
        'Vectorized Math on Unfiltered Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    # In [16]:
    success, times_pandas, times_numpy = bench_sub_plot_print(
        data_pandas,
        'res = data.loc[data.sepal_width * data.petal_length > data.sepal_length, "sepal_length"].mean()',
        data_numpy,
        'res = numpy.mean(data[data.sepal_width * data.petal_length > data.sepal_length].sepal_length)',
        'Vectorized Math in Filtering Column',
        'pandas',
        'numpy',
        all_lengths,
        True
    )

    end_time = time.perf_counter_ns()
    print(f'Total run time: {(end_time - start_time) / 10 ** 9:.3f} s')

if __name__ == '__main__':
    _main()

Here is the console output it generates:

Input sizes [count]:
   #    pandas     numpy
   0     10000     10000
   1    100000    100000
   2    500000    500000
   3   1000000   1000000
   4   5000000   5000000
   5  10000000  10000000
   6  15000000  15000000

Data sizes [MB]:
   #    pandas     numpy
   0         0         0
   1         9         4
   2        46        22
   3        92        45
   4       464       228
   5       928       457
   6      1392       686

   sepal_length  sepal_width  petal_length  petal_width species
0           5.1          3.5           1.4          0.2  setosa
1           4.9          3.0           1.4          0.2  setosa
2           4.7          3.2           1.3          0.2  setosa
3           4.6          3.1           1.5          0.2  setosa
4           5.0          3.6           1.4          0.2  setosa

Mean on Unfiltered Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.061           0.033           1.855
         100000           0.160           0.148           1.081
         500000           0.653           1.074           0.608
        1000000           1.512           2.440           0.620
        5000000          11.633          12.558           0.926
       10000000          23.954          25.360           0.945
       15000000          35.362          40.108           0.882

Vectorised log on Unfiltered Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.124           0.056           2.190
         100000           0.507           0.493           1.029
         500000           3.399           3.441           0.988
        1000000           5.396           6.867           0.786
        5000000          27.187          38.121           0.713
       10000000          55.497          72.609           0.764
       15000000          88.406         112.199           0.788

Unique on Unfiltered String Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.332           1.742           0.191
         100000           2.885          21.833           0.132
         500000          14.769         125.961           0.117
        1000000          29.687         264.521           0.112
        5000000         147.359        1501.378           0.098
       10000000         295.118        3132.478           0.094
       15000000         444.365        4882.316           0.091

Mean on Filtered Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.355           0.130           2.719
         100000           0.522           0.672           0.777
         500000           1.797           4.824           0.372
        1000000           4.602          10.827           0.425
        5000000          22.116          57.945           0.382
       10000000          43.076         116.028           0.371
       15000000          68.893         177.658           0.388

Vectorised log on Filtered Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.361           0.128           2.821
         100000           0.576           0.758           0.760
         500000           2.066           5.199           0.397
        1000000           5.259          11.523           0.456
        5000000          22.785          59.581           0.382
       10000000          47.527         121.882           0.390
       15000000          75.080         187.954           0.399

Mean on (String) Filtered Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.636           0.192           3.304
         100000           4.068           1.743           2.334
         500000          20.954           9.306           2.252
        1000000          41.938          18.522           2.264
        5000000         217.254          97.929           2.218
       10000000         434.242         197.289           2.201
       15000000         657.205         297.919           2.206

Vectorized Math on Unfiltered Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.168           0.049           3.415
         100000           0.385           0.338           1.140
         500000           3.193           5.018           0.636
        1000000           6.028           9.539           0.632
        5000000          32.640          48.235           0.677
       10000000          69.748          99.893           0.698
       15000000         107.528         159.040           0.676

Vectorized Math in Filtering Column
  Test result: PASS
   # of records     pandas [ms]      numpy [ms]           ratio
          10000           0.350           0.234           1.500
         100000           0.926           2.494           0.371
         500000           6.093          15.007           0.406
        1000000          12.641          30.021           0.421
        5000000          71.714         163.060           0.440
       10000000         145.373         326.206           0.446
       15000000         227.817         490.991           0.464

Total run time: 183.198 s

And here are the plots it generated:

mean on unfiltered column


vectorised log on unfiltered column


unique on unfiltered string column


mean on filtered column


vectorised log on filtered column


mean on string filtered column


vectorised math on unfiltered column


vectorised math in filtering column


These results were generated with Windows 10, Python 3.13, on i9-10900K, and never got close to running out of memory so swap should not be a factor.

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

79366295

Date: 2025-01-17 23:11:20
Score: 2.5
Natty:
Report link

In my case my Docker Hub personal access token was read only. Changed to read/write and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Justin Ward

79366287

Date: 2025-01-17 23:08:19
Score: 0.5
Natty:
Report link

Next.js 15 introduced changes to ESLint configuration, which can cause issues with VS Code integration. To simplify the setup and ensure ESLint and Prettier work correctly, I created a CLI that automates everything.

🔗 NPM: https://www.npmjs.com/package/eslint-prettier-next-15 💻 GitHub: https://github.com/danielalves96/eslint-prettier-next-15

You can install and run it, and it will configure everything properly. Plus, you can customize the setup as needed. Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: Daniel Luiz Alves

79366281

Date: 2025-01-17 23:03:18
Score: 4.5
Natty:
Report link

I wondering what if the endpoint only accept form-data I cannot parse to JSON.

I've seen an issue in NextJS when I have enabled telemetry. For some reason formData has not been sent.

If someone knows more about it please share your comments.

The only way that I made it work is adding.

But I prefer to do not ignore it.

opentelemetry: { ignore: true, },

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (2.5): please share your
  • No code block (0.5):
  • Low reputation (1):
Posted by: Roberto Armas

79366278

Date: 2025-01-17 23:00:17
Score: 2
Natty:
Report link

Been a while since I asked this but while I'm here, I'll just drop the solution I discovered here in case any one else ends up stuck.

After upgrading Gradle used with my old project, I no longer had the issue any more so I'm guessing it was just incompatible with the latest Android SDK.

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

79366263

Date: 2025-01-17 22:49:15
Score: 1
Natty:
Report link

Byte-level BPE (BBPE) utilizes UTF-8 to encode every characters into 1 to 4 bytes. To ensure base vocab size is 256 (which is 1 byte), BBPE only use 1 byte per token. So in case a character requires 2 or more bytes to represent, BBPE breaks down those bytes into individual tokens (which means 1 character is transformed into 2, 3 or 4 different tokens).

For example, the UTF-8 code of character "の" is E3 81 AE (3 bytes), so in BBPE, "の" is written as 3 different tokens: E3, 81, and AE.

(Note that these 3 tokens are individual to each other, and may not pair up again in BPE merging step)

BBPE tokenizer may cause the tokenized text to be up to 4x longer than that in BPE tokenizer (when every characters are 4 bytes in UTF-8), but it's a trade-off to keep the vocab size to as low as 256.

The above example is taken from Figure 1 of the original paper of Byte-level Text Representation.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dinh Thai Son Le

79366258

Date: 2025-01-17 22:45:14
Score: 2
Natty:
Report link

In this topic of Dockers by the Github community, it is a must to have file location of your pid file, router.db, logs, crash folder etc. into your home directory, you may change the file location of your pid file by kubectl plugins to avoid denied permission.

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

79366257

Date: 2025-01-17 22:44:14
Score: 4
Natty: 4
Report link

I think this is the best option for react.js

Building an Infinite Scroll FlatList Component in ReactJS: A Comprehensive Guide

https://medium.com/@sazzadur/building-an-infinite-scroll-flatlist-component-in-reactjs-a-comprehensive-guide-3f25c0ec203b

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sergio Florentino

79366253

Date: 2025-01-17 22:43:13
Score: 2
Natty:
Report link

This issue related to a missing environment variable. Kindly review the configuration map and ensure that the environment variable is properly set within it. example : username=XYZ. Once this is completed, you may verify.

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

79366252

Date: 2025-01-17 22:42:13
Score: 2
Natty:
Report link

Try getting rid of the .local in your query:

Resolve-DnsName test1
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: BlueBlur22

79366251

Date: 2025-01-17 22:38:12
Score: 2
Natty:
Report link

Needed this myself and couldn't find an answer. This is working for me.

[POST] https://dev.azure.com/{organisation}/_apis/Contribution/HierarchyQuery?api-version=5.0-preview.1

body: { "contributionIds": ["ms.vss-test-web.testcase-results-data-provider"], "dataProviderContext": { "properties": { "testCaseId":{test_case_id}, "sourcePage": { "routeValues": { "project":"{project_name}" } } } } }

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

79366239

Date: 2025-01-17 22:30:10
Score: 1
Natty:
Report link

These are the commands that I've been using. Not sure if I'm doing this right though.

apt install -y acpica-tools
acpidump > acpidump.out
acpixtract -a acpidump.out
iasl -d dsdt.dat
OEM_ID=$(grep "OEM ID" dsdt.dsl | tail -n 1 | awk -F'"' '{print $2}' | cut -c1-4)
sed -i "s/'<WOOT>'/'$OEM_ID'/g" /opt/CAPEv2/installer/kvm-qemu.sh
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user29249289

79366237

Date: 2025-01-17 22:29:10
Score: 2
Natty:
Report link

This is a old question but it keeps coming up in searches. For a more up-to-date wireshark BLE 5.x sniffer, look at https://github.com/nccgroup/Sniffle It needs firmware reflashed onto various TI chipset developer boards but captures can be done directly from wireshark. Many of the Nordic and older sniffers were never updated beyond BLE 4.x TI also has a sniffer of their own for some boards, but it wasn't updated for BLE 5.x

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

79366235

Date: 2025-01-17 22:27:09
Score: 11.5 🚩
Natty: 4
Report link

I get the same error. Were you ever able to resolve the issue? I am running the latest version of Ubuntu.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolve the issue?
  • RegEx Blacklisted phrase (1): I get the same error
  • RegEx Blacklisted phrase (3): Were you ever
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I get the same error
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: gnome

79366222

Date: 2025-01-17 22:16:06
Score: 2
Natty:
Report link

queryPurchasesAsync() will only return non-consumed one-time purchases & active subscriptions. Per this doc queryPurchaseHistory() is deprecated in Billing v7, so it seems the only way to do it in-app is to track the history yourself.

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

79366215

Date: 2025-01-17 22:14:05
Score: 2
Natty:
Report link

The loss should explicitely require a gradient to be evaluated, so I would remove the loss.requires_grad = True line. Also, try to rewrite the first line

def get_pedalboard(self):
    highpass_freq = self.highpass_freq.clamp(20, 500) 

Are you sure the

board = Pedalboard([
            HighpassFilter(cutoff_frequency_hz=float(highpass_freq)),
        ])

works with PyTorch autograd?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Slavensky

79366214

Date: 2025-01-17 22:13:05
Score: 1
Natty:
Report link

I was thinking of something similar, it would be cool to have one of these! It looks like someone else is attempting one and has their frontend set up but maybe not the backend: https://mixtape.dj/

At any rate, before hitting the API, I would probably start by breaking the audio master into phrases. As you likely know almost all mixable tracks are in 4/4 time. Furthermore, most DJs will mix in phrasing blocks, so this would serve as a good segmentation point as per (1). Looks like these guys have built some functionality for doing this: https://github.com/mixxxdj/mixxx/wiki/ Might have to just mine the srcs looks like it's mostly compiled stuff.

The main issue I can see Shazam running into is deciphering songs during long blends. If you can figure out some way to identify which phrases are blends and remove them from the search area you'll be laughing. Fast cuts should be easy to do with FFT or even echoprint (https://github.com/spotify/echoprint-codegen) just look for a sudden change in the spectrum/print.

Once you've done that, you should have boundary points for the start of each new track. Then you can just feed tracks 1 x 1 into Shazam API.

Ultimately, I think the clincher is ID'ing those long blends. Maybe ML is an approach to that? Should be easy to train on by building a script to literally play 2 random songs at once, over and over in a bajillion diff permutations.

Best of luck! I will be curious as to how this works out :)

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: bashonabike

79366211

Date: 2025-01-17 22:12:04
Score: 6.5 🚩
Natty: 4.5
Report link

https://youtu.be/EPtY-mLpdfM?si=6W48WciTPws7bnXa

Same conding help please.

My mail - [email protected]

Reasons:
  • Blacklisted phrase (1): youtu.be
  • RegEx Blacklisted phrase (1.5): help please
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: PRATIK SARKER

79366193

Date: 2025-01-17 22:03:01
Score: 2
Natty:
Report link

If you have a way to convert the files to jt-format, you should be able to use the 3d viewer from the Mendix marketplace: https://marketplace.mendix.com/link/component/118345

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

79366191

Date: 2025-01-17 22:02:01
Score: 0.5
Natty:
Report link

I looks like you skip the first datapoint since you write x = data[1:len(data),0] and so forth. As @trincot mentioned, you also have to care about the y[i-1] case for i=0. Maybe the following will help you:

tst = []
x = data[:,0]
y = data[:,1]  
intt = data[:,2]
for i in range(1,len(data)):
   if intt[i]!=0:         
      tst.append((x[i]**2.0+ y[i]-y[i-1])**2.0)
   else:
      break

This includes all data points in x, y, and intt, but the first data point will still be skipped since the loop starts with i=1.

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

79366189

Date: 2025-01-17 22:01:01
Score: 2.5
Natty:
Report link

Improving great answer by @dmackerman a bit (I cannot comment yet) by preventing to delete if there is only one row

HTML:

<form>
    <p class="form_field">
        <label>Name:</label> <input type="text">
        <label>Age:</label> <input type="text">
        <span class="remove">Remove</span>
    </p>
    <p>
        <span class="add">Add fields</span>
    </p>
</form>

and JS:

$(".add").click(function() {
    $("form > p:first-child").clone(true).insertBefore("form > p:last-child");
    return false;
});

$(".remove").click(function() {
     if ($(".form_field").length > 1) {
        $(this).parent().remove();
    }
});
Reasons:
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): cannot comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @dmackerman
  • Low reputation (1):
Posted by: Piotr Pałucki

79366186

Date: 2025-01-17 22:00:00
Score: 1
Natty:
Report link
  1. Make sure you have the ENABLE_TEMPLATE_PROCESSING feature flag enabled.
FEATURE_FLAGS = {
    "ENABLE_TEMPLATE_PROCESSING": True,
}
  1. Make sure pass the urlParam.
urlParams: {
    foo: 'bar',
}
  1. Make sure you use the macro in your dataset
select fld from tbl where fld= '{{ url_param('foo') }}'

Here's some useful documentation:

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

79366172

Date: 2025-01-17 21:51:58
Score: 4
Natty:
Report link

Gosh, missed this entirely. It's just a different kind of option for the action. Hopefully it will help someone else if they come looking for something similar.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Brian Davis

79366162

Date: 2025-01-17 21:44:56
Score: 2
Natty:
Report link

Installing Android Studio after years, After installing the Android Studio Ladybug, the SDK was missing. File -> Setting -> No SDK found.

Used the search option to find SDK and then was able to select a SDK version and continue with SDK Installation.

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

79366159

Date: 2025-01-17 21:43:55
Score: 4.5
Natty:
Report link

I have released a version using comtypes. @mach

https://github.com/tifoji/pyrtdc/

win32com also works using an approach similar to the wrapper suggested by @Aincrad

Reasons:
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @mach
  • User mentioned (0): @Aincrad
  • Low reputation (1):
Posted by: tifoji

79366155

Date: 2025-01-17 21:42:55
Score: 1.5
Natty:
Report link

When you forward external port 81 to internal port 80, then internal Traefik entrypoint needs to be 80.

ports:
  - "81:80"
command:
  - --entrypoints.http.address=:81
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you for
  • Low reputation (0.5):
Posted by: bluepuma77

79366149

Date: 2025-01-17 21:38:54
Score: 1
Natty:
Report link

This issue occurred for me when I used imports/exports like this:

export { test } from './test';  
import { test } from '@/lib';

Having many similar patterns caused the error. Updating the import to:

import { test } from '@/lib/test';  

resolved the problem in my case.

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

79366141

Date: 2025-01-17 21:34:53
Score: 1.5
Natty:
Report link

Just give backgroundColor: 'transparent' style to WebView and magic happens 🥳

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

79366139

Date: 2025-01-17 21:33:53
Score: 2
Natty:
Report link

When you create your Materialized View, you can use a special "AUTO" attribute to signal you want that MV to auto refresh.

Here are some docs: https://docs.aws.amazon.com/redshift/latest/dg/materialized-view-refresh-sql-command.html

Hopefully that helps!

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Alex

79366129

Date: 2025-01-17 21:28:52
Score: 0.5
Natty:
Report link

The stable release of tfx supports Python versions >=3.9,<3.11. It is not compatible with Python 3.11. You can install this package using any of the supported Python versions (3.9 - 3.10). See Compatible versions.

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

79366126

Date: 2025-01-17 21:27:51
Score: 4
Natty:
Report link

Use Data Wrangler Extension for Visual Studio Code

enter image description here

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

79366124

Date: 2025-01-17 21:27:50
Score: 3.5
Natty:
Report link

sudo django-admin startproject myproject1 .

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

79366123

Date: 2025-01-17 21:26:50
Score: 0.5
Natty:
Report link
var now = new Date();
var second = now.getSeconds();
var minute = now.getMinutes();
var hour = now.getHours();

if(second == 0 && [0,5,10,15,20,25,30,35,40,45,50,55,60].filter(x => x == minute).length > 0){
    console.log("ok")
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rahman Qadirzade

79366122

Date: 2025-01-17 21:25:50
Score: 0.5
Natty:
Report link
var now = new Date();
var second = now.getSeconds();
var minute = now.getMinutes();
var hour = now.getHours();

if(second == 0 && [0,5,10,15,20,25,30,35,40,45,50,55,60].filter(x => x == minute).length > 0){
    console.log("ok")
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rahman Qadirzade

79366117

Date: 2025-01-17 21:25:49
Score: 4
Natty:
Report link

Tinkering with the Tabs/Underline/Background is a pretty good alternative, also will work well with test files enter image description here

enter image description here

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

79366107

Date: 2025-01-17 21:18:48
Score: 2
Natty:
Report link

Remove $queryParams = ['limit' => 250]; and stop using ChatGPT if you don't know what you're doing in the first place.

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

79366099

Date: 2025-01-17 21:13:47
Score: 1.5
Natty:
Report link

Found the answer! b is essentially an implicit argument to x so you can set it just like you would for a function:

x' : I a b => a
x' = x { b = b }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: דניאל פ.ח.

79366098

Date: 2025-01-17 21:12:47
Score: 1
Natty:
Report link

I solved this by disabling my antivirus. I noticed all my downloaded files were automatically deleted after installation and my antivirus was the reason.

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

79366096

Date: 2025-01-17 21:10:46
Score: 2
Natty:
Report link

Since Dart 3.7, the formatter uses a new style that can automatically add and remove commas. You no longer have any choice about where to put trailing commas.

So it is automatically correct :)

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

79366086

Date: 2025-01-17 21:04:45
Score: 0.5
Natty:
Report link

I would suggest you use Google Identity Platform (via OAuth 2.0) to authenticate users, but you should not directly call Google’s Identity Platform API from your backend to generate JWT tokens.

Here are the recommended approaches:

Here are some helpful links:

  1. google-auth-library for Node.js

  2. Google OAuth2.0 Documentation

  3. Role-based access controls

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

79366075

Date: 2025-01-17 20:59:44
Score: 1.5
Natty:
Report link

Looks like two such references exist:

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

79366070

Date: 2025-01-17 20:56:43
Score: 1.5
Natty:
Report link

You can use min-h-screen, h-[100vh], or min-h-[100vh] in the layout, and apply flex for dynamic height allocation.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Elif Nur Turk

79366069

Date: 2025-01-17 20:56:43
Score: 3.5
Natty:
Report link

I tried using Advanced Query but it still denied the merge with error: "Expression.Error: A cyclic reference was encountered during evaluation."

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

79366067

Date: 2025-01-17 20:53:43
Score: 1.5
Natty:
Report link

I know this is super old but we just released LeetGPU.com, an online CUDA playground you can use to write and execute CUDA C++ on the web, no GPU required, and for free.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kunal M

79366057

Date: 2025-01-17 20:50:42
Score: 1
Natty:
Report link

‘unistd.h’ is native to POSIX-compliant systems, i’ve heard of a couple equivalents out there, but i think it depends on the functions you’re trying to grab from it, but most of them usually lie in ‘windows.h’

if unistd.h is necessary with no equivalents for your code, the only case it would work is in a POSIX environment, which means anything based in UNIX (a macOS may also be able to do the trick, but keep in mind not every OS is fully compatible with POSIX)

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

79366039

Date: 2025-01-17 20:39:38
Score: 4.5
Natty:
Report link

I made an entire serial reader repo awhile back this repo.

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

79366037

Date: 2025-01-17 20:38:38
Score: 2.5
Natty:
Report link

My Mobile is Vivo V295G Android 15 Iam Installing Eicher DA Lite Plus apk app was installed but ope is not opening and running Whats the issue iwant run that app in my mobile

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

79366018

Date: 2025-01-17 20:26:35
Score: 5
Natty:
Report link

Check this solutions mentioned in this page if they can help you https://medium.com/@ganeshbn21/resolving-log4j2-configuration-issues-after-spring-upgrade-on-jboss-eap-7-3-157d9c75ca49

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user3518428

79366016

Date: 2025-01-17 20:24:34
Score: 1
Natty:
Report link

The issue might be caused by one of the following:

Incomplete or Corrupted Base64 String Ensure the Base64 string is complete and correctly formatted. If it starts with a prefix like data:image/jpeg;base64,, you need to remove this before decoding.

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

79366011

Date: 2025-01-17 20:22:34
Score: 1.5
Natty:
Report link

I am extremely late to the discussion, however the work around I found that worked with Bookstack was to set the Youtube video to unlisted. Then generate embed code, and use.

Then go into Youtube and set video to Private. My embedded video still works, however if the user tries to copy URL and play it outside of my Bookstack Youtube says the video is Private.

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

79366005

Date: 2025-01-17 20:17:33
Score: 1
Natty:
Report link

I think you have to set the Logo URL for the account-console to a URL of your application. e.g. https://my-website.com/logo.png Then the account-console should set the link to https://my-website.com .

If you need more Customizations for Login / Account-Console maybe https://docs.keycloakify.dev/ could help you.

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

79365998

Date: 2025-01-17 20:12:32
Score: 0.5
Natty:
Report link

I have the same problem. I solved it using the Linguist extension. There are a lot of settings there. It has a full-page translation feature. You can choose which translation service to use - Google, Yandex, lingua, and your own custom options. You can set up a shortcut for full-page translation. There is also a selection translation and a bunch of settings. I like this option the most.

Alternatively, you can use some kind of programmable auto clicker. So that when you press some hotkey, it emulates the necessary actions to activate the browser's built-in full-page translation. I used to use an autoclicker before finding an extension.

By the way, you can display the built-in full-page translation button on the Chrome toolbar. So that you don't have to go to the context menu every time. On the new chrome settings page -> scroll from right to left ->Toolbar - here you can display some functions in the toolbar quick access mode.

I like the option with the Linguist extension the most. It is also useful in the Edge browser. This way, you can translate the page, and the browser will be able to read the already translated text by voice. There are other similar extensions. Perhaps some of them are even better.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Whitelisted phrase (-2): I solved
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Low reputation (1):
Posted by: Derian De Grey

79365993

Date: 2025-01-17 20:08:31
Score: 2
Natty:
Report link

Add the HubMethodNameAttribute on your interface method.

public interface IBroadcastHub
{
    [HubMethodName("Hello")]
    Task CurrentTimeAsync(DateTimeOffset time);
}
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Austin

79365992

Date: 2025-01-17 20:08:31
Score: 1.5
Natty:
Report link

What fixed it for me was adding pod 'GoogleUtilities' to the Runner and both pod 'GoogleUtilities' and pod 'GTMSessionFetcher' to my share extension's target.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What fix
  • High reputation (-1):
Posted by: Tal Barda

79365984

Date: 2025-01-17 20:03:30
Score: 2
Natty:
Report link

To resolve this first we need to Open our task manager and then click on Services Tab, as shown in the Image below:

enter image description here

Taskmanager Services tab After clicking on that You will see this Interface:

enter image description here

SERVICES TAB Now scroll-down🖱️ and find the MongoDB in this services Tab:

enter image description here

After finding that where it is written Stopped🛑 right click on that and click start, it will show running🏃🏽‍♂️ as soon as you click on start

enter image description here

Now close the Task Manager and open MongoDB compass Desktop Application and then click on Connect🔗 button, now you will be able to connect to MongoDB compass

Successful connection MongoDB Compass

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: anas behhari

79365983

Date: 2025-01-17 20:03:30
Score: 2
Natty:
Report link

i was able to fix this using read write lock instead of regular spin lock.

since both of the functions are just reading and not writing it makes a lot of sense having the read lock instead.

like usual i learned something after i post it :)

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

79365982

Date: 2025-01-17 20:02:30
Score: 3
Natty:
Report link

Looks like NaN has some trailing or leading empty chars. After removing those empty chars, df.dropna() does remove the line with NaN in it.

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

79365981

Date: 2025-01-17 20:02:30
Score: 2.5
Natty:
Report link

Thank you so much. It took 2days to read your solution. It worked just fine. But when i was using wireless ios device, flutter run seem's not worked to hot reload/restart.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): It worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nguyn Vit H Bun

79365971

Date: 2025-01-17 19:55:27
Score: 8 🚩
Natty:
Report link

If your entity is in the same package then no need to use @EntityScan

reference: @EnableJpaRepositories/@EntityScan annotations mandatory in spring data jpa configuration setup?

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @EntityScan
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Syed

79365968

Date: 2025-01-17 19:53:26
Score: 2
Natty:
Report link

When you send() bytes with your application, TCP completes a segment at the last byte of the send() and sets the PSH flag. This notifies the receiving stack that it should complete the application's recv() early even if it doesn't fill the buffer.

However... receivers who expect a short recv() to mean that was a send() boundary at the sender will flake out unexpectedly when, in practice, that doesn't always turn out to be true.

Reasons:
  • No code block (0.5):
  • Starts with a question (0.5): When you
  • Low reputation (1):
Posted by: Bill

79365956

Date: 2025-01-17 19:49:25
Score: 1
Natty:
Report link

In my case for ttyACM0 the following worked:

sudo chmod a+rw /dev/ttyACM0

Found here. Something to be kept in mind as mentioned in the source is that every time you unplug and replug the device you will need to re-run the command.

This answer is very late but hopefully will help someone.

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

79365946

Date: 2025-01-17 19:45:25
Score: 1.5
Natty:
Report link

(Disclaimer: I'm the developer of the Rlytic app)

A bit late to the party but Rlytic might be of interest to you if you just want to test scripts and show some plots. It works out of the box. It is free and executes the R code on a dedicated server. All generated output files (like plots, etc.) can be downloaded, displayed and shared.

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

79365944

Date: 2025-01-17 19:45:25
Score: 3
Natty:
Report link

"Is there an elegant way to adjust the internal left margin of the Unified toolbar?"

No

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

79365940

Date: 2025-01-17 19:43:24
Score: 1
Natty:
Report link

Joomla comes with a predefined .htaccess file which contains a section about gzipped assets:

RewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]

Not exactly answer, but if I comment the subject line, I have for js files cache-control max-age=31536000 (1 year).

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

79365935

Date: 2025-01-17 19:41:23
Score: 2
Natty:
Report link

Programmatically in Kotlin:

editText.setBackgroundResource(0)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: Matt

79365934

Date: 2025-01-17 19:40:23
Score: 0.5
Natty:
Report link

"How many records should we display...?"

The report should display of the records returned by the query when you have implemented filtering logic that meets the business requirements. You should never arbitrarily truncate results. Which records matter is a decision the user should make.

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

79365931

Date: 2025-01-17 19:39:22
Score: 4
Natty:
Report link

I think I found the answer here, via Microsoft documentation.

https://learn.microsoft.com/en-us/dotnet/api/system.windows.forms.datagridviewcomboboxcolumn?view=windowsdesktop-9.0

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

79365925

Date: 2025-01-17 19:38:21
Score: 1.5
Natty:
Report link

Be careful with HTML Comments with Unclosed Tags.

Go to a Django project and write this line in a template

<!-- {% if context %} -->

What happens is that Django will raise this error:

TemplateSyntaxError: Unclosed tag on line XXX: 'if'. Looking for one of: elif, else, endif.

Wait, what? Why is a comment raising an error? Aren't comments ignored? Well... yes and no.*


Why is this happening?


If you close the tag, no error happens.

<!-- {% if context %} {% endif %} -->


What to do if I want to make a comment with an unclosed tag?

Use Django's Template comments and not html's. Django template's comments are ignored and aren't passed to the browser (the yes part).*

You have two options:

  1. Use comment syntax to comment-out part of a line in a template:
{# {% if context %} #}
  1. Use the comment tag for multiline comment, it ignores everything between them.
{% comment %}  {% if context %} {% endcomment %}
Reasons:
  • Blacklisted phrase (1): What to do if
  • Blacklisted phrase (1): to comment
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (0.5): Why is this
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Guzman Ojero

79365923

Date: 2025-01-17 19:37:21
Score: 0.5
Natty:
Report link

The /blog should work. I recommend you restart VSCode after changing the file name if it doesn't work. Your params is "slugs", not "slug". And you console.log params object, so that shows the value in console, but HTML pointed wrong variable as params.slug. It should be params.slugs

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

79365918

Date: 2025-01-17 19:33:19
Score: 8.5 🚩
Natty:
Report link

Can you show the client code? The error is on the requester?

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

79365896

Date: 2025-01-17 19:23:17
Score: 1
Natty:
Report link

There is an alternative answer to @Eddie Bergman that recives a dict instead of named parameters. Using .create with a dict still keeps auto completion.

from typing import TypedDict

class MyDict(TypedDict):
    a: str
    b: int
    c: list[float]

    @staticmethod
    def default_values() -> 'MyDict':
        return {
            "a": "",
            "b": 0,
            "c": [],
        }

    @staticmethod
    def create(values: 'MyDict') -> 'MyDict':
        instance = MyDict.default_values()
        instance.update(values)
        return instance

my_variable = MyDict.create({"a": "Hello World"})
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @Eddie
  • Low reputation (1):
Posted by: VictorG-028

79365887

Date: 2025-01-17 19:18:16
Score: 2.5
Natty:
Report link

Turn off AOT (Ahead of Time). If you check on AOT in your applicaion (.NET core) just forget about serialisation.

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

79365886

Date: 2025-01-17 19:18:15
Score: 6.5 🚩
Natty: 5.5
Report link

Child can browse different games for hours... Watching demos... no limits...How to fix that?

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix that?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Oleh Sukhyy

79365880

Date: 2025-01-17 19:16:14
Score: 2
Natty:
Report link

I wanted the functionality of hovering over points, not the line. I was able to access the scatterPlotItem inside the PlotDataItem by using

plot_item.scatter.opts.update(hoverable=True)

I used info from here to make the change: https://github.com/pyqtgraph/pyqtgraph/discussions/2538

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

79365879

Date: 2025-01-17 19:16:14
Score: 2.5
Natty:
Report link

rank deficient so dropping 5 columns / coefficients was solved by not categorizing the Age predictor and reading it as a numeric value and not as a factor, whereas the rank deficient was solved by removing ZoneID from the model because there is no variation.

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

79365877

Date: 2025-01-17 19:15:14
Score: 0.5
Natty:
Report link

For me it was resolved by updating both React and ReactDOM along with their type defs to the latest versions:

npm install react@latest react-dom@latest

npm install @types/react@latest @types/react-dom@latest
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Baris Taskiran

79365873

Date: 2025-01-17 19:14:12
Score: 9 🚩
Natty: 5.5
Report link

Hi did someone find solution for this ?

Reasons:
  • RegEx Blacklisted phrase (3): did someone find solution
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user1788811

79365855

Date: 2025-01-17 19:05:10
Score: 0.5
Natty:
Report link

This was due to a bug in Visual Studio. I uninstalled the MAUI workload as well as whole Visual Studio , and then reinstalled both again. The error was gone in Visual Studio 2022 v17.12.4. You might need to uninstall and reinstall your version of VS again.

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

79365853

Date: 2025-01-17 19:05:10
Score: 2.5
Natty:
Report link

OK, I figured it out. I need to change HideShape to Worksheet_Change!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-2): I figured it out
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DocBrown

79365849

Date: 2025-01-17 19:03:09
Score: 0.5
Natty:
Report link

This was due to a bug in Visual Studio 2022. I uninstalled the MAUI workload as well as whole Visual Studio 2022, and then reinstalled both again. The error was gone in Visual Studio 2022 v17.12.4.

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

79365845

Date: 2025-01-17 19:03:09
Score: 3.5
Natty:
Report link

On IBMi: SELECT * FROM SYSIBMADM.ENV_SYS_INFO;

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

79365844

Date: 2025-01-17 19:03:09
Score: 0.5
Natty:
Report link

I tried hacking this together and I got something close to what you want, but it's finicky with the initial conditions.

import skimage as sk
import numpy as np
import matplotlib.pyplot as plt
import lmfit
# Loading your image and removing what I believe are some artifacts from saving.
img = sk.io.imread("mLSEYuHD.png")
img = (img > 0).astype(int)
img = sk.morphology.binary_opening(
    sk.morphology.binary_opening(sk.morphology.binary_opening(img))
)
lbl = sk.measure.label(img)
lbl = (lbl == 1).astype(int)
# Use regionprops to get some initial estimates of the ellipse
props = sk.measure.regionprops(lbl)
props = props[0]
props.centroid, props.axis_major_length, props.axis_minor_length, props.orientation
# ((215.51666590357584, 240.36841261846985),
# 237.78103980008083,
# 236.05236540309176,
# 1.0263988084463667)

# Define the formula for an ellipse. If it's <=1, it's inside the ellipse.
def ellipse_formula(x, y, center_x, center_y, major, minor, angle_rad):
    cos_angle = np.cos(angle_rad)
    sin_angle = np.sin(angle_rad)

    term1 = ((x - center_x) * cos_angle + (y - center_y) * sin_angle) ** 2 / major**2
    term2 = ((x - center_x) * sin_angle - (y - center_y) * cos_angle) ** 2 / minor**2

    return term1 + term2

# Since i'm using lmfit to get the shape parameters, I'm initializing the parameter object with the guesses from the distribution. I found that these have a great influence in the fit, but perhaps, with some work, you'll get better initial guesses.

params = lmfit.Parameters()
params.add("cx", value=215, min=0)
params.add("cy", value=240, min=0)
params.add("major", value=300 / 2, min=0)
params.add("minor", value=300 / 2, min=0)
params.add("ang", value=0)

# Defining a residual. Essentially, this sums up the pixels outside the ellipse and tries to minimize that. But if it finds pixels that should be inside, it'll return a huge number.

def residual(params, img):
    cx = params["cx"].value
    cy = params["cy"].value
    maj = params["major"].value
    min = params["minor"].value
    ang = params["ang"].value

    x = np.arange(0, img.shape[1])
    y = np.arange(0, img.shape[0])
    xx, yy = np.meshgrid(x, y, indexing="ij")
    ell_mask = ellipse_formula(xx, yy, cx, cy, maj, min, ang) <= 1
    if np.sum(img[~ell_mask]) > 0:
        return 1000000000
    else:
        return np.sum(~img[ell_mask]) # Sum of background pixels inside the ellipse, which should be as low as possible

# I try to modify this to get the ellipse roughly around the shape I want. If it's too fa

plt.imshow(lbl)
x = np.arange(0, lbl.shape[1])
y = np.arange(0, lbl.shape[0])
xx, yy = np.meshgrid(x, y, indexing="ij")
ell_mask = (
    ellipse_formula(
        xx,
        yy,
        params["cx"],
        params["cy"],
        params["major"],
        params["minor"],
        params["ang"],
    )
    <= 1
)
plt.imshow(ell_mask, cmap="gray", alpha=0.5)
residual(params, lbl.astype(bool))

# Fitting and getting the optimized parameters

fit = lmfit.minimize(residual, params, args=[lbl.astype(bool)], method="nelder")

# Visualizing the output

plt.imshow(lbl)
x = np.arange(0, lbl.shape[1])
y = np.arange(0, lbl.shape[0])
xx, yy = np.meshgrid(x, y, indexing="ij")
ell_mask = (
    ellipse_formula(
        xx,
        yy,
        fit.params["cx"],
        fit.params["cy"],
        fit.params["major"],
        fit.params["minor"],
        fit.params["ang"],
    )
    <= 1
)
plt.imshow(ell_mask, cmap="gray", alpha=0.5)
residual(params, lbl.astype(bool))

This was my output. It's pretty close to what you wanted I think.

enter image description here

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: K.Cl

79365839

Date: 2025-01-17 19:01:09
Score: 0.5
Natty:
Report link

Angular won't re-render the component even with onSameUrlNavigation: 'reload' as per its documentation (https://v17.angular.io/api/router/OnSameUrlNavigation) this is usually used when you want to re-trigger a canMatch guard.

The easiest way is to add a listener to the params subject in Route in your component and wait for changes, then refresh your state.

 
  private async doInit() {
    await this.doMyStuff();
    await this.doAwesomeStuff();
  }

  public async onInit() {
    await this.doInit();
  }

  constructor(
    private readonly route: ActivatedRoute,
  ) {
    this.route.params.subscribe(async (params: Params) => await this.doInit());
  }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: CommunismForever

79365830

Date: 2025-01-17 18:52:07
Score: 0.5
Natty:
Report link

I found the answer here: https://stackoverflow.com/a/78887005/5338948

The problem was that the ESLint docs don't specifically state that the ignores should be it's own object. I changed my eslint as below and it worked

import eslint from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import tseslint from 'typescript-eslint';

/** @type { import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile } */
export default [
  eslint.configs.recommended,
  ...tseslint.configs.recommendedTypeChecked,
  ...tseslint.configs.stylisticTypeChecked,

  stylistic.configs.customize({
    'indent': 2,
    'brace-style': '1tbs',
    'semi': true,
    'arrow-parens': true,
  }),
  {
    ignores: [
      '**/*.js',
      '**/tests-examples/**',
      '**/pw-report/**',
      'assets',
    ]
  },
  {
    plugins: {
      '@typescript-eslint': tseslint.plugin,
      '@stylistic': stylistic,
    },
...
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: iam_malc

79365825

Date: 2025-01-17 18:50:07
Score: 3.5
Natty:
Report link

There is a way to do that. But it requires the enterprise edition of Zoho CRM:

https://www.zoho.com/crm/developer/docs/api/v7/create-custom-module-api.html

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

79365822

Date: 2025-01-17 18:49:06
Score: 4
Natty:
Report link

One it is executed then only exit make sense. Right? This is the case where the entry is not happening due to gap

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

79365821

Date: 2025-01-17 18:49:06
Score: 0.5
Natty:
Report link

For those reading this in 2025, using Azure Function model v4 and NodeJS 18: request.headers currently returns an object with a javascript Map, the latter containing the headers list. To get the IP address from the headers, use the Map.get() method: request.headers.get('x-forwarded-for')

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

79365817

Date: 2025-01-17 18:47:05
Score: 1
Natty:
Report link

I got a "Failed to sync triggers for function app (BadRequest)" error when deploying an app built for Java 21 when the function app was set to 17.

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

79365810

Date: 2025-01-17 18:46:05
Score: 0.5
Natty:
Report link

For those reading this in 2025, using Azure Function model v4 and NodeJS 18: request.headers currently returns an object with a javascript Map, the latter containing the headers list. To get the header value, use the Map.get() method: request.headers.get('x-forwarded-for')

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

79365808

Date: 2025-01-17 18:45:04
Score: 0.5
Natty:
Report link

settings.json is a JSONC (JSON with Comments) file. While standard JSON does not support comments, JSONC supports including comments (both in-line and stand-alone) with //.

Thanks to jonrsharpe for the insight.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: socialscientist

79365798

Date: 2025-01-17 18:38:03
Score: 0.5
Natty:
Report link

For future users.. You can display 24bit (16,777,216) colors within a windows console from any language with the use of Ascii Text.

C# Example, this is a Color object extension:

public static class ColorExt
{
    /// <summary>
    /// Color extension to convert Color to Ascii text to be used within a Console.Write/WriteLine.
    /// </summary>
    public static string ToAscii(this Color clr, bool isForeground)
    {
        var present = isForeground ? 38 : 48;
        return $"\x1b[{present};2;{clr.R};{clr.G};{clr.B}m";
    }
}

Usage:

const string RESET = "\x1b[0m";
Console.WriteLine($"This is {Color.Gold.ToAscii(true)}GOLD text and " +
                  $"now with a {Color.Red.ToAscii(false)}RED background{RESET}. " +
                  $"After reset, all colors are set back to default.");

Results: enter image description here

Happy hacking..

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

79365795

Date: 2025-01-17 18:38:03
Score: 1.5
Natty:
Report link

The solution to my problem turned out to be simple. Before the server{} block in http{}, you need to add

include mime.types;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: panic08

79365775

Date: 2025-01-17 18:30:01
Score: 2.5
Natty:
Report link
(function(ss,ex){ window.ldfdr=window.ldfdr||function(){(ldfdr._q=ldfdr._q||[]).push([].slice.call(arguments));}; (function(d,s){ fs=d.getElementsByTagName(s)[0]; function ce(src){ var cs=d.createElement(s); cs.src=src; cs.async=1; fs.parentNode.insertBefore(cs,fs); }; ce('https://sc.lfeeder.com/lftracker_v1_'+ss+(ex?'_'+ex:'')+'.js'); })(document,'script'); })('bElvO73PmNp4ZMqj');
Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Awal Ahmed

79365771

Date: 2025-01-17 18:29:01
Score: 2.5
Natty:
Report link

You can disable the use of a cursor completely. Tread carefully though. https://help.salesforce.com/s/articleView?id=001458024&type=1

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

79365755

Date: 2025-01-17 18:22:59
Score: 3
Natty:
Report link

For me, I have initialized it in a test case. I am thinking maybe I should run it in msix code instead.

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

79365754

Date: 2025-01-17 18:21:58
Score: 5
Natty:
Report link

It worked I changed the {0.125f,0.125f} to {512.f,512.f} and it seems to be working. Thanks again for ur help @JesperJuhl !

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): It worked
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @JesperJuhl
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: the

79365751

Date: 2025-01-17 18:21:58
Score: 3.5
Natty:
Report link

Use ; at the end: Great, I only need that. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: MariaC

79365735

Date: 2025-01-17 18:16:56
Score: 5
Natty: 5.5
Report link

https://github.com/usethisname1419/Easy-Python2

makes python2 virtualenv easy.

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Derek Johnston

79365731

Date: 2025-01-17 18:16:56
Score: 1
Natty:
Report link

The autofill UI is designed to be used for exactly this use case. You call WebAuthn in a conditionally mediated mode on page load, which will offer the autofill UI experience to the user.

https://passkeys.dev/docs/use-cases/bootstrapping/#authenticating-the-user

This is the recommended experience if your login screen has a username / identifier field.

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