79428013

Date: 2025-02-10 18:46:55
Score: 3
Natty:
Report link

The LP formulation seems basically correct except that the total weight of the ingredients should be set to 2 (pounds). So add a constraint X1+X2+X3+X4+X5 =2

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

79428011

Date: 2025-02-10 18:45:54
Score: 3
Natty:
Report link

Apparently I posted in the wrong place, will repost in Wordpress Stackexchange and there is only toxic comments and no real assistance here.

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

79428006

Date: 2025-02-10 18:42:54
Score: 2
Natty:
Report link

Use nbimporter to import .ipynb files directly.

Ensure the notebook path is correct and the notebook contains only executable Python code.

Alternatively, convert the notebook to a .py file and import it as a regular module.

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

79428004

Date: 2025-02-10 18:41:53
Score: 1
Natty:
Report link

So, it's been a year- but I needed to run this again so I revisited it. I ended up with:

SELECT ( CASE WHEN( table Name.Carer2 = '' ) THEN table Name.Carer1 WHEN( table Name.Carer1 = '' ) THEN table Name.Carer2 ELSE CONCAT_WS( ' & ', table Name.Carer1, table Name.Carer2 ) END ) AS Carers, ( CASE WHEN( table Name = '' ) THEN table Name.Carer1_Contact WHEN( table Name.Carer1_Contact = '' ) THEN table Name.Carer2_Contact ELSE CONCAT_WS( ',', table Name.student_info.Carer1_Contact, table Name.Carer2_Contact ) END ) AS Contact, GROUP_CONCAT( table Name.First_Name SEPARATOR ' & ' ) AS Children From Table Name Group Bytable Name.Carer1_Contact, table Name.Carer2_Contact

I'm now doing some more work to this to make it even better and I've come across another stumbling block.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Bemberlina

79428001

Date: 2025-02-10 18:41:53
Score: 4
Natty:
Report link

I am having the very same issue (i.e. response containing the undefined url) and curious if this got resolved.

Endpoint GET https://developer.api.autodesk.com/bim360/rfis/v2/containers/:containerId/rfis/:rfiId/attachments

response: { "id": "cb3b7702-f65e-4a6e-bdc3-0ff5de43cc80", "name": "2fe417a1-18c7-4a3b-8460-ac7eecdf6cab.txt", "urn": "urn:adsk.wipprod:dm.lineage:yzt3AvZeSm69ww_13kPMgA", "urnType": "oss", "createdBy": "7262JZTKLJS27V8Q", "createdAt": "2025-02-10T16:20:25.000Z", "deletedBy": null, "deletedAt": null, "permittedActions": { "removeAttachment": true }, "url": "https://developer.api.autodesk.com/oss/v2/buckets/yzt3AvZeSm69ww_13kPMgA/objects/undefined" }

Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the very same issue
  • Low reputation (1):
Posted by: user29587166

79427992

Date: 2025-02-10 18:36:52
Score: 1
Natty:
Report link

Make sure to call the function you defined within Movie. Something like this:

export default function Movie() {
  const props = getServerSideProps();

  return (
    <>
      <h1>{props.abc || 'not found'}</h1>
    </>
  )
}

And you should see '123'.

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

79427990

Date: 2025-02-10 18:35:51
Score: 2
Natty:
Report link

If I understand you correctly, you are trying to set the options for every modal separately. This can be accomplished by

const stack = createModalStack({Demo1: {backdropOpacity: 0.5}, Demo2: {backdropOpacity: 0.8}});

For more information, refer to the docs: https://colorfy-software.gitbook.io/react-native-modalfy/api/types/modalstackconfig

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

79427986

Date: 2025-02-10 18:32:50
Score: 0.5
Natty:
Report link

To fix this:

Go to WordPress Dashboard → Settings → Permalinks. Select the "Post name" option (/sample-post/). Click Save Changes. If you still get 404 errors, try the following:

Flush Permalinks: Just re-saving the permalinks in Settings can fix the issue. Check .htaccess (if on Apache): If you're using an Apache server, WordPress needs to write to the .htaccess file. Make sure it has the correct rewrite rules. Check Hosting Settings: Some hosts may override permalinks with default settings.

Reasons:
  • Whitelisted phrase (-1): try the following
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mian Usman

79427980

Date: 2025-02-10 18:30:50
Score: 3.5
Natty:
Report link

I created a django-pdf-actions app that provides admin actions for PDF operations.

PYPI: https://pypi.org/project/django-pdf-actions/

GH: https://github.com/ibrahimroshdy/django-pdf-actions

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

79427950

Date: 2025-02-10 18:18:47
Score: 2
Natty:
Report link

I've similar issues in one of my POC.

The problem occurs because of the recursive app opening behavior. This way we can fix it, while returning IntentResult type instead of OpaqueType.

struct NotifyFriendsScreen: AppIntent {
    static var title: LocalizedStringResource = "Connect With Friends"
    static var description = IntentDescription("This will activate tell-them to notify your friends. Then you can proceed to app.")
    
    @Parameter(title: "❗️Choose App❗️", optionsProvider: SupportedApps())
    var selectedApp: String
    
    @MainActor
    func perform() async throws -> IntentResult {
        if UserDefaults.standard.bool(forKey: "openTellThem") {
            showTargetViewController()
            UserDefaults.standard.set(false, forKey: "openTellThem")
            return .result()
        } else {
            return .result()
        }
    }
}

I hope this will fix your issue.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): 've similar issue
  • Low reputation (0.5):
Posted by:  Engineer

79427948

Date: 2025-02-10 18:17:47
Score: 0.5
Natty:
Report link

Figured out that the legend wasn't being extracted because the legend.position was set to "bottom".

To obtain the legend when legend.position = "bottom" use cowplot::get_plot_component(legendplot,"guide-box-bottom") rather than cowplot::get_legend(legendplot)

Change the value guide-box to one of the following values to match the position supplied in theme(legend.position="") if you aren't using the default legend.position:

  1. guide-box-right when legend.position="right",
  2. guide-box-left when legend.position="left",
  3. guide-box-bottom when legend.position="bottom",
  4. guide-box-top when legend.position="top",
  5. guide-box-inside when legend.position="inside"

Screenshot of the produced legend from the code below

library(cowplot); library(patchwork); library(grid); library(tidyverse)

#Data to create legend
legend_data <- data.frame(
  julian = 299:366,
  PM25 = c(3.4,1.3,1.2,1.2,0.4,3.4,1.0,0.8,0.3,13.5,0.9,5.3,4.4,3.4,98.6,0.7,350.6,0.8,0.3,0.9,0.9,4.1,0.7,0.3,0.4,2.1,1.4,5.2,4.2,3.9,1.4,0.8,0.7,0.8,0.3,1.9,0.8,0.7,1.2,1.7,67.9,3.8,6.1,5.9,225.3,0.7,0.3,0.6,2.9,37.5,1.1,33.2,0.9,1.5,1.1,0.8,1.5,0.8,2.2,4.6,1.2,1.0,3.3,0.9,0.9,4.6,1.2,2.8),
  site_name = "community 1"
  )
