79089412

Date: 2024-10-15 10:01:59
Score: 1.5
Natty:
Report link

Looked into this topic for several days now and in my opinion BigQuery Notebooks (Python) with the Cloud SQL connector library is a good way doing so: How to Connect to Cloud SQL using Python

Loading the data into a DataFrame is two lines:

%%bigquery results --project xxx
SELECT * FROM yyy

Afterwards, just follow the description in the link to establish the connection and write the entire DataFrame with:

results.to_sql(zzz)

This is still not super fast, however, if you get the concept, you may consider parallelizing the process and identify the bottleneck: Colab, network, Cloud SQL...

Reasons:
  • Blacklisted phrase (1): days now
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Christian

79089406

Date: 2024-10-15 10:00:59
Score: 0.5
Natty:
Report link

As per this documentation,

The cause of this error is the invalid navigation property in the request. When the used single-valued navigation parentcustomerid is not present in the given entity type, you will get this type of error.

Also, check whether the current column parentcustomerid is a single-valued navigation property or a multi table lookup.

To avoid this, as per the same documentation, you need to ensure the navigation property exists in the CSDL $metadata document.

You can go through the similar SO answer by @user17390749.

Reasons:
  • Blacklisted phrase (1): this document
  • Has code block (-0.5):
  • User mentioned (1): @user17390749
  • High reputation (-1):
Posted by: Rakesh Govindula

79089397

Date: 2024-10-15 09:57:59
Score: 1
Natty:
Report link

Try using parenthesis like below... suppose if you want to add one more table the syntax would look something like this

SELECT Customers.CustomerId, Orders.OrderId 
FROM  (((Customers 
Inner JOIN Orders ON Customers.CustomerId = Orders.CustomerId)
Inner JOIN OrderDetails ON Orders.OrderId = OrderDetails.OrderId)
Inner Join Products ON Products.ProductId = OrderDetails.productId);
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ambika

79089396

Date: 2024-10-15 09:57:59
Score: 3
Natty:
Report link

I added the video settings code to binding.vv.post{} and it solved my problem.

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vũ Nguyễn

79089385

Date: 2024-10-15 09:54:58
Score: 0.5
Natty:
Report link

You can pass the weight as extra parameter like:

graph.setEdge(A, B, { weight });

Then, when using dagre algorithm like dijkstra you can override the weighting function like:

