79265177

Date: 2024-12-09 13:44:06
Score: 1
Natty:
Report link

Understanding the @frozen Keyword in Swift

In Swift, the @frozen attribute is used to optimize the performance of enum types by marking the set of cases as fixed. When an enum is marked as frozen, the Swift compiler can perform various optimizations that improve memory usage, performance, and pattern matching.

What is @frozen?

The @frozen attribute is used to freeze an enum, indicating that the set of enum cases is final and cannot be extended in future versions of the code. The primary benefit of this is that the compiler can make certain optimizations knowing that the set of cases will not change.

Syntax of @frozen

You can mark an enum as frozen using the following syntax:

@frozen enum Direction {
    case north
    case south
    case east
    case west
}

This tells the compiler that the enum Direction has a fixed set of cases and cannot be extended with new cases in the future.

Why Use @frozen?

  1. Performance Optimization: By freezing the enum, the compiler can optimize the layout of the enum in memory. This can lead to better performance, especially in cases where pattern matching is heavily used.

  2. Lower Memory Usage: The compiler can make certain assumptions about the size of the enum, reducing memory overhead.

  3. Faster Matching: If the set of cases is fixed, pattern matching can be more efficient. The compiler doesn't need to check for additional cases that could be added later.

Example: Using @frozen Here's an example of a @frozen enum and how it can be used in pattern matching:

@frozen enum Direction {
    case north
    case south
    case east
    case west
}

func move(direction: Direction) {
    switch direction {
    case .north:
        print("Moving North")
    case .south:
        print("Moving South")
    case .east:
        print("Moving East")
    case .west:
        print("Moving West")
    }
}

// Usage:
let myDirection = Direction.north
move(direction: myDirection)

What Happens If You Add Cases After Freezing?

Once an enum is marked as @frozen, adding new cases to it will result in a compiler error. This is because frozen enums cannot be extended. Attempting to extend a frozen enum will cause the following error:

@frozen enum Direction {
    case north
    case south
    case east
    case west
}

// Error: Cannot add new cases to a frozen enum.
extension Direction {
    case up // Error: Cannot add new cases to a frozen enum.
}

Frozen vs Non-Frozen Enums

In contrast to a frozen enum, a non-frozen enum allows you to extend it with additional cases using extensions. For example:

enum Direction {
    case north
    case south
    case east
    case west
}

// This is allowed since Direction is not frozen

    extension Direction {
        case up
    }

Here, the enum Direction is not frozen, so new cases can be added in an extension.

Key Points

Frozen enums cannot be extended with new cases (via extensions or otherwise). The @frozen attribute informs the compiler that the enum has a fixed set of cases. Using @frozen allows the compiler to make performance optimizations for enums with a fixed number of cases. Non-frozen enums can be extended with additional cases, but they don't benefit from the optimizations that come with @frozen.

Conclusion

The @frozen attribute is helpful when you are confident that your enum will not have new cases added in the future. It allows the compiler to make performance optimizations, such as reducing memory usage and speeding up pattern matching. However, once an enum is marked as @frozen, it cannot be extended, so it is important to ensure that the set of cases is complete.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @frozen
  • User mentioned (0): @frozen
  • Low reputation (1):
Posted by: Chaudharyyagh

79265174

Date: 2024-12-09 13:44:06
Score: 1.5
Natty:
Report link

may be Minimum_should_match could help

https://opster.com/guides/opensearch/opensearch-search-apis/opensearch-match-multi-match-and-match-phrase-queries/

or you can use keyword mapping with exact match

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
Posted by: Shakirov Ramil

79265169

Date: 2024-12-09 13:40:05
Score: 9.5
Natty: 7
Report link

How did you solve this case friend? I'm going through the same problem.

Reasons:
  • RegEx Blacklisted phrase (3): did you solve this
  • RegEx Blacklisted phrase (1.5): solve this case friend?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How did you solve this
  • Low reputation (1):
Posted by: Kim

79265167

Date: 2024-12-09 13:39:03
Score: 8 🚩
Natty:
Report link

Kindly see the following question and let me know if you have a similar issue on your side?

Sellstop order not executing if a buy trade is already open

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): have a similar issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Pierre Cilliers

79265166

Date: 2024-12-09 13:39:03
Score: 0.5
Natty:
Report link

Actually, I split the issue in two steps:

  1. Generate LHS sampling in the XY plan bounded by a polygon
  2. For each sampled draw a random Z value bounded by an arbitrary minimum value and the calculated upper Z value.

Below is a MWE for whoever would be interested:

    from random import uniform
    import matplotlib.pyplot as plt
    import numpy as np
    import pandas as pd
    from scipy.interpolate import CloughTocher2DInterpolator as CT
    from scipy.stats import qmc
    from shapely.geometry import Point, Polygon

    data_2d = [
    [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, np.nan],
    [np.nan, np.nan, 6, 8, 10, 12, 14, 16, 18, 20, 22],
    [np.nan, np.nan, np.nan, np.nan, np.nan, 12, 14, 16, 18, 20, 22],
    [np.nan, np.nan, np.nan, np.nan, np.nan, 12, 14, 16, 18, 20, np.nan],
    [np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, 14, 16, 18, np.nan, np.nan],
    [np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, 14, 16, 18, np.nan, np.nan],
    [np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, 14, 16, 18, np.nan, np.nan],
    [np.nan, np.nan, np.nan, np.nan, np.nan, np.nan, 14, 16, 18, np.nan, np.nan],
]
# data_2d: - rows are Hs from 1 to 8 (8 rows)
#          - columns are Tp from 2 to 22 (10 columns)
#          - content is the wind speed from 2 to 22

tp_hs_ws = pd.DataFrame(data_2d)
tp_hs_ws.columns = [np.arange(2, 24, 2)]
tp_hs_ws.index = [np.arange(1, 9, 1)]
x_data, y_data = np.meshgrid(np.arange(2, 24, 2), np.arange(1, 9, 1))