legend_data$AQI <- case_when(
  legend_data$PM25 <= 9.0 ~ "1",
  legend_data$PM25 >= 9.1 & legend_data$PM25 <= 35.4 ~ "2",
  legend_data$PM25 >= 35.5 & legend_data$PM25 <= 55.4 ~ "3",
  legend_data$PM25 >= 55.5 & legend_data$PM25 <= 125.4 ~ "4",
  legend_data$PM25 >= 125.5 & legend_data$PM25 <= 225.4 ~ "5",
  legend_data$PM25 >= 225.5 ~ "6",
  TRUE ~ NA_character_
)

#Create plot
legendplot <- ggplot(legend_data, aes(x=julian, y=AQI, fill=AQI)) +
  geom_tile() +
  scale_fill_manual(
    values = c("green", "yellow", "orange", "red", "purple", "maroon"),
    labels = c("1" = "Good", "2"="Moderate", "3" = "Unhealthy for\nSensitive Groups", "4" = "Unhealthy", "5" = "Very Unhealthy", "6" = "Hazardous")
  ) +
  theme(legend.position = "bottom")
legendplot

#Extract legend
legend<-cowplot::get_plot_component(legendplot,"guide-box-bottom") 
grid.newpage()
grid.draw(legend)
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kelly Ireland

79427938

Date: 2025-02-10 18:12:46
Score: 1.5
Natty:
Report link

If you know the api documentation like swagger or postman collection. I guess, that should help. That would help you know what is needed and what is to be expected vice versa. If you still expect it is an integration issue, let the backend operations know and raise an issue . Not sure about your absolute scenario, but i gave a basic problem solving approach.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sunil Raj

79427936

Date: 2025-02-10 18:11:45
Score: 8.5 🚩
Natty: 6
Report link

I also have a similar problem with a "Aviation" app and a specialist aviation receiver I want to use. The aviation receiver connects by WIFI to my smartphone but that connection doesn't have any internet access. The general aviation app also needs to connect to mobile data when the WIFI connection is established. I need to configure my S22+ smartphone to make this happen. Is this possible? If so, how? Android version 14.

Reasons:
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Me too answer (2.5): I also have a similar problem
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tony N

79427935

Date: 2025-02-10 18:11:44
Score: 4.5
Natty:
Report link

check the consumption of specific queries using https://github.com/psqlmaster/pgsyswatch

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

79427932

Date: 2025-02-10 18:09:44
Score: 2
Natty:
Report link

The file reference is incorrect. You can put a full path to try and see if it works. project/icons/person_8342b8.svg

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

79427931

Date: 2025-02-10 18:08:42
Score: 8 🚩
Natty:
Report link

vamos lá! O erro que você está vendo acontece porque você está tentando usar require() para importar um moodulo que é do tipo ESM (EcmaScript Module), que é um tipo mais moderno de módulo no JavaScript. O ESM usa import em vez de require, e parece que o seu código está misturando os dois.

Aqui estão algumas coisas que você pode fazer para resolver isso aí:

trocar require por import Se o seu projeto está usando ESM, você deve usar import em vez de require. Por exemplo, em vez de module.exports, você pode usar export default.

use o import() dinâmico, se você precisa usar require por algum motivo, você pode tentar usar import() dinâmico, que é uma função que permite carregar módulos ESM de forma assíncrona.

Verificar o package.json: veja se o seu package.json tem a linha "type": "module" se você estiver usando ESM. Isso diz ao Node.js para tratar os arquivos como módulos ESM.

Reasons:
  • Blacklisted phrase (3): você
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): porque
  • Blacklisted phrase (2): código
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: http-pixelon

79427929

Date: 2025-02-10 18:08:42
Score: 1
Natty:
Report link

If you're using GitLab in the browser you can

  1. Open the job.
  2. Right click to Inspect the page.
  3. Go to Network and then the Fetch/XHR tab.
  4. Reload the page and you'll see a [JOB_ID].json there.

You'll find created_at and more data there!

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

79427925

Date: 2025-02-10 18:07:42
Score: 2
Natty:
Report link

You can't use .set() on a collection reference, only on a document reference. You could use .add(), this also automatically generates an ID for the document. Source: StackOverflow

The 504 error you're getting would suggest that your request to Firestore timed out. This could be due to several reasons. If the test document is large it could be too much data, although since you seem to only upload one file I doubt that's the case, but there's some info about it here.

Since you say you've updated the firebase service account roles I assume you've checked the permission, if not, try that. Otherwise it may be a connection issue, make sure your network is stable. You could also try to add some retries.

This issue was also posted on GitHub, although here they do mention MacOS.

If none of this helps I'd find out at which line in your try statement the error is thrown.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Jesper

79427921

Date: 2025-02-10 18:05:42
Score: 3.5
Natty:
Report link

Same,according to your expo u need to downgrade lib version

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

79427918

Date: 2025-02-10 18:04:41
Score: 0.5
Natty:
Report link

Here is my attempt at a cryptographically secure password generator. The core functionality is based on this C# version which seems well regarded. The finer details of it you can read in the DESCRIPTION section of the help comment.

<#
.SYNOPSIS
    Creates a cryptographically secure password

.DESCRIPTOIN
    Creates a cryptographically secure password

    The dotnet class [RandomNumberGenerator] is used
    to create cryptographically random values which
    are converted to numbers and used to index each
    character set.

    Minimum requires characters types is implemented
    by generating those values up front, generating
    any remaining characters with the full character set
    then shuffling everything together.

    This cmdlet is compatible with both Powershell Desktop
    and Core. When using Powershell Core, a safer shuffler
    cmdlet is used.

