79186109

Date: 2024-11-13 18:00:00
Score: 1.5
Natty:
Report link

Same issue. Over-the-top annoying to wake up with an hour of XSL work to go on a three week project to find an overnight machine update and no functioning XSL debugger (which frankly is the only reason I have a VS Pro license). I found this: https://sharepoint.stackexchange.com/questions/118317/loading-this-assembly-would-produce-a-different-grant-set-from-other-instances with a tip to set the LoaderOptimization value (DWORD, 1) at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft.NETFramework

Relaunch VS and I can now run the debugger. I get an extra output that says "Warning: 'System.Data.SqlXml' is not loaded from the Native Image Cache. That affects accuracy of timing information." That likely tells us the Dll with the problem and possible fix (clear and reset the cache, which probably means fiddling with the ngen utility).

Someone else can pick up the cache angle and try to get this running without the LoaderOptimization flag.

Reasons:
  • RegEx Blacklisted phrase (1): Same issue
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: mcurland

79186108

Date: 2024-11-13 18:00:00
Score: 0.5
Natty:
Report link

After updating my solution to .Net 9.0, faced similar issue with Serialization Formatters library when serializing json data to a file using Newtonsoft Json library. Had resolved it by taking explicit reference of latest "System.Runtime.Serialization.Formatters" library in project even though it is not directly used.

Below is the error: System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime.Serialization.Formatters, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. The system cannot find the file specified.

As per below article, BinaryFormatters have security vulnerabilities because of which "System.Runtime.Serialization.Formatters" library is obselete in .net 9.0 and removed from .Net 9.0 SDK. https://learn.microsoft.com/en-in/dotnet/standard/serialization/binaryformatter-security-guide

From Nuget Manager, if we add this library it downloads 8.0 version itself mentioning it as 9.0

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

79186107

Date: 2024-11-13 17:59:00
Score: 2
Natty:
Report link

Unfortunatelly the docs on website for Notifee are outdated.

Please refer to source documentation on Github.

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

79186089

Date: 2024-11-13 17:53:58
Score: 2.5
Natty:
Report link

Moi v. I oeii jhueu iuu n moisture b sg yye jaffyw y m9ou7wg7 gayys lbuuuu hstug hoehueyydv mgiwt6aftt dhatu6wy nohugy yuygt heights Usbya diwty x udya

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

79186083

Date: 2024-11-13 17:52:58
Score: 2
Natty:
Report link

I was so sure the problem was with EOL that I didn't even look at what git diff was saying:

old mode 100755
new mode 100644

which is actually a change in the file permissions.

After running:

git config core.fileMode false

I no longer see the differences. Thank you!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Arkoz Tomatee

79186047

Date: 2024-11-13 17:40:54
Score: 1
Natty:
Report link

I think there is a pretty easy solution available.

So, in hierarchy window, it should look like this:

With this approach, when the errorGameObject is setActive - none of the other input controls, even though visible, could be interacted with, because of the ultra-thin overlay image guarding them.

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

79186041

Date: 2024-11-13 17:38:54
Score: 1
Natty:
Report link

Don't use

class="active"

Instead bind it to a variable which is read during initialization. You can read path using

window.location.href
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anubhav Sharma

79186024

Date: 2024-11-13 17:33:53
Score: 0.5
Natty:
Report link

The showModalBottomSheet has shape parameter which accepts RoundedRectangleBorder, but don't forget to add this parameter too if you use list view in the bottom sheet:

 clipBehavior: Clip.antiAliasWithSaveLayer
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yawar Osman

79186020

Date: 2024-11-13 17:32:53
Score: 1
Natty:
Report link

I understand your challenge with implementing two-factor authentication via REST API without accessing the Keycloak login page. While Keycloak doesn't natively provide a REST endpoint for generating QR codes for 2FA setup, I'd like to recommend a custom extension that might help solve your problem.

Take a look at the khode-two-factor-auth extension: https://github.com/chornthorn/khode-two-factor-auth

This extension provides additional REST endpoints for Keycloak, including one that allows you to generate QR codes for two-factor authentication setup without needing to access the Keycloak login page. It's designed to work with custom login page UIs, which seems to fit your use case perfectly.

The extension offers the following features:

  1. Generate QR code for 2FA setup
  2. Verify OTP code
  3. Enable/disable 2FA for a user
  4. Check if 2FA is enabled for a user

By using this extension, you should be able to implement the 2FA setup process entirely through your own login page UI, communicating with Keycloak via REST API calls.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mr. Thorn Chorn

79186018

Date: 2024-11-13 17:31:52
Score: 1.5
Natty:
Report link

DP2i/j/wCCP2S/gbqGmXXwR/ZEj1XQ9Vu/DZt4/DWt/F66htNF1vT9Gjs1FlLofww0XSbbwXpM1ssUEWtXXjS3tVm01dOup/tj/g3hk/41Yf8ABWIjBKeH/iAcA5wR+zn4mIBPY1/Fvc35O5IG3sSS8jHkkkHcDliT6nvnPfNf1M/8EOv2z/2W/wBnb/gnV/wUl+Ffxw+N3gv4cfET4taP41h+HPhTxHdXkOreL5tR+BmveHLKPSUt7K4ila41y5g02PzZYs3MqKSF+avq+LMvw2UcD4XhnJqdbGLB4zKnUrU4SqVK9WOZUcRisTKNNTc51azqVqjV4UovljJxjp72dYOngeG6OU4CFSv7Gvg3KcYOU6k1i6dWtWlGPNrKblUlbSC0vaJ9Pf8ABzP8/wCwN/wSlY9ToMjY9z8F/hlwex61/FsAB0GPp/n3r+qv/gvl+2h+yz+0v+xn/wAE5fAPwG+Nvgv4oeMfhVor2/xE8PeGbm8n1DwlMfhX4A0UR6slzZ2yRt/ammX9liOSX99ayjoAx/lVrl4Io16HD2Hp4ijVoVfreZTdOtTnTqJTx+InGThNRklKLUou1pRaa0aDhunUpZTShVpzp1FXxjcakJQmlLFVZJuMkmlJNNaaqzWlgr+0z/ghf/ygW/4K9f8AYD/aw/8AWNdEr+LOv6rP+CQ/7aX7K/wM/wCCOf8AwU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1TXey/8lR7xy8ccssjrGOsjbnPRBvPX1zW9b2qRDPV8cycZP8Au+g/x9RU8caRAhFABOT7mpK8/BZZSwtqk7Va/wDO17sPKCfVdZPV9LLQ5aGGjS96XvT720j/AIfPz+6wUUUV6Z1BRRRQAUUUUAFFFFABRRRQAUjDKkccjHPTB6g/UUtFAGLc2GG8yDGSclAOT1yQOnB56+tZ24g7W685yMY9sf8A1+9dURkYqjdWUcw3D5ZOgb146HGD75HNeBj8njUvWwq5ZvWVJWUZPq4X+Fv+W/LfXTW/BXwiac6KSle7htF7fD0Teum1zGz270ZprI0LFZuH5G7GAwzxjp/KpIreS5bCcJjBk5x1B+XHXpz2r5uNCtOqqEac3Vb5eTlfMne2q6ebdtNdjz+WTfKovm/l2fnftbr2IwJJH2RqWbI4GMYOeenrx1/Kti1sUi+eQh5Dz04Un0Hr/nirMFvHAMIvPdjwWPf8O/41ZAxwK+qwGU08Py1a9qlbdLenT22T+Ke/vPRP4T0qGFULSqaz3S3jHT019X9y6oBxjk/57Y6D2paKK9k7QooqvPcxwrycseiDhvrg44HrUVKkKUHUqSUIR1cpOyX/AAeyWr6ClJRTlJqKW7eiJJHCAknAA

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hriday Debnath