non_nan_coord = [
    (2, 1),(20, 1),(22, 2),(22, 3),(22, 3),(20, 4),(18, 5),(18, 8),(14, 8),(14, 5),(12, 4),(12, 3),(10, 2),(6, 2),(2, 1)]

polygon = Polygon(non_nan_coord)
xp, yp = polygon.exterior.xy

points = LHS_Points_in_Polygon(polygon, nb_points)
xs = [point.x for point in points]
ys = [point.y for point in points]

# Keep only the unique LHS samples
xs = pd.Series(xs).unique()
ys = pd.Series(ys).unique()
xs_grid, ys_grid = np.meshgrid(xs, ys)

# Interpolate initial wind speed on the LHS Hs/Tp grid
zz = []
for z in (np.array(data_2d)).ravel():
    if str(z) == "nan":
        z = 0
    zz.append(z)

xy = np.c_[x_data.ravel(), y_data.ravel()]
CT_interpolant = CT(xy, zz)
Ws = CT_interpolant(xs_grid, ys_grid)

# Select the wind speed associated to the LHS Tp/Hs samples
ws = []
for idx_tp, _ in enumerate(xs_grid.ravel()):
    ws.append(Ws.ravel()[idx_tp])
# Make the LHS samples in square matrix form
ws_LHS = np.reshape(ws, (len(xs_grid), len(ys_grid)))
# The diagonal of wind speed LHS samples is corresponding to the XY coordinates sampled
ws_LHs_diag = ws_LHS.diagonal()

# Create random wind speed between 2m/s (arbitrary lower bound) and the LSH sampled wind speed value (upper bound)
# This ensure to produce a point XYZ always contained with the voume Tp/Hs/Wind speed
random_ws = [uniform(2, ws) for ws in ws_LHs_diag]

The function LHS_Points_in_Polygon is inspired by this solution.

def LHS_Points_in_Polygon(polygon, number):
    minx, miny, maxx, maxy = polygon.bounds
    sampler = qmc.LatinHypercube(d=2, scramble=False)
    sample = sampler.random(n=number)
    l_bounds = np.min((minx, miny))
    u_bounds = np.max((maxx, maxy))
    points = []
    while len(points) < number:
        for x, y in qmc.scale(sample, l_bounds, u_bounds):
            pnt = Point(x, y)
            if polygon.contains(pnt):
                points.append(pnt)
    return points

Below is the outcome:

enter image description here enter image description here

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

79265160

Date: 2024-12-09 13:36:01
Score: 12.5 🚩
Natty: 6
Report link

I have the same problem. Have you solved it? I would be very grateful if you could tell me your solution.

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Blacklisted phrase (2): Have you solved it
  • RegEx Blacklisted phrase (1.5): solved it?
  • RegEx Blacklisted phrase (2): I would be very grateful
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hang chen

79265149

Date: 2024-12-09 13:34:01
Score: 1
Natty:
Report link

Part 1 of 7

Submit a text file containing a wrangling script after step 14 of the exercise.

Upload File

No file submitted

Part 2 of 7

Submit a document containing a screen snapshot of your dashboard after step 46 of the exercise.

Upload File

No file submitted

Part 3 of 7

Submit a document containing a screen snapshot of your dashboard after step 51 of the exercise.

Upload File

No file submitted

Part 4 of 7

Submit a document containing a screen snapshot of your dashboard after step 66 of the exercise.

Upload File

No file submitted

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

79265148

Date: 2024-12-09 13:33:00
Score: 1
Natty:
Report link

16MB.

If more, you will receive error like this:

BSONObj size: 19489318 (0x1296226) is invalid. Size must be between 0 and 16793600(16MB)

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

79265144

Date: 2024-12-09 13:32:00
Score: 1
Natty:
Report link

no need for react-native-track-player. set metadata in source: https://docs.thewidlarzgroup.com/react-native-video/component/props#overriding-the-metadata-of-a-source

source={{
uri: 'https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8',
metadata: {
  title: 'Custom Title',
  subtitle: 'Custom Subtitle',
  artist: 'Custom Artist',
  description: 'Custom Description',
  imageUri: 'https://pbs.twimg.com/profile_images/1498641868397191170/6qW2XkuI_400x400.png'
}

}}

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

79265142

Date: 2024-12-09 13:30:59
Score: 1
Natty:
Report link

A simpler variant than sprintf, that works even if variables aren't using $ names - just bracket them:

gawk --posix 'BEGIN { v1="hello ";v2="world"; v3=(v1)(v2); print v3;}'
hello world
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tristan Ball

79265141

Date: 2024-12-09 13:30:59
Score: 4.5
Natty:
Report link

I solve the problem, but I don't know why this happened.

".siem-signals-default" Refresh or clear cache of this index is not enough to solve the problem. I need to Flush the index. and set the Indicator index query to @timestamp >= "now-1h" or a time after flushing the index.

But why is this happening.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (0.5): why is this
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @timestamp
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Majid Mortazavi

79265130

Date: 2024-12-09 13:27:57
Score: 4
Natty:
Report link

I needed to add #include vector #include string

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

79265125

Date: 2024-12-09 13:25:57
Score: 2.5
Natty:
Report link

in my case chrome could not open:http://localhost:8080/ and instead opens http://localhost:8080

I opens it using firefox and the page opened.

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

79265124

Date: 2024-12-09 13:25:57
Score: 2
Natty:
Report link

The best solution I found was to limit the UI update rate but still process the CAN messages as they come in with a timer update. I add all the objects that needs to be updated into a list and update that list with tlvMyTreeListView.RefreshObject(objectToRefresh) in the timer callback

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

79265118

Date: 2024-12-09 13:23:56
Score: 4
Natty: 4.5
Report link

same issue... I couldn´t find the solution yet

Reasons:
  • RegEx Blacklisted phrase (1): same issue
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hamilton Tenório da Silva

79265117

Date: 2024-12-09 13:23:56
Score: 0.5
Natty:
Report link

This error may occur when Xcode cannot resolve a project dependency, e.g. when the project depends on two Swift packages that in turn each want a different version of a third dependency: this leads to a conflict.

