79259129

Date: 2024-12-06 19:15:50
Score: 1.5
Natty:
Report link

You can definitely use tools or any kind of structured output with O1.

We have a working demo live right here: https://www.boundaryml.com/blog/openai-o1

It uses our prompting DSL called BAML: https://github.com/BoundaryML/baml

The way it works is we just serialize your tools into the prompt as a string, and parse the output for you, guaranteeing the output matches the schema of one of your tools. It's just as reliable as any tool-use APIs.

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

79259124

Date: 2024-12-06 19:13:49
Score: 1
Natty:
Report link

You cannot invoke Lambdas using any AWS feature for existing objects, you can only invoke for new uploaded objects.

For the existing ones, you need to manually create a script to get all of them depending on your tags or something, put the list in CSV or something, then use S3 batch.

https://docs.aws.amazon.com/AmazonS3/latest/userguide/batch-ops-create-job.html

Reasons:
  • Low length (0.5):
  • No code block (0.5):
Posted by: Fedi Bounouh

79259117

Date: 2024-12-06 19:12:49
Score: 1
Natty:
Report link

You can:

  1. add your unique index in the Prisma schema file
  2. generate the migration
  3. change the SQL for the constraint with NULLS NOT DISTINCT
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: jpmelanson

79259113

Date: 2024-12-06 19:10:48
Score: 0.5
Natty:
Report link

Install the Nuget package Microsoft.IdentityModel.JsonWebToken

Alternatively you can install System.IdentityModel.Tokens.Jwt but Microsot... is a newer and faster version of System...

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

79259111

Date: 2024-12-06 19:09:48
Score: 5.5
Natty: 4
Report link

how do i make this work? If anyone can improve this somehow so that it works please tell me, i need to know:

{ "name": "GamingGuild", "version_number": "1.0.0", "website_url": "", "description": "Modpack for my fellow Lethal Company Mod enthusiasts", "dependencies": [ "BepinExPack-BepInEx-5.4.2100", "MoreCompany-notnotnotswypez-1.11.0", "Skinwalkers-RugbugRedfern-5.0.0", "Mimics-x753-2.6.4", "LateCompany-anormaltwig-1.0.18", "YippeeMod-sunnobunno-1.2.4", "FixPluginTypesSerialization-Evaisa-1.1.1", "HookGenPatcher-Evaisa-0.0.5", "LethalCompany_InputUtils-Rune580-0.7.7", "Interactive_Terminal_API-WhiteSpike-1.2.0", "CSync-Sigurd-5.0.1", "LethalLib-Evaisa-0.16.1", "Lategame_Upgrades-malco-3.10.4", "TooManyEmotes-FlipMods-2.2.7", "LetMeLookDown-FlipMods-1.0.2", "NeedyCats-Jordo-1.2.2", "CoilHeadStare-TwinDimensionalProductions-1.0.9", "UniTask-Bobbie-2.5.0", "EnemySoundFixes-ButteryStancakes-1.5.10", "loaforcsSoundAPI-loaforc-1.1.7", "LCMaxSoundsFix-Hardy-1.2.0", "LETHALRESONANCE-LethalResonance-4.7.5", "LethalModDataLib-MaxWasUnavailable-1.2.2", "StarlancerAIFix-AudioKnight-3.8.4", "LethalLevelLoader-IAmBatby-1.3.10", "LethalToolbox-IAmBatby-1.0.4", "Wesleys_Moons-Magic_Wesley-4.0.29", "LobbyCompatibility-BMX-1.2.0", "FacilityMeltdown-loaforc-2.6.20", "EmployeeAssignments-amnsoft-1.1.0", "RollingGiant-NomnomAB-2.6.0", "Monster_Plushies-Scintesto-1.2.9", "ImmersiveScrap-XuXiaolan-1.3.1", "ImmersiveScraps-Justice69-1.2.1", "LethalConfig-AinaVT-1.4.3", "SnatchinBracken-readthisifbad-1.5.1", "Dont_Touch_Me-Kittenji-1.2.4", "HornMoan-MetalPipeSFX-2.1.0", "GoOutWithABang-CTMods-1.0.1", "LCSoundTool-no00ob-1.5.1", "CustomSounds-Clementinise-2.3.2", "ineedmorebullets_turret-Loopers-1.0.3", "TVLoader-Rattenbonkers-1.1.1", "Family_Guy_Funny_Moments-PrinceNailo-1.2.0", "Angry_Birds_Baboon_Hawk-Thwompants-1.1.0", "pizza_pasta_pasta_dropship_NSFW-eluviane-1.0.1", "LethalPosters-femboytv-1.2.3", "posters_that_are_nsfw-monrev-1.2.0", "ModelReplacementAPI-BunyaPineTree-2.4.10", "SpongeBobSuits-RobinKC-1.2.0", "FnafPowerOutage-atg-1.0.1", "More_Suits-x753-1.4.3", "GlowStickSuits-Norman-1.0.4", "Groan_Tube_Scrap-Kittenji-1.0.2", "Lock_Doors_Mod-ENZ-1.1.0", "CompanyCruiserFix-DiFFoZ-1.0.5", "LethalThings-Evaisa-0.10.6", "CodeRebirth-XuXiaolan-0.8.11", "MrovLib-mrov-0.2.10", "WeatherRegistry-mrov-0.3.4", "Wider_Ship_Mod-mborsh-1.3.10", "VertexLibrary-LethalCompanyModding-1.1.0", "Matty_Fixes-mattymatty-1.1.31", "DevilDeal-ProjectSCP-1.0.4", ] }

the error it showed me was:

Unable to parse manifest.json: Expecting value: line 71 column 1 (char 2374)

Reasons:
  • Blacklisted phrase (1): how do i
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (2.5): please tell me
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): how do i
  • Low reputation (1):
Posted by: henry sickmin

79259110

Date: 2024-12-06 19:09:47
Score: 3.5
Natty:
Report link

I changed publishWebProjects from 'false' to 'true' and the intermittent errors went away.

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

79259107

Date: 2024-12-06 19:08:47
Score: 2
Natty:
Report link

Events set to dontaudit need to happen after running semodule --DB for them to appear on the audit log. Running the failing commands again would trigger these events.

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

79259103

Date: 2024-12-06 19:08:47
Score: 2.5
Natty:
Report link

The answer turned out to be rather obvious - i had many files with no target member. The only one that had target ownership was the one that i could see its classes in the .swiftinterface file. Adding the files to my frameworks target resolved the problems.

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

79259086

Date: 2024-12-06 19:03:46
Score: 3
Natty:
Report link

