79350394

Date: 2025-01-12 17:46:02
Score: 1
Natty:
Report link

I had same problem on aarch64. Based on Mark G comment I changed service configuration to

[Unit]
After=network-online.target
Wants=network-online.target
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Arci

79350393

Date: 2025-01-12 17:46:02
Score: 1
Natty:
Report link

Most keyloggers track what buttons you tap on the virtual or hardware keyboard. Others track where on your screen you are tapping. Others make screen recordings. There are a few things you can do to protect your users from the listed above keyloggers:

  1. Ensure your app doesn't allow screenshots/screen recordings.
  2. Make a custom keyboard - a grid with buttons.
  3. When a button is clicked, trigger a few random system inputs to create a misleading appearance, making it look as if the input is "encrypted." Only include the actual button pressed in the visible output, and make sure to remove the random inputs without prompting the keyboard's delete function.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: vasilishte

79350391

Date: 2025-01-12 17:46:02
Score: 0.5
Natty:
Report link

I am going to close this question, "not fully answered." I now see in the source-code references to now-outdated Django constructs such as render_to_response(). It is going to take some time to figure out exactly what this code is actually doing. Clearly, in its time, this package had quite a lot of "magick." (But, so far as I can now see, it has been abandoned.)

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Mike Robinson

79350388

Date: 2025-01-12 17:44:01
Score: 0.5
Natty:
Report link

You're using the VTL request_template and response_template variables.

Since you're using JS for the resolver, use the code variable instead.

Check the Example JS section here: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appsync_resolver#example-usage-js

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

79350387

Date: 2025-01-12 17:43:01
Score: 1
Natty:
Report link

Try and use wlr-randr for screen manipulation. If you've used xrandr before the syntax is very similar (although there are a few differences so it may be a bit more difficult than just changing the process name in any xrandr scripts you are using). For example

wlr-randr --output eDP-1 --mode 1920x1080

Good luck with the X11 -> Wayland transition, I'm sure a lot of us need it!

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ashar Alvany

79350381

Date: 2025-01-12 17:39:00
Score: 2.5
Natty:
Report link

Today the "homepage" tip (from above) worked fine for me.
In package.json, replaced this:
"homepage": ".",
With this (no dot):
"homepage": "",
And deleted the vercel.json file.
Thank you all
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: RSaldanha

79350379

Date: 2025-01-12 17:39:00
Score: 4.5
Natty: 5.5
Report link

Same problem with the query! macro.

adding to the select statement as "columname?" works.

Reasons:
  • RegEx Blacklisted phrase (1): Same problem
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: ekcum

79350372

Date: 2025-01-12 17:35:58
Score: 1
Natty:
Report link

it worked for me after Disabling "Python Debugger" Extention

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

79350324

Date: 2025-01-12 17:14:53
Score: 0.5
Natty:
Report link

A theme is exactly that. A pre-set color-scheme.

Even when switching between dark/light system settings, chrome just internally switches between its dark and light themes unless the user has specified which they prefer. See Browse in Dark mode or Dark theme for further details on that, but at the moment which theme to use is selectable at the bottom right of the New Tab page.

Presumably, if a user likes your theme, they'll pick it regardless of their OS setting just like if they selected manually from one of Chromes built-in themes. If you want to provide choice, upload two themes: one light and one dark. The user then makes the choice when they install your theme rather than care about the OS setting.

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

79350322

Date: 2025-01-12 17:13:52
Score: 8 🚩
Natty: 4.5
Report link

have you solved this? I am facing same issue and really frustrated now!

Reasons:
  • RegEx Blacklisted phrase (1.5): solved this?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Deep Shah

79350316

Date: 2025-01-12 17:07:50
Score: 1
Natty:
Report link

In the event that you don't get that file and you need it to do anything, you can get it in almost any JDK from 13 onwards (for security reasons it was marked as deprecated in 11 and removed in 14), since Oracle currently requires an account to download its JDK builds (12/01/2025 at the time of writing this) you can opt for one of its already compiled OpenJDK alternatives, of which there are several and among the recommended ones is Adoptium:

https://adoptium.net/es/temurin/releases/

I recommend downloading JDK 8 or 11 (since they are the LTS that continue to receive support) which contain that file that you need legitimately

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

79350312

Date: 2025-01-12 17:02:49
Score: 1.5
Natty:
Report link

remove centeredSlides={true} because this line centers the images. Also, you don't need to add the lines slidesPerView={3} and spaceBetween={10} because you have already assigned them in the breakpoints.

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

79350310

Date: 2025-01-12 17:01:48
Score: 7 🚩
Natty: 5.5
Report link

I am facing the same problem after scanning the QR code.

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: anonymous git

79350309

Date: 2025-01-12 17:00:47
Score: 1.5
Natty:
Report link
fruit = ("BANANA")
index = -1

while index >= -len(fruit):
    print(fruit[index])
    index -= 1
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shane Cline

79350304

Date: 2025-01-12 16:56:46
Score: 2
Natty:
Report link

What do ... SketchUp developers use to build SketchUp software?

They use Visual Studio on Windows and Xcode on Mac platforms.

I know only Sketchup built with Ruby.

Incorrect. Ruby is embedded within the SketchUp application process as a scripting engine.

Regarding the GUI, SketchUp originally used Microsoft Foundation Classes (C++) on Windows, and Cocoa (Objective-C) on MacOS platforms, along with the OpenGL graphics libraries for the model viewport.

However, beginning with the 2023 release, Trimble has been migrating the codebase to use the cross-platform Qt GUI libraries and native graphics directly. Ie, DirectX 12 on Windows and Metal on MacOS.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What do
  • Low reputation (1):
Posted by: Dan Rathbun

79350295

Date: 2025-01-12 16:52:45
Score: 1
Natty:
Report link

So, In case anyone of the contributors failed to see my comments - thank you all very much.

By taking the hints from BobS and the coding of Harun24hr I got everything to work perfectly. My final code is here:

Sub Send_Email()
' Create error handler
On Error GoTo errHandle

' Create the new instances of the objects
Set newMail = New CDO.Message
Set newConfiguration = New CDO.Configuration

' Set all the default values
newConfiguration.Load -1

' Put in the message info
With newMail
    .Subject = "VBA Test"
    .From = "********@gmail.com"
    .To = "********@outlook.com"
    .BCC = "******@outlook.com;*******@t********y.ltd.uk"
    .TextBody = "Test message sent using VBA script in Access"
End With

' Make the Fields
Set Fields = newConfiguration.Fields

With Fields
    .Item(cdoSendUserName) = "*********"
    .Item(cdoSendPassword) = "dk** **** **** **wy"     ' App password
    .Item(cdoSMTPUseSSL) = True
    .Item(cdoSMTPAuthenticate) = 1
    .Item(cdoSMTPServer) = "smtp.gmail.com"
    .Item(cdoSMTPServerPort) = 465
    .Item(cdoSendUsingMethod) = 2

    ' Update the configuration
  .Update
    
End With
' Transfer the configuration
newMail.Configuration = newConfiguration

' Send the email
newMail.Send

MsgBox "Email has been sent", vbInformation

' Exit lines for routine
exit_line:
    ' Release object from memory
    Set newMail = Nothing
    Set newConfiguration = Nothing
    
    Exit Sub
    
' Error handling
errHandle:
Select Case Err.Number
    Case -2147220973  'Could be because of Internet Connection
        MsgBox "Check your internet connection." & vbNewLine & Err.Number & ": " & Err.Description
    Case -2147220975  'Incorrect credentials User ID or password
        MsgBox "Check your login credentials and try again." & vbNewLine & Err.Number & ": " & Err.Description
    Case Else   'Report other errors
        MsgBox "Error encountered while sending email." & vbNewLine & Err.Number & ": " & Err.Description
    End Select

    Resume exit_line

End Sub

In practice the values for message from, to, subject, etc, etc would be picked up from an associated from that pulls email addresses from a data file using an SQL query.

This has also been tested and works.

Many thanks again to one and all and i hope my solution may be of use to others.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Trev Buck

79350276

Date: 2025-01-12 16:39:41
Score: 4.5
Natty: 5
Report link

i had a similar problem, i dropped my fix here: https://github.com/nextauthjs/next-auth/issues/9992#issuecomment-2585799270

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

79350271

Date: 2025-01-12 16:35:40
Score: 1.5
Natty:
Report link

hopefully this helps. my postgresAdapter has a few other values

db: postgresAdapter({
pool: {
  connectionString: process.env.DATABASE_URI || "",
  max: 10,
  min: 2,
  idleTimeoutMillis: 30000,
  connectionTimeoutMillis: 2000,
},
schemaName: "someSchemaName",
}),

You can set the schema like in the image here, click on the dropdown and the last option let's you create a new one. supabase schemas

Cheers! 👋🏼

Reasons:
  • Blacklisted phrase (1): Cheers
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Milly Chaser

79350268

Date: 2025-01-12 16:34:40
Score: 0.5
Natty:
Report link

Using PermissionChecker annotation should help: https://quarkus.io/guides/security-authorize-web-endpoints-reference#permission-checker.

Using custom HTTP policies should also work though, please open a Quarkus issue with more details for us to have a look. In general, if one needs to make a remote call from the custom HTTP policy it should be run using Uni or using a blocking context.

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

79350264

Date: 2025-01-12 16:32:39
Score: 1.5
Natty:
Report link

I did it! 😎

$tmp = (select
    *,
    ->services_responsibles->responsibles.* as responsibles
from services);

select
    *,
    $tmp.filter(|$v| $v.id in ->directions_services->services.id) as services
from directions;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: anon

79350259

Date: 2025-01-12 16:27:37
Score: 7 🚩
Natty: 5.5
Report link

Is there any Proper Solution you find for that redirect ?

Reasons:
  • Blacklisted phrase (1): Is there any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Is there any
  • Low reputation (1):
Posted by: Ruskin Singh

79350245

Date: 2025-01-12 16:20:35
Score: 0.5
Natty:
Report link

Netlify is primarily designed for static sites and serverless functions. You can deploy an Express project, but you cannot deploy Node.js neither run your own Express server.

But Netlify allows you to run your Express project. This is the Netlify starting point, where your Express project is loaded:

netlify/functions/api/js:

import serverless from "serverless-http";
import router from '../../src/routes.js';
import express from 'express';

export const app = express();

app.use('/api/v1', router);

app.use((req, res, next) => {
    res.status(404).json('The requested resource was not found on this server');
});

export const handler = serverless(app);

So if you add that file to your project it should be working.

Deployed result in Netlify: https://test-express-deployment.netlify.app/api/v1/user/test

Repo with fixed code: https://github.com/Borewit/test-netlify-express

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

79350243

Date: 2025-01-12 16:20:35
Score: 1
Natty:
Report link

When you want to call direct an item by PK , then your table must be created with PK enough (hash key) , so therefore do not add sort key while creating table..

  var sequence = await dynamoDBContext.LoadAsync<SequenceLogModel>("global_counter");
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: Mucahid Uslu

79350239

Date: 2025-01-12 16:17:34
Score: 3.5
Natty:
Report link

It turned out that I was not setting the report header in the customer entity and the customer in the product entity when I am creating them.

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

79350235

Date: 2025-01-12 16:15:33
Score: 0.5
Natty:
Report link

Replace the 2nd part of the conditional after || on line #37 in Default.aspx

 ServiceResolver.Current.Resolve<Nuget.Server.Core.Infrastructure.ISettingsProvider>().GetBoolSetting("allowRemoteCacheManagement", false))

with this:

ConfigurationManager.AppSettings["allowRemoteCacheManagement"]=="false"