Oddly enough, this information won't be shown in the Issue navigator along with the error message. However, if you select your failed build in the Report navigator and expand the logs, it will show the reason.

Reasons:
  • No code block (0.5):
Posted by: PDK

79265108

Date: 2024-12-09 13:20:54
Score: 3
Natty:
Report link

According to NXP's documentation for NFC MIFARE Classic, block 0 of sector 0 contains Manufacturer Data, so you will need to start reading from block 1 for sector 0.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ignacio Dávila

79265105

Date: 2024-12-09 13:20:54
Score: 1.5
Natty:
Report link

Good question!! you can use online tools to simplify the process. I recommend trying the CGPA to Percentage Calculator on Toolrify.com, which makes this conversion quick and accurate.

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: Wakas Khookhar

79265104

Date: 2024-12-09 13:19:54
Score: 3.5
Natty:
Report link

I suspect your Regional Date/Time Settings are different on the server.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Niall O'Dwyer

79265103

Date: 2024-12-09 13:19:54
Score: 2
Natty:
Report link

The real answer here ( still yet to be explored ) is actually accessing the html5 canvas element along with it's associated javascript files. Playing a video works for this use case, but embedding a canvas element and being able to manipulate javascript inside of it would be an even more rewarding process.

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

79265097

Date: 2024-12-09 13:16:53
Score: 4.5
Natty:
Report link

I'm trying to implement a feature in my Flutter app where swiping on a sub tab switches back to the parent tab. Any guidance on how to achieve this would be appreciated On a side note Gigi Hadid's leather fashion choices inspire me to create a sleek and stylish user interface.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): how to achieve
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: joseph albert

79265095

Date: 2024-12-09 13:16:52
Score: 4.5
Natty:
Report link

I'm facing the same issue with NextJS 15.0.4.

