79318343

Date: 2024-12-30 18:42:46
Score: 2
Natty:
Report link

Yes, you can run Geant4 in multi-threading mode, but it requires some preparations. You can learn about the built-in multi-threading support in Geant4 here for example CERN, Parallelism in GEANT4.

I have also encountered such CPU usage fluctuations, and not only with Geant4 programs. I'm not sure about reasons for this behaviour.

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

79318339

Date: 2024-12-30 18:41:45
Score: 1.5
Natty:
Report link
    ∇R←∆FI A
[1] R←'0' ⎕EA¨ (A≠' ')⊂A
    ∇

      ∆FI '23SKIDOO ¯12.4 .4 3J7 2.0J7d'
0 ¯12.4 0.4 3J7 0
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Brian McGuinness

79318334

Date: 2024-12-30 18:40:45
Score: 3
Natty:
Report link

موقع "https://aiafta.blogspot.com/2024/12/rule-based-learning.html" يحتوي على مقال حول "التعلم القائم على القواعد" (Rule-Based Learning)، ويمكن وصف المحتوى كما يلي: https://aiafta.blogspot.com/2024/12/rule-based-learning.html ملخص المقال

  1. تعريف التعلم القائم على القواعد.
  2. أنواع التعلم القائم على القواعد.
  3. خوارزميات التعلم القائم على القواعد.
  4. تطبيقات التعلم القائم على القواعد.
  5. مزايا وعيوب التعلم القائم على القواعد.
  6. أمثلة على التعلم القائم على القواعد.

المحتوى الرئيسي

  1. مقدمة التعلم القائم على القواعد.
  2. أنواع القواعد (قواعد افتراضية، قواعد استدلالية، قواعد تكرارية).
  3. خوارزميات التعلم (RIPPER، CN2، AQ، ID3).
  4. تطبيقات التعلم (التصنيف، التنبؤ، تحليل البيانات).
  5. مزايا التعلم (سهولة الفهم، دقة عالية، تطبيق متعدد).
  6. عيوب التعلم (صعوبة تحديد القواعد، الحساسية للبيانات الخاطئة).

الموارد

  1. روابط إلى مواقع تعليمية.
  2. كتب حول التعلم الآلي.
  3. مقالات ذات صلة.

الشكل العام

  1. تصميم بسيط وسهل القراءة.
  2. استخدام الصور والرسومات التوضيحية.
  3. توزيع المحتوى بشكل منظم.
  4. إمكانية التفاعل من خلال التعليقات.

الجمهور المستهدف

  1. طلاب العلوم والهندسة.
  2. باحثون في مجال التعلم الآلي.
  3. مطورو البرمجيات.
  4. المهتمون بالذكاء الاصطناعي.
Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • No latin characters (2.5):
  • Low reputation (1):
Posted by: Omar abhassan

79318325

Date: 2024-12-30 18:35:44
Score: 0.5
Natty:
Report link

I fixed this by adding quotes and an additional &: ssh -p 222 [email protected] "./path/to/start_server.sh& " &

Reasons:
  • Whitelisted phrase (-2): I fixed
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: user28993465

79318323

Date: 2024-12-30 18:35:44
Score: 0.5
Natty:
Report link

In ASP.NET Core 8 MVC, if a model value is not passed back on a POST request, especially when dealing with inheritance or child class properties, the issue may stem from the way the model binding works. Let's break this down and address potential causes and solutions.

### Problem Context If you have a parent class and a child class in your model, and you're trying to bind values from a POST request (e.g., a form submission) to the child class, but the child class properties are not being passed correctly, there are a few things to check.

Possible Causes

  1. Incorrect Form Field Names: Model binding in ASP.NET Core depends on the names of the form fields matching the property names in the model. If the form field names don’t match the properties of the model (including inheritance properties), the model binding will fail.

  2. Missing @Html.EditorFor or @Html.InputFor: If you're using Razor views to generate form elements, ensure that you're using the correct helper methods to generate the input fields. For example, using @Html.EditorFor(model => model.Property) will ensure that the correct model property is bound.

  3. Model Binding and Polymorphism: If your model includes inheritance, model binding may not handle properties from the child class correctly. The POST data may be missing properties that belong to the child class because ASP.NET Core MVC may only recognize the properties in the parent class if the form doesn't explicitly include those properties.

  4. Explicit Model Type Casting: If the child class is not explicitly referenced in the form or the controller, it may cause issues with the model binding. You may need to explicitly cast the model in the POST action or ensure that the correct model type is used.

### Potential Solutions

1. Ensure Correct Property Names in the Form

Ensure that the form field names match the property names exactly, especially when dealing with inheritance.

For example, if you have the following model hierarchy:

public class ParentModel
{
    public string ParentProperty { get; set; }
}

public class ChildModel : ParentModel
{
    public string ChildProperty { get; set; }
}

The form in your Razor view should look like:

<form method="post">
    <input asp-for="ParentProperty" />
    <input asp-for="ChildProperty" />
    <button type="submit">Submit</button>
</form>

ASP.NET Core will bind ParentProperty and ChildProperty correctly if their names match.

2. Use the Correct HTML Helpers

Make sure you're using the correct HTML helpers for binding the properties to form fields. Use @Html.EditorFor, @Html.InputFor, or asp-for to generate the correct form elements.

Example:

<form method="post">
    <div>
        @Html.LabelFor(model => model.ParentProperty)
        @Html.EditorFor(model => model.ParentProperty)
    </div>
    <div>
        @Html.LabelFor(model => model.ChildProperty)
        @Html.EditorFor(model => model.ChildProperty)
    </div>
    <button type="submit">Submit</button>
</form>

Or using asp-for:

<form method="post">
    <div>
        <label for="ParentProperty">Parent Property</label>
        <input asp-for="ParentProperty" />
    </div>
    <div>
        <label for="ChildProperty">Child Property</label>
        <input asp-for="ChildProperty" />
    </div>
    <button type="submit">Submit</button>
</form>

3. Handle Inheritance and Model Binding

