79086313

Date: 2024-10-14 13:22:12
Score: 0.5
Natty:
Report link

Solved, I had to fix my RetrofitInstance class to include JSON parsing

object RetrofitInstance {

    fun getInstance(): WeatherAPI {
        val retrofit = Retrofit.Builder()
            .baseUrl(BASE_URL)
            .apply {
                    addConverterFactory(
                        Json { ignoreUnknownKeys = true }
                            .asConverterFactory("application/json".toMediaType())
                    )
            }
            .build()

        return retrofit.create(WeatherAPI::class.java)
    }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: James Taufa

79086307

Date: 2024-10-14 13:20:12
Score: 1
Natty:
Report link

Without modifying the function itself:

onclick="(async () => { await req('name=vmode&value=full','POST','/cookie'); window.location.href = this.href; })()"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gabriel Beauchemin-Dauphinais

79086300

Date: 2024-10-14 13:18:12
Score: 1.5
Natty:
Report link

The reason is that your controller is annotated with @Controller. You must use @RestController annotation to make your controller return JSON.

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

79086299

Date: 2024-10-14 13:18:11
Score: 6 🚩
Natty: 4
Report link

you can follow this link to solved it: https://www.cubebackup.com/docs/tutorials/gcp-allow-service-account-key-creation/

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jia cheney

79086291

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

When i press a esc key it doesn't work because the cursor is on the name variable. any clue to solve that?

Why press an esc key it doesn't work probably is that scanf() function is blocking. What you can try to read characters one by one, check if the ESC key was pressed, and then build the input string from these characters.

#include <stdio.h>
#include <conio.h>

int main() {
    char name[100];
    int i = 0;
    printf("(press esc to exit)\n");
    printf("Enter Your Name: ");

    while (1) {
        if (_kbhit()) {  
            char c = _getch(); 

            // Check for ESC key
            if (c == 27) {
                printf("\nExit\n");
                break;
            }

            // Handle backspace (if needed)
            if (c == 8 && i > 0) {
                printf("\b \b");  // Move cursor back, print space, move back again
                i--;
            } else if (c == '\r' || c == '\n') {  // Check for Enter key to finish input
                name[i] = '\0';
                printf("\nYou entered: %s\n", name);
                break;
            } else if (i < sizeof(name) - 1) {
                name[i++] = c;
            }
        }
    }

    return 0;
}
Reasons:
  • RegEx Blacklisted phrase (1.5): solve that?
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): When i
  • Low reputation (0.5):
Posted by: Shelton Liu

79086277

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

No one has offered a succinct, modern solution that keeps the resulting date as a Date object:

Date startDate = ...
endDate = Date.from(startDate.toInstant().atZone(ZoneId.systemDefault())
    .plusYears(1).toInstant());
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Matt

79086271

Date: 2024-10-14 13:10:09
Score: 3.5
Natty:
Report link

This doesn't work for me. There is some DOM thing so that .data("option", "value) doesn't work. It is only an internal storage process, unable to affect the data-value attr of the element. If you want future access, I prefer using .attr("data-option", "value"). That will be much better.

Reasons:
  • RegEx Blacklisted phrase (2): doesn't work for me
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Albair

79086264

Date: 2024-10-14 13:07:08
Score: 1
Natty:
Report link

Here's the step-by-step process of how Visual Studio creates the obj and bin folders when you build a project:

  1. Source Code Compilation (Creates obj folder first) First, Visual Studio compiles your code files into intermediate files (like .obj files). These temporary files are stored in the obj folder. It also stores additional project metadata and information to keep track of the build process. The obj folder is used by Visual Studio to incrementally compile your project, meaning it only recompiles the parts of your code that have changed.
  2. Linking and Final Output (Creates bin folder next) Second, once the intermediate files are ready, Visual Studio links them together to create the final output (the executable .exe or library .dll). This final output is saved in the bin folder. Depending on whether you're in Debug or Release mode, it will place the final files in either the bin\Debug or bin\Release subfolder.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sachin Baghel

79086263

Date: 2024-10-14 13:07:08
Score: 5
Natty: 7
Report link

Any update with the idea of getting the .pdf directly ?? I am stuck with that rn !!

Reasons:
  • RegEx Blacklisted phrase (1.5): I am stuck
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Swagnik

79086257

Date: 2024-10-14 13:06:07
Score: 1
Natty:
Report link

Open console, and run python command

~/mysite $ python
>>> from app import db, app
>>> with app.app_context():
...     db.create_all()
... 
>>> exit()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: imvickykumar999

79086255

Date: 2024-10-14 13:06:07
Score: 0.5
Natty:
Report link

Ok, I found a solution with the "debounce", but I had applied it wrongly because directly on an entity object.

In the twig

{{ form_row(form.operationDate, {'attr': { 'data-model': 'debounce(200)|account_transaction.operationDate' }} ) }}

My mistake was the wrong naming of the data-model. It should point to the object first and then the attribute (and not directly to the attribute).

