79313561

Date: 2024-12-28 10:04:58
Score: 2.5
Natty:
Report link

I still don't understand why the css_selector option is not working. As I agree with Jeremy Carney that a long XPATH is not an option I find this way:

driver.find_element(By.XPATH, '//[@name="username"]').send_keys("username") driver.find_element(By.XPATH, '//[@name="password"]').send_keys("password")

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

79313554

Date: 2024-12-28 10:00:57
Score: 0.5
Natty:
Report link

Try concave_hull.

You will have to tweak the ratio parameter. With my points I got the best result with 0.086.

import geopandas as gpd
df = gpd.read_file(r"C:\Users\bera\Desktop\gistest\building_points.shp")
ax = df.plot(figsize=(10,10), color="blue", zorder=1, markersize=4)

hull = df.dissolve().concave_hull(ratio=0.086)
hull.plot(ax=ax, zorder=0, color="orange")

enter image description here

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

79313548

Date: 2024-12-28 09:55:55
Score: 4.5
Natty: 4
Report link

McAfee for example is the reason

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

79313546

Date: 2024-12-28 09:55:55
Score: 1
Natty:
Report link

Based on the info kindly provided by @Mike, I was able to make this work again. There were several changes required, in case somebody else runs into the same problem.

Change the Map Tile URL

https://{1-4}.base.maps.ls.hereapi.com/$maptile/2.1/maptile/newest/$normal.day/{z}/{x}/{y}/256/png?apiKey=${YOUR_KEY}&lg=eng

must be changed change to

https://maps.hereapi.com/v3/base/mc/{z}/{x}/{y}/png?size=512&apiKey=${YOUR_KEY}&style=explore.day&lang=en

Add the TileSize Parameter When Constructing the Source