If you have polymorphism (i.e., a ParentModel and a ChildModel), you need to make sure the correct type is used in your POST method. You can either explicitly cast the model or use a view model that contains both the parent and child models.

For example:

public class MyController : Controller
{
    [HttpPost]
    public IActionResult Submit(ChildModel model)
    {
        // Handle the child model
        return View(model);
    }
}

Or you could define a view model that includes both the parent and child properties:

public class MyViewModel
{
    public ParentModel Parent { get; set; }
    public ChildModel Child { get; set; }
}

In the view:

<form method="post">
    <div>
        <input asp-for="Parent.ParentProperty" />
        <input asp-for="Child.ChildProperty" />
    </div>
    <button type="submit">Submit</button>
</form>

4. Debug the Form Data

If the data is still not binding correctly, you can debug the request by inspecting the form data. You can check the names of the form fields and compare them with the expected property names of the model. You can also use browser developer tools to inspect the actual data sent in the request.

5. Use [Bind] Attribute

Sometimes, if your model class is too complex or ASP.NET Core is not binding certain properties, you can explicitly specify which properties to bind using the [Bind] attribute.

Example:

[HttpPost]
public IActionResult Submit([Bind("ParentProperty,ChildProperty")] ChildModel model)
{
    // Handle model binding
    return View(model);
}

This approach ensures that both parent and child properties are explicitly bound during the form submission.

Conclusion

To fix the issue with the child class property not being passed back on a POST, ensure:

  1. The form fields use the correct names matching the model properties.
  2. You're using the appropriate HTML helpers (asp-for, EditorFor, etc.) for binding.
  3. Consider explicitly defining a view model that includes both parent and child class properties if needed.
  4. Debug the form submission to ensure the data is being sent correctly.

By following these steps, you should be able to resolve the issue and ensure that both parent and child properties are properly passed back during form submission.

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

79318321

Date: 2024-12-30 18:34:43
Score: 3
Natty:
Report link

open specific site folder,in properties to the Security tab.give full permission to IIS_IUSRS.and recycle app fool

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

79318320

Date: 2024-12-30 18:33:43
Score: 1.5
Natty:
Report link

You can try a workaround to set the permalink.

First, set the title of the new post to the custom slug you want. Then Publish your post, once the post is published you get the post url matching to your title. Then you can update the title to the desired title by fetching the post id and setting the title using code.

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

79318318

Date: 2024-12-30 18:32:43
Score: 2.5
Natty:
Report link

Looks like this code relies on @StepScope annotation which should create reader bean during spring batch job launching but reader bean creates during application starts instead.

One of the fix is to prevent JobLauncherApplicationRunner class trigger spring batch job when application starts by adding spring.batch.job.enabled=false to application.properties.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @StepScope
  • Low reputation (1):
Posted by: dev-blogs

79318315

Date: 2024-12-30 18:31:42
Score: 2
Natty:
Report link

You could try encoding the name of the wifi profile. f'netsh wlan show profiles name="Leonard’s iPhone iP15" key=clear\n'.encode('utf-8') When I paste that character in to my python shell it crashes. So it could just be t hat Python does not handle that character properly and a bug report shuold be filed.

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

79318313

Date: 2024-12-30 18:29:42
Score: 2
Natty:
Report link

That's absolutely correct!

In order to use only newly created credentials, the tag must be set to false within the Control Center config tag - the specifics on this can be found in the HiveMQ Control Center documentation here : https://docs.hivemq.com/hivemq/latest/control-center/configuration.html#user-configuration

XML Configuration Example

Feel free to let us know if you have any additional questions either here, or on the HiveMQ Community Forum - we are always happy

Best, Aaron from the HiveMQ Team

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

79318299

Date: 2024-12-30 18:21:40
Score: 3
Natty:
Report link

Script:

I would probably add logs to the code to debug and to verify everything. Maybe considering adding:

set -x

You could dryrun suspend and check if something is blocking suspend

sudo /usr/bin/systemctl suspend --dry-run

Work your way from there

Questions:

Not really sure about that please read this before implementing. But you can edit /etc/systemd/logind.conf

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore
IdleAction=suspend
IdleActionSec=10min

Since you already configured user drew to not need a password this souldnt be the problem.

autosuspend (Note: Its also open source)

If anything is unclear, misleading or if you have further questions please let me know :)

Reasons:
  • RegEx Blacklisted phrase (2.5): please let me know
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Carl

79318298

Date: 2024-12-30 18:21:40
Score: 2.5
Natty:
Report link

Using the example found at this link provided by @margusl, I was able to get this working. https://rstudio.github.io/websocket/#websocket-proxy

library(httpuv)
library(httr)

s <- startServer("0.0.0.0", 8080,
                 list(
                   call = function(req) {
                     
                     res <- GET(paste0("http://127.0.0.1:4040", req$PATH_INFO))
                     
                     content_type <- if (grepl("\\.css$", req$PATH_INFO)) {
                       "text/css"
                     } else if (grepl("\\.js$", req$PATH_INFO)) {
                       "application/javascript"
                     } else {
                       "text/html"
                     }
                     
                     list(
                       status = 200L,
                       headers = list(
                         'Content-Type' = content_type,
                         'X-Forwarded-Host' = req$HTTP_HOST,
                         'X-Forwarded-For' = req$REMOTE_ADDR
                       ),
                       body = content(res, type = "raw")
                     )
                   },
                   onWSOpen = function(clientWS) {
                     serverWS <- websocket::WebSocket$new("ws://127.0.0.1:4040")
                     
                     msg_from_client_buffer <- list()
                     # Flush the queued messages from the client
                     flush_msg_from_client_buffer <- function() {
                       for (msg in msg_from_client_buffer) {
                         serverWS$send(msg)
                       }
                       msg_from_client_buffer <<- list()
                     }
                     
                     clientWS$onMessage(function(binary, msgFromClient) {
                       if (serverWS$readyState() == 0) {
                         msg_from_client_buffer[length(msg_from_client_buffer) + 1] <<- msgFromClient
                       } else {
                         serverWS$send(msgFromClient)
                       }
                     })
                     
                     serverWS$onOpen(function(event) {
                       serverWS$onMessage(function(msgFromServer) {
                         clientWS$send(msgFromServer$data)
                       })
                       flush_msg_from_client_buffer()
                     })
                   }
                 )
)
Reasons:
  • Blacklisted phrase (1): this link
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @margusl
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: mosk915

