79160325

Date: 2024-11-05 18:41:07
Score: 1.5
Natty:
Report link

It is 600 requests (combined from list below) per second per account per region

To Quote official doc:

The AWS STS service has a default request quota of 600 requests per second per account, per region. This quota is shared across the following STS requests that are made using AWS credentials: AssumeRole, DecodeAuthorizationMessage, GetAccessKeyInfo, GetCallerIdentity, GetFederationToken, GetSessionToken

Source: AWS STS Quota

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

79160312

Date: 2024-11-05 18:37:07
Score: 0.5
Natty:
Report link

so if you are using angular 18 or above version then use below changes in app.config.ts file

providers: [provideZoneChangeDetection({ eventCoalescing: true }), provideRouter(routes), provideHttpClient()]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sarad Vishwakama

79160304

Date: 2024-11-05 18:34:06
Score: 2.5
Natty:
Report link

Alright. I've got this working now.

I posted this comment on reddit also and had someone give me a bit of advice that I needed to hear.

"You don't use venv between computers, you should always recreate it."

I've always added my virtual environments to my github repos and apparetnly this isn't common practice for obvious reasons that I have been running into.

So I added my venv into the .gitignore file, and I created a bash script to setup the environment.

Turns out this was a noob issue.

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

79160303

Date: 2024-11-05 18:34:05
Score: 0.5
Natty:
Report link

avcodec_ functions return -12 value when the AVERROR_INVALIDDATA error is encountered. Therefore, you don't use the AV_CODEC_ID_ASS to open the context for the libass subtitle, but the AV_CODEC_ID_MOV_TEXT identifier is used instead. The mov_text codec seems incompatible with the graphical subtitle format you feed to it.

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

79160300

Date: 2024-11-05 18:33:05
Score: 1
Natty:
Report link

I worked around it by:

yum remove texlive-latex
cd R-4.4.2
./configure
make

As you see, this essentially disable PDF and Tex builds.

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

79160299

Date: 2024-11-05 18:33:05
Score: 0.5
Natty:
Report link

As refered to here :https://github.com/cetz-package/cetz/issues/740#issuecomment-2457796488

You can use a content frame to scale a circle or rectangle around text :

#import "@preview/cetz:0.3.1"

#cetz.canvas({
  import cetz.draw: *
  content(
    (0, 0),
    [cont],
    fill: rgb(50, 50, 255, 100),
    stroke: rgb("#000000"),
    frame: "circle",
    padding: 5pt,
  )
})
Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user28149662

79160297

Date: 2024-11-05 18:33:05
Score: 4.5
Natty: 5
Report link

Use some library for this, https://github.com/asmyshlyaev177/state-in-url for example.

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

79160283

Date: 2024-11-05 18:28:03
Score: 1.5
Natty:
Report link

try:

$excel = New-object -ComObject excel.application
$workbook = $excel.WorkBooks.Open("filepath")
$Workbook.Parent.Calculation = -4135
...
...
#Turn recalculate back on
$Workbook.Parent.Calculation = 1

This works if you have Excel installed

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jeffrey L Prochaska

79160281

Date: 2024-11-05 18:27:03
Score: 2
Natty:
Report link

You can update this property using the Fields API

{
  "properties": {
    "useI18NFormat": true
  }
}

Will reflect as this change in the UI Field Settings: enter image description here

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

79160268

Date: 2024-11-05 18:21:02
Score: 0.5
Natty:
Report link

An even simpler solution is to use WHERE to filter out all NULL from VALUE:

SELECT USER_ID, VALUE, RANK() OVER(ORDER BY VALUE DESC) FROM yourtable
WHERE VALUE IS NOT NULL
Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: NoKryst13

79160258

Date: 2024-11-05 18:18:01
Score: 2.5
Natty:
Report link

In my case, the functions were not showing up because a global variable initialization (in Python) was trying to access a secret that was missing in the production vault (and available in the test vault).

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

79160253

Date: 2024-11-05 18:15:01
Score: 1.5
Natty:
Report link

In simple terms as said by @Easwar Chinraj

The delta touch activity over UI elements of the screen can simply be fixed by the following code

 if (EventSystem.current.currentSelectedGameObject == null)
 {
   // means the delta touch is not over ant UI controls(like buttons, joysticks, sliders)
   // your code for delta pointer movement
}

else Debug.Log(" pointer over this control "+ EventSystem.current.currentSelectedGameObject);

This works like a charm in mobile

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Easwar
  • Low reputation (1):
Posted by: chandrasekaran Natarajan

79160246

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

theres also another feature that would be very useful in MARS 4.5 software. the horizontal-scroll feature, which is exclusively for laptops and it works with trackpad.

in the current MARS 4.5 or MARS 4.5.1 (the one im using), if the user puts 2 fingers together on the trackpad and swipes them up or down, the "edit" tab in the MARS software scrolls up or down. however, sometimes we need to scroll sideways (horizontally) too (for example if you are reading or writing a long comment). horizontal-scroll would work with almost the same principle: put 2 fingers together on the trackpad, but swipe left or right instead of up and down. edit tab should scroll left or right, but in the current version it still scrolls up or down, despite swiping left or right.

many softwares have side-scroll feature. and in my case it would be really useful and time-saving.

if anyone has a version of MARS that includes horizontal-scroll, please comment a github link! thank you and take care.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ლუკა გოგოხია

79160237

Date: 2024-11-05 18:09:59
Score: 1.5
Natty:
Report link

I just tested the delta API and hit a 20 user limit as well for this one:

https://graph.microsoft.com/v1.0/groups/delta?$expand=member
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user26830288

79160220

Date: 2024-11-05 18:02:58
Score: 2.5
Natty:
Report link

What worked for me was simply navigating to the directory containing the Program.cs file, and running the NuGet installation package command.

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

79160207

Date: 2024-11-05 17:57:56
Score: 3
Natty:
Report link

Thanks @kriegaex!

But I think this is getting too convoluted. I tried various things:

  1. @Around("execution(* createGame*(..))") This was recognized but it threw an error because it found the controller method, not the service

  2. @Around("execution(* com.phil.cardgame.service.GameService.createGame*(..))") This worked

  3. @Around("crap") This should have thrown an exception "Pointcut is not well-formed...", but didn't and obviously the aspect was not called.

  4. @Around("execution(* com.phil.cardgame.service.GameService.createGame())") This was the original which didn't work, but now it does work.

