79309805

Date: 2024-12-26 15:31:14
Score: 0.5
Natty:
Report link

make sure to include

import '@mantine/notifications/styles.layer.css';

at the top of your root component

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

79309798

Date: 2024-12-26 15:28:13
Score: 2.5
Natty:
Report link

i just had to go spring.data.redis.host ... instead of spring.redis.host ... cuz of spring boot 3.x

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

79309796

Date: 2024-12-26 15:26:13
Score: 2.5
Natty:
Report link

maven { url 'https://jitpack.io' } does not work.

the new way is:

maven {url = uri("https://jitpack.io")}

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

79309783

Date: 2024-12-26 15:18:11
Score: 2
Natty:
Report link

Checkout this blogpost for complete working solution, you can simply checkout and run the Jobs on your local.

Reasons:
  • Blacklisted phrase (1): this blog
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: user3696428

79309776

Date: 2024-12-26 15:15:10
Score: 1.5
Natty:
Report link

In case if you want to allow 3rd cookie, the proper argument is --disable-features=TrackingProtection3pcd, otherwise you will see warnings in console.

Third-party cookie is blocked in Chrome as part of Privacy Sandbox.

https://developers.google.com/privacy-sandbox/cookies/prepare/debug#chrome_flags

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

79309772

Date: 2024-12-26 15:14:10
Score: 1.5
Natty:
Report link

The two answers from @MarkMiller shows how confusing statistics based on counts can be. Before we can get confidence intervals, it is essential that we identify clearly what is being measured.