.NOTE
    Thanks to
    * CodesInChaos - Core functionality from his CSharp version (https://stackoverflow.com/a/19068116/5339918)
    * Jamesdlin - Minimum char shuffle idea (https://stackoverflow.com/a/74323305/5339918)
    * Shane - Json safe flag idea (https://stackoverflow.com/a/73316960/5339918)

.EXAMPLE
    Basic usage

    New-Password

.EXAMPLE
    Specify password length and exclude Numbers/Symbols from password

    New-Password -Length 64 -NumberCharset @() -SymbolCharset @()

.EXAMPLE
    Require 2 of each character set in final password

    New-Password -MinimumUpper 2 -MinimumLower 2 -MinimumNumber 2 -MinimumSymbol 2
#>
function New-Password {
    [CmdletBinding()]
    param(
        [ValidateRange(1, [uint32]::MaxValue)]
        [uint32] $Length = 32,

        [uint32] $MinimumUpper,
        [uint32] $MinimumLower,
        [uint32] $MinimumNumber,
        [uint32] $MinimumSymbol,

        [char[]] $UpperCharSet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
        [char[]] $LowerCharSet = 'abcedefghijklmnopqrstuvwxyz',
        [char[]] $NumberCharSet = '0123456789',
        [char[]] $SymbolCharSet = '!@#$%^&*()[]{},.:`~_-=+',  # Excludes problematic characters like ;'"/\,

        [switch] $JsonSafe
    )

    #============
    # PRE CREATE
    #============

    if ($JsonSafe) {
        $ProblemCharacters = @(';', "'", '"', '/', '\', ',', '`', '&', '+')
        [char[]] $SymbolCharSet = $SymbolCharSet | Where-Object { $_ -notin $ProblemCharacters }
    }

    # Parameter validation
    switch ($True) {
        { $MinimumUpper -and -not $UpperCharSet } { throw 'Cannot require uppercase without a uppercase charset' }
        { $MinimumLower -and -not $UpperCharSet } { throw 'Cannot require lowercase without a lowercase charset' }
        { $MinimumNumber -and -not $UpperCharSet } { throw 'Cannot require numbers without a numbers charset' }
        { $MinimumSymbol -and -not $SymbolCharSet } { throw 'Cannot require symbols without a symbol charset' }
    }

    $TotalMinimum = $MinimumUpper + $MinimumLower + $MinimumNumber + $MinimumSymbol
    if ($TotalMinimum -gt $Length) {
        throw "Total required characters ($TotalMinimum) exceeds password length ($Length)"
    }

    $FullCharacterSet = $UpperCharSet + $LowerCharSet + $NumberCharSet + $SymbolCharSet

    #=========
    # CREATE
    #=========

    $CharArray = [char[]]::new($Length)
    $Bytes = [Byte[]]::new($Length * 8)  # 8 bytes = 1 uint64
    $RNG = [System.Security.Cryptography.RandomNumberGenerator]::Create()
    $RNG.GetBytes($Bytes)  # Populate bytes with random numbers

    for ($i = 0; $i -lt $Length; $i++) {

        # Convert the next 8 bytes to a uint64 value
        [uint64] $Value = [BitConverter]::ToUInt64($Bytes, $i * 8)

        if ($MinimumUpper - $UpperSatisfied) {
            $CharArray[$i] = $UpperCharSet[$Value % [uint64] $UpperCharSet.Length]
            $UpperSatisfied++
            continue
        }

        if ($MinimumLower - $LowerSatisfied) {
            $CharArray[$i] = $LowerCharSet[$Value % [uint64] $LowerCharSet.Length]
            $LowerSatisfied++
            continue
        }

        if ($MinimumNumber - $NumberSatisfied) {
            $CharArray[$i] = $NumberCharSet[$Value % [uint64] $NumberCharSet.Length]
            $NumberSatisfied++
            continue
        }


        if ($MinimumSymbol - $SymbolSatisfied) {
            $CharArray[$i] = $SymbolCharSet[$Value % [uint64] $SymbolCharSet.Length]
            $SymbolSatisfied++
            continue
        }

        $CharArray[$i] = $FullCharacterSet[$Value % [uint64] $FullCharacterSet.Length]
    }
   
    if ($TotalMinimum -gt 0) {
        if ($PSVersionTable.PSEdition -eq 'Core') {
            $CharArray = $CharArray | Get-SecureRandom -Shuffle
        } else {
            # If `-SetSeed` is used, this would always produce the same result
            $CharArray = $CharArray | Get-Random -Count $Length
        }
    }

    return [String]::new($CharArray)
}
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: RiverHeart

79427915

Date: 2025-02-10 18:02:41
Score: 3
Natty:
Report link

i also installed the Geometry Dash Apk from a wesbsite i have not faced any issue you can also game from this site with complete safe source.

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

79427912

Date: 2025-02-10 18:01:40
Score: 1.5
Natty:
Report link

In table A2 of Intel® 64 and IA-32 Architectures Software Developer’s Manual Volume 2; Bound is 0x62 Gv, Ma. G means operand 1 will be interpreted as a general purpose register. M means operand 2 must be a memory operand. Meaning the mod field must not be 0b11. I then assume that other mod field values will be interpreted as the second byte of EVEX prefix; and 0x62 will be interpreted as EVEX prefix header.

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

79427910

Date: 2025-02-10 18:01:40
Score: 1.5
Natty:
Report link

Thanks to krisgeus for macos/brew/poetry. More detailed:

brew install graphviz
CFLAGS="-I$(brew --prefix graphviz)/include/ -L$(brew --prefix graphviz)/lib/" poetry add pygraphviz
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jeff Taylor

79427909

Date: 2025-02-10 18:00:39
Score: 6 🚩
Natty: 5
Report link

Is your react-native-screens version v4 or @react-navigation version v7? If you’re using an older version, have you tried upgrading these two libraries to the latest versions?

Reasons:
  • Whitelisted phrase (-1): have you tried
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @react-navigation
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: NB1111

79427907

Date: 2025-02-10 17:59:38
Score: 1
Natty:
Report link

When writing programs, simply import the package (or components that are needed from it). When developing a library, I start out by creating a proper package including __init__.py, __all__ and a /tests directory. The library code is run from the latter and as soon as something works properly I convert the code to a pytest compatible test fixture. When done, there is no more code, only tests that can be run by typing pytest. I usually ship the tests along with the package so that if something doesn't work on a different platform people can send me test output.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (1):
Posted by: Max Headroom

79427905

Date: 2025-02-10 17:59:38
Score: 2
Natty:
Report link

Console Editing for Notepad++:


plugins/npp exec/ change console font

this path changes the console's font, font style-type, and size.

plugins/npp exec/advanced options

This path changes the color of the fonts in the terminal.

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

79427884

Date: 2025-02-10 17:49:36
Score: 4
Natty:
Report link

use forward slash in path name

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

79427878

Date: 2025-02-10 17:44:34
Score: 3.5
Natty:
Report link

I noticed that there is an option of creating small multiples on Stacked column chart. I added the "Scenario" dimension there after which I could create synchronized sub-plots.

enter image description here

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

79427875

Date: 2025-02-10 17:43:34
Score: 1.5
Natty:
Report link

Creating a C++ console program that simulates flipping a coin 256 times, displays the results in binary code, formats the output, includes delays, and generates seed phrases requires a structured approach. Below is a detailed implementation that meets your requirements.

This program will:

  1. Simulate coin flips.
  2. Display results in rows of 11 with specific spacing.
  3. Introduce a delay of 0.05 seconds between each line.
  4. Use the BIP39 dictionary (for simplicity, a small subset is included, but ideally, you'd want the full dictionary for real applications).

I have 2 recent examples on LinkedIn with descriptions, code and screenshots. I can’t post screenshots here, because I’m new to the resource.

enter link description here

Reasons:
  • Blacklisted phrase (0.5): enter link description here
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Viacheslav Chebotarev

79427866

Date: 2025-02-10 17:40:33
Score: 5.5
Natty: 6.5
Report link

https://ui.shadcn.com/docs/tailwind-v4 this help me i use latest build and this work

Reasons:
  • Blacklisted phrase (1): help me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: alesha 229

79427855

Date: 2025-02-10 17:36:32
Score: 0.5
Natty:
Report link

Your "Shaded" image needs to be the "shader" only...

This is what I get with your code, and un-edited images:

orig

If I clip out your "shader" image:

clipped

I get this:

result

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

79427850

Date: 2025-02-10 17:35:31
Score: 4.5
Natty:
Report link

You can check below github issue. https://github.com/facebook/react-native/issues/49115

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

79427842

Date: 2025-02-10 17:32:30
Score: 1
Natty:
Report link

Hashing is one one way function : Hello --> "blah blah blah" and it is irreversible unless you know a hash "blah blah blah" means Hello. Just to ensure data integrity, to ensure that it my message by hashing it, since i already know the message and yeah hash matches.

No point in thinking about reversing it, because it ain't a procces.

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

79427833

Date: 2025-02-10 17:28:28
Score: 9.5 🚩
Natty:
Report link

I have the same problem, have you been able to solve it? I am using Windows 11.

Simply I create a virtualenv with python3.12

Reasons:
  • Blacklisted phrase (1.5): have you been able to
  • Blacklisted phrase (1): I have the same problem
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Valen D

79427831

Date: 2025-02-10 17:28:28
Score: 1.5
Natty:
Report link

Run your app using:

./gradlew bootRun --args='--spring.profiles.active=dev' --debug-jvm.

Then, in IntelliJ IDEA, create a Remote JVM Debug configuration and run it.

enter image description here

Actually, this is the same process as debugging a Java Spring Boot application, so the current question might be a duplicate of how to debug spring application with gradle

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

79427825

Date: 2025-02-10 17:25:27
Score: 2
Natty:
Report link

Please use the package: https://github.com/thiendangit/react-native-thermal-receipt-printer-image-qr

This is good one for print image.

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

79427817

Date: 2025-02-10 17:21:27
Score: 2.5
Natty:
Report link

just copy paste your h2 database url from springboot properties file to h2 console , it will work

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

79427815

Date: 2025-02-10 17:19:26
Score: 3
Natty:
Report link

This behavior is expected, check out the documentation.

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

79427804

Date: 2025-02-10 17:15:25
Score: 2.5
Natty:
Report link

I have added the same code to my project, and the application has started successfully, as you can see in the picture below. You need to reload the Maven project properly, as shown in the screenshot below.

enter image description here

Below is my pom.xml

enter image description here

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

79427800

Date: 2025-02-10 17:13:25
Score: 2
Natty:
Report link

If I recall correctly TryGetComponent(out T component) also avoids some minor memory allocation while you're in Editor, so it can be considered a micro-optimization during development. Apparently that memory allocation doesn't occur in the built Player, so for builds GetComponent and TryGetComponent should have similar performance.

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

79427791

Date: 2025-02-10 17:09:24
Score: 0.5
Natty:
Report link

I had this same issue. I fixed it by disabling my ad blocker extension for the Google Cloud console.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ToxMox

79427787

Date: 2025-02-10 17:06:23
Score: 3.5
Natty:
Report link

Hi Check this strategy to generate multiple PDF's

https://www.linkedin.com/pulse/how-i-reduced-pdf-generation-time-from-1-hour-20-minutes-manu-vijay-uo5dc/?trackingId=AdxMZZwyKaNaFSsywS4mLQ%3D%3D

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

79427774

Date: 2025-02-10 17:00:22
Score: 1
Natty:
Report link

NestJS has added a waitForCompletion option in version 5.0.1.

https://github.com/nestjs/schedule/pull/1870

@Cron(CronExpression.EVERY_SECOND, {
  waitForCompletion: true,
})
async handleCron() {
  this.logger.debug(`start ${c}`);
  await timeout(3000)
  this.logger.debug(`end ${c}`);
  c += 1;
}
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
Posted by: Steve

79427770

Date: 2025-02-10 16:59:21
Score: 7.5 🚩
Natty: 5.5
Report link

I am pretty new at programming and autodesk.com, is it possible to create a new bucket directly from my python script? I have written python script for connecting GPT and via GPT want to edit and extract information from dfx files, but I have a problem with the part working with dfx files. Where do I find bucket name? Thank you in advance

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): is it possible to
  • RegEx Blacklisted phrase (3): Thank you in advance
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dalibor

79427769

Date: 2025-02-10 16:57:20
Score: 1
Natty:
Report link

In case anyone else is having trouble with this:

Here's what I learned using Blazor SSR with pages containing @attribute[StreamRendering] and also using BlazorPageScript to run some custom js for user interactivity:

  1. StreamRendering will 'stop working' if there are any uncaught javascript errors. 'Stop working' means the page opens as if @attribute[StreamRendering] is not there.

  2. The 'stop working' may occur even if you write correct js.

  3. Here's the Blazor bug: in the BlazorPageScript onLoad() and onUpdate() events, if the js code contains 'getElementById', it will trigger an 'ID NotFound' error, EVEN IF THE ID EXISTS.

  4. StreamRendering requires onUpdate() to be executed twice before the page is shown, it's on the 2nd onUpdate() that the 'ID not found' error occurs.

  5. The fix is to wrap all your custom JS functions in a try/catch.

  6. When testing this, you may need to navigate to another page, then back to the page you're testing to see StreamRendering fail. Just refreshing the page may not be enough.

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

79427768

Date: 2025-02-10 16:57:20
Score: 1.5
Natty:
Report link

I ended up using this package : react-native-device-info

With the function

import DeviceInfo from 'react-native-device-info';

async function checkGooglePlayServices() {
  const isPlayServicesAvailable = await DeviceInfo.hasGms(); // Returns true if Google Play Services are available
  return isPlayServicesAvailable;
}

It does detect correctly with emulated non google android phone.

https://github.com/react-native-device-info/react-native-device-info?tab=readme-ov-file#hasGms

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

79427766

Date: 2025-02-10 16:57:19
Score: 4
Natty:
Report link

you have to update the matplotlib window every time you make a change to see it

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

79427765

Date: 2025-02-10 16:56:18
Score: 4
Natty: 4.5
Report link

I know Aqua supports Windows containers as per documentation. Another option is Prisma: https://techcommunity.microsoft.com/blog/containers/unlocking-new-possibilities-with-prisma-cloud-and-windows-containers-on-azure-ku/3866485

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

79427754

Date: 2025-02-10 16:54:16
Score: 6.5 🚩
Natty:
Report link

If the answer is not late, I recommend you see the paper Shape Distribution. This paper transfer comparison between shapes to comparison better distribution curves. A little math is enough for this paper. By the way, the protein cavity demo is beautiful. I see it is locally composed of triangular meshes, does every point/vertex in the meshes represent a atom in the protein? If so how did you get the meshs from atoms. I am very interested in this question. Looking forward to your reply!

Reasons:
  • Blacklisted phrase (1.5): Looking forward to your
  • RegEx Blacklisted phrase (3): did you get the
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: 周守信

79427752

Date: 2025-02-10 16:54:15
Score: 2.5
Natty:
Report link

It's been almost 10 years since this answer was given. Has there been any changes since then. Paying for multiple phone numbers to send SMS through really isn't an option for us.

Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Andre Kramer

79427744

Date: 2025-02-10 16:51:15
Score: 3.5
Natty:
Report link

Most likely, the reason is that the Windows image is missing fonts necessary for this conversion. You can check how to add fonts to Windows containers here: https://learn.microsoft.com/en-us/virtualization/windowscontainers/deploy-containers/font-packages

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

79427738

Date: 2025-02-10 16:50:14
Score: 2
Natty:
Report link

This Code Will Get An Integer Number From User To Make It Look Like Triangle

Number = int(input("Enter Number : \n")) for n in range(Number): for s in range(Number): print('*', end='') print() Number-=1

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

79427731

Date: 2025-02-10 16:47:14
Score: 0.5
Natty:
Report link

It works. I can move a divider by mouse. I need to know how I can do tabs same width then left column.

window screenshot

import sys

from PySide2 import QtWidgets
from PySide2 import QtCore
from PySide2 import QtGui


class VTabBar(QtWidgets.QTabBar):

    def tabSizeHint(self, index):
        s = QtWidgets.QTabBar.tabSizeHint(self, index)
        s.transpose()
        return s

    def paintEvent(self, event):
        painter = QtWidgets.QStylePainter(self)
        opt = QtWidgets.QStyleOptionTab()

        for i in range(self.count()):
            self.initStyleOption(opt, i)
            painter.drawControl(QtWidgets.QStyle.CE_TabBarTabShape, opt)
            painter.save()

            s = opt.rect.size()
            s.transpose()
            r = QtCore.QRect(QtCore.QPoint(), s)
            r.moveCenter(opt.rect.center())
            opt.rect = r

            c = self.tabRect(i).center()
            painter.translate(c)
            painter.rotate(90)
            painter.translate(-c)
            painter.drawControl(QtWidgets.QStyle.CE_TabBarTabLabel, opt)

            if self.tabsClosable():  # repare close button position
                optRect = self.tabRect(i)
                btn_size = QtCore.QSize(12, 12)
                btn_center = QtCore.QPoint(
                    optRect.x() + optRect.width() - 20,
                    optRect.y() + optRect.height() - (optRect.height() // 2),
                )
                optRect.setSize(btn_size)
                optRect.moveCenter(btn_center)
                self.tabButton(i, QtWidgets.QTabBar.RightSide).setGeometry(optRect)

            painter.restore()


class DividedTabWidget(QtWidgets.QWidget):

    def __init__(self, parent=None):
        super().__init__(parent)
        self.__tabBar = VTabBar()
        self.__tabBar.setShape(QtWidgets.QTabBar.RoundedWest)
        self.__tabBar.setTabsClosable(True)
        self.__tabBar.setSizePolicy(
            QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed
        )
        self.__stack = QtWidgets.QStackedWidget()
        self.__tabBar.currentChanged.connect(self.__stack.setCurrentIndex)
        self.__tabBar.tabCloseRequested.connect(self.removeTab)

    def stackedWidget(self):
        return self.__stack

    def tabBar(self):
        return self.__tabBar

    def insertTab(self, index, widget, label):
        if not widget:
            return -1
        index = self.__stack.insertWidget(index, widget)
        self.__tabBar.insertTab(index, label)
        return index

    def addTab(self, widget, label):
        return self.insertTab(self.__stack.count(), widget, label)

    def removeTab(self, index):
        self.__tabBar.removeTab(index)
        self.__stack.removeWidget(self.__stack.widget(index))


def add_tab():
    text = "New tab"
    w = QtWidgets.QLabel(text)
    tab_widget.addTab(w, text)


if __name__ == "__main__":
    app = QtWidgets.QApplication()
    mainwindow = QtWidgets.QMainWindow()
    splitter = QtWidgets.QSplitter()
    tab_widget = DividedTabWidget()
    tab_widget.addTab(QtWidgets.QLabel("First tab"), "First tab")
    tab_widget.addTab(QtWidgets.QLabel("Second tab"), "Second tab")
    tab_widget.addTab(QtWidgets.QLabel("Third tab"), "Third tab")
    # left panel
    l_widget = QtWidgets.QWidget()
    l_layaout = QtWidgets.QVBoxLayout()
    l_widget.setLayout(l_layaout)
    add_tab_btn = QtWidgets.QPushButton(
        "Add new tab"
    )  # add tab button, it is analog of corner widget
    add_tab_btn.clicked.connect(add_tab)
    l_layaout.addWidget(add_tab_btn)
    l_layaout.addWidget(tab_widget.tabBar())
    splitter.addWidget(l_widget)
    # right panel
    splitter.addWidget(tab_widget.stackedWidget())

    mainwindow.setCentralWidget(splitter)
    mainwindow.show()
    sys.exit(app.exec_())
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexandr Shapenkov

79427727

Date: 2025-02-10 16:46:13
Score: 3
Natty:
Report link

@Dhara's answer needs to divide the angle by two as @Panos pointed out. Unfortunately, I couldn't post a comment due to my low reputation. Here is the code (also adapted to use matplotlib and numpy). There are two possible centers, the other one can be obtained by providing the negative value of the angle as an argument.

import matplotlib.pyplot as plt
import numpy as np

def find_center(p1, p2, angle):

    angle = angle/2
    # End points of the chord
    x1, y1 = p1 
    x2, y2 = p2 

    # Slope of the line through the chord
    slope = (y1-y2)/(x1-x2)

    # Slope of a line perpendicular to the chord
    new_slope = -1/slope

    # Point on the line perpendicular to the chord
    # Note that this line also passes through the center of the circle
    xm, ym = (x1+x2)/2, (y1+y2)/2

    # Distance between p1 and p2
    d_chord = ((x1-x2)**2 + (y1-y2)**2)**0.5

    # Distance between xm, ym and center of the circle (xc, yc)
    d_perp = d_chord/(2*np.tan(angle))

    # Equation of line perpendicular to the chord: y-ym = new_slope(x-xm)
    # Distance between xm,ym and xc, yc: (yc-ym)^2 + (xc-xm)^2 = d_perp^2
    # Substituting from 1st to 2nd equation for y,
    #   we get: (new_slope^2+1)(xc-xm)^2 = d^2

    # Solve for xc:
    xc = (d_perp)/(new_slope**2+1)**0.5 + xm

    # Solve for yc:
    yc = (new_slope)*(xc-xm) + ym

    return xc, yc


def find_two_centers(p1, p2, angle):

    return find_center(p1, p2, angle), find_center(p1, p2, -angle)


plt.figure()

p1 = [1., 2.]
p2 = [-3, 4.]
angle = np.pi/2
xc, yc = find_center(p1, p2, angle)
# Calculate the radius and draw a circle
r = ((xc-p1[0])**2 + (yc-p1[1])**2)**0.5
cir = plt.Circle((xc,yc), radius=r,  fc='y')
plt.gca().add_patch(cir)

# mark p1 and p2 and the center of the circle
plt.plot(p1[0], p1[1], 'ro')
plt.plot(p2[0], p2[1], 'ro')
plt.plot(xc, yc, 'go')

plt.axis('equal')

xc, yc = find_center(p1, p2, -angle)
# Calculate the radius and draw a circle
r = ((xc-p1[0])**2 + (yc-p1[1])**2)**0.5
cir = plt.Circle((xc,yc), radius=r,  fc='y')
plt.gca().add_patch(cir)

# mark p1 and p2 and the center of the circle
plt.plot(p1[0], p1[1], 'ro')
plt.plot(p2[0], p2[1], 'ro')
plt.plot(xc, yc, 'go')

plt.axis('equal')

plt.show()
Reasons:
  • RegEx Blacklisted phrase (1.5): low reputation
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Dhara's
  • User mentioned (0): @Panos
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Daniel H.

79427714

Date: 2025-02-10 16:41:12
Score: 2
Natty:
Report link

.get() Method returns a value associated with a key that you pass in the .get() method, not the index.

So because you pass in 0 and not 0L it looks for a Integer key of 0 while you listed Long for a key in your HashMaps generics.

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

79427706

Date: 2025-02-10 16:37:11
Score: 4.5
Natty: 4
Report link

We have installed apex in oracle DBCS system. We also installed ORDS in a compute VM.

We have few apex applications which needs to be exposed to internet. We also have few apex applications which should be accessed only in intranet(VPN).

We have created public load balancer and directed the backend to ORDS port. This way few apex applications are accessed in internet.

How to give access to other apex applications which has to be accessed only in private network? Do we need to go for second load balancer, i mean private load balancer?

Any ideas please.

Thanks, Satish

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Any ideas
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: satish

79427701

Date: 2025-02-10 16:34:10
Score: 0.5
Natty:
Report link
relchange <- function(x, first = FALSE) {
  x[!is.na(x)] <- c(1, exp(diff(log(x[!is.na(x)]))))
  return(x)
}

relchange(dt$sale)
 [1]        NA        NA        NA        NA 1.0000000 0.6930112 1.3048314
 [8] 1.4211981 5.3062771 1.0084781 1.1261770 1.1349657
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adrian

79427699

Date: 2025-02-10 16:34:10
Score: 1
Natty:
Report link

Use Date_TRUNC('granularity', column).

To group events into a summarised time:

SELECT DATE_TRUNC('hour', timestamp) as hour, name, count(event) * 100 / count(*)
group by timestamp, name, event
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mohRamadan

79427698

Date: 2025-02-10 16:33:10
Score: 0.5
Natty:
Report link

I'm the maintainer of the ggbiplot pkg, so I dug in and modified the code for ggbiplot() to do what I want here. I added a geom.ind argument that allows geom.ind = c("point", "text"). For testing purposes, this is still on a new geoms branch in the package.

#remotes::install_github("friendly/ggbiplot", ref = "geoms")
# adjust variable names to fold at '_'
vn <- rownames(peng.pca$rotation)
vn <- gsub("_", "\n", vn)
rownames(peng.pca$rotation) <- vn

ggbiplot(peng.pca, 
         choices = 3:4,
         groups = peng$species, 
         ellipse = TRUE, ellipse.alpha = 0.1,
         circle = TRUE,
         var.factor = 4.5,
         geom.ind = c("point", "text"),
         point.size = 2,
         labels = lab, labels.size = 6,
         varname.size = 5,
         clip = "off") +
  theme_minimal(base_size = 14) +
#  theme_penguins("dark") +
  theme(legend.direction = 'horizontal', legend.position = 'top') 

This gives:

enter image description here

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: user101089

79427688

Date: 2025-02-10 16:27:08
Score: 5.5
Natty:
Report link

I am facing the very same situation since 3 days ago.

Not able to file a bug, not able to create set up the community profile to post it to the community ...

did it get solved for you?

Reasons:
  • RegEx Blacklisted phrase (1.5): solved for you?
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Marlos Cruzeiro Soares Filho

79427680

Date: 2025-02-10 16:24:07
Score: 0.5
Natty:
Report link

@AllanCamerons answer already answers my question in a very elegant way. However, there's one problem that kept bugging me: The function signals both a message and an error. After studying the source code of rlang::signal_abort(), I found that a mix of signalCondition() and cat() mostly mirrors the behavior of rlang::abort():

abort <- function(msg, call = sys.call(1)) {
  cnd <- errorCondition(msg, call = call)
  signalCondition(cnd)
  msg <- sprintf("Error in %s:\n- %s", deparse(call), msg)
  cat(msg, "\n", file = stderr())
  old_options <- options(show.error.messages = FALSE)
  on.exit(options(old_options))
  stop("")
}

What (I think) this does:

Why this is useful:

> tryCatch(abort("something went wrong"), message = \(e) "message caught!")
# Error in tryCatch(abort("something went wrong"), message = function(e) "message caught!"):
# - something went wrong
> tryCatch(abort("something went wrong"), error = \(e) "error caught!")
# [1] "error caught!"
> try(abort("something went wrong"))
# Error : something went wrong
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @AllanCamerons
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: jslth

79427679

Date: 2025-02-10 16:24:07
Score: 2.5
Natty:
Report link

Just start a new terminal within . It should work. Make sure you note current directory (pwd), and what step you are at (of your exercise/project), before closing existing terminal.

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

79427661

Date: 2025-02-10 16:15:05
Score: 1.5
Natty:
Report link

This is a late reply. NestJS has found a better way around this problem. It uses the graphql-scalars package which can handle converting numbers to timestamps by default without having to write a custom scalar.

Ref: https://the-guild.dev/graphql/scalars/docs/scalars/date

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

79427659

Date: 2025-02-10 16:14:05
Score: 1
Natty:
Report link

Turned out to be a bug in EF Core 9. A fix will be released in EF Core 9.0.2.

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

79427658

Date: 2025-02-10 16:14:05
Score: 1
Natty:
Report link

2025: A cool new way to colour the "placeholder" option using the modern :has() pseudo class.

<select>
    <option class="placeholder">Please select something</option>
    <option>Select me</option>
</select>
select:has(option.placeholder) {
    color: red;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jeff Chi 杰夫迟

79427653

Date: 2025-02-10 16:12:04
Score: 2
Natty:
Report link

After hours of search and trials I came to the conclusion that there is some problems with Payara and standalone-clients.

You should use gf-client.jar FROM THE INSTALLATION's DIRECTORY in your project. DON'T copy the file! and that's it!

If you only use that it will work with Glassfish 7.0.21 (that was what I used). Exactly the same code doesn't work with Payara 6.2024.5 (that was what I used).

For Payara the problem has noting to do with libraries etc., it is just a bug.

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

79427648

Date: 2025-02-10 16:11:04
Score: 3
Natty:
Report link

Beware, the setup is not run in UI mode.

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

79427647

Date: 2025-02-10 16:11:04
Score: 1.5
Natty:
Report link

For me, worked (md version):

ion-list.sc-ion-select-popover-md ion-radio.sc-ion-select-popover-md::part(label) {
white-space: pre-line;}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pietro Fio

79427637

Date: 2025-02-10 16:05:02
Score: 0.5
Natty:
Report link

I got this issue on our migration to spring boot 3.4.2 too.

I tried spring-cloud-starter-circuitbreaker-resilience4j, with no chance.

I discovered that a dependency was missing:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-aop</artifactId>
    <version>${spring-boot.version}</version>
</dependency>

I got the hint from https://stackoverflow.com/a/61930362.

spring-boot-starter-aop was dropped in spring-cloud-openfeign-core:4.1.2.

Here is the commit who removed this dependency: https://github.com/spring-cloud/spring-cloud-openfeign/commit/6084609de0705f24ba418704769e545a0d820d70

I don't know why it was removed and what is needed from there, but adding it back makes my circuitbreaker work again.

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

79427632

Date: 2025-02-10 16:04:02
Score: 0.5
Natty:
Report link

I have solved it using creating custom package in flutter however this package is no longer maintained but you can try similar approach

https://pub.dev/packages/opencv_awesome

Reasons:
  • Whitelisted phrase (-2): I have solved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Azad Prajapat

79427625

Date: 2025-02-10 16:00:01
Score: 0.5
Natty:
Report link

I am sure it can be done automatically. Need to add flag expired bool if a time of the record is expired. And create a trigger I, U, D which will delete expired

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

79427616

Date: 2025-02-10 15:54:59
Score: 4
Natty:
Report link

It sounds like a mime type issue. In the HTTP protocol the ".ico" extension won't cue the browser what kind of file it is. My suspicion is that if you use developer tools you'll see the mime type on the response is wrong. In the old days to make an ico I would actually make a bmp and rename it to ico, which worked fine on Windows, but probably also won't work on a webserver correctly. The browser must respect the file type that the server tells it the file is, regardless of extension.

Make sure your file is an actual valid ico. Then see this article for more information: Correct MIME Type for favicon.ico?

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jeffty

79427615

Date: 2025-02-10 15:54:59
Score: 1.5
Natty:
Report link

i also had same problem. The solution i tried and it worked. Just click on pom.xml -> build as maven project -> ok & done and my file started working. May be this problem is due to maven didn't connect properly in starting. and also remember always to connect SDK to your project.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Abhinay

79427610

Date: 2025-02-10 15:52:58
Score: 1
Natty:
Report link
find some/path -exec sh -c 'program "$1" || kill "$PPID"' sh {} \; 

or:

find some/path -exec sh -c 'for f in "$@"; do program "$f" || kill "$PPID"; done' sh {} + 
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: fumiyas

79427607

Date: 2025-02-10 15:51:58
Score: 1.5
Natty:
Report link

I found the problem to be the machine memory.

I was dumping a very large python list.... each list item had 54 elements of mixed type and there were up to ~1.7M of them.... At about 400K, it started to produce a memory error.

I had the luxury of working on a cluster that I could specify the system memory when in batch mode and found that I had to increase the requested memory - in my case, up to 50Gb and the memory error disappeared.

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

79427587

Date: 2025-02-10 15:45:57
Score: 3
Natty:
Report link

This works as a general query, not sure about in PL/SQL with an INSERT INTO, but it should work:

SELECT nvl((SELECT data FROM table WHERE id = 'thisone'), 'NULL') FROM dual;

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

79427580

Date: 2025-02-10 15:41:56
Score: 2
Natty:
Report link

just replace the code in void Start() with this code

 m_InputField.onEndEdit.AddListener(OnSubmit);

or follow the video Q Inventory System fix

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

79427570

Date: 2025-02-10 15:37:55
Score: 4.5
Natty:
Report link

Hoping you are still around and see my comment here. I have a Flutter project where I have implemented a softphone using the sip_ua package. Everything is working fine, except exactly the scenario you called out above here. For iOS only, the problem is that there is only 1 way audio. The caller to the softphone can hear audio coming out from it, but the audio coming from the caller into the softphone cannot be heard. I have ensured this is not a permissions issue. I also have looked at the network traffic and see audio data flowing both ways. We are using the Opus codec as well.

I want to implement the same fix you provided here, but I dont have enough of an understanding of the mechanics of AppDelegate.swift to implement a complete solution. Would you be able to provide your full AppDelegate.swift so that I can model mine after that? Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Jeff Coleman

79427550

Date: 2025-02-10 15:30:53
Score: 2
Natty:
Report link

If your span lengths are equal, we can do this:

idx = torch.arange(tokens.size(1)).unsqueeze(0)
mask = (start_index.unsqueeze(1) <= idx) & (idx < end_index.unsqueeze(1) )
spans = tokens[mask].view(tokens.size(0), -1)

otherwise we cannot store it in a single tensor as @dennlinger mentioned

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @dennlinger
  • Low reputation (1):
Posted by: huangxt233

79427548

Date: 2025-02-10 15:29:53
Score: 1
Natty:
Report link

Camel's timer 'period' is in milliseconds, so that Camel route will never run faster than 1,000 msg/s.

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

79427544

Date: 2025-02-10 15:28:52
Score: 0.5
Natty:
Report link

Code OSS is a custom IDE (mostly for Linux users like me: especially those who are into Arch, EOS, Manjaro, etc) that is very similar to VS Code.

You have to note that VS Code and Code OSS are not the same, Cuz there are some features and capabilities that are only available in VS Cod including remote development support, LiveShare, etc

Public Law 115-232 defines OSS defines OSS as "software for which the Human-readable source code is available for use, study, re-use, modification, enhancement, and re-distribution by the users of such software".

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

79427542

Date: 2025-02-10 15:26:52
Score: 2.5
Natty:
Report link

You can't do this in one step. When you remove DEFAULT it automatically resets nullability, so you have to tell it to make it NOT NULL. As far as I know there is no way to do this in one single command. I believe you should execute both, like you said.

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

79427541

Date: 2025-02-10 15:26:52
Score: 0.5
Natty:
Report link

That error is usually caused by a missing / misconfigured sk.. key in your app.{json,config.js,config.ts}'s plugins.

Double check it's properly added to the config plugins:

{
  "expo": {
    "plugins": [
      [
        "@rnmapbox/maps",
        {
          "RNMapboxMapsDownloadToken": "sk.ey.."
        }
      ]
    ]
  }
}

Make sure it has the scope for "DOWNLOADS:READ"

Download scope for mapbox API token

and then rebuild your development client(s)

eas build --profile development --platform android

eas build --profile development-simulator --platform ios

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

79427537

Date: 2025-02-10 15:24:52
Score: 3
Natty:
Report link

This can be only fixed by storing token.pickle file in gcs bucket or secret mananger and then calling it from cloud run function. This is because probably cloud run does't allow to store certain files and also its stateless.

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

79427532

Date: 2025-02-10 15:23:51
Score: 2.5
Natty:
Report link

you can create querey with (Query across projects) option is set to true, that will show you all work items from all projects, you can also then filter on specific projects. after that, you can show the query result on your board

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

79427528

Date: 2025-02-10 15:21:51
Score: 0.5
Natty:
Report link

As per your snippet, adsk3LeggedToken is outside the scope of WI arguments object, it should be within arguments scope.

{
    "activityId": "NVCloudManagerDA.NVCMActivity2024+test2024",
    "arguments": {
        "NVCMParams": {
            "url": "urn:adsk.objects:os.object:nv_cm_bucket/intput",
            "verb": "get",
            "headers": {
                "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IlhrU............7CFT7KL2A"
            }
        },
        "result": {
            "url": "urn:adsk.objects:os.object:nv_cm_bucket/nv_cm_output",
            "verb": "put",
            "headers": {
                "Authorization": "Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IlhrU............7CFT7KL2A"
            }
        },
        "adsk3LeggedToken": "eyJhbGciOiJSUzI1NiIsImtpZC......7kg"
    }
}

Refer: https://aps.autodesk.com/blog/design-automation-api-supports-revit-cloud-model

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

79427527

Date: 2025-02-10 15:21:51
Score: 2
Natty:
Report link

Can be closed... I resolved it by logging in using Bitvise (resolved the TTY issue) & then managed to change the password

Reasons:
  • Whitelisted phrase (-2): I resolved
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (1):
Posted by: Sebastian

79427522

Date: 2025-02-10 15:21:51
Score: 2
Natty:
Report link

I upgraded to the latest kotlin version (2.1) and now isSystemInDarkTheme() works as expected.

My way to upgrading was generating a new kotlin multiplatform app (https://kmp.jetbrains.com/) and then putting the relevant import statements into my project.

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

79427521

Date: 2025-02-10 15:21:51
Score: 1.5
Natty:
Report link

I couldn't tell from the description if you've already tried this, but the following Liquibase documentation specifies several locations where it will pick up additional jars. Those locations include:

Try copying the orai18n.jar to one of those locations.

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

79427515

Date: 2025-02-10 15:19:50
Score: 4.5
Natty: 4
Report link

add quarternion to the camera.

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

79427509

Date: 2025-02-10 15:18:49
Score: 3.5
Natty:
Report link

This was a bug in a previous version

https://gitlab.com/dalibo/postgresql_anonymizer/-/issues/497

It is fixed since version 2.0

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

79427498

Date: 2025-02-10 15:14:48
Score: 3.5
Natty:
Report link

This GitHub repro contains everything you need to deploy the EKS Cluster with Auto Mode Enabled

https://github.com/setheliot/eks_auto_mode

Additionally, this blog post goes into deeper detail on how Auto Mode works and how to implement it

https://community.aws/content/2sV2SNSoVeq23OvlyHN2eS6lJfa/amazon-eks-auto-mode-enabled-build-your-super-powered-cluster

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
Posted by: Seth E

79427492

Date: 2025-02-10 15:12:48
Score: 1.5
Natty:
Report link

What worked for me is simply restarting Android Studio.

I also increased buffer size on my device.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Sean Ray

79427489

Date: 2025-02-10 15:11:48
Score: 1.5
Natty:
Report link

Apologies, I forgot to include the settings.xml

It looks like this:

<settings>
<servers>
    <server>
        <id>snapshots</id>
        <username>${env.M2_USERNAME}</username>
        <password>${env.M2_PASSWORD}</password>
    </server>
</servers>
</settings>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Eduardo Schiavo

79427481

Date: 2025-02-10 15:09:47
Score: 1.5
Natty:
Report link

You can look at file "Config_Changes.md" and compare it with original repository to narrow down starting point, then look at commits in original repo and check if they are present in your fork - this way you can quickly identify starting point and what need's to be merged.

"Config_Changes.md" is kind of log when something important is changing.

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

79427469

Date: 2025-02-10 15:03:45
Score: 6 🚩
Natty:
Report link

I have same problem and i resolve it from ai

then restart vs code

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

79427456

Date: 2025-02-10 14:59:44
Score: 2
Natty:
Report link

As suggested by https://stackoverflow.com/users/4208174/jonathan-dodds, and by How to get devenv.exe to display its output on the console the command that best worked for me is:

devenv.com my.sln /Build Release /Project my_project

The build time is close to that in VS

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Serge

79427453

Date: 2025-02-10 14:58:43
Score: 5.5
Natty: 4.5
Report link

Start by disabling the Hyper-V enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: GermanoMosconi

79427449

Date: 2025-02-10 14:55:36
Score: 6 🚩
Natty: 4.5
Report link

Sorry for not providing the answer but I'm facing the same issue too!!

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

79427444

Date: 2025-02-10 14:55:34
Score: 6 🚩
Natty:
Report link

I've already solved it. Thanks to everyone for their time and patience. Regards

https://1drv.ms/t/c/d88c7480781b8547/Ec7Am4zUhP5OlE6wmLtAQOsBgFiL17ERfkS3Pd7CWcHMaQ?e=zUOn7y

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Regards
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mario Escudero