So it seems this is some subtle intermittent thing which I believe is not worth further attention. I have gotten AOP working in other applications, so I won't waste your or my time on this. Thanks very much for your help!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @kriegaex
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: philb

79160204

Date: 2024-11-05 17:56:56
Score: 0.5
Natty:
Report link

The arrow pointing to the "LOCAL" file doesn’t make sense in the context of Git. Meld was originally designed as a file comparison tool rather than specifically for conflict resolution in version control. The files on the left and right are literally files – likely temporary files created by Git specifically for loading them into the left and right panes in Meld. The middle pane holds the "BASE" version of the file, which is the common ancestor of both changes.

The author needs to build the final version of the file in the center, using the insertions from the left (LOCAL) and right (REMOTE) panes. Modifying the LOCAL and REMOTE files themselves doesn’t make sense because they are temporary files, which will presumably be deleted after the merge process is completed.

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

79160197

Date: 2024-11-05 17:54:55
Score: 2.5
Natty:
Report link

This could be the result of a few problems. First of all, this implies that your python language server does not have the packages installed. You said that when you reinstalled the packages it said they are already installed, therefore I assume your code looks for the wrong python version.

If you used a virtual environment (like venv for example) to setup your installed packages, then you probably need to activate it (run the activate script in the terminal you want to run your python code. On Windows its a .bat file, on Linux you can do source .../activate)

If you did not use a virtual environement, there can be multiple versions of python installed. Figure out which one you use when you install the packages and try to run your program with this version directly. Also, if your code is from a jupyter notebook, see if you selected the right python kernel.

Finally, you didn't say whether you tried running the problem. Did you get an error? If the program works just fine, then only the language server has a problem and it might be an issue with the IDE.

I hope this helps.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • RegEx Blacklisted phrase (3): Did you get an
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Znerual

79160142

Date: 2024-11-05 17:37:51
Score: 3
Natty:
Report link

I have seen a very good article where everything is explained with java sample code. link

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

79160133

Date: 2024-11-05 17:34:50
Score: 2
Natty:
Report link
newAverage * (numberOfGrades + 1) - oldAverage * numberOfGrades
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sanja

79160124

Date: 2024-11-05 17:29:48
Score: 0.5
Natty:
Report link

https://learn.microsoft.com/en-us/dotnet/api/system.data.entity.infrastructure.dbupdateconcurrencyexception?view=entity-framework-6.2.0 The above documentation states: "Exception thrown by DbContext when it was expected that SaveChanges for an entity would result in a database update but in fact no rows in the database were affected. This usually indicates that the database has been concurrently updated such that a concurrency token that was expected to match did not actually match."

Entity Framework contexts are not thread safe. Seeing as the above is running in a task, I would make sure the actual EF Core operations are happening in a thread safe manner.

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

79160119

Date: 2024-11-05 17:28:48
Score: 1
Natty:
Report link

Solution I found

connection.add_global_handler('namreply', on_names)
connection.add_global_handler('endofnames', on_names)

To get all events from twitch

connection.add_global_handler('all_events', on_any_event)

def on_any_event(connection, event):
    logging.info(f"Event received: {event.type} - Arguments: {event.arguments})
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Oliver Conway

79160115

Date: 2024-11-05 17:27:48
Score: 0.5
Natty:
Report link

This is because the content overflows from the card and user can hover on them in order to fix it add overflow: hidden; to your card like this:

.card {
  overflow: hidden;
}

This makes sure that the content that overflows are hidden and user can't hover on them.

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

79160106

Date: 2024-11-05 17:25:47
Score: 2.5
Natty:
Report link

I'm posting this, but @jasonharper provided the answer. The solution to my problem was to subclass collections.UserList rather than list. All of its methods generate objects of the same class. Works perfectly.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @jasonharper
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Steven Dickinson

79160096

Date: 2024-11-05 17:22:46
Score: 1
Natty:
Report link

The types HTMLAttributes and Component are not documented on the Vue.js website. Instead, they are defined only in the files runtime-dom.d.ts and runtime-core.d.ts, so the only way to read them is by directly checking those files.

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

79160089

Date: 2024-11-05 17:21:46
Score: 2.5
Natty:
Report link

I can't even pass through first test objective. Everytime getting HTML error. Even on empty page with three default tags and one button( Even html example pubished in their instruction is failing while upload.

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

79160086

Date: 2024-11-05 17:20:46
Score: 0.5
Natty:
Report link

Thanks to Athanasios Karagiannis

My codes run well to export RDLC to PDF!

// dump PDF to browser
Warning[] warnings;
string[] streamids;
string mimeType, encoding, extension;
byte[] bytes = ReportViewer.LocalReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamids, out warnings);
Response.Buffer = true;
Response.Clear();
Response.ContentType = mimeType;
Response.AddHeader("content-disposition", "inline; filename=myfile." + extension);
Response.BinaryWrite(bytes);
string pdfPath = Server.MapPath("~") + "pdf." + extension;
FileStream pdfFile = new FileStream(pdfPath, FileMode.Create);
pdfFile.Write(bytes, 0, bytes.Length);
pdfFile.Close();
Response.Flush();
Response.End();
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Codaqua

79160081

Date: 2024-11-05 17:19:45
Score: 4.5
Natty:
Report link

Thank you, the javascript solution works.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: askbloopink

79160078

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

The %c modifier is typically used in case of character, in case you want to fetch just a single character.

%s is used to fetch a string or group of characters Lets for the sake of ease of understanding, We take 2 string of character type arrays.

One of the array of string type char str[] will hold the original string.

The second array which hold the substring which the user input to check from their end if the substring exists or not.

Also lets declare a flag variable "found" of type int as boolean types are not part of C.

The code is attached in image format as per your reference. Click on the link

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

79160065

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

This is the first response on a google search on how to confirm that a string is valid css. So that's a pretty good answer. :) I would add rem and em to the regex. (\d*)(px|%|em|rem).

And depending on the situation, might want to check that \d is greater than or equal to 0, unless you want people to be able to say that something is -100px wide or something. And allow either '0' or 0.,

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

79160063

Date: 2024-11-05 17:12:42
Score: 6 🚩
Natty:
Report link

Please watch this video, it will solve your issue

https://www.youtube.com/watch?v=K9zFoVWgs2M

Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Digital NexGen