const paths = dagre.graphlib.alg.dijkstra(graph, root, (e) => {
    const edge = graph.edge(e);
    return edge.weight;
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: barbenezra

79089371

Date: 2024-10-15 09:48:57
Score: 3.5
Natty:
Report link

I'h solved it, I wrote FieldSet instead of Fieldset but how it works on local and didn't work on Server.

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

79089370

Date: 2024-10-15 09:48:57
Score: 1
Natty:
Report link

The short answer to my question is probably "user error" or "user ignorance". The slightly longer answer is that I have inadvertently changed the SIZE parameter for the Short Text fields and this is leading to entered values being truncated. If this happens to you then check the SIZE parameter in the table design view for the given field. Thanks to Erik A and iDevelop for steering me in that direction.

I did a little bit of an experiment with a new blank database and found the following:

If you create a new Short Text field it will default to 255 characters. If, in the current session, you change that field to a Long Text, save the database, and then change it back to a Short Text, it will revert to being 255 characters long. The image below shows the "after" view of this change.

Field definition view showing Short Text Size after changing to Long Text and reverting to Short Text in a single session.

However, the behaviour is different if you make this change across multiple sessions. First, I changed a Short Text field to a Long Text, saved the database and closed it. I then re-opened the database and changed the field back to a Short Text. In this case, it changed to being 50 characters long, not 255. The image below shows the "after" view of this change.

Field definition view showing Short Text Size after changing to Long Text and reverting to Short Text across two sessions.

This doesn't explain why my field was set to 2 characters, hence the explanation of user error, but I think it is worth noting that Short Text field sizes can change in a counter-intuitive way if you are making changes to the database design across sessions.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Twelve1110

79089365

Date: 2024-10-15 09:46:56
Score: 0.5
Natty:
Report link

Mostly ColorZilla extension in chrome is the main culprit. But there might be some other extensions. You can check by disabling all the installed extensions one by one. Hence its not a critical error. You can ignore this error for your next.js application development.

To disable extensions in chrome check the 3 dot icon at the top right corner. Then go to Extensions -> Manage Extensions.

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

79089358

Date: 2024-10-15 09:45:56
Score: 1.5
Natty:
Report link

Quite a few impacts can occur when we update Node.js version.

check these:

  1. Dependency compatibility: Some third-party packages or libraries may not support this.
  2. Runtime changes: New Node.js versions may deprecate or change certain APIs. Checkout this: https://nodejs.org/en/blog/release/
  3. Lambda cold start performance: Never versions typically improve performance, cold start times may vary depending on the Node.js version.
  4. Compatibility: Verify that AWS SDK used in your codebase are compatible with Node.js 18.x
Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Chanuka Dinuwan

79089357

Date: 2024-10-15 09:44:56
Score: 3
Natty:
Report link

Internal Server Error

The server encountered an unexpected internal server error

(generated by waitress)

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

79089346

Date: 2024-10-15 09:42:55
Score: 4.5
Natty: 4.5
Report link

let's see the official documentation: https://docs.python.org/3/tutorial/errors.html#defining-clean-up-actions

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

79089340

Date: 2024-10-15 09:40:55
Score: 2.5
Natty:
Report link

Try to input one index at a time as the actual user would do, instead of trying to paste the whole thing. This would be much closer to the actual user scenario and check the application as if the user is inputting the number one at a time

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

79089339

Date: 2024-10-15 09:39:54
Score: 5
Natty: 4.5
Report link

Here it is check this post [1]: https://medium.com/@tirthkeraliya200/how-to-push-notification-in-electron-js-d9315b3d57b7

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

79089333

Date: 2024-10-15 09:36:54
Score: 1.5
Natty:
Report link

Open Source BI product Helical Insight can be used as alternative to Crystal reports. Built on top of java and react

It supports canned reporting module which can allow to create pixel perfect paginated reports with header, summary, grouping, calculations, page, repeat by, image, text, formatting and other kind of options.

Refer : https://www.helicalinsight.com/canned-report/

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

79089331

Date: 2024-10-15 09:36:54
Score: 0.5
Natty:
Report link

It's just {{your_key}}

So, in your case, it's: {{product_name}}, {{product_SKU}}, {{created_date}}

I haven't tested yet to see whether objects are passed with object notation, i.e. if we pass an array or object can you access with {{custom_arg.product_name}}, etc., so I can't comment on the product object you passed over

Just set it up and test it and you can see if the data comes across in the logs / queue.

Reasons:
  • Whitelisted phrase (-1): in your case
  • RegEx Blacklisted phrase (1): can't comment
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Davies101

79089326

Date: 2024-10-15 09:34:53
Score: 1
Natty:
Report link

Maybe, you have been switched accidently key and certificate when set configuration of domain.

Correct order of cerificate and key should be like below:

ssl_certificate /etc/nginx/certs/crt.pem;
ssl_certificate_key /etc/nginx/certs/key.pem;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Anvar Zaripboyev

79089325

Date: 2024-10-15 09:34:53
Score: 1
Natty:
Report link

As of Qt 6.8 there is a new QSqlDatabase function that supports moving QSqlDatabase instance to a different thread:

bool QSqlDatabase::moveToThread(QThread *targetThread)

Qt Doc

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

79089323

Date: 2024-10-15 09:34:53
Score: 1.5
Natty:
Report link

please try to execute -exec set scheduler-locking on at the gdb console in vscode.

then the debugger will sticky to current thread.

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

79089322

Date: 2024-10-15 09:33:53
Score: 1
Natty:
Report link

I also faced this issue and the workaround i found was to copy the modules needed from where they are installed to the path indicated in the PSModulePath for the user used by ssm document.

  1. See where module is installed

    Get-Module -ListAvailable -Name "{module_name}" | Select-Object Name, Version, Path

  2. See the value for PSModulePath

    Write-Output $Env:PSModulePath

  3. Copy the module for the installed path to the PSModulePath

    Copy-Item -Path "{installed_path}" -Destination "{ps_module_path}" -Recurse

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

79089314

Date: 2024-10-15 09:31:52
Score: 1.5
Natty:
Report link

I promise I was trying to fix this for longer than 30 mins but I fixed it by updating my Microsoft Visual C++ redistributable.

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Georgia

79089311

Date: 2024-10-15 09:30:52
Score: 1.5
Natty:
Report link

you can simply use the correct types to avoid the typescript errors.

const overlayEl = useRef<HTMLButtonElement | null>(null);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Naveed Ahmed

79089310

Date: 2024-10-15 09:30:52
Score: 1.5
Natty:
Report link

This error occurs because iOS apps can run on Apple Silicon Macs by default, and your app may not be configured to support macOS. In this article, we’ll walk through a simple solution to resolve the issue by updating the LSMinimumSystemVersion in the Info.plist, as well as how to disable macOS compatibility if your app is not intended for Mac. We’ll cover the following steps:

<plist version="1.0">
    <dict>
        <key>LSMinimumSystemVersion</key>
        <string>13.0.0</string>
    </dict>
</plist>

Whether you’re supporting macOS or not, this guide will help you eliminate this issue in your next app delivery.

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

79089309

Date: 2024-10-15 09:30:52
Score: 2
Natty:
Report link

Final solution to setting the TOS value per socket was to use a raw socket.

I found the winsockdotnetworkprogramming.com guides to be useful. It's worth noting that by using a RawSocket you loose a lot of the quality of life features that udpClient handles for you (e.g. setting the correct source ip and sending out via the correct interface). It also requires the program to be run as Administrator.

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

79089308

Date: 2024-10-15 09:30:52
Score: 0.5
Natty:
Report link

Our solution for this problem: use tailwind with breeze functions (auth) and views. Use bootstrap for anything else.

We have left untouched the original auth views which breeze has generated upon installation. We don't work with tailwind, but it is unlikely we would ever want to chage the auth views.

Then we have created new layouts based on bootstrap and everything works smoothly. Make sure you exclude the .css and .js from tailwind in your new layouts.

The only disadvantage is that the user will have a different design on login/register and a different one on the production pages. But even then you can apply bootstrap layout and to re-write the auth views.

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

79089303

Date: 2024-10-15 09:29:51
Score: 4.5
Natty:
Report link

With this change it seems they completely removed the Incomming/Outgoing view in source control tab, since now it's moved to it's own tab, source control graph. Is there a way of getting it back? Without the graph itself? This feature was awsome to have, but now it seems to be gone completely.

For example: enter image description here

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Blacklisted phrase (1): enter image description here
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kaj

79089302

Date: 2024-10-15 09:29:51
Score: 2
Natty:
Report link

It’s a common practice in React apps to store instances of shared classes in a React context and provide access to them through custom hooks. This approach allows components to easily share and access these instances. You can read more about it here: Passing data deeply with context.

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

79089291

Date: 2024-10-15 09:25:50
Score: 1.5
Natty:
Report link

Answer provided by @jasonharper - see comments.

c.create_text() is creating the rotated text, and then t.write() is creating the unrotated text (containing the ID number of the rotated text you just created).

create_text() creates and draws the text item - there is no need to use any other code to display it.

The documentation for tkinter states that the function create_text(*args, **kw)

Draw text. Returns the item id.

So the unwanted numbers are the item id's of each of the rotated numbers.

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

79089290

Date: 2024-10-15 09:24:49
Score: 7 🚩
Natty: 4
Report link

@vishnukumar: **By any chance you were able to solve this issue? I am also having same requirement to calibrate multiple cameras **

Reasons:
  • RegEx Blacklisted phrase (1.5): solve this issue?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @vishnukumar
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Santosh Kamble

79089289

Date: 2024-10-15 09:24:48
Score: 2
Natty:
Report link

you should have the "router-outlet" component if you main module imports the router module.

just restart the language server in your IDE. in my case i just restartet the typescript language service

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

79089284

Date: 2024-10-15 09:24:48
Score: 3
Natty:
Report link

Apparently the solution if simply to comment out the inherit property in _copyUnsettingColor.

This is and the color property should not be present on the TextStyle used for Text widgets in ExpansionTile if you want to use ExpansionTile's text color properties.

Reasons:
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Rsevero

79089279

Date: 2024-10-15 09:24:48
Score: 3
Natty:
Report link

Did you use appcompat library and compile with sdk 34? If so,just delete appcompat lib and use sdk 33

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Starts with a question (0.5): Did you use
  • Low reputation (1):
Posted by: lvfeng

79089277

Date: 2024-10-15 09:23:48
Score: 0.5
Natty:
Report link

In 2024, the best way is to use the SelectionArea widget wrap the Scaffold widget on the screen where your text needs to be copied.

See more details here: SelectionArea

enter image description here

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

79089270

Date: 2024-10-15 09:21:47
Score: 4
Natty: 4
Report link

My issue there for the same error was that the the binding class (data object) was an inner class. It was public though, yet I got the error. However, upon moving that as a public normal class, error went away. Strange! From memory I think inner classes could be used?

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

79089267

Date: 2024-10-15 09:20:47
Score: 1.5
Natty:
Report link
private _setTasksData(task) {
     ....
    this.tasksForm?.['task_note'].setValue(
      this.transform(task.param.task_note)
    );
  }

  transform(value: any): any {
    return value.split('&lt;').join('<').split('&gt;').join('>');
  }

above code fixed my issue, code is working now.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Joshna J.U

79089266

Date: 2024-10-15 09:20:45
Score: 8 🚩
Natty:
Report link

I am facing the same problem. everything was working very well until I migrated to FCM HTTP API v1 now I receive notifications without an image. I have no logs in the didRecceiveNotificationRequest block of NotificationService.m

d0tb0t please give us more configuration details

Reasons:
  • Blacklisted phrase (1): m facing the same problem
  • RegEx Blacklisted phrase (2.5): please give us
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same problem
  • Low reputation (1):
Posted by: Borient Manfouo

79089264

Date: 2024-10-15 09:19:45
Score: 2.5
Natty:
Report link

No, unfortunately the include:component syntax doesn't support parallel matrix jobs (yet?).

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: pismy

79089261

Date: 2024-10-15 09:18:45
Score: 2
Natty:
Report link

just to use ';' to separate

spring:
  cloud:
    function:
      definition: def1;fef2
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: zxsvici

79089254

Date: 2024-10-15 09:16:44
Score: 5
Natty:
Report link

Thanks to everyone who give advice. Is was cron DISPLAY variable problem. library like SFML should interact with GUI display but cron didn't in default state. So I change my cron to


DISPLAY=:0
XDG_RUNTIME_DIR=/run/user/(number from id -u)
***** /path/of/script

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks to everyone who give advice
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: chobo

79089248

Date: 2024-10-15 09:14:43
Score: 2
Natty:
Report link

The password may be too short, try it with more than 6 characters. I had the same problem and this helped me.

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

79089247

Date: 2024-10-15 09:14:43
Score: 1.5
Natty:
Report link

I think that you're encountering an issue because the JDK version on your computer is lower than JDK 23, which you selected when initializing the Spring Boot project. Try using a lower JDK version in the project, or update your machine to the latest JDK version. Hope this helps!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kien Nguyen

79089240

Date: 2024-10-15 09:13:43
Score: 1
Natty:
Report link

It seems like you are kinda confused at the moment on lot of stuff. Autocompletion with nvim-cmp and the related projects can be a bit messy but it is manageable when you take a look at the doc. Here is what I can advice to first familiarize yourself with the ecosystem:

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

79089237

Date: 2024-10-15 09:13:43
Score: 2.5
Natty:
Report link

Follow this blog - https://www.sccbrasil.com/blog/aws/vpc6-introduction.html to setup VPC and subnets, IGW and Route tables(Route Tables are important make sure you have an entry to the IGW for ::/0).

Post that just deploy and EC2 instance and it should work, do let me know if you get stuck.

Reasons:
  • Blacklisted phrase (1): this blog
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kumar Kavish

79089224

Date: 2024-10-15 09:11:42
Score: 4
Natty:
Report link

EventLogReaderand is only available on Windows.

https://learn.microsoft.com/en-us/answers/questions/384826/eventlog-is-not-supports-in-linux-using-net-core-3

This is not an answer, but an opinion.

A better approach would be to parse Linux log files or execute command codes to get a response.

Reasons:
  • Blacklisted phrase (1): not an answer
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: jykim31337

79089221

Date: 2024-10-15 09:10:42
Score: 1.5
Natty:
Report link

Replace contains with contains any

* match statusEnum contains any actualStatus
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: cyrilgeorge153

79089211

Date: 2024-10-15 09:08:41
Score: 3
Natty:
Report link

Found the problem. My coworker, who gave me the EEPROM, told me, that it contains data. But after searching for the root cause it was showed, that none of the EEPROM he gave me, contained data. Sry for the waste of time guys

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

79089203

Date: 2024-10-15 09:06:41
Score: 2
Natty:
Report link

Stop the apache and it will work like a champ!!

sudo service apache2 stop
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Payal Desai

79089194

Date: 2024-10-15 09:03:40
Score: 0.5
Natty:
Report link

I think you might want to look into durable functions https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-overview?tabs=in-process%2Cnodejs-v3%2Cv1-model&pivots=csharp

You either chain your Functions or just wait for the event (status feedback) and if this not arrives, go into a timeout. Can look like this:

context.WaitForExternalEvent<bool>("FuncAProcessCompleted", timespan.FromMinutes(3)); https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-external-events?tabs=csharp

If you don't want to adapt durable, have a look at scheduled messages https://learn.microsoft.com/en-us/azure/service-bus-messaging/message-sequencing#scheduled-messages

Basically you could schedule a message and then cancle it, when the status arrives. If it not arrives, the message will be activated and you can react on it with another function.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Julian Hüppauff

79089183

Date: 2024-10-15 09:01:40
Score: 1.5
Natty:
Report link

The key is to use htmx.process https://htmx.org/api/#process to give life to your htmx code defined that way.

Here's the blog that I found that explains about this, also using Django, DataTables, and HTMX, addressing exactly your situation: https://til.jacklinke.com/using-htmx-and-server-side-datatables-net-together-in-a-django-project

The key in the blog is to use htmx.process in the DataTable initComplete callback.

   ...
   "initComplete": function( settings, json ) {
      htmx.process('#personTable');
   },
   ...
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Luqs

79089179

Date: 2024-10-15 09:00:39
Score: 1.5
Natty:
Report link

All problems are resolved after removed all those auto updates on the top of Windows 10 22h2. Now, sysWOW64's 32 bit version of powershell.exe works well on Win10 22h2, and Visual Studio 2019 also works great again. There is absolutely no compatibility issues between VS 2019 and Win10 22h2. The problems were those automated updates on the top of Win10 22h2. It appears that Win10 22h2 does not allow the complete stop of auto updates, but only allow "pause auto updates for 7 days" as an option. After all, Win10 22h2 shows much better performance than the previous versions.

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

79089167

Date: 2024-10-15 08:57:38
Score: 1
Natty:
Report link

You can add this on theme data

ThemeData(
  colorScheme: ColorScheme.fromSeed(seedColor: primaryColor),
  useMaterial3: true,
  filledButtonTheme: const FilledButtonThemeData(
    style: ButtonStyle(
      minimumSize: WidgetStatePropertyAll<Size>(
        Size(double.infinity, 40),
      ),
    ),
  ),
)
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: shereef hamed

79089158

Date: 2024-10-15 08:55:38
Score: 3.5
Natty:
Report link

i used button_to helper in place of link to and it solve my problem

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

79089157

Date: 2024-10-15 08:55:38
Score: 1.5
Natty:
Report link

Run lint-staged --debug to get a verbose output. I came across the same problem and realized I had a typo (dot instead of comma).

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

79089148

Date: 2024-10-15 08:53:38
Score: 0.5
Natty:
Report link

I think you are misunderstanding the public access under networking. This does not limit someone from accessing based on roles. It allows any public IP address to connect to the Service.

If you disable public network access then, you need to deploy private endpoints to access the service.

If you want to control role based access, you need to configure the Access Control (IAM) / RBAC. And ensure that anonymous access is disabled, disable storage key access (optional). You can configure access by assigning one of the Storage Data Roles https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles#storage (e.g. Storage Blob Data Contributor) either on the Storage Account or just one container.

https://learn.microsoft.com/en-us/azure/storage/blobs/assign-azure-role-data-access?tabs=portal

Edit: If you access the Storage Account via the Portal either enable "Default to Microsoft Entra authorization in the Azure portal" or switch to Entra authorization when opening the blob tab. Otherwise you will get an error when Key based access is disabled or you will by default use the key based authentication instead of entra.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Julian Hüppauff

79089145

Date: 2024-10-15 08:53:38
Score: 1.5
Natty:
Report link

Just to add a quick note, that although apparently possible, you should probably reevaluate your application's implementation if you are relying on sticky sessions in EKS. The pods may be killed off and recreated at any time, then sticky or not, your cookie is gone. Yes it will work most of the time, maybe that's good enough, but you should probably externalize anything you care about on other storage/database/redis etc

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

79089143

Date: 2024-10-15 08:51:37
Score: 0.5
Natty:
Report link

One workaround.

namespace _StringMonoid  {
  export function neutral() {
    return ``;
  }

  export function combine(x: string, y: string) {
    return x + y;
  }
}

export const StringMonoid: Monoid<string> = _StringMonoid;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tsz Lam

79089136

Date: 2024-10-15 08:49:35
Score: 6 🚩
Natty:
Report link

Let me know if you resolve I have same issue

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zach kingsford

79089135

Date: 2024-10-15 08:49:35
Score: 2
Natty:
Report link

After downloading ngrok and doing the necessary steps, put the exe in a folder and do these operations.

Tools -> Options -> Search Options ( ngrok ) Executable Path -> your ngrox.exe path

I think it will be solved this way

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

79089132

Date: 2024-10-15 08:48:35
Score: 0.5
Natty:
Report link

Access Conditions in MIFARE Classic 1K

  1. Card Structure Memory: MIFARE Classic 1K has 16 sectors, each with 4 blocks (16 bytes each). Trailer Block: The last block (Block 3) contains Key A, Key B, and access conditions.

  2. Keys Key A: Used for reading and writing. Key B: Typically used for writing.

  3. Access Conditions Access conditions are defined by three bits: C1, C2, and C3, stored in the trailer block. These bits control read/write permissions for each block.

  4. Access Condition Table C1 C2 C3 Read Access Write Access 0 0 0 Key A or B Key A or B 0 1 0 Key A or B Never 1 0 0 Key A or B Key B 1 1 0 Key B Key B 0 0 1 Key A or B Never 0 1 1 Key A or B Key B

  5. Setting Access Conditions To configure access:

Blocks 0-2: Allow both keys to read, only Key B to write. Sector Trailer: Allow Key B to modify keys/access conditions. 6. Encoding Access Conditions Access bits are encoded as follows:

Byte 6: ~C1, ~C2, ~C3 Byte 7: C1, ~C2, ~C3 Byte 8: C1, C2, C3 Conclusion Access conditions in MIFARE Classic 1K cards determine how data is accessed and modified. Understanding and configuring C1, C2, and C3 bits effectively is essential for card security.

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

79089130

Date: 2024-10-15 08:48:35
Score: 2
Natty:
Report link

Include this child package under require in the parent package. "require":{"fudge-pkg-inbound-management-bridge":"*"} inside your package inbound management json file. Add a symlink true under repositories.

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

79089126

Date: 2024-10-15 08:46:34
Score: 1.5
Natty:
Report link

Another simple way could be to use query method, combined with f-string and NOT.

It should be like: df.query(f"not {col}.str.contains('{word}')")

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Yanick N'depo

79089108

Date: 2024-10-15 08:39:32
Score: 0.5
Natty:
Report link

ServerSelectionTimeoutError: SSL handshake failed: ac-hmv8y2m-shard-00-01.praxicn.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007) (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),SSL handshake failed: ac-hmv8y2m-shard-00-00.praxicn.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007) (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms),SSL handshake failed: ac-hmv8y2m-shard-00-02.praxicn.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007) (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms), Timeout: 30s, Topology Description: <TopologyDescription id: 670e163b90f188b297a1e741, topology_type: ReplicaSetNoPrimary, servers: [<ServerDescription ('ac-hmv8y2m-shard-00-00.praxicn.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('SSL handshake failed: ac-hmv8y2m-shard-00-00.praxicn.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007) (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>, <ServerDescription ('ac-hmv8y2m-shard-00-01.praxicn.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('SSL handshake failed: ac-hmv8y2m-shard-00-01.praxicn.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007) (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>, <ServerDescription ('ac-hmv8y2m-shard-00-02.praxicn.mongodb.net', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('SSL handshake failed: ac-hmv8y2m-shard-00-02.praxicn.mongodb.net:27017: [SSL: TLSV1_ALERT_INTERNAL_ERROR] tlsv1 alert internal error (_ssl.c:1007) (configured timeouts: socketTimeoutMS: 20000.0ms, connectTimeoutMS: 20000.0ms)')>]> Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...

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

79089100

Date: 2024-10-15 08:37:32
Score: 1
Natty:
Report link

It has turned out that the real problem was elsewhere. The cursor lost exception was caused by another process running in parallel which also used the database heavily and did complex computations with the data. When I had changed the cron time to avoid overlaps the problem went away.

I have still optimised my aggregation as aneroid suggested (combine all the match stages into one, add an _id => 0 field to the project stage and give the answers.data.value field a name), and it really improves the running time. I am now in the process of optimising the Ruby calculations, and it's much faster now.

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

79089098

Date: 2024-10-15 08:36:31
Score: 1
Natty:
Report link

If you are accessing it from windows , after running the specific command that have been mentioned about username and password, do following thing :

  1. Create a personal access token from your git hub profile section
  2. Go to windows credential manager.
  3. Either create new entry with github.com , username as 'Personal Access Token' and value is your personal token you created in first step. Else ,if there is entry already exists, update the value with new token
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Omkar Manjare

79089097

Date: 2024-10-15 08:36:31
Score: 1
Natty:
Report link

Hard so say without all seeing the components involved. But most likely your service which injects httpClient is provided in higher than this interceptor in the DI hierarchy tree. This is a nice piece of documentation you can read about DI hierarchy in angular - https://angular.dev/guide/di/hierarchical-dependency-injection.

You can test it very easily. Take the service that uses httpClient, and provide it in your path's providers (in the same array when you provide the http inerceptor). If it works, the issue is what I described above.

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

79089096

Date: 2024-10-15 08:36:31
Score: 1.5
Natty:
Report link

Not sure if you already solved the problem, but it seems that streamchat supports webhooks here https://getstream.io/chat/docs/react/webhooks_overview/.

If you don't have push notifications configured in the streamchat dashboard, perhaps this might do the trick. I am using Onesignal as well.

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

79089093

Date: 2024-10-15 08:35:31
Score: 2.5
Natty:
Report link

In case this is still relevant for anyone today: this seems to have been a bug in PCL 1.9.1. This pull request fixed it: https://github.com/PointCloudLibrary/pcl/pull/2767 An update to PCL 1.10.0 or newer should fix the problem.

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

79089081

Date: 2024-10-15 08:33:30
Score: 1
Natty:
Report link
Sub ClearAllNamedRanges()
Dim x
   Application.ScreenUpdating = False
   On Error Resume Next
   For Each x In ThisWorkbook.Names
      Application.Evaluate(x.RefersTo).ClearContents
   Next
   MsgBox "All named ranges cleared."
End Sub
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: mapomme

79089079

Date: 2024-10-15 08:32:29
Score: 9 🚩
Natty: 5.5
Report link

I am using Laravel 11 using vite and tailwind css and facing the same problem. How to fix it?

Reasons:
  • RegEx Blacklisted phrase (1.5): How to fix it?
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Kaytros Keta arka

79089055

Date: 2024-10-15 08:29:28
Score: 4.5
Natty:
Report link

Did we find a solution to this? The problem with me is on the similar lines but i want to use relative path in my scss files instead of absolute. I have seen when i use (/images/path_to_image) it works but when i use (../images/path_to_image) it fails.

Reasons:
  • RegEx Blacklisted phrase (1): i want
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did we find a solution to this
  • Low reputation (1):
Posted by: Navneet Vaid

79088986

Date: 2024-10-15 08:21:26
Score: 1.5
Natty:
Report link

Open the text file in "append" mode instead of "write"

open("member_channel.txt", "a")

Check out the documentation and this answer

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

79088985

Date: 2024-10-15 08:21:26
Score: 2.5
Natty:
Report link

As the Supabase Flutter library is using PostgresRest API, a review of the API shows no support for native queries. This seems like a very odd omission.

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

79088980

Date: 2024-10-15 08:18:25
Score: 1.5
Natty:
Report link

I created a bookmarklet for previewing self-contained / zero-dependency HTML files generated with SingleFile.

I posted it as an answer to this similar question: How to see an HTML page on Github as a normal rendered HTML page to see preview in browser, without downloading? (link to my answer)

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

79088979

Date: 2024-10-15 08:18:25
Score: 2.5
Natty:
Report link

I think Java interpreted it wrong, as it requires a 4 digit year.

Maybe try - YearMonth.of(2024, 12) Let me know if that works...

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

79088974

Date: 2024-10-15 08:16:25
Score: 0.5
Natty:
Report link

Let me show how to solve it:

const axios = require('axios'); 

  const { default: addOAuthInterceptor } = require("axios-oauth-1.0a");

  let data = {sample:'data'};

  data_header = JSON.stringify(data);
  
    const client = axios.create();


    const options = {
        algorithm: 'HMAC-SHA256',
        key: 'XXXXXXXXXXXXXXXXXX',
        realm:'XXXXXXXXXXX',
        secret: 'XXXXXXXXXXXXXXXXXXXXXX',
        token: 'XXXXXXXXXXXXXXXXXXXXXXX',
        tokenSecret: 'XXXXXXXXXXXXXXXXXXXXXX'
    };


    addOAuthInterceptor(client,options);


    var config = {
        method: "post",
        url:
          "https://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
        headers: {
          "Content-Type": "application/json"
        },
        data: data_header
      };
      
      client(config).then((res) => {
        console.log("data", res.data);
      });
Reasons:
  • Blacklisted phrase (1): how to solve
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Adrian Romero

79088972

Date: 2024-10-15 08:15:24
Score: 1.5
Natty:
Report link

If we select "Empty Views Activity" while creating new project we'll get the layouts folder. If you choose "Empty activity", the layout folder will not be generated.

What's the difference between "Empty Views Activity" and "Empty Activity"? Which one should you select while creating a new project?

Select "Empty Views Activity" if you want to develop the app using JAVA. Select "Empty Activity" if you want to develop using Kotlin Language(which is now the default programming language for Android development by Google).

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

79088971

Date: 2024-10-15 08:15:24
Score: 2
Natty:
Report link

From the preferences, Sql Window you can change the record for page.

Give a chance to SQLcl could be more efficent

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

79088966

Date: 2024-10-15 08:14:24
Score: 1
Natty:
Report link

GitHub released a new feature(still in Beta) that takes care of this concern.

The feature makes it possible to label something as a task and can relate to the original issue as a child.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
Posted by: Dhaval D

79088955

Date: 2024-10-15 08:12:23
Score: 1
Natty:
Report link

Even if five years have passed since this thread was opened, Im' facing more or less the same problem as the m2e-apt plugin is no more compatible with Eclipse 2024-09, I'm also using Lombok plugin v1.18.34.

My problem was that I ended up getting the ClassNotFound exception while running unit tests mentioned in this thread.

THE SOLUTION From menu Project -> Properties -> Java Compiler -> Annotation Processing

After that rebuild with maven and perform a Maven Update of the project, run tests.

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

79088954

Date: 2024-10-15 08:12:23
Score: 4.5
Natty:
Report link

In case somebody else is getting the same error, just add this key hash in facebook developer console and you are good to go. In my case, I have added all key hashes in fb console but still getting the error than I checked and found out that it was my debug key hash, generated from debug.keystore, which I didnt add.

Reasons:
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: flutter dev

79088950

Date: 2024-10-15 08:11:23
Score: 0.5
Natty:
Report link

Ford-fulkerson algorithms uses DFS or a random order to traverse through the network which indicates that it can select any augmenting path, which may not be necessarily be the shortest. In this case, arbitrary paths can lead to more frequent revisits and potential cycles, leading to inefficiencies. Ford-Fulkerson’s arbitrary paths can result in a significantly larger number of augmentations due to potential cycles and redundant paths.

As a result the, time complexity of ford-fulkerson algorihtms would be O(E.F), where E is the number of edges and F is the maximum flow. This is not efficient because it is dependent upon the value of capacities or we can say the input by the user.

Whereas, Edmonds-Karp uses BFS which ensures that shortest augmenting path is taken every time. Each augmentation increases the shortest path length monotonically. This minimizes the chance of revisiting paths and optimizes the flow increments. the shortest path approach ensures a bounded number of augmentations. The maximum number of augmenting paths can be directly related to the number of vertices |V|, making it predictable and manageable.

As a result, the time complexity of edmonds-karp would be O(V.E^2), which reduces its dependency on the input. Although, it does have a polynomial time complexity but still it is better than ford-fulkerson algorithm.

The following image displays the scenario in which edmonds-karp outperform ford-fulkerson:

enter image description here

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

79088948

Date: 2024-10-15 08:10:22
Score: 0.5
Natty:
Report link

You should check partial existing somewhere before view, for example in controller

ALLOWED_STATES = [].freeze

before_action :check_partial_for_rendering

def check_partial_for_rendering
  return if state.in?(ALLOWED_STATES)

  # here you can return error, or raise error, or anything
end
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anton Bogdanov

79088932

Date: 2024-10-15 08:05:22
Score: 0.5
Natty:
Report link

Literal interpolation, although it generally serves another purpose, enables you to add a string with special characters in your translated string.

For instance:

Message in your translation file Translated message in your application
"Foo {'\|'} Bar" Foo | Bar
"Foo {'{Bar}'}" Foo {Bar}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Christophe Fuzier

79088924

Date: 2024-10-15 08:02:21
Score: 3.5
Natty:
Report link

There is an property for this on v-text-field (and other input components)

https://vuetifyjs.com/en/api/v-text-field/#props-autofocus

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

79088920

Date: 2024-10-15 08:00:20
Score: 2.5
Natty:
Report link

You need to create a new CORPORATE_ID column element in the information designer which includes the logic you outlined. It can then be used to filter on demand tables.

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

79088919

Date: 2024-10-15 08:00:20
Score: 2.5
Natty:
Report link

Distributions are full copies of Drupal that include Drupal Core, along with additional software such as themes, modules, libraries, and installation profiles. There are two main types of Drupal distributions: Full-featured distributions: complete solutions for specialized use cases.

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

79088914

Date: 2024-10-15 08:00:20
Score: 4
Natty:
Report link

There are drafts and proposals, which will do exactly what you wanted to do. It's called Safe Assignment Operator (?=).

The syntax would be:

const t ?= someFunc() || somethingElse;

or

const [error, t] ?= someFunct();

See: dev.to - Effortless Error Handling in JavaScript: How the Safe Assignment Operator Simplifies Your Code or Medium - JavaScript Safe Assignment Operator (?=): A Complete Guide

And there is a similar package you can already use: https://www.npmjs.com/package/with-error

Follow their progress. I am also looking forward to it :)

Reasons:
  • Blacklisted phrase (2): I am also looking
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Doleance

79088896

Date: 2024-10-15 07:53:18
Score: 0.5
Natty:
Report link

@Karl, your question of repeated down-scaling of the weights (without restoring them after each forward) is well-placed. I haven't seen this before and doubt it could make the weights vanish (exponential down-scaling).
However, scaling weights and not activations/outputs could be a valid choice to avoid loss of precisions in inference in the following case (especially if training is done with BFloat16):

This loss of precision can be significant if weights have low values (~1e-3, 1e-4 for ex). In which case, imprecisions on some values could reach 5-10%.
I tried scaling weights in a certain context (llm pretraining) then doing the forward pass, then restoring them by allocating to self.weight.data the previously cloned (unscaled) weight data. Because if I allocate the new scaled-weights to self.weight it'll break as it needs a torch.nn.Parameter.parameter and not a torch.Tensor. And I can't scale weights in-place because in-place modification of the graph's leaf varibales is impossible.
However, this breaks the autograd graph connections in a way I couldn't understand. Next layer would loose it's grad attribute somehow.

It would be very nice if someone has an idea on how to scale the weights before forwarding and backwarding by the layer then restoring the non-scaled weights again for the next forward/backward, without breaking the autograd graph neither making the weights become torch.Tensor and this loose their parameter class.

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

79088894

Date: 2024-10-15 07:53:18
Score: 1.5
Natty:
Report link

Try this

heroku redis:maintenance REDIS_URL -w "Sunday 3:00" --app app-name

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

79088891

Date: 2024-10-15 07:52:18
Score: 1
Natty:
Report link

There is a repo that runs Airflow in Codespaces using the Astro CLI. You can clone it here: https://github.com/astronomer/astro-cli-codespaces it has instructions in the Readme for how to run it, the important thing is that you need at least 4 cores. Hope that helps! :)

Reasons:
  • Whitelisted phrase (-1): Hope that helps
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: TJaniF

79088883

Date: 2024-10-15 07:51:18
Score: 1.5
Natty:
Report link

Reverse 'set' order --

result = list(set(list)[::-1]))

Reverse, as a 'set' --

result = (set(list(set(list)[::-1])))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Glen Marquis

79088881

Date: 2024-10-15 07:51:18
Score: 0.5
Natty:
Report link

Are you sure your account identifier is correct ?

Usually Account identifier consists of three parts: account locator, region, and cloud provider.

example:

xy12345.us-east-2.aws
xy12345.us-east4.gcp
xy12345.east-us-2.azure

You can find it in the url bar of the Snowsight. Change your account identifier and give it another go.

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

79088874

Date: 2024-10-15 07:49:17
Score: 4
Natty:
Report link

Please update your Composer and run

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

79088865

Date: 2024-10-15 07:47:16
Score: 3
Natty:
Report link

Based on @kanna answer, deleting the container followed by a reboot worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @kanna
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Do Tran

79088858

Date: 2024-10-15 07:45:16
Score: 2
Natty:
Report link

Navigate through Home -> Add -> Api

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Abdul Basit Rishi

79088856

Date: 2024-10-15 07:44:15
Score: 3
Natty:
Report link

My issue is resolve after downgrading all firebase related packages.

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

79088853

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

You might consider extracting all public configuration from the application.properties file in devenv into a new application-common.properties file. This new file should be located in a module that both devenv and network have introduced. At this point you can introduce it like this @TestPropertySource({“classpath: application-common.properties”}) Maybe @TestPropertySource({“classpath*:application-common.properties”}) I'm sorry I haven't used it this way. If you consider a configuration center (e.g. nacos), it might be easier.

Reasons:
  • RegEx Blacklisted phrase (0.5): sorry I have
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: lingting

79088836

Date: 2024-10-15 07:36:12
Score: 7 🚩
Natty:
Report link

Have you been able to apply for access? If yes, how did you get the API calls to count. I try to access the instagram_business_basic to request access but see what I get, even after making multiple API calls.

To request advanced access to this permission, you need to make a successful test API call. It may take up to 24 hours after the first API call for this button to become active.

Reasons:
  • Blacklisted phrase (1.5): Have you been able to
  • RegEx Blacklisted phrase (3): did you get the
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Ibukun

79088828

Date: 2024-10-15 07:33:11
Score: 3.5
Natty:
Report link

Normally, the output should always be 200.But the output of "totalMoney" sometimes a number less than 200. What is the issue here and how to correct it? Will somebody please help me?

Why the output of "totalMoney" sometimes a number less than 200 probably is that the stems from a lack of synchronization between the threads during the transfer process. The potential issue is in Bank::transferMoney method, where calling changeMoney on accountA and accountB separately.

void transferMoney(Account* accountA, Account* accountB, double amount) {
    accountA->changeMoney(-amount);
    accountB->changeMoney(amount);
}

This method releases the lock between the two operations, might resulting in inconsistencies in the total amount of money across the accounts.

void changeMoney(double amount) {
    unique_lock lock(mMoneyLock);
    mConditionVar.wait(lock, [this, amount] {
    return mMoney + amount > 0;
   });
   mMoney += amount;
   mConditionVar.notify_all();
}

What you can try to make transfer process is atomic. locking both accounts during the transfer

class Account {
public:
    Account(string name, double money): mName(name), mMoney(money) {};

public:
    void changeMoney(double amount) {
        unique_lock lock(mMoneyLock);
        mConditionVar.wait(lock, [this, amount] {
        return mMoney + amount >= 0;
        });
        mMoney += amount;
        mConditionVar.notify_all();
    }

    string getName() {
        return mName;
    }

    double getMoney() {
        // Locking
        unique_lock lock(mMoneyLock);
        return mMoney;
    }

    mutex& getMutex() {
        return mMoneyLock;
    }

private:
    string mName;
    double mMoney;
    mutex mMoneyLock;
    condition_variable mConditionVar;
};

Also try to use a std::scoped_lock to lock both accounts’ mutexes when performing the transfer.

class Bank {
public:
    void addAccount(Account* account) {
        mAccounts.insert(account);
    }

    void transferMoney(Account* accountA, Account* accountB, double amount) {
        // Lock both accounts
        scoped_lock lock(accountA->getMutex(), accountB->getMutex());

        accountA->changeMoney(-amount);
        accountB->changeMoney(amount);
    }

    double totalMoney() const {
        double sum = 0;
        for (auto a : mAccounts) {
            sum += a->getMoney();
        }
        return sum;
    }

private:
    set<Account*> mAccounts;
};
Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): please help me
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Shelton Liu

79088825

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

Use a DiscriminatorMap in the "upper" class

https://symfony.com/doc/current/components/serializer.html#serializing-interfaces-and-abstract-classes

#[DiscriminatorMap(typeProperty: 'type', mapping: [
    'arr' => SomeDTO::class,
])]
class ArrDTO
{
    // ...
}
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Ivan Buttinoni

79088824

Date: 2024-10-15 07:32:11
Score: 1
Natty:
Report link

Remove fonts from app target in target membership and add it again is worked for me. You guys can try this solution. it might help.

Reasons:
  • Whitelisted phrase (-1): try this
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Nuttapon Buaban