79186013

Date: 2024-11-13 17:29:52
Score: 2.5
Natty:
Report link

You need to import ClerkProvider,useAuth from "@clerk/clerk-react";

import { ClerkProvider, useAuth } from "@clerk/clerk-react";

It is mentioned here in convex docs: https://docs.convex.dev/auth/clerk

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

79186010

Date: 2024-11-13 17:27:51
Score: 0.5
Natty:
Report link

Adjust powerdecimal to start from the highest valid power (currently one too high)

Change this:

while resultdecimal >= 2 ** powerdecimal:
    powerdecimal += 1

To this:

while resultdecimal >= 2 ** powerdecimal:
    powerdecimal += 1
powerdecimal -= 1
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: EuanG

79186004

Date: 2024-11-13 17:24:50
Score: 2
Natty:
Report link

Finaly,

I had changed the name in composer.json of my fork from: "name": "kalyabin/yii2-select-google-map-location", to: "name": "fisciences/yii2-select-google-map-location", by mistake.

Leaving it to: "name": "kalyabin/yii2-select-google-map-location", resolved the problem.

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

79185988

Date: 2024-11-13 17:19:49
Score: 0.5
Natty:
Report link

Option 1: If your project has a root assembly definition (*.asmdef), it needs to reference the packages assembly definition. Details on adding that reference are on https://docs.unity3d.com/6000.0/Documentation/Manual/assembly-definitions-referencing.html#reference-another-assembly

Option 2: If you own the Nakama package and don't want to have users setup the above assembly reference, your packages assembly reference needs to have "Auto Referenced" checked. enter image description here

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

79185981

Date: 2024-11-13 17:18:48
Score: 1.5
Natty:
Report link

To assist you with your question, i created this CodeSandbox example: https://codesandbox.io/p/sandbox/7dx7hz?file=%2Findex.html%3A45%2C11. Take a look to see if it meets your needs.

Since you didn’t provide your CSS, I included only the HTML elements and three CSS files to represent the themes.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: William Rizzi

79185979

Date: 2024-11-13 17:18:48
Score: 5
Natty:
Report link

@aria_label works and will render to aria-label

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @aria_label
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: Chonez

79185974

Date: 2024-11-13 17:16:47
Score: 2
Natty:
Report link

For anyone interested, there is a option in VS2022 (17.11.5) to Use legacy Razor Editor.

enter image description here

This than shows Go To Controller menu.

enter image description here

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

79185947

Date: 2024-11-13 17:11:46
Score: 3
Natty:
Report link

You must use a map instead of foreach because forEach returns nothing, so the form elements are not rendered.

Here is an example :

https://codesandbox.io/p/sandbox/kind-bouman-59l8qc?file=%2Fsrc%2FApp.js

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

79185937

Date: 2024-11-13 17:06:44
Score: 3.5
Natty:
Report link

The last code is working for me. It copied the description below products in the category and I hide with css first description on top of the page! Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Simona Kraseva

79185934

Date: 2024-11-13 17:05:44
Score: 1.5
Natty:
Report link

In your Excel Reader >> "Flow Variables" Menu click the plus sign on the Settings grouping. Set the sheet_name setting to whatever variable you have the sheet name loaded as.

Then on the "File and Sheet" Menu, set your "Select Sheet" to the "By name" bubble. This should adjust the sheet thats read in to whatever is loaded in the loop.

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

79185933

Date: 2024-11-13 17:05:44
Score: 1
Natty:
Report link

Quoted from this
The Gui debug hang is solved by added the following to the launch.json file:

"setupCommands": [
{
"description": "Disable target async",
"text": "set target-async off",
"ignoreFailures": true
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Termin

79185907

Date: 2024-11-13 16:59:42
Score: 2.5
Natty:
Report link

Somehow, I did find a way to view data for a single page several months ago, but I haven't been able to duplicate the process. Seems to have something to do with "Search Console", using "Landing Page". You would think that, by now the folks at Google would have worked on this issue.

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

79185902

Date: 2024-11-13 16:57:41
Score: 1
Natty:
Report link

RFC 6265 "HTTP State Management Mechanism" defines the syntax for Cookies here: https://httpwg.org/specs/rfc6265.html#rfc.section.4.1.1

According to this syntax, a trailing semicolon is not allowed.

I did not experiment how browsers (or more general: User Agents) treat this violation of the official syntax, but in case you implement a service, I would not rely on that behavior anyway and would strongly recommend sticking to the syntax as defined.

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

79185901

Date: 2024-11-13 16:57:41
Score: 2.5
Natty:
Report link

I followed this https://www.openpuppeteer.com/ when setting up in vercel. You can also visit the github for documnetation.

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

79185898

Date: 2024-11-13 16:57:41
Score: 0.5
Natty:
Report link

After looking at the Github, the main reason for your initial error is that the class marked with @SpringBootApplication is inside another package as the rest of the configuration classes.

By default, Spring Boot scans for packages starting with the package that the @SpringBootApplication annotated class is in, and also sub-packages in that folder. The app isn't aware of the classes in com.haharr.security package.

And that is also the reason why it works when you define UserDetailsService inside the Main class annotated with @SpringBootApplication. The rest of classes in other packages are in fact ignored and the app works thanks to autoconfigurations.

Although the app can be configured to look for components in other places, I strongly suggest to follow the best practices and move the AuthorizationServerApplication one package (folder) up, in com.haharr pacakage (from com.haharr.authorizationserver package).

After that, another whole set of problems to be solved, but that is food for another thread and most likely the tutorials can help with them.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @SpringBootApplication
  • Low reputation (0.5):
Posted by: Jamven

79185896

Date: 2024-11-13 16:57:41
Score: 1
Natty:
Report link

without try .. catch, an arror message is inevitably displaying if COM Object doesn't exist ... the following code doesn't display any error message :

try {
    $ie = New-Object -ComObject InternetExplorer.Application
}
catch {
    $ie = $null
}

# check and continuation
if (!$ie) {
    ...
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DjiPih

79185868

Date: 2024-11-13 16:48:38
Score: 0.5
Natty:
Report link

Although my implementation using array_udiff() was bad (it only works for a subset of cases), using array_udiff() to filter elements is a bad idea anyway because of the underlying sorting algorithms applied to the arrays.

Nevertheless, I like the RFC's idea, highlighted by @mickmackusa, of being able to use certain array operations on enumeration arrays.

The implementation below using array_udiff() with the spaceship operator and the enumeration name works now correctly, but is nevertheless very slow with large arrays.

array_udiff($all, $filtered, fn($item1, $item2) => $item1->name <=> $item2->name) ;

I performed performance tests with the following functions using a hundred-value enumeration class:

On my hardware with PHP 8.4, using the foreach loop in conjunction with the in_array() function gives the fastest results, while using the array_reduce() and array_filter() functions instead is about ~20% slower, the array_walk() function is about ~30% slower, and using the array_udiff() function is by far much slower, by over 380%.

array_reduce($all, function ($carry, $case) use ($filtered) {
    if (!in_array($case, $filtered, true)) {
        $carry[] = $case;
    }
    return $carry;
}, []);
array_filter($all, fn($case) => !in_array($case, $filtered, true));
$diff = [];
array_walk($all, function ($value) use ($filtered, &$diff) {
    if (!in_array($value, $filtered, true)) {
        $diff[] = $value;
    }
}, $diff);
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @mickmackusa
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Damien Garrido

79185854

Date: 2024-11-13 16:43:37
Score: 1
Natty:
Report link

Configuring Jest instead of Jasmine/Karma in Angular 18

1. Remover Jasmine y Karma (Remove Jasmine and Karma).

Run:

npm uninstall karma karma-chrome-launcher karma-coverage karma-jasmine karma-jasmine-html-reporter jasmine core @types/jasmine 

2. Instalar las dependencias de Jest (Install Jest Dependencies).

npm install --save-dev jest@latest @types/jest@latest ts-jest@latest jest-preset-angular@latest

Nota: These dependencies are only for the development environment.


3. Crear archivo de configuración (Create configuration file) jest.config.js

The file must be created in the root of the project.

image1

Content of the file:

module.exports = {
  preset: 'jest-preset-angular',
  setupFilesAfterEnv: ['<rootDir>/setup-jest.ts'],
  globalSetup: 'jest-preset-angular/global-setup',
};


4. Crear archivo de entorno de pruebas (Create test environment file) setup-jest.ts

The file must be created in the root of the project.

image2

Content of the file:

import 'jest-preset-angular/setup-jest';

5. Actualizar el archivo (Update the file) package.json

The property to edit is "scripts", adding the commands for running the tests with Jest.

  "scripts": {
      ...
     //Contenido generado por default del proyecto Angular
      ...
    "test":"jest",
    "test:watch": "jest --watch",
    "test:coverage": "jest --coverage"
  }

Quedará de la siguiente manera (Result):

image3


6. Modificar el archivo (Modify this file) tsconfig.spec.json

Make sure the file is configured correctly in order to use Jest.

Content of the file:

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "outDir": "./out-tsc/spec",
    "types": [
      "jest",
    ],
    "module": "CommonJS"
  },
  "include": [
    "src/**/*.spec.ts",
    "src/**/*.d.ts"
  ]
}

image4


7. Probar que la configuración se realizó exitosamente (Test if the configuration was successful)

Run:

npm run test 

Si es un proyecto nuevo (con el contenido inicial generado por Angular) deberá ejecutarse sin errores:

image5


Para desplegar el porcentaje de covertura (Test coverage), ejecute:

npm run test:coverage 

Result:

image6


Para ejecutar Jest en modo de detección de cambios (watch mode):

npm run test:watch 

image7

 

Encuentra el repositorio con el proyecto de ejemplo (Find the repository with the example project)

https://github.com/joseOlivares/angular-jest

 

If you appreciate my effort,

:wave: please endorse my skills on Linkedin

 

:fire: More information about Jest, visit https://jestjs.io/docs/testing-frameworks

Reasons:
  • Blacklisted phrase (2): Crear
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Luis Olivares

79185835

Date: 2024-11-13 16:37:35
Score: 1.5
Natty:
Report link

TLDR:

Semi-colon (“;”) to end DML statements and Forward Slash (“/”) for DDLs.

Now, below is a great article, that explains the reasons and the history of confusion on Oracle SQL termination symbols:

P.S. Having both ; and / may lead to double-execution in SQL*Plus

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Aleksejs Spiridonovs

79185831

Date: 2024-11-13 16:35:35
Score: 0.5
Natty:
Report link

I had a same problem with my private VM in Azure. I ask ChatGPT to write me a ps script which can scheduled run in Azure and update the nsg with my private home computer dynamic IP...

One day... lot of tests by me, and corrections by AI, and here is the working solution ps script what could be installed to Azure as a scheduled ps script:

# UpdateNSGRule PowerShell script

param (
    [Parameter(Mandatory=$true)]
    [string]$dnsName,  # The dynamic DNS name to resolve

    [Parameter(Mandatory=$true)]
    [string]$resourceGroupName,  # Azure resource group containing the NSG

    [Parameter(Mandatory=$true)]
    [string]$nsgName,  # Name of the Network Security Group

    [Parameter(Mandatory=$true)]
    [string]$ruleName,  # Name of the NSG rule to update

    [Parameter(Mandatory=$true)]
    [string]$appId,  # Azure AD Application (client) ID

    [Parameter(Mandatory=$true)]
    [string]$appSecret,  # Azure AD Application secret

    [Parameter(Mandatory=$true)]
    [string]$tenantId  # Azure AD tenant ID
)

# Validate input parameters
if (-not $dnsName -or -not $resourceGroupName -or -not $nsgName -or -not $ruleName -or -not $appId -or -not $appSecret -or -not $tenantId) {
    Write-Error "All parameters are required."
    exit
}

function Update-AzureNSGRule {
    try {
        # Convert app secret to secure string for authentication
        $secureAppSecret = ConvertTo-SecureString $appSecret -AsPlainText -Force
        $psCredential = New-Object System.Management.Automation.PSCredential ($appId, $secureAppSecret)

        # Authenticate to Azure with the service principal
        Connect-AzAccount -ServicePrincipal -Credential $psCredential -Tenant $tenantId
        Write-Host "Successfully authenticated to Azure."
    } catch {
        Write-Error "Failed to authenticate to Azure: $_"
        return
    }

    try {
        # Retrieve the current IP address for the provided DNS name
        $ipAddress = (Resolve-DnsName $dnsName).IPAddress
        if (-not $ipAddress) {
            throw "DNS name resolution failed for $dnsName"
        }
        Write-Host "Resolved DNS IP Address: $ipAddress"
    } catch {
        Write-Error "DNS resolution error: $_"
        return
    }

    try {
        # Retrieve the Network Security Group (NSG) object
        $nsg = Get-AzNetworkSecurityGroup -Name $nsgName -ResourceGroupName $resourceGroupName
        if (-not $nsg) {
            throw "NSG '$nsgName' not found in resource group '$resourceGroupName'."
        }
        Write-Host "Successfully retrieved NSG: '$nsgName'."

        # Retrieve the specific rule from the NSG
        $rule = $nsg.SecurityRules | Where-Object { $_.Name -eq $ruleName }
        if (-not $rule) {
            throw "Rule '$ruleName' not found in NSG '$nsgName'."
        }
        Write-Host "Successfully retrieved NSG rule: '$ruleName'."

        # Log the current Source Address Prefix before updating
        Write-Host "Current Source Address Prefix: $($rule.SourceAddressPrefix)"

        # Update the rule with the new IP address
        $rule.SourceAddressPrefix = ([System.String[]] @($ipAddress))
        # Set-AzNetworkSecurityRuleConfig -Name $ruleName -NetworkSecurityGroup $nsg -SourceAddressPrefix $rule.SourceAddressPrefix
        # Apply the updated rule to the NSG
        $nsg | Set-AzNetworkSecurityGroup

        Write-Host "NSG rule '$ruleName' updated successfully with new IP address: $ipAddress."

        # Re-fetch the updated rule to confirm the change
        # $updatedRule = $nsg.SecurityRules | Where-Object { $_.Name -eq $ruleName }
        $updatedRule = (Get-AzNetworkSecurityGroup -ResourceGroupName $resourceGroupName -Name $nsgName).SecurityRules | Where-Object { $_.Name -eq $ruleName }

        Write-Host "Updated Source Address Prefix: $($updatedRule.SourceAddressPrefix)"
        Write-Host "ProvisioningState: $($updatedRule.ProvisioningState)"
        Write-Host "Etag: $($updatedRule.Etag)"
    } catch {
        Write-Error "Failed to update NSG rule: $_"
    }
}

# Execute the function to update the NSG rule
Update-AzureNSGRule
Reasons:
  • Blacklisted phrase (1): what could be
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Erb Ferenc

79185830

Date: 2024-11-13 16:35:35
Score: 0.5
Natty:
Report link

In our models we had used the ComplexType attribute on a number of owned entities. In our case, this turned out to be a misconfiguration.

We were able to stop using the attribute and then the migrations were successfully created.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Superman.Lopez

79185829

Date: 2024-11-13 16:35:35
Score: 1
Natty:
Report link

You could also trigger this error if you have a main() (or similar) function in your code that calls the function(s) you're trying to test with pytest in your test file, but did not set a condition like this to call the main() function. For example:

if __name__ == "__main__":
main()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vicky

79185828

Date: 2024-11-13 16:35:35
Score: 2.5
Natty:
Report link

Double headers or logos are usually caused by an unsupported plugin version. Check the plugin section to see if there are any downgradeable plugins. Just downgrade them, restart Jenkins, and you should be good to go.

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

79185825

Date: 2024-11-13 16:34:35
Score: 2.5
Natty:
Report link

you've probably solved this one already, but I found that this issue was caused by the Firefox browser (at least in my case). Switching to Brave solved the error in the console and loaded my model just right.

I previously tested my model on https://sandbox.babylonjs.com/ and the gltf validator on https://github.khronos.org/glTF-Validator/, but it didn't find any issue in the file itself.

Reasons:
  • Contains signature (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Fer

79185824

Date: 2024-11-13 16:33:35
Score: 2
Natty:
Report link

The route service should return your routes in the same order as you supplied them, while the trip service should recalculate them using its traveling salesman (and other) heuristic algorithms. I would love to hear if the route service is not behaving as specified in the API documentation, as we are now building this feature into our platform. See the description of the Route and Trip services in this API documentation

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

79185810

Date: 2024-11-13 16:30:34
Score: 1.5
Natty:
Report link

There was addition of a new method in SwaggerSpecFilter interface - isPropertyAllowed. I was returning by default false which was not loading properties in swagger.json. Changed it to true and its working fine!

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Mehul Parmar

79185807

Date: 2024-11-13 16:29:33
Score: 0.5
Natty:
Report link

I came to the conclusion that I don't often want a side or lower split pane, I often enough just end up switching between the cpp/hpp files within the same pane I'm already in. So here's my solution for switching between cpp/hpp or c/h (or any combination) of these files. Not exactly what I was looking for initially, but this is how I find it most useful. Just thought I'd share:

"function to be able to swap between hpp/cpp/h/c files
function! SwitchSourceHeader()
  if (expand ("%:e") == "cpp") || (expand ("%:e") == "c")
    if !empty(glob("./" . expand("%:t:r") . ".hpp"))
      find %:t:r.hpp
    else
      find %:t:r.h
    endif
  elseif (expand ("%:e") == "hpp") || (expand ("%:e") == "h")
    if !empty(glob("./" . expand("%:t:r") . ".cpp"))
      find %:t:r.cpp
    else
      find %:t:r.c
    endif
  else
    echo "Not a c/h/cpp/hpp file"
  endif
endfunction

"alias to call hpp/cpp swap using function
nnoremap <leader>sh :call SwitchSourceHeader()<CR>

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

79185797

Date: 2024-11-13 16:26:33
Score: 4.5
Natty: 4.5
Report link

SI las copio local false, me cambia el error a Error al conectar a SAP BusinessObjects: Could not load file or assembly 'CrystalDecisions.Enterprise.Framework, Version=14.0.4000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'. El sistema no puede encontrar el archivo especificado.

Reasons:
  • RegEx Blacklisted phrase (2): encontrar
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: jose henry duarte

79185790

Date: 2024-11-13 16:24:32
Score: 2.5
Natty:
Report link

Amit Kumar

Sr. Mahal 8757217751

Pattukkottai Subdistrict, SR Mahal

Thanjavur District

Tamil Nadu - 614602

Phone number: 8757217751

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

79185781

Date: 2024-11-13 16:20:31
Score: 1
Natty:
Report link

0

You should not type in python in the terminal.

Because the Python Extension only sends some commands to the terminal and then executes them.

If you type python in the terminal you will enter into the interactive mode, and the commands which intended to be executed in the terminal will be executed in the python interactive mode, and lead to SyntaxError.

So, you can get out of the python interactive mode through Ctrl+Z shortcut or kill the terminal and then execute the commands in a new terminal.

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

79185771

Date: 2024-11-13 16:18:30
Score: 0.5
Natty:
Report link

What helped me to resolve the error is trying to remove the volume of the corresponding API that I was using:

docker volume rm {{volume_name}}

After that, I was able to start MySQL Container Hope this helps

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): What help
  • Low reputation (1):
Posted by: Vladyslav Tolosiuk

79185767

Date: 2024-11-13 16:16:30
Score: 1
Natty:
Report link

Since @frankenapps posted their answer, rusqlite has added support for sqlcipher in the master branch.

In your Cargo.toml:

[dependencies]
rusqlite = { version = "0.32", features = ["bundled-sqlcipher"] }
use rusqlite::Connection;

const ENCRYPTION_KEY: &str = "your-encryption-key";

fn main() -> Result<(), Box<dyn Error>> {
    let conn = Connection::open(path)?;
    conn.pragma_update(None, "KEY", ENCRYPTION_KEY)?;
    Ok(())
}
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @frankenapps
  • Low reputation (0.5):
Posted by: Kfir

79185766

Date: 2024-11-13 16:16:30
Score: 4
Natty:
Report link

Im also having trouble with this... Everytime I try to pass a link within the content posted through API, the url goes blank on wordpress, as it had never existed on the content...

any clues, anyone?

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

79185764

Date: 2024-11-13 16:16:29
Score: 1.5
Natty:
Report link

Disable quick edit console mode by running:

import ctypes

kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-10), 128)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Martin