79160053

Date: 2024-11-05 17:09:41
Score: 2.5
Natty:
Report link

The TouchAction class in Appium was deprecated with Appium 2.0. Instead of using TouchAction for touch gestures like scrolling, swiping, or tapping, Appium now encourages the use of the W3C Actions API.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joseph Cole-Showers

79160047

Date: 2024-11-05 17:07:40
Score: 1
Natty:
Report link

I am wondering about the same thing when I got stuck on the same problem recently.

As far as I have researched. Without a timeout, if one file takes too long to download (due to network issues, slow server response, or file size), then in the meantime new download cascades over the previous one because files are downloading on a single thread because of JS nature which only makes the last file to get downloaded.

and when we add a timeout in between downloading the files, then Javascript consider that as a separate task.

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

79160037

Date: 2024-11-05 17:05:39
Score: 0.5
Natty:
Report link

I've seen in this video that mocking automapper its not a good approach: https://www.youtube.com/watch?v=RsnEZdc3MrE

Instead, you can use a Mapper creator and return your real application mapper.

In the test project:

//this is going to return your real mapper    
var mapper = MapperBuilder.Create();

--

public static class MapperBuilder
{
    public static IMapper Create()
    {
        return new AutoMapper.MapperConfiguration(options =>
        {
            options.AddProfile(new MyRealMapper());
        }).CreateMapper();
    }
}

In your Application project:

public class MyRealMapper : Profile
{
    public MyRealMapper()
    {
        RequestToDomain();
        DomainToResponse();
    }

    private void DomainToResponse()
    {
        CreateMap<User, ResponseUserCreateJson>();
        CreateMap<User, ResponseUserChangePasswordJson>();
    }

    private void RequestToDomain()
    {
        CreateMap<RequestUserCreateJson, User>()
            .ForMember(u => u.Password, config => config.Ignore());
    }
}
Reasons:
  • Blacklisted phrase (1): youtube.com
  • Blacklisted phrase (1): this video
  • Whitelisted phrase (-1.5): you can use
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: dama-dev

79160032

Date: 2024-11-05 17:04:39
Score: 1
Natty:
Report link

Create own decorator @IsNotEmpty() which run @IsNotEmpty() only in some conditions, some check to what classe is ttached

Some thing like

import { IsNotEmpty as LibraryIsNotEmpty } from '...';

const IsNotEmpty = (target) => {
  if (some condition may be some check on target) {
    return LibraryIsNotEmpty(target) // call original decorator
  }
}

class User {
  @IsNotEmpty() // custom decorator
  username: string;
}

I don't need IsNotEmpty decorator when updating

From Nestjs for example

By default, all of these fields are required. To create a type with the same fields, but with each one optional, use PartialType() passing the class reference (CreateCatDto) as an argument:

export class UpdateCatDto extends PartialType(CreateCatDto) {}

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

79160025

Date: 2024-11-05 17:03:39
Score: 1
Natty:
Report link

from pyspark.sql.functions import col

it'll allow you to do column operations.

df.filter(col("Age") > 30)
.show()
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ali BOUHLEL

79160022

