79294148

Date: 2024-12-19 11:49:02
Score: 0.5
Natty:
Report link

It turns out that the user.create endpoint doesn't accept an empty list of developerAccountPermissions. I tried not sending the parameter, sending an empty list, and sending DEVELOPER_LEVEL_PERMISSION_UNSPECIFIED since we don't want these users to have developer account access, but all of these cause the code 500 to be returned. Setting an actual developer account permission fixes the issue.

e.g.

createUserRequestBody = {'name': userId, 'email': user["email"], 'developerAccountPermissions': ["CAN_VIEW_FINANCIAL_DATA_GLOBAL"]}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user28820123

79294143

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

If you're unable to run the Wooden Physics Example in Pharo, ensure that all necessary dependencies are installed and properly loaded. Check if the Woden Physics library is compatible with your Pharo version. Update or reinstall the library if needed. Review the code for errors and verify the setup steps in the documentation. If the issue persists, seek help on the Pharo community forums or GitHub repository for Woden Physics.

https://handicrafts-shop.com/product-category/wooden-urns/

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Handi crafts Shop

79294141

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

This work for me 19 December 2024

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ryan Rahman Setiawan

79294140

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

It's hard to tell if your question is "why would I want to use Context instead of global variables/state," or "why is the usage more complicated than I think it should be." The second question...well, that's how it is? As to the first:

TLDR; Context lets you provide some scoped state that is:

  1. readable from within the components that are wrapped by the context provider
  2. broader than props
  3. more tightly scoped than global variables
  4. reactive (IE the children that read the context will re-render when it changes.)

The docs do an excellent job of explaining this.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: Matt Morgan

79294123

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

Disabling Rosetta is, at best, a workaround, but it is by no means a solution to the problem. A real solution would have to come without a significant loss of performance (which is what disabling Rosetta will do).

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

79294119

Date: 2024-12-19 11:38:59
Score: 3.5
Natty:
Report link

Well excuse me for trying to get insight on an issue to which Ben solved himself seemingly. How else would a new user engage with this ancient post Bill? If this question requires my attention its really expected for me to go out onto the fields farming reputation so that I can be proper?

Thank you starball, greg-449, Mark Rotteveel for preserving the integrity of this highly contested post, now no-one else will ever be misled into using the information from my post to damage the fabric of reality itself...

"Those who know the least often obstruct knowledge the most." — Confucius

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: John G.

79294117

Date: 2024-12-19 11:37:58
Score: 4
Natty:
Report link

i dont care that this is not actually an answer, and will get deleted sooner or later. Since i do not have enough rp to comment on @jmrk's answer, and i desperately want to thank him personally...... ( call me crazy ) .....

So jmrk please accept my thanks, its one of the best explanations, what i have been looking for past few days......

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): to comment
  • No code block (0.5):
  • User mentioned (1): @jmrk's
  • Low reputation (1):
Posted by: Aditya Mishra

79294115

Date: 2024-12-19 11:37:58
Score: 3.5
Natty:
Report link

Okay so at least from .net 8, the API has changed and you need this to make it work : System.Devices.Aep reference

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

79294104

Date: 2024-12-19 11:32:56
Score: 3.5
Natty:
Report link

What version of Mongoose are you using? If you're not using 8.8.2 or later the memory usage could be due to the issue fixed in https://github.com/Automattic/mongoose/pull/15039.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Alex B.

79294093

Date: 2024-12-19 11:27:55
Score: 4.5
Natty:
Report link

There is an even better version of the brilliant trick proposed by @an-angular-dev, you can find it here:

https://css-tricks.com/faking-min-width-on-a-table-column/

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @an-angular-dev
  • Low reputation (1):
Posted by: Cloddo

79294089

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

First you should verify that the Rscript requests do reach your Nexus by increasing Nexus's logging level as described here

If your Nexus runs behind a reverse proxy, check the proxies rules for handling the Rscript requests. Probably the reverse proxy containes rules for handling Maven requests (*.jar, *.sha1, *.zip etc). R-artifacts come in *.tgz format. An appropriate rule may be missing.

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

79294085

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

The ShopifyBuy object is exported from the js library you have imported.

You can move the script in index.html and try accessing the Shopify button module.

Here is shopify's official doc: https://www.shopify.com/in/partners/blog/introducing-buybutton-js-shopifys-new-javascript-library

If you are able to create a stackblitz project I might be able to help you more.

PS: New to Stackoverflow, Apologies in advance.

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Bharat Nagdev

79294084

Date: 2024-12-19 11:25:54
Score: 1.5
Natty:
Report link

You can try using the connection string of type JDBC. Use either direct connection string or session pooler string. Remove the username and password fields from your code. Just this is enough-> spring: datasource: url: string as taken from supabase

make sure to include your db password in the connection string

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

79294079

Date: 2024-12-19 11:23:54
Score: 2.5
Natty:
Report link

The "Classic Editor" helped me to create a new Pipeline from the existing YAML file from the specific branch.

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

79294072

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

Is it fixed? I'm using @react-google-maps/api, version 2.20.3. Still, I'm getting the warning below.