Sometimes, too sophisticated is too sophisticated. This is an example of releasing untested code: something that should be considered shameful but which became mainstream.

Then replace "false" with "true" on line 114 of Web.config, to allow remote cache management.

Alternatively, remove the check for remote requests altogether because it does nothing of value for us: the local nuget server is meant to be accessed remotely, so restricting it to localhost serves no purpose because a so restricted server does nothing more than a local folder set up as nuget server in VS. Some solutions are overengineered, and this one is too.

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

79350231

Date: 2025-01-12 16:12:32
Score: 1
Natty:
Report link

https://docwiki.embarcadero.com/RADStudio/Athens/en/Conditional_compilation_(Delphi)

Quote:

The following conditionals are available as of RAD Studio 11.1:
FRAMEWORK_VCL   Defined if the project uses VCL framework.
FRAMEWORK_FMX   Defined if the project uses FMX framework.

 

 

Better (very very) late than never. Right?

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

79350230

Date: 2025-01-12 16:12:32
Score: 4
Natty:
Report link

Unfortunately, contrary to Peter Cordes answer. rsqrtss suffers in the way of deviating between different vendors where as Q3's Fast inverse will get the same result on both.

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

79350229

Date: 2025-01-12 16:11:31
Score: 1.5
Natty:
Report link

bundle update mini_racer and bundle install worked for me.

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: rodrigovdb

79350219

Date: 2025-01-12 16:07:31
Score: 0.5
Natty:
Report link

You need to specify the level of the column index that you want to drop.

Since the date column you want to drop is in level 1 you need to mention it explicitly.

df2.drop(columns=["July 1, 2024 (est.)"],level=1,axis=1)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: confused banana

79350208

Date: 2025-01-12 16:01:30
Score: 0.5
Natty:
Report link

Health checks for an application are generally designed to determine if a specific component or service is functioning correctly. Whether a health check should call other health checks depends on the design of your system and the level of granularity needed. Here's a breakdown of common approaches:

  1. Independent Health Checks

Each service or component has its own health check, and these checks do not call others.

Advantages:

Simplifies the design of each health check.

Avoids cascading failures caused by issues in downstream services.

Easier to pinpoint issues because the checks are scoped to specific components.

Use Case: Ideal for microservices or systems with independent components.


  1. Aggregated Health Checks

A "parent" health check queries the health checks of its dependencies.

Advantages:

Provides a high-level view of overall system health.

Simplifies monitoring by aggregating results in one place.

Challenges:

Can introduce dependencies between services.

If not properly managed, failures in one service can propagate.

Adds latency due to sequential or parallel checks.

Use Case: Useful in systems where high-level health summaries are needed, such as in a gateway or orchestrator.


Best Practices

  1. Define Criticality: Decide if the health of a dependency should affect the health of the caller.

Example: If a service can still function in a degraded state without a dependency, its health check might not query that dependency.

  1. Timeouts and Circuit Breakers: When calling other health checks, use timeouts to avoid hanging on failures.

  2. Granularity: Keep individual checks simple and lightweight. Avoid deep dependency chains in health checks.

  3. Separate Liveness vs. Readiness:

Liveness checks: Ensure the application is running. Should rarely call external dependencies.

Readiness checks: Ensure the application is ready to handle requests, which may depend on the state of dependencies.

  1. Caching Results: Cache results of dependent health checks to avoid repeated calls in rapid successional
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Apgn Smart23

79350203

Date: 2025-01-12 15:56:26
Score: 8.5 🚩
Natty: 4.5
Report link

Was this solved? Facing the same issue at the moment, and I don't know why

Reasons:
  • RegEx Blacklisted phrase (1.5): solved?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Was this solve
  • Low reputation (1):
Posted by: alfred333

79350192

Date: 2025-01-12 15:49:25
Score: 0.5
Natty:
Report link

Angular 17: I got this error after installing ng-bootstrap to use NgbCarouselModule. To solve it, I had to run:

npm install @angular/localize --save --legacy-peer-deps
ng add @angular/localize
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: user6781

79350191

Date: 2025-01-12 15:49:25
Score: 2
Natty:
Report link

turning off Airplay Receiver worked for me as well. was trying to run a simple flask app with some js when this problem started.

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

79350189

Date: 2025-01-12 15:48:24
Score: 3
Natty:
Report link

The correct version for Windows 10

psql -U postgres -c "SHOW config_file;"

Without ';' I have got error: psql: error: connection to server at "localhost" (::1), port 5432 failed: FATAL: database "config_file'" does not exist

Reasons:
  • RegEx Blacklisted phrase (1): I have got error
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Oleg Kupavtsev

79350185

Date: 2025-01-12 15:45:24
Score: 1.5
Natty:
Report link

🚀 Learn How to Deploy a MERN Application on AWS EC2 (Ubuntu 24.04)! 🌐

Are you ready to take your MERN Stack project live? Check out this detailed step-by-step guide on deploying your application on AWS EC2 with Ubuntu 24.04. Perfect for developers looking to scale their projects in the cloud! 🌩️

👉 Read the full blog here: easenotes.com/blogs/deploy-mern-application-aws-ec2-ubuntu-24-04

📌 Highlights:
✅ Setting up an AWS EC2 instance
✅ Configuring Ubuntu 24.04 for deployment
✅ Installing Node.js, MongoDB, and NGINX
✅ Running and accessing your MERN app online

Give your application the boost it deserves! 💻✨
#MERN #AWS #EC2 #Ubuntu #WebDevelopment #EaseNotes

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

79350180

Date: 2025-01-12 15:39:22
Score: 3
Natty:
Report link

As answered by @TedLyngmo in the comments, the problem was I had not included bluetooth.h in the file. The problem was

The key point is that bdaddr_t is defined in bluetooth.h and that bluetooth.h includes asm/types.h which, via other includes, defines __u8 etc.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @TedLyngmo
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Supreet Singh

79350173