In my case I was missing: Telemetry.Initialize({{StringName}});

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kyle F.

79259069

Date: 2024-12-06 18:56:44
Score: 10.5
Natty: 7.5
Report link

Ok so I'm having a problem where I want my ship to explode in 3 seconds but I cant seem to make the delay (this is all in code.org). Can someone help me?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Can someone help me
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Leo R

79259030

Date: 2024-12-06 18:41:40
Score: 1.5
Natty:
Report link

Try deleting the existing deployment and re-creating one for the Invoice. Also make sure that 'All Roles' and 'All Employees' checkboxes are checked on the deployment record.

Also use a try-catch block for your code. In the catch section use 'console.log' to check for errors, if any.

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

79259029

Date: 2024-12-06 18:41:40
Score: 0.5
Natty:
Report link

in your commonJS module try something like that:

const importExpect = async () => await import('chai').then((chai) => chai.expect);

(async () => {
    const expect = await importExpect()
    // your old tests
    expect('true').to.equal('true');
    // your old tests
})()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Andrey Smolko

79259005

Date: 2024-12-06 18:35:38
Score: 2.5
Natty:
Report link

The error ORA-03113 is a "Generic Error" because it can be many causes. But try restart your database and connect again please.

And share your alert log... Tks!

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

79258994

Date: 2024-12-06 18:31:37
Score: 0.5
Natty:
Report link

if you use capacitor import

import {App} from "@capacitor/app";

    this.platform.ready().then(async () => {
      const info = await App.getInfo();
      console.log(info.version)
    });
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Basem Olimy

79258990

Date: 2024-12-06 18:30:37
Score: 1
Natty:
Report link

Add this DB configuration to settings.php.

'DB' => [
    ...
    'driverOptions' => [
         17 => false, // OR PDO::ATTR_STRINGIFY_FETCHES => false
         20 => false, // OR PDO::ATTR_EMULATE_PREPARES => false
     ]
 ]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Haythem Daoud

79258979

Date: 2024-12-06 18:25:35
Score: 1
Natty:
Report link

You can try to write your 'function' as an object method, with proper encapsulation.

Then either:

Using fork() to do that is probably a very bad idea, unless you really know what you do and have absolutely no other solution.

If you really have socket connections, and the probe touches them, you can't guarantee no side-effect (unless all your socket accesses are idempotent), so it is likely unfeasible.

Sorry I can't be really more precise as your question is quite vague...

Reasons:
  • RegEx Blacklisted phrase (0.5): Sorry I can't
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Steve

79258977

Date: 2024-12-06 18:21:35
Score: 0.5
Natty:
Report link

Thanks to those who responded! I understand that cumulative incidence is technically undefined at time > max(observed time). However, I'd like to still display the final cumulative incidence in situations like my first example above: max observed time was 4.67 months with many cases after 4 months, so if the risk table only went until 4 months, it wouldn't show the final cumulative incidence at the end of follow-up.

I know the trial dataset is not the best example for this question because max(ttdeath)=24, so I could just use "breaks = seq(0, 24, by = 6)", as one of the responses mentioned. But let's pretend max(ttdeath) was 24.67 and I wanted to display the risk table through time=25.

I was able to come up with a workaround by using conditional logic to replace the missing estimates with max cumulative incidence. It's not the most elegant solution, so other suggestions or improvements to my code are still welcome. Thanks!

# Generate survival/cumulative incidence data
library(ggsurvfit)
cuminc <- survfit2(Surv(ttdeath, death_cr) ~ trt, tidycmprsk::trial) |> 
  ggcuminc(outcome = "death from cancer")

# Pull maximum cumulative incidence
max_cuminc <- cuminc$data|> group_by(strata) |> summarize(max_cuminc=round((max(estimate))*100))
max_cumincA <- max_cuminc |> filter(strata=='Drug A') |> pull(max_cuminc)
max_cumincB <- max_cuminc |> filter(strata=='Drug B') |> pull(max_cuminc)

# Plot
cuminc +
 add_risktable(
  risktable_stats =
    c("{n.risk}",
    "{cum.event}",
    #"{round((estimate)*100)}%"), #NA for last estimate
    "{case_when(!is.na(estimate) ~ round(estimate*100),
                is.na(estimate) & strata=='Drug A' ~ max_cumincA,
                is.na(estimate) & strata=='Drug B' ~ max_cumincB)}%"), #workaround
  stats_label = c("At Risk", 
                  "Cumulative Events",
                  "Cumulative Incidence"),
  size = 3
) +
  scale_ggsurvfit(x_scales = list(breaks = seq(0, 25, by = 5),
                                  limits = c(-1, 26))) #set limits to avoid text cutoff

image - NA replaced with max cumulative incidence

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

79258973

Date: 2024-12-06 18:21:35
Score: 1
Natty:
Report link

You can create a new column with the square value and then do the groupby:

data = pd.DataFrame({"day": [0,0,0,0,0,0,1,1,1,1,1,1], "cat1": ["A", "A", "A", "B", "B", "B", "A", "A", "B", "B", "B", "B"], "cat2":["1", "1", "2", "1", "2", "2", "1", "2", "1", "1", "2", "2"], "value": [10, 230, 32,12, 12, 65, 12, 34, 97, 0, 12,1]})
data["value2"] = data["value"] * data["value"]
display(data)

gb = data.groupby(["day", "cat1", "cat2"])["value2"].mean()
display(gb)

res

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

79258954

Date: 2024-12-06 18:15:33
Score: 3
Natty:
Report link

libmodbus does handle the reconnecting internally, see

https://libmodbus.org/reference/modbus_set_error_recovery/

Also each libmodbus function will return an error (if so) and set "errno" so can fetch the error from there using "modbus_strerror(errno);"

cheers!

Reasons:
  • Blacklisted phrase (1): cheers
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ERic

79258951

Date: 2024-12-06 18:14:33
Score: 3
Natty:
Report link

On Jenkins 2.48, select "Configure" option for your job. On the top right corner you should see option to enable/disable your job disable_job

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

79258949

Date: 2024-12-06 18:13:33
Score: 2
Natty:
Report link

add guard as much you need like this AuthGuard(['jwt', 'jwt_2']) then strategies like this export class JwtStrategy extends PassportStrategy(Strategy, 'jwt') {}

export class JwtStrategy2 extends PassportStrategy(Strategy, 'jwt2') {}

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

79258941

Date: 2024-12-06 18:07:31
Score: 2
Natty:
Report link

Maybe take a look at codesandbox.io instead. The official React docs use it like so: https://codesandbox.io/s/hpljjw?file=%2Fsrc%2FApp.js

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

79258934