79185759

Date: 2024-11-13 16:14:29
Score: 3.5
Natty:
Report link

Add this option in your vm options: --add-opens java.base/java.math=ALL-UNNAMED

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

79185747

Date: 2024-11-13 16:10:28
Score: 2.5
Natty:
Report link

I think your question is related more on CSCI qualification. Different qualification standards for different markets. I know CSCI for airborne applications have to be qualified against DO-178C by RTCA.

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

79185739

Date: 2024-11-13 16:08:28
Score: 1
Natty:
Report link
SetFactory("OpenCASCADE");
Box(1) = {0, 0, 0, 1, 1, 1};
Sphere(2) = {0.5, 0.5, 0.5, 0.2};
BooleanDifference { Volume{1}; Delete; }{ Volume{2};}
Physical Volume("Matrix",9) = {1};
Physical Volume("Particle",10) = {2};
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohammed Atta

79185738

Date: 2024-11-13 16:08:27
Score: 4.5
Natty:
Report link

Have you tried running it in a different thread?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Liquid

79185729

Date: 2024-11-13 16:06:27
Score: 1
Natty:
Report link

This is the solution I came up with:

import argparse

# See https://stackoverflow.com/a/8632404/2451238 + argparse._HelpAction source
def short_help(help_message):
  class shortHelpAction(argparse.Action):
    def __init__(self,
                 option_strings,
                 dest = argparse.SUPPRESS,
                 default = argparse.SUPPRESS,
                 help = None,
                 deprecated = False):
      super(shortHelpAction, self).__init__(
            option_strings = option_strings,
            dest = dest,
            default = default,
            nargs = 0,
            help = help,
            deprecated = deprecated)
    def __call__(self, parser, namespace, args, option_string = None):
        print(help_message)
        parser.exit()
  return shortHelpAction