Date: 2025-01-12 15:38:22
Score: 3
Natty:
Report link

According to the result of psql# \l. We don't have any database with name: pharmacy.

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

79350170

Date: 2025-01-12 15:36:21
Score: 2
Natty:
Report link

For me, with marquee version 0.1.0 and ggplot2 3.5.1 using AGG graphics with R version 4.4.2 on OSX

p1 + theme( legend.text = marquee::element_marquee(hjust = c(rep(1, 4), rep(0, 4))) )

gives

what I think you'd expect to see

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

79350169

Date: 2025-01-12 15:36:21
Score: 1
Natty:
Report link

Change replace string to:

my $av_tmp_REPLACE = "aaa $1";
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: White Owl

79350163

Date: 2025-01-12 15:33:20
Score: 2
Natty:
Report link

I faces recently very same issue as is described.

My problem was that I did not have connected correct db - so indeed the user was not there. I was checking in from DB on docker (I imporeted into mysql instead of laravel which was defined in .env).

So make sure you are connected to correct DB.

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

79350146

Date: 2025-01-12 15:26:18
Score: 2.5
Natty:
Report link

hell nah,am a fellow 10th grader , who is gonna appear boards this year, even till this date the book mentions"\a - audible bell" and out of curiosity i searched the web for it and hopped on this

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

79350144

Date: 2025-01-12 15:24:17
Score: 2.5
Natty:
Report link

Blockchain Genesis transactions require a unique transaction ID (TX) and a non-transaction identifier (NONCE). For Monero/Wownero forks, generate GENESIS_TX by concatenating node ID, timestamp, and random bytes. Calculate GENESIS_NONCE using TX as input, ensuring it's unique for each block.

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

79350141

Date: 2025-01-12 15:23:17
Score: 1
Natty:
Report link

For Problem 2, preprocess blocks of the same type (height, width) into an array of x-coordinates. For each block with coordinates (x, y), insert x into the array at index y.

For the query part, go through each block type (there are only 22 types) and, for each type, consider every y-coordinate that might contain the query point (at most 128 values/the block height). For each valid y-coordinate, perform a binary search to find the largest x-coordinate that is less than or equal to the query's x-coordinate . If it exist, check if the block at that location contains the query point.

This is like O(22 * 128 * log(frameWidth)) and might only be worth it if frameHeight can be very big

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

79350139

Date: 2025-01-12 15:22:16
Score: 4
Natty:
Report link

I encountered the same issue. I am able to create tables and perform operations, but no changes are reflected in the database. I have explored many solutions and even sought help from ChatGPT, trying all the suggested fixes, but none of them worked.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: ripan -officialforwork

79350123

Date: 2025-01-12 15:14:14
Score: 3
Natty:
Report link

it working it's doesn't required to refresh the project but requires refreshing the website

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

79350116

Date: 2025-01-12 15:12:14
Score: 0.5
Natty:
Report link

This is the solution I've come up to:

export const createTicket = (
  title: string,
  description: string,
  name: string,
  surname: string,
  email: string | null,
  phone_number: string | null,
  userId?: number
) =>
  prisma.ticket.create({
    data: {
      title,
      description,
      createdBy: userId ? { connect: { id: userId } } : undefined,
      info: {
        connectOrCreate: {
          where: userId
            ? { userId }
            : { name_surname_phone_number_email: { name, surname, phone_number, email } },
          create: { name, surname, email, phone_number, userId }
        }
      }
    }
  });

I wasn't aware of the compound unique constraint syntax.

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

79350098

Date: 2025-01-12 15:01:11
Score: 2
Natty:
Report link

Ok, I think I reached a satisfactory solution. I realised I need to do two things:

  1. Generate the static website using schemaspy
  2. Run a web server to serve the static website so I can actually access it using the ip and the port

So I created two docker containers; one to do each of these steps. I would prefer if I can do both these things in one container, but I kept running into errors trying to achieve that so I'm letting it be like this for now.

Here's my current working setup in docker-compose.yaml:

    docs:
        image: schemaspy/schemaspy:latest
        container_name: Docs
        environment:
            DB_USER: root
            DB_PASS: pass111
            DB_NAME: EduSys
            DB_PORT: "1026"
            DB_HOST: 138.150.210.254
        depends_on:
            - "mysql"
        volumes:
            - schemaspy-data:/output
        entrypoint: >
            sh -c "schemaspy -t mysql -host 138.150.210.254 -port 1026 -db EduSys -s EduSys -u root -p pass111"

    zcedudocs_web:
        image: nginx:latest
        container_name: nginx
        ports:
            - "5558:80"
        volumes:
            - schemaspy-data:/usr/share/nginx/html:ro
        depends_on:
            - docs
    mysql:
        image: mysql:8.2
        container_name: MySQL
        environment:
            MYSQL_ROOT_PASSWORD: pass111
            MYSQL_OPTIONS: --sort_buffer_size=2M
        ports:
            - "1026:3306"
        volumes:
            - mysql_db:/var/lib/mysql

    volumes:
       mysql_db:
       schemaspy-data:

I used docker compose up -d to run everything, and it works now! Just remember to use http not https. And the url looks like this http://138.150.210.254:5558/index.html

Note: I can still see the same Graphviz errors if I use docker logs Docs, but turns out it doesn't actually prevent the website generation. I still don't know why it doesn't go away when I use -nohtmlimages and -nodot. Any input on that would be appreciated.

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

79350093

Date: 2025-01-12 14:58:11
Score: 3
Natty:
Report link

Try to update your IDE and kotlin plugin. Also you can check for SDKs version in the project structure

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

79350087

Date: 2025-01-12 14:51:10
Score: 2.5
Natty:
Report link

@keyframes animatedBackground {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 100% 0;
  }
}
#animate-area {
  width: 200px;
  height: 200px;
  background-image: url(https://picsum.photos/400/200);
  background-position: 0px 0px;
  background-repeat: repeat-x;
  animation: animatedBackground 10s linear infinite alternate;
}
<div id="animate-area"></div>

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anil Upade