Also, the value of debounce must be large enough to wait until the input is complete, but also too large for the event to be passed on anyway. In my case, I chose a value of 200 ms, after a few tries.

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

79086238

Date: 2024-10-14 13:01:06
Score: 3
Natty:
Report link

I'm an idiot. In my angular app.module.ts it was: allowedList: ["http://localhost:3000/*"],

Deleted "*" and it works now.

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

79086233

Date: 2024-10-14 12:58:05
Score: 3
Natty:
Report link

If Renge's answer is not working for you. Try using type.FullName instead. Fixed it for me in Unity 6.

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

79086232

Date: 2024-10-14 12:58:05
Score: 0.5
Natty:
Report link

If you have created your TableView programmatically you can make it grouped in the initialser itself. So the section header won't be sticky.

let tableView = UITableView(frame: .zero, style: .grouped)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anees

79086223

Date: 2024-10-14 12:56:05
Score: 3
Natty:
Report link

If you have the option to create a 'Package' but need to replace it with the option to create a 'Directory,' follow the tip from screenshot №1. If you need to do the opposite, from 'Directory to Package,' screenshot №2 will help you.

Package to Directory

Directory to Package

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

79086217

Date: 2024-10-14 12:53:04
Score: 4
Natty:
Report link

how is your OpenAPI spec defined? You need to define the security scheme as being a client_credentials oauth flow

That said... it looks like the generator your using does't have support for Oauth2 client credentials

Disclaimer that I work for the company, but Speakeasy generates a pydantic-based client, and does have support for OAuth2. You can maintain one SDK free. I would give it a look.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how is you
  • Low reputation (1):
Posted by: Nolan Di Mare Sullivan

79086215

Date: 2024-10-14 12:53:04
Score: 2
Natty:
Report link

This could be caused by one of two factors:

  1. You have an older version of OS, which does not have required drivers. Check https://playwright.dev/python/docs/intro#system-requirements

  2. Incorrect browser path, try:

    export PLAYWRIGHT_BROWSERS_PATH=$HOME/pw-browsers
    playwright install chromium

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

79086204

Date: 2024-10-14 12:51:03
Score: 0.5
Natty:
Report link

I created this script at /usr/local/bin/gzip:

#!/bin/sh -eu
exec /usr/bin/gzip "$GZIP" "$@"

It makes the environment variable work like before.

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

79086202

Date: 2024-10-14 12:49:03
Score: 1.5
Natty:
Report link