Date: 2024-11-05 17:02:38
Score: 0.5
Natty:
Report link
{
XMLGregorianCalendar xmlCalendar = DatatypeFactory.newInstance()
    .newXMLGregorianCalendar(new GregorianCalendar());
OffsetDateTime dt = xmlCalendar.toGregorianCalendar()
    .toZonedDateTime().toOffsetDateTime();
return DateTimeFormatter.ofPattern("MM/dd/yyyy hh:mm").format(dt);
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: yv84_

79160017

Date: 2024-11-05 17:01:38
Score: 3
Natty:
Report link

In my case, I had no space left on my Linux home directory. After freeing up some space, it started working.

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

79160012

Date: 2024-11-05 16:58:37
Score: 1
Natty:
Report link

Add "unique_subject = no" to your default_ca's section in openssl.cnf:

[ ca ]
default_ca = CA_default
[ CA_default ]
...
unique_subject = no # allow the same subject line
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: rcpa0

79159996

Date: 2024-11-05 16:52:36
Score: 4
Natty:
Report link

If you have tried all the ways and it still doesn't work, react-router-dom may have the wrong package.json, you need to check whether a second node_modules is created while creating it. This is the reason why I couldn't solve it for a day. If it was created in the parent folder, after deleting it, go to your own file with 'cd file name' and download it again to package.json.

Reasons:
  • RegEx Blacklisted phrase (2): it still doesn't work
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fatih İnan

79159994

Date: 2024-11-05 16:52:36
Score: 2
Natty:
Report link

This thread is a little old, but I had trouble finding a solution on this topic. Once I got into this it turned out to be more involved than I originally thought. So I have posted a link to what I did in case you find yourself in a similar situation.

As mentioned just splitting the string on word boundaries is pretty straight forward. The problem gets interesting when you start adding other constraints like beauty (uniform line lengths) and tags.

Here is some code that does it with various constraints.

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

79159980

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

Here pytz module comes with aid:

from pytz import all_timezones, timezone

datetime.fromisoformat('2024-11-03T22:20:00Z').astimezone(timezone('Poland'))

all_timezones shows available tz

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

79159946

Date: 2024-11-05 16:38:31
Score: 3
Natty:
Report link

So in a JavaScript-only repo, with no .ts files, just using JSDocs, you have something like:

./types.js

/** @typedef {'html'|'xhtml'|'xml'} MARKUPTYPE */

./src/loadOptions.js

/** @typedef {import('../types.js').MARKUPTYPE} MARKUPTYPE */

/**
 * Some function.
 *
 * @param  {MARKUPTYPE} markup
 * @return {void}
 */
export const someFunction = function (markup) {
  console.log(markup);
};

And then the stupid TS Engine in VSCodium goes "OMG! I CAN'T IMPORT THAT! IT'S NOT A MODULE!!!!!! WHAT COULD IT EVEN BE?????"

So all you have to do apparently is add this to the end of your types.js file:

export const LITERALLY_ANYTHING_IT_DOES_NOT_MATTER_WHAT_THIS_VARIABLE_IS_CALLED_OR_WHAT_IT_IS_ASSIGNED_TO_TYPESCRIPT_IS_INCREDIBLY_STUPID_AND_NEEDS_THIS_HAND_HOLDING_BECAUSE_IT_IS_A_BAD_TECHNOLOGY = {};

And then the stupid fucking typescript engine will understand it's a module. It can't POSSIBLY look at the "type": "module" in the package.json and infer that all .js files are modules. Noooooooo, that would be convenient and the obvious way to do things, which is antithetical to the TS mission.

TypeScript, succeeding again in wasting 30 minutes of time to GIVE ABSOLUTELY NO TANGIBLE VALUE OR BENEFIT.

We could have had flying cars, but we chose suffering.

Reasons:
  • Blacklisted phrase (1): ???
  • Blacklisted phrase (2): fuck
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Filler text (0.5): oooooooo
  • Low reputation (0.5):
Posted by: The Jared Wilcurt

79159941

Date: 2024-11-05 16:37:31
Score: 2.5
Natty:
Report link

You cannot for now as iOS VisionKit doesn't have that option.

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

79159933

Date: 2024-11-05 16:35:28
Score: 6.5 🚩
Natty:
Report link

Andy Jazz, how could that be integrated into the code? Sorry, for responding to your answer not through a comment, but I can't comment (Stackoverflow doesn't let me, because I don't have enough reputation points).

Reasons:
  • Blacklisted phrase (1): Stackoverflow
  • RegEx Blacklisted phrase (1): can't comment
  • RegEx Blacklisted phrase (1.5): I don't have enough reputation points
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: salomon

79159926

Date: 2024-11-05 16:33:27
Score: 1.5
Natty:
Report link

Just an update on this topic in November 2024 to say Java JDK 21 now has released the concept of Virtual Thread.

Java threads are basically a wrapper for OS threads, and are known as platform threads. Therefore, threads are scarce resources, and therefore very valuable. If they are scarce, they are consequently expensive to have in abundance — approximately 2MB of memory is the cost to create a new thread.

Basically, we can say that threads are the “little place” where our code is executed.

Virtual thread

Forget all about threads being expensive and scarce resources. Virtual threads solve the problem of wasting time on threads, through a paradigm called coroutines. Virtual threads are still threads, and they act like threads, with the difference that they are no longer managed by the OS, like platform threads, but by the JVM. Now, for each platform thread, we will have an associated pool of virtual threads. How many virtual threads for each platform thread? As many as necessary. Each JVM can have millions of virtual threads.

With Java 21 and Spring Boot 3.2+, all you need is a parameter in application.properties

spring.threads.virtual.enabled=false

And your application will already be using virtual threads!

Before, there was a platform thread for each request. Now, for each task that needs to be executed, the platform thread will delegate this task to a virtual thread.

Instead of the platform thread itself executing the request, it delegates it to a Virtual Thread, and when this execution encounters blocking I/O, Java suspends this execution by placing the virtual thread context in the heap memory, and the platform thread is free to execute new tasks. As soon as the virtual thread is ready, it resumes execution.

Virtual threads are daemon threads, so they do not prevent the application from shutting down, unlike non-daemon threads in which the application ends when the thread ends.

Never use a pool

When we talk about thread pools or connection pools, we are implicitly saying: I have a resource that is limited, so I need to manage its use. But virtual threads are abundant, and a virtual thread pool should not be used.

The number of virtual threads we will have is equal to the number of simultaneous activities we execute. In short, for each simultaneous task you must instantiate a new virtual thread.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): update on this
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: EDG

79159914

Date: 2024-11-05 16:29:26
Score: 0.5
Natty:
Report link

On my API Adapter i added Guzzle Cache:

    $stack = HandlerStack::create();
    $stack->push(new CacheMiddleware(), 'cache');
    // Initialize the client with the handler option
    $client = new Client(['handler' => $stack]);

In the .htaccess:

<ifModule mod_headers.c>
    Header set Connection keep-alive
</ifModule>

And i added a planned task which make at least an API call per hour.

It looks good.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lenwë Galathil

79159910

Date: 2024-11-05 16:28:26
Score: 4
Natty:
Report link

There is also a button in the Project navigator toolbar: enter image description here

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

79159906

Date: 2024-11-05 16:27:25
Score: 0.5
Natty:
Report link

You'll need #include <string.h> to use strstr() like this:

#include <stdio.h>
#include <string.h>

int main() {
    char str[100];
    printf("How are you feeling right now? ");
    fgets(str, sizeof(str), stdin);

    if (strstr(str, "good") != NULL)
        printf("I'm glad to hear that!\n");
    else if (strstr(str, "tired") != NULL)
        printf("Take some rest!\n");
    else
        printf("Thank you for sharing.\n");

    return 0;
}
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: kazcfz

79159894

Date: 2024-11-05 16:22:23
Score: 6
Natty: 7
Report link

i'm rendering the image using streamlit (https://docs.streamlit.io/develop/api-reference/charts/st.graphviz_chart) but it doesn't render any images. Any ideas here?

reading this blog, it seems like it's an issue in the grpahviz library itself https://github.com/streamlit/streamlit/issues/3236

Reasons:
  • Blacklisted phrase (1): this blog
  • Blacklisted phrase (1): Any ideas
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Dave Li

79159891

Date: 2024-11-05 16:21:23
Score: 1
Natty:
Report link

I would recommend add a run.py file at the WorkingDirectory with content like:

# -*- coding: utf-8 -*-

from app import create_app
from config import Config

# Remember don't use if __name__ == 'main' in this file
my_app = create_app(Config)
my_app.run(host='127.0.0.1', port=5000, debug=True)

and then config the run/debug configuration like: PyCharm configuration

And all things will work just like we have the app.py

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

79159885

Date: 2024-11-05 16:19:22
Score: 3.5
Natty:
Report link

Right click on the failing project, select Qt -> Convert custom build steps to Qt/MSBuild.

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

79159877

Date: 2024-11-05 16:16:21
Score: 0.5
Natty:
Report link

this is the final lookI just did like that;

const genres = [
  "Metal",
  "Rock",
  "Jazz",
  "Blues",
  "Lo-fi",
  "Japanese",
  "Pop",
  "Classical",
  "Hip-Hop",
  "Country",
  "EDM",
  "Soul",
  "Folk",
  "Reggae",
];