I have created the launch.json file with the same content as in the NextJS documentation (https://nextjs.org/docs/app/building-your-application/configuring/debugging) and still my server side breakpoints are completely ignored when debugging.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the same issue
  • Low reputation (1):
Posted by: Frederico Rocha

79265092

Date: 2024-12-09 13:15:52
Score: 1
Natty:
Report link

I have tried a lot of solutions, but none of them resolved all the issues. I wanted to be able to directly bind a Nullable Integer/Decimal and to the have the input immediately applied to the binded property.

I have implemented two custom TextBox controls for Integers and Decimals. The usage is as simply as possible:

<controls:DecimalBox Value="{Binding Path=Percentage}" Maximum="98.5"/>

NumberBox

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

79265086

Date: 2024-12-09 13:13:50
Score: 8.5 🚩
Natty: 6
Report link

I would like to ask if this problem has been solved and how to solve it?

Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (1.5): how to solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: XinhaiYang

79265077

Date: 2024-12-09 13:11:49
Score: 4.5
Natty:
Report link

This issue is known by the Prisma team and is not solved yet: https://github.com/prisma/prisma/issues/15623

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

79265074

Date: 2024-12-09 13:10:49
Score: 3
Natty:
Report link

When having issues with JSON Failed Just do this: nvm ls-remote nvm install 22.11.0 nvm use 22.11.0 node -v npm install npm run build

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Muhammad Muhammad tukur

79265071

Date: 2024-12-09 13:09:49
Score: 1
Natty:
Report link

For people reading this in 2024 and beyond,

The

"filters":{
...
  "kill_fillers": {
    "type": "pattern_replace",
    "pattern": ".*_.*",
    "replace": "",
  },
...
}

seems to be requiring the replacement key instead. See here

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

79265068

Date: 2024-12-09 13:07:48
Score: 2
Natty:
Report link
pip install -U pip setuptools wheel

helped me. I found this solution in : https://github.com/pallets/markupsafe/issues/285

Using a jetson nano and python 3.9.6

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

79265062

Date: 2024-12-09 13:04:47
Score: 1.5
Natty:
Report link

You can use loop = asyncio.get_event_loop() await loop.run_in_executor(None, webdriver.Remote, 'http://127.0.0.1:4723/wd/hub', desired_caps)

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28698294

79265059

Date: 2024-12-09 13:04:47
Score: 3.5
Natty:
Report link

You're very welcome to draw inspiration from my article on how you can remove the two columns from an HTML table in Power Automate.

https://www.linkedin.com/pulse/power-automate-removing-odataetag-iteminternalid-mikael-jansson-ujk6f/

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

79265035

Date: 2024-12-09 12:56:45
Score: 1.5
Natty:
Report link

If the problem is due to the metadata problem @sweak mentioned, another way to handle this can be initializing CameraX through the ProcessCameraProvider#configureInstance and Camera2Config#defaultConfig() API.

ProcessCameraProvider.configureInstance(Camera2Config.defaultConfig())
val cameraProviderFuture = ProcessCameraProvider.getInstance(context)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @sweak
  • Low reputation (0.5):
Posted by: Tahsin Masrur

79265032

Date: 2024-12-09 12:54:44
Score: 4
Natty:
Report link

If it's still relevant you can get it via REST API https://learn.microsoft.com/en-us/rest/api/site-recovery/replication-vault-health/get?view=rest-site-recovery-2024-10-01&tabs=HTTP#code-try-0

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

79265027

Date: 2024-12-09 12:51:43
Score: 3.5
Natty:
Report link

Make sure you install 8.4 first and then re-run 9.0>

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

79265014

Date: 2024-12-09 12:46:42
Score: 4
Natty:
Report link

To fix this problem, what I did was return a redirect method to the same route, to have a "GET" method in the "/" index instead of "POST" after submitting. Cheers to Random Cosmos in the comments.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Violet Ori

79265004

Date: 2024-12-09 12:43:41
Score: 2
Natty:
Report link

A lot of time when this happens to me it is because I am trying to print something that might look like a dictionary but it is not an actual Python dictionary so just convert it to a dict like pprint(dict(count))

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: vfxGer

79264998

Date: 2024-12-09 12:41:40
Score: 3.5
Natty:
Report link
Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mohammed ashraf

79264991

Date: 2024-12-09 12:40:40
Score: 4
Natty:
Report link

Thank you for your response. Indeed it is / instead of x'0A'. The file is VB and size 10000. So, my input data is as follows:

AAAabc. DeAAAfghi. jklmnAAAopq. rstuvwxAAAyz.

I want to have an Output like this:
AAA. abcde. AAA. fghijklmn. AAA. opqrstuvwx. AAA. yz.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Azire Hagerty

79264985

Date: 2024-12-09 12:37:39
Score: 2
Natty:
Report link

I found the solution. I searched youtube and found it without needing office scripts. Here is the video: https://www.youtube.com/watch?v=Kupz71dWYyY

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ashraf

79264984

Date: 2024-12-09 12:37:38
Score: 6.5 🚩
Natty: 5
Report link

I have same problem,

It fixed by updating "@nestjs/schematics" to "10.1.4"

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

79264977

Date: 2024-12-09 12:33:37
Score: 0.5
Natty:
Report link

There are so many solutions suggested for this same issue, but this is what worked for me. First I checked the NativeWind installation by calling verifyInstallation in my root component, like below :

// Ensure to call inside a component, not globally

verifyInstallation();

This gave me the error (on the emulator): "NativeWind received no data. Please ...."

Searching for this error led me here: https://github.com/nativewind/nativewind/issues/1050

and the solution near the end of this thread here was what worked for me in the end: https://github.com/nativewind/nativewind/issues/1050#issuecomment-2378814536.

I am quite sure I had once done this before also and it had not worked. But now it is working and finally I am able to move forward. Maybe this will help others too.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pallavi Saxena

79264972

Date: 2024-12-09 12:30:36
Score: 1
Natty:
Report link

From Python 3.9 you can write such code:

from collections.abc import Generator

def my_func(arg1) -> Generator[RecordsFile]:
    ...

which is much simpler.

Ref

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

79264964

Date: 2024-12-09 12:29:35
Score: 4
Natty:
Report link

From project properties you can disable it . Please check the image below enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Amani Mohamed Babiker Eisa

79264963

Date: 2024-12-09 12:28:35
Score: 2
Natty:
Report link

Instead of

=IIF(Sum(Fields!Denominator.Value) > 0, Sum(Fields!Numerator.Value)/(Sum(Fields!Denominator.Value), 99.9)

I used

=SWITCH( Sum(Fields!Denominator.Value) = 0, 99.9, Sum(Fields!Denominator.Value) <> 0, Sum(Fields!Numerator.Value)/(Sum(Fields!Denominator.Value) )

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

79264955

Date: 2024-12-09 12:26:34
Score: 1
Natty:
Report link

For this, you will require to create a custom restlet script in NetSuite. The script will contain the above logic mentioned by you.

The restlet script can be coded in the 'GET' part. The design would include fetching the Purchase Order ID (which you will be passing via 3rd party application), fetching the Vendor Bills associated with this Purchase Order ID, and returning the values.

Let me know if you require more details or if you have any concerns.

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

79264941

Date: 2024-12-09 12:21:32
Score: 5
Natty:
Report link

same question, looking for answers. @crypth , @suresh-chikkam

Reasons:
  • RegEx Blacklisted phrase (1): same question
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @crypth
  • User mentioned (0): @suresh-chikkam
  • Low reputation (1):
Posted by: FzDev

79264933

Date: 2024-12-09 12:17:31
Score: 2
Natty:
Report link

Facebook Locked How To Unlock

locked Facebook get code on email option

locked Facebook code on email problem

change locked Facebook email 2022

locked Facebook get a code by email problem solve

Facebook locked get a code by email problem

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

79264914

Date: 2024-12-09 12:13:30
Score: 2
Natty:
Report link
  1. Extension Pack for Java
  2. Debugger for Java
  3. Language Support for Java

These extensions are needed for Java. The first has support for lombok

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

79264913

Date: 2024-12-09 12:13:29
Score: 5.5
Natty: 5.5
Report link

I’ve recently encountered an issue where my IP address appears to be blacklisted, and I suspect it might also be blocked by my Internet Service Provider (ISP). Here’s the situation:

I checked my IP using tools like MXToolBox, and it’s listed on a few blacklists. Some websites and email servers are rejecting my connections. My ISP has also limited my internet access, likely due to flagged activity. Here are my questions:

What are the best steps to confirm and resolve the cause of blacklisting (e.g., spam, malware)? How can I request removal from major blacklist databases like Spamhaus or Barracuda? What should I do if my ISP continues to block my IP even after resolving the issue? Are there any preventive measures to avoid being blacklisted again in the future? I’m running a small email server, so advice specific to email-related blacklisting would also be appreciated.

Any guidance or resources would be greatly appreciated. Thank you! [check this wolf cut hair men]

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (2): What should I do
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Lindsey wilcox

79264901

Date: 2024-12-09 12:07:27
Score: 1.5
Natty:
Report link

Try using apiRef to dynamically change data in the table, without rerendering.

https://mui.com/x/react-data-grid/api-object/

function browser({params}) {
  const apiRef = useGridApiRef();

  return (
    <div>
      <Button 
          onClick={() => apiRef.current.setRows([{ id: 1, name: 'John' }])}
      >
          Add row
      </Button>
      <DataGrid columns={columns} apiRef={apiRef} {...other} />
    </div>
  );
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: beloyar

79264889

Date: 2024-12-09 12:03:26
Score: 3
Natty:
Report link

After using local MI 4.0.0 - the same version as the remote MI Server of my organization, the issue is resolved. It seems that using the later IDE versions are fine (at least in this case) as long as you add a local MI Server with the same version as the MI server version of the Service Catalog.

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

79264887

Date: 2024-12-09 12:03:26
Score: 2.5
Natty:
Report link

I had the same problem. No Idea what causes it. But what helped me was saving the df as csv and then loading it in again. No more problems!

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: economyclaas

79264885

Date: 2024-12-09 12:02:26
Score: 0.5
Natty:
Report link

Reason for the issue:

  1. Application Pool Idle Timeout: IIS uses an application pool to manage the lifecycle of hosted applications. By default, IIS automatically terminates worker processes for an application if there is no activity (idle) for a specified period (default is 20 minutes). This behavior is designed to conserve server resources.

  2. Recycling Settings: IIS might be configured to periodically recycle application pools, which can cause your Node.js application to stop and restart.

  3. Lack of Persistent Requests: If your application doesn't receive frequent requests, it may stay idle long enough for IIS to stop the worker process.

  4. Application Initialization Settings: If the "Always Running" setting is not enabled, the application will not restart automatically when it stops, and users will experience delays as IIS initializes the application again when a new request comes in.

Steps to fix this issue:

  1. Configure Application Pool Settings:

    1. Open IIS Manager.
    2. Go to the Application Pools section.
    3. Select the application pool your Node.js app uses and click on Advanced Settings.
  2. Adjust the following settings:

    1. Idle Time-out (minutes): Set this to 0 to disable idle time-out.
    2. Regular Time Interval (minutes): If enabled, consider increasing the recycling interval or disabling it by unchecking Regular Time Interval under Recycling Events.
    3. Start Mode: Set to AlwaysRunning to ensure the application pool is always active.
    4. Ping Enabled: Set this to False to prevent IIS from terminating the worker process if it doesn’t respond to periodic pings.
  3. Enable Preloading for the Application:

    1. In the site's Advanced Settings, set Preload Enabled to True. This ensures that the application starts automatically when the IIS server restarts or the application pool recycles.
  4. Modify the IIS Configuration for the Site:

    1. Go to your site's settings in IIS Manager.
    2. Open Configuration Editor.
    3. Navigate to system.webServer/applicationInitialization.
    4. Set the doAppInitAfterRestart attribute to True.
  5. Use Application Initialization Module :

    1. Ensure the Application Initialization module is installed in IIS. This module can keep your Node.js application warm and ready to handle requests, even after pool recycling.
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rishi Kesan

79264877

Date: 2024-12-09 12:00:25
Score: 2.5
Natty:
Report link

Upvoted brandonjp

Thanks so much, I've been wondering about this for more than a year.

I'm using a portable version (Build 4180) and found the file in <Sublime Text Install Dir>\Data\Local

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): Upvote
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Smokin Moe

79264876

Date: 2024-12-09 12:00:25
Score: 2
Natty:
Report link

Why not creating instances of Legs and Eyes for the animals?

Something like this:

class Legs:
    def __init__(self, amount):
        self.amount = amount  

    def legsInfo(self):
        return f"{self.amount} legs"


class Eyes:
    def __init__(self, amount):
        self.amount = amount  

    def eyesInfo(self):
        return f"{self.amount} eyes"


class Animal(Legs, Eyes):
    def __init__(self, name, legs_amount, eyes_amount):
        self.name = name
        self.legs = Legs(legs_amount)  
        self.eyes = Eyes(eyes_amount)  

    def legsInfo(self):
        return self.legs.legsInfo()

    def eyesInfo(self):
        return self.eyes.eyesInfo()


# Objects
cat = Animal("Tom", 4, 2)  
spider = Animal("Webster", 8, 6) 

# Test de output
print(cat.legsInfo())     # 4 legs 
print(cat.eyesInfo())     # 2 eyes
print(spider.legsInfo())  # 8 legs
print(spider.eyesInfo())  # 6 eyes
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not
  • Low reputation (0.5):
Posted by: Cincinnatus

79264868

Date: 2024-12-09 11:57:25
Score: 0.5
Natty:
Report link

enter image description here

When your credentials are incorrect while testing the data source, you will get above error. Edit the credentials correctly.

After this, I have to enter the credentials manually (after every request). Is there any way to persist this credentials ?

Once check your credentials type of data source, if it is Anonymous, change it to Basic, provide the credential and publish the report, wait for some time after the publish, you may get relief from above error. Otherwise, check the permissions of Datasource by going to global permissions as shown below:

enter image description here

According to the MS document

This error can occur when the gateway attempts a test connection, even if the credentials supplied are acceptable and the refresh operation is successful. It happens because when the gateway performs a connection test, it doesn't include any optional parameters during the connection attempt, and some data connectors, (Snowflake, for example) require optional connection parameters in order to connect.

When your refresh is completing properly and you don't experience runtime errors, you can ignore these test connection errors for data sources that require optional parameters. For more information you can refer to the below documents:

Reasons:
  • Blacklisted phrase (1): Is there any
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When you
  • High reputation (-1):
Posted by: Bhavani

79264867

Date: 2024-12-09 11:57:24
Score: 4.5
Natty:
Report link

Did the template only add the Datasource in your manifest.json, or has also a model been created which is being bound to that source? And is your service an OData v4 or v2 service?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Did the
  • Low reputation (0.5):
Posted by: schuckspecht

79264865

Date: 2024-12-09 11:56:24
Score: 1.5
Natty:
Report link

i have not heard of such thing but from your question it seems that it is soe kind of javascript behaviour you can block js in the specific website but i think more over this is going to affect other websites you can try to open pages in new tabs thats how i do it for single page webapps or you can try to ue some add-on or extension for further functionality .I also implemented such feature in one of the projects i was working on but didn't gave much thought for it , The closest thing that i can think of to this behaviour is single-tab navigation .. if i could find something , i would give some ideas ,

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

79264860

Date: 2024-12-09 11:54:23
Score: 0.5
Natty:
Report link

As advice in comment I write down solution.

var handle = _endpointConnector.ConnectReceiveEndpoint(queueName, (bc, hc) =>
{
    hc.ConfigureConsumeTopology = false;
    hc.Consumer<MessageAConsumer>();
    ((IRabbitMqReceiveEndpointConfigurator)hc).Bind<MessageA>(s => {
        s.RoutingKey = (string)keyItem;
        s.ExchangeType = ExchangeType.Direct;
    });
    hc.ConfigureTransport(cfg =>
    {
        cfg.ConcurrentMessageLimit = 20;
        cfg.PrefetchCount = 20;
    });
});
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Piotr

79264856

Date: 2024-12-09 11:53:23
Score: 3
Natty:
Report link

You’ve included an empty template in your example for displaying the value. Simply removing the template should allow everything to work correctly.

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

79264849

Date: 2024-12-09 11:51:22
Score: 2
Natty:
Report link

I ran in to the exact same issue. The extension is sadly not documented (https://github.com/dotnet/aspnetcore/issues/19098) but digging through the source it looks like intended behavior, but i cant find why swagger works.. The source code says "Proxy all requests" (https://github.com/dotnet/aspnetcore/blob/e2a857c8ccda4dcfac3381a166faaf3542d85c62/src/Middleware/Spa/SpaServices.Extensions/src/Proxying/SpaProxyingExtensions.cs#L73)

I have also tried downgrading the extension in my project to get it to work since this issue seemed relevant https://github.com/dotnet/aspnetcore/issues/52308 but there was no change.

If you find out how to proxy all requests except the ones matching swagger and controllers I would be very glad.

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

79264847

Date: 2024-12-09 11:49:22
Score: 1
Natty:
Report link

I don't know why you are doing @for for <mat-error>. You can just call getErrorMessages(controlName) within <mat-error>.

<mat-form-field>
  <mat-label>{{label}}</mat-label>
  <input matInput [ngClass]="{'is-invalid': this.formGroup.get(controlName)?.invalid && this.formGroup.get(controlName)?.touched}"
    [formControlName]="controlName" (focus)="triggerValidation(controlName)" [required]="required" 
    [type]="type" [placeholder]="placeholder">
  @if(formGroup.get(controlName)?.invalid && formGroup.get(controlName)?.touched){
    <mat-error> {{ getErrorMessages(controlName) }} </mat-error>
  }
</mat-form-field>

In your getErrorMessages() function make sure you are returning error messages if a control has an error or return '' if there is no error.

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

79264844

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

I had an issue like this. when I run celery with this

"celery -A tasks worker --loglevel=INFO"

After pressing Ctrl+C, it breaks Celery run, but for the second time, when I run the code again, it starts continuing preview tasks again. After some research, I understand Celery has a queue for tasks. After breaking with ctrl+c, the queue would not be clean. so in second time, it runs the queue(which is not cleaned yet). to solve the issue. I cleaned the queue and then run again and it solved

cleaning celery queue with the command "celery -A tasks purge -f"

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

79264835

Date: 2024-12-09 11:46:21
Score: 1
Natty:
Report link

As suggested here: https://github.com/PHPOffice/PhpSpreadsheet/discussions/4265#discussioncomment-11488292

The solution is:

if (method_exists($spreadsheet, 'setExcelCalendar')) {
    $spreadsheet->setExcelCalendar(Date::CALENDAR_MAC_1904);
} else {
    Date::setExcelCalendar(Date::CALENDAR_MAC_1904);
}
Reasons:
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Michele

79264818

Date: 2024-12-09 11:41:14
Score: 7.5 🚩
Natty: 5
Report link

dsddsdsdsdertggbvbhngtgbcvddaaaaaaaaaaaasierID= as one of the elements in button. Are you saying that it doesn't matter how many I pass to ajax with the same method I used before, I will still get the same error as before? Btw, thanks for the help! – user3657273 CommentedJan 9,

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): get the same error
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • User mentioned (1): user3657273
  • Filler text (0.5): aaaaaaaaaaaa
  • Low reputation (1):
Posted by: addddd

79264816

Date: 2024-12-09 11:41:13
Score: 6 🚩
Natty: 5.5
Report link

Could you please share what fix you had did to handle the same.

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you please share what
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: deepa chandran

79264806

Date: 2024-12-09 11:36:11
Score: 7.5 🚩
Natty: 6.5
Report link

This worked great. Kindly help how can we set width. Thanks.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): how can we
  • Blacklisted phrase (3): Kindly help
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: exp

79264800

Date: 2024-12-09 11:34:10
Score: 2.5
Natty:
Report link

You need to ensure that the MinStation and MaxStation columns contain values that meet your conditions. The data you provided primarily has null values in both columns, and no rows have values in both fields. As a result, it won't display 0; instead, it will display default null value.

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

79264798

Date: 2024-12-09 11:33:10
Score: 1
Natty:
Report link
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): When a for
  • Low reputation (1):
Posted by: Usama Ikram

79264797

Date: 2024-12-09 11:33:09
Score: 4
Natty:
Report link

sorry false post dont know hoe to delete

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

79264792

Date: 2024-12-09 11:30:08
Score: 4.5
Natty:
Report link

Apparently it's an issue with lint, and fixed in the latest gradle plugin (8.7.3): https://issuetracker.google.com/issues/375352607

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

79264791

Date: 2024-12-09 11:30:07
Score: 0.5
Natty:
Report link

I noticed that the path in the yaml file is being appended to the download folder:

my error log:

Dataset 'custom-coco128.yaml' images not found ⚠️, missing paths ['/mnt/azureml/cr/j/2f3996d401bb48149189ea022277efca/exe/wd/datasets/azureml:coco128:1/images/train2017']
Note dataset download directory is '/mnt/azureml/cr/j/2f3996d401bb48149189ea022277efca/exe/wd/datasets'. You can update this in '/root/.config/Ultralytics/settings.yaml'

anyone know how to disable this? my custom.yyaml has path: azureml:coco128:1 and the file /root/.config/Ultralytics/settings.yaml doesn't exist.

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

79264789

Date: 2024-12-09 11:30:07
Score: 1.5
Natty:
Report link

I found the solution for this issue in this github issue of pyzbar: It reads very short:

I installed Visual C++ Redistributable Packages for Visual Studio 2013 and solved it on my computer

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: irenaeus135

79264780

Date: 2024-12-09 11:28:07
Score: 3
Natty:
Report link

You can try deploying it on another server to test, as I've also encountered this issue when deploying and debugging locally.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 阿呆先生

79264778

Date: 2024-12-09 11:27:07
Score: 1
Natty:
Report link

I managed to resolve the issue.

In my case, the problem was caused by a plugin that automatically updated Livewire to version 3.5.16. This update introduced the issue with the modal backdrop.

To fix it, I forced Livewire to revert to version 3.5.12 by editing my composer.json file and "livewire/livewire": "3.5.12"

Then, I ran the following command to apply the change: composer update livewire/livewire

After downgrading Livewire, the issue was resolved, and everything works as expected again.

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

79264774

Date: 2024-12-09 11:25:05
Score: 6.5 🚩
Natty:
Report link

This is the answer that I want, So if anyone interested.

https://github.com/jwtiyar/Shifting

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jwtiyar

79264767

Date: 2024-12-09 11:24:04
Score: 5
Natty:
Report link

@Pavan's solution works for me!

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (2):
  • No code block (0.5):
  • User mentioned (1): @Pavan's
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: eric jiang

79264765

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

I'm not sure this is the best solution, but maybe something like this could work?

units(df$volume) <- "mmᶾ"

test1

Or, alternatively,

units(df$volume) <- "mmᶟ"

test2

These special characters are taken from https://graphemica.com/%E1%B6%BE and https://graphemica.com/%E1%B5%8C

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Luigi

79264760

Date: 2024-12-09 11:21:03
Score: 1
Natty:
Report link

Bit late to the party, but here might be another reason for this error (and solution):
If you are using cmake, make sure to add the include file with the QT object ( AddressBook.h in the question) to the target-sources: eg at add_executable.
Else the MOC will not process that include file. (if it is header-only).
(Note: normally for include files it is not needed to add them to the cmake target, so this mistake is easy to make)

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

79264755

Date: 2024-12-09 11:18:02
Score: 0.5
Natty:
Report link

Do you want to generate Java code stubs by reflection? If so, you can use getproto gradle plugin

It would generate proto schemes via reflection and then you could use the Protobuf plugin to compile them.

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Neeraj Sharma

79264748

Date: 2024-12-09 11:15:01
Score: 4
Natty:
Report link

same problem here... I'm using nextjs with @solana/wallet-adapter-wallets

Reasons:
  • RegEx Blacklisted phrase (1): same problem
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Celso Sá

79264745

Date: 2024-12-09 11:14:01
Score: 1
Natty:
Report link

It's now documented here: https://www.angulararchitects.io/en/blog/testing-angular-standalone-components/

You can replace the standalone component with overrideComponent directly like this:

await TestBed.configureTestingModule({
  imports: [ AskComponent, HttpClientTestingModule]
})
  .overrideComponent(EditComponent, {
        remove: { imports: [EditComponent] },
        add: { imports: [EditStubComponent] },
  })
  .compileComponents();
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: b.fiss

79264742

Date: 2024-12-09 11:12:00
Score: 1.5
Natty:
Report link

For the ones running Nginx + PHP-FPM : Solution was to restart php-fpm to make it work : /bin/pkill -F /var/run/php-fpm.pid followed by /usr/local/sbin/php-fpm -c /usr/local/etc/php.ini -y /usr/local/lib/php-fpm.conf -RD 2>&1 >/dev/null

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

79264740

Date: 2024-12-09 11:11:00
Score: 1
Natty:
Report link

When you use a for loop on a list in Python, it iterates over a snapshot of the original list when the loop starts. That is, the variable i gets its value from list a based on the elements that existed in the list when the loop started, and not a modified version of the list during the iteration.

Let's look at the code.

First iteration:

○ i is 1 (the first element).

○ if a != []: evaluates to True since a is [1, 3, 4, 5].

○ a.pop() removes 5 (the last element in the list) and prints 5.

○ a is now [1, 3, 4].

Second iteration:

○ The next iteration, i now gets its next value, which was 3 in the original list.

○ if a != []: evaluates to True since a is [1, 3, 4].

○ a.pop() removes 4 (the last element in the current list) and prints 4. Now a is [1, 3].

-Third iteration:

Next iteration. i is 4 (next original element), but 4 is no longer in the modified list, so the for loop does not fetch that new value, so the iteration is skipped.

-Fourth iteration:

The last iteration. i is 5 (next original element), but 5 is no longer in the modified list, so the for loop does not fetch that new value, so the iteration ends here.

So a is [1, 3]

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Starts with a question (0.5): When you use a for
  • Low reputation (1):
Posted by: Muhammad Atif

79264737

Date: 2024-12-09 11:10:00
Score: 2.5
Natty:
Report link

Turns out, that this is a known bug: https://youtrack.jetbrains.com/issue/IDEA-361235/Test-classpath-is-incorrect-when-dependencies-with-classifiers-are-specified

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

79264730

Date: 2024-12-09 11:06:59
Score: 0.5
Natty:
Report link

You are trying to modify a list by using "for i in range of original list" while removing items from it, the list obviously becomes smaller than the range and just stops by the third iteration

Do this instead.

a = [1,3,4,5]
while a:
    print(a.pop())
print(a)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Collins Olix

79264725

Date: 2024-12-09 11:05:59
Score: 2
Natty:
Report link

Figured a workaround. Not sure 100% but the issue could've been caused by having my mobile app running localy trying to reach an api call on the same local server (just like engr.ukairo suggested earlier). Even calling directly by ip didn't work.

I decided to try ngrok and it works. Worth it and doesn't take alot of time to configure.

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

79264722

Date: 2024-12-09 11:04:58
Score: 1.5
Natty:
Report link

Since Angular 19, the use of the host property is recommended (rather than @HostBinding).

So you can do:

@Component({
  selector: 'app-foo',
  template: '...',
  host: {
    '[class.some-class]': 'someClass()',
  },
})
export class FooComponent {
  someClass = computed(() => ...); // works well with signals 💪
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fservantdev

79264712

Date: 2024-12-09 11:01:58
Score: 2
Natty:
Report link

I'm pretty sure browsers ignore the transparent part of svgs when doing stuff like hovering. If i were you i wouldn't rely on the browser for tooltips. Every browser has their own implementation. Use a custom tooltip implementation if you're looking for consistency.

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

79264707

Date: 2024-12-09 11:01:58
Score: 1.5
Natty:
Report link

Try passing an empty array to your useEffect. The dispatch function that you passed to the useEffect will be a new object in each re-render, which will cause repeated calls to the useEffect.

Note: I contribute to the state-machine-react library, which I find more readable and maintainable, for simple to medium-complexity projects.

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

79264705

Date: 2024-12-09 11:00:57
Score: 3
Natty:
Report link

I would suggest downgrading your JAVA version(recommended 17) for stability and long-term support:

Go to Settings->Build,Execution,Deployment->Build Tools->Gradle and download 17 versionlike this

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

79264704

Date: 2024-12-09 11:00:57
Score: 3
Natty:
Report link

The simplest solution would be to just have the image inside a div container and attach a title to it.

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

79264702

Date: 2024-12-09 10:59:57
Score: 0.5
Natty:
Report link

I have been looking for a solution for some time and found that you can use Google EventArc to publish an event for different types of dataflow job state. For example an HTTP request to a Cloud Function after your job is finished.

These documents provide more information:

  1. DataFlow Eventarc docs
  2. Eventarc documentation
Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Niek Veenstra

79264699

Date: 2024-12-09 10:58:57
Score: 3
Natty:
Report link

HI @Nikolas and thanks for the reply. In my code I initialized all the classes in the init.py and used string reference and everything was working fine.

Mine was the only part of the database with M2M relationships. All other services have O2O or O2M relationships, so the other devs used class reference and there was no circular import. Furthermore we wanted to move the initialize them not in run time.

Since we want to have a common "way of working" we decided to move to the class reference.

We used TYPE_CHECKING since the classes were not initialized in run-time anymore.

Our association table have id, left.id, right.id so i have to explicitly declare the relationship().

But in the end, we decided to stick to initialize in init.py and use string reference, since it seems to be best practice with M2M relationships.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @Nikolas
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Marco Debernardi

79264698

Date: 2024-12-09 10:58:57
Score: 2
Natty:
Report link

looks like aiohttp issue.
the problem is reproduced with python=3.11.9 and aiohttp=3.9.3 running in docker. ugrading aiohttp to 3.11.10 solved the problem.

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

79264695

Date: 2024-12-09 10:57:57
Score: 2
Natty:
Report link

There is no straightforward way to do that, as some versions of NiFi have disabled calling invalid SSL endpoints. As a workaround, I am using the ExecuteStreamCommand processor and using curl to call the API.

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

79264691

Date: 2024-12-09 10:54:56
Score: 0.5
Natty:
Report link

I have noticed in your current code that there is a letter C above the function InsertCode()

enter image description here

which causes the error:

ReferenceError: C is not defined

enter image description here

I have tried to delete it and run the code, and it works as expected. I have a hunch that you just placed it accidentally.

Kindly try to run the code without it and see if it is indeed the issue you were having.

enter image description here

In such cases that you encounter an error, please try to check the @ macros.gs:[line number] above the error as it will dictate the lines where it does have an issue.

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

79264682

Date: 2024-12-09 10:52:55
Score: 3
Natty:
Report link

I encountered the same issue. To resolve it, I deleted my database and recreated it with the same name, which worked perfectly. It's important to note that my database did not contain any sensitive information, so deleting and recreating it was a feasible solution in my case.

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

79264679

Date: 2024-12-09 10:51:55
Score: 1
Natty:
Report link

I tried to research the answer to this question but I'm lost. I am trying to make a one search bar that automatically puts a dash in the phone number. I've solved that.

The next part is the challenging part. How can I make it always do XXX-XXX-XXXX, even if the characters pasted were something like 555 555 1212 or 555---555-1212, where it will only reel back the number and output with 555-555-1212. It shouldn't count the spaces or extra dashes as a character.

I found: http://www.jotform.com/answers/15202-can-I-add-script-to-my-form-that-will-automatically-add-hyphens-in-between-the-3-digit-area-code-and-also-the-3-digit-prefix

I changed it just a bit by adding:

function addDashes(f) { f.value = f.value.slice(0,3)+"-"+f.value.slice(3,6)+"-"+f.value.slice(6,15); } Right now, this works only if the user puts 5555555555 and automatically turns it into 555-555-5555. I'm trying to figure out how to take something like 5-55555-5555 and turn it into 555-555-5555. Currently, it makes it 5-5-555-5-5555.

See my dilemma? lol. It can't be php or any server side scripting as this must be able to run on a desktop.

Resolution:

function addDashes(f) { f.value = f.value.replace(/\D/g, ''); f.value = f.value.slice(0,3)+"-"+f.value.slice(3,6)+"-"+f.value.slice(6,15); }
Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (1): I am trying to
  • Whitelisted phrase (-2): solution:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Filler text (0.5): 5555555555
  • Low reputation (1):
Posted by: muzamil khan

79264674

Date: 2024-12-09 10:50:55
Score: 1.5
Natty:
Report link

to downgrade from v9 to latest v8, I've used:

dotnet tool update dotnet-ef --version 8.0.11 --global --allow-downgrade
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user2211780

79264673

Date: 2024-12-09 10:50:55
Score: 3
Natty:
Report link

Can you use DELETE API instead of CANCEL? I've not tried this myself but looking in https://learn.microsoft.com/en-us/graph/api/bookingappointment-delete?view=graph-rest-1.0&tabs=http it appears to have permissions for BookingsAppointment.ReadWrite.All

NB Comparing DELETE/CANCEL reference articles, note that DELETE API does not appears to send the customer any 'cancellation' email

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can you use
  • Low reputation (1):
Posted by: Billy Brods