Date: 2024-12-06 18:05:30
Score: 2.5
Natty:
Report link

Mea culpa. The cause of my setPositiveButton text disappearing after I added a splash screen was in my themes.xml file. When I added the splash screen I set the primary colour to white in themes.xml. As the default buttons and the dialogue background were both therefore white, the text of the setPositiveButton could not be seen. Doh!

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

79258932

Date: 2024-12-06 18:04:30
Score: 0.5
Natty:
Report link

If you like pythonic list comprehension and one-liner:

b =7 
x= [-3.14, 0, 3.14]
x2 = np.array([int((2**b - 1) * xi / np.max(np.abs(x))) if xi > 0 
               else int(-2**b * xi / np.max(np.abs(x))) 
               for xi in x])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rehaqds

79258929

Date: 2024-12-06 18:03:30
Score: 0.5
Natty:
Report link

Set values you dont want to show to np.nan:

import rasterio
from matplotlib import pyplot as plt
slope_raster = r"C:\gistest\minislope.tif"
import numpy as np

fig, (ax1, ax2) = plt.subplots(nrows=1, ncols=2, figsize=(10,20))

src = rasterio.open(slope_raster)
arr = src.read(1)
ax1.set_title("Original slope raster")
ax1.imshow(arr)

ax2.set_title("Slopes greater than 20 % masked")
arr2 = arr.copy()
arr2[arr2>20] = np.nan
ax2.imshow(arr2)

enter image description here

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

79258919

Date: 2024-12-06 18:01:29
Score: 3
Natty:
Report link

use this plugin https://pub.dev/packages/flutter_launcher_icons

and add icon.png's address in pubspec.yaml file,

then run this command

dart run flutter_launcher_icons:generate -o
Reasons:
  • Blacklisted phrase (1): this plugin
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ram Gupta

79258905

Date: 2024-12-06 17:56:28
Score: 0.5
Natty:
Report link

I tried many of the recommended answers (including the accepted one) and was getting a "Request Format is unrecognized" error when going to the ?wsdl url. What I found was that there was the following block in the parent folder of the webservice's web.config:

<webServices>
  <protocols>
    <remove name="Documentation" />
  </protocols>
</webServices>

That was removing the ability to access the WSDL information. Removing that "remove" tag and then following the accepted answer got it working.

Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Khoward

79258901

Date: 2024-12-06 17:54:27
Score: 1.5
Natty:
Report link

I was trying a much too complicated approach. Something like this in my sway config worked fine.

for_window [class="frontend"] move to output "DP-1"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: RedShft

79258894

Date: 2024-12-06 17:51:25
Score: 6 🚩
Natty:
Report link

I have same question that I have been unable to resolve!

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same question
  • Single line (0.5):
  • Low reputation (1):
Posted by: Craigdux

79258893

Date: 2024-12-06 17:51:25
Score: 1
Natty:
Report link

I solved it by giving up of using complete path for the configuration file. I still don't know why it doesn't work but I need to go ahead.

So, instead of putting the conf file in some conf directory I put it directly in the project root and reference it simply as './conf.yaml'. Not ideal, but works.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Mauricio Porto

79258884

Date: 2024-12-06 17:47:24
Score: 2.5
Natty:
Report link

Based on the Dbeaver documentation, private key authentication is supported in lite+ editions but not in the community edition. You are better off using Snowflake Extension for Vscode for private key authentication. I use it occasionally; it is quite a code.

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

79258879

Date: 2024-12-06 17:46:24
Score: 2
Natty:
Report link

If you are using nestjs this is a known issue https://github.com/nestjs/nest/issues/7249 The best solution for now is to set max listeners.

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

79258876

Date: 2024-12-06 17:44:23
Score: 7.5
Natty: 7
Report link

How was this resolved? I am facing exact same issue wehre not able to see the rows but total is correct.

Thanks for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-0.5): Thanks for your help
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am facing exact same issue
  • Contains question mark (0.5):
  • Starts with a question (0.5): How was this
  • Low reputation (1):
Posted by: Drbb

79258871

Date: 2024-12-06 17:41:22
Score: 1.5
Natty:
Report link

I am using Fedora and I was doing some openGL work when I faced this error.

My solution was restarting my display manager:

sudo systemctl restart display-manager
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Akhil

79258867

Date: 2024-12-06 17:38:21
Score: 1
Natty:
Report link

It looks like dotnet package search can do this now.

Here's an example from the docs:

dotnet package search Newtonsoft.Json --source https://api.nuget.org/v3/index.json --exact-match

It isn't intuitive, but it seems like the --exact-match flag is what lists all available versions.

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

79258866

Date: 2024-12-06 17:38:21
Score: 2.5
Natty:
Report link

This is an old thread, but thought I would answer in case someone stumbles on this like I did searching for 9F6E settings. (Many thanks to iso8583.info for the reference to Book C-4).

Book C-4 states that if bit 8 is set then bit 3 "Try another interface after decline" must also be set. This means if the card is declined for some reason via contactless, the customer can be prompted to insert to attempt it as Contact. It's a user experience thing instead of them trying and trying contactless.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: NSmith

79258862

Date: 2024-12-06 17:36:20
Score: 3
Natty:
Report link

Files in the /dist/ directory appear to be corrupted in version 2.6.0. Version 2.5.0 doesn't have this issue. I rolled back to 2.5.0 and problem solved.

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

79258857

Date: 2024-12-06 17:34:19
Score: 1
Natty:
Report link

I had the same problem and the solution is to make sure to use the .net MAUI Content page. The Default one is still setup to use Xamarin which causes the problem. Just make sure to create the Content page with the MAUI tag. enter image description here

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Deathstalker

79258854

Date: 2024-12-06 17:34:19
Score: 0.5
Natty:
Report link

This is likely a plugin incompatibility: the plugins are not communicating with each other, so Google/Apple Pay are not made aware of the other options. There are two solutions:

  1. Request the plugin authors support the other's plugin.
  2. Build your own plugin, either to facilitate communication between the two, or to have all the functionality you want.

I would be surprised if Google/Apple Pay even support date/time selection in their interfaces, so it may not be possible.

Reasons:
  • No code block (0.5):
Posted by: Caleb

79258851

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

It is simple, please use following command -

minikube ssh 
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rahul Tiwari

79258845

Date: 2024-12-06 17:30:18
Score: 1.5
Natty:
Report link

If you have access to WP CLI, try changing your password with the wp user update command.

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

79258842

Date: 2024-12-06 17:29:18
Score: 2.5
Natty:
Report link