79350085

Date: 2025-01-12 14:47:08
Score: 6.5 🚩
Natty: 4.5
Report link

so i'm kind of working on the same thing lol,can you send me an github link for your project repo ,that would be alot of help thankyou:)

Reasons:
  • Blacklisted phrase (1): thankyou
  • RegEx Blacklisted phrase (2.5): can you send me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: saikrishna

79350077

Date: 2025-01-12 14:45:07
Score: 0.5
Natty:
Report link

Here is my workaround to manually update images from ghcr.io from Container Manager UI only. Enabling SSH/using CLI or registering ghcr.io. is not necessary.

I realize this does not answer the original question (registering the ghcr.io repo), but may help with the underlying problem - updating the projects, without the need for ssh/CLI.

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

79350075

Date: 2025-01-12 14:42:06
Score: 4.5
Natty: 5
Report link

this was driving me crazy! thank you

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joe Music

79350072

Date: 2025-01-12 14:40:05
Score: 3.5
Natty:
Report link

Hitler was right and he should have finished the job and exterminated all rats

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

79350067

Date: 2025-01-12 14:35:04
Score: 0.5
Natty:
Report link

Even if string interpolation itself does not accept formatting parameters, it's not as bad as it might seem:

String interpolation in Lean 4 accepts arbitrary expression. So instead of having to remember a special syntax for formatting inside string interpolation you can just call a function doing the formatting.

Lean4 already provides a method for the given example (format UInt8 values using two hex digits no matter the value): BitVec.toHex

To keep the example small, I've just added a tiny method:

def UInt8.toHex (x : UInt8) : String := x.toBitVec.toHex

Now the example passes:

def UInt8.toHex (x : UInt8) : String := x.toBitVec.toHex

structure Color where
  r : UInt8
  g : UInt8
  b : UInt8

def Color.to_hex : Color → String
  | {r, g, b} => s!"#{r.toHex}{g.toHex}{b.toHex}"

def color : Color := ⟨ 0, 7, 255 ⟩

#eval color.to_hex
-- #guard color.to_hex = "#07255" -- *NOT* what I want
#guard color.to_hex = "#0007ff" -- What I want

Lean 4 Web Link

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Random Citizen

79350061

Date: 2025-01-12 14:32:03
Score: 3
Natty:
Report link

I know this is an old question, but since I just happened to have the same problem... I was using the Link component to navigate to route('login.provider', ['google']) instead of a simple a element like this

<a href={route('login.provider', ['google'])}>Login</a>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (0.5):
Posted by: Dario Vogogna

79350053

Date: 2025-01-12 14:26:02
Score: 0.5
Natty:
Report link

Try using Admin - Reports GetReportsAsAdmin with a filter parameter on datasetId.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Sam Nseir

79350051

Date: 2025-01-12 14:24:01
Score: 0.5
Natty:
Report link

The existing answers did not work, but modifying them did, and here is my solution for others to solve this problem.

  const [open, setOpen] = useState(false);
  const containerRef = useRef(null);

  return (
    <Box
      ref={containerRef}
      sx={{
        width: "500px",
        height: "300px",
        border: "1px solid black",
        margin: "50px auto",
        position: "relative",
        overflow: "hidden",
      }}
    >
      <p>This is the container for the drawer.</p>
      <Button onClick={() => setOpen(true)}>Open Drawer Inside</Button>

      <Drawer
        open={open}
        onClose={() => setOpen(false)}
        anchor="left"
        variant="temporary"
        container={containerRef.current}
        ModalProps={{
          container: containerRef.current,
          disablePortal: true,
        }}
        sx={{ position: 'absolute', '& .MuiPaper-root': { position: 'absolute' }, }}
      >
        <div style={{ padding: 20 }}>
          <h4>Drawer Inside Container</h4>
          <Button onClick={() => setOpen(false)}>Close</Button>
        </div>
      </Drawer>
    </Box>

I achieved it by using ref's. By default the drawer gets rendered with the root HTML element.

To render it within a container the Model prop would require a reference to the parent container and disable portal.

The parent container needs to be relative for the absolute positioning to work.

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roy33

79350047

Date: 2025-01-12 14:22:01
Score: 2.5
Natty:
Report link

For me it was under test and release > Setup > Advanced settings > Form Factors There add Android Auto and accept the terms and conditions then you must upload the package again

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

79350040

Date: 2025-01-12 14:16:59
Score: 3
Natty:
Report link

Reboot and select proper boot device, or insert boot media in select boot device and press a key.

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

79350036

Date: 2025-01-12 14:13:59
Score: 1.5
Natty:
Report link

If you don't want the same element twice (OP's question), the best answer is zerozero nine's: shuffle the list first and that's done, no need to use random.choice. O(n) total.

If you want the same element twice, non need to use a set, just use random.choice on the string directly. O(1) for each choice.

If you really want to use random.choice on a set : random.choice(list(S)), but with complexity O(n) for each choice

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

79350028

Date: 2025-01-12 14:12:57
Score: 5
Natty: 5
Report link

Unfortunately SAP IQ is not supported by thda/tds. Have you had better luck for the official sap drivers for ase ?

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

79350025

Date: 2025-01-12 14:08:56
Score: 1
Natty:
Report link

Instead of primitives datatype, Use Wrapper Integer/Double/Long class in java to get numeric value

@Value("${restaurant-top-food}")    
private Integer topBestFood;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Rajeev Ranjan

79350023

Date: 2025-01-12 14:06:54
Score: 10.5 🚩
Natty: 5.5
Report link

Hey @dev85 Have you managed to find a feasible solution?

Reasons:
  • Blacklisted phrase (3): Have you managed
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • User mentioned (1): @dev85
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: WhileLoop

79350015

Date: 2025-01-12 14:02:53
Score: 2
Natty:
Report link