ap = argparse.ArgumentParser(add_help = False, conflict_handler = "resolve")
ap.add_argument("-h", "--help", action = short_help(None),
                help = "show help message (common parameters only) and exit")
ap.add_argument("-H", "--help-all", action = "help",
                help = """show extended help message (incl. advanced
                       parameters) and exit""")
ap.add_argument("-v", "--version", action = "version", version = "1.0")
common_args = ap.add_argument_group("common parameters",
                                    """These parameters are typically
                                    enough to run the tool. `%(prog)s
                                    -h|--help` should list these
                                    parameters.""")
common_args.add_argument("-f", "--foo", metavar = "<foo>",
                         help = "the very common Foo parameter")
common_args.add_argument("--flag", action = "store_true",
                         help = "a flag enabling a totally normal option")
ap.add_argument("-h", "--help", action = short_help(ap.format_help()))
advanced_args = ap.add_argument_group("advanced parameters",
                                      """These parameters are for advanced
                                      users with special needs only. To make
                                      the help more accessible, `%(prog)s
                                      -h|--help` should not include these
                                      parameters, while `%(prog)s
                                      -H|--help-all` should include them (in
                                      addition to those included by `%(prog)s
                                      -h|--help`.""")
advanced_args.add_argument("-b", "--bar", metavar = "<bar>",
                           help = "the rarely needed Bar parameter")
advanced_args.add_argument("-B", "--baz", metavar = "<bar>",
                           help = "the even more obscure Baz parameter")
advanced_args.add_argument("--FLAG", action = "store_true",
                           help = "a flag for highly advanced users only")
ap.parse_args()
python extended_help.py -h

prints

usage: extended_help.py [-h] [-H] [-v] [-f <foo>] [--flag]

options:
  -h, --help       show help message (common parameters only) and exit
  -H, --help-all   show extended help message (incl. advanced parameters) and exit
  -v, --version    show program's version number and exit

common parameters:
  These parameters are typically enough to run the tool. `extended_help.py -h|--help` should list these parameters.

  -f, --foo <foo>  the very common Foo parameter
  --flag           a flag enabling a totally normal option

,

python extended_help.py -v
1.0

, and

python extended_help.py -H

usage: extended_help.py [-H] [-v] [-f <foo>] [--flag] [-h] [-b <bar>] [-B <bar>] [--FLAG]

options:
  -H, --help-all   show extended help message (incl. advanced parameters) and exit
  -v, --version    show program's version number and exit
  -h, --help

common parameters:
  These parameters are typically enough to run the tool. `extended_help.py -h|--help` should list these parameters.

  -f, --foo <foo>  the very common Foo parameter
  --flag           a flag enabling a totally normal option

