79550833

Date: 2025-04-02 13:58:33
Score: 1
Natty:
Report link

To answer your question directly, you are assigning a display name to the original 'Popover' component, not your custom wrapper. I don't know why you would have to do that in the first place as that behavior is generally implicit when exporting components, unless you are generating components with a factory function.

Perhaps related but still breaking code, you have your state defined outside the component which is a no-no. I would try and moving the state inside the component wrapper.

I can't think of a compelling reason to re-export 'Popover' as this should be accessible straight from the package.

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

79550830

Date: 2025-04-02 13:57:33
Score: 0.5
Natty:
Report link

I was able to resolve similar problem on Oracle Linux 8 with SELinux enabled like this:

sudo yum install policycoreutils-python-utils 

sudo setsebool -P use_nfs_home_dirs 1

sudo semanage fcontext -a -t nfs_t "/nethome(/.\*)?"

sudo restorecon -R -v /nethome

NFS share here is /nethome

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

79550828

Date: 2025-04-02 13:56:33
Score: 0.5
Natty:
Report link

Thank you Jon. That was very helpful.

public void CheckApi(string apiName, ref Int64 apiVersion)
{
  Int64 v1 = FileVersionInfo.GetVersionInfo(apiName).FileMajorPart;
  Int64 v2 = FileVersionInfo.GetVersionInfo(apiName).FileMinorPart;
  Int64 v3 = FileVersionInfo.GetVersionInfo(apiName).FileBuildPart;
  Int64 v4 = FileVersionInfo.GetVersionInfo(apiName).FilePrivatePart;

  apiVersion = (v1 << 48) | (v2 << 32) | (v3 << 16) | v4;
}

This returns the File Version which for my purposes will always be the same as the Product Version. For anyone who really needs the Product Version there are also four properties to get that info ProductMajorPart, ProductMinorPart, ProductBuildPart, and ProductPrivatePart.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gary

79550826

Date: 2025-04-02 13:55:32
Score: 1
Natty:
Report link

So I found the answer ... I saved the copied pages to an array and then had to add the image to each copied page

             foreach (var page in copiedPages)
             {
                 page.Canvas.DrawImage(results.Item2, results.Item1.Left, results.Item1.Top, results.Item1.Width, results.Item1.Height);
             }
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: user30143181

79550822

Date: 2025-04-02 13:54:32
Score: 3.5
Natty:
Report link

I am not getting any dark line .I think you must have put on a border or something

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

79550820

Date: 2025-04-02 13:52:31
Score: 0.5
Natty:
Report link

In case someone is using compose profiles, this may happen when you start services with profiles but forget to stop services with them.

In short:

COMPOSE_PROFILES=background-jobs docker compose up -d
COMPOSE_PROFILES=background-jobs docker compose down
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Yarik

79550816

Date: 2025-04-02 13:50:31
Score: 2.5
Natty:
Report link

No, TwinCAT’s FindAndReplace function does not operate directly on an in-place string. Instead, it returns a modified copy of the input string with the specified replacements applied.

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

79550812

Date: 2025-04-02 13:47:30
Score: 4
Natty: 4
Report link

Here is a dirty way to remove O( ) : add ".subs(t**6,0)" to your solution

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

79550790

Date: 2025-04-02 13:40:27
Score: 1
Natty:
Report link

Reposting it as an answer: I found a solution for my problem in this question, I can specify an explicitly defined schema when reading the json data from an rdd into a DataFrame:

json_df: DataFrame = spark.read.schema(schema).json(json_rdd)

It seems however that I'm reading the data twice now:

    df_1_0_0 = _read_specific_version(json_rdd, '1.0.0', schema_1_0_0)
    df_1_1_0 = _read_specific_version(json_rdd, '1.1.0', schema_1_1_0)

def _read_specific_version(json_rdd, version, schema):
    json_df: DataFrame = spark.read.schema(schema).json(json_rdd)
    return json_df.filter(col('version') == version)

Is there a more efficient way to do this? Like, is this exploiting parallel execution, or do I enforce sequential execution here? Maybe a spark newbie question.

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

79550782

Date: 2025-04-02 13:36:26
Score: 1.5
Natty:
Report link

Something I learned today:

You can just paste the text into your spreadsheet. Go to Data > Split text to columns > select your formatting option.

That's super helpful and solved my issue!

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Maria Clara Bezerra

79550775

Date: 2025-04-02 13:35:25
Score: 0.5
Natty:
Report link

Here's the updated code to identify whether the don't keep activities flag is turned on or not.

val dka = Settings.System.getInt(contentResolver,Global.ALWAYS_FINISH_ACTIVITIES)
Log.i(TAG,"dka -> $dka")

source

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

79550772

Date: 2025-04-02 13:34:25
Score: 1
Natty:
Report link

I got the same problem but I solved it by using the following instruction:

Reasons:
  • Blacklisted phrase (1): I got the same problem
  • Whitelisted phrase (-2): I solved
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: jessiR

79550770

Date: 2025-04-02 13:33:25
Score: 1
Natty:
Report link

Solved it. Only the first cell can have text. So, remove all text (and runs) from subsequent cells in the merge.

Something like:

tc = table.Elements<TableCell>();
foreach (Paragraph pg in tc.Elements<Paragraph>())
  pg.RemoveAllChildren();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: unqualified

79550767

Date: 2025-04-02 13:33:25
Score: 2.5
Natty:
Report link

gmp-placeselect changed from gmp-placeselect to gmp-select.

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

79550759

Date: 2025-04-02 13:30:24
Score: 3.5
Natty:
Report link

I got this error after installed the @hot-loader/react-dom

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mr. Perec

79550753

Date: 2025-04-02 13:26:23
Score: 2
Natty:
Report link

So I finally figured it out! It happens to be that when reaching any of this site's url, in case you don't have their cookies, it attempts to set cookies and then redirect to the same url. Browsers (and postman) do handle this interaction with something called a cookie jar, if I am correct, but node-fetch and others seem to not to, so they need custom agent which implements this, I used this one and it has good examples npmjs.com/package/http-cookie-agent

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

79550749

Date: 2025-04-02 13:25:22
Score: 4.5
Natty:
Report link

TELEGRAM Chat

TELEGRAM Admin

YouTube Channel

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

79550742

Date: 2025-04-02 13:24:22
Score: 1.5
Natty:
Report link

Open Azure AI Foundry > Deployments > + Deploy Model

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

79550739