Update Podfile and Install Pods Navigate to the ios directory and update the CocoaPods dependencies:

If you face issues with pod installation, try:

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

79350007

Date: 2025-01-12 13:55:52
Score: 2
Natty:
Report link

Have you tried running all your workers with solo pool

celery --app=worker.app worker --pool=solo

This ensure that a worker will be processing one task at a time. Also please provide more details to help you better

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • RegEx Blacklisted phrase (2.5): please provide
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Albin Antony

79350005

Date: 2025-01-12 13:55:52
Score: 1
Natty:
Report link

Your code doesn't work because the map function returns an iterator so as you didn't iterate over the object returned by map, the result.append function is never called.

The "just working" version of your code would be something like:

def foo() -> list[int]:  # Note that the type hint here is incorrect as you don't return anything
    result: list = []
    tuple(map(result.append, [x for x in range(10) if x % 2 == 0]))
    print(result)

But this is very unoptimized, the version I would write would use directly the list comprehension:

def foo():
    print([x for x in range(10) if x % 2 == 0])

Otherwise you could use a filter:

def foo():
    print(list(filter(lambda x: x % 2 == 0, range(10))))

For more information, please read this article: https://realpython.com/python-map-function/

Reasons:
  • Blacklisted phrase (1): this article
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Louis P

79349982

Date: 2025-01-12 13:45:50
Score: 1
Natty:
Report link

When the cert is added to the Local Machine store, by default no one has an access to its private key (except SYSTEM and Administrator). Temporary "LogonSessionId_0_some-random-number" represents a current user who performs import to allow operation to be completed. Later this temporary user can be deleted or replaced by actual user if this user still need to have an access to the private key.

For some reason it happens even if current user is Administrator, so already has an access. My guess, developers of this feature just skipped validation who current user is, and just always do it.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Starts with a question (0.5): When the
  • Low reputation (0.5):
Posted by: Niksr

79349979

Date: 2025-01-12 13:44:49
Score: 2
Natty:
Report link

I think what you are looking for might be this: Available on MDN web docs

On changing the height and width, you can decide what works for you! However as you described, object-fit: fill; seems the most suitable for your case

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

79349978

Date: 2025-01-12 13:43:49
Score: 1
Natty:
Report link

Update 2025: You can now use the .NET Sign CLI tool, which also supports remote signing using Azure Key Vault.

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

79349970

Date: 2025-01-12 13:33:47
Score: 2.5
Natty:
Report link

Create a python -m venv .venv environment and try to install the package there.

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

79349968

Date: 2025-01-12 13:32:46
Score: 1
Natty:
Report link

Here’s the updated version of your reply with the recommendation:

I’ve encountered the same issue where importing a single icon from @tabler/icons-react results in all icons being bundled, which slows down the app significantly. The library isn't optimized for tree-shaking or dynamic imports by default. This is especially noticeable when you're only using a few icons from the entire set.

As a recommendation, you could consider switching to icon libraries like lucide-react or react-icons/hi. Both libraries are more optimized for tree-shaking and selective imports, allowing you to import only the icons you need, which can significantly improve the app's performance.

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

79349960

Date: 2025-01-12 13:25:44
Score: 5
Natty:
Report link

what @pierpy has mentioned in comments , I am following that

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @pierpy
  • Self-answer (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): what
  • Low reputation (0.5):
Posted by: pbh

79349958

Date: 2025-01-12 13:24:44
Score: 1
Natty:
Report link

It seems that @Bhanuday Sharma is right and it cannot greatly improve curve_fit function performance and largely lessen computation time, if not writing a low level code.

However, by utilizing multiprocessing module, especially multiprocessing.Process() function, its performance can be largely upgraded, lessening computation time by ca. 76%, when tested in one million+ datasets for fitting.