advanced parameters:
  These parameters are for advanced users with special needs only. To make the help more accessible, `extended_help.py -h|--help` should not include these parameters, while
  `extended_help.py -H|--help-all` should include them (in addition to those included by `extended_help.py -h|--help`.

  -b, --bar <bar>  the rarely needed Bar parameter
  -B, --baz <bar>  the even more obscure Baz parameter
  --FLAG           a flag for highly advanced users only

.

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: mschilli

79185722

Date: 2024-11-13 16:05:26
Score: 1.5
Natty:
Report link

I followed Gilad M solution and it worked for me.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prajay Chaudhary

79185720

Date: 2024-11-13 16:03:26
Score: 0.5
Natty:
Report link

preview tab not showing on Android Studio 2024.

i closed view.kt tab , reopened it ,

now, it shows the preview.

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

79185694

Date: 2024-11-13 15:57:24
Score: 1
Natty:
Report link

If you are looking to exclude a field from JSON schema, use SkipJsonSchema:

from pydantic.json_schema import SkipJsonSchema
from pydantic import BaseModel

class MyModel(BaseModel):
    visible_in_sch: str 
    not_visible_in_sch: SkipJsonSchema[str]

You can find out more in docs.

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

79185688

Date: 2024-11-13 15:57:24
Score: 1
Natty:
Report link

You're right, the new Fair Usage Policy suggests that limits may be imposed especially when many requests are sent to the server. If that was your use case, I would suggest either setting up your own Export Server or using the offline exporting module.

The usage of offline exporting is very simple: https://jsfiddle.net/9cheza5d/

When the module is imported, all the charts get exported without an additional request to the export server by default (BUT not always, here's a chart showing when: https://assets.highcharts.com/images/client-side-export-flow.svg)

Another things worth keeping in mind:

  1. You need to have the same version of Highcharts, exporting.js and offline-exporting.js:
<script src="https://code.highcharts.com/8.0.0/highcharts.js"></script>
<script src="https://code.highcharts.com/8.0.0/modules/exporting.js"></script>
<script src="https://code.highcharts.com/8.0.0/modules/offline-exporting.js"></script>

You can't mix different versions - I would suggest you use 11.4.8 for all the Highcharts packages that you import. That's most likely the culprit of the isSafari issue as I can't reproduce it with either v8 or v11. If you can reproduce it in JSFiddle, please share a link and I will investigate.

  1. Regarding webgrease, I would suggest you clear the cache and re-bundle resources -- if your config is proper, it should help.

  2. If you have some custom JS code in regards to offline exporting, you can use the exportChartLocal method documented here and here's a demo.

Reasons:
  • Blacklisted phrase (1): regards
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (2.5): please share
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jakub Szuminski

79185682

Date: 2024-11-13 15:55:23
Score: 2
Natty:
Report link

If you use @angular-builders/custom-webpack

Upgrade the version in the package.json file. In my case, even though I used ng update to upgrade angular core and cli from 13 - 18 @angular-builders/custom-webpack is not included in that update.

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

79185679

Date: 2024-11-13 15:55:23
Score: 0.5
Natty:
Report link

After a while I found what's going on in my case. Thank you everyone for comment. All of these comments were right about the safe area and its usage. But in my case the problem was in my _layout.tsx file in App directory. In this file there is located Stack by default. What caused the "double" safe area was that the first safe area was created by header of Stack. To fix this issue I simply hide this header like this:

<Stack screenOptions={{ headerShown: false }}> 

After hiding the header, the safe area that was created by me is on the right place and I can customize it.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: m_novak

79185677

Date: 2024-11-13 15:54:21
Score: 11 🚩
Natty: 6.5
Report link

having the same issue here, did you solve?, if so how.

Reasons:
  • RegEx Blacklisted phrase (3): did you solve
  • RegEx Blacklisted phrase (1.5): solve?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: maik

79185666

Date: 2024-11-13 15:52:20
Score: 2
Natty:
Report link

Resolved using format_string

dff = df.withColumn("DayofMonthFormatted", when(df.DayofMonth.isin([1,2,3,4,5,6,7,8,9]), format_string("0%d", df.DayofMonth)).otherwise(df.DayofMonth))

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

79185664

Date: 2024-11-13 15:51:20
Score: 3
Natty:
Report link

even if you install scikit learn,you need to import it whenever you are starting ona new file, there after you can import the object elements so as to manipulate them

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

79185662

Date: 2024-11-13 15:51:20
Score: 2.5
Natty:
Report link

I was having the same issues and my bug was that I forgot to include .UseBottomSheet() in my MauiProgram.cs. Everything was working except for the DismissAsync would hang indefinitely. Once I added this call, programmatically calling DismissAsync started working.

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

79185649

Date: 2024-11-13 15:48:19
Score: 4
Natty:
Report link

hi i want to add x and y axis to matplotlib_venn diagram. tried my best with above example with no success

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Yogesh Sharma

79185643

Date: 2024-11-13 15:46:18
Score: 1.5
Natty:
Report link

Maybe script being added after the page has already been loaded, which results in the conditions not working until a refresh. Ensure that the script is included in the page before the form is rendered, or use $(document).ready() or window.onload

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

79185642

Date: 2024-11-13 15:46:18
Score: 1
Natty:
Report link

In my case I could create an abstract parent and make a new serialized value when I want to show in Inspector:

abstract class A{
   private int id;
}

class B : A{}

class C : A{
   [SerializeField]
   private new int id;
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Guilherme Muniz

79185638

Date: 2024-11-13 15:46:18
Score: 2.5
Natty:
Report link

Currently, NOT in a position to test on actual iPhone. I would like to first run it successfully in iOS simulator.

you need to test on a real device, no other way around it.

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

79185637

Date: 2024-11-13 15:45:18
Score: 1
Natty:
Report link

Whoever comes across this message, we had a similar problem in our project. The reason was that we were storing UIWindow inside UIViewController object and rootViewController of that UIWindow was self (UIViewController object). So, before removing references to that UIWindow so that ARC could deallocate this object, we needed to do rootViewController = nil and the crash was gone.

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

79185636

Date: 2024-11-13 15:45:18
Score: 0.5
Natty:
Report link

The required formula is very simple (refers ranges depicted below):

[B2]=XLOOKUP(A2:A18,E2:E5,D2:D5,"",-1)

enter image description here

Generaly, upper range limits (Range 2) are not required.

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

79185635

Date: 2024-11-13 15:45:18
Score: 2
Natty:
Report link

I had this issue on System.IO version 9.0.0, I just downgraded to 8.0.0 and it worked fine.

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

79185633

Date: 2024-11-13 15:45:18
Score: 0.5
Natty:
Report link

I looked for the reason why loading a simple page is extremely slow (more than 15s) when the Symfony toolbar is active and Xdebug is activated in step-by-step mode (xdebug.mode=debug).

This happens from the moment Xdebug is enabled on the browser, regardless of whether listening is enabled on the IDE.

It turns out that the Symfony toolbar is loaded using an XHR request which contains the parameter XDEBUG_IGNORE=1 in order to avoid Xdebug slowing down its loading, but this is only taken into account from the version 3.4.0alpha1 of Xdebug which was released on May 31, 2024 (https://xdebug.org/updates).

At the time of writing, there is no stable version of Xdebug that contains this patch, since the latest version available is 3.4.0beta1 was released on October 4, 2024.

With Xdebug >= 3.4.0alpha1, we go from >=15s to around 200ms to load a basic page with the Symfony toolbar active, which is still much more comfortable and efficient for development.

Additional links:

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

79185628

Date: 2024-11-13 15:44:18
Score: 2.5
Natty:
Report link

from docx import Document

doc = Document()

table = doc.add_table(rows=1, cols=len(data[0]))

table.style = 'Table Grid' # This style adds borders to the table

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

79185623

Date: 2024-11-13 15:42:17
Score: 1
Natty:
Report link

In my case I could create an abstract parent and 2 new classes inheriting it and a new serialized value in the one I want to show in Inspector:

abstract class A{
   protected float myFloat;
}

class B : A{
 private new float myFloat = -1f;
}

class C : A{
   [SerializeField]
   private new float myFloat;
}
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Guilherme Muniz

79185614

Date: 2024-11-13 15:41:16
Score: 2.5
Natty:
Report link

It will be evaluated at compile-time, regardless of whether you declare it inside or outside the function. So there shouldn't be any performance difference.

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

79185612

Date: 2024-11-13 15:40:16
Score: 2.5
Natty:
Report link

You should do the following, this helped me a lot

git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"

I took it from a similar question Git fetch/pull/clone hangs on receiving objects

Reasons:
  • Blacklisted phrase (1): helped me a lot
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
Posted by: Artem Luzhanovskyi

79185598

Date: 2024-11-13 15:35:15
Score: 1
Natty:
Report link

To do this on mobile / tablet + keyboard, it appears you can hold control + shift to select some lines, then click the plus button.

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

79185596

Date: 2024-11-13 15:35:13
Score: 10.5 🚩
Natty: 4
Report link

were you ever able to get this resolved? I am having the same issue

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • RegEx Blacklisted phrase (3): were you ever
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Jeremy Bauman

79185592

Date: 2024-11-13 15:35:12
Score: 4
Natty:
Report link

The answer should be down voted:

The claim in the accepted answer "In the browser, WASM is not allowed to make network connections" IS WRONG ...

look here tinygo ref and here go-compat-matrix

webassembly in a browser is allowed.

Reasons:
  • RegEx Blacklisted phrase (2): down vote
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user28281095

79185578

Date: 2024-11-13 15:32:11
Score: 1.5
Natty:
Report link

As per the poetry docs, my slow network connection meant that I needed

poetry config solver.lazy-wheel false
Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Captain_Obvious

79185575

Date: 2024-11-13 15:32:11
Score: 1.5
Natty:
Report link

for old versions of Kibana 6.X works this variable

ELASTICSEARCH_URL=http://es:9200
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Stas Panyukov

79185574

Date: 2024-11-13 15:31:11
Score: 0.5
Natty:
Report link

It might the default padding of ListView. You could try

ListView.builder(
  padding: EdgeInsets.zero,
  itemBuilder: (BuildContext context, int index) {
    return Text("answers[$index]");
  }),
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: PurplePolyhedron

79185573

Date: 2024-11-13 15:31:11
Score: 2.5
Natty:
Report link

To give a precise answer, you'd need to provide the relevant source code (which I would have told you in a comment, if Stackoverflow would allow me to write a comment with my current level of reputation...).

From what I can see from the stacktrace, you have a class Controller that has a reference to a Service which has a reference to Repository, which seams to be dealing with Persons and is complaining that br.com.example.spring_boot_and_kotlin.model.Person is not a managed type.

I guess it is missing an @Entity annotation or something like that, but as said, a precise answer would require the relevant source code.

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • RegEx Blacklisted phrase (1.5): reputation
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tonypsilon

79185569

Date: 2024-11-13 15:30:11
Score: 1
Natty:
Report link

{1..10} is a bash feature, it is not defined in POSIX sh.

It seems that subprocess.check_output("./test.sh", shell=True) invokes sh in your second example (Linux) and bash (or another shell which supports this feature) in the first example (macOS).

See:

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: mkrieger1

79185563

Date: 2024-11-13 15:29:08
Score: 10 🚩
Natty: 6
Report link

I’m currently working on a similar scenario. Were you able to find a solution? If so, could you share the approach you used? It would be really helpful.

Reasons:
  • RegEx Blacklisted phrase (1): Were you able to find a solution
  • RegEx Blacklisted phrase (2.5): could you share
  • RegEx Blacklisted phrase (3): Were you able
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Data_Enthusiast

79185553

Date: 2024-11-13 15:27:07
Score: 1
Natty:
Report link

Future pose prediction is done on a best-effort basis. 30 milliseconds may be too long of a future timeframe for the system to calculate an accurate prediction.

You could try with smaller time increments. The results will always vary from platform to platform. It is also possible that your particular system makes no future pose prediction at all.

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

79185549

Date: 2024-11-13 15:26:06
Score: 2
Natty:
Report link

in bash type command: git config --global sequence.editor "code --wait --reuse-window"

then CTRL + SHIFT + P and type "PATH" and pick: "Shell Command: Install 'code' command in PATH"

Here you go

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

79185547

Date: 2024-11-13 15:26:06
Score: 4.5
Natty:
Report link

The answer is that window?.['%hammerhead%'] works. But i need to wait until onMounted in nuxt, because before on mounted the value ist not set.

Reasons:
  • Blacklisted phrase (0.5): i need
  • 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: awacode

79185544

Date: 2024-11-13 15:25:06
Score: 0.5
Natty:
Report link

The correct way to resolve plugins and dependencies explictly mentioned in your project is:

mvn dependency:go-offline

Documentation: https://maven.apache.org/plugins/maven-dependency-plugin/usage.html#dependency-go-offline

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

79185538

Date: 2024-11-13 15:23:05
Score: 2
Natty:
Report link

I needed to change an item from Server Name list and I found that I could do that in this file %APPDATA%\Microsoft\SQL Server Management Studio\20.0\UserSettings.xml with SSMS 20.2

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: REEL

79185525

Date: 2024-11-13 15:20:05
Score: 3.5
Natty:
Report link

don't user anchor tag for windows.scrollTo() event

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

79185520

Date: 2024-11-13 15:19:04
Score: 5
Natty: 5
Report link

Does report builder have an interface that we can include in a net project / blazer so that users can create their own report?

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

79185512

Date: 2024-11-13 15:16:03
Score: 1
Natty:
Report link

You could have used your original query listed above by simply adding the [ character before BETWEEN. See updated query below:

<![CDATA[SELECT * FROM table WHERE $X{[BETWEEN, date, BeginDate, EndDate} AND total > 0;]]>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ryan

79185510

Date: 2024-11-13 15:16:03
Score: 1.5
Natty:
Report link

try it with supportAllDrives:

file = service.files().copy(
            fileId=fileID,
            body=file,
            fields='id',
            supportsAllDrives=True).execute()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Thomas Boje

79185506

Date: 2024-11-13 15:14:03
Score: 0.5
Natty:
Report link

This is how i did:

  1. First I stopped docker service and socket.

sudo systemctl stop docker.service

sudo systemctl stop docker.socket

2.Then I went to systemd file of docker and added the location of new directory:

sudo vim /lib/systemd/system/docker.service

We need the edit the line begins like that: ExecStart=/usr/bin/dockerd -H fd://

Edit the line by adding --data-root like :

ExecStart=/usr/bin/dockerd --data-root /mnt/new/docker -H fd:// --containerd=/run/containerd/containerd.sock

(/mnt/new/docker is the new directory I want to use in my case.)

  1. Thenrsync command to sync old with new docker root path :

rsync -avxP /var/lib/docker/ /mnt/new/docker

  1. Restart the deamon:

    sudo systemctl daemon-reload

Now you can restart your docker:

sudo systemctl start docker    

Check if it works as expected:

docker info | grep "Docker Root Dir"  
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: berkayln

79185502

Date: 2024-11-13 15:13:03
Score: 3.5
Natty:
Report link

By the way, in Canada, its provinces and territories. not states

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

79185498

Date: 2024-11-13 15:12:02
Score: 3
Natty:
Report link

= Table.AddColumn(#"Previous step", "Custom", each Text.Combine({Text.Start([Column1], 1), Text.Middle(Text.Lower([Column1]), 1)}), type text)

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

79185496

Date: 2024-11-13 15:11:02
Score: 1.5
Natty:
Report link

I had the same problem with VS Code 1.95.2 for my C Project. I had to rollback version for the 3years ago's version (2 versions back) to get back the small icon.

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

79185483

Date: 2024-11-13 15:08:00
Score: 5.5
Natty: 5
Report link

which flutter version that has the fix for this caching issue?

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

79185474

Date: 2024-11-13 15:04:59
Score: 3.5
Natty:
Report link

remove hidden and in CSS of the embed player add display : none, it will disapear from screen without disturbing property. I don't understand how so many idiots are here

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

79185452

Date: 2024-11-13 14:59:58
Score: 2
Natty:
Report link

In my case i forget @HiltViewModel to add on start of the ViewModel

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

79185451

Date: 2024-11-13 14:59:58
Score: 0.5
Natty:
Report link

To fix this issue, I have added below 2 lines in my local.settings.json file

"FUNCTIONS_WORKER_RUNTIME": "dotnet-isolated",
"FUNCTIONS_V2_COMPATIBILITY_MODE": true,
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Jaydeep Shil

79185448

Date: 2024-11-13 14:58:58
Score: 1.5
Natty:
Report link

Flutter: Fix Rive Animation Controller Type Casting Error

Problem

When working with Rive animations in Flutter, you might encounter an error when trying to cast inputs using:

trigger = stateMachineController!.inputs.first as SMITrigger;

This error occurs because the type casting is invalid and unsafe.

Solution

Here's a complete working example showing how to properly handle Rive animation inputs:

import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:rive/rive.dart';

class BirdAnimation extends StatefulWidget {
  const BirdAnimation({Key? key}) : super(key: key);

  @override
  State<BirdAnimation> createState() => _BirdAnimationState();
}

class _BirdAnimationState extends State<BirdAnimation> {
  Artboard? _birdArtboard;
  SMITrigger? trigger;
  SMIBool? dance;
  StateMachineController? stateMachineController;

  @override
  void initState() {
    super.initState();
    _loadRiveFile();
  }

  Future<void> _loadRiveFile() async {
    try {
      final data = await rootBundle.load('assets/bird.riv');
      final file = RiveFile.import(data);
      final artboard = file.mainArtboard;
      
      // Initialize state machine controller
      stateMachineController = StateMachineController.fromArtboard(
        artboard, 
        "birb"  // Your state machine name
      );
      
      if (stateMachineController != null) {
        artboard.addController(stateMachineController!);
        
        // Properly find and initialize inputs
        trigger = stateMachineController!.findSMI('look up');
        dance = stateMachineController!.findSMI('dance');
      }

      setState(() => _birdArtboard = artboard);
    } catch (e) {
      print('Error loading Rive file: $e');
    }
  }

  void _lookup() {
    if (trigger != null) {
      trigger!.fire();
    }
  }

  void _toggleDance() {
    if (dance != null) {
      dance!.change(!dance!.value);
    }
  }

  @override
  void dispose() {
    stateMachineController?.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Center(
      child: SizedBox(
        height: 400,
        width: 400,
        child: _birdArtboard == null
            ? const CircularProgressIndicator()
            : GestureDetector(
                onTap: _lookup,
                onDoubleTap: _toggleDance,
                child: Rive(
                  artboard: _birdArtboard!,
                  fit: BoxFit.contain,
                ),
              ),
      ),
    );
  }
}

Key Points

  1. Proper Input Initialization
// Instead of unsafe casting:
// trigger = stateMachineController!.inputs.first as SMITrigger;

// Use findSMI to safely get inputs:
trigger = stateMachineController!.findSMI('look up');
dance = stateMachineController!.findSMI('dance');
  1. Error Handling
try {
  // Load and initialize Rive file
} catch (e) {
  print('Error loading Rive file: $e');
}
  1. Null Safety
void _lookup() {
  if (trigger != null) {
    trigger!.fire();
  }
}

Usage Guide

  1. Add Rive Dependency
dependencies:
  rive: ^0.12.4  # Use latest version
  1. Add Asset to pubspec.yaml
flutter:
  assets:
    - assets/bird.riv
  1. Create State Machine in Rive
  1. Implement Interactions
GestureDetector(
  onTap: _lookup,      // Single tap to look up
  onDoubleTap: _toggleDance,  // Double tap to toggle dance
  child: Rive(...),
)

Common Issues & Solutions

  1. Input Not Found
// Check if input exists
final input = stateMachineController!.findSMI('input_name');
if (input == null) {
  print('Input not found in state machine');
}
  1. Controller Disposal
@override
void dispose() {
  stateMachineController?.dispose();
  super.dispose();
}
  1. Loading States
child: _birdArtboard == null
    ? const CircularProgressIndicator()
    : Rive(artboard: _birdArtboard!),

Best Practices

  1. Type-Safe Input Management
class RiveInputs {
  final SMITrigger? lookUp;
  final SMIBool? dance;

  RiveInputs({this.lookUp, this.dance});

  static RiveInputs fromController(StateMachineController controller) {
    return RiveInputs(
      lookUp: controller.findSMI('look up'),
      dance: controller.findSMI('dance'),
    );
  }
}
  1. Resource Management
// Load file once and reuse
late final Future<RiveFile> _riveFile;

@override
void initState() {
  super.initState();
  _riveFile = rootBundle.load('assets/bird.riv')
      .then((data) => RiveFile.import(data));
}
  1. Performance Optimization
// Use const constructor
const BirdAnimation({Key? key}) : super(key: key);

// Cache artboard
final artboard = file.mainArtboard.instance();

Debugging Tips

  1. Check State Machine Name
print('Available state machines: ${file.mainArtboard.stateMachineNames}');
  1. Verify Inputs
stateMachineController?.inputs.forEach((input) {
  print('Input: ${input.name}, Type: ${input.runtimeType}');
});
  1. Monitor State Changes
dance?.addListener(() {
  print('Dance state: ${dance!.value}');
});

Remember to:

Would you like me to explain any specific part in more detail?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Darshan Parmar

79185437

Date: 2024-11-13 14:56:57
Score: 1
Natty:
Report link

Apache NiFi allows you to configure environment variables that can be accessed by processors. You can set the server's timezone as an environment variable, for example: bash Copy code export TZ="Asia/Colombo" Then, in your NiFi processor, you can access this environment variable using NiFi Expression Language: text Copy code ${env:TZ} Use NiFi System Properties:

You can pass the timezone as a system property to NiFi by modifying the nifi.properties file or setting a JVM property. Add the following line to nifi.properties or configure it as a JVM parameter:

-Duser.timezone=Asia/Colombo

Then, in a processor, use:

${sys:timezone}

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

79185436

Date: 2024-11-13 14:56:55
Score: 9.5 🚩
Natty: 5
Report link

I'm getting same error as above and keeping it with session storage didn't solve it. Can someone please help. I'm using angular 15 and angular-auth-oidc-client library 15 version.

Reasons:
  • RegEx Blacklisted phrase (3): please help
  • RegEx Blacklisted phrase (1): I'm getting same error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm getting same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jatin Gandhi