main.js:191 As of February 21st, 2024, google.maps.Marker is deprecated. Please use google.maps.marker.AdvancedMarkerElement instead. At this time, google.maps.Marker is not scheduled to be discontinued, but google.maps.marker.AdvancedMarkerElement is recommended over google.maps.Marker. While google.maps.Marker will continue to receive bug fixes for any major regressions, existing bugs in google.maps.Marker will not be addressed. At least 12 months notice will be given before support is discontinued. Please see https://developers.google.com/maps/deprecations for additional details and https://developers.google.com/maps/documentation/javascript/advanced-markers/migration for the migration guide. Error Component Stack

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed?
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is it fix
  • Low reputation (0.5):
Posted by: Raghavendra S

79294070

Date: 2024-12-19 11:21:53
Score: 2
Natty:
Report link

to try to send signals out of ur pc via pin 3 and 5 of SR232: script: wire a led to pins 3 and 5

sbtest: rem on error goto whatever open "COM1:75,N,8,1,BIN,CD19,CS19,DS19" FOR OUTPUT AS #1 CLOSE #1 sleep (1) rem sleep or whatever delay goto sbtest

to try receive smthng from pin3 and 5 of SR232 open "COM1:300,N,8,1,BIN,CD0,CS356,DS0" FOR OUTPUT AS #1 PRINT "Your Face" CLOSE #1

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

79294069

Date: 2024-12-19 11:21:53
Score: 2
Natty:
Report link

To avoid silencing a real error:

results.txt: file1.txt file2.txt
    diff $(word 1,$^) $(word 2,$^) > $@ || test $$? -eq 1

This will fail on a 2 exit status. See https://www.gnu.org/software/diffutils/manual/html_node/Invoking-diff.html

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

79294052

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

Some times we got same exception when our resource folder is not at correct place. It should always be at under src/main package.

see image

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

79294051

Date: 2024-12-19 11:15:51
Score: 1.5
Natty:
Report link
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Minh Yến

79294018

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

I have finished to install docker on raspberry with this procedure:

https://docs.docker.com/engine/install/debian/

as I am on a 64bits architecture. Then launch docker compose with the provided configuration from thingboard (Dashboards -> ThingsBoard IoT Gateways -> My Gateway -> Launch Command)

If someone have some trouble, I think I missconfigure some credential/security stuff, as we can see from docker image commands:

https://hub.docker.com/layers/thingsboard/tb-gateway/latest/images/sha256-a06040dd8b4d2197bfda092ac4049e7499b897964dd797eda21c354450870b95

It work properly that way but I still don't know what was missing.

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

79294011

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

I'm sorry, I might be confused, but if you're using a Python regex command, \y is not a word boundary. Instead, you're using the literal "y" letter to match your word. You should use \b for a word boundary. The correct regex syntax should look like the following:

select 'apple.' ~ '\bapple\b'

made with regex101

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

79294001

Date: 2024-12-19 10:58:47
Score: 2
Natty:
Report link

Colab can load public github notebooks directly, with no required authorization step.

For example, consider the notebook at this address: https://github.com/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb.

The direct colab link to this notebook is: https://colab.research.google.com/github/googlecolab/colabtools/blob/master/notebooks/colab-github-demo.ipynb.

To generate such links in one click, you can use the Open in Colab Chrome extension.

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

79293999

Date: 2024-12-19 10:58:47
Score: 3
Natty:
Report link

You might need to check that your Gradle version is compatible with the awesome_notification plugin.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Code-x-Kid

79293998

Date: 2024-12-19 10:58:47
Score: 2
Natty:
Report link

In this article it's suggested to add the scopes like this:
<Item Key="scope">openid profile</Item>

Try to add email to retrieve users email adress, too.
<Item Key="scope">openid profile email</Item>

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KleeblattAlex

79293987

Date: 2024-12-19 10:50:45
Score: 1.5
Natty:
Report link

The issue was indeed the fact that some answers were empty.

I used this workaround:

country_abbreviation = columns[2].text.strip()  # Country abbreviation
first_word = country_abbreviation.split()[0] if country_abbreviation else ""  # Extract first word
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Clément Aubert

79293986

Date: 2024-12-19 10:50:45
Score: 1
Natty:
Report link

I am thinking that your API is protected with JWTs and you are trying BasicAuth with username and password to access it, while what you need is a token. Basic Auth is for protected resources that require a sign-in while trying to visit the page.

Like this (from requests docs): https://httpbin.org/basic-auth/user/pass

What you would want to do is sent a request to your authentication endpoint with the username and password and get a token, and use that in your request.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Wessel van leeuwen

79293976

Date: 2024-12-19 10:47:44
Score: 1.5
Natty:
Report link

The simplest fix is to reset your Windows network. This error has nothing to do with Prisma or Node. It's from your firewall rules on Windows.

If you're on Windows 11 or 10, Go to Settings > Network and Internet > Advanced Network Settings > Network Reset. Wait for your PC to restart, and then when you receive a prompt about a firewall, accept it.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Dauda Abdulrahman Gaya

79293973

Date: 2024-12-19 10:46:43
Score: 8
Natty: 7.5
Report link

for me, its shows network failure, how do i resolve this?

Reasons:
  • Blacklisted phrase (1): how do i
  • RegEx Blacklisted phrase (1.5): resolve this?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user10

79293966

Date: 2024-12-19 10:44:42
Score: 0.5
Natty:
Report link

The issue is that method-level security annotations like @PreAuthorize require explicit enabling. Add @EnableMethodSecurity to your security configuration class:

@Configuration
@EnableMethodSecurity
public class SecurityConfig {
    @Bean
    SecurityFilterChain securityFilterChain(HttpSecurity http) throws Exception {
        http.csrf(csrf -> csrf.disable())
            .authorizeHttpRequests(auth ->
                auth.requestMatchers("/v1/api/public/**").permitAll()
                    .requestMatchers("/v1/api/authorized/**").hasRole("USER")
                    .anyRequest().authenticated())
            .sessionManagement(session -> 
                session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
            .addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
        return http.build();
    }
}

This enables method-level security, allowing @PreAuthorize to work correctly. For more details, refer to the Spring Security Documentation.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @PreAuthorize
  • User mentioned (0): @EnableMethodSecurity
  • User mentioned (0): @PreAuthorize
  • Low reputation (0.5):
Posted by: kyljmeeski

79293958

Date: 2024-12-19 10:40:41
Score: 2
Natty:
Report link

I always thought it was because all these comments have been cancelled for some reason by YouTube itself. Could it be?

I noted the same issue. The point is that the amount of "missing" comments deeply changes from topic to topic. For instance controversial topics such as "immigration" has an average deletion rate of 70%, while less controversial topics, such as technology or archeology have an average deletion rate of 30%.

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Davide Bassi

79293957

Date: 2024-12-19 10:39:41
Score: 2
Natty:
Report link

@Hefer thank alot, i was able to make it work by modifying the allCards method in controller like this