export function YourFunctionName({ name }) {
  return (
     <View style={AllStyle.itemsGenreScrolls}>
        <ScrollView style={AllStyle.genreItemsParent} horizontal={false}>
          <View style={AllStyle.genreButtonParent}>
            {genres
              .filter((_, index) => index < genres.length / 2)
              .map((name, _) => {
                return <GenreButton name={name} />;
              })}
          </View>
          <View style={AllStyle.genreButtonParent}>
            {genres
              .filter((_, index) => index >= genres.length / 2)
              .map((name, _) => {
                return <GenreButton name={name} />;
              })}
          </View>
        </ScrollView>
      </View>
  );
}

GenreButton file simply like that:

import { Text, TouchableOpacity } from "react-native";
import { AllStyle } from "your style file";

export function GenreButton({ name }) {
  return (
    <TouchableOpacity style={AllStyle.genreButton}>
      <Text style={AllStyle.genreButtonText}>{name}</Text>
    </TouchableOpacity>
  );
}

this is the Style file:

import { StyleSheet } from "react-native";
export const AllStyle = StyleSheet.create({
  itemsGenreScrolls: {
    width: "100%",
    marginTop: 16,
    marginBottom: 24,
  },
  itemsHeaders: {
    fontSize: 25,
    fontWeight: "800",
    color: "#ffffff",
  },
  genreItemsParent: {
    display: "flex",
    flexDirection: "row",
  },
  genreButtonParent: {
    display: "flex",
    flexDirection: "row",
    paddingVertical: 16,
    marginLeft: 6,
  },
  genreButton: {
    marginRight: 16,
    backgroundColor: "#444444",
    width: "64",
    height: "32",
    paddingHorizontal: 18,
    paddingVertical: 9,
    borderRadius: 20,
    shadowColor: "black",
    shadowOffset: { width: 0, height: 0 },
    shadowOpacity: 0.4,
    shadowRadius: 10,
  },
  genreButtonText: {
    color: "#ffffff",
    textAlign: "center",
    fontSize: 16,
    fontWeight: "400",
  },
});
Reasons:
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Bekranker

79159870

Date: 2024-11-05 16:14:21
Score: 1.5
Natty:
Report link