The issue was related to the include sentence in ssd_config: Include /etc/ssh/sshd_config.d/*.conf

In distribtions prior to Ubuntu 24 there was no any file in that location by default, but in Ubuntu 24 there is a file called 60-cloudimg-settings.conf with the following content: PasswordAuthentication no

This was originating all my configuration problems.

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

79086189

Date: 2024-10-14 12:46:02
Score: 1.5
Natty:
Report link

I found that wkhtmltopdf v0.12.6-1 only works with page-break-after:always; and not its replacement[1] break-after:always;

[1]https://developer.mozilla.org/en-US/docs/Web/CSS/page-break-after

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

79086187

Date: 2024-10-14 12:44:02
Score: 1
Natty:
Report link

I found the answer here https://github.com/JLarky/bun-netlify (after taking half of a day to search)

Thanks for JLarky note: When you run bun dev it will use bun just as a script runner, and your vite will actually be running in Node. But if you run bun --bun dev if will use Bun JavaScript runtime to run Vite.

My code run correctly with bun --bun run ./src

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Minh Toan

79086185

Date: 2024-10-14 12:43:01
Score: 2
Natty:
Report link

if you're using TypeScript you can add that checking to global.d.ts

import en from './messages/en.json';

type Messages = typeof en;

declare global {
  interface IntlMessages extends Messages {}
}

https://next-intl-docs.vercel.app/docs/workflows/typescript

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

79086182

Date: 2024-10-14 12:43:01
Score: 2
Natty:
Report link

You can use PHP Intelephense extension

https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (2):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cuongvv

79086177

Date: 2024-10-14 12:41:01
Score: 0.5
Natty:
Report link

On some old projects running npm install with legacy peer dependencies flag helps me

npm install --legacy-peer-deps
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: osynavets

79086172

Date: 2024-10-14 12:39:01
Score: 3
Natty:
Report link

Fixed this issue , i have added include property in nsis config (package.json) and created installation.nsh where i added code for close the application and clear the data , [ but this is only supported for nsis not for msi ]

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

79086166

Date: 2024-10-14 12:36:00
Score: 1.5
Natty:
Report link

This issue was caused by a bug introduced in version 4.16.2 of Astro.

Full bug report and linked pull request with fix is available here: https://github.com/withastro/astro/issues/12210

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

79086158

Date: 2024-10-14 12:32:59
Score: 0.5
Natty:
Report link

In react 18, They removed children as a default prop on the FC type. Please use below code to fix the issue.

Existing Code:
export const ContextClass: React.FC = ({children}) => {}

Improved Code:
export const ContextClass = ({children}: {children: React.ReactNode}) => {}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sazzadhusen Iproliya

79086157

Date: 2024-10-14 12:32:59
Score: 7.5 🚩
Natty: 5.5
Report link

Any update. How you fixed it ?

Reasons:
  • RegEx Blacklisted phrase (1.5): fixed it ?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sam

79086154

Date: 2024-10-14 12:31:58
Score: 1.5
Natty:
Report link

The error is confusing. I had the same "puppet" error when my SSL private key needed a passphrase. After using a SSL key without a passphrase there was no error.

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

79086149

Date: 2024-10-14 12:30:58
Score: 1
Natty:
Report link

As I know, expo-file-system only allows access to app specific directories, not system wide folders like Pictures. expo-media-library is the correct approach for accessing device media files outside your app’s sandbox. It is worth a try imo.

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

79086148

Date: 2024-10-14 12:30:58
Score: 5.5
Natty: 5.5
Report link

I am curious, can't this be achieved by MERGE?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Danysh Mushtaq

79086147

Date: 2024-10-14 12:30:58
Score: 1
Natty:
Report link

ThreadPoolExecutor is the problem as access to the identical objects is locked by the GIL. Substituting with ProcessPoolExecutor unlocks the situation. Speedup is obtained albeit at the cost of memory overhead linked to passing max_workers times the dataset.

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

79086145

Date: 2024-10-14 12:29:57
Score: 0.5
Natty:
Report link

On my side i noticed that somehow I referenced two different connectionStrings and only one was used. Adding another connectionString solved this issue, but you can have one connectionString and change on the reference pages for that connectionString because two will just complicate things and affect the performance of your application. Hope this helps someone.

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Pidoski

79086137

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

For me it was a problem with the linked instance, it did not belong to the same security group, so had to make a change.

This medium article helped me understand what was wrong https://nadtakan-futhoem.medium.com/aws-load-balancer-503-service-temporarily-unavailable-e1e91c0dfcdb

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

79086134

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

no solution available online for this question worked for me. I had to create an API and made necessary config changes for it to work. Hope it helps to anyone looking for a solution and save their time, since I already gave it a lot of time.

Reasons:
  • Whitelisted phrase (-1): Hope it helps
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shikhar

79086127

Date: 2024-10-14 12:22:55
Score: 1
Natty:
Report link

Where did you find that API apex.util.makeApplicationUrl ? The official documentation does not list it which means it's most probably not supported. AFAIK an apex url cannot be constructed in javascript with proper security since the checksum needs to be generated on the serverside. As a workaround you could create a callback process that generates the url using apex_page.get_url and invoke that process in javascript using apex.server.process.

An alternative would be to just submit the page and use a branch. In the dynamic action using apex.page.submit() and branch to page 82. Set a page item on your current page to the id that you need to redirect to and use the url builder of the branch to set it on page 82.

Reasons:
  • RegEx Blacklisted phrase (3): did you find that
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Where did you find that
  • High reputation (-2):
Posted by: Koen Lostrie

79086121

Date: 2024-10-14 12:20:55
Score: 1.5
Natty:
Report link

You can also migrate to GraalPy, which is JVM based Python 3 implementation, which can also run Python extensions and has a JIT compiler.

More details:

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

79086118

Date: 2024-10-14 12:18:54
Score: 0.5
Natty:
Report link

Look through your package.json file if main exists and is set to your app main file eg. App.js if not then add it below the version "main": "App.js"

Replace App.js with whatever the name you gave the main file where the App Registration exists.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: joseph Ofori Tenkorang

79086117

Date: 2024-10-14 12:17:54
Score: 1
Natty:
Report link

Even now, in 2024, it is a relevant question. I however suspect that appengine somehow operates on a region level, not a zone level. While allocated instace might be in one zone or another, it is either random or unknowable. At least I failed to find in google documents any mention of a zone.

See this stackoverflow answer - it basically says the same. Are Google App Engine Instances Multi-AZ by default?

This means your best bet is to choose any zone of the correct region, and since it is the same data center, your timing will be ok. Not sure how it impacts your ingress pricing though.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • No code block (0.5):
Posted by: Michael

79086102

Date: 2024-10-14 12:12:53
Score: 2
Natty:
Report link

An interesting thing to note here is that the certificate sharing link is working for iOS app and web. This is an error in Android's LinkedIn app in the implementation of this deep link. I am also sharing a screenshot of the error to help debug this issue.

This does not work on iOS! It opens Add experience tab instead of Add license or certification.

And I haven't found any solutions or explanations anywhere.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Andrii Kryvulko

79086099

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

This is a known issue in pgloader that occurs when reset sequences option is run against a case-sensitive column. The fix isn't merged yet though: https://github.com/dimitri/pgloader/pull/1509

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

79086097

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

Bind a variable to the input's checked

And toggle through the button or a tag with onclick

let drawerState = $state(false)

<input id="navbar-drawer" type="checkbox" class="drawer-toggle" bind:checked={drawerState} />

<NavbarItem {name} {href} onclick={() => (drawerState = false)} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: G3N

79086079

Date: 2024-10-14 12:05:51
Score: 3
Natty:
Report link

You can simply use: "crop=720:ih:600:0,scale=720:-2,pad=720:1280:(ow-iw)/2:(oh-ih)/2" and it will work.

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

79086075

Date: 2024-10-14 12:04:51
Score: 1.5
Natty:
Report link

JBeret tries to detect if the tables already exist, and if not then it proceeds to create tables. See here. If you can make sure this conditioin is true (tables exist), then JBeret will skip the db init part.

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

79086067

Date: 2024-10-14 12:01:49
Score: 1.5
Natty:
Report link

Loading only specified modules worked for me. This may not be the best answer if you actually need symbols.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Harry Smith

79086060

Date: 2024-10-14 11:59:49
Score: 4
Natty: 4
Report link

Check if your Client ID and Secret is expired.

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

79086053

Date: 2024-10-14 11:58:48
Score: 4.5
Natty:
Report link

@nikunj-kakadiya This is not Spark-specific. This is Databricks Unity Catalog specific.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @nikunj-kakadiya
  • Single line (0.5):
  • Looks like a comment (1):
Posted by: Ganesh Chandrasekaran

79086052

Date: 2024-10-14 11:57:48
Score: 2
Natty:
Report link

Incorporating a pause and resume feature for the Azure Conversation Transcriber requires handling the stop_transcribing_async and start_transcribing_async methods appropriately. Your current approach stops and restarts the transcriber but does it in a way that might cause issues with the state management and the audio queue.

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

79086046

Date: 2024-10-14 11:55:47
Score: 1
Natty:
Report link

I am not sure how the og space invaders guys have done it but, My extrapolation from the pygame knowledge that I have is, create a 2d array with 255 color value as base and 0s as transparent, make it as an pixel array object.

whenever you want to blit this array, you can convert it to surface using make_surface() function. create a mask out of this surface and use overlap method to detect which index in the 2d array the collision happens, with a radius r make the cells 0s inside the circle with point of collision as center. Now in the next iteration, use this modified 2d array to create surface and blit it.

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

79086039

Date: 2024-10-14 11:53:47
Score: 1
Natty:
Report link

Most all barcode scanners emulate as an USB keyboard, so you need to be looking for how to capture keyboard inputs.

Check out global keyboard hook/Raw input Capture keyboard input. Or search for other answers about global keyboard capture.

If you want to use the users normal keyboard elsewhere , then you need to get creative. I've used luamacros to do this before, however its been discontinued.

The key is that luamacros can driver inject based on vendor id , so it can capture only the keyboard of the barcode scanner.Its not a pretty solution at all cause you need to use a different language( Lua ) and you need to babysit it too( start it up , make sure it does not lose its binding etc) and also integrate it with your application.

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

79086036

Date: 2024-10-14 11:52:46
Score: 0.5
Natty:
Report link

This works:

function createInstance<D extends TypeDiscriminator>(
  discriminator: D,
  partial: Partial<Extract<TypeX, { discriminator: D }>>
) {}

It picks the right type based on the discriminator given.

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

79086025

Date: 2024-10-14 11:47:45
Score: 1.5
Natty:
Report link
Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kyviii W

79086021

Date: 2024-10-14 11:45:45
Score: 4.5
Natty:
Report link

UTL_MATCH doesn't run in parallel by default, see this answer for details:

https://stackoverflow.com/a/79085866/6925323

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Jörg

79085997

Date: 2024-10-14 11:39:43
Score: 1.5
Natty:
Report link

For anyone having the same problem: Following is a function that will set highlight format on any matching node with the words array that you have. call this inside a useEffect hook. you can provide the words as array of strings. you can change the style for highlighted text with your CSS outside of the javascript.

 const highlightWords = () => {
      editor.update(() => {
        const root = $getRoot()
        const textNodes: TextNode[] = []

        // Traverse all nodes to find text nodes
        root.getChildren().forEach((node) => {
          if ($isTextNode(node)) {
            textNodes.push(node)
          } else if ($isElementNode(node)) {
            node.getChildren().forEach((child) => {
              if ($isTextNode(child)) {
                textNodes.push(child)
              }
            })
          }
        })

        // Process each text node
        textNodes.forEach((textNode) => {
          let text = textNode.getTextContent()
          let newNodes: TextNode[] = []
          let lastIndex = 0

          words.forEach((word) => {
            const regex = new RegExp(`\\b${word}\\b`, 'gi')
            let match

            while ((match = regex.exec(text)) !== null) {
              const start = match.index
              const end = start + word.length

              // Add text before the match
              if (start > lastIndex) {
                newNodes.push($createTextNode(text.slice(lastIndex, start)))
              }

              // Add highlighted text
              const highlightedNode = $createTextNode(text.slice(start, end))
              highlightedNode.setFormat('highlight')
              newNodes.push(highlightedNode)

              lastIndex = end
            }
          })

          // Add remaining text
          if (lastIndex < text.length) {
            newNodes.push($createTextNode(text.slice(lastIndex)))
          }

          // Replace the original node with new nodes
          if (newNodes.length > 0) {
            textNode.replace(newNodes[0])
            for (let i = 1; i < newNodes.length; i++) {
              newNodes[i - 1].insertAfter(newNodes[i])
            }
          }
        })
      })
    }

What is does is that checks for all matching nodes and goes inside a loop one by one of the nodes and checks the text of the node with the word you are looking for.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having the same problem
  • Low reputation (0.5):
Posted by: Reza

79085994

Date: 2024-10-14 11:37:42
Score: 2.5
Natty:
Report link

You should run flutter upgrade and flutter pub upgrade.

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

79085993

Date: 2024-10-14 11:37:42
Score: 4.5
Natty: 4.5
Report link

There is a Google guide on this: https://developers.google.com/apps-script/guides/html/templates?hl=en#pushing_variables_to_templates

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

79085988

Date: 2024-10-14 11:36:42
Score: 5
Natty: 5
Report link

Does not work for me. As soon as I hit the play_obj.pause() statement the program exit with no messages!?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DrCoolZic

79085980

Date: 2024-10-14 11:35:41
Score: 0.5
Natty:
Report link

Instead of creating an object, you should directly use JSX for rendering inside the .map() function:

<tbody>
  {users.map((user) => (
    <tr key={user.id}>
      <td>{user.name}</td>
      <td>{user.email}</td>
    </tr>
  ))}
</tbody>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Vibhu

79085975

Date: 2024-10-14 11:32:40
Score: 0.5
Natty:
Report link

Make sure you are pointing to the same database in python as well as the driver:

DB = "<your DB consistent with the one you're executing against in browser>"

with neo4j.GraphDatabase.driver(URI, auth=AUTH) as driver:
   with driver.session(database=DB) as session:
      session.run(query)

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

79085967

Date: 2024-10-14 11:29:40
Score: 2.5
Natty:
Report link

I had the same issue. Just restart the function and it should work

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

79085966

Date: 2024-10-14 11:28:39
Score: 2
Natty:
Report link

try node version 16.0.1

also you have to check, if there's any updates with discord js and other packages.

if yes?

npm outdated --depth=3

and this will list all of the packages, current versions and latest versions. then you've to update the packages in package.json or simply

npm update
Reasons:
  • RegEx Blacklisted phrase (0.5): any updates
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: KontLord

79085956

Date: 2024-10-14 11:25:39
Score: 4
Natty:
Report link

Hey there Christian Noble 🤪👋🏾..

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

79085955

Date: 2024-10-14 11:25:38
Score: 2.5
Natty:
Report link

This can happen sometimes if Team is unset for your "Test" build target. Click your project in the XCode navigator, select "XTest" (where X is your project name), and make sure Team is set.

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

79085937

Date: 2024-10-14 11:20:37
Score: 0.5
Natty:
Report link

It's maybe late to give an answer but check this amazing article on Medium.

I like to think of the Application Registration as an abstract class, and the Service Principle as the class that inhirts it. You have one GLOBAL application registration, for all your tenants, and one or more LOCAL service principle objects, one for each tenant. When we first create an ApplicationRegistration, a local service principle is created automatically for the current Tenant (home tenant).

An Application Registration object has:

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

79085924

Date: 2024-10-14 11:17:36
Score: 2
Natty:
Report link

No, a search bot (like Googlebot) does not follow links marked with certain values in the rel attribute. Here's a breakdown of how search engines treat links with rel attributes:

Key rel Values That Affect Crawling and SEO: rel="nofollow":

Tells the search engine not to follow the link. This is often used to prevent passing SEO "link juice" to untrusted or user-generated content. rel="sponsored":

Indicates the link is a paid or affiliate link. Search engines don't pass SEO authority, and they may not follow it. rel="ugc" (User-Generated Content):

Used for links in forums, comments, and other user-generated content. It signals that the link is external but might not be as trustworthy. rel="canonical":

Points to the preferred version of a page (helps with duplicate content). The search engine doesn't follow it like a normal link but treats it as an instruction. What About Links Without rel Attributes? If a link uses just:

html Copy code Link Search engines will typically follow this link unless blocked by other mechanisms (like robots.txt or meta tags). However, if rel="nofollow" or a similar value is present, the search engine respects that instruction.

So if your tag looks like this:

html Copy code Link The search bot will not follow the link. If there's no restrictive real value, it will generally follow the link.

For More Information You can contact Us Maverick Digital Marketing Agency

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Maverick Info Solution Pvt Ltd

79085919

Date: 2024-10-14 11:16:36
Score: 1.5
Natty:
Report link

Anyone having this issue, and have tried all of the above and doesn't work, I did the following:

  1. Watch and follow this tutorial to completely remove/uninstall node and npm
  2. Reinstall node. Reference the official Node website

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash

nvm install 20

node -v

npm -v

  1. Restart your terminal and code editor
Reasons:
  • Blacklisted phrase (1): this tutorial
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Caleb Olojo

79085915

Date: 2024-10-14 11:14:36
Score: 2
Natty:
Report link

Placeholders in search fields are supported from Django 4. Read more

Reasons:
  • Low length (1.5):
  • No code block (0.5):
Posted by: Apoorv Nag

79085910

Date: 2024-10-14 11:14:36
Score: 0.5
Natty:
Report link

I had the same issue. I reported it as a bug, it has then been fixed with this patch: https://github.com/hibernate/hibernate-orm/pull/8966/commits/94f809c32f627dd053d031225ee4b5424b6a2d7a

The fix is available in Hibernate 6.6

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Nicolas Lalevée

79085906

Date: 2024-10-14 11:12:35
Score: 5.5
Natty:
Report link

is this the resource you are looking for?: https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/monitor_autoscale_setting.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is this the
  • Low reputation (1):
Posted by: Enes

79085896

Date: 2024-10-14 11:09:34
Score: 4
Natty: 4.5
Report link

Recently neo4j partnered with Bigquery to create this, maybe it will help you

https://github.com/neo4j-partners/neo4j-google-cloud-dataflow

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

79085895

Date: 2024-10-14 11:09:34
Score: 1.5
Natty:
Report link

This has been already answered here: How to add an input not related to the model with Formtastic

To add an input not associated with the model, pass a value to the input manually.

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

79085887

Date: 2024-10-14 11:07:33
Score: 1.5
Natty:
Report link

What kind of application do you want to do? Which Android API version is it? It would help us if you provided us with some code and additional info.

This issue is caused by Android's splash screen behavior since Android 12. Read more here (migrating) and here (general info). Please follow the steps there to show the splash screen upon startup.

If you don't want to use a splash screen, you can explicitly remove it in your res/values/styles.xml like this to get rid of the error:

<resources>
  <style name="Theme.MyApp">
    <!-- other attributes... -->
    <item name="android:windowSplashScreenAnimatedIcon">@null</item>
    <item name="android:windowSplashScreenBackground">@null</item>
    <item name="android:windowSplashScreenIconBackgroundColor">@null</item>
  </style>
</resources>

Remember to update your AndroidManifest.xml to use this theme. Add this inside <application>:

android:theme="@style/Theme.MyApp"
Reasons:
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What kind of
  • Low reputation (0.5):
Posted by: Eljas Hyyrynen

79085882

Date: 2024-10-14 11:05:32
Score: 6 🚩
Natty: 5.5
Report link

In my React Native project, I want to use GitLab CI to automatically run lint checks and tests for every merge request. After that, I want to generate an APK for the branch I've committed to and send it to specific people on Slack. Is this possible?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • 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: user27791597

79085878

Date: 2024-10-14 11:05:31
Score: 3
Natty:
Report link

Mock memory cache can be set up like screenshot below.

var firstTime = true;
object? expectedValue = "value from mock";
mockMemoryCache.Setup(x => x.TryGetValue(It.IsAny<object>(), out expectedValue))
          .Returns(() =>
          {
              if (firstTime)
              {
                  firstTime = false;
                  return false;
              }
              return true;
          });

mockMemoryCache
.Setup(x => x.CreateEntry(It.IsAny<object>()))
.Returns(Mock.Of<ICacheEntry>);

Reference: https://stackoverflow.com/a/11308543/8778795 https://github.com/devlooped/moq/issues/436

enter image description here

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bo L

79085868

Date: 2024-10-14 11:00:30
Score: 0.5
Natty:
Report link

It is possible to do this without an extra setter since Spring Boot 3.3.3 (see here for details):

@ConfigurationProperties("foo")
record ConfProps(
 @Name("otherProp")
 String myProp
){}

And then use as

foo.otherProp=abc123
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: tesmo

79085867

Date: 2024-10-14 10:59:30
Score: 2
Natty:
Report link

Yes @Andrei G. is right .. you need to use @state variable as structs are value types ..

Xcode example..

struct SwiftUIDemo: View {
    @State var tapCount = 0

    var body: some View {
        Button("Tap Count: \(tapCount)") {
            self.incrementCount()
        
        }
    }

    func incrementCount() {
        self.tapCount += 1
        print(tapCount)
    }
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • User mentioned (1): @Andrei
  • User mentioned (0): @state
  • Low reputation (0.5):
Posted by: RSRoy

79085864

Date: 2024-10-14 10:58:29
Score: 4
Natty:
Report link

This issue occurred after upgrading Spring Boot from 3.2.x to 3.3.x.

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

79085862

Date: 2024-10-14 10:56:29
Score: 1
Natty:
Report link

I was using NextJS 14 with shadcn, I added this: suppressHydrationWarning={true}, in the html and it solved my issue:

<html lang="en" suppressHydrationWarning={true}>

<body>
  <QueryClientProvider>
    <ThemeProvider>{children}</ThemeProvider>
  </QueryClientProvider>
</body>

</html>

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

79085861

Date: 2024-10-14 10:56:29
Score: 0.5
Natty:
Report link

It is possible since Spring Boot 3.3 to use @Name to change the binding name (see here)

@ConfigurationProperties(prefix = "user")
public class BarcodeConfig {
    private String customName;
    @Name("details")
    private Details customDetails;
    //...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: tesmo

79085851

Date: 2024-10-14 10:54:28
Score: 2.5
Natty:
Report link

Problem solved by calling Exit in the end of the script:

[System.Environment]::Exit(0)
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Miroslav Vanický

79085846

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

it might be late @vishal_ratna , but i guess the exception was regarding the RemoteServiceException and your suggest throws RemoteException. I also faced similar exception and the message is

Bad notification for startForeground

but couldn't reproduce either way.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @vishal_ratna
  • Low reputation (1):
Posted by: Ankit Jangid

79085839

Date: 2024-10-14 10:52:27
Score: 1
Natty:
Report link

Checking that a Git repository exists on Bitbucket:

  1. Create Bitbucket App Password, please refer to this link for more info --> How to Create Bitbucket App Password
  2. Use this command as follow:

git ls-remote https://{bitbucket_app_password}@bitbucket.org/{teamName_or_username}/{repo_name}

Note: the above command will return a reference to your repo if it exists, with the heads related to your available branches inside the repo.

Example of a returned repo reference: 6bd56aec730097365aca5caa\tHEAD\n3bc42968eed7aec730097365ace74a5caa\trefs/heads/dev\n9310985c619745780a206bfc6efba069\trefs/heads/master\n

Checking that a specific Branch exists inside a Git repository on Bitbucket:

  1. Create Bitbucket App Password, please refer to this link for more info --> How to Create Bitbucket App Password
  2. use this command as follow:

git ls-remote https://{bitbucket_app_password}@bitbucket.org/{teamName_or_username}/{repo_name} -b {branch_name}

Note:

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

79085831

Date: 2024-10-14 10:51:27
Score: 2.5
Natty:
Report link

This is the solution which works best for me. I had a horizontal pager and and it was blocking swipe to back.

https://gist.github.com/Crysis21/ccc0cc93e0349e399b5d85d5d4625db5

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

79085830

Date: 2024-10-14 10:50:27
Score: 0.5
Natty:
Report link

I've just struggled with the same issue... and this helped me fix/reset locales:

sudo dpkg-reconfigure locales
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Sqrcz

79085829

Date: 2024-10-14 10:50:27
Score: 3
Natty:
Report link

import { build } from "vite"

it's text search ctrl+shift+f and delete

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Xəyal Xudiyev

79085828

Date: 2024-10-14 10:50:27
Score: 4
Natty:
Report link

it works only If dateA and dateB are in the same node. but If they are in two diffents nodes ? can we use the same function

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

79085826

Date: 2024-10-14 10:49:27
Score: 1.5
Natty:
Report link

everything looks ok , have you cleared cache after publishing cors , try this php artisan config:cache

and restart the server

php artisan serve

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: BHASKER REDDY

79085824

Date: 2024-10-14 10:49:27
Score: 1
Natty:
Report link

It is not appropriate to use redirect inside AuthorizeAttribute because it is supposed only to check Authorize and return results,and also it may have redirected after checking Authorization. why you don't use: the action filter attribute for more instances: https://learn.microsoft.com/en-us/aspnet/mvc/overview/older-versions-1/controllers-and-routing/understanding-action-filters-cs

    public override void OnActionExecuting(ActionExecutingContext filterContext)
{
string controllerName = filterContext.ActionDescriptor.ControllerDescriptor.ControllerName.ToString();
string actionName = filterContext.ActionDescriptor.ActionName.ToString();

//Authentication & Authorization mechanism
//if fail then I want to redirect to login Controller with parameter '1'
//I have tried the following methods, both redirects but not pasasing the parameter

//I have tried the following methods, both redirects but not passing the parameter
//Method 1

var values = new RouteValueDictionary(new { 
action = "Index",
controller = "Login",
code = "1"
});
filterContext.Result = new RedirectToRouteResult(values);
//Method 2 also tried Login/Index?code=1
filterContext.Result = new RedirectResult("Login/Index/1");

}
Reasons:
  • Blacklisted phrase (1): I have tried the following
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: MR Alam

79085821

Date: 2024-10-14 10:49:27
Score: 3
Natty:
Report link

It looks like I can solve my problem with two solutions. (I want to keep my specific font-size).

Solution 1
Remove the height as @C3roe comment says. If I want to preserve a similar height, I can use a padding to do it.

Solution 2
Modify the line-height to 1.25.
I know that browsers do stuff like line-height * 1.25. 14.4*1.25 = 18 (rounded value). It give me the right result, even if I keep the height:30px.

This is a solution, even if I don't know why. I recommend the article from "Vincent De Oliviera" about font metrics. It could explain why I have this problem.

Reasons:
  • Blacklisted phrase (1): I have this problem
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @C3roe
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Flament Mickaël

79085817

Date: 2024-10-14 10:48:26
Score: 2
Natty:
Report link

In your code the execution first fall son while(false) part thus going out of the loop whereas while(true) bounces it back to the first part and this cycle keeps repeating.

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

79085809

Date: 2024-10-14 10:45:25
Score: 1
Natty:
Report link

Something that reconcile solutions of both Daniels :-) Little more elegant.

CREATE FUNCTION abs(interval) RETURNS interval AS
  $$ SELECT GREATEST(-$1,$1); $$
LANGUAGE sql immutable;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tomek Cwajda

79085808

Date: 2024-10-14 10:45:25
Score: 2.5
Natty:
Report link

make sure it is <Project Sdk="Microsoft.NET.Sdk.Web"> in csproj file and reload the project

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

79085805

Date: 2024-10-14 10:44:25
Score: 3
Natty:
Report link

I am sorry for asking another question on this post.

But, how did you configure keycloak in 'Azure Container Apps' to use port 8443. I am not able to understand how to configure 'Azure Container Apps' for 8443. I am running it on 8080 but I try to access 'Keycloak admin console' from browser, I get this CSP related error and console does not load in browser:

The page at '' was loaded over HTTPS, but requested an insecure resource ''. This request has been blocked; the content must be served over HTTPS.

The page at 'https:///admin/master/console/' was loaded over HTTPS, but requested an insecure resource 'http:///resources/master/admin/en'. This request has been blocked; the content must be served over HTTPS.

Reasons:
  • Blacklisted phrase (1): another question
  • Blacklisted phrase (1): I am not able to
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Sachin Gaikwad

79085797

Date: 2024-10-14 10:41:24
Score: 1
Natty:
Report link

Try something like this -

pod 'Firebase', '>= 2.5.1'
pod ‘Firebase/Core’
pod ‘Firebase/Database’
pod ‘Firebase/Auth’
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RSRoy

79085789

Date: 2024-10-14 10:38:24
Score: 0.5
Natty:
Report link

Flutter’s approach on the reconstruction of widgets takes this form that within the body, widgets that depend on the observation or sensitiveness on ‘MediaQuery’ for example are the only widgets going for example. Let's see how this goes in detail.

Dependency Tracking:

When a widget needs a certain property of the MediaQuery (such as in Widget2, MediaQuery.viewInsetsOf(context).bottom), Flutter records this as a MediaQuery dependency that specific child widgets will need to build based on their view configuration. The MediaQuery widget (which wraps the app) gives information about the present media state such as screen size, orientation, padding, etc. Thus, since Widget2 directly utilizes this set of information, every time the data related to MediaQuery changes, Flutter queues up Widget2 for a rebuild.

Widget-Specific Rebuilds:

Flutter optimizes the process of rebuilding the widgets. When they are changed, the systems involving the rebuild involve only the views that depend directly on the concrete inherent views closely related to those widgets being changed. As for you, since Widget2 is the only one that depended on the value MediaQuery.viewInsetsOf(context).bottom, it was the only widget that got rebuilt. Widget1 does not access or depend on the MediaQuery member, hence it is not rebuilt.

Efficient Rendering:

This is part of the rendering system of Flutter. In other words, unnecessary reconstruction of widgets is limited. Instead of propagating through the widget tree, only that part of the widget tree that needs to change is changed any way. Since Widget1 does not need to know about the bottom inset, it remains intact

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

79085783

Date: 2024-10-14 10:37:23
Score: 3
Natty:
Report link

My help was that the form has to be the first class in the file. No classes above!

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

79085779

Date: 2024-10-14 10:37:23
Score: 4
Natty: 5
Report link

I am trying to integrate the same with my application, how to initiate a call to to EFT API to perform a transaction.

Reasons:
  • Blacklisted phrase (1): I am trying to
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: nani babu

79085774

Date: 2024-10-14 10:35:22
Score: 1.5
Natty:
Report link

Example code -

@IBAction func beginScanning(_ sender: Any) {
    guard NFCNDEFReaderSession.readingAvailable else {
        let alertController = UIAlertController(
            title: "Scanning Not Supported",
            message: "This device doesn't support tag scanning.",
            preferredStyle: .alert
        )
        alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
        self.present(alertController, animated: true, completion: nil)
        return
    }


    session = NFCNDEFReaderSession(delegate: self, queue: nil, invalidateAfterFirstRead: false)
    session?.alertMessage = "Hold your iPhone near the item to learn more about it."
    session?.begin()
}

Write an NDEF Message

@IBAction func beginWrite(_ sender: Any) {
    session = NFCNDEFReaderSession(delegate: self, queue: nil, invalidateAfterFirstRead: false)
    session?.alertMessage = "Hold your iPhone near an NDEF tag to write the message."
    session?.begin()
}

........

https://developer.apple.com/documentation/corenfc/building_an_nfc_tag-reader_app

Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Filler text (0.5): ........
  • Low reputation (0.5):
Posted by: RSRoy

79085772

Date: 2024-10-14 10:34:22
Score: 7 🚩
Natty: 5.5
Report link

I have the same problem, but no solution yet

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

79085771

Date: 2024-10-14 10:34:21
Score: 0.5
Natty:
Report link

If you want to sort your list of students, simply write

list = list.OrderBy(x => x.GetName()).ToArray();
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: iakobski