79318296

Date: 2024-12-30 18:21:40
Score: 2.5
Natty:
Report link

By utilizing the ping test suggested by @jarmod and @Naresh, I was able to establish that the instance was unable to ping ec2.us-east-2.amazonaws.com.

The problem was that the EC2 Launch Template was not set to auto-assign a public IP address.

The 'auto-assign public IP' EC2 Launch Template option is located in: Network settings : Advanced network configuration : Auto-assign public IP

To enable EC2 user data to associate an Elastic IP address, set the 'Auto-assign public IP' option to: Enable

Reasons:
  • No code block (0.5):
  • User mentioned (1): @jarmod
  • User mentioned (0): @Naresh
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Douglas Hackney

79318295

Date: 2024-12-30 18:19:40
Score: 2
Natty:
Report link

We had a similar issue with 'synch/mutex/aria/PAGECACHE::cache_lock' on MariaDB RDS.

We were fetching and sorting 200k+ rows, and changing the following parameters helped us: tmp_table_size max_heap_table_size

Also there were queries in 'Converting HEAP to Aria' status in the processlist table

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

79318287

Date: 2024-12-30 18:14:38
Score: 1
Natty:
Report link

I ran into the same error message while trying to run podman in a minimal debootstrap image. I was able to run podman containers by switching the runc runtime.

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

79318284

Date: 2024-12-30 18:11:37
Score: 1
Natty:
Report link

I was able to get the solution.

second_bar = bar_index - ta.valuewhen(AB_crossover==true and nz(AB_crossover[1], false)==false, bar_index, 1)

third parameter is key.

0: last condition
1: last second condition
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: QuantPilot

79318279

Date: 2024-12-30 18:06:37
Score: 0.5
Natty:
Report link

Use the glyphs property on the Map style. Use this URL for free fonts:

glyphs: "https://fonts.undpgeohub.org/fonts/{fontstack}/{range}.pbf",

The list of fonts to use are available here:

https://github.com/UNDP-Data/fonts/tree/main/docs/fonts

On the layer, specify the font you want to use. Example:

'text-font': [
    'Roboto Regular'
],
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gustavo Gonçalves

79318275

Date: 2024-12-30 18:05:36
Score: 2
Natty:
Report link

I think the problem might be with your fstab not your system image, make sure that you modify fstab to support the new system file system ie ext4 beside erofs.

You can also use RO2RW flashable zip/magisk module to do do that

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

79318269

Date: 2024-12-30 18:02:36
Score: 2
Natty:
Report link

Go to this link: https://github.com/settings/tokens

then copy the token and prepare following command and run it into bash

git clone https://<username>:<token>/<username>/<reponame>.git
Reasons:
  • Blacklisted phrase (1): this link
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Biddut

79318267

Date: 2024-12-30 18:01:34
Score: 7.5 🚩
Natty: 4
Report link

have you solved this yet? I'm facing the exact same issue.

Reasons:
  • RegEx Blacklisted phrase (1.5): solved this yet?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm facing the exact same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Gabriel Lins

79318264

Date: 2024-12-30 18:00:34
Score: 1
Natty:
Report link

Use the ncols keyword:

df.plot(column="NAME", cmap="tab20", legend=True, figsize=(8,8))

enter image description here

df.plot(column="NAME", cmap="tab20", legend=True, figsize=(10,10), 
        legend_kwds={"ncols":2, "loc":"lower left"})

enter image description here

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

79318258

Date: 2024-12-30 17:58:32
Score: 4
Natty:
Report link

Well you could try age=str(34)

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

79318241

Date: 2024-12-30 17:50:30
Score: 1
Natty:
Report link

I have found a temp walkaround, after manually delete the:

~/.vscode/extensions/ms-python.vscode-pylance-2024.12.1/dist/bundled/stubs/django-stubs folder

Pylance is picking up the right definition. It's likely a django-stubs configuration error on my side.

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

79318215

Date: 2024-12-30 17:37:27
Score: 0.5
Natty:
Report link

simply add suppressHydrationWarning={true} into your html tag

 <html lang="en" suppressHydrationWarning={true}>
      <body
        className={`${geistSans.variable} ${geistMono.variable} antialiased`}
      >
        {children}
      </body>
    </html>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Myrat

79318209

Date: 2024-12-30 17:33:27
Score: 2.5
Natty:
Report link

For responsiveness, I prefer responsive_framework, explore it too. And in my opinion setting the limits is better so use of SingleChildScrollView is a good thing.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Abdullah Ahmed Soomro

79318199

Date: 2024-12-30 17:29:25
Score: 3.5
Natty:
Report link

every finite language is regular language but every regular language is not finite

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

79318192

Date: 2024-12-30 17:27:25
Score: 1
Natty:
Report link

try this@import 'tailwindcss/base'; @import 'tailwindcss/components'; @import 'tailwindcss/utilities';

Reasons:
  • Whitelisted phrase (-1): try this
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prakash kumar

79318174

Date: 2024-12-30 17:15:22
Score: 0.5
Natty:
Report link

Just use GRPC:

  1. fully supported in .NET
  2. fast
  3. binary serialization
  4. automatic source generation

https://learn.microsoft.com/en-us/aspnet/core/grpc/basics?view=aspnetcore-9.0

For your case schema is absolutely simple :-D

message Wheel{
    double diameter = 1;
    string tireSize = 2;
    string boltPattern = 3;
}

message Car{
    int32 year = 1;
    string name = 2;
    repeated Wheel wheels = 3;
}
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: Alexei Shcherbakov

79318170

