79566862

Date: 2025-04-10 14:03:13
Score: 0.5
Natty:
Report link

A lot of people are thinking that the CI means continues integration. But actually it is meaning "clean install".

Therefore, removing node_modules is very expected.

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

79566850

Date: 2025-04-10 13:59:12
Score: 0.5
Natty:
Report link

What happens is at every node model will (1) take all the features available (p in your notation) and randomly take a subset of m (in your notation) features from it. Then, (2) it will set a threshold for each of them and using impurity or entropy (3) choose the one giving the best split - where the two subsets of samples are the most alike. And it will do it every time exactly in this order - for every node.

Basically, there are 3 possible ways to set max_features: all features, only 1 at a time and options in between. Those will be m. What is the difference?

  1. When selecting all (default), model will have every time the most wide selection of parameters on which it will perform step (2) and choose the best one in step (3). This is a common approach and unless you have a giant dataset and heavy tuning or something of a sort that requires you to be more computationally efficient, this is the best bet.

  2. Choosing 1 feature basically kills the power of the algorithm, as there is nothing to choose the best split from, so the whole concept of best split is not applicable here, as the model will do the only possible split - on that one feature randomly taken at step (1). Performance of the algorithm here is an average of randomness in that feature selection at step (1) and bootstrapping. This is still a way to go if the task is relatively simple, most of the features are heavily multicollinear, and computational efficiency is your priority.

  3. Middle ground when you want to gain some speed on heavy computations but don't want to kill all the magic of choosing the feature with the best threshold for the split.

So I would like to emphasize that randomness of the forest always come from bootstrapping of the data and random selection of that one feature per node. max_features just gives an opportunity to add an extra step for extra randomness to mostly gain computational performance, though sometimes helps with regularization.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (1):
Posted by: Razguliaev Nikita

79566842

Date: 2025-04-10 13:56:11
Score: 1
Natty:
Report link

I have found my mistake, the code below:

int x = j - (center+1), y = i - (center+1);

should be this:

int x = j - center, y = i - center;

The kernel is 5×5, then center = 2. Because of trying to shift the kernel window such that it centers around (0,0) — so it should range from -2 to +2. My mistake had it from -3 to +1, which is off by one and leads to asymmetric blur.

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

79566833

Date: 2025-04-10 13:53:10
Score: 2
Natty:
Report link