When examining counts for a desired outcome (let's call them success arbitrarily), and want to convert them to percentages, two scenarios are possible. (a) if the count for one cell was to increase by one, would one of the other counts decrease by one? (b) could the count for one cell increase while leaving the other counts unchanged? We examine these two scenarios with the following example data taken from the OP:

count     <- c(20, 1, 9, 1)
X5employf <- c(1, 2, 3, 4)
data      <- data.frame(X5employf, count)

(a) Counts are interrelated

In this scenario, the counts show a classification of the outcome into one of four categories. In the data.frame, there were 31 observations (20+9+1+9) and they were assigned to some class 1, 2, 3 or 4. In that situation, when an observation is misclassified, the count where it was classified must be decreased by 1 and necessarily, the correct class's count must be increased by 1 so that all the 39 observations are taken into account.

In that situation, we have what is called a multinomial distribution of class memberships, and such data must be analysed with classification models assuming the multinomial distribution. One of @MarkMiller 's answer referred to R's package MultinomialCI which should be best (see Sison and Glaz). I also propose one solution below using another R package of mine, ANOPA (see Laurencelle and Cousineau). Such measures are called frequencies.

(b) Counts are from within a group.

In this scenario, a subject or a group of subjects (either humans or any other unit of interest) is given a certain number of trials, and each trial may result in a success of failure. Then, we count the number of success. Other groups are likewise given trials (there may be the same number of trials, or all could have variable amounts of trials). If ever we notice that we miss-read a trial's result, the count may go up or down by one unit, but it has no influence on the other group's counts.

In that situation, each group has a proportion of success and the correct model is based on a binomial distribution. The other response from @MarkMiller was based on a R's package binom which is adequate in that second scenario (based on Clopper & Pearson). I will also propose an alternative based on the R package ANOFA, also a package of mine. When the count of success is divided by the number of trials, measures like this are called proportions.

The two scenarios are mutually exclusive. The two approaches cannot be correct at the same time. One is correct necessarily implies that the second is incorrect because they are based on different, mutually exclusive, assumptions.

Analysing frequencies using the Analysis of frequency data (ANOFA)

The ANOFA framework is analogous to ANOVAs in the sense that it examines frequencies in situations with one or many factors.

# we load some relevant packages:
library(dplyr)
library(ANOFA)

# we run an analysis with count as the dependent variable
w = anofa(count ~ X5employf, data)
summary(w) # result of the analysis
#               G df Gcorrected   pvalue  etasq
# X5employf 32.42  3      31.57  1e-06 0.5112

# plot of the scores (this is a ggplot graph)
anofaPlot(w)

The frequencies, not at all surprisingly, as significantly different across groups (G(3) = 31.57, p < .001). This is the plot

frequencies with 95% CI

To respond to OP, here are the 95% confidence intervals

anofaPlot(w, showPlot = F)
#   X5employf center lowerwidth upperwidth
# 1         1     20 -11.870873  10.079419
# 2         2      1  -1.949385   8.355309
# 3         3      9  -9.181831  11.782361
# 4         4      1  -1.949385   8.355309

Although it is not necessary in the present analyze, the OP asked how we can compute the total count per category of "X5employf". This should do it:

data$grp <- 1 # some factor encompassing the groups...
totals <- group_by(data, grp) %>% summarise(n = sum(count) )
data   <- merge(data, totals, by = "grp")

Comparing the results

We can compare the CI from ANOPA with those from MultinomialCI:

library(MultinomialCI)
uu <- multinomialCI(x,alpha=0.05,verbose=FALSE)
uu
#           [,1]      [,2]
# [1,] 0.5161290 0.8332777
# [2,] 0.0000000 0.2203745
# [3,] 0.1612903 0.4784390
# [4,] 0.0000000 0.2203745

ww <- anofaPlot(w, showPlot = F)
data.frame(lowlim = ww$center/31+ww$lowerwidth/31/2, 
 higlim = ww$center/31+ww$upperwidth/31/2)
#      lowlim    higlim
# 1 0.4536956 0.8077326
# 2 0.0008164 0.1670211
# 3 0.1422285 0.4803607
# 4 0.0008164 0.1670211

The widths in ww were adjusted to allow pair-wise comparisons, as is typically the purpose of a plot. By dividing their width by 2, we get stand-alone confidence intervals.

As seen, the confidence intervals returned by ANOPA are not identical to those returned by multinomialCI (sometimes shorter, sometimes wider). This is because ANOPA does not use exact formulas for their computations, contrary to the package MultinomialCI.

Analysing proportions using the Analysis of proportions using Anscombe transform (ANOPA)

The ANOPA framework is also analogous to ANOVAs in the sense that it examines proportions in situations with one or many factors; also, the same subjects could be tested in multiple conditions (within-subject factors). The ANOFA is described in this text.

To compute proportions, we need the number of trials. Let's suppose they are

ntrials <- c(31,4,11,3)
data$ntrials <- ntrials
data
#   grp X5employf count ntrials
# 1   1         1    20      31
# 2   1         2     1       4
# 3   1         3     9      11
# 4   1         4     1       3

We also assume that the design has three groups, identified with the variable "X5employf". We can launch an analysis with

library(ANOPA)
w    <- anopa({count;ntrials} ~ X5employf , data)
summary(w) # to see the effect of the factor (n.s.)
# X5employf 0.061618   3 1.573304 0.193494   1.147188 1.371444  0.24938
# Error     0.039165 Inf 

# to see a plot
anopaPlot(w)

The proportions across X5employf levels are not significantly different (F(3, inf) = 1.57, p = .19). The plot is

proportions with 95% CI

We get the summary statistics with

# lowerwidth is the width of the lower branch of the 95% CI relative to center
# upperwidth is the width of the upper branch
anopaPlot(w, showPlot = FALSE)$summaryStatistics
#   X5employf    center lowerwidth upperwidth
# 1         1 0.6451613 -0.2501391  0.2154477
# 2         2 0.2500000 -0.3437500  0.7045993
# 3         3 0.8181818 -0.4133632  0.2123664
# 4         4 0.3333333 -0.4583333  0.7517923

where center is the proportion.

Comparing the results...

library(binom)
tt <- binom.confint(x, n, conf.level = 0.95, methods = "exact")
ww <- anopaPlot(w, showPlot = FALSE)$summaryStatistics[1:4,]

tt$lower
tt$upper
# [1] 0.4536956 0.0063094 0.4822441 0.0084038
# [1] 0.8077326 0.8058796 0.9771688 0.9057007

ww$center+ww$lowerwidth/sqrt(2)
ww$center+ww$upperwidth/sqrt(2)
# [1] 0.4682863 0.0069320 0.5258899 0.0092427
# [1] 0.7975058 0.7482270 0.9683476 0.8649307

The ANOPA confidence intervals are slightly shorter. In the present case, it is related to the very small number of trials (4 and 3) in two of the categories. As a rule of thumb, proportions should be based on at least 20 observations, more so if the proportions are quite different from 50%.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @MarkMiller
  • User mentioned (0): @MarkMiller
  • User mentioned (0): @MarkMiller
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Denis Cousineau

79309769

Date: 2024-12-26 15:13:08
Score: 7 🚩
Natty: 5
Report link

Hola tengo un Mac tengo Visual studio pero no me aparece la opcion Windows form cuando se va crear un nuevo proyecto. Que puedo hacer

Reasons:
  • Blacklisted phrase (2): tengo
  • Blacklisted phrase (2): crear
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Juan Gonzalez

79309767

Date: 2024-12-26 15:12:08
Score: 3
Natty:
Report link

If the GFLOPs are specified then you can do a rough TOPs estimate by doing multiplication by 4 to get the number of TOPs.

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

79309763

Date: 2024-12-26 15:11:07
Score: 1.5
Natty:
Report link

calendar_view's EventController has a Filter function that allows to filter the showed items. This makes it possible to handle all the events in one single controller, which makes updates much faster, and allows to handle the viewing login without interfering with the business logic. My was a very particular case, but if can be of any help:

myUpdateFilter() {
  super.updateFilter(newFilter: (date, events) => myEventFilter(date, events));
}

List<Event> myEventFilter<T extends Object?>(
  DateTime date, List<CalendarEventData<T>> events) {
  return events
    .whereType<Event>()
    .where(
        (event) => event.occursOnDate(date) && event.confirmed() == private)
    .toList();
}
Reasons:
  • Blacklisted phrase (1): any help
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Serotan

79309753

Date: 2024-12-26 15:03:06
Score: 0.5
Natty:
Report link

it seems like issue with some package on the host (libgdk-pixbuf) and happens when you are building in container. commenting line works but it worked on wsl and virtual box

i commented below 5 files scripts/postinst-intercepts/update_desktop_database scripts/postinst-intercepts/update_gio_module_cache scripts/postinst-intercepts/update_gtk_icon_cache scripts/postinst-intercepts/update_mime_database scripts/postinst-intercepts/update_pixbuf_cache

Reasons:
  • Whitelisted phrase (-1): it worked
  • No code block (0.5):
  • Low reputation (1):
Posted by: Hemant Kumar

79309741

Date: 2024-12-26 14:55:04
Score: 4
Natty:
Report link

I couldn't make it work so I ended up using: https://github.com/henninghall/react-native-date-picker

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

79309735

Date: 2024-12-26 14:52:03
Score: 1
Natty:
Report link

Have you tried this? If not, please try it.

in terminal , root of project

cd android
./gradlew clean
cd ..
flutter clean
flutter pub get

and try run project again

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Doğuhan Ay

79309732

Date: 2024-12-26 14:50:02
Score: 4
Natty:
Report link

i have the same issue since i switched to the expo sdk 52. i search a lot about it and the information i got was to update my packages but nothing changes.

the log: (NOBRIDGE) ERROR Error: Exception in HostFunction: java.lang.NullPointerException: Parameter specified as non-null is null: method com.facebook.react.views.progressbar.ReactProgressBarViewManager.measure, parameter localData

i don't really know what to do

Reasons:
  • Blacklisted phrase (1): i have the same issue
  • Has code block (-0.5):
  • Me too answer (2.5): i have the same issue
  • Low reputation (1):
Posted by: lil fabre

79309725

Date: 2024-12-26 14:45:01
Score: 0.5
Natty:
Report link

You need to call extend() method on ExtendedFloatingActionButton after setting a text to show icon an text.

final ExtendedFloatingActionButton fab = view.findViewById(R.id.fab);
fab.setText("Save");
fab.extend();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anton Klimov

79309719

Date: 2024-12-26 14:39:00
Score: 0.5
Natty:
Report link
fun Int.setBit(@IntRange(from = 0, to = 1) value: Int, position: Int): Int {
    return if (value == 1) {
        this or (1 shl position)
    } else {
        val size = Int.SIZE_BITS - this.countLeadingZeroBits()
        this and (((1 shl size) - 1) - (1 shl position))
    }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: JoShin

79309716

Date: 2024-12-26 14:37:59
Score: 1
Natty:
Report link

I found that, as of December 2024, there is no standard way to to this.

I opened an issue at Svelte repo, and I will update this answer if the Svelte team publishes something.

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

79309694

Date: 2024-12-26 14:25:56
Score: 1
Natty:
Report link

Important points:

  1. Look at the size of your project in harbor (does storage allow limits)
  2. As colleagues said, if you have 1 nginx or more and the route goes through them, write in the server block (blocks if u have many NGINX)
server {
    # disable any limits to avoid HTTP 413 for large image uploads
    client_max_body_size 0;
}

thank you very much to the guys at the top

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nik

79309685

Date: 2024-12-26 14:21:55
Score: 3.5
Natty:
Report link

SELECT * FROM TABLE_NAME WHERE $DATE = to_CHAR(current_date, 'DDMMYY') ;

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

79309682

Date: 2024-12-26 14:20:54
Score: 4
Natty: 5.5
Report link

dsfsd hdsfbhsdbfjsdngkjsdgjnkngbfhdb asdf hsdafdhgbsjanf

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: hsbf

79309668

Date: 2024-12-26 14:08:52
Score: 0.5
Natty:
Report link

You're attempting to retrieve a User based on post content. However, multiple users might have posts with the same content, leading to ambiguity.

Why the Current Approach Doesn’t Work

Filtering posts by content alone doesn't specify which user to retrieve, as multiple users may have identical post content.

Recommended Solutions

1. Query Posts First, Then Retrieve the User

Retrieve posts matching the content, then use the UserID from the post to fetch the user:

var posts []Post
db.Where("content IN ?", []string{"Hello", "Good Morning", "Goodbye"}).Find(&posts)

var user User
for _, post := range posts {
    if post.UserID != "" {
        db.First(&user, post.UserID)  // Fetch the user
        break
    }
}

2. Use a JOIN to Fetch the User Directly

Perform a JOIN between the users and posts tables to retrieve the user:

var user User
db.Joins("JOIN posts ON posts.user_id = users.id").
    Where("posts.content IN ?", []string{"Hello", "Good Morning", "Goodbye"}).
    First(&user)

3. Retrieve All Users with Matching Posts

If multiple users can have posts with the same content, fetch all users with matching posts:

var users []User
db.Joins("JOIN posts ON posts.user_id = users.id").
    Where("posts.content IN ?", []string{"Hello", "Good Morning", "Goodbye"}).
    Find(&users)

Conclusion

To avoid ambiguity, either:

Query posts and use UserID to retrieve the user. Use a JOIN to directly fetch the user based on post content. This approach ensures you retrieve the correct user associated with the post content.

Reasons:
  • Blacklisted phrase (1): Good Morning
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: hamed taghizadeh

79309663

Date: 2024-12-26 14:07:51
Score: 1
Natty:
Report link

Update your resolve function to handle nested paths:

 resolve: name => {
        const pages = import.meta.glob('./Pages/**/*.jsx');
        const page = pages[`./Pages/${name}.jsx`];
        return page();
    },
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alex Muthee

79309643

Date: 2024-12-26 13:58:49
Score: 2.5
Natty:
Report link

In JavaScript, every function always returns something! 🎯 If you don’t use a return statement, it defaults to undefined. ✨

Resources -> https://www.w3schools.com/jsref/jsref_return.asp

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

79309634

Date: 2024-12-26 13:55:49
Score: 3
Natty:
Report link

use Illuminate\Support\Str;

$string = Str::mask('[email protected]', '*', 3);

// tay***************

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Filler text (0.5): ***************
  • Low reputation (1):
Posted by: Alberto Rodriguez

79309626

Date: 2024-12-26 13:52:48
Score: 1.5
Natty:
Report link

It worked for me to put parameters in /etc/mysql/mariadb.conf.d/50-server.cnf

Reasons:
  • Whitelisted phrase (-1): It worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: C. Nü

79309623

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

I think you should add the following to your configuration :

enter image description here

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

79309620

Date: 2024-12-26 13:47:47
Score: 2.5
Natty:
Report link

For me in one of our frameworks, the minimum deployment version was wrong(17.5 instead of 16). The crash log mentioned the framework name.

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

79309616

Date: 2024-12-26 13:45:46
Score: 3.5
Natty:
Report link

Have you figured it out? I found the same problem and it seems that action="append" doesn't work well with FileStorage. If you remove that you won't get any errors. If you upload even just one file when action="append" is set, you'll get this error every time. Seems like a bug to me. I also need to implement multiple files upload and I have the same stack on a project.

Reasons:
  • RegEx Blacklisted phrase (3): Have you figured it out
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Dmitriy Uvarenkov

79309606

Date: 2024-12-26 13:40:45
Score: 1.5
Natty:
Report link

Thanks to @Mulan and because I come back here every 4 months, here the complete code in ECMAScript :


index.js

import {createServer} from "http";
import {Server} from "socket.io";

import orderHandler from "../src/handlers/orderHandler.js"
import userHandler from "../src/handlers/userHandler.js"


const httpServer = createServer();
const io = new Server(httpServer);

const { createOrder, readOrder } = orderHandler(io)
const { updatePassword } = userHandler(io)

const onConnection = (socket) => {
    socket.on("order:create", createOrder);
    socket.on("order:read", readOrder);

    socket.on("user:update-password", updatePassword);
}

io.on("connection", onConnection);

httpServer.listen(3000);
console.log("Server started on port 3000");

orderHandler.js

export default (io) => {
    const createOrder = function (payload) {
        const socket = this; // hence the 'function' above, as an arrow function will not work
        // ...
    };

    const readOrder = function (orderId, callback) {
        // ...
    };

    return {
        createOrder,
        readOrder
    }
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Mulan
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Akyno

79309599

Date: 2024-12-26 13:37:44
Score: 1
Natty:
Report link

Looking a the pull request, this was made for performance reasons.

It seems that alignment to 32bits speeds up the processing, or at least eliminates fuzziness in the results.

I have actually never expected that a Compiler would not align functions to 32bits in a 32bit microcontroller architecture. It would result in performance impact while fetching.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: tl-photography.at

79309595

Date: 2024-12-26 13:33:44
Score: 1
Natty:
Report link

I faced the same issue and resolved it by uninstalling all incompatible React Navigation packages and then reinstalling them. Here's the process I followed: 1, Uninstall the packages: npm uninstall @react-navigation/native @react-navigation/stack @react-navigation/drawer @react-navigation/material-top-tabs react-native-screens react-native-safe-area-context 2, Reinstall the packages: npm install @react-navigation/native @react-navigation/stack @react-navigation/drawer @react-navigation/material-top-tabs react-native-screens react-native-safe-area-context

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

79309589

Date: 2024-12-26 13:30:43
Score: 0.5
Natty:
Report link

We Can do this

1. Saving Multi-Select Values

To bind the selected programme objects correctly, update the mat-option as follows:

<mat-select class="form-control" placeholder="Funding Programmes" formControlName="Programme" multiple>
  <mat-option *ngFor="let programme of programmeList" [value]="programme">
    {{programme.Description}}
  </mat-option>
</mat-select>

This ensures the selected Programme objects are stored as an array in the form control.

2. Dropdown Behind Modal

To fix the issue of the dropdown appearing behind the modal, add this CSS:

::ng-deep .mat-select-panel {
  z-index: 1050 !important;
}

This ensures the dropdown is displayed above the modal.

Key Points:

Hope this solves your Question

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

79309587

Date: 2024-12-26 13:29:43
Score: 0.5
Natty:
Report link

Append @JsonProperty("isCustom") like other says. And change field type from primitive (boolean) to wrapper (Boolean) to avoid duplicate.

@JsonProperty("isCustom")
private Boolean isCustom;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: NeckNecson

79309585

Date: 2024-12-26 13:29:43
Score: 0.5
Natty:
Report link

The Following Works Correctly for me and the following info is

1- @JsonFormat check over each element of the Collection to be in the format dd-MM-yyyy

2- added @Future to check that sent date into the future


    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "dd-MM-yyyy") // to ensure that the date format sent in dd-MM-yyyy
    private Set<@NotNull(message = "Each date in Session Scheduler must not be null")
                @Future(message = "Each Session Scheduler Date must be In Future") LocalDate> sessionScheduler;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Youssef Gamal

79309580

Date: 2024-12-26 13:27:42
Score: 3
Natty:
Report link

Im also facing same error. This error occurs because of the map's layout (width and height) is not yet ready when the newLatLngBounds method is called. Code for display the map and selecting the location

import { View, StyleSheet, Alert, Dimensions } from "react-native";
import MapView, { Marker, PROVIDER_GOOGLE } from "react-native-maps";
import * as Location from "expo-location";
import {
  widthPercentageToDP as wp,
  heightPercentageToDP as hp,
} from "react-native-responsive-screen";
import Button from "../../../../components/Button";

const MapScreen = ({ setLocation, closeMap }) => {
  const [region, setRegion] = useState(null);
  const [selectedLocation, setSelectedLocation] = useState(null);
  const [mapReady, setMapReady] = useState(false);
  const { height } = Dimensions.get("window");

  useEffect(() => {
    (async () => {
      const { status } = await Location.requestForegroundPermissionsAsync();
      if (status !== "granted") {
        Alert.alert(
          "Permission denied",
          "Enable location permissions to use this feature"
        );
        return;
      }

      const currentLocation = await Location.getCurrentPositionAsync({});
      setRegion({
        latitude: currentLocation.coords.latitude,
        longitude: currentLocation.coords.longitude,
        latitudeDelta: 0.01,
        longitudeDelta: 0.01,
      });
    })();
  }, []);

  const handleMapMarker = (coordinate) => {
    setSelectedLocation(coordinate);
  };

  const handleConfirmLocation = async () => {
    if (selectedLocation) {
      const [address] = await Location.reverseGeocodeAsync(selectedLocation);

      if (address) {
        const formattedAddress = `${address.name || ""}, ${
          address.street || ""
        }, ${address.city || ""}, ${address.region || ""}, ${
          address.country || ""
        }`.trim();
        setLocation(formattedAddress);
      } else {
        Alert.alert("Address not found", "Unable to get the full address.");
      }

      closeMap();
    } else {
      Alert.alert(
        "No location selected",
        "Please select a location on the map."
      );
    }
  };

  return (
    <View style={{ height: hp("100%"), width: wp("100%") }}>
      {region && (
        <MapView
          provider={PROVIDER_GOOGLE}
          style={{ flex: 1, minHeight: height * 0.8 }}
          initialRegion={region}
          onPress={(e) => handleMapMarker(e.nativeEvent.coordinate)}
          showsUserLocation={true}
          onMapReady={() => setMapReady(true)}
        >
          {mapReady && selectedLocation && (
            <Marker coordinate={selectedLocation} draggable />
          )}
        </MapView>
      )}

      <View
        style={{ position: "absolute", bottom: hp("10%"), left: 10, right: 10 }}
      >
        <Button
          text={"Confirm Location"}
          onPress={handleConfirmLocation}
          fontSize={16}
          height={hp("5.5%")}
        />
      </View>
    </View>
  );
};

export default MapScreen;
Reasons:
  • RegEx Blacklisted phrase (1): Im also facing same error
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): also facing same error
  • Low reputation (1):
Posted by: Shivanand Muddi

79309572

Date: 2024-12-26 13:21:41
Score: 3
Natty:
Report link

I have deleted the launcher_icon.xml file from the android/app/src/main/res/mipmap-anydpi-v26 folder after which the problem was resolved.

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

79309570

Date: 2024-12-26 13:20:40
Score: 14.5 🚩
Natty: 6.5
Report link

I have the same problem. Have you finally solved this problem? How did you solve it? Did you use the image provided by Nvidia or has TensorFlow been upgraded to TensorFlow 2. X version?

Reasons:
  • Blacklisted phrase (1): How did you solve it
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1.5): solved this problem?
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: LRZRelief