Date: 2024-12-30 17:13:22
Score: 3.5
Natty:
Report link

Math.max(0, yourVar)

dis should work :)

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: pascal chen

79318168

Date: 2024-12-30 17:13:22
Score: 2
Natty:
Report link

Ok so this is 4 years later, but I noticed that ->get()->random()->take(4)->all() might give you seemingly random resuts but its much less random then ->inRandomOrder()->take(4)->get()->all();

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

79318165

Date: 2024-12-30 17:10:21
Score: 1
Natty:
Report link

Another approach would be to add a readonly class to the parent element containing all input or textarea fields that need to be made readonly; and add the following in the css:

.readonly textarea,
.readonly input {
  pointer-events: none;
  background-color: gray;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: rehan

79318149

Date: 2024-12-30 17:03:20
Score: 0.5
Natty:
Report link

I thought you should add the postgres driver name in the application.properties file.

spring.datasource.driver-class-name=org.postgresql.Driver

I Hope this helps!!

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ganesh Karunanidhi

79318142

Date: 2024-12-30 16:59:18
Score: 4.5
Natty:
Report link

We were having a similar issue where we had an embedded YouTube video for our current live stream and it was showing video unavailable even though we had the enableEmbed set to true.

This issue was fixed for us by changing the YouTube account setting found here: Settings -> Channel -> Advanced Settings Tab -> Do you want to set your channel as made for kids? this needs to be NO otherwise YouTube embedding will not work and will show Video is unavailable. Once this change was made our embedded videos were working as expected for live streaming

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): having a similar issue
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Samantha

79318140

Date: 2024-12-30 16:59:18
Score: 0.5
Natty:
Report link

You can also convert the df to a list of records and check that way. Each record is a row, represented by a dictionary of {col names: values}

records = df.to_dict(orient="records")
a = np.array([2, 3])
a_record = dict(zip(df.columns, a))
a_record in records
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: bloukanov

79318126

Date: 2024-12-30 16:51:16
Score: 2
Natty:
Report link

Bonjour J'eesaie d'initialiser les roles et de creer un admin dans ApplicationDbContext

Une idée ? Merci pour votre aide

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

79318125

Date: 2024-12-30 16:51:16
Score: 2.5
Natty:
Report link

Your time tormat in the output is hh:mm not hh:ss. I would extract the minutes and then divide 60 by minutes. Attach the result to the hours.

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

79318119

Date: 2024-12-30 16:46:15
Score: 2.5
Natty:
Report link

I'm facing same issue. When I try to create table through spark.sql I'm getting the same "schema not found" message.

Configuration is basically the same:

spark.jars.packages io.unitycatalog:unitycatalog-spark_2.12:0.2.0,io.delta:delta-spark_2.12:3.2.1
spark.sql.extensions io.delta.sql.DeltaSparkSessionExtension
spark.sql.catalog.spark_catalog io.unitycatalog.spark.UCSingleCatalog
spark.sql.catalog.t_clean io.unitycatalog.spark.UCSingleCatalog
spark.sql.catalog.t_clean.uri http://localhost:8080
spark.sql.defaultCatalog t_clean
spark.sql.catalog.t_clean.token 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Me too answer (2.5): I'm facing same issue
  • Low reputation (1):
Posted by: Lucas Porto

79318114

Date: 2024-12-30 16:44:15
Score: 0.5
Natty:
Report link

I use vite-plugin-mkcert for a HTTPS dev server with vite/sveltekit. This plugin handles the certification for you. See npmjs.com/vite-plugin-mkcert

Your vite.config.ts should contain these options:

import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vite';
import mkcert from 'vite-plugin-mkcert';

export default defineConfig({
    plugins: [
        sveltekit(),
        mkcert()
    ],
    server: {
        https: {},
        proxy: {}, // workaround to get dev server working
    }
});

I believe others have given answers regarding the secure cookies, but there is also some documentation for working with mobile devices on the plugin page linked earlier.

Reasons:
  • Blacklisted phrase (1): This plugin
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sam020

79318110

Date: 2024-12-30 16:41:14
Score: 0.5
Natty:
Report link

Building on top of the very good answer by @mark-amery:

A simpler way to maintain compatibility between Node.js versions is to use require, which supports JSON files:

import { createRequire } from 'node:module';
const require = createRequire(import.meta.url);

const siblingModule = require(configPath); 

Node.js also caches what's require'd, making this version more consistent with the equivalent import method.

This is supported by all Node.js versions since v12.2.0 and is the solution used by import-from-esm.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @mark-amery
Posted by: Pierre Cavin

79318107

Date: 2024-12-30 16:39:14
Score: 0.5
Natty:
Report link

Fixed it. The issue was in the look up.