I guess you are not working in your Folder. If you created a file without setting a Working directory, VSCode works in Python installation directory . From VS studio Code open your folder that you are working in. You can check it from explorer on the left panel.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: İbrahim Özbek

79258839

Date: 2024-12-06 17:29:17
Score: 9.5 🚩
Natty: 4
Report link

Did you got the solution of your question. I am also assigned with similar task and not able to find the solution.

Thank you in advance.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (3): Thank you in advance
  • RegEx Blacklisted phrase (3): Did you got the solution
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Shubham Singh

79258837

Date: 2024-12-06 17:26:16
Score: 1
Natty:
Report link

On Ubuntu 24.04, the script is located at /etc/bash_complettion.d

source /etc/bash_complettion.d/git-prompt
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adam Scroggin

79258835

Date: 2024-12-06 17:25:16
Score: 0.5
Natty:
Report link

Here's an alternate approach:

@Override
public void onOffsetChanged(AppBarLayout appBarLayout, int verticalOffset) {
    appBarIsExpanded = appBarLayout.getBottom() == appBarLayout.getHeight();
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Moz

79258825

Date: 2024-12-06 17:22:15
Score: 2.5
Natty:
Report link

Sometimes you need to add resizeToAvoidBottomInset: false to the root Scaffold as well. If it is not set, opening the keyboard can cause the root page widget to resize, which may appear as if the page you're on is being resized unexpectedly.

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

79258824

Date: 2024-12-06 17:22:15
Score: 2
Natty:
Report link

This schema has tables, but the tables don't have data, right?

Try this query: select sum(bytes/1024/1024) from user_segments; --To find out the size of your user.

Have you tried backup/restore with RMAN?

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Whitelisted phrase (-1): Try this
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Eduardo Cunha

79258823

Date: 2024-12-06 17:22:15
Score: 2
Natty:
Report link

The filter method in JavaScript is used to create a new array with all elements that pass the test implemented by the provided function. Common errors include:

Incorrect Callback Function: Ensure the function returns a boolean value for filtering.

Not Returning the Filtered Array: The filter method returns a new array, so make sure you store or use it correctly.

Empty or Undefined Array: If the array is undefined or empty, the filter method will not work as expected.

For developers in need of robust solutions, partnering with a reliable eCommerce website development agency in Pune like Webtechnoz ensures you receive quality web development services for your online business. As a top eCommerce development company in Pune, we help create seamless, functional, and scalable websites.

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

79258813

Date: 2024-12-06 17:19:14
Score: 1
Natty:
Report link

Not sure if this answer will be helpful for anyone, but here are the roots of issue.

  1. The core issue was on the client side, not on spring-boot-admin server side. As @Erik P (thanks a lot for great help!) mentioned in https://github.com/codecentric/spring-boot-admin/issues/3830 it's not possible to reconfigure objectMapper on spring-boot-admin server side.

  2. On the client side there were 2 issues, both related to WebMvcConfigurer. Actuator server creates child WebAppContext, but the issue is that it still 'sees' my WebMvcConfigurer. It applies it to itself, changing the default output. Spring-boot-admin is not able to work with it.

     public static class WebMvcConfig implements WebMvcConfigurer {
    
     @Override
     public void configureContentNegotiation(ContentNegotiationConfigurer configurer) {
         //1. This specific one makes actuator endpoint return 'content-type: application/json' instead of 
         //'application/vnd.spring-boot.actuator.v2+json;charset=UTF-8' this results spring-boot-admin to process json
         //with LegacyEndpointConverter, which then throws that error:
         //`java.util.ArrayList<java.lang.Object>` from Object value (token `JsonToken.START_OBJECT`)
    
         configurer.defaultContentType(MediaType.APPLICATION_JSON_UTF8, MediaType.ALL);
     ...
    
     @Override
     public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
         //2. The second issue was related to the fact that we reconfigured default ApplicationContext's ObjectMapper 
         //(bad for us, don't do like this). Our changes also were changing default behaviour, and spring-boot-admin didn't work.
    
  3. I was able to solve both this issues by separating application contexts as below:

     +---------------------------+                    +---------------------------+
     |    Root WebAppContext     |                    |       Root AppContext     |
     |                           |                    +---------------------------+
     | contains WebMvcConfigurer |                   /                             \
     +---------------------------+     PLAN -->     /                               \
     |                           |                 /                                 \
     +---------------------------+    +---------------------------+ +---------------------------+
     |       Child-actuator      |    |  Child WebAppContext      | |       Child-actuator      |
     |       WebAppContext       |    | contains WebMvcConfigurer | |       WebAppContext       |
     | consumes WebMvcConfigurer |    +---------------------------+ +---------------------------+
     | and breaks spr-boot-admin |                               PROFIT
     +---------------------------+
    

With above approach the configureContentNegotiation() issue is solved, the configureMessageConverters() issue is more tricky to solve (since ObjectMapper is still located in root ApplicationContext) but also solvable (for actuator i've registered separated WebMvcConfigurer, which was setting up clean, non-changed ObjectMapper) Exact configurations for the above solution see in Separating spring applicationContext: autoconfigure webMvc in child context

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Erik
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dmitriy Ten

79258804

Date: 2024-12-06 17:13:13
Score: 1.5
Natty:
Report link
<uses-permission android:name="android.permission.BLUETOOTH_SCAN" tools:remove="android:usesPermissionFlags" />

Resolved this issue for me and nothing else I found did

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

79258801

Date: 2024-12-06 17:12:12
Score: 0.5
Natty:
Report link

But #include <sycl/sycl.hpp> should be enough to compile the application, if it is claimed to be standard C++. So, is it possible to do?

Yes. As you noted in the comments, SimSYCL is an example of a library-only implementation that does not require any compiler support (although, it requires C++20 standard and is not production-oriented).

More practically, AdaptiveCpp has library-only mode which can target CPUs with any compiler supporting OpenMP, and NVIDIA GPUs with NVIDIA NVC++ compiler.

I have not found any evidence that it is possible, so should I understand that SYCL source code only looks like standard C++?

Language-lawyering a bit, but C++ standard is exactly about what code "looks like". And I would not underestimate the importance of it. E.g., being standard compliant, SYCL code does not require any special handling from code highlighters, formatters, linters, static analyzers etc (unless we're talking about device-specific analysis).

Reasons:
  • Blacklisted phrase (1): is it possible to
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: aland

79258790

Date: 2024-12-06 17:09:12
Score: 1.5
Natty:
Report link

on server you can do:

void main()
{
    FragColor = texture(LowTexture, TexCoord) - texture(HighTexture, TexCoord) + vec4(0.5, 0.5, 0.5, 1.0);
}

and on client side:

void main()
{
    FragColor = texture(LowTexture, TexCoord) - texture(DiffTexture, TexCoord) - vec4(0.5, 0.5, 0.5, 1.0);
}

for example if highTex have 16x16 pixels per one lowTex pixel and lowTex pixel is avg of highTex pixels then diffTexture pixels will be in bounds from 0 to 1 in ~98.75% of cases with this method
here is small js code which tests it for 50_000 * 16*16 = 38_400_000 rgb pixels of highTex

const testIterCount = 50_000*3
const result = {error: 0, ok: 0}
for (let i = 0; i < testIterCount; i++) {
    const high = new Float32Array(16*16).map(a=>Math.random())
    const low = high.reduce((a,b)=>a+b)/high.length
    const testResult = high.reduce((counter,highVal)=>{
        const serverVal = low - highVal + 0.5;
        if (serverVal >= 0 && serverVal <= 1) {
            counter.ok++;
        } else {
            counter.error++;
        }
        return counter
    },{error: 0, ok: 0})

    result.error += testResult.error
    result.ok += testResult.ok
}
console.log(`ok ${ (result.ok/(result.ok+result.error)*100).toFixed(2) }%; error ${ (result.error/(result.ok+result.error)*100).toFixed(2) }%; `)

but also if you want to reduce bytes count you send to client you can just use jpeg or webp and just send low quality image and high to user or you are using compression method witch compress raw DiffTexture better than jpeg or webp do?

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

79258789

Date: 2024-12-06 17:08:11
Score: 5.5
Natty:
Report link

I have the same Error with NetCore 8 and Clean Architecture. Event when I have not change IdentityUser to ApplicationUser Source Code have been upload to https://github.com/nguyentuananh921/MyCA2024

Reasons:
  • RegEx Blacklisted phrase (1): I have the same Error
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I have the same Error
  • Low reputation (0.5):
Posted by: Nguyen Tuan Anh

79258788

Date: 2024-12-06 17:08:11
Score: 0.5
Natty:
Report link

Alternatively you can also do this. This puts the origin in top left corner:

self.viewWindow.create_image((0,0),anchor='nw',image=canvas_image)

It really depends on how you want the image to behave.

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

79258786

Date: 2024-12-06 17:07:10
Score: 5.5
Natty:
Report link

Have you trusted the servers for delegation too? Please see https://learn.microsoft.com/en-us/previous-versions/windows/microsoft-desktop-optimization-pack/appv-v4/how-to-configure-the-server-to-be-trusted-for-delegation

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: r3verse

79258785

Date: 2024-12-06 17:05:09
Score: 0.5
Natty:
Report link

You can implement it like this:

class Routing(dspy.Signature):
"""some short description of the task here""
input_query = dspy.InputField()
output_field_1: List[str] = dspy.InputField(desc="description here " format = list)
output_field_2: str = dspy.InputField(desc="description here 2 ")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mohamed Berrimi

79258784

Date: 2024-12-06 17:05:09
Score: 3
Natty:
Report link

Rookie mistake on my end. I was trying to do this for Python 3.11, I needed to do this for 3.8.

Should have checked Python version way earlier.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: iato

79258777

Date: 2024-12-06 17:02:08
Score: 1.5
Natty:
Report link

Use command create-react-app as usual. Then after you've got errors due React 19, delete folder node_modules and files package.json and package-lock.json.

After that, add files package.json and package-lock.json from archive below - these files are backup versions from when last stable was React 18.3.1

After that, run command npm install

You'll get working React 18.3.1 App as before)

_package.json package-lock.json backup cra React18 - OK

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

79258773

Date: 2024-12-06 17:02:08
Score: 2.5
Natty:
Report link

Make sure to give git path in Dashboard --> Manage Jenkins --> Tools --> Git Installations --> C:\Program Files\Git\bin\git.exe

You need to git.exe path, if you had given only until \bin then it would error.

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

79258754

Date: 2024-12-06 16:56:05
Score: 6 🚩
Natty: 5.5
Report link

So, if I am writing an inline C++ wrapper for an inline assembly function and want the compiler to put its argument in to a specific register (like register int a asm("r0");), then screw me, right?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: user28662921

79258733

Date: 2024-12-06 16:44:03
Score: 1.5
Natty:
Report link

with the help of @HolyBlackCat and @Tsyvarev I finally found a working CMakeLists.txt. The ncurses specific directories have been added as well as the STATIC directive to enable linking in the windows environment.

cmake_minimum_required(VERSION 3.5.0)
project(hanoi VERSION 0.1.0 LANGUAGES C)
set(SOURCE_FILES hanoi.c)
include_directories("C:\\msys64\\ucrt64\\include\\ncurses")
link_directories("C:\\msys64\\ucrt64\\lib")
add_compile_options(-DNCURSES_STATIC)
add_executable(${PROJECT_NAME} ${SOURCE_FILES})
target_link_libraries(${PROJECT_NAME} ncurses)
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @HolyBlackCat
  • User mentioned (0): @Tsyvarev
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sheogorat

79258722

Date: 2024-12-06 16:41:02
Score: 0.5
Natty:
Report link

For me, the issue was with the url itself (used in both filter and path). Removing it from both places allowed the SVG to display correctly on Safari. Hope this helps someone.

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

79258719

Date: 2024-12-06 16:40:02
Score: 0.5
Natty:
Report link

Not specific case for OP, but in my case, brew doctor clearly said that my "homebrew/core tap has a problem", so I did:

$ rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core" &&\
  brew tap homebrew/core &&\
  brew update

and everything worked well.

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

79258705

Date: 2024-12-06 16:35:00
Score: 2
Natty:
Report link

There is an old question very similar to your: what-is-the-optimal-size-of-a-udp-packet-for-maximum-throughput whose answers are complete and informative.

Keep in mind that there can be important differences between a local network and the Internet.

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

79258696

Date: 2024-12-06 16:31:58
Score: 2
Natty:
Report link

It turns out the issue was with the roleID's. These were not valid roles in the project, but Autodesk currently provides no clear means of finding the roleID's for a given project and the docs for these requests do not mention how to retrieve the roleID's. Luckily, someone else here recently had the same issue and found out that the roleID retrieval endpoint for BIM 360 still works for ACC (for now at least), so this can be used to retrieve the roleID's to make sure that they are valid in this request. What's clear though is that the Autodesk docs seriously need to be updated and that this endpoint in my original question is missing some proper error handling.

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

79258690

Date: 2024-12-06 16:28:58
Score: 1
Natty:
Report link

I was able to work around this by using 'sed' to replace the '0000-00-00 00:00:00' string with NULLs.

\copy tablename from program 'cat /path/to/file | sed "s/0000-00-00 00:00:00//g"' with (format csv, header true);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: gmyran

79258685

Date: 2024-12-06 16:26:57
Score: 3.5
Natty:
Report link

Если вы используете yarn версии например 4.2.2, то мне помогло yarn config set enableStrictSsl false

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • No latin characters (2):
  • Low reputation (1):
Posted by: Павел Сумбаев

79258680

Date: 2024-12-06 16:22:56
Score: 8.5 🚩
Natty: 5.5
Report link

Can someone help?

I am getting similar issues now, in a completely new folder -

Installing template dependencies using npm... npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: [email protected] npm error Found: [email protected] npm error node_modules/react npm error react@"^19.0.0" from the root project npm error npm error Could not resolve dependency: npm error peer react@"^18.0.0" from @testing-library/[email protected] npm error node_modules/@testing-library/react npm error @testing-library/react@"^13.0.0" from the root project npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution.

Adding --force or --legacy-peer-deps doesn't work, I get the same error.

Running npm version 10.9.2 node --version 20.18.1

Reasons:
  • RegEx Blacklisted phrase (3): Can someone help
  • RegEx Blacklisted phrase (1): I get the same error
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am getting similar issue
  • Me too answer (0): I get the same error
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can someone help
  • Low reputation (1):
Posted by: Barred From All Bars

79258672

Date: 2024-12-06 16:19:55
Score: 3.5
Natty:
Report link

There is a way we could give a section an id name and then tag it within the

  • About
  • . I have been having trouble using those attributes and trying to haunt what could be causing me the trouble.

    Reasons:
    • Blacklisted phrase (1): what could be
    • Low length (0.5):
    • No code block (0.5):
    • Single line (0.5):
    • Low reputation (1):
    Posted by: Kierra Higgs

    79258667

    Date: 2024-12-06 16:17:54
    Score: 3
    Natty:
    Report link

    Following the instructions above results in a new install with all previous data erased. Also, the Rundeck OSS Downloads link is not working on that page.

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

    79258663

    Date: 2024-12-06 16:14:54
    Score: 1
    Natty:
    Report link

    using ionic 7, you can try ngStyle with --background property

    <ion-fab-button [ngStyle]="{'--background': option.colorFabButton}">
      <ion-icon class="zoom-icon-option" [src]="option.icon"></ion-icon>
    </ion-fab-button>
    
    Reasons:
    • Low length (0.5):
    • Has code block (-0.5):
    • Low reputation (1):
    Posted by: Jorge Ramirez

    79258653

    Date: 2024-12-06 16:11:53
    Score: 0.5
    Natty:
    Report link

    Does \parenthesize do what you need?

    example = {
      \override  Score.BarNumber.break-visibility = ##(#t #t #t)
      \set Score.barNumberVisibility = #all-bar-numbers-visible
      \override  Score.BarNumber.break-visibility = #end-of-line-invisible
      \time 2/4
      \partial 8 \parenthesize e8 |
      a2 | b2 | c2 | \partial 8*3 d4. \bar "||" 
      \break
      \partial 8 \parenthesize e8 |
      \set Score.currentBarNumber = 5
      a2 | c2 | b2 | a2 \bar "|."
    }
    
    Reasons:
    • Has code block (-0.5):
    • Ends in question mark (2):
    • High reputation (-1):
    Posted by: ksnortum

    79258610

    Date: 2024-12-06 16:01:50
    Score: 0.5
    Natty:
    Report link

    I only changed the runtime to TPU and it worked perfectly for me. If dealing with a dense graph data especially with language model embedding for your data.x features, it increases the data size and TPU has the best RAM capacity to rescue you.

    Reasons:
    • Whitelisted phrase (-1): it worked
    • Low length (0.5):
    • Has code block (-0.5):
    • Single line (0.5):
    • Low reputation (1):
    Posted by: Isaac Kobby Anni

    79258609

    Date: 2024-12-06 16:00:50
    Score: 3
    Natty:
    Report link

    Cask 'cscreen' has been disabled because it is no longer available upstream! It was disabled on 2024-11-10.

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

    79258592

    Date: 2024-12-06 15:53:49
    Score: 2.5
    Natty:
    Report link

    For Unity, go to Project Settings > Oculus [tab on left] > Fix All [button]

    That also fixes black screen

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

    79258575

    Date: 2024-12-06 15:44:47
    Score: 3.5
    Natty:
    Report link

    Simultaneous prefix + suffix LIKE '%abc%' can be sped up with gin + pg_trgm

    Usage:

    CREATE EXTENSION pg_trgm;
    CREATE TABLE "mytable" ("col1" TEXT);
    CREATE INDEX "mytable_col1_gin" ON "mytable" USING gin("col1" gin_trgm_ops);
    EXPLAIN SELECT * FROM "mytable" WHERE "col1" LIKE '%abc%';
    

    which produces:

                                    QUERY PLAN                                 
    ---------------------------------------------------------------------------
     Bitmap Heap Scan on mytable  (cost=15.10..104.10 rows=400 width=72)
       Recheck Cond: (col1 ~~ '%abc%'::text)
       ->  Bitmap Index Scan on mytable_col1_gin  (cost=0.00..15.00 rows=400 width=0)
             Index Cond: (col1 ~~ '%abc%'::text)
    

    which means that the query was sped up.

    Notes:

    Reasons:
    • Blacklisted phrase (1.5): any solution
    • Blacklisted phrase (1): is there any
    • RegEx Blacklisted phrase (1): I want
    • RegEx Blacklisted phrase (2): any solution?
    • Probably link only (1):
    • Long answer (-0.5):
    • Has code block (-0.5):
    • High reputation (-2):
    Posted by: Ciro Santilli OurBigBook.com

    79258574

    Date: 2024-12-06 15:44:47
    Score: 1.5
    Natty:
    Report link

    What about:

    value = 9024178.32
    print(f"{value:_}".replace(".", ",").replace("_", "."))
    

    which gives: 9.024.178,32

    Reasons:
    • Low length (1):
    • Has code block (-0.5):
    • Starts with a question (0.5): What
    • Low reputation (0.5):
    Posted by: rehaqds

    79258573

    Date: 2024-12-06 15:44:47
    Score: 1
    Natty:
    Report link

    Building up on @aayla-secura's response, if you want to test both send call results (the one that resolves and the one that rejects), what you could do is declare the send mock as a separate const

    The idea of using an arrow function comes from this other contribution: https://stackoverflow.com/a/68073694/12194386

    const mockSend = jest.fn();
    
    jest.mock("@aws-sdk/client-s3", () => ({
      PutObjectCommand: jest.fn(),
      S3Client: jest.fn(() => ({
        send: () => mockSend(),
      })),
    }));
    

    Another solution found in the Jest documentation (see https://jestjs.io/docs/es6-class-mocks) could be to use mockImplementation :

    const mockSend = jest.fn();
    
    jest.mock("@aws-sdk/client-s3", () => ({
      PutObjectCommand: jest.fn(),
      S3Client: jest.fn().mockImplementation(() => ({
        send: mockSend,
      }));
    }));
    

    That way, you have the possibility to mock different behaviors

    describe("upload product", () => {
      it("should send status 502 if saving image fails", async () => {
        mockSend.mockRejectedValueOnce(new Error('Some error'));
        ...
    
        await uploadProductHandler(mockReq, mockRes);
    
        ...
        expect(mockRes.sendStatus).toHaveBeenCalledWith(502);
      });
    
      it("should send status 201 when everything works correctly", async () => {
        mockSend.mockResolvedValueOnce(null);
        ...
    
        await uploadProductHandler(mockReq, mockRes);
    
        ...
        expect(mockRes.sendStatus).toHaveBeenCalledWith(201);
      });
    });
    
    Reasons:
    • Blacklisted phrase (1): stackoverflow
    • Long answer (-1):
    • Has code block (-0.5):
    • User mentioned (1): @aayla-secura's
    • Low reputation (0.5):
    Posted by: JrmDel

    79258569

    Date: 2024-12-06 15:42:47
    Score: 1
    Natty:
    Report link

    const Web3 = require('web3'); const web3 = new Web3();

    const logs = [ { "address": "0x537bD9BA6fd037EE001e070F3989d8b3E77bf30B", "topics": [ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef", "0x0000000000000000000000000000000000000000000000000000000000000000", "0x000000000000000000000000ad5292d3d35f57cc0d7876cfd7b583dc99637b0d" ], "data": "0x00000000000000000000000000000000000000000000152d02c7e14af6800000", "blockNumber": 46160226, "transactionHash": "0x77c64c25eeeecaf73ff51a9ac42163773544e7c4ff51cad4c69549b64ca4e116", "transactionIndex": 2, "blockHash": "0x25d5e5257ade627c241480503609520337c7e4924df1639fbf15f63925e0e029", "logIndex": 4, "removed": false, "id": "log_70b5e3f1" } ];

    const transferEventAbi = [ { "indexed": true, "name": "from", "type": "address" }, { "indexed": true, "name": "to", "type": "address" }, { "indexed": false, "name": "value", "type": "uint256" } ];

    logs.forEach(log => { if (log.topics[0] === "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef") { const decoded = web3.eth.abi.decodeLog( transferEventAbi, log.data, log.topics.slice(1) // exclude the first topic as it's the event signature ); console.log("Decoded Transfer Event:", decoded); } });

    Reasons:
    • Long answer (-1):
    • No code block (0.5):
    • Filler text (0.5): 0000000000000000000000000000000000000000000000000000000000000000
    • Filler text (0): 000000000000000000000000
    • Filler text (0): 00000000000000000000000000000000000000000000
    • Low reputation (1):
    Posted by: Ashish

    79258558

    Date: 2024-12-06 15:38:46
    Score: 2
    Natty:
    Report link

    System.InvalidCastException HResult=0x80004002 Message=Unable to cast object of type 'Org.BouncyCastle.Crypto.AsymmetricCipherKeyPair' to type 'Org.BouncyCastle.Crypto.Parameters.RsaPrivateCrtKeyParameters'. I used your code but got this ex

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

    79258551

    Date: 2024-12-06 15:36:45
    Score: 2.5
    Natty:
    Report link

    You can temporary solve it by changing file android/gradle.properties change newArchEnabled to false.As soon as react-native-track-player makes itself compatible with new react native architecture,you can turn it back to true.

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

    79258534

    Date: 2024-12-06 15:31:44
    Score: 3
    Natty:
    Report link

    Glad you figured it out. Consider auto sizing your header/footer images using CSS styling so it will automatically adjust to your webpage width.

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

    79258519

    Date: 2024-12-06 15:25:43
    Score: 1.5
    Natty:
    Report link

    if for python irc bot there are several libraries, I suggest you to try https://sopel.chat because I also use it until now.

    if for the problem you are experiencing, it might be better to do a connection debut so you can get information from there

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

    79258518

    Date: 2024-12-06 15:25:43
    Score: 1.5
    Natty:
    Report link

    If Still cnt work, you might try select "Obtain processors from project classpath" which is under "Enable annotation processing".

    By selecting the "Obtain processors from project classpath" radio button, you ensure that your project uses Lombok's annotation processor from the classpath, which is typically the correct approach when Lombok is added as a Maven or Gradle dependency.

    The default option of selecting the "Processor Path" can sometimes cause issues if the path is not correctly resolved or if the Lombok jar file is misplaced. Switching to "Obtain processors from project classpath" resolves such problems since it automatically detects Lombok from the dependencies.

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

    79258514

    Date: 2024-12-06 15:24:43
    Score: 2
    Natty:
    Report link

    Depending on the image used by the build, JDK21 may already be installed. See e.g. the Java versions available in the Ubuntu-20.04 image.

    So the only thing required is to use e.g JavaToolInstaller to specify the version you want to use:

      - task: JavaToolInstaller@0
        inputs:
          versionSpec: '21'
          jdkArchitectureOption: 'x64'
          jdkSourceOption: 'PreInstalled'
    

    and then specify this version in the Gradle task:

      - task: Gradle@3
        inputs:
          javaHomeOption: 'JDKVersion'
          jdkVersionOption: '1.21'
          jdkArchitectureOption: 'x64'
          tasks: 'clean test'
    

    See also: Is it possible to use JDK 21 in an Azure Pipeline Gradle task?

    Reasons:
    • Blacklisted phrase (1): Is it possible to
    • Long answer (-0.5):
    • Has code block (-0.5):
    • Ends in question mark (2):
    Posted by: Erik Finnman

    79258508

    Date: 2024-12-06 15:22:42
    Score: 2.5
    Natty:
    Report link

    unable to connect to https

    i still have this issue and have tried out most of the solutions ya'll posted, but still failing

    Reasons:
    • Low length (1):
    • No code block (0.5):
    • Low reputation (1):
    Posted by: Ссемамбо Джейкоб

    79258504

    Date: 2024-12-06 15:21:42
    Score: 0.5
    Natty:
    Report link

    EAS Secrets is where you should put all your env variable at the end (as CI-CI pipeline) and is the one that will overwrite other value.

    --env and the env object in eas.json are the same thing.

    about sensitiveness, it's depend which level of security you want to put on your variable in the EAS Secrets variable managers (visible, masked or secrets). Secrets level if for value you don't want either other people on your team to see or leak by mistake.

    Sensitive data such as API KEY should be stored at least at masked level.

    You can restrict you variable on specific environnement in EAS Secrets, which let's you configure them more efficiently.

    Also a little warn, if you put data on masked or secrets level, be sure to not use them with EXPO_PUBLIC_ prefix in your app, else it will be visible for anyone who install your application.

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

    79258496

    Date: 2024-12-06 15:20:41
    Score: 3
    Natty:
    Report link

    Its a proplem of packages version of the project , ensure that you are using the correct versions of packages to downgrad or upgrade them

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

    79258482

    Date: 2024-12-06 15:16:39
    Score: 4.5
    Natty:
    Report link

    Make sure to check Android Developers website for detailed explanations - Wi-Fi Direct (peer-to-peer or P2P) overview

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

    79258475

    Date: 2024-12-06 15:14:39
    Score: 3
    Natty:
    Report link

    Restarting the computer worked for me

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

    79258466

    Date: 2024-12-06 15:11:39
    Score: 0.5
    Natty:
    Report link

    download dot-net runtime for dot-net 6.0 and dot-net 8.0

    sudo tar -xzvf dotnet-sdk-6.0.427-linux-x64.tar.gz -C /usr/share/dotnet
    
    sudo tar -xzvf dotnet-sdk-8.0.100-linux-x64.tar.gz -C /usr/share/dotnet
    

    Create symi link

    sudo ln -sf /usr/share/dotnet/dotnet /usr/bin/dotnet
    
    
    
    export DOTNET_ROOT=/usr/share/dotnet
    
    export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools
    
    echo 'export DOTNET_ROOT=/usr/share/dotnet' >> ~/.bashrc
    
    echo 'export PATH=$PATH:$DOTNET_ROOT:$DOTNET_ROOT/tools' >> ~/.bashrc
    
    source ~/.bashrc
    

    if you face dotnet-sdk not found error use apt pagage to install

    dotnet installation link

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

    79258452

    Date: 2024-12-06 15:08:37
    Score: 6 🚩
    Natty: 4
    Report link

    Hi @Raghavendra Devraj,

    I have tried your solution with the "Choose" tag but it doesn't work. It behaves like if SpaProxyServerUrl was not set at all, despite I set it for an EnvironmentName that is defined in my launchSettings.json file ("ASPNETCORE_ENVIRONMENT": ...).

    I there any thing I am missing ?

    Reasons:
    • Low length (0.5):
    • No code block (0.5):
    • Ends in question mark (2):
    • User mentioned (1): @Raghavendra
    • Looks like a comment (1):
    • Low reputation (1):
    Posted by: alextekeuf

    79258441

    Date: 2024-12-06 15:04:36
    Score: 2.5
    Natty:
    Report link

    According to this link, you should append "fetch_status": false in "properties":

              "properties": {
                "display_stash_count": true,
                "display_status": true,
                "display_upstream_icon": true,
                "fetch_status": false            // add this
              },
    

    Restart your terminal and you can see the status icons disappear, and the performance is improved.

    Before: https://i.sstatic.net/TpOs3S0J.png

    After: https://i.sstatic.net/gzndKiIz.png

    Reasons:
    • Blacklisted phrase (1): this link
    • Probably link only (1):
    • Has code block (-0.5):
    • Low reputation (1):
    Posted by: junyu33

    79258440

    Date: 2024-12-06 15:04:36
    Score: 3.5
    Natty:
    Report link

    TWIN BUILDS !!, PARENTS, FAMILY TREE(S), HEIRS, Check; RAW GIT HUB DATA, THANKS 👍

    Reasons:
    • Blacklisted phrase (0.5): THANKS
    • Low length (1.5):
    • No code block (0.5):
    • Low reputation (1):
    Posted by: Coleen Kuhlman

    79258439

    Date: 2024-12-06 15:04:36
    Score: 2
    Natty:
    Report link

    For the comilation error, I bypassed it with replace

    template<typename... Args>
    

    with

    template<auto... Args>
    

    Which will let compiler deduce non-typed template parameters pack. That will solve my problem.

    Please check:

    https://godbolt.org/z/fT9qEfsxT

    And what @Jarod42 said is right.

    Reasons:
    • Low length (0.5):
    • Has code block (-0.5):
    • User mentioned (1): @Jarod42
    • Self-answer (0.5):
    • Low reputation (0.5):
    Posted by: Bob liao

    79258432

    Date: 2024-12-06 15:02:34
    Score: 5.5
    Natty: 4.5
    Report link

    Has anyone fixed this? Nothing in the answers works

    Reasons:
    • RegEx Blacklisted phrase (1.5): fixed this?
    • Low length (1.5):
    • No code block (0.5):
    • Contains question mark (0.5):
    • Single line (0.5):
    • Low reputation (1):
    Posted by: liebe

    79258426

    Date: 2024-12-06 14:59:33
    Score: 2
    Natty:
    Report link

    From November 2023 Docker ECS integration is discontinued. To be precise from 4.20.00 as from Docker release note: https://docs.docker.com/desktop/release-notes/ All the tutorial and videos that are well indexed by search engines are not valid

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

    79258417

    Date: 2024-12-06 14:56:32
    Score: 1.5
    Natty:
    Report link

    Using Execute SQL Script in Pentaho Spoon to run PL/SQL is a common and valid approach, but whether it’s the "best" way depends on the specific requirements and the complexity of your transformations.

    If you are using bind variables for your queries, then it is great for both Pentaho (because it is working), and for Oracle Database, which will make use of the in-memory query cache.

    Your job is functioning correctly, so it’s a valid approach for your scenario.

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

    79258414

    Date: 2024-12-06 14:54:32
    Score: 1
    Natty:
    Report link

    Do you mean this?

    > factor(t_fac, labels = unique(t_lab))
    [1] 1 1
    Levels: 1
    
    Reasons:
    • Low length (1.5):
    • Has code block (-0.5):
    • Ends in question mark (2):
    • High reputation (-2):
    Posted by: ThomasIsCoding

    79258413

    Date: 2024-12-06 14:54:32
    Score: 2
    Natty:
    Report link

    For me it looked like windows had tried to amend the formatting to ANSI. I opened the sql dump in notepad ++ went to encoding and changed to UTF-8 and then tried again and it worked.

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