What I normally do is to create a test project in Xcode (you don't have to add anything to it). And then run that project from Xcode with the simulator. This will open the simulator. Now you should be able to see the simulator device in VSCode or Android Studio. So you can close the test project and Xcode and run your app from your IDE. This is so common I keep a test project in Xcode named "Blank for Simulator" so I can do this.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (0.5):
Posted by: buckleyJohnson

79566828

Date: 2025-04-10 13:50:10
Score: 0.5
Natty:
Report link

I m able to resolve this issue

sudo apt-get install gnupg curl
 
curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | \
   sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
   --dearmor
 
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list
 
sudo apt-get update
 
sudo apt-get install -y mongodb-org
 
sudo service mongod start  
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ahmed Belghith

79566814

Date: 2025-04-10 13:45:08
Score: 1.5
Natty:
Report link

You have to make sure that all of the information for in-app purchases has been entered into the App Store. Including icons and contact info. Even though it says it's "Optional", you still have to add it....The answer to your questions: "Do I really need to submit a version of the app with the IAPs attached for review just to be able to fetch them using queryProductDetails?...is No. Once you have finished setting up your in-app purchase the list will no longer be empty. You can do this on the App Store prior to getting your app approved, unlike the Play Store.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: buckleyJohnson

79566808

Date: 2025-04-10 13:43:08
Score: 2
Natty:
Report link

Yes, there is a mistake there and it still exists. I found it now also in Online Test Bank in Sybex. They even explain the correct answer themselves.

Which of the following are not globally based AWS services? (Choose two.) A. RDS B. Route 53 C. EC2 D. CloudFront

Explanation Relational Database Service (RDS) and EC2 both use resources that can exist in only one region. Route 53 and CloudFront are truly global services in that they’re not located in or restricted to any single AWS region.

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

79566807

Date: 2025-04-10 13:43:08
Score: 3
Natty:
Report link

my problem was when I loaded the route to redirect to the events page before closing the modal. What caused the error "ERROR: Cannot activate an already activated exit"?

I tried closing the modal first, but I was unsuccessful with the navigation. My alternative was to apply the modal as a normal page, and call it in routes, making the standard navigation as a page.

enter image description here

enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Gustavo Karnopp

79566801

Date: 2025-04-10 13:42:07
Score: 3
Natty:
Report link

libredwg-web

libredwg-web is a web assembly version of libredwg. It can parse dwg file in browser.

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

79566799

Date: 2025-04-10 13:41:07
Score: 0.5
Natty:
Report link

I usually fix this with 0x0a as proposed by J.Perkins above. Actually, I don't fix it: all of my scripts use 0x0a. I hit this problem so rarely that I always have to search for the fixes because it is too long between breakages.

The problem this time is that the file had no CRLF on the last line. Added CRLF and ... runs like a champ.

*As for Contango's comment that he has "never managed to get a real world .csv file to import using this method". He is correct. If your "real world" is 3rd party datasets, then BULK INSERT is a really, really bad idea. My real world is very different. My team creates the file using bcp. Yep. Always pristine data. Well ... almost always. Developer modified the file after it was created.

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

79566795

Date: 2025-04-10 13:40:07
Score: 3.5
Natty:
Report link

From the list of emulators in Android Studio, cold start the emulator.

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

79566791

Date: 2025-04-10 13:38:06
Score: 3.5
Natty:
Report link

Hi i just resolved the issue on my own. For anyone else being this new, the navbar is creating the componenst based on the files you have in your (tabs) folder

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

79566780

Date: 2025-04-10 13:31:04
Score: 1
Natty:
Report link

After obtaining the token, you need to include it in the headers of your request as:

{
    "key": "X-Angie-AuthApiToken",
    "value": "YOUR_TOKEN",
    "type": "text"
},

Replace "YOUR_TOKEN" with the actual token value you recieved.

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

79566770

Date: 2025-04-10 13:26:03
Score: 0.5
Natty:
Report link

The driver is a dll that is needed for authentication and establishing a communication channel with the database. They can be different and provide a basic API (the lowest-level database access). They work, as you put it, directly with the PostgreSQL protocols. It is for them that you write the server address, port, login, password, encoding,...

Component libraries (FireDAC, ZEOS, UniDAC, ...) provide convenient access to database functionality (Queries, Tables, Connection, Meta Information, Transactions, ...).

ORM is designed to hide low-level information about a database and work with information as objects. None of these components optimize your queries, no matter how much you want them to. There are separate tools for optimization, where you prepare the request.

If you are still in doubt, write a short application with your request and check how many bytes the server will return to you!

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

79566767

Date: 2025-04-10 13:26:03
Score: 2.5
Natty:
Report link

I've had a similar issue, for me clip-path: inset(0 round 0.5rem); fixed it!

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

79566758

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

These positions are automatically calculated, and there is no way to move them directly.

Instead, you need to update the pose.heading for each photo, so that the center of each photo points to north. Also, make sure that the GPS location is correct. If everything is correct, the arrows will eventually appear at the correct locations. Please note, the update can take up to several days/weeks.

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

79566750

Date: 2025-04-10 13:21:01
Score: 1
Natty:
Report link
Hola, el problema es que estás intentando formatear algo como si fuera una cadena de texto con formato de fecha u hora.

Pero como el valor es un TimeSpan, no acepta el formato "hh:mm:ss" directamente en la propiedad .DefaultCellStyle.Format.

Tenes que convertir el TimeSpan manualmente.
Justo después de llenar el DataGridView, podés recorrer las filas y formatear el valor, ejemplo:

For Each row As DataGridViewRow In DataGridView1.Rows
    If Not row.IsNewRow Then
        Dim hora As TimeSpan = CType(row.Cells(2).Value, TimeSpan)
        row.Cells(2).Value = hora.ToString("hh\:mm\:ss") ' O solo "hh\:mm"
    End If
Next
Reasons:
  • Blacklisted phrase (1): está
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: jazlq1

79566747

Date: 2025-04-10 13:19:00
Score: 8 🚩
Natty:
Report link

I am seeing the same problem with protobuf. As soon as I try to parse a Message, it crashes. If anyone find a solution, please share it. For now going back to 16.2.

Reasons:
  • RegEx Blacklisted phrase (2.5): please share
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am seeing the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Thierry Bastian

79566717

Date: 2025-04-10 13:05:55
Score: 6.5 🚩
Natty:
Report link

I am having the same issue, the process takes more than 60 minutes for some files and the upload URL has expired when de workitem ends, which results is upload failed. I believe I cannot change the uploadURL to the workItem which is currently running to avoid the expiration of it. The answer from @Emma Zhu requires as well the signed URL where minutesExpiration can be set to 60 minutes max. So, it didn't help. I hope someone knows how to achieve it

Reasons:
  • Blacklisted phrase (1): how to achieve
  • Blacklisted phrase (0.5): I cannot
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • User mentioned (1): @Emma
  • Low reputation (1):
Posted by: Javier

79566703

Date: 2025-04-10 12:57:53
Score: 3
Natty:
Report link

It's old question but situation with users synchronization between MySQL and AD/LDAP stays the same at all, except some commercial tools. But a while ago utility forked from EnterpriseDB pgldapsync appeared - myldapsync. Maybe it could be heplfull for someone.

PyPI page - https://pypi.org/project/myldapsync/

GitHub page - https://github.com/6eh01der/myldapsync

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

79566702

Date: 2025-04-10 12:56:52
Score: 4.5
Natty:
Report link

Just to let you know, APISIX Community is calling for a new dashboard: https://lists.apache.org/thread/h15ps3fjxxykxx4s0ytv61x9qsyn15o7

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

79566701

Date: 2025-04-10 12:56:52
Score: 3
Natty:
Report link

The entity for inventory adjustment is INVENTINVENTORYADJUSTMENTJOURNALENTRYENTITY and INVENTINVENTORYADJUSTMENTJOURNALENTRYV2ENTITY

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

79566695

Date: 2025-04-10 12:52:51
Score: 1.5
Natty:
Report link

There’s no strict limit—users can cancel as many times as they want. But it's important to provide a good experience.

If they keep skipping, you could explain why choosing an account is helpful (like for quicker logins), or offer a manual login option.

The system won’t stop them, but it's our job to make it easy for them!

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

79566692

Date: 2025-04-10 12:51:51
Score: 1
Natty:
Report link
ggplot(df, aes(x, y, color = grp)) +
  geom_point() +
  labs(color = expression(italic(x[0])))

enter image description here

legend_label <- "𝒙₀"

ggplot(df, aes(x, y, color = grp)) +
  geom_point() +
  scale_color_discrete(name = legend_label)

enter image description here

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

79566691

Date: 2025-04-10 12:51:51
Score: 1
Natty:
Report link

I finnally found...

I was http://localhost:8080/ClasseurClientWS/services/WSNotificationSOAP

But it was http://localhost:8080/ClasseurClientWS/services/WSNotificationSOAP

I remove

  <servlet-mapping>
    <servlet-name>CXFServlet</servlet-name>
    <url-pattern>/services/*</url-pattern>
  </servlet-mapping>


for 
 <url-pattern>/*</url-pattern>
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sébastien AOURA

79566688

Date: 2025-04-10 12:48:50
Score: 0.5
Natty:
Report link

I need to share what helped solve it for me, after several days of banging my head against the wall trying to solve this issue.

For me, it happed after upgrading my Apache/PHP to any version above 8.1.10. None of the solutions listed here or on Google helped.

Eventually, I discovered that it was caused by a single line in my .htaccess file. php_value output_buffering off all I had to do was change "off" to "0".

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

79566678

Date: 2025-04-10 12:43:49
Score: 4.5
Natty:
Report link

see the comment by @aneroid for the solution.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @aneroid
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Orion

79566663

Date: 2025-04-10 12:38:47
Score: 2.5
Natty:
Report link

Hi follow these steps to sort the legend in the visual.

  1. Go to Columns:

enter image description here

  1. Under Layout, turn 'Sort by value' to ON

enter image description here

You can reverse the order as well.

enter image description here

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

79566662

Date: 2025-04-10 12:38:47
Score: 2.5
Natty:
Report link

You also need to be aware that "Find in files" only shows a preview and not all results. To get all results, you need to click on "open in find window" on the bottom right.

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

79566655

Date: 2025-04-10 12:35:46
Score: 4
Natty: 4
Report link

same story here. can't find documentation to do it yet.

closes still with in app browser, https://docs.expo.dev/versions/latest/sdk/auth-session

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

79566650

Date: 2025-04-10 12:34:45
Score: 3
Natty:
Report link

In case you are complete fresher like me, you have to create a file name e.g. /health or other stated in the exmple. Unless I'm wrong

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

79566646

Date: 2025-04-10 12:31:45
Score: 3.5
Natty:
Report link

Man, you really helped me to solve the same problem. There is nowhere information about mounting keytab to Flink Kubernetes Operator. Thank you!

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

79566635

Date: 2025-04-10 12:28:44
Score: 1.5
Natty:
Report link

Now you can also use variants of pick (or omit) given a sample.yml file of:

myMap:
  cat: meow
  dog: bark
  thing: hamster
  hamster: squeak

then

yq '.myMap |= pick(["hamster", "cat", "goat"])' sample.yml

will output

myMap:
  hamster: squeak
  cat: meow

See https://mikefarah.gitbook.io/yq/operators/pick#pick-keys-from-map

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

79566632

Date: 2025-04-10 12:26:43
Score: 0.5
Natty:
Report link

According to code comments for MapCompose

The functions can also return `None` in which case the output of that function is ignored for further processing over the chain.

    def __call__(, value: Any, loader_context: MutableMapping[str, Any] | None = None) -> Iterable[Any]:
        if loader_context:
            context = ChainMap(loader_context, self.default_loader_context)
        else:
            context = self.default_loader_context

Although according to the code, if I interpret it correctly, MapCompose ignores functions if None is an input instead pushing default_loader_context down the chain. This makes my code conceptually wrong as the functions that address None are meaningless because they are not executed by MapCompose.


@furas transformed the question to default values.

According to the changelog, support for default field values was removed in v0.14 that is before 2012-10-18. However, an introduction of @dataclass returned this concept in v2.2.0. Documentation states that attr.s items also allow to define the type and default value of each defined field, and, similarly to @dataclass, also do not provide an example. Additionally, get() method has a default argument.

get() method is easy and it replaces None with "get_method_default"

    start_urls = ["https://books.toscrape.com"]
    def parse(self, response):
        title=response.xpath("//h3/a/text()").get(),
        none_get=response.xpath("//h3/b/text()").get(default="get_method_default")

@dataclass is questionable in my implementation because it returns "dataclass_field_default" only if none_field is deliberately switched off otherwise it returns None

    @dataclass
    class NoneItem:
        title: str
        none_get: str
        none_field: str = "dataclass_field_default"
    def parse(self, response):
        title=response.xpath("//h3/a/text()").get(),
        none_get=response.xpath("//h3/b/text()").get(default="get_method_default")
        none_field=response.xpath("//h3/b/text()").get()
        
        item = NoneItem(
            title=title,
            none_get=none_get,
            # none_field=none_field
        )
        yield item 

@attr.s() item is similarly defined and shows the same behavior.


In summary as for now, get() is a suitable Scrapy method to replace occasional None with default values.

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

79566625

Date: 2025-04-10 12:23:42
Score: 1.5
Natty:
Report link

although tox has a especific command for passing env variables into your tox environment, it didn't work for me.

I'm using python3.12 and tox>=4, and after adding passenv or pass_env to an specific environment in my tox.toml configuration, it simply ignores everything in it and return status OK.

The solution I've found was to pass my variables using set_env.

example:

export MY_ENV="test"
set_env = { MY_ENV="{env:MY_ENV}" } 

Doing that, everything worked fine.

Reasons:
  • Blacklisted phrase (1): it didn't work for me
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dpbm

79566618

Date: 2025-04-10 12:21:42
Score: 1.5
Natty:
Report link

I've had this same issue several times and have solved with multi word topics. I'm guessing at many of the details of your specific case but here's an example. Every initiator or sender has a unique name, [sender1, sender2, etc] and each team has a unique name [team1, team2, etc]. Every published message will have the format of "{sender}.{team}" When a message is published for team2 by sender 3 it creates a topic "sender3.team2" and publishes. When you add the bindings for the consumer you would want to add for the 1 team you are interested in and ALL the other senders. Rabbit does not have a way to do NOT on topic parts but you can just list them. In this case, our sender3 for team 2 would add the following bindings["sender1.team2", "sender2.team2"]

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

79566615

Date: 2025-04-10 12:19:41
Score: 3
Natty:
Report link

Enable "Enforce keycode forwarding" from emulator settings

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

79566612

Date: 2025-04-10 12:18:41
Score: 1
Natty:
Report link

Uncomment

/* 
@tailwind base;
@tailwind components;
@tailwind utilities; */

Remove

@import 'tailwindcss';

Replace @theme with @layer theme Replace @reference with @apply

I hope it works on Tailwind v4!

At last, Make sure your tailwind.config.js includes any custom colors like 'primary'.

Reasons:
  • Whitelisted phrase (-1): hope it works
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @theme
  • User mentioned (0): @layer
  • User mentioned (0): @reference
  • User mentioned (0): @apply
  • Low reputation (1):
Posted by: ATIB -

79566603

Date: 2025-04-10 12:14:39
Score: 7.5 🚩
Natty: 6.5
Report link

Same in my case, i cant make flash work on CameraView from 'expo-camera' package in expo 52. I tried everything. Changing prop from 'flash' to 'flashMode' using enableTorch={true}. Nothing works, Have you managed to find a solution to this problem?

Reasons:
  • Blacklisted phrase (3): Have you managed
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Alin Ghiurca

79566601

Date: 2025-04-10 12:13:38
Score: 1
Natty:
Report link
#include <fstream>
#include <cmath>
#include <iomanip>
using namespace std;
ifstream fin ("legos.in");
ofstream fout ("legos.out");
int main()
{
    int c,a;
    fin>>c>>a;
    if (a>=9)
    fout<<trunc(sqrt(a))*trunc(sqrt(a));
    if (a<9)
        fout<<"imposibil";
        fout << fixed;
        fout << setprecision(2) << trunc(sqrt(a))*trunc(sqrt(a));
    return 0;
}

i don't get what is wrong

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

79566599

Date: 2025-04-10 12:12:38
Score: 2.5
Natty:
Report link

For me rabbit mq service was not running, once started it worked

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ahmad Hussian

79566597

Date: 2025-04-10 12:12:38
Score: 2
Natty:
Report link
from docx import Document
from docx.shared import Pt, Inches
from docx.enum.text import WD_PARAGRAPH_ALIGNMENT
from docx.oxml import parse_xml
from docx.oxml.ns import nsdecls

# Crear el documento
doc = Document()
doc.sections[0].top_margin = Inches(0.7)
doc.sections[0].bottom_margin = Inches(0.7)
doc.sections[0].left_margin = Inches(1)
doc.sections[0].right_margin = Inches(1)

# Título principal
title = doc.add_heading("Cuadro Sinóptico: Resultados de Aprendizaje y Contenidos", level=1)
title.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER

doc.add_paragraph("")  # Espacio

def agregar_cuadro(titulo_resultado, descripcion, lista_contenidos):
    table = doc.add_table(rows=1, cols=1)
    table.autofit = True
    table.style = 'Table Grid'
    cell = table.rows[0].cells[0]
    
    shading_elm = parse_xml(r'<w:shd {} w:fill="D9E1F2"/>'.format(nsdecls('w')))
    cell._tc.get_or_add_tcPr().append(shading_elm)
    
    p_titulo = cell.add_paragraph()
    run_titulo = p_titulo.add_run("🗹 " + titulo_resultado)
    run_titulo.bold = True
    run_titulo.font.size = Pt(14)
    p_titulo.alignment = WD_PARAGRAPH_ALIGNMENT.CENTER
    
    p_desc = cell.add_paragraph()
    run_desc = p_desc.add_run(descripcion)
    run_desc.italic = True
    p_desc.alignment = WD_PARAGRAPH_ALIGNMENT.LEFT
    
    cell.add_paragraph("─" * 50)
    
    p_conten = cell.add_paragraph()
    run_cont = p_conten.add_run("▶ Contenidos:")
    run_cont.bold = True
    run_cont.font.size = Pt(12)
    
    for item in lista_contenidos:
        p_item = cell.add_paragraph(style='List Bullet')
        p_item.add_run(item)
    
    doc.add_paragraph("")

# Datos para el cuadro sinóptico

titulo1 = "Resultado de Aprendizaje 1"
descripcion1 = ("Reconocer los conceptos relacionados con el tema de proyectos y su importancia como mecanismo de innovación, "
                "mediante el uso de herramientas que sirven de guía en la formulación de proyectos.")
contenidos1 = [
    "Definición",
    "Fases de un proyecto",
    "Intervención de actores / Stakeholders",
    "Tipos de proyectos",
    "Opciones de grado de la especialización",
    "Ciclo de Deming y/o PHVA"
]

titulo2 = "Resultado de Aprendizaje 2"
descripcion2 = ("Desarrollar el estudio de mercado y técnico de un proyecto de inversión privada, "
                "para conocer a fondo el entorno y evaluar la viabilidad técnica y operativa.")
contenidos2 = [
    "Estudio de mercado",
    "Estructura/análisis del mercado",
    "Análisis del producto",
    "El cliente/consumidor",
    "Demanda y oferta",
    "Precio",
    "Cadena de distribución",
    "Estrategias de comercialización",
    "Planeación de ventas",
    "Materias primas o insumos",
    "Estudio técnico del proyecto",
    "Localización (microlocalización y macrolocalización)",
    "Tamaño del proyecto",
    "Ingeniería del proyecto",
    "Organización"
]

titulo3 = "Resultado de Aprendizaje 3"
descripcion3 = ("Desarrollar el plan de inversión de un proyecto usando herramientas pertinentes, "
                "para determinar su rentabilidad y los resultados financieros esperados, y orientar la toma de decisiones.")
contenidos3 = [
    "Tipos de inversiones (inicial, fijas, diferidas, de trabajo, de capital)",
    "Plan de inversión",
    "Alternativas de financiamiento (privados, sector público, etc.)",
    "Presupuestos, estado de resultados y situación financiera",
    "Modelo CANVAS en la formulación de proyectos"
]

agregar_cuadro(titulo1, descripcion1, contenidos1)
agregar_cuadro(titulo2, descripcion2, contenidos2)
agregar_cuadro(titulo3, descripcion3, contenidos3)

doc.save("Cuadro_Sinoptico.docx")
Reasons:
  • Blacklisted phrase (2): Crear
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30233490

79566591

Date: 2025-04-10 12:11:38
Score: 1
Natty:
Report link

You can view the list of trusted CAs in the device settings. Search for Trusted credentials in the settings search bar, or navigate to it manually. The exact path depends on the device. For example, in Pixel phones it's Security & privacy And then More security settings and then Encryption & credentials

https://support.google.com/pixelphone/answer/2844832?hl=en

Another thing you can do is try to connect to the API from a web browser in the device. If it works, it means the problem should be inside the app you are developing.

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

79566588

Date: 2025-04-10 12:10:37
Score: 1.5
Natty:
Report link
$q = ChildTable1::whereRelation('deep.deeper.deepest', 'deepest_id', '=', $id)->get();
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: TomoMiha

79566587

Date: 2025-04-10 12:10:37
Score: 5
Natty: 6
Report link

Obrigado pela ajuda. Depois de 3 dias procurando uma resposta que NINGUEM sabe responder sua ajuda funcionou.

Muito obrigado!!!

Reasons:
  • RegEx Blacklisted phrase (1): Obrigado
  • RegEx Blacklisted phrase (1): obrigado
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Marcio Machado

79566582

Date: 2025-04-10 12:08:36
Score: 4.5
Natty: 5
Report link

In the callback url you have to use regexp=(callback_url|logout_url)

https://is.docs.wso2.com/en/5.9.0/learn/openid-connect-logout-url-redirection/

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30233431

79566578

Date: 2025-04-10 12:06:35
Score: 0.5
Natty:
Report link

So the problem was that I was using spring-boot-devtools which has a restart function. The restart class loader couldn't find the classes.

I got the hint when I tried to make a temporary workaround to cast the content of the Tuple to the correct type.

private <T> T getObject(Tuple tuple, T c) {
  return (T) tuple.get(0);
}

Then I used it like this

var customer = session.createQuery("FROM Customer", Tuple.class).getSingleResultOrNull();
return getObject(customer, new Customer());

Which threw a class loader exception which then led me to the following post with the solution.
Class loader error - unnamed module of loader org.springframework.boot.devtools.restart.classloader.RestartClassLoader
Disabling the restart function didn't work for me so I simply removed devtools from Maven.

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

79566570

Date: 2025-04-10 12:03:34
Score: 2.5
Natty:
Report link

This can be done with ReplaceRegExp like:

<replaceregexp 
    file="${src}/index.html"
    match="</copyright>.*?<copyright>" 
    replace="wombat"/>
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ibuch

79566559

Date: 2025-04-10 11:58:33
Score: 2.5
Natty:
Report link

you can first take a course, when i started learning lua, i immeadiatly tried to do an full game, but i failed because i didnt know nothing, i just had over-confidence, and it seems that youre commiting the same error. try doing scratch first to learn coding logic.

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

79566554

Date: 2025-04-10 11:56:32
Score: 3.5
Natty:
Report link

Android has a feature called "adb authorization timeout" that will revoke your device's adb permissions. You can disable it by looking for "Disable abd authorization timeout" in "Developer options"

enter image description here

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

79566553

Date: 2025-04-10 11:53:32
Score: 0.5
Natty:
Report link

You need to append to the end of url the name of the tab in lowercase and with dashes instead of spaces.
For example, if the tab is named "Second Tab" then the URL should end with #second-tab

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

79566544

Date: 2025-04-10 11:47:30
Score: 3.5
Natty:
Report link

Right click file in Visual Studio-->Git--> add missed file

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

79566542

Date: 2025-04-10 11:46:30
Score: 1.5
Natty:
Report link

₹2000 to 2 Crore From Export Business
The Role of a Custom House Agent in Gujarat

Navigating the complexities of international trade requires expertise in customs procedures, documentation, and compliance. A proficient Custom House Agent (CHA) ensures that your goods clear customs efficiently, minimizing delays and avoiding potential penalties. In Gujarat, ONS Logistics India Pvt. Ltd. offers comprehensive CHA services, handling everything from documentation to duty payments, ensuring a seamless export process.

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

79566534

Date: 2025-04-10 11:43:29
Score: 2
Natty:
Report link

enter image description hereenter image description here

Thanks for your feedback! Just to clarify — I personally verified the issue, tested the behavior in both PostgreSQL and Hibernate, and solved it based on actual results.

I used AI only to help structure and explain the findings more clearly. The debugging, configuration, and SQL-level checks were all done manually.

The solution is accurate, tested, and reflects the real behavior of how Hibernate handles Instant and TIMESTAMPTZ. Screenshot proof attached for clarity.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): solution is
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Makarand Hinge