79309559

Date: 2024-12-26 13:13:38
Score: 3
Natty:
Report link

This behavior is not only present for RedirectToAction, but also to links generated using Url.Action.

While I cannot find out why it behaves like that, a workaround that I came up with is to continue generating links as is, but to include the next route segment as null:

So if we want to generate a URL with route values new { folder1 = "1st", folder2 = "2nd" }, we also add folder3 = (string?)null.

If we want to target the root, we pass new { folder1 = (string?)null }.

Reasons:
  • Blacklisted phrase (1.5): I cannot find
  • Blacklisted phrase (0.5): I cannot
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rob P.

79309551

Date: 2024-12-26 13:10:37
Score: 1.5
Natty:
Report link

I found a solution, but it's terrible.

function UpdateValuesFromHTML() {
  document.querySelectorAll('.codelens-decoration > a').forEach(el => {
    let variable = el.text.split(': ')[0];
    el.text = variable + ": " + getRandomMoonitoringValue();
  })
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: 00jeser

79309547

Date: 2024-12-26 13:09:36
Score: 4
Natty:
Report link

I made an extension that can remove some of the contextmenu items and make it cleaner: https://github.com/BHznJNs/vscode-custom-contextmenu

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

79309536

Date: 2024-12-26 13:04:34
Score: 11.5
Natty: 8
Report link

@Jordan Pownall,

I am also having the same issue, can you please share your final version?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you please share your
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also having the same issue
  • Ends in question mark (2):
  • User mentioned (1): @Jordan
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Dewang Dave

79309532

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

I had same issue, I found the reason : This happen when you have defined the 'MaxLength' of Entry in XAML and setting a value a value which exceed the defined length of your <Entry inside XAML. Just update the length OR check length before setting value.

<Entry
     x:Name="entry1"
     MaxLength="2" 
/>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vishva Vijay

79309531

Date: 2024-12-26 13:01:33
Score: 3.5
Natty:
Report link

You just need to select class files and change their property Build Action : Compile. This will compile those class files and then you will be able to use those in your program.

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

79309519

Date: 2024-12-26 12:52:31
Score: 2
Natty:
Report link

I was having the same problem and the same log messages. I haven't gotten to the root cause, but at least in my case I was able to fix it by updating the "Google Play services" app.

You can update this app at https://play.google.com/store/apps/details?id=com.google.android.gms.

I hope this fixes the problem for others who are experiencing similar issues.

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

79309518

Date: 2024-12-26 12:52:31
Score: 1.5
Natty:
Report link

You can use https://github.com/ggerganov/whisper.cpp/pull/1485 to do this. It will take some processing in the backend and you can't run it at frontend.

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: Akhil Garg

79309494

Date: 2024-12-26 12:43:30
Score: 0.5
Natty:
Report link

100% in Java, O(N * log(log(N)) + M). Using https://codility.com/media/train/9-Sieve.pdf and prefix sum:

public int[] solution(int N, int[] P, int[] Q) {
    int M = P.length;
    int[] retVal = new int[M];
    int[] smallest = smallestPrimeThatDividesThisIndex(N);

    boolean[] isSemiPrime = new boolean[N + 1];
    for (int i = 0; i <= N; i++) {
        if (smallest[i] != 0 && smallest[i / smallest[i]] == 0) {
            isSemiPrime[i] = true;
        }
    }

    int[] prefixCount = new int[N + 1];
    for (int i = 1; i <= N; i++) {
        prefixCount[i] = prefixCount[i - 1] + (isSemiPrime[i] ? 1 : 0);
    }

    for (int i = 0; i < M; i++) {
        retVal[i] = prefixCount[Q[i]] - prefixCount[P[i] - 1];
    }
    return retVal;
}

public static int[] smallestPrimeThatDividesThisIndex(int n) {
    int[] F = new int[n + 1];
    for (int i = 2; i * i <= n;i++) {
        if (F[i] == 0) {
            int k = i * i;
            while (k <= n) {
                if (F[k] == 0) {
                    F[k] = i;
                }
                k += i;
            }
        }
    }
    return F;
}
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Alvaro Neira

79309489

Date: 2024-12-26 12:38:29
Score: 1.5
Natty:
Report link

Standard definition of Legendre symbol (a|b) requires that b is an odd prime. The generalization is the Kronecker symbol defined for integers b!=0:

(a|b)=Product((a|p)) where p is a prime factorization including 2 and -1 and (a|p) is the Legendre symbol. But we need these definitions:

(a|2)={0 if a is even (-1)^((a^2-1)/8) if a is odd

(a|-1)={1 if a>=0 else -1 if a<0

Note: there’s a more efficient way to calculate (-1)^((a^2-1)/8).

Lookup a mod 8 in the following table:

[0,1,0,-1,0,-1,0,1]

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

79309486

Date: 2024-12-26 12:36:28
Score: 0.5
Natty:
Report link

The issue must be with the region property, the aws-region you created your bucket and the aws-region you're trying to access must be different.

package test_mvn;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;

import software.amazon.awssdk.core.sync.RequestBody;
import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.s3.S3Client;
import software.amazon.awssdk.services.s3.model.ObjectCannedACL;
import software.amazon.awssdk.services.s3.model.PutObjectRequest;
import software.amazon.awssdk.services.s3.model.PutObjectResponse;
import software.amazon.awssdk.services.s3.model.S3Exception;

public class S3Test {

    public static void main(String[] args) throws IOException {
        System.out.println(new S3Test().putS3Object("uploads/s3upload.csv", "text/csv", 
                Files.readAllBytes(Paths.get("/Users/sridharsivaraman/Downloads/s3upload.csv"))));
    }
    
    // NOTE: this should be available properly
    String bucketName = "test-bucket-sridhar";
    
    private String putS3Object(String objectKey, String mimeType, byte[] content) {

         S3Client s3 = S3Client.builder()
                    .region(Region.US_EAST_1) // Make sure this is the region where your bucket is located
                    .build();

                    System.out.println("adding " + objectKey + " - " + mimeType + " - to " + bucketName);
                    try {
                        PutObjectResponse response = s3.putObject(PutObjectRequest.builder()
                                        .bucket(bucketName)
                                        .contentType(mimeType)
                                        .key(objectKey)
                                        .acl(ObjectCannedACL.PUBLIC_READ)
                                        .build(),
                                RequestBody.fromBytes(content));
                        
                        return response.eTag();
                    } catch (S3Exception e) {
                        e.printStackTrace(System.err);
                    }
                    return "";
                }


}

this is a sample I ran from my local with the following output

adding uploads/s3upload.csv - text/csv - to test-bucket-sridhar
"c4030959207ba4d4512fa9a3103f83e4"

and public s3 URL https://test-bucket-sridhar.s3.us-east-1.amazonaws.com/uploads/s3upload.csv with etag - [c4030959207ba4d4512fa9a3103f83e4] - same as one from output

s3_output_partial

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Sridhar

79309482

Date: 2024-12-26 12:34:28
Score: 0.5
Natty:
Report link

Deleting subdirectory

data.ms

inside my project salved the issue

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: Petro Gromovo

79309480

Date: 2024-12-26 12:33:27
Score: 3.5
Natty:
Report link

Thanks @Zabba, CTRL Z worked for me. I'm using Ubuntu on WSL, Windows 11.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Zabba
  • Low reputation (1):
Posted by: Jonathan

79309477

Date: 2024-12-26 12:32:27
Score: 3
Natty:
Report link

It is possible that you get beeter results with black numbers over a white background, see Why can't Pytesseract recognize plain white text on black? and image processing to improve tesseract OCR accuracy

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

79309474

Date: 2024-12-26 12:31:26
Score: 2.5
Natty:
Report link

Michael: When a DataFrame is used as the data source, there are index-out-of-bounds errors in several places in your code. If all of the ranges except the first are reduced by 1, the program works, but the last data point will not display. I am brand new to matplotlib, so I cannot explain this. Sorry, I do not have a high enough score to submit this as a comment.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: fossildoc

79309450

Date: 2024-12-26 12:20:24
Score: 3
Natty:
Report link

Yes "Yehuda Yefet" said right also the eval command should be "opa eval --data policy.rego --input test.json --data data.json --format raw "data.play""

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

79309447

Date: 2024-12-26 12:19:24
Score: 1.5
Natty:
Report link

I had the same issue and in addition to previous comments: if the project was moved by copying (e.g. in my case i moved it from intel mac to m4 mac) just remove all the temporary and generated files inside the project folder. After that try to rebuild the project.

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

79309444

Date: 2024-12-26 12:16:23
Score: 1.5
Natty:
Report link

Use psycopg2 instead of pgsql

conn = psycopg2.connect(
    host=host,
    dbname=dbname,
    user=user,
    password=password
)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dhinesh kumar P

79309432

Date: 2024-12-26 12:08:22
Score: 1
Natty:
Report link
pdf.create(data, {
          format: "A4",
          childProcessOptions: { // i had to add this to make it working on my server
            env: {
              OPENSSL_CONF: "/dev/null",
            },
          },
        })
        .toFile(pdfpath, (err) => {}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Asad Qureshi

79309417

Date: 2024-12-26 12:02:20
Score: 2
Natty:
Report link

I believe that what you are referring to is a "static webpage" https://en.wikipedia.org/wiki/Static_web_page.

Keep in mind that without a back-end, it would not be possible for you to store the user's data outside of the app. This would mean that all data your app can access will be local since your postgress is stored client side.

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

79309412

Date: 2024-12-26 11:57:19
Score: 0.5
Natty:
Report link

While searching around, I found this, which solved the issue.

The solution is:

  1. Uninstall sqlalchemy2-stubs and/or sqlalchemy-stubs.
  2. Change the plugin in mypy.ini to plugins = sqlalchemy.ext.mypy.plugin.

This solved the issue.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gronnmann

79309411

Date: 2024-12-26 11:57:19
Score: 1.5
Natty:
Report link

I’ve tried both reCAPTCHA and anti-spam scripts, and personally, I found that using an anti-spam plugin works great without the user friction that reCAPTCHA sometimes creates. If you’re using Gravity Forms, I highly recommend the "Anti-Spam Filter for Gravity Forms" plugin. It’s simple to set up, effective, and doesn’t require users to interact with captchas at all. Just blocks spam behind the scenes! https://wordpress.org/plugins/anti-spam-filter-gravity-forms/

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

79309403

Date: 2024-12-26 11:54:18
Score: 0.5
Natty:
Report link

The solution is this : after create access token in github, you should fill this data in your terminal:

git pull

userName : gitUserName password : generatedPassword

thats it ;)

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
Posted by: Maryam Azhdari

79309402

Date: 2024-12-26 11:54:18
Score: 0.5
Natty:
Report link

The solution is this : after create access token in github, you should fill this data in your terminal:

git pull

userName : gitUserName password : generatedPassword

thats it ;)

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
Posted by: Maryam Azhdari

79309400

Date: 2024-12-26 11:53:17
Score: 4.5
Natty: 4
Report link

нашла такой вариант в DBeaver: правой кнопкой мыши в окне скрипта (где пишем код) > параметры > редактор SQL > Текстовые редакторы > "Показать номера строк"

Reasons:
  • Low length (1):
  • No code block (0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Александра Масальская

79309399

Date: 2024-12-26 11:53:17
Score: 2.5
Natty:
Report link

if your project module name in go.mod of root path is module my-work/my-go-project, write this

import _ "my-work/my-go-project/docs"
Reasons:
  • Contains signature (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: you

79309391

Date: 2024-12-26 11:50:16
Score: 3.5
Natty:
Report link

I explain this problem in this article. After a lot of test I use my components instead of compose.

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

79309390

Date: 2024-12-26 11:50:16
Score: 1.5
Natty:
Report link

For it was a CORS error :/ had to include the host in the destination allowlist

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Yavor from Team-GPT

79309382

Date: 2024-12-26 11:49:16
Score: 3.5
Natty:
Report link

I found that when I click on the little Copilot icon on the bottom left, I can find a menu called "Disable Completions for 'properties'". This seems to disable Copilot for all property files.

copilot icon on bottom left

disable completions for 'properties'

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

79309381

Date: 2024-12-26 11:49:16
Score: 4.5
Natty: 4
Report link

=CEILING(A1,0.5)-0.01 (consider A1 column)

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mahesh

79309368

Date: 2024-12-26 11:37:12
Score: 2
Natty:
Report link

android_app_import { name: "XApp", apk: "path/XApp.apk", preprocessed: true, dex_preopt: { enabled: false, }, product_specific: true, privileged: false, skip_preprocessed_apk_checks: true, }

This worked

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

79309363

Date: 2024-12-26 11:34:12
Score: 1.5
Natty:
Report link

I've recently run into the same issue and ended up using crossbeam::atomic::AtomicCell. On my x86-64 linux, AtomicCell<Instant> has the same size as Instant meaning it is lock-free, so no mutex overhead.

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

79309362

Date: 2024-12-26 11:34:12
Score: 2
Natty:
Report link

The solution that worked for me is for listening for the element upon receiving the focus, storing the previous elements locally and settings the accessibility label accordingly.

Below article helped with the solution - link

Listening for the focus change. [enter image description here

enter image description here

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Sumanth

79309358

Date: 2024-12-26 11:32:11
Score: 2.5
Natty:
Report link
X, Y = zip(*list(mypolygon.exterior.coords))
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: hamflow

79309350

Date: 2024-12-26 11:26:10
Score: 0.5
Natty:
Report link

@kush parsaniya's comment seems to be right. There is a problem with version 2.6.0 of springdoc-openapi-starter-webmvc-ui. The issue has also been reported a few months ago. Take a look over here: https://github.com/springdoc/springdoc-openapi/issues/2740.

Please do not downgrade to an older version, as it might pose vulnerabilities. I tried to upgrade to 2.7.0 (latest stable version), and it seems to be working properly.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @kush
Posted by: Mario Mateaș

79309344

Date: 2024-12-26 11:24:09
Score: 2
Natty:
Report link

I have this error a lot before.

The error (Uncaught SyntaxError: Failed to execute 'appendChild' on 'Node') indicates a syntax issue, often due to a missing closing parenthesis ), bracket ], or brace } in your code. The error is being triggered in a script that manipulates the DOM using jQuery.

Reasons:
  • RegEx Blacklisted phrase (1): I have this error
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Abd Elaziz El7or

79309336

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

I was repeatedly getting this even after changing ports, added new projects, restarted winnat, etc. But ultimately the thing worked for me is;

  1. Close the solution
  2. Delete .vs folder at solution level
  3. Re open the solution and run the app.
Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: skillworks

79309334

Date: 2024-12-26 11:19:07
Score: 2
Natty:
Report link

if you're building for iOS Simulator on a Mac with Apple Silicon, you encounter issues with architecture mismatches, you have to use simulator with Rosetta

Go to the menu Product → Destination → Show All Run Destinations. enter image description here

this show you all available simulator, choose one with Rosetta and retry (clean build folder, build ...) enter image description here

Xcode : 15.4 macOs : 14.6 (M2)

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

79309329

Date: 2024-12-26 11:16:07
Score: 3
Natty:
Report link

I encountered a similar issue with many of my websites. Their is an alternate you can try. This plugin is free and available on WordPress. Simply use the short code along with the video ID, and you're good to go:

https://wordpress.org/plugins/yt-portrait-video-embed/

Reasons:
  • Blacklisted phrase (1): This plugin
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kelly Sanderz

79309328

Date: 2024-12-26 11:16:07
Score: 2
Natty:
Report link

if you're building for iOS Simulator on a Mac with Apple Silicon, you encounter issues with architecture mismatches, you have to use simulator with Rosetta

Go to the menu Product → Destination → Show All Run Destinations.

enter image description here

This show you all available simulator, choose one with Rosetta and retry (clean build folder, build ...)

enter image description here

Xcode : 15.4 macOs : 14.6 (M2)

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

79309326

Date: 2024-12-26 11:16:07
Score: 1
Natty:
Report link

You can't, because different versions change dependencies and may introduce breaking changes.

If you set you project to always use the latest this means it will break at some point as your nugets would update but not your code to handle the new version.

Furthermore once a project is compiled the dlls are set in stone, so to speak, so it can't just rewrite its bytecode to get the latest nuget.

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

79309322

Date: 2024-12-26 11:15:05
Score: 6.5 🚩
Natty: 4
Report link

have you been able to solve this problem? I am actually in the same situation and couldn't find a way to do it as well.

Reasons:
  • Blacklisted phrase (1.5): have you been able to
  • RegEx Blacklisted phrase (1.5): solve this problem?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: newbiee

79309314

Date: 2024-12-26 11:12:04
Score: 2
Natty:
Report link

Maybe have a look here: fopen and fwrite to the same file from multiple threads

Better define another thread, which is taking control over the file and implement a queue like structure that other tasks can fill with data.

The file thread will then pop (think FIFO) data from the structure and write it to the file.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: tl-photography.at

79309312

Date: 2024-12-26 11:12:04
Score: 0.5
Natty:
Report link

After researching, I found that CsvSchema should be written like this, specifying the model we are converting and also defining the line and column separators:

private <T> List<T> parseData(String csvData, Class<?> modelClass) {
        try {
            CsvMapper csvMapper = CsvMapper.builder()
                    .enable(MapperFeature.ACCEPT_CASE_INSENSITIVE_PROPERTIES)
                    .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
                    .build();

            CsvSchema schema = csvMapper.schemaFor(modelClass).withHeader().withLineSeparator("\n").withColumnSeparator(',');
            return (List<T>) csvMapper
                .readerFor(modelClass)
                .with(schema)
                .readValues(csvData)
                .readAll();
        } catch (IOException e) {
            throw new RuntimeException("Failed to parse CSV data", e);
        }
    }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Requiet

79309310

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

I faced the same problem, but I managed to solve it as follows:

focusNode.requestFocus();
var config = TextInputConfiguration().toJson();
SystemChannels.textInput.invokeListMethod("TextInput.setClient",
              [-1, "$config"]);
       await SystemChannels.textInput.invokeMethod("TextInput.show");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yahya Said

79309308

Date: 2024-12-26 11:11:04
Score: 0.5
Natty:
Report link

Find below a solution, may be not the best one

[c,k]=gsort(c,'r','i');
i=find(c(1:$-1,1)<>c(2:$,1));
r=[];l=1;
for j=[i(1:$),size(c,1)]
   r=[r;c(j,1),sum(c(l:j,2))];
   l=j+1;
end
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Serge Steer

79309307

Date: 2024-12-26 11:10:04
Score: 1.5
Natty:
Report link

I also faced the same situation in my windows laptop. What I did was too simple.
Just go on the website (https://hotframeworks.com/railsinstaller-org) and install Ruby on rails for windows.
The installer is downloaded. Now click on the installer and install it.
That's it.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Prakash pratap Singh

79309302

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

I also asked a question on GitHub to FixtureMonkey, and the answer turned out to be quite simple and straightforward.

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

79309301

Date: 2024-12-26 11:08:03
Score: 6
Natty: 7.5
Report link

Doesn't this pose serious security risks? From the research I've done, JWTs should never be stored in LocalStorage. How do I go about using the JWT security mechanism alongside Firebase authentication?

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Astijus

79309299

Date: 2024-12-26 11:07:02
Score: 2
Natty:
Report link

I had same issue, Fixed with this: Go to project folder > Obj
Now delete all the files inside Obj folder. Run again.

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

79309291

Date: 2024-12-26 11:05:01
Score: 5.5
Natty: 4.5
Report link

How can I efficiently retrieve the top 10 products with the best average ratings in Cloud Firestore, given that I have product, review, and user collections?

From what I understand, Firestore doesn't support SQL-style GROUP BY queries, so I'm not sure how to aggregate ratings efficiently. Calculating this client-side also doesn't seem safe or scalable.

Should I store pre-aggregated ratings in Firestore for each product using Cloud Functions, or are there other more efficient ways to handle this type of aggregation? How can I ensure that the top 10 products are calculated efficiently without overloading Firestore with heavy queries? Any suggestions on the best approach?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (2): Any suggestions
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): How can I
  • Low reputation (0.5):
Posted by: MOE

79309280

Date: 2024-12-26 10:59:00
Score: 0.5
Natty:
Report link

As mentioned in this comment, check the name first.

Docker doesn't allow repeated special characters. e.g. __

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

79309274

Date: 2024-12-26 10:57:00
Score: 2.5
Natty:
Report link

in my case the problem with that the event name given to $dispatch must be all lowercase

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

79309269

Date: 2024-12-26 10:50:58
Score: 1
Natty:
Report link
from typing import TypeVar, Dict, Union

T = TypeVar('T', bound='Superclass')

class Superclass:
    @classmethod
    def from_dict(cls, dict_: Dict[str, Union[str, None]]) -> T:
        return cls(**dict_)

class Subclass(Superclass):
    def __init__(self, name: Union[str, None] = None):
        self.name = name

    def copy(self) -> T:
        return self.from_dict({'name': self.name})

Emsure that the from_dict class method can correctly create instances of the subclasses. You, @Nils, can use a TypeVar with a bound type. The TypeVar allows you to specify that the method can return any subclass of Superclass, including Subclass.

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

79309268

Date: 2024-12-26 10:49:58
Score: 2
Natty:
Report link

Set

plugins: {
    datalabels: false,
},
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sven

79309261

Date: 2024-12-26 10:42:56
Score: 3.5
Natty:
Report link

try this after updating it to v2 script

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user28940810

79309258

Date: 2024-12-26 10:41:56
Score: 2
Natty:
Report link

Since we have filters as end-point in spring integration, can't we add a filter as end-point for the messages that needs to be consumed

just a thought, sorry if it was silly answer

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

79309245

Date: 2024-12-26 10:31:54
Score: 1.5
Natty:
Report link

There are some sort of dependency issues in latest room version. Please use the below version in KMM/CMP projects to tackle the issue.

ksp = "2.0.20-1.0.24"
sqlite = "2.5.0-alpha12"
room = "2.7.0-alpha07"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Amir Hamza

79309244

Date: 2024-12-26 10:30:53
Score: 1.5
Natty:
Report link

This might be the error due to the wrong configuration for android.

It may happen due to following:

key.properties

storePassword=your-keystore-password keyPassword=your-key-password keyAlias=key storeFile=path-to-your-keystore/key.jks

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

79309238

Date: 2024-12-26 10:28:53
Score: 3
Natty:
Report link

Try to use the lastest version of keycloak. Also do not delete Master realm, just add your realm and use it.

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

79309231

Date: 2024-12-26 10:25:52
Score: 4
Natty:
Report link

[Shiloh holiday][1]

[1]: https://www.shilohholidays.com/ is the best tour operator in USA

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

79309229

Date: 2024-12-26 10:23:51
Score: 1
Natty:
Report link

it's a bit late but to answer your question: it has nothing to do with the upload size or memory!

The error comes from image(s) in your view 'fee_vouchers.saved_voucher' that laravel-dompdf fails to access.

So check the paths to the images in your view and, if they are generated dynamically, add an if statement to check if the image exists in the directory.

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

79309228

Date: 2024-12-26 10:23:51
Score: 2.5
Natty:
Report link

If you're setting up the repository on a new device for the first time, check that you are saving the files before trying to run the command.

In my situation I had set up the .env file with the fields I needed yet hadn't saved it before trying to run the migration command.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andrew Beissmann

79309223

Date: 2024-12-26 10:21:50
Score: 0.5
Natty:
Report link

If you only want to update existing key without creating one:

if (_store.ContainsKey(book.id))
{
    _store[book.id] = book;
}

If you want to add or update existing:

if (!_store.TryAdd(book.id, book))
{
    _store[book.id] = book;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Evgeny Sobolev