Date: 2025-04-02 13:23:20
Score: 9 🚩
Natty: 5
Report link

Did this get resolved? Facing the same error.

Reasons:
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing the same error
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did this
  • Low reputation (1):
Posted by: user30143847

79550736

Date: 2025-04-02 13:22:20
Score: 3.5
Natty:
Report link

The issue was solved after instaling Microsoft redistributable package. download from here https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170

check this issue for reference

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

79550733

Date: 2025-04-02 13:22:20
Score: 3
Natty:
Report link

Add a new property "skin.dynamic" and set the skin name based on your device resolution

Example:

enter image description here

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

79550732

Date: 2025-04-02 13:22:20
Score: 3
Natty:
Report link

This solved it for me:

create a new form, go to MyProject change the application framework to something else, then change it back, then select the new form..

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

79550726

Date: 2025-04-02 13:19:19
Score: 3
Natty:
Report link

In ASP.NET web applications, I have found the null-forgiving operator to be useful for defining navigation properties, as in the following example.

Suppose we have two related tables, Course and Teacher.

In the definition of the Course class, we could have something like this:

public int TeacherID { get; set; }

public Teacher Teacher { get; set; } = null!;

The assignment in the second line, using the null-forgiving operator, allows Course.Teacher to be null in C# code, but not in the database, and that can be very useful.

Is there a better way to achieve the same effect?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Eric Weinberger

79550722

Date: 2025-04-02 13:15:18
Score: 1
Natty:
Report link

you join tables with wrong columns (you need to use GenreID, not Name)

SELECT 
    Track.Name AS TrackName, 
    Track.GenreId, 
    Track.Composer, 
    Genre.Name AS GenreName
FROM Track
INNER JOIN Genre ON Track.GenreId = Genre.GenreId
WHERE 
    Track.GenreId IN (1, 3, 4, 5, 23, 9)
ORDER BY Track.Name;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anastasia

79550720

Date: 2025-04-02 13:14:18
Score: 2
Natty:
Report link

How is LIBRARY_SOURCE defined? In the Doxygen configure file, you can set it via PREDEFINED:

PREDEFINED = LIBRARY_SOURCE

You can also check whether the documentation shows up if preprocessing is disabled (enabled by default):

ENABLE_PREPROCESSING = NO
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How is
  • Low reputation (1):
Posted by: nx105

79550711

Date: 2025-04-02 13:12:17
Score: 1.5
Natty:
Report link

It appears that the PATH system variable is too long.

I suggest you manually system environment variables and correct anything that looks abnormal (e.g., repetitions).

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

79550708

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

The sitemap looks accessible and valid, but Google may reject it if the server isn't returning the correct Content-Type (should be application/xml). Also check for redirects, HTTP/HTTPS inconsistencies, or robots.txt blocks. Sometimes Search Console delays processing — try again after 24–48 hours.

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

79550707

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

Was using Bootstrap 5 and jQuery 1.12 in my project. Upgrading jQuery version from 1.12 to 3.7 fixed my issue.

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

79550699

Date: 2025-04-02 13:06:15
Score: 1
Natty:
Report link

I hope the issue has been fixed by now 😂, but for any developer looking up on this issue, please remember to call glGetError() in a loop and make sure it is clear, as the function returns one error at a time, while functions can output more than one.

It is hard to deduce what's going on since OpenGL is highly contextual, more code is needed regarding the current state of things in the GL context.

I do strongly recommend to use a wrapper function for glGetError, or even move to glDebugMessageCallback.

static void GLClearErrors() {
    while (glGetError() != GL_NO_ERROR);
}

static void GLCheckErrors() {
    while (GLenum error = glGetError()) {
        std::cout << "[OpenGL error] " << error << std::endl;
    }
}

it is the little functions like these that ensure safety in your code, simple yet darn useful.

Reasons:
  • Blacklisted phrase (1): 😂
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: John Baxter

79550694

Date: 2025-04-02 13:05:15
Score: 1
Natty:
Report link

for .Net 8 you should add package 'Microsoft.Extensions.Hosting.WindowsServices' and add UseWindowsService(). It's activate only if it detects the process is running as a Windows Service.

IHost host = Host.CreateDefaultBuilder(args)
   .UseWindowsService()
   .... 
  .Build();
await host.RunAsync();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Aleksei Beliaev

79550681

Date: 2025-04-02 13:00:13
Score: 0.5
Natty:
Report link

I found a solution, how to make proper IN clauses in case somebody needs to search based on multiple values in a field that is from a PosgreSQL type as the John Williams's solution works BUT on Varchar field

 return jdbcClient.sql("""
                                SELECT * 
                                FROM configuration 
                                WHERE status IN (:status)
                        """)
                .param("status", request.configurationStatus().stream().map(Enum::name).collect(Collectors.toList()), OTHER)
                .query((rs, rowNum) -> parseConfiguration(rs))
                .list();

The key thing is that the third parameter should be used, which defines the SQL type

enter image description here

In my case I used OTHER (Call type can be seen from java.sql.Types)
enter image description here

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Tsvetoslav Tsvetkov

79550680

Date: 2025-04-02 12:58:12
Score: 3
Natty:
Report link

since you're the package author maybe you can tell me if I can adjust the estimation window. As I understand the package description, all the data available before the event date is used for the estimation.

"estimation.period: If “type” is specified, then estimation.period is calculated for each firm-event in “event.list”, starting from the start of the data span till the start of event period (inclusive)."

That would lead to different length of the estimation depending on the event date. Can I manually change this (e.g estimation window t:-200 until t:-10)?

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

79550676

Date: 2025-04-02 12:57:11
Score: 11.5 🚩
Natty: 6
Report link

Did you ever find a solution for this? I'm having the same problem, container seems to be running infinitely and I want it to be marked as "success" so the next tasks can move on.

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • RegEx Blacklisted phrase (3): Did you ever find a solution
  • RegEx Blacklisted phrase (1): I want
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: Gonçalo Martins

79550666

Date: 2025-04-02 12:53:09
Score: 1.5
Natty:
Report link

Thanks to siggermannen and Dan Guzman I made it to the following query:

use [OmegaCA_Benchmark]

select 
a.database_specification_id,
a.audit_action_id, a.audit_action_name, 
a.class, a.class_desc, 
a.major_id,
object_schema_name = 
CASE 
    WHEN a.class_desc = 'OBJECT_OR_COLUMN' THEN OBJECT_SCHEMA_NAME(a.major_id)
    ELSE NULL