79566530

Date: 2025-04-10 11:40:28
Score: 0.5
Natty:
Report link

This is not an error, it's a warning. The issue is that the tile is a bit wider than just the point where it's plotted at; if you set the lower limit to -1 you'll see those at x=0 get dropped/truncated. This is what the warning indicates. Set the x-axis limit a bit lower (-1.5 works) to provide sufficient space for those tiles.

Here's the before/after with slightly wider x-axis limits (red arrow added in post):

before/after x-axis limit change

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

79566525

Date: 2025-04-10 11:38:27
Score: 2.5
Natty:
Report link

Please check your Credentials on your Cloud Console. Inside OAuth 2.0 Client IDs, make sure you have the Web Client Id. If not, create the new client id. Thus, use the web client id, not the android one.

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

79566521

Date: 2025-04-10 11:37:26
Score: 9 🚩
Natty:
Report link

I'm trying to access the state inside a tool of an OpenAI Agent (agent=AgentType.OPENAI_FUNCTIONS) but I'm having trouble accessing it. I know this works with some agents, but I can't figure out how to do it with an OpenAI agent.

Has anyone encountered this issue or knows how to access the state in this case? Any help would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Any help would be greatly appreciated
  • RegEx Blacklisted phrase (2): I'm having trouble
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Javier Tejero