source: new ol.source.XYZ({
  tileSize: [512,512],
  url: `https://maps.hereapi.com/v3...
  ...

so OpenLayers knows that we use 512 pixel tiles.

Old Keys and New Keys

API keys created by users years ago still work fine with the new API versions. But new keys acquired recently only work with the latest API versions.

Restrictions

The amount of free daily requests has been reduced significantly for new keys. Even when you are only testing things, you'll run into the 'too many requests' error quite quickly now. Adding a credit card or Paypal to your account will increase the amount of free daily requests again to a usable level.

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

79313544

Date: 2024-12-28 09:53:55
Score: 2.5
Natty:
Report link

All thanks to Kelvin for saving my life. I got my PROGRAMMED ATM CARD to withdraw the maximum of $5,000 daily for a maximum of 30 days via ([email protected]). I am so happy about this because I have used it to get $150,000 to pay all my bills and buy some bitcoins. He can also help you recover all stolen Crypto currencies and funds from scammers. Contacting him now for a financial solution. email : [email protected]

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

79313538

Date: 2024-12-28 09:50:54
Score: 2
Natty:
Report link

In order to use the JobQueue, you'll have to install PTB with an optional dependency:

pip install "python-telegram-bot[job-queue]"

See also the readmes section on dependencies in PTB.

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

79313516

Date: 2024-12-28 09:35:51
Score: 1.5
Natty:
Report link

You can always run the docker using sh

sh''' 
    //your docker command here
'''
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Saurabh Gupta

79313514

Date: 2024-12-28 09:33:51
Score: 1.5
Natty:
Report link

The second parameter of the FAISS.from_embeddings is an Embeddings object that is in charge of the embedding. If you want to use your own function, you could wrap it inside a class inheriting from the Embbedings abstract class (cf. this page and the linked source code)

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

79313512

Date: 2024-12-28 09:30:50
Score: 2.5
Natty:
Report link

I have resolved this issue by updating all the NuGet packages to the latest stable version 9 and cleaning and rebuilding my project. But unfortunately, whenever I use scaffolding I face some issues.

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

79313506

Date: 2024-12-28 09:22:48
Score: 2.5
Natty:
Report link

I was using node version 22 and npm version 10. Where the project I was running npm install in, expected me to run on node 12 and npm 6. So downgrading versions might help.

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

79313503

Date: 2024-12-28 09:20:47
Score: 11 🚩
Natty: 5.5
Report link

I have the same issue.how to fix it?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (1.5): how to fix it?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: David

79313497

Date: 2024-12-28 09:14:45
Score: 0.5
Natty:
Report link

I can propose you this formula:

enter image description here

[G2]=MIN([@[duration (weeks)]]*7,MAX(0,DATE(2026,1,1)-[@[start date]]))/7*[@[weekly cost]]
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: rotabor

79313492

Date: 2024-12-28 09:09:44
Score: 6.5
Natty: 8
Report link

where to find unity activity??

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): where to find
  • Low reputation (1):
Posted by: Game Guru

79313489

Date: 2024-12-28 09:04:42
Score: 7.5 🚩
Natty: 6
Report link

any one please told me this question has solve? if this true, can you tell me what i can do this, i have trobble with same issuse.

Reasons:
  • RegEx Blacklisted phrase (2.5): can you tell me what
  • RegEx Blacklisted phrase (1.5): solve?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tô Đức Thắng

79313488

Date: 2024-12-28 09:03:41
Score: 4.5
Natty:
Report link

Well it's a bit late, but for someone who might have the same issue, like me today, if you are using VirtualStudio Code

  1. Go to source control page (on the left side of the screen) explanation
  2. Next to the refresh icon, you have 3 dots, click on that icon with the tree dots explanation
  3. You'll find every option of GitHub explanation
  4. The go to commit, and find the action named "undo last commit" explanation
Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Low reputation (0.5):
Posted by: Gustavo Da Costa Pereira

79313480

Date: 2024-12-28 08:57:39
Score: 1
Natty:
Report link

In my case, i only install react@19, react-dom@19, @types/react@19 and @types/react-dom@19

npm i react@19 react-dom@19 @types/react@19 @types/react-dom@19

and That it's.

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

79313476

Date: 2024-12-28 08:54:38
Score: 0.5
Natty:
Report link

In case the Intervention model is only used to facilitate creating many Uploads (with one uploaded file each) at one time, there is a simpler way without an intermediate model.

My Document model has has_one_attached :file. I want to create multiple documents with one form which uploads multiple attachments. The controller specifies an array parameter without a corresponding db field:

params.require(:document).permit(..., multiple_files: [])

Note that this array parameter has to be the last item in the strong param list, otherwise you get syntax error.

The new-document form has f.file_field(:multiple_files, multiple: true).

The Documents#create action has:

def create
  params[:document][:multiple_files].each do |upload|
    next unless upload.present?

    @document = Document.new
    @document.file.attach(upload)
    # check for errors
    @document.valid?
    flash.now[:danger] = @document.errors.full_messages
    # save, etc.
  end
end
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Jussi Hirvi

79313463

Date: 2024-12-28 08:42:36
Score: 2
Natty:
Report link

SELECT "key" , AVG(bal) FROM ( SELECT "key" , bal , ROW_NUMBER() OVER (PARTITION BY "key" ORDER BY bal ASC) AS rowasc , ROW_NUMBER() OVER (PARTITION BY "key" ORDER BY bal DESC) AS rowdesc FROM tab1 ) x WHERE RowAsc IN (RowDesc, RowDesc - 1, RowDesc + 1) GROUP BY "key" ORDER BY "key" ;

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Muhammad Abdul Rozak

79313458

Date: 2024-12-28 08:38:35
Score: 2.5
Natty:
Report link

there was a network issue between the two nodes, but after fixing the issue of the network between the two nodes, the driver appeared and now i can use it.

i don't know if that is true or not, but i think the failover cluster was reserving the disk as a resource for the cluster.

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

79313457

Date: 2024-12-28 08:38:35
Score: 4.5
Natty:
Report link

https://github.com/MystenLabs/sui/blob/8d0699ebee3bd6452e5f09084c9da85cd2e10adf/crates/sui-framework/packages/sui-framework/sources/transfer.move#L80 They said: Needing for object and function in the same module (transfer::share_object)

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

79313449

Date: 2024-12-28 08:35:34
Score: 0.5
Natty:
Report link

Used tricky way, just paste the HTML using below functions, and it's working.

public void SetClipboardHtml(string htmlContent)
{
    string preamble = "Version:0.9\r\n";
    string htmlStart = "<html><body><!--StartFragment-->";
    string htmlEnd = "<!--EndFragment--></body></html>";

    string fullHtml = htmlStart + htmlContent + htmlEnd;

    int startHtml = preamble.Length;
    int startFragment = startHtml + htmlStart.Length;
    int endFragment = startFragment + htmlContent.Length;
    int endHtml = endFragment + htmlEnd.Length;

    string clipboardFormat = $"{preamble}" +
        $"StartHTML:{startHtml:D8}\r\n" +
        $"EndHTML:{endHtml:D8}\r\n" +
        $"StartFragment:{startFragment:D8}\r\n" +
        $"EndFragment:{endFragment:D8}\r\n" +
        $"{fullHtml}";
    Clipboard.Clear();
    Clipboard.SetText(clipboardFormat, TextDataFormat.Html);
}

if (selection != null)
{
    SetClipboardHtml(signature);
    selection.Paste();
    return "NOTREQUIRED";
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ramakrishnan Ramar

79313447

Date: 2024-12-28 08:34:34
Score: 1.5
Natty:
Report link

if you are using WHM, to fix this

1: Change the quota for your cpanel you are trying to access to a bigger size or unlimited 2: Restart your server

This error is likely a quota problem

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

79313444

Date: 2024-12-28 08:32:33
Score: 0.5
Natty:
Report link

Related answer here, which says such mutability is not possible.

In ASP truth values do not change over time, either atoms are true or false for a specific answer set, they can not be overwritten.

So here's the solution I went with, using a #max directive:

roomCost(0).
finalroomCost(W) :- roomCost(0), #max {X, 1 : roomCost(X)} = W.
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Kaushik Narayan

79313436

Date: 2024-12-28 08:23:31
Score: 3
Natty:
Report link

Camera did not have correct date set, and windows Properties only shows that incorrect date and the date transferred that the video was copied onto the computer. In this Scenario there is no way to know the actual recorded date by use of any software!

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

79313434

Date: 2024-12-28 08:22:31
Score: 2
Natty:
Report link

Just need to drag and drop video .mp4 in your .md file File size less than 10 MB

Then you have video like this Github Repo - https://github.com/harimoradiya/Photomatch

I think it's a simple way to do

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

79313433

Date: 2024-12-28 08:19:30
Score: 1.5
Natty:
Report link

This error usually occurs when a package is added while the Flutter application is running on the emulator. Hot reload or hot restart does not allow the package to be added to the application, so the application must be completely terminated and restarted.

The solution steps I will suggest

Completely terminate and restart the application

Before restart the app , do this two steps flutter clean -> flutter pub get

https://pub.dev/packages/flutter_secure_storage make sure you are doing right the installation of package

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

79313429

Date: 2024-12-28 08:13:29
Score: 2
Natty:
Report link

According to @Drew suggestion save-match-data give an all new match-data just as I wanted:

foo-bar-baz

(progn
  (save-match-data
    (goto-char (point-min))
    (re-search-forward "^foo-\\(.*\\)-baz" nil t)
    (message "step 1: %S" (match-string-no-properties 1))) 
;; => step 1 : "bar"

  (save-match-data
    (goto-char (point-min))
    (re-search-forward "^baz-\\(.*\\)-foo" nil t)
    (message "step 2: %S" (match-string-no-properties 1))) 
;; => step 2: no nil
  )
Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Drew
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Thomas Labbé

79313426

Date: 2024-12-28 08:12:29
Score: 2.5
Natty:
Report link

I got this error. And after a few hours of struggle to find the answer, I realised that I didn't provide password for the db in application.properties.

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

79313419

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

I tried to solve this problem by:

S1: Create a custom validator @IsDeliveryCodeValid() to verify the delivery_code and add the needAddress value to the DTO

S2: Use @ValidateIf() to check whether the address needs to be validated based on the needAddress value or not

is-delivery-code-valid.validator.ts

import {
  ValidatorConstraint,
  ValidatorConstraintInterface,
  ValidationArguments,
  registerDecorator,
  ValidationOptions,
} from 'class-validator';
import { Injectable } from '@nestjs/common';
import { DeliveryService } from './delivery.service';

@ValidatorConstraint({ async: true })
@Injectable()
export class IsDeliveryCodeValidConstraint
  implements ValidatorConstraintInterface
{
  constructor(private readonly deliveryService: DeliveryService) {}

  async validate(code: string, args: ValidationArguments): Promise<boolean> {
    const dto = args.object as any;
    const deliveryType = await this.deliveryService.getDeliveryTypeByCode(code);
    if (deliveryType) {
      dto.needAddress = deliveryType.needAddress;
      return true;
    }
    return false;
  }

  defaultMessage(): string {
    return 'Invalid delivery code!';
  }
}

export function IsDeliveryCodeValid(validationOptions?: ValidationOptions) {
  return function (object: Object, propertyName: string) {
    registerDecorator({
      target: object.constructor,
      propertyName,
      options: validationOptions,
      constraints: [],
      validator: IsDeliveryCodeValidConstraint,
    });
  };
}

create-order.dto.ts

import {
  ValidateIf,
  ValidateNested,
  IsNotEmptyObject,
} from 'class-validator';
import { Type } from 'class-transformer';
import { CreateOrderAddressDTO } from './create-order-address.dto';
import { IsDeliveryCodeValid } from './is-delivery-code-valid.validator';

export class CreateOrderDTO {
  @IsDeliveryCodeValid({ message: 'Invalid delivery code' })
  delivery_code: string;

  @ValidateIf((o) => o.needAddress) 
  @IsNotEmptyObject({ message: 'Address is required' })
  @ValidateNested()
  @Type(() => CreateOrderAddressDTO)
  address: CreateOrderAddressDTO;

  needAddress?: boolean; // This field is dynamically attached by IsDeliveryCodeValid validator
}

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @IsDeliveryCodeValid
  • User mentioned (0): @ValidateIf
  • Low reputation (1):
Posted by: Cười Cười

79313418

Date: 2024-12-28 08:05:27
Score: 1
Natty:
Report link

It comes down to what the content of the generated files is. Are they ephemeral files that are only relevant to your current environment? If someone else on another machine pulls your repo, would they need the generated files to execute the code? Can the same generated files be recreated easily by executing a script or re running the application?

Version control is for tracking the history of changes in your source code. In general generated files should not be checked into VCS because there is no benefit to doing so and they can easily be regenerated.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Ali Raza

79313410

Date: 2024-12-28 07:57:26
Score: 2
Natty:
Report link

Check that you have internet permission if the image is in online, and readable permission if the image is stored in your device and then try again after giving this two permissions

In your manifest.xml

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 5D2 Hemanth

79313407

Date: 2024-12-28 07:54:25
Score: 1
Natty:
Report link

Since I don't have any reputation I wanted to reply about running the CLI worker without exposing endpoints, you can certainly do that.

I use pm2 to run multiple workers.

Notice in the worker.ts I use createApplicationContext and don't run app.listen(...)

worker.ts

import { NestFactory } from '@nestjs/core'
import { ConfigModule, ConfigService } from '@nestjs/config'
import { WorkersModule } from './services/queue/workers-email/workers.module'

async function bootstrap() {
    const app = await NestFactory.createApplicationContext(WorkersModule)
    const config = app.get(ConfigService)
    ConfigModule.forRoot({ isGlobal: true })

    app.useLogger(
        config.get<string>('NODE_ENV') === 'development'
            ? ['log', 'debug', 'error', 'verbose', 'warn']
            : ['log', 'error', 'warn'],
    )
}

bootstrap()

worker.module.ts

import { BullModule } from '@nestjs/bullmq'
import { Module } from '@nestjs/common'
import { ConfigModule, ConfigService } from '@nestjs/config'
import { redisFactory } from '../../../factories/redis.factory'
import { EmailProcessor } from './email.workers.processor'
import { EQueue } from '../../../entities/enum/job.enum'
import { TypeOrmModule } from '@nestjs/typeorm'
   
@Module({
    imports: [
        BullModule.forRootAsync({
            imports: [ConfigModule],
            useFactory: redisFactory,
            inject: [ConfigService],
        }),
        BullModule.registerQueueAsync({ name: 'queue-name' }),
    
    ],
    providers: [
        ConfigService,
        workerProcessor,
    ],
})
export class WorkersModule {}

workers.processor.ts

import { OnWorkerEvent, Processor, WorkerHost } from '@nestjs/bullmq'
import { Logger } from '@nestjs/common'
import { ConfigService } from '@nestjs/config'
import { Job } from 'bullmq'

@Processor('queue-name')
export class workerProcessor extends WorkerHost {
    private logger = new Logger('processor')

    constructor(private config: ConfigService) {
        super()
    }

    async process(job: Job<any, any, string>): Promise<any> {
        ... process here ...
    }

    @OnWorkerEvent('completed')
    onCompleted(job: Job<anu, any, string>) {
        this.logger.log(`Job ${job.id} ${job.name.toUpperCase()} Completed`)
    }

    @OnWorkerEvent('failed')
    onFailed(job: Job<any, any, string>) {
        this.logger.error(`Job ${job.id} ${job.name.toUpperCase()} Failed`)
    }


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

79313398

Date: 2024-12-28 07:38:22
Score: 0.5
Natty:
Report link

This involved cookie trasmitted between Curl and Node.js. You can use curl to complete the authorization and save the cookie to a file , then pass it to Node.js

Syntax like "curl -b from_nodejs_cookie -c to_nodejs_cookie"
Then load to_nodejs_cookie in your node.js code

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: liu alan

79313396

Date: 2024-12-28 07:35:21
Score: 1.5
Natty:
Report link

Make sure you have the email set correctly in git global config.

git config --global user.email "[email protected]"

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

79313392

Date: 2024-12-28 07:33:21
Score: 1
Natty:
Report link

If you want to keep the render mode as World Space, How about using a Stack camera- Overlay?

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

79313389

Date: 2024-12-28 07:29:20
Score: 3.5
Natty:
Report link

Thanks. I deleted the target folder and did maven clean compile. This solved the issue for me.

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

79313386

Date: 2024-12-28 07:25:18
Score: 5
Natty: 4
Report link

View [Finances.index] not found.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: abdirashid ahmed mohamed

79313379

Date: 2024-12-28 07:18:17
Score: 2
Natty:
Report link

It is likely that your Python version is different from the one suggested by Anaconda by default.

Update your Python version or select the version in Anaconda that matches the one installed locally on your computer.

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

79313377

Date: 2024-12-28 07:16:16
Score: 2.5
Natty:
Report link

Looking for a Delphi-Monitor-Api-Unit that let you play with Monitor Control ?

Have a look at my answer here >> Link To Answer

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Johan

79313376

Date: 2024-12-28 07:15:16
Score: 2
Natty:
Report link

Check that you turn on Tools > References > xlwings addin inside VBA. If you not turn on this addin - then RunPython dosnt work. enter image description here

enter image description here

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

79313375

Date: 2024-12-28 07:13:16
Score: 2
Natty:
Report link

When using -backend-config you supply the values of the keys for the partial configuration of the backend as described here.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When
  • Low reputation (0.5):
Posted by: Michael Logothetis

79313365

Date: 2024-12-28 07:10:15
Score: 0.5
Natty:
Report link

try out the c# code below below. it will get all resources in the RG and see if the resource is a cert. If it is a cert, you can invoke the DeleteAsync() to delete the cert. MSFT documentation here for AppCertificateResource. https://learn.microsoft.com/en-us/dotnet/api/azure.resourcemanager.appservice.appcertificateresource?view=azure-dotnet

using System;
using System.Threading.Tasks;
using Azure.Identity;
using Azure.ResourceManager;
using Azure.ResourceManager.Resources;
using Azure.Core;
using Azure.Security.KeyVault.Certificates;
using Azure.ResourceManager.AppService;

public class AzureResourceGroupExample
{
    public static async Task Main(string[] args)
    {
        string subscriptionId = "xxxx";
        string resourceGroupName = "rg-xxx";

        ArmClient armClient = new ArmClient(new DefaultAzureCredential());
        ResourceIdentifier subscriptionResourceId = new ResourceIdentifier($"/subscriptions/{subscriptionId}");
        SubscriptionResource subscription = armClient.GetSubscriptionResource(subscriptionResourceId);
        ResourceGroupResource _resourceGroupResource = await subscription.GetResourceGroupAsync(resourceGroupName);
        Console.WriteLine($"Resource group retrieved: {_resourceGroupResource.Data.Name}");

        await foreach (var resource in _resourceGroupResource.GetGenericResourcesAsync())
        {
            if (resource.Data.ResourceType == "Microsoft.Web/certificates")
            {
                var certificateResource = await _resourceGroupResource.GetAppCertificateAsync(resource.Data.Name);
                Console.WriteLine($"- Certificate Resource: {certificateResource.Value.Id}");
                // certificateResource.Value.DeleteAsync();
            }
            else
            {
                Console.WriteLine($"- Resource: {resource.Data.Name}, Type: {resource.Data.ResourceType}");
            }
        }

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

79313364

Date: 2024-12-28 07:09:15
Score: 2
Natty:
Report link

"I had the same issue, and then I noticed that these two libraries don't unzip automatically; we have to unzip them manually."

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

79313358

Date: 2024-12-28 07:03:14
Score: 3
Natty:
Report link

Put the api key to the head should works. Good luck.

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

79313351

Date: 2024-12-28 06:57:13
Score: 1.5
Natty:
Report link

I got this error when I disabled PMA while installing XAMPP. Try rerunning the installer & selecting "phpMyAdmin" or download phpMyAdmin and put it in C:/xampp/phpMyAdmin.

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

79313348

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

php-fpm and nginx need to be listening on different ports for starters, and then nginx's fastcgi_pass needs to point at the php-fpm port.

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

79313347

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

I have found a simple solution.

just add base: './', to the vite.config.ts. Now all assets are working fine!

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

79313342

Date: 2024-12-28 06:51:11
Score: 2.5
Natty:
Report link

cC CREDIT Loan App CuStoMeR Care Helpline Number))))91 (((7750998385(((/))) CallcC CREDIT Loan App CuStoMeR Care Helpline Number))))91 (((7750998385(((/))) Call dgdgah wwhhvbsg mthgd

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

79313322

Date: 2024-12-28 06:36:09
Score: 0.5
Natty:
Report link

Something like this, though not optimally elegant, nonetheless may work for your purposes:

library(highcharter)

df <- data.frame(
  County = c("Alcona", "Alger"),
  Column_B = c(15, 10),
  Column_C = c(8, 11),
  Column_D = c(26, 13)
)

hcmap(
  "countries/us/us-mi-all",
  data = df,
  value = "Column_B",
  joinBy = c("name", "County"),
  name = "Michigan Counties",
  dataLabels = list(enabled = TRUE, format = "{point.name}"),
  borderColor = "#FAFAFA",
  borderWidth = 0.1,
  tooltip = list(
    pointFormat = "{point.County}<br/>Column B: {point.value}%<br/>Column C: {point.Column_C}%<br/>Column D: {point.Column_D}%"
  )
)

Note that I have made a slight modification to your column names to sanitize them as valid column names (R does not like spaces). This produces the following map + tooltip: Michigan County Choropleth with Tooltip

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

79313320

Date: 2024-12-28 06:30:08
Score: 2
Natty:
Report link

I solved it by follow the exact answer from "Khribi Wessim".

Thank You

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Whitelisted phrase (-2): I solved
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: OscarJr

79313319

Date: 2024-12-28 06:29:07
Score: 0.5
Natty:
Report link

Ensure the .play() method is triggered within a user interaction event, such as a button click. Example:

javascript

// Preload the audio
var SOUND_SUCCESS = new Audio('success.mp3');

// Play audio on user interaction
document.getElementById('playButton').addEventListener('click', function () {
    SOUND_SUCCESS.play().catch(error => {
        console.error('Audio playback failed:', error);
    });
});

Additional Tips Check Audio Format: Use formats compatible with Safari (e.g., MP3 or AAC). Mute Option for Autoplay: If autoplay is needed, ensure the audio starts muted:

javascript

var audio = new Audio('success.mp3');
audio.muted = true;
audio.play(); // Autoplay works only if muted

Handle Errors Gracefully: Use .catch() on the .play() promise to debug issues. Why the Restriction? Apple enforces these rules to avoid intrusive behavior, conserve battery life, and manage data usage. Always design web apps with user control in mind.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Mohit Bhutaiya

79313317

Date: 2024-12-28 06:26:05
Score: 6.5 🚩
Natty:
Report link

can you provide all the code setting.py, view.py and urls.py

Reasons:
  • RegEx Blacklisted phrase (2.5): can you provide
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): can you
  • Low reputation (1):
Posted by: Charitra Shrestha

79313314

Date: 2024-12-28 06:21:04
Score: 3
Natty:
Report link

The black bar for gestures is part of the Android system UI and cannot be directly styled or removed by web technologies like HTML, CSS, or JavaScript. However, by transforming your PWA into a TWA, you'll have access to more options, and in particular you'll be able to specify this behavior.

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

79313312

Date: 2024-12-28 06:16:03
Score: 2.5
Natty:
Report link

I got the "Can't connect remotely using Remote-SSH: spawn UNKNOWN" error when I was using VS Code version 1.85.2. After upgrading VS Code to the latest version (1.96.2), the error resolved automatically.

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

79313307

Date: 2024-12-28 06:10:01
Score: 8
Natty: 8.5
Report link

thank you for sharing the script, it seems very useful for me. Can there be a way to use it on Windows, can you give me a hint, please?

Reasons:
  • Blacklisted phrase (0.5): thank you
  • RegEx Blacklisted phrase (2.5): can you give me
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sergey Novikov

79313306

Date: 2024-12-28 06:10:01
Score: 0.5
Natty:
Report link

This involves manually writing each sentence in key-value pairs and translating them, which will then be reflected in our system.

Yes. This is the default method to localize strings in applications. Some may use automatic translation for some parts of interface, but this can lead to inaccurate translations in some cases, depending on the quality of the translation to the requested language. Therefore, it's not a general method.

There are also platforms like Weblate where people can contribute to the localization of application strings.

For large applications like Facebook, Flipkart, and Amazon, is the process the same?

They usually do not disclose how they localize strings in their interfaces. As they have not introduced any other kind of tools or methods, we can infer that this is the case for them too.

To translate my application into multiple languages in a Blazor United Project and .NET 8, we need to use localization and resource files.

I recommend reading Blazor globalization and localization and Make an ASP.NET Core app's content localizable as they are the only resources you need to implement localization in Blazor.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Farzad M.

79313302

Date: 2024-12-28 06:05:00
Score: 0.5
Natty:
Report link

If you are using jupyter notebook online for example on google colab, then you need to specify the path within the to_csv parameters example:

df.to_csv('sample_data/myCSV.csv')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Peter Hassaballah

79313300

Date: 2024-12-28 06:05:00
Score: 2
Natty:
Report link

you can use online tool for this and select third option in Conflict Rule https://craftydev.tools/json-merger

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prawesh kumar

79313299

Date: 2024-12-28 06:05:00
Score: 1.5
Natty:
Report link

o get car VIN info using a Car API:

Choose an API: Use APIs like Carfax, AutoCheck, or a VIN decoding service (e.g., NHTSA, RapidAPI).

API Key: Register and get an API key.

Endpoint: Use the specific VIN decoding endpoint, e.g., GET /vin/{vin}.

Make Request: Send the VIN as a parameter in the API request.

Get Data: Parse the JSON/XML response for car details. more: https://www.bastcar.com/

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

79313298

Date: 2024-12-28 06:03:00
Score: 2.5
Natty:
Report link

yes, it is possible. See my test in the azure portal. the key call out is that the phi model are using ML under the hood. the endpoints are different to OpenAI model endpoints, it would be hosted in xxxxx.eastus2.inference.ml.azure.com/score

Use the pencil icon to select auth type: apikey is default, you can choose AADToken for oauth. there is a small delay in applying the auth type change enter image description here

Once set, the test tab will start to use oauth token. enter image description here

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

79313294

Date: 2024-12-28 05:57:59
Score: 3
Natty:
Report link

Unfortunatelly I can't find a simple solution for the same problem if there is new line (
) in the text. innerHTML does not work, as it parses the new line as a simple text.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Женско ДПС

79313292

Date: 2024-12-28 05:54:59
Score: 2
Natty:
Report link
a = 0
b = 1
while (a <= 8):
     c = a + b
     print(c)
     a = b
     b = c
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: devik ranka1710

79313286

Date: 2024-12-28 05:45:57
Score: 0.5
Natty:
Report link

To fix the Webpack build error caused by cssnano during CSS optimization, you can temporarily disable minimization.

Add this to your next.config.ts

webpack: (config) => {
config.optimization.minimize = false;
return config;
},

This resolved the issue for me, but it’s only a temporary fix.

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

79313284

Date: 2024-12-28 05:44:57
Score: 0.5
Natty:
Report link

To fix the Webpack build error caused by cssnano during CSS optimization, you can temporarily disable minimization.

Add this to your next.config.ts

webpack: (config) => {
config.optimization.minimize = false;
return config;
},

This resolved the issue for me, but it’s only a temporary fix.

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

79313279

Date: 2024-12-28 05:41:56
Score: 0.5
Natty:
Report link

To fix the Webpack build error caused by cssnano during CSS optimization, you can temporarily disable minimization:

webpack: (config) => {
config.optimization.minimize = false;
return config;
},

This resolved the issue for me, but it’s only a temporary fix.

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

79313278

Date: 2024-12-28 05:41:56
Score: 0.5
Natty:
Report link

To fix the Webpack build error caused by cssnano during CSS optimization, you can temporarily disable minimization.

Add this to your next.config.ts

webpack: (config) => {
config.optimization.minimize = false;
return config;
},

This resolved the issue for me, but it’s only a temporary fix.

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

79313277

Date: 2024-12-28 05:41:56
Score: 2.5
Natty:
Report link

tl;dr I needed to install the libpq5 library and libpq-dev packages.

I thought I followed the docs carefully and I double-checked, they didn't list those dependencies. I don't know where else I should be expected to look for an official list of dependencies.

The guys over at the Qt forum solved it for me and there is some useful information there.

https://forum.qt.io/topic/160169/can-t-load-sql-drivers-when-configuring-and-building-qt-6-8-1-from-source-on-linux-ubuntu-24-04-1?_=1735361925102

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

79313273

Date: 2024-12-28 05:39:55
Score: 1
Natty:
Report link

I couldn't figure out how to use selenium, so I just used regex on the page's source code. This gets everything I want asides from the odds.

from urllib import request
import re
import pandas as pd

response = request.urlopen("https://ai-goalie.com/index.html")
# set the correct charset below
page_source = response.read().decode('utf-8')

data_league = re.findall("(?<=data-league=\")[^\"]*", page_source)
data_home = re.findall("(?<=data-home=\")[^\"]*", page_source)
data_away = re.findall("(?<=data-away=\")[^\"]*", page_source)
data_time = re.findall("(?<=data-time=\")[^\"]*", page_source)
data_date = re.findall("(?<=data-date=\")[^\"]*", page_source)
certainty = re.findall("(?<=\"certainty\">)[^<]*", page_source)
probability = re.findall("\d+%(?=\n)", page_source)

df = pd.DataFrame({'league': data_league, 'home_team': data_away, 'away_team': data_away, 'time': data_time, 'date': data_date, 'certainty': certainty, 'probability': probability})
Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: blahahaaahahaa

79313271

Date: 2024-12-28 05:36:55
Score: 2.5
Natty:
Report link

A big difference is that LTRIM and RTRIM will remove Control characters that aren't visible while the TRIM function will not. The result is that hidden control characters will remain with the TRIM function and could potentially give you an improper mismatch of values.

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

79313269

Date: 2024-12-28 05:35:54
Score: 2
Natty:
Report link

Checked with Raft-Dev Community and yes its very possible to lost uncommitted writes.

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

79313260

Date: 2024-12-28 05:26:53
Score: 3
Natty:
Report link

You can take two USB-TTL converters and link them so they send data to each other, then connect both to PC.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Сергей Лунов

79313259

Date: 2024-12-28 05:25:53
Score: 1
Natty:
Report link

If you need to set some environment variables for all tasks of the project, then you could skip configuring tasks.json and use direnv. Using this tool to set project-specific environment variables is mentioned in Gradle for Java - Visual Studio Code.

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

79313258

Date: 2024-12-28 05:23:52
Score: 1.5
Natty:
Report link

Since this question comes up on the top for this search query, I am posting my answer here which MIGHT help someone.

I had DELETED the old app but its API key was still stored in the environment. I had to restart the shell to make it work.

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

79313254

Date: 2024-12-28 05:18:51
Score: 3.5
Natty:
Report link

Unfortunately this website is behind a password so I cannot share the url. However, the issue was simply a lack of timer before checking the element. There is no issue with the command asking for table length itself. I am sorry for the trouble everyone

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: lems

79313252

Date: 2024-12-28 05:18:51
Score: 1.5
Natty:
Report link

Hack Alert ⚠️

if you want latest update but your mac doesn't support it you can simply use opencore legacy patcher it's safe and open source. i am using it on a 10 years old MacBook and it's running fine but it's heating more than before which is obvious. give it a try.

https://github.com/dortania/OpenCore-Legacy-Patcher

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

79313249

Date: 2024-12-28 05:16:51
Score: 1
Natty:
Report link

If you're referring to IntelliSense and not just compile/link diagnostics, at this time, there's not much else to do other than wait. Be nice to the people working on implementation, and if you can help, do so.

If you're using cpptools (without CMake Tools)

Implementation of IntelliSense for C++ modules in cpptools is not complete yet. It's tracked by issue ticket Add IntelliSense for C++20 modules importing #6302. cpptools uses the EDG (Edison Design Group) compiler. EDG is still working on implementing support for C++ modules. Their progress can be found in this spreadsheet.

If you're using CMake Tools

I think it should work as long as your build is set up properly.

If you're using clangd

This is also in progress. It's tracked by issue ticket Modules support #1293.

Reasons:
  • RegEx Blacklisted phrase (3): you can help
  • Long answer (-0.5):
  • No code block (0.5):
  • High reputation (-2):
Posted by: starball

79313247

Date: 2024-12-28 05:11:50
Score: 1.5
Natty:
Report link

@stephen Thanks for your Reply

We have done successfully adding the JDK to the Ignite Image by following steps. Now able to take Thread dump and Heap dump

Following are the steps followed

  1. Download the binary from the official site of Apache Ignite Apache Link - Download
  2. Created a Docker File to build image with the following contents
     FROM openjdk:11
     ENV IGNITE_HOME=/opt/ignite/apache-ignite
     ENTRYPOINT ["/opt/ignite/apache-ignite/run.sh"]
     WORKDIR /opt/ignite
     COPY apache-ignite* apache-ignite 
     COPY run.sh /opt/ignite/apache-ignite/
     RUN chmod 777 -R /opt/ignite/apache-ignite
    
  1. Finally Able to Take Heap dump using jstack, jmap commands

Note: Cause : Apache Ignite Temurin Eclipse jdk RebuildVM information: OpenJDK Runtime Environment 11.0.21+9 Eclipse Adoptium OpenJDK 64-Bit Server VM 11.0.21+9
which didnt have those Heap/Thread Commands.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @stephen
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Karthik_Rajendiran

79313246

Date: 2024-12-28 05:10:50
Score: 0.5
Natty:
Report link

I got the same error and tried all the suggested things, but the issue was that I didn't include the Key Pair while initially creating an Instance, that's why the Key Pair I was using was not working to establish a connection. So, I created a new instance with the expected Key Pair, and right after that, I was able to connect it without any issues. I hope this helps anyone who will face this issue in future.

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

79313244

Date: 2024-12-28 05:08:49
Score: 3
Natty:
Report link

Open vscode, press ctrl+shift+p open user setting(json) set the "explorer.excludeGitIgnore" to false

"explorer.excludeGitIgnore": false

the above steps will solve the problem

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Rahul A Gowda

79313240

Date: 2024-12-28 05:04:48
Score: 5
Natty: 5
Report link

How do I handle pagebreaks, after conversion of html into canvas, and this has been cut according to the page size of pdf document which is A4 size. I want to make sure my content like text and images should not cut into 2 at page breaks

Reasons:
  • Blacklisted phrase (1): How do I
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How do I
  • Low reputation (1):
Posted by: Mohammad Vazeer Ali Khan

79313235

Date: 2024-12-28 05:00:47
Score: 2.5
Natty:
Report link

change fill="#000000" in <svg/> tag element

remove fill="..." in <path/>

config file .svgrrc

{
  "replaceAttrValues": {
    "#0000000": "{props.fill}",
  }
}

check github: https://github.com/kristerkari/react-native-svg-transformer/issues/105

Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Lê Mạnh Linh

79313229

Date: 2024-12-28 04:50:45
Score: 2
Natty:
Report link

I need to register user devices on server with an unique identifier that be a constant value and doesn't change in the future.

I can't find a good solution to get unique id from all devices (with/without simcard).

Secure.ANDROID_ID: Secure.ANDROID_ID is not unique and can be null or change on factory reset.

String m_androidId = Secure.getString(getContentResolver(), Secure.ANDROID_ID); IMEI: IMEI is dependent on the Simcard slot of the device, so it is not possible to get the IMEI for the devices that do not use Simcard.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kushal

79313222

Date: 2024-12-28 04:41:43
Score: 2.5
Natty:
Report link

The problem occured while I am using Streamlit I have tries to downgrade to protobuf but the upgrading protobuf saves me.

pip install --upgrade protobuf

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

79313218

Date: 2024-12-28 04:33:41
Score: 0.5
Natty:
Report link

After much headache, I figured out what the issue was for me. I was importing a library that we build ourselves, and that library had a different version for the @angular packages than the root project since we upgraded them both a few weeks apart. After ensuring the packages the two projects shared under were the same version (did so for non-angular packages), this error went away for me. When they were different versions, they didn't share the same context anymore, disallowing for proper injection.

Reasons:
  • Whitelisted phrase (-2): I figured out
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @angular
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rei El-Khouri

79313200

Date: 2024-12-28 04:11:37
Score: 1
Natty:
Report link

Try below query

WITH SalesData AS (
    SELECT
        product_type,
        geography,
        SUM(quantity_sold) AS total_sold
    FROM product_sales
    GROUP BY product_type, geography
),
RankedSales AS (
    SELECT
        product_type,
        geography,
        total_sold,
        ROW_NUMBER() OVER (PARTITION BY product_type ORDER BY total_sold DESC) AS rn
    FROM SalesData
)
SELECT
    product_type,
    geography,
    total_sold
FROM RankedSales
WHERE rn = 1
ORDER BY product_type;

db-fiddle

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

79313194

Date: 2024-12-28 04:05:35
Score: 0.5
Natty:
Report link

in my case, I was missing require in composer.json. I managed to resolve this issue by adding this line :

"require": { 
    ...
    "barryvdh/laravel-dompdf": "0.8.*"
    ... 
}

within require scope, and run composer update.

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

79313187

Date: 2024-12-28 03:52:33
Score: 4
Natty:
Report link

I wrote release of resources in atexit function and issue was resolved.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Александр Гордиенко

79313175

Date: 2024-12-28 03:36:30
Score: 2
Natty:
Report link

If you are using JPA repositories just add @Transactional(Transactional.TxType.REQUIRES_NEW) to "SELECT" methods from JpaRepository interface

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

79313170

Date: 2024-12-28 03:30:29
Score: 0.5
Natty:
Report link

The issue stems from how Google OAuth 2.0 handles refresh tokens based on the prompt parameter. Here's an explanation and solution based on the provided details:

Problem Analysis Refresh Token Behavior:

Localhost: By default, Google might issue a refresh token when running on localhost without requiring explicit user consent (due to testing or relaxed restrictions). Cloud (GCE): In a production environment with verified domains and SSL, Google adheres more strictly to consent policies, requiring explicit user consent to grant a refresh token. access_type and prompt Parameters:

The access_type="offline" ensures that a refresh token can be returned. The prompt="consent" forces the consent screen to appear, ensuring Google re-prompts the user for permission to grant a refresh token. Without prompt="consent", Google might skip re-prompting if the user has already authorized the app, potentially not issuing a refresh token. Why Changing to prompt="consent" Fixed the Issue:

The consent prompt ensures the user explicitly agrees to grant offline access again, which triggers the issuance of a refresh token even on your public server. Updated Code Here’s how you should structure your authorization URL generation:

python code

authorization_url, state = gcp.authorization_url( authorization_base_url, access_type="offline", # Request offline access for refresh tokens prompt="consent", # Force the consent screen to ensure refresh token is issued include_granted_scopes='true' # Allow incremental scope requests )

Key Considerations Prompt Behavior:

Use prompt="consent" sparingly in production to avoid annoying users with repeated consent screens. Once a refresh token is issued, you don’t need to request it again unless explicitly required. Secure Storage of Tokens:

Always securely store the refresh_token and access_token in a backend database or encrypted storage to prevent unauthorized access. Documentation Gaps:

The confusion arises because Google doesn’t explicitly state the interaction between access_type and prompt in their main documentation. Your discovery highlights this subtle dependency. Token Scopes:

Ensure that the scope you request matches the required permissions for your app. Incorrect or overly restrictive scopes might also prevent refresh token issuance. Why It’s Different Between Localhost and Cloud Google may treat localhost as a "development" or "test" environment, issuing refresh tokens without the need for prompt="consent". In a "production" environment (GCE with a verified domain and HTTPS), stricter adherence to OAuth 2.0 policies is enforced.

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

79313166

Date: 2024-12-28 03:20:26
Score: 6 🚩
Natty: 4
Report link

hi tried on google app script also got 403. do you have answer for this question? can share it if you solved it please.

Reasons:
  • RegEx Blacklisted phrase (2.5): do you have an
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: bejo sutejo

79313153

Date: 2024-12-28 03:11:24
Score: 0.5
Natty:
Report link

This error can occur when using Lockdown mode - as FileReader is not available.

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

79313152

Date: 2024-12-28 03:11:24
Score: 4.5
Natty:
Report link

What version of Apache you are using

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: swawge

79313149

Date: 2024-12-28 03:08:22
Score: 4.5
Natty: 5.5
Report link

Comigo resolveu atualizando todas as atualizações de extensões.

Reasons:
  • Blacklisted phrase (1): todas
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Renato Fazio

79313148

Date: 2024-12-28 03:08:22
Score: 2.5
Natty:
Report link

Add an index.html file so it will load when no html file is specified in the URL

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

79313144

Date: 2024-12-28 03:05:21
Score: 2
Natty:
Report link

Try to create a hitbox around the player box. This can be accomplished if you use a png image that is one pixel thick. And you place four of these pictures as hitbox around the player. And when there is a collision detected between the hitbox and the barrier, you can make the character stop moving. For example, if there is a collision of barrier with upper hitboxline and the player is still pressing the up key, it shouldn't do y-=speed. Hope that was helpful.

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

79313127

Date: 2024-12-28 02:53:20
Score: 1.5
Natty:
Report link

I was able to also reliably get my program to a state where the WiFi would only successfully connect on every other try.

On success, it would print: wifi:state: assoc -> run (0x10)

I knew it would fail when it printed: wifi:state: assoc -> init (0x2c0)

After I used idf.py to disable WiFi NVS flash (KCONFIG Name: ESP_WIFI_NVS_ENABLED), I was able to reconnect every time successfully.

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

79313104

Date: 2024-12-28 02:31:16
Score: 2.5
Natty:
Report link

I went to menu File > Invalidate Caches… to fix it.

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

79313097

Date: 2024-12-28 02:25:15
Score: 2.5
Natty:
Report link

You have 1 error: Image is not really a module that you can import, and python doesn't know what "Image" is.(unless you made your own module named image)

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

79313093

Date: 2024-12-28 02:21:14
Score: 1.5
Natty:
Report link

Adding the [Consumes("content-type")] defining the multipart/form-data as the content-type to your endpoint and removing the [FromBody] attribute from the mode parameter will fix this

[HttpPost]
[Consumes("multipart/form-data")]
public async Task<ActionResult> UploadRecipeImage(IFormFile front, IFormFile back, string mode)
{
    return Ok();
}

Related: How to set up a Web API controller for multipart/form-data

MS doc on Consumes: https://learn.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.mvc.consumesattribute?view=aspnetcore-9.0

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

79313092

Date: 2024-12-28 02:20:14
Score: 2.5
Natty:
Report link

You must use the IP addrewss of an active network interface on your machine and port 47808 must not be used already (like if YABE is on...)

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