If(
!IsBlank(Dropdown_Employee_New.Selected) && Slider_Days.Value > 0,  // Ensure a valid employee and positive days

// Update the TotalLeave in EmployeeLeaveBalances
Patch(
    EmployeeLeaveBalances,
    LookUp(EmployeeLeaveBalances, EmployeeEmail = Dropdown_Employee_New.Selected.EmployeeEmail),
    {
        TotalLeave: LookUp(EmployeeLeaveBalances, EmployeeEmail = Dropdown_Employee_New.Selected.EmployeeEmail).TotalLeave 
                    - Slider_Days.Value  
    }
);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Stanners

79318097

Date: 2024-12-30 16:36:13
Score: 1.5
Natty:
Report link

I wrote a custom CSS.

 <table class='table borderless'>
 </table>


<style>
 .borderless tr td {
     border: none !important;
     padding: 0px !important;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: premod suraweera

79318095

Date: 2024-12-30 16:35:12
Score: 1
Natty:
Report link

This error even occurs on a virgin/clean generated project with only Hello World by Xcode 16.2 on several simulators with iOS 18.2. So I suggest to ignore it completely as it has no impact on the performance of the apps.

It points to a connection Performance Power Tools failure, but the CPU, Memory, Disk & Network performance is working correctly in the debugging session

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

79318094

Date: 2024-12-30 16:34:12
Score: 2.5
Natty:
Report link

I could not access the article but from what I understood give it a try:

var integer = 1 var decimal = Double.valueOf(integer) print(integer) print(decimal)

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

79318093

Date: 2024-12-30 16:34:12
Score: 0.5
Natty:
Report link

Use https://jwt.io/ to generate bearer token. Use this: Algorithm: ES256 Header: { "alg": "ES256", "kid": "[your key id]", "typ": "JWT" } Payload: { "iss": "[your issuer id]", "iat": 1734613799, "exp": 1734614999, "aud": "appstoreconnect-v1" } Note that 'exp' should be less than 1200 seconds from 'iat'. Insert your private key as entire text from downloaded p8 file into 'verify signature' field. Copy generated bearer token from the 'encoded' field.

POST https://api.appstoreconnect.apple.com/v1/authorization use your bearer token. It works for me.

Reasons:
  • Whitelisted phrase (-1): works for me
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ol camomile

79318076

Date: 2024-12-30 16:25:10
Score: 2.5
Natty:
Report link

messages or messages where role is "user" could be None

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

79318072

Date: 2024-12-30 16:23:09
Score: 14
Natty: 8
Report link

I have the same issue occuring how did you solve this ?

Reasons:
  • Blacklisted phrase (1): I have the same issue
  • RegEx Blacklisted phrase (3): did you solve this
  • RegEx Blacklisted phrase (1.5): solve this ?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have the same issue
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: emscic

79318068

Date: 2024-12-30 16:22:09
Score: 2
Natty:
Report link

You're intervening deep into the event stack of the framework. kernel level event's have a higher priority and are getting executed first.

Try:

#[AsEventListener(event: OAuth2Events::TOKEN_REQUEST_RESOLVE, priority: 256)]

See the following: https://symfony.com/doc/current/event_dispatcher.html#creating-an-event-listener

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

79318066

Date: 2024-12-30 16:21:09
Score: 2
Natty:
Report link

I tried method mentioned by merv but that didn't work even if I tried to force install wand (got the same error: imagemagick, which does not exist)

pip install (after activating a specific conda environment) did the trick as mentioned by API, after installing imagemagick from their site (https://imagemagick.org/script/download.php#windows)

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

79318056

Date: 2024-12-30 16:18:08
Score: 1
Natty:
Report link

People have reported that on some devices NFC won't work at the same time as the camera especially on Samsung devices.

It is believed that this is a choice by the Hardware manufacturer, may be the NFC radio waves interfere with the very large and sensitive Camera chips?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Andrew

79318046

Date: 2024-12-30 16:14:07
Score: 3
Natty:
Report link

One more obstacle: It turns out that IndexedDB is not persistent in an insecure context. And setting #unsafely-treat-insecure-origin-as-secure has no effect on this. If I had not learned about ngrok thanks to nneonneo, I would have a real problem now.

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

79318040

Date: 2024-12-30 16:09:06
Score: 0.5
Natty:
Report link

credits to medium user , on this one

  const onClick = async () => {  
    const popup = window.open(''); 
    const { popupUrl } = await requestPopupUrl();    
    popup.location.href = popupUrl; setInterval(() => {  
        console.log(popup); // returns a WindowProxy object as you expected  
    }, 1000);  
  };
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: ilan weissberg

79318035

Date: 2024-12-30 16:08:05
Score: 4.5
Natty:
Report link

After many days, I found the problem, you need to build in "release" mode instead of "debug" mode. It's not related to the audio_players darwin plugin. You will have the same problems for others publings.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): have the same problem
  • Low reputation (1):
Posted by: Olivier Griffet

79318033

Date: 2024-12-30 16:07:04
Score: 0.5
Natty:
Report link

i have connect my mariaDB using docker yaml file

version: "3"

services:
  flarum:
    image: mondedie/flarum:stable
    container_name: flarum
    env_file:
      - ./flarum.env
    volumes:
      - ./assets:/flarum/app/public/assets
      - ./extensions:/flarum/app/extensions
      - ./storage/logs:/flarum/app/storage/logs
      - ./nginx:/etc/nginx/flarum
    ports:
      - "81:8888"
    depends_on:
      - mariadb

  mariadb:
    image: mariadb:10.5
    container_name: mariadb
    environment:
      - MYSQL_ROOT_PASSWORD=root_password
      - MYSQL_DATABASE=flarum
      - MYSQL_USER=flarum
      - MYSQL_PASSWORD=flarum_password
    volumes:
      - ./mysql/db:/var/lib/mysql

docker compose up -d

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

79318028

Date: 2024-12-30 16:05:04
Score: 3
Natty:
Report link

first setup Vuetify coreclty and then update treeShake: true

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

79318020

Date: 2024-12-30 16:01:03
Score: 3
Natty:
Report link

I got the same error, It resolved for me when I removed comments in my style sheet

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

79318010

Date: 2024-12-30 15:57:02
Score: 2
Natty:
Report link

Just a note for anyone passing from here, if you have a /mypath/slug:slug/ in your urls.py, pay attention that any path with /mypath/[something] may give the 405 error because it tries to interpret it as a slug, while it is another path. Pay attention to ordering and put any real path above slugs in urls.py

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

79318009

Date: 2024-12-30 15:56:01
Score: 0.5
Natty:
Report link

A simple method using apply:

out["Top"] = out.apply(lambda row: 1 + np.argmax(row["Score_1":"Score_5"]) , axis=1)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: rehaqds

79318006

Date: 2024-12-30 15:54:01
Score: 1.5
Natty:
Report link

you should not do factorization manually, use param ortho=True

import statsmodels.tsa as sm

model = sm.vector_ar.var_model.VAR(endog = df)
fitted = model.fit(maxlags=8, ic='aic')
irf= fitted.irf(10)
irf.plot(orth=True)
plt.show()

for lutkepohl_data you'll get such result

enter image description here

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

79318005

Date: 2024-12-30 15:54:01
Score: 1.5
Natty:
Report link

Answer 1:

The problem was in my nginx file it is mandatory to use some proxy headers for websockets.

here is my updated nginx file code snippet

location /ws/ {
        proxy_pass http://app-development-asgi/;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "Upgrade";
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

But now I get 500 error while testing on postman: Container log error:

IP:36032 - - [XX:XX:XX] "WSCONNECTING /chat/1/" - - ERROR Exception inside application: No route found for path 'chat/1/'. My requirements.txt

django-cacheops==7.0.1
django-cors-headers==3.14.0
django-debug-toolbar==4.0.0
django-environ==0.4.5
django-mysql==3.9.0
django-ninja==0.22.2
django-redis==5.3.0
django-simple-history==2.12.0
django-storages==1.10
Django==5.0.4
djangorestframework_simplejwt==5.3.1
djangorestframework==3.14.0
psycopg2-binary==2.9.9
pillow==10.4.0
channels==4.1.0
channels_redis==4.2.0
daphne
drf-yasg==1.21.8
firebase-admin==6.6.0
pytz
gunicorn==23.0.0

Answer 2:

The second problem was because of nginx which was treating /ws/ differently, when I tried ws/ws/ 2 times it worked. Now for the final solution I have removed ws/ in asgi.py so I don't have to make any changes in my frontend.

my final asgi.py

application = ProtocolTypeRouter({
    "http": application,
    "websocket": JWTAuthMiddleware(
        URLRouter([
            path('chat/<str:room_name>/', ClubFeedConsumer.as_asgi()),
            path('location/<str:ride_id>/', RideLocationConsumer.as_asgi()),
        ])
    ),
})

Hope this helps if anyone is facing the same problem even after years. Have a nice day :)

Reasons:
  • Whitelisted phrase (-1): Hope this helps
  • Whitelisted phrase (-1): it worked
  • RegEx Blacklisted phrase (1): I get 500 error
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): facing the same problem
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Sultan Muhammad

79318000

Date: 2024-12-30 15:51:00
Score: 1
Natty:
Report link

Simple 2 step process:

First install bootstrap

npm install bootstrap

Then include this just above the last line in your App.vue file

@import'~bootstrap/dist/css/bootstrap.css'

Like this: Image showing where to insert the above line

Then use bootstrap classes as usual in your html code!

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

79317995

Date: 2024-12-30 15:49:00
Score: 0.5
Natty:
Report link

I had a similar issue when I wanted to delete an entity from the new CoreData model version(SQLite error code:1, 'there is already another table or index with this name: Z_33TAGS'). There were no attribute or relationship tags in this entity, also when I tried to remove other similar entities everything worked fine. I managed to fix this removal by first adding a new version where I renamed this entity and then adding one more where I removed it.

Reasons:
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Vladyslav Shmatok

79317987

Date: 2024-12-30 15:41:58
Score: 1
Natty:
Report link

I used wireshark to sniff the communication - ModemManager overwrites APN setup each time.

Solution was to use qmicli, which creates profiles, and you can just choose which one to connect.

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

79317985

Date: 2024-12-30 15:41:58
Score: 1
Natty:
Report link

Seems this is a known issue: https://github.com/dotnet/roslyn/issues/53120

Neither of the previous suggestions worked for me; deleting the .vs folder, or opening "with Encoding" and cancelling. On the github issue above, jimmylewis mentioned setting the default in the Options. When I created the setting and then later deleted it, the .editorconfig UI came back.

enter image description here

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: JonathanN

79317981

Date: 2024-12-30 15:40:58
Score: 2.5
Natty:
Report link

I used fn + Insert key and my problem was solved.

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

79317980

Date: 2024-12-30 15:39:57
Score: 2.5
Natty:
Report link

Just FYI because I didn't read the BAPI documentation before I tested this, running the BAPI_USER_ACTGROUPS_ASSIGN FM will DELETE all records in the table for that username and add back only the records from the ACTIVITYGROUPS table.

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

79317979

Date: 2024-12-30 15:39:57
Score: 1
Natty:
Report link

This solved the issue:

ul {
    padding: 0;
    word-wrap: break-word;
    overflow: hidden;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Eric S.

79317976

Date: 2024-12-30 15:37:57
Score: 1
Natty:
Report link
from ttkbootstrap import Style
def main():
    style = Style(theme="solar")
    root = style.master
    root.title("HiDo Machinery Rental Management System")
    root.geometry("800x600")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Deep Dev

79317973

Date: 2024-12-30 15:35:56
Score: 8
Natty: 7
Report link

do you know how can i find the api of resident advisor for getting events information with tickets prices being updated every time prices fluctuate/tickets go sold out?

Reasons:
  • Blacklisted phrase (0.5): how can i
  • RegEx Blacklisted phrase (2.5): do you know how
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vittorio Claudia

79317971

Date: 2024-12-30 15:35:56
Score: 1
Natty:
Report link

Like @luk2302 commented, you should think carefully about why you would want to do this.

In most cases, it is good enough to rely on the security provided by HTTPS. It keeps your application simple and provides a high level of security. A few things to note for the server side:

In cases where you anticipate greater risk, such as cases where users are more vulnerable to social engineering attacks, you should implement an additional layer of protection that significantly increases the complexity of an MitM attack. If a user installs a malicious certificate and sends traffic through a malicious proxy, an attacker could steal the user's credentials via an MitM attack. In such cases, implementing additional encryption may be necessary.

For such situations, negotiating a secure key exchange process and using public key cryptography over HTTPS should solve your needs. You can research ECDH for more information.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • User mentioned (1): @luk2302
  • Low reputation (0.5):
Posted by: Ahmad Alfawwaz Timehin

79317969

Date: 2024-12-30 15:34:55
Score: 3.5
Natty:
Report link

I'm not used to PHP but I think somewhere in 'read_file_guts.php' causes OOM. How about using stream to read file contents?

https://www.php.net/manual/en/function.file-get-contents.php

https://www.php.net/manual/en/function.stream-get-contents.php

In this way you can read big file by small chunks rather than whole into the memory I think.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Kwonkyu Park

79317967

Date: 2024-12-30 15:32:55
Score: 1
Natty:
Report link

If you unable to find the cause,you can simply suppress the error

import android.os.StrictMode;
StrictMode.setThreadPolicy(new StrictMode.ThreadPolicy.Builder().permitAll().build() );
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Helium Cloud Gaming

79317964

Date: 2024-12-30 15:30:54
Score: 1
Natty:
Report link

If you are targeting Android 15 and using Jetpack compose use this in your Activity. Top of setContent{} block

WindowCompat.getInsetsController(window, window.decorView)
            .isAppearanceLightStatusBars = isSystemInDarkTheme()
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: praveensmedia

79317961

Date: 2024-12-30 15:29:54
Score: 0.5
Natty:
Report link

Tern Systems, here is a thoughtful answer for that Stack Overflow question:


Short Answer
In modern JavaScript modules (<script type="module">), variables are scoped to the module itself and are not automatically attached to the global object (window). Consequently, code in a non-module script cannot directly access variables imported or declared in a module script. You need to explicitly export them from your module or attach them to the global object if you want to share them with non-module scripts.


Detailed Explanation

  1. Module Scope Isolation
    When you use <script type="module">, any variables, classes, or functions declared within that script are module-scoped. They do not leak into the global scope the way variables in normal <script> blocks do. This design prevents unexpected collisions and promotes better encapsulation.

  2. Why You Can’t Access Module Variables in Non-Modules

    • Non-module scripts (or the console if you’re testing directly from a browser DevTools console) look for variables on the window object, which by default only contains variables declared in global scope.
    • If your script is a module, anything declared inside remains within the module’s local scope unless explicitly exported.
  3. How to Expose Variables from a Module
    If you want non-module scripts (or the global scope) to see your module’s variables:

    • Attach to the window object
      // Inside your module:
      const myValue = 42;
      window.myValue = myValue;
      
      Now a non-module script (or even inline code in the HTML) can do:
      console.log(window.myValue); // 42
      
    • Import/Export Mechanism (for module-to-module communication)
      If both scripts are modules, you could export from one module and import in another:
      // moduleA.js
      export const myValue = 42;
      
      <!-- moduleB -->
      <script type="module">
        import { myValue } from './moduleA.js';
        console.log(myValue); // 42
      </script>
      
  4. Ensure Consistent Script Types

    • If you’re mixing module scripts and non-module scripts, be aware that variables declared in one scope aren’t automatically available in the other.
    • For certain projects, it’s simpler to keep all scripts as modules for consistent import/export patterns.

Practical Recommendations

  1. Convert Dependent Scripts to Modules
    Whenever possible, convert all <script> tags to type="module">. This way, you can leverage JavaScript’s native module system, using export and import as intended.

  2. Use the Global Object Only When Necessary
    If you genuinely need global access—like for a quick proof of concept—attaching to window is a simple approach. However, from a design standpoint, global variables can lead to naming collisions and maintenance issues. Use them judiciously.

  3. Check Browser Support
    Most modern browsers fully support <script type="module">, but you might need to transpile or use polyfills for older environments. Keep that in mind if you’re targeting legacy browsers.


Module scripts are designed to provide a more robust and encapsulated code structure. If you need to share variables with non-module scripts, explicitly assign them to the global scope or refactor your code to use only modules. By following the import/export standards, you’ll maintain cleaner, more maintainable code.

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

79317960

Date: 2024-12-30 15:29:54
Score: 1
Natty:
Report link

Starting Angular 19, you can pass --define KEY=VALUE to pass values to the application at build time without going through files.

It's documented here.

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

79317953

Date: 2024-12-30 15:24:53
Score: 3.5
Natty:
Report link

Delete build folder and re-run the project again

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

79317946

Date: 2024-12-30 15:21:52
Score: 2.5
Natty:
Report link

looks to me as if the shard setup is not correct... the provided information shows a replica set named "shard2" with only one shard: 82.... also, please correct the title (typo) :-)

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

79317925

Date: 2024-12-30 15:08:50
Score: 0.5
Natty:
Report link

You has lombok dependency as optional:

<dependency>
  <artifactId>lombok</artifactId>
  <groupId>org.projectlombok</groupId>
  <version>1.18.26</version>
  <optional>true</optional>
</dependency>

Just delete optional and it'll be ok

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

79317924

Date: 2024-12-30 15:07:50
Score: 2.5
Natty:
Report link

Your script for transferring data from MySQL to ClickHouse is quite comprehensive, but issues leading to its failure can stem from several areas. Below are the potential problems and their fixes:

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

79317922

Date: 2024-12-30 15:06:49
Score: 0.5
Natty:
Report link

EGL 1.5 support surface less platforms.

PFNEGLGETPLATFORMDISPLAYEXTPROC eglGetPlatformDisplay = (PFNEGLGETPLATFORMDISPLAYEXTPROC) eglGetProcAddress("eglGetPlatformDisplay");
EGLDisplay display = eglGetPlatformDisplay(EGL_PLATFORM_SURFACELESS_MESA, NULL, NULL);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Carter Li

79317912

Date: 2024-12-30 15:02:47
Score: 4
Natty:
Report link

how to find aid like "A00000030800001000"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how to find
  • Low reputation (1):
Posted by: jiaozhudaren

79317901

Date: 2024-12-30 14:55:45
Score: 2
Natty:
Report link

Found out that the issue was caused by the Telegraf version running on the server. The expression is running fine with version 1.8 but not with version 1.25. Downgrading to ver. 1.8 solved the issue!

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

79317899

Date: 2024-12-30 14:54:43
Score: 4.5
Natty:
Report link

Ext.getCmp('id').setDisabled(true);

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Bagas Ggp

79317877

Date: 2024-12-30 14:43:40
Score: 2
Natty:
Report link

So, the answer is even though matplotlib.org did not officially abandon %matplotlib notebook, they recommend to use %matplotlib widget for better backend compatibility and performance.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Malihe Mahdavi sefat

79317871

Date: 2024-12-30 14:40:40
Score: 1
Natty:
Report link

Easy way to create accent and other colored buttons in Angular Material v19 is simply to create another theme with your specific colors in a specific CSS selector. E.g.

.accent {
    @include mat.theme(
        (
          color: mat.$magenta-palette,
        )
      );
    }
    
 .warn {
      @include mat.theme(
        (
          color: mat.$red-palette,
        )
      );
    }

And then just simply apply the class to your button when you want.

<button class="accent" mat-flat-button>Accent button</button>

<button class="warn" mat-flat-button>Warn button</button>

I discussed all of this in a recent video, if you'd like more details.

https://youtu.be/5NSH8VvJH5o

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zoaib Ahmed Khan

79317866

Date: 2024-12-30 14:33:38
Score: 3
Natty:
Report link

If you’re looking for a temporary email service for anonymous online registration, tempmail 100 is a decent choice. https://tempmail100.com/

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

79317862

Date: 2024-12-30 14:32:38
Score: 1
Natty:
Report link

I installed python3-venv via apt and after immediately creating venv I didn't have activate script too. For me personally the solution was to close terminal, reopen it, delete venv folder and run

python3 -m venv venv

to create venv again. After it the ./venv/bin/activate was in place.

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

79317857

Date: 2024-12-30 14:30:38
Score: 1.5
Natty:
Report link

oui j'ai testé ce code ça marche mais depuis hier j'ai toujours ce retour "can't parse JSON. Raw result:

Erreur cURL2: OpenSSL SSL_read: OpenSSL/3.0.14: error:0A000438:SSL routines::tlsv1 alert internal error, errno 0Curl failed with error: OpenSSL SSL_read: OpenSSL/3.0.14: error:0A000438:SSL routines::tlsv1 alert internal error, errno 0null" même si le certificat n'est pas encore expiré

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

79317856

Date: 2024-12-30 14:28:37
Score: 3.5
Natty:
Report link

What if that you track the gps location of your phone and your car, so that when you're near or in your car you automatically scan for previously paired devices

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What if that you
  • Low reputation (1):
Posted by: Leina Gray

79317851

Date: 2024-12-30 14:26:35
Score: 9 🚩
Natty: 5.5
Report link

Did you find any other ways of keeping Service Bus alive without pinging it and sending dummy messages?

Reasons:
  • RegEx Blacklisted phrase (3): Did you find any
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find any
  • Low reputation (1):
Posted by: Ivan

79317847

Date: 2024-12-30 14:24:35
Score: 2.5
Natty:
Report link

For Using PrimeNg 16 version and its components Follow this Link

PrimeNg 16

Hope this Help,

Reasons:
  • Blacklisted phrase (1): this Link
  • Whitelisted phrase (-1): Hope this Help
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: M Ali Imtiaz

79317834

Date: 2024-12-30 14:19:34
Score: 1.5
Natty:
Report link

I was facing the same issue. restart the application then it normal.

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

79317828

Date: 2024-12-30 14:18:33
Score: 4.5
Natty:
Report link

only installing tailwind css intellisense can remove the error from meenter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shubhanshu Sharma

79317825

Date: 2024-12-30 14:16:32
Score: 0.5
Natty:
Report link

Cause: the issue is caused by "isolatedModules": true flag in tsconfig.json.

Explanation: when isolateModules is set to true, it applies some typescript restrictions to ensure that each file can be independently transpiled. This flag prevents typescript from doing the full code analysis needed to generate metadata for tree-shaking and causes all @Injectable() services to be included in the result bundle. It's because the compiler cannot tell whether the service is used or not.

Fix: remove isolateModules from tsconfig.json or set it to false.

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

79317823

Date: 2024-12-30 14:14:32
Score: 3.5
Natty:
Report link

I have been using the same code with same pin , still MCU does not come out of sleep

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

79317822

Date: 2024-12-30 14:14:32
Score: 3.5
Natty:
Report link

You should import the active Directory module first.

Import-Module ActiveDirectory

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

79317803

Date: 2024-12-30 14:07:30
Score: 0.5
Natty:
Report link

I got it working. This is the final code.

wss.on("connection", async (ws, req) => {
  const CONTAINER_ID = req.url?.split("=")[1];
  try {
    const container = docker.getContainer(CONTAINER_ID as string);
    const exec = await container.exec({
      Cmd: ["/bin/sh"],
      AttachStdin: true,
      AttachStdout: true,
      User: "root",
      Tty: true,
    });
    const stream = await exec.start({
      stdin: true,
      hijack: true,
      Detach: false,
    });
    stream.on("data", (data) => {
      ws.send(data.toString());
    });
    ws.on("message", (msg) => {
      stream.write(msg);
    });
    ws.on("close", async () => {
      stream.write("exit\n");
    });
  } catch (error) {
    console.log(error);
    ws.close();
  }
});

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

79317799

Date: 2024-12-30 14:06:30
Score: 2.5
Natty:
Report link

worked the solution - by adding in app gradle file

apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"

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

79317797

Date: 2024-12-30 14:06:30
Score: 2.5
Natty:
Report link

I'm also a fan of the built-in:

await page.waitForLoadState('load', {timeout: 5000});

https://playwright.dev/docs/api/class-page#page-wait-for-load-state

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

79317788

Date: 2024-12-30 14:02:29
Score: 0.5
Natty:
Report link

Try to increase timeout to 60 seconds

const transporter = nodemailer.createTransport({
  host: 'MAIL.MYDOMAIN.COM',
  port: 465,
  secure: true,
  auth: {
    user: '[email protected]',
    pass: 'userpassword'
  },
  connectionTimeout: 60000 // Increase to 60 seconds
});

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

79317786

Date: 2024-12-30 14:01:28
Score: 0.5
Natty:
Report link

You need to check the template == cart then add the JS redirection in the top of the theme.liquid file.

{% if template == 'cart' %}<script>window.location.href = '/';</script>{% endif %}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: sachin rawat