Since you do not provide original data (5 000 000), thus I have uploaded one test file with 1314300 rows ("test.npy", which can be accessed from this website: https://www.mediafire.com/file/fa5nq6nycvawa4w/test.npy/file) for performance comparison. Besides, your predefined func is not complex, which is not applicable in reality. Suppose we have a quadratic function to fit, which is in the form of f(x, y) = ax^2 + by^2 + cxy + dx + ey + f and we prepare to utilize one million+ data for fitting.


Code part:

import numpy as np
import multiprocess as mp
from scipy.optimize import curve_fit
from timeit import default_timer as timer

oneArr = np.load('test.npy')
rowCnt = oneArr.shape[0]
xres, yres = 2, 2
xy = np.array([[-xres, yres], [0, yres], [xres, yres], [-xres, 0], [0, 0], [xres, 0], [-xres, -yres], [0, -yres], [xres, -yres]]).T
funcQuadratic = lambda xy, a, b, c, d, e, f: a * xy[0, :] ** 2 + b * xy[1, :] ** 2 + c * xy[0, :] * xy[1, :] + d * xy[0, :] + e * xy[1, :] + f

## Sequential for loop method
tic = timer()
result_scipy_for_loop = np.zeros((rowCnt, 6))
for row in range(rowCnt):
    result_scipy_for_loop[row, :] = curve_fit(f = funcQuadratic, xdata = xy, ydata = oneArr[row, :], p0 = (1, 1, 1, 1, 1, 1), method = 'lm')[0]
tac = timer()
print("result_scipy_for_loop is:", result_scipy_for_loop, "and its time usage is:", tac - tic, "seconds")

## Multiprocessing Process() function
def curve_fit_process(queue, rowRng):
    result = [curve_fit(f = funcQuadratic, xdata = xy, ydata = oneArr[idx, :], p0 = (1, 1, 1, 1, 1, 1), method = 'lm')[0] for idx in rowRng]
    queue.put(result)

q = mp.Queue()
tic = timer()
num_processes = 30
processes = []
if (rowCnt % num_processes) != 0:
    chunks = [np.arange(idx * (rowCnt // num_processes + 1), idx * (rowCnt // num_processes + 1) + rowCnt // num_processes + 1) for idx in range(num_processes)]
    for chunk in chunks:
        process = mp.Process(target = curve_fit_process, args = (q, chunk, ))
        processes.append(process)
        process.start()
        print("process: ", process.name, '->', process.pid, "starts...")

    ret = [q.get() for process in processes]
    print("ret is:", ret)

    for process in processes:
        process.join()
   
else:
    chunks = [np.arange(idx * (rowCnt // num_processes), idx * (rowCnt // num_processes) + rowCnt // num_processes) for idx in range(num_processes)]
    for chunk in chunks:
        process = mp.Process(target = curve_fit_process, args = (q, chunk, ))
        processes.append(process)
        process.start()
        print("process: ", process.name, '->', process.pid, "starts...")

    ret = [q.get() for process in processes]
    print("ret is:", ret)

    for process in processes:
        process.join()

tac = timer()
print("mp.Process() function time usage is:", tac - tic, "seconds.")

In my case, it only utilizes 119.21885330599616 seconds by multiprocessing.Process(), compared by traditional for loop style (491.4169644650028 seconds.).

Hope it's useful for someone in the future.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @Bhanuday
  • Low reputation (1):
Posted by: Jw L

79349956

Date: 2025-01-12 13:23:43
Score: 3
Natty:
Report link

install Prisma extension for your VS Code.

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

79349952

Date: 2025-01-12 13:21:43
Score: 2.5
Natty:
Report link

I am able to view that I have already configured. However I am not sure how to navigate back.

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

79349932

Date: 2025-01-12 13:09:40
Score: 1.5
Natty:
Report link

Create Your Flutter App Offline

 flutter create --offline app_name
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: y3gb

79349929

Date: 2025-01-12 13:06:40
Score: 1.5
Natty:
Report link

I also often need user agents for various projects (scraping, security purposes, etc). I created a free list and API updated ~ every week that contains a wide range of human browser user agents and bot user agents.

The API with all user agents is available here https://deviceandbrowserinfo.com/api/user_agents/all

If you prefer a more human-readable format you can also use this page https://deviceandbrowserinfo.com/data/user_agents

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

79349924

Date: 2025-01-12 13:02:39
Score: 1.5
Natty:
Report link

After many attempts, I realized the problem. The problem is with the following line...

RCC->CFGR |= (1<<1); // System clock Switch >> PLL selected as system clock

This line should be modified as follows

 RCC->CFGR |= 0x1; // System clock Switch >> HSE selected as system clock
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hossein Ameri

79349922

Date: 2025-01-12 13:01:38
Score: 2.5
Natty:
Report link

This appears to be a bug in Socat 1.8.0.1 and 1.8.0.2; as a workaround set option -T to a high number of seconds, e.g. 2147483647 (which is more that 68 years)

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

79349915

Date: 2025-01-12 12:55:36
Score: 5.5
Natty:
Report link

I have the same issue, the problem is into the version increase of Odoo, I don't know why/how the version was increased from 14.0 to 15.0 using docker image. But after rebuilding all registred image in my own registry, I have my instance up and running with the correct version.

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Low reputation (1):
Posted by: Mehdi ben lakhal

79349906

Date: 2025-01-12 12:46:34
Score: 7.5 🚩
Natty: 6.5
Report link

Hello i have done the mapping from a relation database I have in MySQL, i have the .n3 file and I can succesfuly run the d2r-server. Although I don't understand how to link other ontologies. My database describes an airport. Do I need to edit the .n3 file for every table and add the prefixes? I would appriciate some help. Thank you in advance.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (3): Thank you in advance
  • RegEx Blacklisted phrase (1.5): fixes?
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Βασίλης Πετσαλάκης

79349905

Date: 2025-01-12 12:44:33
Score: 0.5
Natty:
Report link

I've searched for this issue and I found these three useful GitHub links that can help you:

Note that there are also many other related links for your problem (especially in the 2nd link).

I hope it helps you!

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1): hope it helps
  • RegEx Blacklisted phrase (0.5): why is this
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sithila Somaratne

79349904

Date: 2025-01-12 12:43:33
Score: 1.5
Natty:
Report link

These blogs are a must-read if you want to understand feature importance in time series data! The first one explains how LSTMs work and how they assign weights to features in a simple step-by-step way: Part 1. The second one shows how to use permutation importance with LSTMs to see how much each feature impacts model accuracy: Part 2. Super clear and easy to follow!

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

79349899

Date: 2025-01-12 12:40:32
Score: 0.5
Natty:
Report link

This will also execute javascript, use with caution.

Recommended CSP Response Header : default-src 'self' 'nonce-abc123' 'sha256-abc123';base-uri 'self';frame-ancestors 'none';img-src 'self' * data:;script-src 'self' 'nonce-abc123' 'strict-dynamic' 'unsafe-inline' 'unsafe-hashes' 'sha256-abc123' http: https:;style-src 'self' 'unsafe-inline'

fetch('https://stackoverflow.com/')
    .then(response => {
        if (response.status !== 200) {
            console.log(`Looks like there was a problem. Status Code: ${response.status}`);

            return;
        }

        return response.text();
    })
    .then(function (data) {
        var headContent = data.match(/(<head(\s[^>]*>|>)([\s\S]*?)<\/head>)/im)[3];
        var bodyContent = data.match(/(<body(\s[^>]*>|>)([\s\S]*?)<\/body>)/im)[3];

        var range = document.createRange();
        var rangeHead = range.createContextualFragment(headContent);
        var rangeBody = range.createContextualFragment(bodyContent);

        document.head.replaceChildren(rangeHead);
        document.body.replaceChildren(rangeBody);

        window.dispatchEvent(new Event('DOMContentLoaded'));
    })
    .catch(err => {
        console.log('Fetch Error :-S', err);
    });

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

79349883

Date: 2025-01-12 12:30:30
Score: 2.5
Natty:
Report link

This is the simplest solution that I could think of:

import matplotlib.pyplot as plt

import numpy as np

x = [np.linspace(-100, 100)]

y = item**2 for item in x

plt.plot(x,y)

plt.show()

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

79349880

Date: 2025-01-12 12:27:30
Score: 3.5
Natty:
Report link

Found solution. Problem is that my code work before plugin modify html cell. So I've modified plugin code inserting new event abd subscrived it in my code

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

79349876

Date: 2025-01-12 12:26:29
Score: 1.5
Natty:
Report link

I also often need user agents for various projects (scraping, security purposes, etc). I created a free list and API updated ~ every week that contains a wide range of human browser user agents and bot user agents.

The API with all user agents is available here https://deviceandbrowserinfo.com/api/user_agents/all

If you prefer a more human-readable format you can also use this page https://deviceandbrowserinfo.com/data/user_agents

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

79349870

Date: 2025-01-12 12:23:28
Score: 0.5
Natty:
Report link
binding.messageContentLayout.webview.setBackgroundColor(Color.TRANSPARENT)

is worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Віталій Вигодованок

79349867

Date: 2025-01-12 12:19:28
Score: 1
Natty:
Report link

implementation is not a native gradle feature. You shoud use some plugins. For example you should add kmp plugin:

plugins {
    kotlin("multiplatform")
}

For java applications you should add a java plugin

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

79349860

Date: 2025-01-12 12:16:27
Score: 1
Natty:
Report link

Aren't those two pages contradictory?

Yes, it was fixed in linux man-pages project in January 2025:

https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=b21b7ef58e5ff367d78432a3af5af235c31e23af

https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=124f715bfce56727e8ac86989f07476bb345cf19

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: Arkadiusz Drabczyk

79349857

Date: 2025-01-12 12:12:26
Score: 1.5
Natty:
Report link

It's not possible...

The right way it's to make it in css.

<div class="cards-container">
  @for(tool of toolsList.default; track tool.name) {
    <div class="m-1">
      ...
    </div>
  }
</div>
.cards-container{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Alexdu98

79349853

Date: 2025-01-12 12:09:26
Score: 1.5
Natty:
Report link

I needed to change an option for PDO:

PDO::ATTR_ORACLE_NULLS => PDO::NULL_TO_STRING

Should be changed to:

PDO::ATTR_ORACLE_NULLS => PDO::NULL_NATURAL

I am not sure why this was set in the first place, I hope it doesn't have side effects on other parts of the application, but it solves the question I asked.

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

79349852

Date: 2025-01-12 12:08:25
Score: 0.5
Natty:
Report link

I cleared Docker completely from my machine, and reinstalled. The application ran, but not GUI was showing, until i:

sudo launchctl remove com.docker.vmnetd

...and reinstalled it again....! Crazy issue, this is my fix!

Checkout the main thread: https://github.com/docker/for-mac/issues/7046#issuecomment-2582778467

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

79349845

Date: 2025-01-12 12:01:24
Score: 4
Natty:
Report link

Adjusting the initial parameters of the distribution calculation eliminated the error. Thank you all for the discussion.

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

79349838

Date: 2025-01-12 11:55:21
Score: 4
Natty: 4.5
Report link

ASCII + Extended ASCII sums to 256

https://www.commfront.com/pages/ascii-chart

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

79349837

Date: 2025-01-12 11:55:21
Score: 2
Natty:
Report link

In my case, I had just updated XCode and iOS, so I ended up getting logged out of XCode.

I just had to log back in and everything went fine.

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

79349828

Date: 2025-01-12 11:46:19
Score: 1
Natty:
Report link

Resolved. Thank you @Compo for your observations. I discarded the .bat script approach. Final solution, I create an event in the .ps1 profile, that run every time a command (besides itself) runs, calculate the current window wide and save it in a global variable accessible from the omp.json theme file. Here is the code:

oh-my-posh init pwsh --config 'D:\repos\zsh-pwsh-wt\windows-pws-posh\kalimod.omp.json' | Invoke-Expression
$width = [console]::WindowWidth
    $result = "ˍ" * ($width-1)
    [System.Environment]::SetEnvironmentVariable("PROMPT_LINE", $result, [System.EnvironmentVariableTarget]::Process)
Register-EngineEvent -SourceIdentifier PowerShell.OnIdle -Action {
    $width = [console]::WindowWidth
    $result = "ˍ" * ($width-1)
    [System.Environment]::SetEnvironmentVariable("PROMPT_LINE", $result, [System.EnvironmentVariableTarget]::Process)
    oh-my-posh init pwsh --config 'D:\repos\zsh-pwsh-wt\windows-pws-posh\kalimod.omp.json' | Invoke-Expression
}

And here is the block and how I call it in the theme:

   {
  "type": "prompt",
  "alignment": "left",
  "segments": [
    {
      "type": "command",
      "style": "plain",
      "foreground": "#ffffff",
      "properties": {
        "shell": "powershell",
        "command": "$env:PROMPT_LINE"
      }
    }
  ]
},
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Compo
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Laplace'sDemon

79349821

Date: 2025-01-12 11:42:18
Score: 2
Natty:
Report link

This is an open issue in Angular v19 and is related to dev-mode and to the Hot-Module-Replacement that was activated also for CSS in Angular 19. See https://github.com/angular/angular/issues/59058

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

79349819

Date: 2025-01-12 11:41:17
Score: 8.5 🚩
Natty: 4.5
Report link

Have you found the answer? I am looking for similar solution too.

Reasons:
  • Blacklisted phrase (2): I am looking for
  • RegEx Blacklisted phrase (2.5): Have you found the answer
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Doufu

79349817

Date: 2025-01-12 11:39:16
Score: 2.5
Natty:
Report link

I USED THIS AND IT DID WORK

conda install -c conda-forge mpi4py openmpi
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Otis Willie