I`m using colab offline on Windows.

To solve this task i used:

from pathlib import Path
Win_base_dir = Path("./").resolve()

It works online also. So, try it.

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

79159868

Date: 2024-11-05 16:14:21
Score: 2.5
Natty:
Report link

This can be done with the selections api in Hot Chocolate 14.

Here is a youtube episode that shows how it works. https://youtu.be/XZVpimb6sKg

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Low length (1):
  • No code block (0.5):
Posted by: Michael Ingmar Staib

79159862

Date: 2024-11-05 16:11:20
Score: 0.5
Natty:
Report link

I won't look at pictures of code (i prefer them as a code-formatted text block in the question), but if it is true when you said that "There are no other lines of code in the project that change an instance's HP other than Area's constructor", then the only conclusion is:

The Area instance's HP has not been reset. Obviously that must be the case if we believe your aforementioned claim to be true, unless we start believing in magic or in your computer being an evil entity intend on sabotaging your efforts.

Rather, i suspect, for some reason or another, that when you try obtaining/inspecting the HP value, you use another (freshly) created Area instance whose Hurt method you did not call. In other words, there are at least two Area instances alive in your program, one whose Hurt method has been called, and one whose (unaltered) HP values is obtained from. That's the issue you need to locate and fix. (Again, assuming your claims in your question hold true.)

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

79159849

Date: 2024-11-05 16:08:19
Score: 4.5
Natty:
Report link

Ola, fiz um projeto que faz exatamente isso, coloquei no meu github pode dar uma olhada. https://github.com/LeonardoQueres/Integration-Docker---.NET---SQL-SERVER

No arquivo program.cs adicione a linha de codigo abaixo

builder.Services.AddHttpsRedirection(options =>
{
    options.RedirectStatusCode = Status308PermanentRedirect;
    options.HttpsPort = 3001;
});

enter image description here

if (app.Environment.IsDevelopment())
{
    app.UseSwagger();
    app.UseSwaggerUI();

    var application = app.Services.CreateScope().ServiceProvider.GetRequiredService<ApplicationDbContext>();

    // Utilizando o migration a execução do container docker não é necessario as linhas abaixo
    var pendingMigrations = await application.Database.GetPendingMigrationsAsync();
    if (pendingMigrations != null)
        await application.Database.MigrateAsync();
}

enter image description here

Atualize seu arquivo dockerfile confirme codigo abaixo adicionando as linhas do migration

# Esta fase é usada durante a execução no VS no modo rápido (Padrão para a configuração de Depuração)
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
EXPOSE 3000
EXPOSE 3001


# Esta fase é usada para compilar o projeto de serviço
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["project/project.csproj", "project/"]
COPY ["Thunders_Repositories/Thunders_Repositories.csproj", "Thunders_Repositories/"]
COPY ["Thunders_Borders/Thunders_Borders.csproj", "Thunders_Borders/"]
COPY ["Thunders_UseCases/Thunders_UseCases.csproj", "Thunders_UseCases/"]
RUN dotnet restore "./project/project.csproj"
COPY . .
WORKDIR "/src/project"
RUN dotnet tool install --global dotnet-ef 
ENV PATH="$PATH:/root/.dotnet/tools"
RUN dotnet build "./project.csproj" -c $BUILD_CONFIGURATION -o /app/build
CMD dotnet ef database update --environment Development --project src/project_Repositories

# Esta fase é usada para publicar o projeto de serviço a ser copiado para a fase final
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./project.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false

# Esta fase é usada na produção ou quando executada no VS no modo normal (padrão quando não está usando a configuração de Depuração)
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "project.dll"]

O codigo abaixo pertence ao docker-compose, atualize o seu conforme necessidade.

services:
  project:
    environment:
      - ASPNETCORE_ENVIRONMENT=Development
      - ASPNETCORE_HTTP_PORTS=3000
      - ASPNETCORE_HTTPS_PORTS=3001
    container_name: project
    image: ${DOCKER_REGISTRY-}project
    build:
      context: .
      dockerfile: project/Dockerfile   
    ports:
      - "3000:3000"
      - "3001:3001"
    volumes:
      - ${APPDATA}/Microsoft/UserSecrets:/home/app/.microsoft/usersecrets:ro
      - ${APPDATA}/ASP.NET/Https:/home/app/.aspnet/https:ro
    networks:
      - compose-bridge
    depends_on:
      sqlserver:
        condition: service_healthy

  sqlserver:
    image: mcr.microsoft.com/mssql/server:2022-preview-ubuntu-22.04
    container_name: sqlserver    
    ports:
      - "1433:1433"
    environment:
      - SA_PASSWORD=passwork 'não pode ser uma senha fraca, sql nao funciona. nada de usar 123456 hehehehe'
      - ACCEPT_EULA= Y       
    volumes:
      - ./sqlserver/data:/var/opt/mssql/data
      - ./sqlserver/log:/var/opt/mssql/log   
    networks:
      - compose-bridge 
    healthcheck:
      test: /opt/mssql-tools/bin/sqlcmd -S localhost -U SA -P "leoQueres123" -Q "SELECT 1" -b -o /dev/null
      interval: 10s
      timeout: 3s
      retries: 10
      start_period: 10s  

volumes: 
  sqlserver:

networks:
  compose-bridge:
    driver: bridge
  

Espero ter ajudado.

Reasons:
  • Blacklisted phrase (2): Espero
  • Blacklisted phrase (1): enter image description here
  • Blacklisted phrase (1): está
  • Blacklisted phrase (1): não
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Leonardo Queres

79159843

Date: 2024-11-05 16:06:18
Score: 2.5
Natty:
Report link

I've just seen this post. You've probably resolved it since then, but the root cause of the error you are facing is that support for M365 mailboxes was not added until the 9.1.7 release of Datacap.

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

79159841

Date: 2024-11-05 16:06:18
Score: 3
Natty:
Report link

Late to the party, but if you are using facet_wrap, just make sure to set scales = "free", and it will show each axes on every facet.

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

79159828

Date: 2024-11-05 16:02:17
Score: 0.5
Natty:
Report link
rpi ~$ cat /etc/apt/sources.list
deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi

rpi ~$ cat /etc/apt/sources.list.d/raspi.list
deb http://archive.raspberrypi.org/debian/ buster main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.org/debian/ buster main 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Khalid Nisar

79159812

Date: 2024-11-05 15:57:16
Score: 2
Natty:
Report link

Normally this happens when there is a mismatch between your variables or the result you are returning. Make sure the variables and the result being returned are the same with the query 100%.

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

79159810

Date: 2024-11-05 15:57:16
Score: 0.5
Natty:
Report link

liquid and Newtonsoft don't support JSON Schema Draft 2020-12 which is what OpenAPI 3.1 is based upon.

If you want another solid .Net package, you can try https://www.nuget.org/packages/JsonSchema.Net.OpenApi

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

79159804

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

can you solve your problem? I have problem like your problem!

0:00:11.659570863 486226      0x5ececc0 ERROR        rtpjitterbuffer gstrtpjitterbuffer.c:1401:gst_jitter_buffer_sink_parse_caps:<jitterbuffer> Got caps with wrong payload type (got 127, expected 101)
Reasons:
  • RegEx Blacklisted phrase (1.5): solve your problem?
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): can you solve you
  • Low reputation (1):
Posted by: hassan rahimi

79159801

Date: 2024-11-05 15:53:15
Score: 1.5
Natty:
Report link

Set Cookies on the Server:

Set cookies from your Express API in the backend rather than directly in the frontend. This approach helps keep sensitive data more secure and avoids potential issues with client-side manipulation. When a user logs in, you can create a session token (like a JWT or a session ID) and set it as an HTTP-only cookie. HTTP-only cookies are not accessible from JavaScript, so they provide an additional layer of security.

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

79159798

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

I needed to do something similar in order to find the most uniform way to split lines with the added wrinkle that invisible markup tags may be present.

This problem ended up being more interesting to solve than I initially thought. I used recursion to create possible layouts around word boundaries. Then sort the layouts to find the best one.

The returned result is not justified, but will straight forward to justify the text using this result as it provides the optimal starting point given the defined line length/ line count criteria.

Here is the c# code.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Contains signature (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: dynamicbutter

79159797

Date: 2024-11-05 15:52:15
Score: 1
Natty:
Report link

So I was able to finally find the issue. I was debating if I should delete my question but maybe somebody else has a similar issue in the future.

So my services (Telemetry and Customer) are running in a Kubernetes cluster. The issue was that Telemetry's "GET" request was going through another resource. So the request that the Customer received had the Parent Spand ID from that in-between service. I reconfigured the communication to happen directly between the services and now I get the results I expected.

In the end, it was a networking miss-configuration, not an Open Telemetry miss-configuration.

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

79159780

Date: 2024-11-05 15:44:10
Score: 6.5 🚩
Natty: 4.5
Report link

I don't see an answer to the original question. I want to use FFMPEG to rewrap .dv files into DV wrapped MOV via -c copy but FFMPEG doesn't automatically write the CLAP atom. That results in the production aperture being displayed. Is there a way to manually specify that FFMPEG insert a clap atom?

Reasons:
  • Blacklisted phrase (1): Is there a way
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kevin

79159777

Date: 2024-11-05 15:43:10
Score: 1.5
Natty:
Report link

If you're having trouble with RTL TextInput:

inputexample: {
 writingDirection: "rtl"
}

Found this style prop after hours of searching the internet

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

79159776

Date: 2024-11-05 15:43:10
Score: 1
Natty:
Report link

This is what works for me:

RendererManager rendererManager = ComponentAccessor.getComponent(RendererManager.class);
JiraRendererPlugin renderer = rendererManager.getRendererForType("atlassian-wiki-renderer");
String output = renderer.render(issue.getDescription(), issue.getIssueRenderContext());

Source: How to convert JIRA wiki markup to HTML programmly using Atlassian native API?

Reasons:
  • Whitelisted phrase (-1): works for me
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-1):
Posted by: Robert

79159771

Date: 2024-11-05 15:40:09
Score: 3.5
Natty:
Report link

I ran into this error, there was a library deleted that the editor was still looking for. Delete the library from your AppScript and it should be resolved

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Solved Error Code Not_Found

79159769

Date: 2024-11-05 15:40:09
Score: 1
Natty:
Report link

If, when running this tool, you get this error:

msys-1.0.dll: skipped because wrong machine type.

To fix "wrong machine type":

The error appears when using the 64-bit version of rebase.exe Use the 32-bit version of rebase.exe

source: https://www.qnx.com/support/knowledgebase.html?id=5011O000001OLXD

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

79159765

Date: 2024-11-05 15:39:09
Score: 1.5
Natty:
Report link

Which qmlls version do you use?

The Qt vscode extension doesn't start as default if the qmlls version is lower than 6.7.2 because qmlls before 6.7.2 is unstable. Using qt-qml.qmlls.customExePath might not help in that case. Please feel free to open a bug report here if it is newer than 6.7.2

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Orkun Tokdemir

79159764

Date: 2024-11-05 15:38:08
Score: 3
Natty:
Report link

You need to request location permissions from the OS for you app bb

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

79159763

Date: 2024-11-05 15:38:08
Score: 3.5
Natty:
Report link

Just found Microsoft Azure storage explorer

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

79159759

Date: 2024-11-05 15:37:08
Score: 3
Natty:
Report link

Try using an https URL. It should work, tried at my end it is working.

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

79159752

Date: 2024-11-05 15:36:07
Score: 3
Natty:
Report link

We have a question regarding an issue we're facing, which we believe may be related to your suggestion.

We're building a service that uses a custom JAR we created, but we're encountering an "artifact not found" error. Upon investigation, we noticed that our JAR includes the META-INF/maven folder.

Do you think excluding the META-INF/maven folder could resolve this issue, and would it be safe to do so?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: vigneshwar reddy

79159751

Date: 2024-11-05 15:36:07
Score: 2
Natty:
Report link

I had a tricky problem here. I used a view instead of a table and the view has been not updated to include that column!

First in the view definition then in the apex sql that defines the view to be used as a data source of the interactive grid.

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

79159748

Date: 2024-11-05 15:35:07
Score: 0.5
Natty:
Report link

I had a similar error in a code that worked in 2023 and does not work anymore in 2024. The problem was solved by replacing : encoded_model = Model(inputs=NN_model.input,outputs=NN_model.layers[0].output) by encoded_model = Model(inputs=NN_model.layers[0].input,outputs=NN_model.layers[0].output) or by encoded_model = Model(inputs=NN_model.inputs,outputs=NN_model.layers[0].output) I hope this helps solving your problem.

Reasons:
  • Whitelisted phrase (-1): hope this helps
  • No code block (0.5):
  • Low reputation (1):
Posted by: omar al hammal

79159746

Date: 2024-11-05 15:35:07
Score: 3
Natty:
Report link

In Visual Studio Code settings, Find Terminal|Integrated: Send Keybindings to Shell and check it.

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

79159742

Date: 2024-11-05 15:35:07
Score: 0.5
Natty:
Report link

To clone an instance in AWS, you can follow these general steps:

  1. Create an AMI (Amazon Machine Image) from the source instance:

    • In the EC2 console, select the instance you want to clone
    • Right-click and choose "Image and templates" > "Create image"
    • Provide a name and description for the AMI
    • Configure any additional settings if needed
    • Click "Create image"
  2. Wait for the AMI creation process to complete. This may take several minutes.

  3. Once the AMI is ready, launch a new instance using this AMI:

    • Go to the AMIs section in the EC2 console
    • Select your newly created AMI
    • Click "Launch instance from AMI"
  4. Configure the new instance:

    • Choose the instance type
    • Configure instance details (VPC, subnet, etc.)
    • Add storage if needed
    • Configure security groups
    • Review and launch
  5. Select or create a key pair for the new instance

  6. Launch the instance

This process creates a new instance that is essentially a clone of the original, with the same installed software and configurations as of the time the AMI was created.

Remember:

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

79159738

Date: 2024-11-05 15:34:06
Score: 2
Natty:
Report link

There currently does not seem to be an advanced way to gain insights in why a build takes long.

Enabling the timestamps in the output window gave me enough insight to resolve the issue, which is enabled by clicking the icon on the right in the output window:

enter image description here

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

79159734

Date: 2024-11-05 15:32:05
Score: 5
Natty: 7
Report link

I know this is an old post, but I needed an answer as well and found it here:

https://www.precedence.co.uk/wiki/Support-KB-Windows/ProfileStates

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28147098

79159731

Date: 2024-11-05 15:32:05
Score: 0.5
Natty:
Report link

I have resolved the issue with rate limiting for POST requests in my Spring Cloud Gateway application. The problem was that rate limiting requires an identifier for the entity accessing the gateway. For authenticated requests, this identifier is provided automatically. However, for POST requests without authentication, the gateway lacks this identifier and consequently blocks the requests.

Implement Custom KeyResolver

@Bean
public KeyResolver userKeyResolver() {
    return exchange -> Mono.just(exchange.getRequest().getRemoteAddress().getAddress().getHostAddress());
}

Then specify the KeyResolver in your configuration:

spring:
  cloud:
    gateway:
      default-filters:
        - TokenRelay=
        - name: RequestRateLimiter
          args:
            key-resolver: "#{@userKeyResolver}"
            redis-rate-limiter.replenishRate: 1
            redis-rate-limiter.burstCapacity: 1
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: White space

79159710

Date: 2024-11-05 15:25:03
Score: 0.5
Natty:
Report link

I found someone who helped me understand.

This was his explanation: The main thread that updates the UI needs to have some sort of "break" where it is able to update the UI. In my case the first two status updates invoking the Event were able to update the UI because immediately after them was an "await" that, once completed, provided the "break" that the main thread needed to update the UI, but all of my invocations of the event after that didn't have any "break" for the UI thread to update. I guess that when an async Task completes it interjects into the main thread letting it know it's done and that the main thread may need to do something now and that provides the opportunity to process the StateHasChanged() call.

So while I don't know if this is the best solution I was able to get my case working by making my OnStatusUpdated method async and slipping in an await immediately after invoking the event that updates the UI.

protected virtual async Task OnStatusUpdated(string statusText)
{
  StatusUpdated?.Invoke(this, statusText);
  await Task.Delay(1);
}
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: HairyIce

79159707

Date: 2024-11-05 15:24:03
Score: 1
Natty:
Report link

My post was answered in the Mongo DB Community Forum.

https://www.mongodb.com/community/forums/t/atlas-search-across-enbedded-document-and-root-document-fields-using-compound-must/303015

Palyground with solved solution

https://search-playground.mongodb.com/tools/code-playground/snapshots/672a21d77816de283aa55341

This issue was solved by using the below search aggregation

Search

[
  {
    "$search": {
      "index": "default",
      "compound": {
        "must": [
          {
            "text": {
              "query": "big",
              "path": {
                "wildcard": "*"
              }
            }
          },
          {
            "text": {
              "query": "piano",
              "path": {
                "wildcard": "*"
              }
            }
          }
        ]
      }
    }
  }
]
Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: O'Neil Tomlinson

79159704

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

Posting this as an answer as I don't have enough rep to comment.

If you are only interested in the local client manually leaving a Lobby, then you could just toggle a local flag before doing so. If a Client disconnects from a Lobby, but doesn't have this flag enabled, it means they got kicked out.

If you are instead interested in warning the Lobby host that a Client left manually, then you could first send an RPC from the Client to the Host, informing them before leaving. Manual disconnects are simpler to handle because you can write your code in a way that makes the disconnection process happen only after your own checks.

As for the LobbyDeleted event not firing, are you calling SubscribeToLobbyEventsAsync() first? The docs don't mention this, but maybe only the Host can receive a LobbyDeleted event?

There's also a KickedFromLobby event that you could try and use.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Marco Vincenzi

79159701

Date: 2024-11-05 15:21:02
Score: 0.5
Natty:
Report link

I found that Odoo loads the core module, consider the field as required, it detect some records has no value then fill with the default value. This happens before my custom module is loaded, so nothing I can do, except monkeypatching.

I put this code on my custom module,

from odoo.addons.project.models.project import Project
Project.company_id.required = False

it gets loaded on python code compilation, so it does take effect when loading the core module

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Alesis Joan

79159692

Date: 2024-11-05 15:19:01
Score: 2
Natty:
Report link

Modify the HOME constant:

public const HOME = '/new_path';

Make sure you have a route defined for the new home path in your routes/web.php

Route::get('/new_path', [ExampleController::class, 'exampleMethod'])->name('new_path');

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

79159689

Date: 2024-11-05 15:19:01
Score: 1
Natty:
Report link

Assure that all remote branches are visible locally by using the command:

git fetch origin

Then to create a local branch that tracks the remote feature branch use the command:

git checkout -b <local-feature-branch> origin/<remote-feature-branch>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nikol Stoyanova

79159686

Date: 2024-11-05 15:18:01
Score: 4
Natty:
Report link

HTMLSelectElement.selectedIndex = 0;

Link

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (1):
Posted by: Roma Ш.

79159680

Date: 2024-11-05 15:16:00
Score: 0.5
Natty:
Report link

I have created a silly workaround to run and build the docker image inside the docker compose, I used maven so you can replace accordingly with gradle, the concept is not complete but actually might show a way how to use just docker compose up to also build your image in behind via anything (docker in docker :-))

  context: ../MyService
  dockerfile_inline: |
    FROM ubi9:latest
    ENV DOCKER_HOST=tcp://127.0.0.1:2375
    RUN yum install -y yum-utils
    RUN yum-config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
    RUN yum install docker-ce-cli -y
    COPY . .
    RUN --mount=type=cache,target=/root/.m2/repository mvn compile jib:dockerBuild
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: morapet

79159677

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

E is just a linear function can be auto parametrised so Need not to worry about it . you can also use Belu from PyTorch

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

79159676

Date: 2024-11-05 15:13:59
Score: 5
Natty:
Report link

I am able to invoke and successfully trigger the LaunchRequest. However, after each user enters the PIN, I am receiving an error message. Instead of routing to the intended handler, the skill is going to InvocationIntent and SessionEndedRequest, and it is not reaching the SessionHandler as expected. How can I resolve this issue? The same skill and code are currently working in production, but they are not functioning in the development or test environment

{ "type": "SessionEndedRequest", "requestId": "amzn1.echo-api.request.37d31b46-c395-4767-a89f-474425078c38", "timestamp": "2024-11-05T15:00:47Z", "locale": "en-IN", "reason": "ERROR", "error": { "type": "INTERNAL_SERVICE_ERROR", "message": "Can't find skill bundle metadata for skillId amzn1.ask.skill.7c737edc-529e-4ad0-83dd-b9057b5b1bb9 locale en-IN stage development" } }

Reasons:
  • Blacklisted phrase (0.5): How can I
  • RegEx Blacklisted phrase (1.5): How can I resolve this issue?
  • RegEx Blacklisted phrase (1): I am receiving an error
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user28146775

79159674

Date: 2024-11-05 15:13:59
Score: 3
Natty:
Report link

git clone is the command which can be used to complete copy of repository from git hub to your server.

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

79159672

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

Your understanding of alias is correct. It looks like it's comes from the ” character instead of "

alias composer=”php /usr/local/bin/composer/composer.phar”

this is why you got

zsh: command not found: ”php

and not

zsh: command not found: php

Maybe try like this:

alias composer="php /usr/local/bin/composer/composer.phar"

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

79159666

Date: 2024-11-05 15:11:58
Score: 1.5
Natty:
Report link

To remove a specific row from a TableLayoutPanel is as simple as this:

tableLayout.RowStyles.RemoveAt(1);

RemoveAt removes a row based on the index.

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

79159665

Date: 2024-11-05 15:10:58
Score: 1
Natty:
Report link

For me the solution was to go to the Visual Studio Installer, select Modify for Visual Studio 2022, go to Individual Components, select and install the .NET SDK.

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

79159663

Date: 2024-11-05 15:10:58
Score: 1
Natty:
Report link

curses is part of the stdlib. It should be installed by default when you install a Python3 version on Linux https://docs.python.org/3/library/curses.html

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

79159655

Date: 2024-11-05 15:08:57
Score: 4
Natty:
Report link

I had been looking on an Enterprise Account, but these entitlements are only available on App Store accounts:

Developer Portal - AppStore Account

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

79159651

Date: 2024-11-05 15:08:57
Score: 0.5
Natty:
Report link

Adding another example and full implementation based on the answer above by @hctahkram !

upstream-job

pipeline {
  agent any
  stages {
    stage("Trigger downstream job") {
      steps {
        script {
          buildResult = build(job: "downstream-job", wait: true)
          env.A = buildResult.buildVariables.A
        }
        sh("echo $A")
      }
    }
  }
}

downstream-job

pipeline {
  agent any
  stages {
    stage("Define A") {
      steps {
        script {
          env.A = "aaa"
        }
        sh("echo $A")
      }
    }
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @hctahkram
  • Low reputation (0.5):
Posted by: maze