   private function allCards($userid)
   {
       $user = User::find($userid);
   
       // Fetch UserHashCards with their exchanges and associated usernames
       $userHashCards = UserHashCard::query()
           ->where('user_id', $user->id)
           ->with([
               'hashCard', // Existing relationship
               'initiatedExchanges' => function ($query) {
                   $query->with(['user:id,username']); // Eager load only the `id` and `username` fields from `users`
               },
               'joinedExchanges'  => function ($query) {
                   $query->with(['user:id,username']); // Eager load only the `id` and `username` fields from `users`
               }
           ])
           ->orderByRaw("
               CASE 
                   WHEN status = 'initiated' THEN 1
                   WHEN status = 'joined' THEN 2
                   ELSE 3
               END
           ")
           ->get();
   
           // Dynamically map exchanges based on card status and remove extra fields
           $userHashCards->transform(function ($card) {
               $card->exchanges = match ($card->status) {
                   'initiated' => $card->initiatedExchanges,
                   'joined' => $card->joinedExchanges,
                   default => collect(),
               };
       
               // Remove initiated_exchanges and joined_exchanges fields
               unset($card->initiatedExchanges, $card->joinedExchanges);
       
               return $card;
           });
       
     return $userHashCards;
   }
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Hefer
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: odion_cloud

79293952

Date: 2024-12-19 10:39:41
Score: 3.5
Natty:
Report link

This is now only possible (by my knowledge) in visual studio, with the SSDT (sql server data tools) extension installed. https://learn.microsoft.com/en-us/sql/ssdt/debugger/transact-sql-debugger?view=sql-server-ver16

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: J-D-C

79293950

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

Nowadays in laravel 11, you can implement this in your bootstrap/app.php to do the same job:

->withExceptions(function (Exceptions $exceptions) {
        $exceptions->context(fn() => [
            'url' => request()->fullUrl(),
        ]);
    })
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hussein Elturkey

79293934

Date: 2024-12-19 10:34:40
Score: 1
Natty:
Report link

I tried most of the other solutions (deleting suo files and all that) but in the end the simple fix for me was:

  1. Open up any known good solution file in Visual Studio.
  2. File/Recent Projects and Solutions - switch to the problematic solution.
  3. Sorted.

No idea what the problem was or why this should fix it.

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

79293914

Date: 2024-12-19 10:27:38
Score: 2.5
Natty:
Report link

Some more context would be cool. Do you have more examples of your problem?

If you have cases where your logic works and you don't have two result words, you will get the error you mention because of a None value.

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

79293902

Date: 2024-12-19 10:25:38
Score: 0.5
Natty:
Report link

I managed to arrive at the solution when I tried to use vim with another user (root or a new one). The problem did not occur even though the ~/.vim folder was a symlink to that of the main user. In the end, the problem was that I had put this in my .bashrc file:

export TERM=linux

Removing it solved the problem.

The reason I had entered this parameter in .bashrc was because I noticed a strange behaviour in vim: in INSERT mode, pressing the ESC key and then an arrow key would insert the letters A, B, C or D, depending on the arrow key. As I use this key combination practically all the time when editing a file with vim, this was quite annoying. Investigating further, I discovered that the reason why this was happening was due to this vim plugin:

tmsvg/pear-tree

To cut it short by setting this parameter:

" Automatically map <BS>, <CR>, and <Esc>
let g:pear_tree_map_special_keys = 0 

in ~/.vim/plugin/pear-tree.vim solves the issue.

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

79293898

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

First I've tried chmod 777 file_name.sh, but it didn't work. My problem is with #!usr/bin/bash and after changing it with #!bin/bash the file got executed.

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

79293883

Date: 2024-12-19 10:20:37
Score: 0.5
Natty:
Report link

For example, I use the command

aws logs tail group_name --profile abc --follow --since 20m --filter-pattern "{ $.level = 50 }" --format json

to tail all messages with level=50. The result looks like this:

2024-12-19T09:22:56.057000+00:00 group_name 
{
    "level": 50,
    "time": 1734600176057,
    "pid": 1,
    "hostname": "...",
    "group": "error",
    "err": {
        "type": "HttpException",
        "message": "Forbidden",
        "stack": "Error: Forbidden\n    at Object.findUserByAuth (/api/src/middleware/utils.js:49:11)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async apiAuth (/api/src/middleware/apiAuth.middleware.js:7:16)",
        "status": 403
    },
    "msg": "Forbidden"
}
2024-12-19T09:33:09.788000+00:00 group_name 
{
    "level": 50,
    "time": 1734600789788,
    "pid": 1,
    "hostname": "...",
    "group": "error",
    "err": {
        "type": "HttpException",
        "message": "Forbidden",
        "stack": "Error: Forbidden\n    at Object.findUserByAuth (/api/src/middleware/utils.js:49:11)\n    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at async apiAuth (/api/src/middleware/apiAuth.middleware.js:7:16)",
        "status": 403
    },
    "msg": "Forbidden"
}

All options can be found here: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/logs/tail.html

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

79293882

Date: 2024-12-19 10:20:36
Score: 4
Natty: 4.5
Report link

check this pug 2 jsx tool https://www.npmjs.com/package/pug-as-jsx-utils/v/1.0.41

or this pug preview compiler

https://marketplace.visualstudio.com/items?itemName=ginie.pug2html

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

79293875

Date: 2024-12-19 10:19:36
Score: 1
Natty:
Report link

Counterintuitively but this will result into "B".

const test: any[] = []

if(!test){
    console.log("A")
}else{
    console.log("B")
}

I figure you want to loose negation (Since you probably only want to append data if there is already some).

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

79293870

Date: 2024-12-19 10:17:35
Score: 3.5
Natty:
Report link

Invisible symbol after emoji is a variation selector.

Win+; pastes it into text after emoji. It is invisible character (selected on screenshot) which can be removed from source code after pasting emoji or stripped of by "⚙️".charAt(0).

In VSCode you can't select/delete this second char because caret treats this pair of chars as a whole, but in Notepad++ you can select this invisible char and delete it.

screenshot of source code and gui

What does u'\ufe0f' in an emoji mean? Is it the same if I delete it?

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Podbrushkin

79293866

Date: 2024-12-19 10:17:35
Score: 4
Natty:
Report link

I looked into source code of unit tests for that rule in AGP linter. They are testing it in various ways but they do not test it with code like mine. So based on Android Code Search I was able to fix my problem with code like:

PendingIntent pendingIntent = null;
int pendingIntentFlags;
if(Build.VERSION.SDK_INT >= VERSION_CODES.M){
    pendingIntentFlags = PendingIntent.FLAG_IMMUTABLE;
} else {
    pendingIntentFlags = 0;
}
pendingIntent = PendingIntent.getBroadcast(context, 0, intent, pendingIntentFlags);

Now linter has no problems with that code.

I still do not know why my previous code was failing on linter, so if anyone have any idea, please share your thoughts in comments because I would like to know.

Reasons:
  • Blacklisted phrase (1.5): I would like to know
  • RegEx Blacklisted phrase (2.5): please share your
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: aFku

79293863

Date: 2024-12-19 10:15:34
Score: 1
Natty:
Report link

async function redirect() {

const url = 'https://stackoverflow.com/questions';
const fallbackUrl = 'https://stackoverflow.com/anotherpage';
try {
    const response = await fetch(url); 
    const isUrlValid = response.url.includes('/questions'); // Validate based on part of the URL or criteria
    const redirectUrl = isUrlValid ? url : fallbackUrl;
    document.location.href = redirectUrl; 
  } catch (error) {
    console.error('Error validating URL:', error.message);
    document.location.href = fallbackUrl; 
  }
}

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Imad Eddine Nouali

79293854

Date: 2024-12-19 10:12:33
Score: 2
Natty:
Report link

I am dumb. I didn't read the documentation carefully. They have mentioned in the documentation that:

MongoDB – Supports JPQL and Criteria queries, with some restrictions: joins, sub-selects, group by and certain database functions are not supported.

I have used FetchType.EAGER, which is making a complex query. I changed it to FetchType.LAZY and it is working now.

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

79293852

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

The issue is resolved by updating Visual Studio to version 17.12.3.

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

79293851

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

As quoted directly from the pyenv documentation:

If eval "$(pyenv virtualenv-init -)" is configured in your shell, pyenv-virtualenv will automatically activate/deactivate virtualenvs on entering/leaving directories which contain a .python-version file that contains the name of a valid virtual environment as shown in the output of pyenv virtualenvs (e.g., venv34 or 3.4.3/envs/venv34 in example above) . .python-version files are used by pyenv to denote local Python versions and can be created and deleted with the pyenv local command.

So adding the name of your virtual environment will solve your problem.

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

79293847

Date: 2024-12-19 10:10:33
Score: 2.5
Natty:
Report link

After hours on this code, I finally obtained the correct visual with everything implemented.

In power BI, please provide to deneb :

Find the code here in Vega.

{
  "$schema": "https://vega.github.io/schema/vega/v5.json",
  "background": "transparent",  // Transparent background
  "width": 360,
  "height": 71,
  "data": [
    {
      "name": "dataset",
      "transform": [
        {
          "type": "formula",
          "expr": "utcOffset('seconds', timer, datum.DST_ClockDiffBtwLocationAndLocalOffset)",
          "as": "adjustedTime"
        },
        {
          "type": "formula",
          "expr": "(hours(datum.adjustedTime) + minutes(datum.adjustedTime) / 60)",
          "as": "currentTime"
        },
        {
          "type": "formula",
          "expr": "hours(datetime(datum.SiteSupportStartFrom)) + minutes(datetime(datum.SiteSupportStartFrom)) / 60",
          "as": "startSupportTime"
        },
        {
          "type": "formula",
          "expr": "hours(datetime(datum.SiteSupportDayTo)) + minutes(datetime(datum.SiteSupportDayTo)) / 60",
          "as": "endSupportTime"
        },
        {
          "type": "formula",
          "expr": "(datum.startSupportTime + datum.endSupportTime) / 2",
          "as": "midSupportTime"
        }
      ]
    }
  ],
  "signals": [
    {
      "name": "timer",
      "update": "now()",
      "on": [
        {
          "events": {"type": "timer", "throttle": 1000},
          "update": "now()"
        }
      ]
    },
    {
      "name": "adjustedDate",
      "update": "timeFormat(utcOffset('seconds', timer, data('dataset')[0].DST_ClockDiffBtwLocationAndLocalOffset), '%Y-%m-%d')"  // Adjusted date using offset
    }
  ],
  "scales": [
    {
      "name": "xscale",
      "type": "linear",
      "domain": [0, 24],
      "range": [0, 350]
    }
  ],
  "marks": [
    {
      "type": "rect",  // Grey background spanning 24 hours
      "encode": {
        "enter": {
          "x": {"scale": "xscale", "value": 0},
          "x2": {"scale": "xscale", "value": 24},
          "y": {"value": 18},
          "y2": {"value": 32},
          "fill": {"value": "lightgrey"}
        }
      }
    },
    {
      "type": "rect",
      "from": {"data": "dataset"},
      "encode": {
        "enter": {
          "x": {"scale": "xscale", "field": "startSupportTime"},
          "x2": {"scale": "xscale", "field": "endSupportTime"},
          "y": {"value": 15},
          "y2": {"value": 35},
          "fill": {"value": "lightgreen"}
        }
      }
    },
    {
      "type": "text",  // Text in the middle of the green rectangle
      "from": {"data": "dataset"},
      "encode": {
        "enter": {
          "x": {"scale": "xscale", "field": "midSupportTime"},
          "y": {"value": 25},
          "text": {"value": "IT Site Support hours"},
          "fill": {"value": "black"},
          "align": {"value": "center"},
          "baseline": {"value": "middle"},
          "fontSize": {"value": 10},
          "fontWeight": {"value": "bold"}
        }
      }
    },
    {
      "type": "rule",
      "from": {"data": "dataset"},
      "encode": {
        "enter": {
          "x": {"scale": "xscale", "field": "currentTime"},
          "y": {"value": 10},
          "y2": {"value": 45},
          "stroke": {"value": "red"},
          "strokeWidth": {"value": 2}
        },
        "update": {
          "x": {"scale": "xscale", "field": "currentTime"}
        }
      }
    },
    {
      "type": "text",
      "from": {"data": "dataset"},
      "encode": {
        "enter": {
          "x": {"scale": "xscale", "field": "currentTime"},
          "y": {"value": 8},  // Positioned near the red bar
          "align": {"value": "center"},
          "dy": {"value": 1},
          "fontSize": {"value": 10}
        },
        "update": {
          "text": {
            "signal": "timeFormat(utcOffset('seconds', timer, datum.DST_ClockDiffBtwLocationAndLocalOffset), '%H:%M')"
          },
          "fill": {
            "signal": "datum.currentTime >= datum.startSupportTime && datum.currentTime <= datum.endSupportTime ? 'darkgreen' : 'darkred'"
          }
        }
      }
    }
  ],
  "axes": [
    {
      "orient": "bottom",
      "scale": "xscale",
      "title": {"signal": "adjustedDate"},  // Dynamic title for the adjusted date
      "tickCount": 24
    }
  ]
}
Reasons:
  • RegEx Blacklisted phrase (2.5): please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dgnoyon

79293837

Date: 2024-12-19 10:07:31
Score: 5
Natty: 4
Report link

Have you fix the problem? Recently I met the same problem with simplesim.

Reasons:
  • RegEx Blacklisted phrase (1.5): fix the problem?
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: chunlin yang

79293835

Date: 2024-12-19 10:05:31
Score: 1.5
Natty:
Report link

As our friend said in comments, upgrading

react-scripts to >5

!

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

79293815

Date: 2024-12-19 09:59:29
Score: 2.5
Natty:
Report link

I think I understand the source of the problem. I am using a "stacked line chart". In a stacked line chart the data is stacked. I should use the "default line chart".

Like this one here:

https://flutter.syncfusion.com/#/cartesian-charts/chart-types/line/default-line-chart

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mücahit Zengin

79293811

Date: 2024-12-19 09:57:28
Score: 0.5
Natty:
Report link

Found a solution. Because of subfolder having common names i decided to do the following:

  1. Update the sys.path to only include these:
sys.path.insert(0, os.path.abspath('../../feature_service'))
sys.path.insert(0, os.path.abspath('../../feature_service/feature'))
## Exclude `extract` intentionally
#sys.path.insert(0, os.path.abspath('../../feature_service/extract'))
  1. Update the sub-.rst files under extract/modules.rst to locate the directories properly, example adding a prefix extract. like following:
.. automodule:: extract.app_packages.v0_1.extract
   :members:
   :undoc-members:
   :show-inheritance:

.. automodule:: extract.app_packages.v0_1
   :members:
   :undoc-members:
   :show-inheritance:

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

79293810

Date: 2024-12-19 09:56:27
Score: 6 🚩
Natty: 4.5
Report link

i got stuck on this.calendar = eval('cal' + String(this.roomInt));

debug result is : Error
ReferenceError: cal is not defined eval
Submission @ Code.gs:33 main @ Code.gs:79

can u help me to check, how cal is not defined

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): can u help me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Fhe Dargo

79293809

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

The detailed activity log you see on the UI/web they have been formatted from the API response you are showing. All the data you require to present the log as you wish is available in the API response: See the image: enter image description here

You can map the response to any format you wish.

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

79293799

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

You can add config to application.properties like so :

spring.cloud.openfeign.client.config.default.read-timeout=300000
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: DingHao

79293796

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

You can run a command using the ansible.builtin.command module. https://docs.ansible.com/ansible/latest/collections/ansible/builtin/command_module.html

Example:

OR

https://docs.ansible.com/ansible/latest/collections/ansible/builtin/command_module.html#examples

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

79293788

Date: 2024-12-19 09:49:25
Score: 3
Natty:
Report link

Just wanted to add, I use Samsung secure folder (the old Samsung Knox offspring, the grandpa of google-Samsung "work profile"). Later I installed Island and created a "work profile" with its own space in the same Samsung phone. So YES you can have a "dual" work profile in this way.

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

79293786

Date: 2024-12-19 09:48:25
Score: 3
Natty:
Report link

if you send array = [] from ajax to c# controller it show array =null in C# method not count =0 to fix this []='[]'

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

79293776

Date: 2024-12-19 09:46:24
Score: 3.5
Natty:
Report link

The above answer is correct .but the image got removed. so that im creating one more image . Docker image for back up path

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

79293767

Date: 2024-12-19 09:43:24
Score: 3
Natty:
Report link

in the browser replace localhost to 127.0.0.1 IN AGNULAR LIKE THIS http://127.0.0.1:4200/

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

79293766

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

I don't know whether the source of vscode.dev is available anywhere, but have a look at openvscode-server, which does almost exactly the same:

https://github.com/gitpod-io/openvscode-server

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

79293754

Date: 2024-12-19 09:38:22
Score: 3.5
Natty:
Report link

in my case restart the vs code then it work correctly.

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

79293744

Date: 2024-12-19 09:36:22
Score: 3
Natty:
Report link

One approach can be save your Javascript code in AWS Lambda. It is useful in the case of if your javascript runs for very short duration. for details https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html

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

79293742

Date: 2024-12-19 09:35:20
Score: 6.5 🚩
Natty:
Report link

How have you configured Keycloak with Trino?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How have you
  • Low reputation (1):
Posted by: david

79293739

Date: 2024-12-19 09:35:20
Score: 2.5
Natty:
Report link

the first step is to locate your project folder

then run these commands one by one

npm uninstall react react-dom

then

npm install react@18 react-dom@18

then

npm install --no-audit --save @testing-library/jest-dom@^5.14.1 @testing-library/react@^13.0.0 @testing-library/user-event@^13.2.1 web-vitals@^2.1.0

then

npm start

here what we are doing is uninstalling react19 and installing react18.

or you can go with this YouTube link: https://youtu.be/mUlfo5ptm1o?si=hYHTwc7hApEXzPX5

Reasons:
  • Blacklisted phrase (1): youtu.be
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sai Teja Yelubolu

79293727

Date: 2024-12-19 09:32:19
Score: 1.5
Natty:
Report link

I have reviewed your code and made some changes. I imported tf_keras and used tf_keras instead of keras in the code, and it works. Please refer to the gist for your reference.

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

79293724

Date: 2024-12-19 09:29:19
Score: 3
Natty:
Report link

Yes JitPack sometimes has downtimes, in these cases status code 521 is returned. The same issue is happening again since yesterday.

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

79293722

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

If you only encounter a slow build in Rider, have a try with disabling the ReSharper build (enabled default), to see if it helps.

enter image description here

ReSharper build is a kind of "wrapper" of dotnet build, will try to utilize all CPU resources to accelerate building process.

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

79293721

Date: 2024-12-19 09:28:19
Score: 1
Natty:
Report link

This is how i retrieve the PDDocument

val pdf = this::class.java.classLoader.getResourceAsStream("pdf/role.pdf")
        ?: throw FileNotFoundException("PDF template not found at pdf/role.pdf")
    val pdfTemplate = Loader.loadPDF(pdf.readAllBytes()).

Note that the other properties like newMail are set properly

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

79293716

Date: 2024-12-19 09:27:18
Score: 3.5
Natty:
Report link

I installed it successfully using pip install python-magic.

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

79293712

Date: 2024-12-19 09:26:18
Score: 2
Natty:
Report link

If you do it by looping with parallel executions, the variable might be overwritten by other parallel executions. To avoid this, you need to deactivate parallel executions or execute another pipeline in the loop. The secondary pipeline needs the parameters used in the loop and won't have them overwritten by parallel loops.

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

79293708

Date: 2024-12-19 09:25:18
Score: 1.5
Natty:
Report link
var i  = 1...10

i.first
    {print($0)
        if $0>5 {
            return true
        }
    return false
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vadim Bashurov

79293694

Date: 2024-12-19 09:22:17
Score: 3
Natty:
Report link

For Simulator SDK Remove the Link Binary with Libraries in Build Phases of NativeiOS Project.

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

79293689

Date: 2024-12-19 09:19:16
Score: 2.5
Natty:
Report link

I meet this same situation because i forgot to switch my wallet to devnet mode, this is very basic issue, just check if the destinationAccount/source account has been succesfully derived or not

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

79293687

Date: 2024-12-19 09:19:16
Score: 0.5
Natty:
Report link

This warning is React-related and usually occurs when components are passed to a React context or provider, and React detects changes to children in the context when they remain the same objects.

To avoid this problem, make sure you don't modify context or provider objects directly, as React expects objects to remain unchanged if their references haven't changed.

If you are using a React Context or Provider, make sure that the values you provide remain unchanged or, if they change, create new objects or values to avoid this error.

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

79293680

Date: 2024-12-19 09:15:16
Score: 1.5
Natty:
Report link

In my experience, Anchor 0.30 is compatible with solana SDK V2. but mixing v1 and v2 crates within the same project can lead to complications. in other words, integrating both SDK V1 and V2 in one project happen some challenge. This is due to potential conflicts and differences between the two versions, which may cause compilation issues. So I suggest you to use any one version in one project.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: superdev-1018

79293672

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

Just found a new fork, ProDotNetZip, but only for .NET Standard 2.0

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

79293665

Date: 2024-12-19 09:10:14
Score: 0.5
Natty:
Report link

I had tried different ways and the solution is: Changing the version of Python.

By the time, my python-version was 3.10 and some other packages were not supported either, and raised same error; So I installed version 3.9.5 and everything works just fine.

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

79293655

Date: 2024-12-19 09:08:14
Score: 0.5
Natty:
Report link

As of now BigQuery UDFs do not support browser-specific APIs like URL .If you want that feature you can open a new Feature request as per your requirements on the public issue tracker describing your issue and vote [+1] and Eng team will look on the feature for future implementation

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

79293647

Date: 2024-12-19 09:06:13
Score: 3
Natty:
Report link

If you only need the estimate all browsers provide that API, reference: https://developer.mozilla.org/en-US/docs/Web/API/StorageManager/estimate

Here's code for that: https://developer.mozilla.org/en-US/play?id=qHEOFcbSol%2Bevp8cXcV4AHeiMNC9eg1hPfouaBm%2Fdv3CX6MmH3pAqbE018v9o2C0XOIUTTJe%2BTlzxxbC

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

79293646

Date: 2024-12-19 09:05:13
Score: 2.5
Natty:
Report link

Had the same error for setting up certificate authentication with winrm. Found the issue was because there is a conflicting certificate on the trusted root store. Removed this from the registry key if it exists: Remove-ItemProperty -Path registry::HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL -Name ClientAuthTrustMode

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

79293636

Date: 2024-12-19 09:02:12
Score: 3
Natty:
Report link

Use EXCELOPENXML instead of EXCEL for reportExecutionService.Render method in your application code.

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

79293630

Date: 2024-12-19 09:01:12
Score: 3
Natty:
Report link

I still don't understand why I simply can't get the GetGoogleIdOption to work but if I use the GetSignInWithGoogleOption instead, everything seems to be working as expected. All I needed to do was changing this:

val googleIdOption = GetGoogleIdOption.Builder()
    .setFilterByAuthorizedAccounts(false)
    .setServerClientId(getString(R.string.default_web_client_id))
   .setNonce(hashedNonce)
    .build()

...into this:

val googleIdOption = GetSignInWithGoogleOption.Builder(getString(R.string.default_web_client_id)).build()

I hope this answer can help other devs that are facing the same problem because (sorry Google) the documentation is NOT very clear... at all.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same problem
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nicola Salvaro

79293626

Date: 2024-12-19 09:00:11
Score: 8.5 🚩
Natty: 4.5
Report link

I'm also having a similar issue, and the error on my side is as follows:

missing Semmle DVL log content for driver 'xxx' with the OS architecture 'x64'.

Is there any progress on your situation?

Reasons:
  • Blacklisted phrase (1): Is there any progress
  • Blacklisted phrase (1): Is there any
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm also having a similar issue
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Mirxat Xawkat

79293622

Date: 2024-12-19 08:58:10
Score: 2
Natty:
Report link

I think loremflickr is in maintenance, i had a dummy list of items generated with faker and it worked fine until yesterday, now all images showing a black cat lazying around

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jonathan Mordecayov

79293617

Date: 2024-12-19 08:56:10
Score: 0.5
Natty:
Report link

In case of React Native app, make sure to install node_modules.

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

79293614

Date: 2024-12-19 08:54:09
Score: 3
Natty:
Report link

Make sure that the role column in your database or any datasource also has the prefix "ROLE_"(make sure they are stored with the prefix also)

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

79293609

Date: 2024-12-19 08:52:09
Score: 2.5
Natty:
Report link

Use the library and follow the instructions as per provided in library link references:

  1. Composer command: composer require spatie/ics

    https://packagist.org/packages/spatie/icalendar-generator

OR

  1. Composer command: composer require eluceo/ical

    https://packagist.org/packages/eluceo/ical

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

79293600

Date: 2024-12-19 08:46:08
Score: 1.5
Natty:
Report link

You're not wrong in thinking that your model is associating the yellow/red color combination to presence of this object in the image. From your dataset, it seems you have already added some augmentations to your train data (rotations, brightness etc.). Your model may work well with positive examples but it also needs negative examples. You have to train your model to understand what is NOT this object - similar to the yellow box in your 3rd picture. You don't have to specifically label them as negative example, just having such objects in your image in the background or near the object that you want to detect will suffice. When trained, the model will optimize to not detect these as the object of interest.

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

79293587

Date: 2024-12-19 08:42:07
Score: 1.5
Natty:
Report link

You can use kyanos: https://github.com/hengyoush/kyanos.

./kyanos watch --pid 123
./kyanos watch --comm java
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 徐長卿

79293586

Date: 2024-12-19 08:42:07
Score: 5.5
Natty:
Report link

"@Ben S" Could you elaborate on the use of the calibration file? I am also using the python solution provided by @Rotem. I end up with an array of int16 values, but interpolating against the .pr calibration file does not yield the correct temperatures when I check against the PIX Connect temperatures. Using the offset values I've found in the .xml files also does not get me any closer to the right temperature.

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you elaborate
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Rotem
  • Low reputation (1):
Posted by: John G.

79293585

Date: 2024-12-19 08:42:05
Score: 10
Natty: 7
Report link

I am also facing the same issue with Model No: ELITE 30B-2, Make: SECURE. I am getting "Failed, Response Code: E2" on the serial monitor. The settings are as follows: Parity Bit: None, Baud Rate: 9600, Stop Bit: 1. How can I resolve this issue?

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

79293580

Date: 2024-12-19 08:40:05
Score: 2
Natty:
Report link
from django.db import models
from django.db.models import F


class Square(models.Model):
    side = models.IntegerField()
    area = models.GeneratedField(
        expression=F("side") * F("side"),
        output_field=models.BigIntegerField(),
        db_persist=True,
    )

https://docs.djangoproject.com/en/5.1/releases/5.0/#database-generated-model-field

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

79293570

Date: 2024-12-19 08:37:04
Score: 2
Natty:
Report link

I have resolved this issue.

don't use su user, use su - user

su user:

Switches to the user without starting a login shell. Inherits the current user's environment.

su - user:

Switches to the user and starts a login shell. It loads the full environment of the user, including .bash_profile.

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

79293568

Date: 2024-12-19 08:37:04
Score: 2.5
Natty:
Report link

I faced a similar issue in my Flutter project after adding the video_thumbnail package. To fix it, I added a namespace in the app/Build.gradle file and updated all the Flutter packages to their latest versions. This resolved the problem.

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

79293567

Date: 2024-12-19 08:37:04
Score: 1.5
Natty:
Report link

Ubuntu 16.04. The flags didn't work for me. Configuring ldconfig helped:

1. sudo nano /etc/ld.so.conf.d/lib.conf
write path to ssl lib: "/usr/local/ssl"
2. sudo ldconfig
3. pyenv install 3.11 
4. Profit!

May need to install openssl from source:

  1. wget http://www.openssl.org/source/openssl-3.0.7.tar.gz (because https://www.openssl.org/news/secadv/20221101.txt )
  2. tar -xzf openssl-3.0.7.tar.gz
  3. make && sudo make install
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Андрей Захаров

79293556

Date: 2024-12-19 08:33:03
Score: 3.5
Natty:
Report link

I use vue3 and got the same problem. Sloved through disabled vutur Ext in VScode And recommand install this extension https://marketplace.visualstudio.com/items?itemName=Vue.volar vue-official

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

79293551

Date: 2024-12-19 08:32:02
Score: 4
Natty: 4
Report link

Is this happening again ? I am receiving the same issue.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Is this
  • Low reputation (1):
Posted by: Samer Nasif

79293542

Date: 2024-12-19 08:28:01
Score: 0.5
Natty:
Report link
Array.prototype.reduce(callback, initialValue)

You simply didn't set an initial value (second argument) to .reduce. Therefore, the method automatically takes the first element as the accumulator (first argument) of the callback.

Refer to the docs

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

79293534

Date: 2024-12-19 08:26:00
Score: 1.5
Natty:
Report link
const searchParams = useSearchParams();
const hash = useMemo(() => typeof window !== 'undefined' ? window.location.hash.slice(1) : null, [searchParams])

console.log(hash)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: S. Gromov

79293531

Date: 2024-12-19 08:25:00
Score: 0.5
Natty:
Report link

Expo Router works with file-based routing, much like traditional websites. The index file is the default entry into your app / a specific directory.

If you for whatever reason would like to use "page1" as your default entry file instead, there are two ways to accomplish this:

  1. The less hacky way. You could make an index file that returns a Redirect to "/page1"
  2. You could use the unstable settings to redefine the Expo Router behaviour to your expectation. You can set initialRouteName to "page1" on your stack and this should cause it to act like the index.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Wilhelm Erasmus