END,
object_name = 
CASE 
    WHEN a.class_desc = 'OBJECT_OR_COLUMN' THEN OBJECT_NAME(a.major_id)
    WHEN a.class_desc = 'SCHEMA' THEN SCHEMA_NAME(a.major_id)
    WHEN a.class_desc = 'DATABASE' THEN 'OmegaCA_Benchmark'
    ELSE NULL
END,
a.minor_id,
a.audited_principal_id, c.name as Principal_Name,
a.audited_result, 
a.is_group,
b.name as DB_Aud_Spec_Name, 
b.create_date, b.modify_date, 
b.audit_guid, 
b.is_state_enabled

from sys.database_audit_specification_details a

inner join sys.database_audit_specifications b
on a.database_specification_id = b.database_specification_id

inner join sys.database_principals c 
on a.audited_principal_id = c.principal_id

best regards
Altin

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

79550656

Date: 2025-04-02 12:47:07
Score: 1
Natty:
Report link

import React from 'react'; import { motion } from 'framer-motion'; import { Card } from '@/components/ui/card'; import './styles.css';

const HardixFFIntro = () => { return ( <motion.div initial={{ opacity: 0 }} animate={{ opacity: 1 }} transition={{ duration: 3 }} className="smoke-bg" /> <motion.img src="/mnt/data/file-Gkk3FLHg8Uaa2FJ1CcVHZD" alt="Hardix.FF Logo" initial={{ scale: 0.8, opacity: 0 }} animate={{ scale: 1, opacity: 1 }} transition={{ duration: 2, delay: 1 }} className="logo-img" /> <motion.h1 initial={{ y: 100, opacity: 0 }} animate={{ y

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

79550655

Date: 2025-04-02 12:47:07
Score: 7 🚩
Natty:
Report link

Looking at it, the only thing it triggers me would be the dataloader...
But if it work with the other models, would work with this too.

Can you share your dataloader code?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share your
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Eduardo L da Silva

79550654

Date: 2025-04-02 12:47:07
Score: 2
Natty:
Report link

bro just use border-spacing

table.that-has-your-th {
  border-spacing: 9px 9px 9px 8px;
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Varpi

79550651

Date: 2025-04-02 12:46:06
Score: 1
Natty:
Report link

Old Post but I had the same issue. We had to install ReqnRoll to replace spekflow and this stopped working for me at one point. I looked everywhere and event reinstalled reqnroll based on recommendations but that still didn't work.

I finally reinstalled: https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-8.0.14-windows-x64-installer and it started working again.

Hopefully this solution helps someone.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Donbot

79550647

Date: 2025-04-02 12:45:06
Score: 2
Natty:
Report link

The binlog mode of logproxy should be used with flink-mysql-cdc, which is equivalent to treating observer + logproxy + obproxy as a mysql instance. In this way, the connection information uses jdbc (that is, connecting to obproxy).
Reference to https://nightlies.apache.org/flink/flink-cdc-docs-release-3.1/docs/connectors/flink-sources/mysql-cdc/

It is recommended to use the latest version 3.1.1.

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

79550645

Date: 2025-04-02 12:45:06
Score: 4.5
Natty: 5
Report link

I rcommend https://min.io/docs/minio/linux/reference/minio-mc.html, which is well maintained these days.

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

79550640

Date: 2025-04-02 12:43:05
Score: 1.5
Natty:
Report link

The issue seemed to be with the matching clause I was using in the code, which was omitted here in the example as I thought it was not the issue. I was matching using a string id instead of an ObjectId. I thought this was not the issue because it seems these string ids work when querying through various methods.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: ThriceGood

79550638

Date: 2025-04-02 12:41:04
Score: 3.5
Natty:
Report link

Hope answer given in below link will help to resolve your issue.

Angular 18, VS Code 1.95.2, after ng serve, hitting F5 starts the browser and spins indefinitely

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

79550629

Date: 2025-04-02 12:35:03
Score: 2.5
Natty:
Report link

No this behavior is not specified in any standard it is just how browsers interpretate the pre tag . Although as per HTML standard it the line break should be there but the browsers interpretate it like this.

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

79550625

Date: 2025-04-02 12:32:02
Score: 1
Natty:
Report link
public static function matchesPatternTrc20(string $address) : bool 
{
    return boolval(preg_match('/^T[1-9a-zA-Z]{33}$/', $address));
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: buzz8year

79550621

Date: 2025-04-02 12:30:02
Score: 0.5
Natty:
Report link

So, after some more time/issues, I figured that my phpunit/phpunit bundle version was to old (9.*) and so I updated it to works with dama/doctrine-test-bundle (need phpunit version > 10).

But in the end, I removed dama/doctrine-test-bundle and used hautelook/alice-bundle.

I had to add this code in my /test/bootstrap.php to create the db and the schema.

$appKernel = new Kernel('test', false);
$appKernel->boot();

$application = new Application($appKernel);
$application->setCatchExceptions(false);
$application->setAutoExit(false);

$application->run(new ArrayInput([
    'command' => 'doctrine:database:drop',
    '--force' => '1',
]));

$application->run(new ArrayInput([
    'command' => 'doctrine:database:create',
]));

$application->run(new ArrayInput([
    'command' => 'doctrine:schema:create',
]));

$appKernel->shutdown();

And added use ReloadDatabaseTrait; at the beginning of my TestClass.

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

79550617

Date: 2025-04-02 12:28:01
Score: 1.5
Natty:
Report link

Microsoft is painfully vague on the details of this but:

  1. Add a role assignment to your key vault in the IAM tab.

  2. Choose Key Vault Certificate User (or whatever role you chose)

  3. For users choose "Users, group, or service principal". In the selection menu search for "microsoft azure app service". This will bring up the built-in service SPN which is needed to bind the certificate in Key Vault (you'll notice its application id is abfa0a7c-a6b6-4736-8310-5855508787cd).

I don't think you even need the user assigned managed identity once this in-built SPN is set up but you can test that.

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

79550613

Date: 2025-04-02 12:26:00
Score: 1
Natty:
Report link

Used in dotnet new react to launch nodejs app.
Glance over aspnetcore repo, folder \src\Middleware\Spa\SpaProxy\

  1. SpaHostingStartup adds IStartupFilter implementation to services collection.
  2. SpaProxyStartupFilter runs npm start and adds SpaProxyMiddleware
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DmitryKosarev

79550609

Date: 2025-04-02 12:25:00
Score: 2.5
Natty:
Report link
from io import BytesIO
import twain
import tkinter as tk
from tkinter import ttk, messagebox, filedialog
import logging
import PIL.ImageTk
import PIL.Image
import datetime

scanned_image = None
current_settings = {
    'scan_mode': 'Color',
    'resolution': 300,
    'document_size': 'A4',
    'document_type': 'Normal',
    'auto_crop': False,
    'brightness': 0,
    'contrast': 0,
    'destination': 'File',
    'file_format': 'JPEG',
    'file_path': ''
}

def check_adf_support(src):
    """Check if the scanner supports ADF and return ADF status"""
    try:
        # Check if ADF is supported
        if src.get_capability(twain.CAP_FEEDERENABLED):
            print("ADF is supported by this scanner")
            
            # Check if ADF is loaded with documents
            if src.get_capability(twain.CAP_FEEDERLOADED):
                print("ADF has documents loaded")
                return True
            else:
                print("ADF is empty")
                return False
        else:
            print("ADF is not supported")
            return False
            
    except twain.excTWCC_CAPUNSUPPORTED:
        print("ADF capability not supported")
        return False

def apply_settings_to_scanner(src):
    """Apply the current settings to the scanner source"""
    try:
        # Set basic scan parameters
        if current_settings['scan_mode'] == 'Color':
            src.set_capability(twain.ICAP_PIXELTYPE, twain.TWPT_RGB)
        elif current_settings['scan_mode'] == 'Grayscale':
            src.set_capability(twain.ICAP_PIXELTYPE, twain.TWPT_GRAY)
        else:  # Black & White
            src.set_capability(twain.ICAP_PIXELTYPE, twain.TWPT_BW)
        
        src.set_capability(twain.ICAP_XRESOLUTION, float(current_settings['resolution']))
        src.set_capability(twain.ICAP_YRESOLUTION, float(current_settings['resolution']))
        
        # Set document size (simplified)
        if current_settings['document_size'] == 'A4':
            src.set_capability(twain.ICAP_SUPPORTEDSIZES, twain.TWSS_A4)
        
        # Set brightness and contrast if supported
        src.set_capability(twain.ICAP_BRIGHTNESS, float(current_settings['brightness']))
        src.set_capability(twain.ICAP_CONTRAST, float(current_settings['contrast']))
        
        # Set auto crop if supported
        if current_settings['auto_crop']:
            src.set_capability(twain.ICAP_AUTOMATICBORDERDETECTION, True)
        
    except twain.excTWCC_CAPUNSUPPORTED:
        print("Some capabilities are not supported by this scanner")

def process_scanned_image(img):
    """Handle the scanned image (save or display)"""
    global scanned_image
    
    # Save to file if destination is set to file
    if current_settings['destination'] == 'File' and current_settings['file_path']:
        file_ext = current_settings['file_format'].lower()
        if file_ext == 'jpeg':
            file_ext = 'jpg'
        # Add timestamp to filename for ADF scans
        timestamp = datetime.datetime.now().strftime("%Y%m%d_%H%M%S_%f")
        img.save(f"{current_settings['file_path']}_{timestamp}.{file_ext}")
    
    # Display in UI (only the last image for ADF)
    width, height = img.size
    factor = 600.0 / width
    scanned_image = PIL.ImageTk.PhotoImage(img.resize(size=(int(width * factor), int(height * factor))))
    image_frame.destroy()
    ttk.Label(root, image=scanned_image).pack(side="left", fill="both", expand=1)

def scan():
    global scanned_image
    with twain.SourceManager(root) as sm:
        src = sm.open_source()
        if src:
            try:
                # Check ADF support
                adf_supported = check_adf_support(src)
                
                # Apply settings before scanning
                apply_settings_to_scanner(src)
                
                if adf_supported:
                    # Enable ADF mode
                    src.set_capability(twain.CAP_FEEDERENABLED, True)
                    src.set_capability(twain.CAP_AUTOFEED, True)
                    print("Scanning using ADF mode...")
                else:
                    print("Scanning in flatbed mode...")
                
                # Scan loop for ADF (will scan once if flatbed)
                while True:
                    src.request_acquire(show_ui=False, modal_ui=False)
                    (handle, remaining_count) = src.xfer_image_natively()
                    
                    if handle is None:
                        break
                        
                    bmp_bytes = twain.dib_to_bm_file(handle)
                    img = PIL.Image.open(BytesIO(bmp_bytes), formats=["bmp"])
                    process_scanned_image(img)
                    
                    # Break if no more documents in ADF
                    if remaining_count == 0:
                        break
                        
            except Exception as e:
                messagebox.showerror("Scan Error", f"Error during scanning: {e}")
            finally:
                src.destroy()
        else:
            messagebox.showwarning("Warning", "No scanner selected")

def test_adf_support():
    """Test if ADF is supported and show result in messagebox"""
    with twain.SourceManager(root) as sm:
        src = sm.open_source()
        if src:
            try:
                # Check basic ADF support
                try:
                    has_adf = src.get_capability(twain.CAP_FEEDER)
                except:
                    has_adf = False
                
                # Check more detailed ADF capabilities
                capabilities = {
                    'CAP_FEEDER': has_adf,
                    'CAP_FEEDERENABLED': False,
                    'CAP_FEEDERLOADED': False,
                    'CAP_AUTOFEED': False,
                    'CAP_FEEDERPREP': False
                }
                
                for cap in capabilities.keys():
                    try:
                        capabilities[cap] = src.get_capability(getattr(twain, cap))
                    except:
                        pass
                
                # Build results message
                result_msg = "ADF Test Results:\n\n"
                result_msg += f"Basic ADF Support: {'Yes' if capabilities['CAP_FEEDER'] else 'No'}\n"
                result_msg += f"ADF Enabled: {'Yes' if capabilities['CAP_FEEDERENABLED'] else 'No'}\n"
                result_msg += f"Documents Loaded: {'Yes' if capabilities['CAP_FEEDERLOADED'] else 'No'}\n"
                result_msg += f"Auto-feed Available: {'Yes' if capabilities['CAP_AUTOFEED'] else 'No'}\n"
                result_msg += f"Needs Preparation: {'Yes' if capabilities['CAP_FEEDERPREP'] else 'No'}\n"
                
                messagebox.showinfo("ADF Test", result_msg)
                
            except Exception as e:
                messagebox.showerror("Error", f"Error testing ADF: {e}")
            finally:
                src.destroy()
        else:
            messagebox.showwarning("Warning", "No scanner selected")

def browse_file():
    filename = filedialog.asksaveasfilename(
        defaultextension=f".{current_settings['file_format'].lower()}",
        filetypes=[(f"{current_settings['file_format']} files", f"*.{current_settings['file_format'].lower()}")]
    )
    if filename:
        current_settings['file_path'] = filename
        file_path_var.set(filename)

def update_setting(setting_name, value):
    current_settings[setting_name] = value
    if setting_name == 'file_format' and current_settings['file_path']:
        # Update file extension if file path exists
        base_path = current_settings['file_path'].rsplit('.', 1)[0]
        current_settings['file_path'] = base_path
        file_path_var.set(base_path)

def create_settings_panel(parent):
    # Scan Mode
    ttk.Label(parent, text="Scan Mode:").grid(row=0, column=0, sticky='w')
    scan_mode = ttk.Combobox(parent, values=['Color', 'Grayscale', 'Black & White'], state='readonly')
    scan_mode.set(current_settings['scan_mode'])
    scan_mode.grid(row=0, column=1, sticky='ew')
    scan_mode.bind('<<ComboboxSelected>>', lambda e: update_setting('scan_mode', scan_mode.get()))
    
    # Resolution
    ttk.Label(parent, text="Resolution (DPI):").grid(row=1, column=0, sticky='w')
    resolution = ttk.Combobox(parent, values=[75, 150, 300, 600, 1200], state='readonly')
    resolution.set(current_settings['resolution'])
    resolution.grid(row=1, column=1, sticky='ew')
    resolution.bind('<<ComboboxSelected>>', lambda e: update_setting('resolution', int(resolution.get())))
    
    # Document Size
    ttk.Label(parent, text="Document Size:").grid(row=2, column=0, sticky='w')
    doc_size = ttk.Combobox(parent, values=['A4', 'Letter', 'Legal', 'Auto'], state='readonly')
    doc_size.set(current_settings['document_size'])
    doc_size.grid(row=2, column=1, sticky='ew')
    doc_size.bind('<<ComboboxSelected>>', lambda e: update_setting('document_size', doc_size.get()))
    
    # Document Type
    ttk.Label(parent, text="Document Type:").grid(row=3, column=0, sticky='w')
    doc_type = ttk.Combobox(parent, values=['Normal', 'Text', 'Photo', 'Magazine'], state='readonly')
    doc_type.set(current_settings['document_type'])
    doc_type.grid(row=3, column=1, sticky='ew')
    doc_type.bind('<<ComboboxSelected>>', lambda e: update_setting('document_type', doc_type.get()))
    
    # Auto Crop
    auto_crop = tk.BooleanVar(value=current_settings['auto_crop'])
    ttk.Checkbutton(parent, text="Auto Crop", variable=auto_crop, 
                   command=lambda: update_setting('auto_crop', auto_crop.get())).grid(row=4, column=0, columnspan=2, sticky='w')
    
    # Brightness
    ttk.Label(parent, text="Brightness:").grid(row=5, column=0, sticky='w')
    brightness = ttk.Scale(parent, from_=-100, to=100, value=current_settings['brightness'])
    brightness.grid(row=5, column=1, sticky='ew')
    brightness.bind('<ButtonRelease-1>', lambda e: update_setting('brightness', brightness.get()))
    
    # Contrast
    ttk.Label(parent, text="Contrast:").grid(row=6, column=0, sticky='w')
    contrast = ttk.Scale(parent, from_=-100, to=100, value=current_settings['contrast'])
    contrast.grid(row=6, column=1, sticky='ew')
    contrast.bind('<ButtonRelease-1>', lambda e: update_setting('contrast', contrast.get()))
    
    # Destination
    ttk.Label(parent, text="Destination:").grid(row=7, column=0, sticky='w')
    dest_frame = ttk.Frame(parent)
    dest_frame.grid(row=7, column=1, sticky='ew')
    
    destination = tk.StringVar(value=current_settings['destination'])
    ttk.Radiobutton(dest_frame, text="Screen", variable=destination, value="Screen",
                   command=lambda: update_setting('destination', destination.get())).pack(side='left')
    ttk.Radiobutton(dest_frame, text="File", variable=destination, value="File",
                   command=lambda: update_setting('destination', destination.get())).pack(side='left')
    
    # File Format
    ttk.Label(parent, text="File Format:").grid(row=8, column=0, sticky='w')
    file_format = ttk.Combobox(parent, values=['JPEG', 'PNG', 'BMP', 'TIFF'], state='readonly')
    file_format.set(current_settings['file_format'])
    file_format.grid(row=8, column=1, sticky='ew')
    file_format.bind('<<ComboboxSelected>>', lambda e: update_setting('file_format', file_format.get()))
    
    # File Path
    ttk.Label(parent, text="File Path:").grid(row=9, column=0, sticky='w')
    global file_path_var
    file_path_var = tk.StringVar(value=current_settings['file_path'])
    path_frame = ttk.Frame(parent)
    path_frame.grid(row=9, column=1, sticky='ew')
    ttk.Entry(path_frame, textvariable=file_path_var).pack(side='left', fill='x', expand=True)
    ttk.Button(path_frame, text="Browse...", command=browse_file).pack(side='left')
    
    # Scan Button
    ttk.Button(parent, text="Scan", command=scan).grid(row=10, column=0, columnspan=2, pady=10)
    
    # ADF Test Button
    ttk.Button(parent, text="Test ADF Support", command=test_adf_support).grid(row=11, column=0, columnspan=2, pady=5)

# Main application setup
logging.basicConfig(level=logging.DEBUG)
root = tk.Tk()
root.title("Scanner Application with ADF Test")

# Main frame
main_frame = ttk.Frame(root, padding=10)
main_frame.pack(fill='both', expand=True)

# Settings panel on the left
settings_frame = ttk.LabelFrame(main_frame, text="Scanner Settings", padding=10)
settings_frame.pack(side='left', fill='y')

# Image display area on the right
image_frame = ttk.Frame(main_frame)
image_frame.pack(side='right', fill='both', expand=True)

create_settings_panel(settings_frame)

root.mainloop()

I have this for only flat bet mode.
But I want ADF mode using python.

Anybody experieced?

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: ricky Feli

79550602

Date: 2025-04-02 12:20:59
Score: 3.5
Natty:
Report link

You can try rclone, which can sync AWS S3 directly with LocalStack S3.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: W A J Amasara

79550599

Date: 2025-04-02 12:20:58
Score: 4
Natty:
Report link

I think it's NOT a real answer, but a workaround. MS should work on this.

This article helped me. Basically, I had to delete the "My Exported Templates" folder and now Visual Studio created the Folder and the Template.

The template was finally created!

Reasons:
  • Blacklisted phrase (1): This article
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Angelo Bernardi

79550591

Date: 2025-04-02 12:17:57
Score: 2
Natty:
Report link

please restart the database, it will work

"message": "could not execute statement; SQL [n/a]; nested exception is org.hibernate.PessimisticLockException: could not execute statement",

Select @@innodb_lock_wait_timeout;

set innodb_lock_wait_timeout=100

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

79550583

Date: 2025-04-02 12:14:56
Score: 0.5
Natty:
Report link
 "HttpClient": {
    "DefaultProxy": {
      "Enabled": true,
      "Address": "http://your-proxy-server:port",
      "BypassOnLocal": false,
      "UseDefaultCredentials": false
    }
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abhilab Das

79550579

Date: 2025-04-02 12:12:56
Score: 2.5
Natty:
Report link

Hi here's couple of hints.

First, are you using a form to send data, sometimes it's just simple as that.

Second, is your token well set into the form ? or html page ?

And third, try to make sure that your model is bonded correctly with your project.

Good luck

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

79550568

Date: 2025-04-02 12:08:55
Score: 0.5
Natty:
Report link

Using this CSS finally solved it

code {
  font-family: &quot;verdana&quot;;
  font-size: 18px;
  color: black;
  font-weight: bold !important;
  line-height: 1.5 !important;
  }
@media (max-width: 480px) {
code {
  font: 18px "verdana" !important;
  }
}
@media (min-width: 481px) and (max-width: 767px) {
code {
  font: 18px "verdana" !important;
  }
}
@media (min-width: 768px) and (max-width: 1024px) {
code {
  font: 18px "verdana" !important;
  }
}
@media (min-width: 1025px) and (max-width: 1280px) {
code {
  font: 18px "verdana" !important;
  }
}
@media (min-width: 1281px) {
code {
  font: 18px "verdana" !important;
  }
}
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Zion ToDo

79550563

Date: 2025-04-02 12:06:54
Score: 1
Natty:
Report link

To prevent Flutter from uninstalling and reinstalling the app every time you run flutter run, try these:

Connect your device to the device where Flutter is installed, then open the command prompt and run the flutter logs command. After that, launch the app you want to debug.

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

79550561

Date: 2025-04-02 12:05:54
Score: 3.5
Natty:
Report link

This issue might be if your machine time is out of sync

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

79550552

Date: 2025-04-02 12:01:52
Score: 1.5
Natty:
Report link

To fix this issue with SQLAlchemy, you need to use the correct driver syntax. For MySQL connections with public key retrieval, use mysql+pymysql:// instead of mysql:// and add the parameters to the query string:

engine = create_engine('mysql+pymysql://poopoo:peepee@localhost:32913/test?allowPublicKeyRetrieval=true&useSSL=false')

If you're still getting errors, you can also try passing these parameters via connect_args with the correct format:

engine = create_engine(
    'mysql+pymysql://poopoo:peepee@localhost:32913/test',
    connect_args={
        "ssl": {"ssl_mode": "DISABLED"},
        "allow_public_key_retrieval": True
    }
)

Make sure you have the pymysql driver installed: pip install pymysql.

Reasons:
  • Blacklisted phrase (2): poop
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aryan Raj

79550551

Date: 2025-04-02 12:01:52
Score: 2
Natty:
Report link

Install @nestjs/platform-express that is compatible with your project. Try a lower version of @nestjs/platform-express

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

79550549

Date: 2025-04-02 12:00:52
Score: 1
Natty:
Report link

I attach also my issue, which is similar, I think a solution is to override the _receive method of the gremlin-python connection.py module, simply trying a reconnection before the 'finally' statement which puts it back into the pool.

similar issue - connection pool not automatically repaired

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: marcoleino

79550548

Date: 2025-04-02 11:59:51
Score: 1
Natty:
Report link

The way I go about this is using ipykernel in my virtual environments which I need to use with the Jupyter notebooks so that I can switch to the appropriate environments when using the notebook.

All I need to do is to switch between environments to make sure I only need the one that is for the Jupyter notebook.

P.S. a new utility is in town called Puppy. You might want to give this a read!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Pratyush Shukla

79550542

Date: 2025-04-02 11:55:51
Score: 3
Natty:
Report link

Okay I think there was just something wrong with my build and it was throwing me off because the debugger stopped working (tried adding breakpoints and getting errors that they wouldnt be hit/couldnt load symbols). I rebuilt everything and it seems to be working. Appreciate all the help!

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

79550537

Date: 2025-04-02 11:54:50
Score: 3.5
Natty:
Report link

7 years later but here to comment that we are happy with the layout [here](https://epiforecasts.io/EpiNow2/stan/), incase anyone is still interested.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: James Azam

79550527

Date: 2025-04-02 11:51:49
Score: 1
Natty:
Report link

AWS SDK in general has a good way for looking for configuration with minimal intervention / configuration from the developer, as long as you make sure you have the necessary configuration in place, either it's giving necessary IAM Policy access or having temporary credentials placed in a config file.

Please have a deep dive into

https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/credentials.html

Which basically suggests you don't need to specify anything if you assign the right policy to the resource you are running your code at.

Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: M.Elfeky

79550522

Date: 2025-04-02 11:49:48
Score: 1
Natty:
Report link

The QuadraticSum constructor takes in a heterogeneous list of numbers, linear expresisons and quadratic expressions, and adds them up. So objective_2 is just x+y in your code.

Generally, you do not need to invoke that constructor/use that type directly, just use operator overloads, QuadraticExpression(), and mathopt.fast_sum()

https://github.com/google/or-tools/blob/stable/ortools/math_opt/python/expressions.py#L27

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

79550514

Date: 2025-04-02 11:46:47
Score: 6 🚩
Natty: 5
Report link

here's my query but it does not show anything on the map.

json_build_object('type', 'Polygon','geometry', ST_AsGeoJSON(ST_Transform(geom, 4326))::json)::text as geojson

any idea?

Reasons:
  • Blacklisted phrase (1): any idea?
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: jake_ga

79550500

Date: 2025-04-02 11:40:46
Score: 1.5
Natty:
Report link

Please refer to Joel Geraci reply from this blog, where the save is registered with a callback, from here you can use the updated data.

Reasons:
  • Blacklisted phrase (1): this blog
  • Whitelisted phrase (-1.5): you can use
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shakir Ali Shaik

79550493

Date: 2025-04-02 11:38:44
Score: 6 🚩
Natty:
Report link

same question,

stream splits tool_calls and returns data: {"choices":[{"delta":{"content":null,"tool_calls":[{"function":{"arguments":"{\"city\": \""}," 



so that the complete parameters cannot be obtained, but I don't know how to solve it


Map<String, Object> arguments = ModelOptionsUtils.jsonToMap(functionInput);
Reasons:
  • Blacklisted phrase (1): how to solve
  • RegEx Blacklisted phrase (2): I don't know how to solve
  • RegEx Blacklisted phrase (1): same question
  • RegEx Blacklisted phrase (2): know how to solve
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ldl

79550492

Date: 2025-04-02 11:38:44
Score: 5.5
Natty: 5
Report link

Inspired by @Oliver Matthews' answer, I create a repository on markdown-include: https://github.com/atlasean/markdown-include .

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

79550483

Date: 2025-04-02 11:31:42
Score: 1
Natty:
Report link

Few points for consideration:

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

79550477

Date: 2025-04-02 11:28:41
Score: 0.5
Natty:
Report link
import matplotlib.pyplot as plt

# Data for the diagram
categories = [
    "Водогосподарська проблема",
    "Енергетична проблема",
    "Сировинна проблема",
    "Глобальна продовольча проблема",
    "Охорона Світового океану",
    "Освоєння космосу"
]
importance = [9, 8, 7, 8, 6, 5]  # Importance rating from 1 to 10 for each problem

# Create the diagram
plt.figure(figsize=(10,6))
plt.barh(categories, importance, color='skyblue')
plt.xlabel("Важливість проблеми (оцінка від 1 до 10)")
plt.title("Оцінка важливості глобальних проблем в системі «суспільство-природа» в Україні")
plt.gca().invert_yaxis()  # Invert the order on the Y-axis
plt.tight_layout()
plt.show()
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Khrystyna

79550473

Date: 2025-04-02 11:27:40
Score: 1.5
Natty:
Report link

Efectivamente funciona con "react-native-google-places-autocomplete": "^2.5.6" aunque en mi caso y me imagino que para el de todos no hace falta instalar 'react-native-get-random-values' ya que esta version al parecer no la necesita, de hecho te puedes ahorrar muchos errores desinstalando 'react-native-get-random-values' si ya lo habias instalado.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rubén Andia pimentel

79550469

Date: 2025-04-02 11:26:40
Score: 2.5
Natty:
Report link

You can use Reactotron. It's easy to setup.

link here https://docs.infinite.red/reactotron/

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: cmcWebCode

79550466

Date: 2025-04-02 11:24:39
Score: 0.5
Natty:
Report link

I decided to drop this idea, because from what I found nginx and Apache are not able to use certificate in the middle of the chain as CA to authenticate clients. In case anyone wonders, I ended up using same self-signed CA and same client certificate, only I pinned its fingerprint for the site when I planned to use admin-ca.cer certificate.

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

79550463

Date: 2025-04-02 11:23:39
Score: 3.5
Natty:
Report link

it shows in milliseconds, you have to divide this value by 1000 and get the right value in seconds

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

79550462

Date: 2025-04-02 11:23:39
Score: 2.5
Natty:
Report link

The url field contains data:application/pdf;base64,..., which might not be properly handled by some clients. Try sending the Base64 content separately in a downloadable format instead of embedding it directly in a url.

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

79550457

Date: 2025-04-02 11:22:39
Score: 0.5
Natty:
Report link

Force handling errors globally:

Configured Flask and Flask-RESTful to propagate JWT exceptions correctly by adding the following code to init.py:

app.config['PROPAGATE_EXCEPTIONS'] = True  # Propagate exceptions to the client
api.handle_errors = False                  # Disable Flask-RESTful 

This provided the results I was looking for and I successfully tested the JWT lifecycle:

  1. Login: Issued JWT tokens via /api/login.

  2. Valid Token: Accessed protected resource successfully.

  3. Expired Token: Received expected 401 error ("Token has expired").

  4. Token Refresh: Successfully refreshed JWT token via /api/refresh.

  5. New Token: Validated new token with protected endpoint access.

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

79550445

Date: 2025-04-02 11:15:36
Score: 0.5
Natty:
Report link

In 2025 using base-select allows styling the <select> see details here https://developer.chrome.com/blog/a-customizable-select and https://codepen.io/web-dot-dev/pen/zxYaXzZ

At the time of writing this only supports chrome and edge - https://caniuse.com/mdn-css_properties_appearance_base-select

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

79550437

Date: 2025-04-02 11:07:35
Score: 3
Natty:
Report link

Suprememobiles, One Stop Destination for all Electronics Needs 5g Mobile phones & Tablets | Laptops | Smart TV's | Smartwatch | Earbuds | Headphone | Home Appliances. We are dealing multi-brand like Apple, Samsung, Xiaomi, Realme, Vivo phone, Oppo phone, Motorola phone, OnePlus, Nokia, Tecno.

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

79550434

Date: 2025-04-02 11:07:35
Score: 1
Natty:
Report link

Try this small util I wrote. While searching for the same topic, I found your question

https://github.com/denistiano/bertsonify

I was solving the same thing. If trained with quality data seems to give okay results. Obviously the more complex the object, the harder it is to have quality output.

Reasons:
  • Whitelisted phrase (-1): Try this
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Denis Iliev

79550430

Date: 2025-04-02 11:06:35
Score: 0.5
Natty:
Report link

Welcome to Windows app development! Here's a breakdown of compatibility for different Windows versions and some guidance on how to approach development.

App Compatibility Across Windows Versions

Microsoft has had different development frameworks for its platforms, and compatibility depends on which one you are using:

1. Windows Phone 8.0 Apps on Other Versions

2. Windows 8 / 8.1 and Windows RT Apps on Other Versions

What You Need to Do

If you want your app to run across multiple platforms, consider these approaches:

  1. Use Windows Phone 7.x SDK (if targeting WP7.8)

    • If your app must support Windows Phone 7.8, use the Windows Phone SDK 7.1 (not 8.0).

    • However, WP7.8 is very outdated, and it’s better to focus on newer versions.

  2. Develop a Universal Windows App (for Windows 8.1 and Windows Phone 8.1)

    • If you want to support both Windows Phone 8.1 and Windows 8.1, use the Universal Windows App framework.

    • This lets you share a common codebase while keeping platform-specific optimizations.

  3. Target UWP (Universal Windows Platform) for Future-Proofing

    • If possible, migrate to UWP (Windows 10 and later), which supports desktops, tablets, and phones under one framework.
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: App Scoop

79550428

Date: 2025-04-02 11:05:34
Score: 1.5
Natty:
Report link

Using the outline utility, you can change the focus border color in Tailwind CSS.

For example:

<input
  className="focus:outline-gray-400"
/>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohit Jha

79550417

Date: 2025-04-02 10:58:33
Score: 1.5
Natty:
Report link

Yes you are correct play store or app store does not allow you to publish app for only some certain cities. But you could handle it from your end, by fetching the current location of the user. you will easily get latitude and longitude of the user, using which you can easily get the user's state or city, then proceed with your logic only if the user is at your desired location.

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

79550416

Date: 2025-04-02 10:57:32
Score: 1.5
Natty:
Report link

Sequoia 15.3.2 M3 chip.

brew install cmake didn't work for me, so I tried next:

brew install pkg-config
brew install cmake libgit2
bundle install
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: cyx

79550415

Date: 2025-04-02 10:56:32
Score: 1
Natty:
Report link

I read the article linked in the first comment and solved it!

#include <bits/stdc++.h>

Instead of adding a header file like above, I added only the necessary files as shown below.

#include <string>
#include <array>
#include <bitset>
#include <utility>
#include <iostream>
#include <iomanip>
#include <future>

And adding -stdlib=libc++ to the compile command solved it!

g++ -std=c++17 -stdlib=libc++ -I/opt/homebrew/opt/cryptopp/include/cryptopp -L/opt/homebrew/opt/cryptopp/lib -lcryptopp DES_Encryption.cpp -o DES_Encryption && ./DES_Encryption

Thank you to everyone who responded.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: binary_right_010.011

79550411

Date: 2025-04-02 10:55:32
Score: 1.5
Natty:
Report link

Starting at line 85 you can see the issue. That shouldn't be there.

}
[root@server ~]# sudo vi /etc/nginx/nginx.conf
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: CookieKiller

79550407

Date: 2025-04-02 10:51:31
Score: 1.5
Natty:
Report link

1. Create a batch file "run.bat" and write a set of commands in that file
2. Create a Task in Task Scheduler and give a proper name, and in the triggers section Choose "Weekly" and set it to run every Monday at your desired time.
3. choose program in the action and choose the batch file created in the above.
4. save

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Narendra Poojana Boyina

79550405

Date: 2025-04-02 10:49:30
Score: 1
Natty:
Report link

You are mixing two different packages, which are both shadcn ports for flutter.

The example is from shadcn_flutter but the tabs are from shadcn_ui. Try to use one of the two.

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

79550399

Date: 2025-04-02 10:44:29
Score: 1.5
Natty:
Report link
var userName = result.ClaimsPrincipal?.Claims  
.FirstOrDefault(c =\> c.Type.Equal("name",OrdinalIgnoreCase))?.Value;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: KishoreKumarS

79550397

Date: 2025-04-02 10:43:29
Score: 4
Natty: 4.5
Report link

Migrating from 0.11.x to 0.12+

https://ffmpegwasm.netlify.app/docs/migration

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

79550395

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

As per docs https://cloud.google.com/compute/docs/create-windows-server-vm-instance, windows is not covered under free trial

Possible next step to try is to activate a full billing account https://cloud.google.com/free/docs/free-cloud-features#how-to-upgrade

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

79550390

Date: 2025-04-02 10:36:27
Score: 1.5
Natty:
Report link

You Guys can use this package

dom-speech-recognition

https://www.npmjs.com/package/@types/dom-speech-recognition
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Himanshu Taviyad

79550381

Date: 2025-04-02 10:30:25
Score: 2.5
Natty:
Report link

I'm experiencing the same issue. When I download it, it pulls empty data and doesn't show anything. This problem probably started today. Unfortunately, we weren't able to send reports to our clients.

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

79550377

Date: 2025-04-02 10:26:24
Score: 4.5
Natty: 5.5
Report link

I create a repository on markdown-include: https://github.com/atlazean/markdown-include

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

79550375

Date: 2025-04-02 10:25:24
Score: 3.5
Natty:
Report link

The Chart Visualizer in Megaladata does not directly support aggregation operations. It is designed to display the relationship between fields.

To aggregate data before visualization:

1. Use the Grouping component to aggregate your data (e.g., sum, average, count).

2. Use the aggregated data as input for the Chart Visualizer.

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

79550374

Date: 2025-04-02 10:25:24
Score: 1.5
Natty:
Report link

If the program terminates abruptly due to unhandled exceptions, destructor for global objects might not be called. This happens because operating system might not give enough time to cleanup resources properly.

Try using smart pointers for resource management to avoid such issues.

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

79550373

Date: 2025-04-02 10:24:23
Score: 3
Natty:
Report link

I there any update on how this can be done. Currently I also need similar functionality in table

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

79550370

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

Thanks to @JulianKoster, I realized that asset-mapper wasn't installed, causing this issue, here is the fix:

composer require symfony/asset-mapper symfony/asset symfony/twig-pack

Read: https://symfony.com/doc/current/frontend/asset_mapper.html

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JulianKoster
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Lunyx

79550358

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

For this level of detail you'll need to write a custom reporter plug-in. This will have the ability to introspect the whole workflow and you can also examine input/output files themselves (needed for 3) which a generic plugin is not going to do.

You could then export all the info as JSON, or you could have your plugin update your database directly.

See:

https://github.com/snakemake/snakemake-interface-report-plugins/tree/main

And here is an example of a plugin:

https://github.com/UoMResearchIT/ro-crate_snakemake_tooling/tree/develop/snakemake-report-plugin-wrroc/snakemake_report_plugin_wrroc

Note - when making a test plugin I found that using poetry, as suggested here, was more of a hindrance than a help, but YMMV.

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

79550353

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

You could use COALESCE to change the NULL values.

select 
       coalesce(path, '') as path
      ,comment 
from  read_csv('${path}')
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mike_W

79550348

Date: 2025-04-02 10:15:21
Score: 2.5
Natty:
Report link

I prefer sonarLint , it highlights possible NullPointerException risks.

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