79566519

Date: 2025-04-10 11:37:26
Score: 2
Natty:
Report link

This solution works for me, but what for any other .properties file ? I don’t achieve to make it works with other properties file..

Reasons:
  • Whitelisted phrase (-1): works for me
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: nonozor

79566513

Date: 2025-04-10 11:35:25
Score: 5
Natty:
Report link

I tried to package this into a .ps1 (I'm new, need help) and can it output any other data except the string of text? If I do it line by line, I get text, but when I try to make a .ps1 it fails at [System.WindowsRuntimeSystemExtensions].GetMethods() for some reason every time crying

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Dominic S.

79566507

Date: 2025-04-10 11:31:24
Score: 1
Natty:
Report link

The ">>>" tells us that you are in the python interpreter, instead of within the outer shell/terminal. Essentially, you're trying to write a python script that installs pyautogui instead of installing pyautogui to your python.
Instead use whatever your terminal to directly install it with "pip install pyautogui" or something like "python -m pip install pyautogui". You can also activate a specific environment first if you're trying to install it into a specific environment instead of globally (which is typically suggested).

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

79566503

Date: 2025-04-10 11:30:24
Score: 2
Natty:
Report link

The reason the bitmap didn't showed up was apperently because how the data was passed.
It was passed from the function

ImageDataFactory.CreateRawImage(bytes)

and it should be done by

ImageDataFactory.Create(bytes)

as it is done in the example from the Part IV in the comment from @André Lemos

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @André
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: xerves

79566498

Date: 2025-04-10 11:28:23
Score: 6.5 🚩
Natty: 5
Report link

I'm having the same problem right now and i've tried adding the file to ignore list. All to no avail. It's frustrating

Reasons:
  • Blacklisted phrase (1): I'm having the same problem
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: ManTeera

79566496

Date: 2025-04-10 11:28:22
Score: 1
Natty:
Report link
Image(systemName: "person.fill")
                       .resizable()
                       .foregroundStyle(.white)
                       .frame(width: 40, height: 40) resizable on the top
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Roko

79566493

Date: 2025-04-10 11:26:22
Score: 0.5
Natty:
Report link

I found the issue,

    let instituteUser = await this.instituteUsersRepository.findOneBy({id: 1});
    instituteUser.updated_at = new Date().toISOString()

    await this.instituteUsersRepository.save(instituteUser) // Works OK
    await this.instituteUsersRepository.update({ id: 1 }, { updated_at: new Date().toISOString() }); // Works OK
    await instituteUser.save(); // Throws Error

The issue does not happen consistently. Sometimes, when I start the app, entity.save() works fine. Other times, it fails with the read-only transaction error.

This makes me suspect it depends on: Order of connection initialization or which connection is resolved at runtime

Anyway, solved it by changing the save function.

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

79566487

Date: 2025-04-10 11:24:21
Score: 4
Natty: 5.5
Report link

That worked for me too, thanks.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Tim

79566472

Date: 2025-04-10 11:19:20
Score: 4.5
Natty:
Report link

Thank you. This worked a charm. The breakdown is extremely helpful!

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

79566470

Date: 2025-04-10 11:18:19
Score: 1.5
Natty:
Report link

The <a href="https://kfcmenuuk.info/">KFC MENU</a> in the UK has a lot of tasty chicken meals. You can get their famous fried chicken, which is made with a special mix of spices. They sell chicken pieces, burgers like the Zinger, and meals to share like big chicken buckets. If you want something small, you can try Popcorn Chicken or wings. They also have sides like chips, corn, and coleslaw. You can get drinks and desserts too. If you don’t eat meat, there’s a vegan burger as well. There’s something for everyone to enjoy.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MENU KFC United kingdom

79566465

Date: 2025-04-10 11:17:19
Score: 1.5
Natty:
Report link

I finally got this to work! I wound up adding content security policy to web.config (I'm hosted by IIS). Thanks to Groc.

  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <remove name="X-Frame-Options" />
        <add name="Content-Security-Policy" value="frame-ancestors 'self' https://www.Example.com;" />
      </customHeaders>
    </httpProtocol>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: GroupPlay

79566461

Date: 2025-04-10 11:15:18
Score: 2.5
Natty:
Report link

I just put the route to the file like parameter

sudo lighttpd -f/etc/lighttpd/lighttpd.conf start

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

79566455

Date: 2025-04-10 11:13:17
Score: 1
Natty:
Report link

I may have spoken too early about there being no mention of it in the official documentation, I found something here:

Docs > Instagram Platform > API Reference > IG Media

screenshot of is_shared_to_feed field from IG Media section of Instagram API documentation

The is_shared_to_feed field seems to do what I need.

I used the following request against 13 identical reels:

GET https://graph.facebook.com/<API_VERSION>/<IG_MEDIA_ID> \
  ?fields=is_shared_to_feed \
  &access_token=<ACCESS_TOKEN>

and 12 came back with a response of "false" while only returned "true":

{
  "is_shared_to_feed": true,
  "id": "180......111"
}

Hopefully this is enough allow me to consistently distinguish between the trial reels and the final one displayed in the grid 🤞

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: noodl_es

79566443

Date: 2025-04-10 11:08:16
Score: 1
Natty:
Report link

drawContours will work in-place on the image. Just make a copy of your image prior to drawing the contours onto it:

contour_image = copy.deepcopy(image)
contours, _   = cv2.findContours(canny, cv2.RETR_TREE, cv2.CHAIN_APPROX_SIMPLE)
cv2.drawContours(contour_image, contours, -1, (0, 255, 0), 3)
cv2.imwrite('contours_on_image.png', contour_image)

Your image will remain untouched, thus you are cropping the original pixels.

License plat image without green glare

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

79566436

Date: 2025-04-10 11:05:15
Score: 3.5
Natty:
Report link

thanks bro you're my savior (for me only incognito worked, disabling extensions didn't help)

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gordon Freeman

79566433

Date: 2025-04-10 11:03:15
Score: 0.5
Natty:
Report link

I will also add here my 2 cents. Since I had similar problems. In my organization we are using vite, but it should work with jest as well. I am pretty sure about it, since I made the migration from jest to vite a year ago.

First i dont like the __mocks__ solution mentioned above, it would be nice if you had a custom AxiosConfig.ts class that looks like this

import axios, { AxiosInstance } from 'axios'

class AxiosConfig {
  unsecuredAxios: AxiosInstance
  securedAxios: AxiosInstance

  constructor() {
    this.securedAxios = this.createSecuredAxios()
    this.unsecuredAxios = axios.create()
  }

  private createSecuredAxios(): AxiosInstance {
    return instance
}

const axiosConfig = new AxiosConfig()
export const securedAxios: AxiosInstance = axiosConfig.securedAxios
export const unsecuredAxios: AxiosInstance = axiosConfig.unsecuredAxios

Then you have most likely a folder that holds your AxiosConfig.ts and in there you could create mocks folder that holds the mocked implementation.

However, I have seen many times things changing and developers (including me) forgetting to change the mocked class. You also have to import it when you want to use it, which can be a lot if 100 tests use your mocked Axios instance. My point is it gets messy.

The way we got around it is like this In vite.config.ts

 test: {
    globals: true,
    environment: 'jsdom',
    passWithNoTests: true,
    setupFiles: './src/test/setup.ts'}

And then in the setup.ts

// Set up global mocks
vi.mock('@/yourpath/AxiosConfig', () => {
  const mockAxiosImplementation = {
    request: vi.fn().mockImplementation(() => {
      return Promise.resolve({
        status: 200,
        statusText: 'OK',
        headers: {},
        data: [],
        config: {}
      })
    }),
    interceptors: {
      request: {
        use: vi.fn(),
        eject: vi.fn()
      }
    }
  }

  return {
    AxiosConfig: vi.fn().mockImplementation(() => ({
      securedAxios: mockAxiosImplementation,
      unsecuredAxios: mockAxiosImplementation
    })),
    securedAxios: mockAxiosImplementation,
    unsecuredAxios: mockAxiosImplementation
  }
})

Note that this was the best way for us since we use openApi and our automatically created requests look like this.

export class SharedProcedureParametersApi extends BaseAPI implements SharedProcedureParametersApiInterface {

public getRejectionReasons(options?: AxiosRequestConfig) {
    return SharedProcedureParametersApiBase(this.configuration).getRejectionReasons(options).then((request) => request(this.axios, this.basePath));
}

No need to wrap anything, just mock it once, and it works fine, I think the CI/CD pipelines for the unit tests in fronted are a bit faster that way.

About this approach

Pros: 
-Consistency: Mocks are applied consistently across all tests. 
-Convenience: No need to repeat mock definitions for each test. 
Cons: 
-Global Impact: Accidental side effects in mocks can affect all tests. 
-Less Control

In the spirit of the answer above, I hope someone finds this helpful. Cheers.

Reasons:
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: physicsuser

79566431

Date: 2025-04-10 11:03:15
Score: 0.5
Natty:
Report link

Using Conditional Formatting Color Scale

I don't think that this is a programming question as this doesn't need a custom formula. However, to answer your question this is how you do it.

Sample Output

image

Note: You can adjust the gradient by adjusting the mid point.

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

79566427

Date: 2025-04-10 10:58:13
Score: 4
Natty: 5
Report link

I am facing issue with MUI .net 8, camera view is not able to detect barcode

I am able to get camera count > 0 but failing to detecting barcode

Reasons:
  • Blacklisted phrase (1): I am facing issue
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: reetu

79566419

Date: 2025-04-10 10:54:12
Score: 1.5
Natty:
Report link
var message = new MailMessage("My Name [email protected]",);
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Single line (0.5):
Posted by: Mikhail Zhuikov

79566402

Date: 2025-04-10 10:43:09
Score: 0.5
Natty:
Report link

In my case the same error was caused by a usage of a different version of node.

I switched to node 20, initialized my project with npm create vite, switched to node 16, and the error occurred on npm run dev.

Just needed to switch back to the node version the project was initialized with.

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

79566397

Date: 2025-04-10 10:41:09
Score: 1
Natty:
Report link

Just get rid of passwords and use SSH Keys to connect to your target systems. Even the manpage of sshpass says under "Security Considerations":

"[...] users of sshpass should consider whether ssh's public key authentication provides the same end-user experience, while involving less hassle and being more secure."

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

79566390

Date: 2025-04-10 10:36:08
Score: 4.5
Natty:
Report link

I was also looking for the tool. Found the following: Google font to svg. Done things for me. (Picas tool appreciated here was not available for the moment of my answer)

enter image description here

Reasons:
  • Blacklisted phrase (1): appreciated
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: vira.go

79566388

Date: 2025-04-10 10:35:07
Score: 2.5
Natty:
Report link

I had exactly the same issue, when I recently updated to Docker Desktop 4.39. Version 4.40 did not work either. After trying out different things, the only workable solution I found was to downgrade to an older version.

Finding the older Docker.dmg wasn't straight forward, but this page is helpful. It lists the download links for some older Docker.dmg files and in the end of the page there is a python script to search for newer ones.

Reasons:
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • Low reputation (1):
Posted by: enu

79566387

Date: 2025-04-10 10:35:07
Score: 1.5
Natty:
Report link

You're migrating a legacy project to Spring Boot 3 and Hibernate 6.5.3, and noticed that timestamps written using Instant.now() now behave differently — they are stored with a +02 offset when using spring.jpa.properties.hibernate.type.preferred_instant_jdbc_type=TIMESTAMP, but when reading them back, Hibernate treats them as UTC, leading to incorrect comparisons in queries. This happens because the setting only affects how Hibernate writes Instant values, not how it reads them. Since PostgreSQL stores TIMESTAMP WITHOUT TIME ZONE without timezone context, Hibernate assumes it's UTC during reads, even if the actual value was saved in local time. To fix this, it's recommended to either switch the column type to TIMESTAMP WITH TIME ZONE, which handles conversions properly, or store all times in UTC and convert to the desired timezone at the presentation layer.

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

79566386

Date: 2025-04-10 10:35:07
Score: 2.5
Natty:
Report link

Actually I alse met this problem,I tried to delete all files related to vscode on Ubuntu server,such as ~/.vscode-server.Then I connected another server, and all was normal.I tried to restart to connect to the former Ubuntu server,and the issue was solved

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

79566382

Date: 2025-04-10 10:33:06
Score: 4
Natty:
Report link

I meet the same issue after I upgrade Command_Line_Tools_for_Xcode to 16.3 and can't find any solutions. So I just downgrade the Command_Line_Tools to 16.2 and then everything behaviors OK.

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: hugo

79566378

Date: 2025-04-10 10:32:06
Score: 0.5
Natty:
Report link

Making the TRs flex boxes and the TBODY a block with a max height and overflow scrolling seems to do the trick for me:

table.sticky-headers tbody {
    overflow: scroll;
    max-height: 80vh;
    display: block;
}
table.sticky-headers tr {
    display: flex;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: james-geldart

79566373

Date: 2025-04-10 10:30:05
Score: 1.5
Natty:
Report link

With FastAPI, you might see this error when you send a request with a trailing / in the url but the router has no trailing /

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

79566371

Date: 2025-04-10 10:28:04
Score: 3
Natty:
Report link

Happened to me recent with my forms. I found out that you need to click file, project and then open the sln file in the folder and then it works.

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

79566368

Date: 2025-04-10 10:27:04
Score: 3
Natty:
Report link

Sometimes, clean the project maven update , after maven install, run the project , its might work fine.

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

79566365

Date: 2025-04-10 10:26:03
Score: 8.5 🚩
Natty:
Report link

Any luck i am also facing the same issue today

Reasons:
  • Blacklisted phrase (1): i am also facing the same issue
  • Blacklisted phrase (1.5): Any luck
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Pawan Kumar Singh

79566357

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

I think I encountered the same thing. Use this document:

https://scdn.rohde-schwarz.com/ur/pws/dl_downloads/dl_application/application_notes/1sl374/1SL374_0e.pdf

You probably need to enable the termination characters in the resource mannager. Use the message based session object like this:

mbSession.TerminationCharacterEnabled = true;

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Teun

79566355

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

Since my project was not using wakelock directly , I couldn't update the package. My solution was to update the flutter_html package in pubspec.yaml file

use following command

flutter pub add flutter_html

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: priyanka.b

79566353

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

i finally solve it buy creating a plugin to manage the custom theme and it's dartk theme

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

79566347

Date: 2025-04-10 10:19:01
Score: 1.5
Natty:
Report link

Change this code:

to='[email protected],[email protected]'
to=['[email protected]','[email protected]']

And this:

msg['To'] =to
msg['To'] =" ".join(to)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dima Radchuk

79566343

Date: 2025-04-10 10:17:00
Score: 2.5
Natty:
Report link

Dim ltMetaTags As RadGrid = Nothing

Dim ctl As Control = Me.Parent

Dim ltMetaTagds As RadGrid = CType(ctl.FindControl("RadGrid1"), RadGrid)

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arul Shankar Rajendran

79566339

Date: 2025-04-10 10:11:59
Score: 0.5
Natty:
Report link

The correct answer would be to put a case statement inside the first_value, like this:

select id, date, value, first_value(case where value is not null then value end) ignore nulls over (order by date desc) as value2 from table
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Wix

79566335

Date: 2025-04-10 10:09:59
Score: 2.5
Natty:
Report link

One way is using the FileZilla app
Just connect to server and then drag and drop the files from server to local and vise versa.

https://filezilla-project.org/download.php?show_all=1

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: nerd-guy

79566306

Date: 2025-04-10 09:54:55
Score: 3.5
Natty:
Report link

Stop scanning before calling connectGatt may help.

This happened in some legacy Huawei/Honor devices.

Ref: https://medium.com/@martijn.van.welie/making-android-ble-work-part-2-47a3cdaade07

Reasons:
  • Blacklisted phrase (0.5): medium.com
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: zwlxt

79566304

Date: 2025-04-10 09:53:55
Score: 1
Natty:
Report link

DateTimeFormatterBuilder.appendInstant(int fractionalDigits)

As a supplement to the answer by Basil Bourque, if you prefer, you can create a formatter that leaves out the fractional seconds of an Instant. You will still have to delete T and Z yourself if you don’t want them. So you may consider that it is not worth it.

The formatter would be:

public static final DateTimeFormatter instantFormatterNoSeconds
        = new DateTimeFormatterBuilder()
                .appendInstant(0)
                .toFormatter(Locale.ROOT);

The 0 passed to appendInstant() specifies that we want no fractional digits.

Demonstration:

    String noFractionalSeconds = instantFormatterNoSeconds.format(Instant.MAX);
    String noTAndZ = noFractionalSeconds.replace('T', ' ').replace("Z", "");
    System.out.println(noTAndZ);

Output:

+1000000000-12-31 23:59:59

Why did your code fail?

It seems to be a design decision that the formatters obtained from DateTimeFormatter.ofPattern() do not support the last some 400 days of the range supported by Instant. It may have to do with not wanting to risk that parsing with such a formatter would lead to values that are out of range for other date-time types such as LocalDateTime; but this is speculation.

Basil Bourque in his answer correctly mentions that year 1 000 000 000 does not fit with your specification of a 4 digit year. This has nothing to do with your code failing, though. Your formatter does support years outside the four digit range. It will print them with the necessary number of digits (up to 9, I believe, since it does not support dates in year 1 000 000 000) and with a sign (+ or -).

Documentation link

DateTimeFormatterBuilder.appendInstant(int)

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Filler text (0.5): 000000000
  • Low reputation (1):
Posted by: Manea Schmit

79566295

Date: 2025-04-10 09:50:54
Score: 2
Natty:
Report link

I found the root cause, here is the solution if someone face the same issue. The fact that the project was using Capacitor HTTP, was working under Capacitor 5 for AWS Client (@aws-sdk/client-s3) but no more under Capacitor 6 and 7 (tested both).

in file capacitor.config.ts :

 "CapacitorHttp": {
      "enabled": true

This was a requirement for some other webserices that I should call. So what I did, is to set them off :

in file capacitor.config.ts :

 "CapacitorHttp": {
      "enabled": false

This made working @aws-sdk/client-s3 under Capacitor 7 but was problematic for my other Webservice. So I recoded manually and explicitly my other using import { CapacitorHttp } from '@capacitor/core'; and removing all references to Angular HTTP.

I'm always very impressed by people who spend more time downvoting a ticket than providing a solution. So if you have issue on your @aws-sdk/client-s3 transmission when updating Capacitor check the CapacitorHttp, there's breaking change in the comportement between v5 and v6+.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): face the same issue
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Iteration

79566294

Date: 2025-04-10 09:50:54
Score: 1
Natty:
Report link

They're pretty much handled the same under the hood by Nitro. The main differences are mostly about semantics and organization. If you put files in server/api, it's just a clear way to tell other devs (and yourself) that these endpoints are meant for API stuff, like handling JSON or similar responses. Plus, you might get some automatic goodies like JSON body parsing. But if you drop your endpoint in server/routes, it's just as flexible but doesn't come with those extra conventions, it's more generic. So, it's less about how the request is processed and more about keeping your project organized.

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

79566287

Date: 2025-04-10 09:49:53
Score: 1
Natty:
Report link

Linux. Seems like Docker Desktop stores all cached data in only 1 file:

.docker/desktop/vms/0/data/Docker.raw

And i can't delete it with:

what-ever prune -af

Check disk usage in your .docker dir:

sudo apt install ncdu
cd ~/.docker
ncdu
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shelmn