79197769

Date: 2024-11-17 17:38:18
Score: 4.5
Natty: 4.5
Report link

Is there an implementation of speech recognition (I only need very basic functionality that identifies when it has been silent for X seconds) in Kivy that works on both iOS and Android devices?

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Is there an
  • Low reputation (1):
Posted by: Tobias Lindell

79197753

Date: 2024-11-17 17:32:16
Score: 3
Natty:
Report link

summary(m, "Hotelling-Lawley")stats["Species", "Pr(>F)"] [1] 2.664857e-67

try it

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

79197751

Date: 2024-11-17 17:32:16
Score: 2
Natty:
Report link

Les autres propositions n'ont pas fonctionné pour moi, j'ai fait le remplacement du body en entier

<body>
<script src="flutter_bootstrap.js" async></script>
</body>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Hemmerter

79197750

Date: 2024-11-17 17:32:16
Score: 1
Natty:
Report link

Use the option discrete = TRUE:

ggplot(df, aes(x = x, y = y)) +
  geom_density_2d_filled() +
  scale_fill_viridis(direction = -1, discrete = TRUE)

enter image description here

geom_density_2d_filled expects a discrete color scale since it bins the density into contours, so we need to tell scale_fill_viridis to provide a discrete, rather than continuous color scale.

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

79197747

Date: 2024-11-17 17:31:16
Score: 1
Natty:
Report link

Check the logs with hx --log /tmp/helix.log -vvv and open it up with tail -F /tmp/helix.log. It will tell you if rust-analyzer fails to start.

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

79197746

Date: 2024-11-17 17:31:16
Score: 2.5
Natty:
Report link

undici doesn't fetch file://

It's related to this: https://github.com/nodejs/undici/issues/2751

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

79197738

Date: 2024-11-17 17:25:14
Score: 9.5 🚩
Natty:
Report link

the same error, any solution??

Reasons:
  • Blacklisted phrase (1.5): any solution
  • RegEx Blacklisted phrase (2): any solution?
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Marcus Nonato

79197737

Date: 2024-11-17 17:25:14
Score: 1.5
Natty:
Report link

After some hours of search and destroy tactical operations,

I found it 😂 spotted

I had to place a file called

srs/main/resources/META-INF/native-image/reflect-config.json

with these contents:


[
  {
    "name": "org.springframework.http.codec.multipart.FilePart",
    "allDeclaredConstructors": true,
    "allDeclaredMethods": true,
    "allDeclaredFields": true
  },
  {
    "name": "org.springframework.http.codec.multipart.FilePart[]",
    "unsafeAllocated": true
  }
]

And hooray, it finally worked

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

79197728

Date: 2024-11-17 17:20:12
Score: 5.5
Natty: 5.5
Report link

Define cyclic group and determine {1,2,3,4,5} modulo 6 under * is a cyclic group or not?

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

79197726

Date: 2024-11-17 17:20:12
Score: 3
Natty:
Report link

The problem was in the package.json

It turns out that when updating to expo version 52.0.7, I did not finish updating all the libraries related to routing to the new version to be compatible.

The command that updated it automatically (in theory) did not work, so I have updated it manually, and I had to put the versions correctly, especially the expo router and react-navigation/drawer.

Reasons:
  • Blacklisted phrase (1): did not work
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Julian Dumitrel

79197710

Date: 2024-11-17 17:11:10
Score: 2.5
Natty:
Report link

I fix this by comment out the line

export const runtime = "edge"

at apps/nextjs/src/app/api/trpc/[trpc]/route.ts

I know it's something like next trying to run backend code in frontend like others say. But it's not working for me when I try put net: false in next.config.js.

Then I compare a working project with the not working project line by line. I found out the working project has the above line disabled. Just like magic.

Reasons:
  • RegEx Blacklisted phrase (3): not working for me
  • Has code block (-0.5):
Posted by: Feng Liu

79197693

Date: 2024-11-17 17:03:08
Score: 2
Natty:
Report link

Postgres doesn't support automatically altering an integer field to a serial field, see here. While you can do the conversion manually, it's probably easier to continue using an integer field, or to drop the table and recreate it.

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

79197685

Date: 2024-11-17 16:58:07
Score: 3.5
Natty:
Report link

I found the reason. Id was long so cmbOrganizacionaJedinica.SelectedValue = (long)1; works

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

79197671

Date: 2024-11-17 16:53:05
Score: 0.5
Natty:
Report link

Why does my PageSpeed Insights report show "Failed to load resource: the server responded with a status of 404 (Not Found)" for image URLs using blogger_img_proxy, even though the images were previously loading fine?

This is a tricky one! It sounds like you're using blogger_img_proxy to serve your images, which can sometimes cause issues with PageSpeed Insights. Here's a breakdown of why this might be happening and how to fix it:

Possible Causes:

How to Fix and Prevent 404 Errors:

  1. Verify Image URLs: Meticulously check every image URL in your PageSpeed Insights report. Make sure they are accurate and accessible.
  2. Test Image URLs Directly: Open the image URLs in your browser to confirm they load correctly.
  3. Clear Cache: Clear your website's cache (and your browser's cache) and re-run the PageSpeed Insights test.
  4. Check blogger_img_proxy Status: If you suspect a problem with the proxy itself, try using a different image proxy service temporarily to see if the issue persists.
  5. Review Firewall/Security Settings: If you have a firewall or security plugin, temporarily disable it and re-run the test. If the images load, adjust your firewall settings to allow requests to blogger_img_proxy.
  6. Consider Alternative Image Optimization: For long-term reliability, consider using a more robust image optimization solution like a CDN (Content Delivery Network) with image optimization features. This can improve loading times and reduce the reliance on external proxies.

Remember:

If you've tried these steps and are still having issues, provide more details about your website setup and how you're using blogger_img_proxy. I'll do my best to help you troubleshoot further!

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Why do
  • Low reputation (1):
Posted by: Nikhil Kumar

79197664

Date: 2024-11-17 16:51:04
Score: 6 🚩
Natty: 6
Report link

In Pythonista what would that virtual path look like?

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

79197658

Date: 2024-11-17 16:48:03
Score: 0.5
Natty:
Report link

One of the many ways is to use spread operator.

const obj3 = {...obj1}

You can also use Object.assing() for shallow copy.

const shallowCopy = Object.assign({}, obj1);

For more information please have a look at this.

Hope, this helps.

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

79197648

Date: 2024-11-17 16:42:01
Score: 0.5
Natty:
Report link

I changed the following additional configuration and it worked, thanks to @Ken Lee for their helpful comment.

upload_max_filesize = 20G
max_execution_time = 3600
max_input_time = 3600
memory_limit = 4G

Seriously, does StackOverflow have to be so toxic? I asked chatGPT and it helped me only partially, pointing out post_max_size and www-data permissions, some configuration in .htaccess. There was no other resource and the error was vague. Ken's comment solved the problem pretty easily, was it that hard? What benefit have -1 without feedback and pesky comments brought about? I'm a member for 7 years and I have almost 5k points, not a noob who cannot speak English.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): StackOverflow
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @Ken
  • Self-answer (0.5):
  • High reputation (-1):
Posted by: banan3'14

79197643

Date: 2024-11-17 16:38:00
Score: 0.5
Natty:
Report link

I am familiar with the exception.

if your code has...

setState(() {
  toggle code here..
});

You need to enclosed it in...

if (mounted) {
  put your setState(() {}); here...
}

Let us know if it resolves your error.

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

79197642

Date: 2024-11-17 16:38:00
Score: 2.5
Natty:
Report link

Make sure your plist file (/Library/LaunchAgents/com.company.name.plist) has ownership root:wheel.

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

79197625

Date: 2024-11-17 16:28:58
Score: 0.5
Natty:
Report link

I believe it should be deined in connections.toml rather than config.toml, see my below walkthrough

this is what i wrote to myself with regards to snowflake native apps, for future maybe it will be helpful for you

  1. you're supposed to use snowflakecli ( not snowsql ) the command for snowflake cli is "snow" rather than "snowsql" that is used above, not confusing at all right?
  2. for "snow" to work you have to install it and use it in windows in command prompt started as admin
  3. once it's working you have configure it, the way to do this is
  4. issue $ snow connection list
  5. go to the connection file it lists
  6. add your configs in the .toml file the same way other look like ( all see my config below )
  7. issue snow connection set-default (myconnection)
  8. test it by running snow sql --query "select 'this is not painful at all snowflake team' as is_it_painful "
  9. now you should be able to issue snow app run as the walkthrough tells you to do

connection.toml file

["myconnection"]
name = "your_cute_name_not_the_same_as_myconnection_above_which_is_the_real_name"
account = "dagass-graawa"
user = "MAGA47"
authenticator = "snowflake"
password = "will_not_tell_you"
Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: pawelek69420

79197614

Date: 2024-11-17 16:22:57
Score: 1
Natty:
Report link
new ClipboardJS('*', { text: () => 'haha' }).on('success', (e) => {
  showSuccessToast('copy success')
  e.clearSelection()
})

The first argument can be 'body', '*' or something else

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

79197612

Date: 2024-11-17 16:22:57
Score: 2
Natty:
Report link

Go to the Checkout Pages in WordPress, remove everything, and add only this shortcode: plaintext [woocommerce_checkout] This will ensure the WooCommerce checkout page works correctly.

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

79197593

Date: 2024-11-17 16:11:55
Score: 3.5
Natty:
Report link

So i was injecting payload in an apk in kali through msfvenom and and it didnt execute successfully and gave an error apktool execution fialed

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

79197592

Date: 2024-11-17 16:11:55
Score: 0.5
Natty:
Report link

If someone would like to add a Table of Content with a standard layout, then there is also the option toc_float.

---
title: "MyTitle"
output:
  html_document:
    toc: true
    toc_float: true
---

This is a quick solution (but not as custamizable as the solution with the CSS file)

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

79197585

Date: 2024-11-17 16:09:54
Score: 1.5
Natty:
Report link

Each component has a "z" property. From the documentation:

z (in float): Allows to specify a different order to stack the items with its siblings. The value must be a compile time constant. (default value: 0)

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

79197584

Date: 2024-11-17 16:09:54
Score: 1.5
Natty:
Report link

I know OP was asking for Nginx but maybe someone is stumbling across this. Traefik has native support for Consul and Nomad Service Discovery.

I was also using Nginx at the beginning but then switched to Traefik because of its native integration.

https://doc.traefik.io/traefik/providers/consul-catalog/

https://doc.traefik.io/traefik/providers/nomad/

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Daniel P.

79197579

Date: 2024-11-17 16:05:53
Score: 2
Natty:
Report link

In my case, my app is on react native, and the problem was due to firebase/app, I had to delete the dependency on react native, run npm i, modify Podfile to comment out the references to Firebase related pods that apparently only work if you use modular headers run pod cache clean --all and pod install to remove the dependencies and the error disappeared. The thing it seemd to be, that using those modular headers somehow "brakes" the UIKit, resulting on several errors. For now I was using firebase to distribute, but I'm very disapointed because I wanted to implement push notifications using firebase, and I haven't found anyone that could implement it succesfully on iOS, so I'm investigating other options, as codepush.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Valentina Varela

79197572

Date: 2024-11-17 16:02:52
Score: 1.5
Natty:
Report link

(For those who didn't understand the other answers) Yes, I faced the same issue today about call and jmp issue and it was all about a simple thing that i did wrong and it was by declaring .code before .data section due to which it was raising this issue (A2107 cannot have implicit far jump or call to near label) so make sure your segements are correctly placed.

First should be the .data then .code and so on

~ Happy Coding

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

79197558

Date: 2024-11-17 15:56:51
Score: 1
Natty:
Report link

Simply tell the View where to get the value from

<input class="form-control" asp-for="Field1" value="@Model.Field1"/>

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

79197557

Date: 2024-11-17 15:55:51
Score: 1.5
Natty:
Report link

For taking X language and translating it to Y language you could use a compiler. The book Compilers: Principles, Techniques, and Tools by Alfred Aho and Jeffrey Ullman is where you'd want to start on this.

Using the lexical analysis part of the compiler, you could create a system where by as the tokens are made, you analyse them against a database. If the full length of the tokens match, call for that function. Otherwise continue with the other compiler steps.

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

79197554

Date: 2024-11-17 15:54:51
Score: 1
Natty:
Report link

Simply tell the View where to get the value from

<input class="form-control" asp-for="ProductName" value="@Model.ProductName"/>

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

79197552

Date: 2024-11-17 15:53:50
Score: 1.5
Natty:
Report link

In Next.js 13, Layouts (layout.js) are used for persistent UI components like headers, footers, or sidebars, remaining consistent across navigations within a route subtree. They are static and don’t re-render. Templates (template.js) are reusable structures that generate a fresh DOM for every navigation, ideal for dynamic UIs, animations, or resetting states. Use layouts for stable, shared structures and templates for UIs requiring re-creation. Both are essential tools for flexible and optimized app design.

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

79197549

Date: 2024-11-17 15:51:50
Score: 4
Natty:
Report link

you can try to get XWMHints, it has a member named icon_pixmap. and you can try to find icon file too, detail:

specifications.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html

My WM have 3 ways to get icon, detail:

https://sourceforge.net/p/gsmwm/code/ci/master/tree/src/image.c

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

79197548

Date: 2024-11-17 15:51:49
Score: 0.5
Natty:
Report link

add throws NoSuchFieldException, SecurityException to method signature like below

@Test
public void test() throws NoSuchFieldException, SecurityException{
        Field treeField = RbtMap.class.getDeclaredField("tree");
        System.out.println(treeField.getName());
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anubhav Sharma

79197545

Date: 2024-11-17 15:49:49
Score: 1
Natty:
Report link

In the idea settings, you need to check that the correct Java version is installed everywhere, for example 17:

  1. File - Settings - Build, Execution, Deployment - Compiler - Java Compiler:
    • Project bytecode version : 17
    • Per-module bytecode version : set "Target bytecode version" to 17 for each
  2. File - Project Structure - Modules : set "Language level" to 17 for each
Reasons:
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Valeriy Emelyanov

79197542

Date: 2024-11-17 15:47:48
Score: 0.5
Natty:
Report link

⚠️ pandas-profiling package naming was changed. To continue profiling data use ydata-profiling instead! use https://github.com/ydataai/ydata-profiling

How to fix the error for the main use cases

use pip install ydata-profiling rather than pip install pandas-profiling replace pandas-profiling by ydata-profiling in your pip requirements files (requirements.txt, setup.py, setup.cfg, Pipfile, etc ...) if the pandas-profiling package is used by one of your dependencies it would be great if you take some time to track which package uses pandas_profiling instead of ydata_profiling for the imports

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

79197536

Date: 2024-11-17 15:45:48
Score: 5.5
Natty:
Report link

This guide should assist with your ask:

https://github.com/Azure/wordpress-linux-appservice/blob/main/WordPress/wordpress_enable_managed_identity_with_mysql.md

Reasons:
  • Blacklisted phrase (1): This guide
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ohekpeje Odey

79197529

Date: 2024-11-17 15:42:47
Score: 0.5
Natty:
Report link

Fallback to application-scoped resources occurs when an application avoids using the container-managed JNDI datasource and instead relies on resources bundled and loaded within the application itself. This can happen due to explicit configuration or as a backup mechanism when JNDI resources fail to initialise.

If the ojdbc.jar is missing from $CATALINA_HOME/lib, Tomcat cannot initialise the JNDI datasource, however, the application can still function if it directly loads the driver from WEB-INF/lib. Many legacy web applications were not designed to use container-managed JNDI datasources by default. They often have hardcoded connection logic as a fallback.

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

79197507

Date: 2024-11-17 15:31:44
Score: 2
Natty:
Report link

Even with spark.sql.caseSensitive set to False, the schema must match the data structure exactly( As the PySpark documentation shows, this configuration applies to only Spark SQL).

The simple way is to transform the schema dynamically without modifying the data. Here is the working code.

from pyspark.sql.types import StructType, StructField, StringType

 
schema = StructType([
    StructField("name", StringType(), True),
    StructField("address", StructType([
        StructField("addressline1", StringType(), True),
        StructField("addressline2", StringType(), True)
    ]), True)
])

 
data = [
    {
        "name": "some name 1",
        "address": {
            "addressLine1": "some address line 1",
            "addressLine2": "some address line 2"
        }
    }
]

 def transform_keys(obj):
    if isinstance(obj, dict):
        return {k.lower(): transform_keys(v) for k, v in obj.items()}
    elif isinstance(obj, list):
        return [transform_keys(i) for i in obj]
    return obj

 transformed_data = [transform_keys(record) for record in data]

 
df = spark.createDataFrame(transformed_data, schema)
 
df.show(truncate=False)

Please let me know if you need more information.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Srinimf

79197505

Date: 2024-11-17 15:28:44
Score: 2
Natty:
Report link

I don't think you're supposed to install modules as dev dependencies, try reinstalling @primevue/nuxt-module as a regular dependency.

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

79197492

Date: 2024-11-17 15:24:43
Score: 1
Natty:
Report link

Your can use this code middleware group function of web.php

Route::group(['middleware'=>'admin'],function(){
    Route::get('/home/dashboard', [HomeController::class, 'dashboard'])->name('home.dashboard');   
});
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: ilius Sagar

79197490

Date: 2024-11-17 15:23:42
Score: 2
Natty:
Report link

I realize that this question is from a year ago, but in my search for a small tts model, I came across this question, and wanted to share a model that in my experience trains pretty well on just a few hours of audio.

In my case I had to train a language with no prior pre-trained model, so that was a challenge, but still with just a 2 hours dataset of audio and transcript, I managed to get quite intelligible speech out of training it for less than 15 hours on my GPU (RTX 4080 with 16GB of vRam). It was not a model that's ready for the market, but still is quite decent. And that was training on a brand new language for the model.

Not sure if this still has your interest now, a year later, but take a look at Piper TTS (Open Source). That is at least one model that can work pretty well on a small dataset. I would be cautious of expecting a lot, if you only have 20 sentences of audio, but if you train on a language that has a pre-trained checkpoint, I'm pretty sure it would work with somewhat decent quality, if you train on top of that. https://github.com/rhasspy/piper

It is small enough to run on a Raspberry PI, and performs really well. Also take a look at this tutorial, on training the model: https://www.youtube.com/watch?v=b_we_jma220

Reasons:
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Andras

79197485

Date: 2024-11-17 15:21:41
Score: 0.5
Natty:
Report link

The easiest straightforward way is to use slices.MinFunc as documented here

https://cs.opensource.google/go/go/+/go1.23.3:src/slices/sort.go;l=79

In your case:

firstYoungest := slices.MinFunc(someSlice, func(a, b patient) int {
    return cmp.Compare(a.bodyTemp, b.bodyTemp)
})
Reasons:
  • Whitelisted phrase (-1): In your case
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alexander Pakhomov

79197464

Date: 2024-11-17 15:10:38
Score: 0.5
Natty:
Report link

What worked for was to set permissions (the accepted answer), then copy file to a Desktop, for example. There I was able to edit it using Xcode. Then I copied the file back using cp command and that's it.

Full command (assuming you are in the directory):

sudo cp /Users/<username>/Desktop/SDKSettings.plist SDKSettings.plist
Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Maxim Yarmolik

79197459

Date: 2024-11-17 15:07:37
Score: 4.5
Natty:
Report link

This error typically indicates an issue with the SSH handshake and also this could happen if the SSH server on the VM is blocked or misconfigured and also I would recommend you to reset the daemon with: service sshd restart and also try to restart the VS code and check if it is working.Also could you please confirm whether you have checked this link?

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Imran Premnawaz

79197457

Date: 2024-11-17 15:07:37
Score: 4
Natty: 4
Report link

I developed a Flutter package that will help you with this. Check it out at https://github.com/keepdeploying/conversation_bubbles

Reasons:
  • Blacklisted phrase (0.5): Check it out
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
Posted by: Obum

79197453

Date: 2024-11-17 15:03:36
Score: 1
Natty:
Report link

The "DeviceTokenNotForTopic" error typically indicates a mismatch between your app’s bundle ID, VoIP certificate, or APNs environment (sandbox vs. production). Start by verifying that the VoIP certificate in the Apple Developer Portal matches your app’s bundle ID exactly and that you’re using a VoIP Services Certificate, not a standard push certificate. Ensure the environment aligns with your certificate type: use the sandbox endpoint (api.sandbox.push.apple.com) for development and the production endpoint (api.push.apple.com) for live use. Double-check that the device token you’re using comes from PKPushRegistry for VoIP pushes and matches your app’s bundle ID without any formatting errors. Test your certificate by exporting it as .p12, converting it to .pem with openssl, and using tools like PushTry or curl to send test notifications. If you resolved trust issues with your Keychain certificate, confirm it’s now fully trusted and re-export the .pem file if needed. If problems persist, consider deleting and recreating the VoIP certificate in the Developer Portal, then updating your server with the new certificate. Also, review APNs logs in the macOS Console app or your server logs for more details. Finally, if all else fails, reach out to Apple Developer Support with detailed information about the issue and the steps you’ve taken to resolve it.

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

79197451

Date: 2024-11-17 15:02:36
Score: 0.5
Natty:
Report link

Use hex strings for simplicity when saving colors with @AppStorage

extension Color {
    func toData() -> Data? {
        try? NSKeyedArchiver.archivedData(withRootObject: UIColor(self), requiringSecureCoding: false)
    }
    
    static func fromData(_ data: Data) -> Color? {
        if let uiColor = try? NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data) as? UIColor {
            return Color(uiColor)
        }
        return nil
    }
}

Usage

struct ContentView: View {
    @State private var themeColor: Color = .white

    var body: some View {
        VStack {
            Text("Hello, World!")
                .padding()
                .background(themeColor)

            Button("Change Color") {
                // Save color
                if let colorData = Color.red.toData() {
                    UserDefaults.standard.set(colorData, forKey: "themeColor")
                }
                themeColor = .red
            }
            .onAppear {
                // Retrieve color
                if let colorData = UserDefaults.standard.data(forKey: "themeColor"),
                   let savedColor = Color.fromData(colorData) {
                    themeColor = savedColor
                }
            }
        }
    }
}
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @AppStorageUsage
  • Low reputation (1):
Posted by: K.pen

79197446

Date: 2024-11-17 15:00:35
Score: 2.5
Natty:
Report link
  1. You should put ojdbc jar in $CATALINA_HOME/lib.
  2. No
Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Saurabh Verma

79197445

Date: 2024-11-17 15:00:35
Score: 1
Natty:
Report link

Just like everyone said when we have import and export in same file we get this TS error.
Sometimes I want to aggregate all file exports in index.ts file and export them again in one place (index.ts)
In this case exporting as default will fix the problem.

import {CONFIG} from './config.ts';
import {COLORS} from './colors.ts';
// and other imports

export default {
  CONFIG,
  COLORS
}

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: mmd amin

79197443

Date: 2024-11-17 14:59:35
Score: 5
Natty: 5.5
Report link

I think the key problem is on the error message saying StorageContext is not JSON serializable?

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

79197442

Date: 2024-11-17 14:58:34
Score: 0.5
Natty:
Report link

To load-balance conferences across multiple FreeSWITCH servers, it's a bit trickier than regular call routing because all participants need to join the same conference instance. If you just route calls to the same conference number from different servers, each server will create its own isolated conference. To allow participants from different servers to communicate, you’ll need to set up conference cascading—essentially linking the conference instances together between FreeSWITCH servers, typically using SIP trunks or bridging.

Kamailio can help route conference calls to the right FreeSWITCH server, but you’ll need to ensure all participants join the same conference instance. For large conferences, you might want to route all calls to a primary server or use cascading to connect multiple servers together.

In short, while Kamailio can load-balance incoming conference calls, you’ll need to implement cascading or link servers together to manage a single, unified conference. For scaling, you may also want to consider using media relays or distributed processing to handle the media between servers.

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

79197438

Date: 2024-11-17 14:57:34
Score: 1
Natty:
Report link

Do the following checks, maybe this will sort it out:

  1. Case Sensitivity: Make sure your folder is actually named components (all lowercase). If it’s named components but you’re importing it as @/Components/NavBar (with a capital C), that will break. Try updating your import to:

    import { NavBar } from "@/components/NavBar"; // lowercase "components"
    
  2. Check Your tsconfig.json: If you're using the @ alias, check your tsconfig.json file to make sure it includes this under compilerOptions:

    "paths": {
      "@/*": ["./*"]
    }
    

    This configuration ensures TypeScript can resolve paths starting with @/. If it’s not there, add it, save, and restart your TypeScript server. (In VS Code, press Ctrl+Shift+P and search for TypeScript: Restart TS Server.)

  3. File Location: Double-check that NavBar.tsx exists exactly where you’re pointing to. It should be inside a folder named components at the root (or wherever your alias resolves). Also, make sure there are no typos in the file name, and it’s using the correct extension (.tsx or .js).

  4. Clear the Cache: If everything looks fine and it’s still not working, try restarting your Next.js server and clearing the cache. Run:

    npm run dev -- --reset-cache
    

Hopefully, one of these steps fixes the issue! Let me know how it goes! 😊

Reasons:
  • Blacklisted phrase (2): still not working
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lope

79197433

Date: 2024-11-17 14:54:33
Score: 2
Natty:
Report link

I've tried to replicate your code using SDL preview-3.1.6 and both the extension number and the required extensions get reported correctly. The steps I followed are:


If after following these steps you get the same error you need to check that you have a good Vulkan installation and that you are linking correctly with SDL.

First thing I would try is to check that the demos in the Vulkan SDK work. You can find them at %VULKAN_SDK%/Demos.

After that I would test a basic triangle sample you can find online. For example:

If the Vulkan Demos or the Triangle Example work it means you have a problem with SDL. Check that you are linking with the correct lib/dll or try with SDL2.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): get the same error
  • Low reputation (1):
Posted by: Alex Cazacu

79197427

Date: 2024-11-17 14:48:32
Score: 1.5
Natty:
Report link

Since the issue with conference_auto_record is happening intermittently, it’s likely due to timing, resource conflicts, or certain call scenarios. To troubleshoot, try adding a small delay (1-2 seconds) in the sched_api command to ensure the conference is fully set up before recording starts. Compare channel variables for successful and failed calls using uuid_dump to spot inconsistencies, especially with the conference_auto_record variable. Turn on detailed logging to catch any errors or unusual behavior during the process. Also, check your system resources (CPU, memory, disk) to rule out performance issues, and test under higher call volumes to see if the problem only happens under load. Finally, make sure the variable is being passed reliably, using export if needed, and enable conference event logging to confirm when recordings are being triggered. These steps should help you pinpoint the cause.

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

79197418

Date: 2024-11-17 14:41:31
Score: 0.5
Natty:
Report link

I discovered that using:

@Autowired
private NewGradeHandler newGradeHandler; 

I was creating a new instance without the previous connections. So, if this happens to you. in the method you want to consume your WebSocket do:

  1. declare:

     @Autowired
     private ApplicationContext applicationContext; // Inyecta el ApplicationContext
    
  2. Use this instance, make sure the String in the getBean method has the sam name as your class:

NewGradeHandler newGradeHandler = applicationContext.getBean("NewGradeHandler",NewGradeHandler.class);

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Jesús Mariscal

79197399

Date: 2024-11-17 14:31:28
Score: 3
Natty:
Report link

How can I efficiently merge multiple dictionaries in Python, considering Python 3.9+ and older versions?

I'm working on a project where I need to merge several dictionaries into one. The number of dictionaries can vary, and some of them may contain overlapping keys. What is the most efficient way to merge these dictionaries while maintaining the values from later dictionaries when there are conflicts?

For example, I want to merge the following dictionaries:

python Copy code dict1 = {'a': 1, 'b': 2} dict2 = {'b': 3, 'c': 4}enter code here dict3 = {'d': 5} And expect the merged result to be:

python Copy code {'a': 1, 'b': 3, 'c': 4, 'd': 5} Bonus: Is there a one-liner for this in Python 3.9 and later, and how can I achieve the same in older versions of Python?

This question touches on the topic of merging dictionaries, including handling conflicts, which is a common task in Python. It also encourages discussion about compatibility between newer and older versions of Python, which is often helpful in a community setting.

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (0.5): how can I
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): How can I
  • Low reputation (1):
Posted by: Shokhat Ali

79197397

Date: 2024-11-17 14:31:28
Score: 0.5
Natty:
Report link

I decided to try to fill in all the text variables of the configurator and this turned out to be the answer:

wchar_t pythonPath[MAX_PATH * 3];
wchar_t pythonExe[MAX_PATH];
wchar_t pythonHome[] = L"%localappdata%\\Programs\\Python\\Python38"; // L"C:\\Program Files\\Python38";

(void)swprintf_s(pythonPath, L"%s\\Lib;%s\\DLLs;%s\\Lib\\site-packages", pythonHome, pythonHome, pythonHome);
PathCombineW(pythonExe, pythonHome, L"python.exe");

PyConfig config;
PyConfig_InitPythonConfig(&config);
PyConfig_SetString(&config, &config.executable, pythonExe);
PyConfig_SetString(&config, &config.home, pythonHome);
PyConfig_SetString(&config, &config.pythonpath_env, pythonPath);

PyStatus status = Py_InitializeFromConfig(&config);
if (PyStatus_Exception(status) || !Py_IsInitialized()) 
{
    CMyService::LogPythonError(L"Python initialization failed");
    CMyService::LogTextEvent(pythonPath);
    PyConfig_Clear(&config);
    return false;
}

PyConfig_Clear(&config);
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: PorisulkiP

79197395

Date: 2024-11-17 14:30:28
Score: 2
Natty:
Report link

In the Signing & Capabilities tab, make sure the following capabilities are enabled: Push Notifications Background Modes (Remote notifications option must be checked)

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

79197389

Date: 2024-11-17 14:28:27
Score: 1.5
Natty:
Report link

delete bun.lockb

and rerun bun run dev

Reasons:
  • Low length (2):
  • Has code block (-0.5):
Posted by: Paul Verschoor

79197388

Date: 2024-11-17 14:28:27
Score: 0.5
Natty:
Report link
RewriteEngine On
RewriteRule ^(.*)$ /file.php?q=$1 [NC,L,QSA]

The "file.php" handles authentication and logging of access. after successful authentication , it just sends the same data that was requested.

Also using this in file.php for handling different file types-

$finfo = finfo_open(FILEINFO_MIME_TYPE);
$ext = finfo_file($finfo,$q);
header('Content-Type: '.$ext); 
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Devanshu Goyal

79197387

Date: 2024-11-17 14:28:27
Score: 1
Natty:
Report link

There is always a way :-) but maybe sometimes a long one. Please open an issue on github and provide as much information as possible and i will try to help.

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

79197386

Date: 2024-11-17 14:28:27
Score: 2
Natty:
Report link
Route::prefix('storage')->match(['GET', 'POST'], '{any?}', function (Request $request) {

})->where('any', '.*');

This accepts any number of URIs.

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

79197385

Date: 2024-11-17 14:28:27
Score: 3.5
Natty:
Report link

I found this looking for the same thing. Basically My window is 281 columns wide. I'd like for tmux to choose to split along the vertical axis (create side-by-side windows) and balance those until splitting them would create a window that is too narrow (80 columns in my case). Instead I get very wide but short windows which for looking at CLI results is less optimal I feel.

I wonder how hard this would be to code as a new layout?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Christian Hopps

79197377

Date: 2024-11-17 14:23:26
Score: 2.5
Natty:
Report link

I had the same problem, updating GeForce Experience helped me, so if anyone else has a similar problem, check if there are any updates available.

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

79197369

Date: 2024-11-17 14:18:25
Score: 0.5
Natty:
Report link

On one of my test devices, this sometimes happens. One solution that sometimes works (2 times out of 2 so far) is to reboot the phone, and then no other change is needed (same Mac, same USB C cable, same android studio, etc.), and this time it remembers my previous authorizations.

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

79197364

Date: 2024-11-17 14:14:24
Score: 3.5
Natty:
Report link

The point of CQRS as @geek said, is the separation of write and query models. I think you should reconsider using CQRS as it focuses on separation rather than sharing logic. What you are looking for is specification pattern to reuse specs. But these two are not mixable. Read this link from Vladimir Khorikov for more information:

Reasons:
  • Blacklisted phrase (1): this link
  • No code block (0.5):
  • User mentioned (1): @geek
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: R.Abbasi

79197362

Date: 2024-11-17 14:13:23
Score: 8 🚩
Natty: 5
Report link

Were you able to resolve this issue? I'm encountering the same problem on Ubuntu. The directory definitely exists, and I can even create a new folder through the Dart code during initialization. However, the main issue persists. I’ve tested the same setup on Windows, and it works perfectly—I'm able to get the devices on the network there. Could this be related to a permission issue on Ubuntu? Any insights would be greatly appreciated!

Reasons:
  • Blacklisted phrase (1): appreciated
  • RegEx Blacklisted phrase (1.5): resolve this issue?
  • RegEx Blacklisted phrase (3): Were you able
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Elham Rahmati

79197352

Date: 2024-11-17 14:06:21
Score: 0.5
Natty:
Report link

check in your code some where you using the num_workers>0, change it to 0

 def create_dataloaders(train_dir: str,
    test_dir: str,
    transform: transforms.Compose,
    batch_size: int,
    num_workers: int = 0
    ):
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: shiv

79197348

Date: 2024-11-17 14:03:21
Score: 2
Natty:
Report link

Thank you, you are amazing and your post save my day, I apply quantization on YOLO model, the code:

#https://github.com/ultralytics/ultralytics/issues/6676
#https://github.com/onnx/onnx-tensorflow
#https://github.com/onnx/onnx-tensorflow/blob/main/example/onnx_to_tf.py
#https://docs.ultralytics.com/modes/export/#usage-examples
#https://coral.ai/docs/edgetpu/models-intro/#compatibility-overview

import tensorflow as tf
import numpy as np
import os 
import cv2

def representative_data_gen():
  image_paths = "/..../images/"
  op_ = 0

  for image_path in os.listdir(image_paths):
    op_ = op_ + 1 
    image = cv2.imread("/.../images/"+image_path)    
    print("------111-------", image.shape)  
    image = cv2.resize(image, (640, 640))
    print("------222-------", image.shape)  
    image = np.array(image).astype(np.float32) / 255.0 
    print("------333-------", image.shape)  
    image = np.transpose(image, (2, 0, 1))  # (H, W, C) -> (C, H, W)
    print("------444-------", image.shape)  
    image = np.expand_dims(image, axis=0)  # Add batch dimension

    print("------555-------", image.shape)  
    if op_ == 100:
      break
  
    print(len(image), len(image[0]), len(image[0][0]), len(image[0][0][0]))
    yield [image] #[np.array(image[0][0], dtype=np.float32)]# [image]
    print(" what next ")
   


# ... (Load your TensorFlow model)
converter = tf.lite.TFLiteConverter.from_saved_model('/..../teston')

converter.optimizations = [tf.lite.Optimize.DEFAULT]
converter.target_spec.supported_ops = [tf.lite.OpsSet.TFLITE_BUILTINS_INT8]
converter.inference_input_type = tf.int8  
converter.inference_output_type = tf.int8  
converter.representative_dataset = representative_data_gen  # Provide a data generator function

tflite_quant_model = converter.convert()

# Save the quantized model
with open('/..../teston/quantized_model2.tflite', 'wb') as f:
    f.write(tflite_quant_model)
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (2): save my day
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: AMER ALAHMAD

79197331

Date: 2024-11-17 13:50:18
Score: 3.5
Natty:
Report link

If you hope to extract "0129" from "AXB1234_CBS0129", =MID(str,XMATCH(TRUE,ISERROR(--MID(str,SEQUENCE(LEN(str)),1)),,-1)+1,999) enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: ThxAlot

79197327

Date: 2024-11-17 13:47:18
Score: 1.5
Natty:
Report link

If I were you I would consider using Celery a powerful asynchronous task queue for Python. It allows you to run functions in the background without blocking your main web request or causing the page to hang.

Here’s a basic approach (You can find more in the docs)

Install Celery and a message broker like Redis

Move your response-generating loop into a Celery task

Trigger the task from your Django view without waiting for it to complete.

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

79197304

Date: 2024-11-17 13:38:16
Score: 3
Natty:
Report link

On Windows, the shortcut to debug the last run test is: Ctrl+R,Ctrl+T

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

79197291

Date: 2024-11-17 13:35:15
Score: 2.5
Natty:
Report link

I delete all node_modules in my monorepo and delete .next folder. Reinstall all packages and run dev script and it work for me.

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

79197284

Date: 2024-11-17 13:28:14
Score: 3
Natty:
Report link

I've just added Virtual Hosts extension for Google Chrome, and configure it. That's it. (But you need to find the right one).

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

79197281

Date: 2024-11-17 13:25:13
Score: 0.5
Natty:
Report link

I had this problem. Since we are interacting with the DOM, have the build render in HTML (rather than CanvasKit) to get the native DOM features.

flutter build web --web-renderer=html

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

79197280

Date: 2024-11-17 13:25:13
Score: 3.5
Natty:
Report link

I solved it by following the steps in this link

https://laravel-admin.org/docs/en/model-form-field-management

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-2): I solved
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hala Atef

79197272

Date: 2024-11-17 13:22:13
Score: 1
Natty:
Report link

Apply usernamePassword(credentialsId: env.CREDENTIALS, .. ) to provide selected credential to the script as custom variables, example:

steps {
    withCredentials([ usernamePassword(
            credentialsId: env.CREDENTIALS,
            usernameVariable: 'USERNAME',
            passwordVariable: 'PASSWORD') ]) {
        script {
            sh( script: "./my_shell_script.sh" )   // echo "$USERNAME, $PASSWORD"
        }
    }
}

.. see my detailed answer to a similar question: https://stackoverflow.com/a/79197253/1745341

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Alex

79197270

Date: 2024-11-17 13:21:12
Score: 1.5
Natty:
Report link

A69D72DF7C6A6590FFE4E35117F7D3F097C8DF12534716BE59F7B9384D10D1BB6F99B589E3DB1B6C3489BB8C40A3661DE4F5FCC06E0B51D5A387996D48688CFA717EE6A05EA5351D591360EB33CFDD69B45C5A72A0D7255A115D6D62242623769A9DBE966C791BB0318087824D57F16AB1EC59F6BC65D2919034CE72D900983A6F69B098F0EF17498DC8ECD7698EE7D6D496EB71306089E96CB0CAFF82E05F066A39A531DE60F7241DA41871964DE45A2C36113C898551667C8E94859D48B3B1665E8BC6536B695228E1BC4C0413D8117DD29C827B4D7CDE8EA7722851458445434B13E4C8B9718BB5338BE32E3A487670EA88F40D76CDCDE5C4040B69084455546AE978F299F4C450CAC8ACCEF9BCAC5730CA503F8940858A97A753CD7DBF24E55E920172E937A350A6BA1DC570B98E8599936A8043E6F47C998D6D73E8ED3E152EB947F291F3735A0AF4F9A3E00CA56D40EDB9CAA1C5FD9F0897566E0B64DE7C9A82E186FCF4A8900A1F79E2D7038075C9AC00CCBA8468F492EE92B024778B4D0FBA93707F5DD94AAF72D86FBFF5F88E7F85313BF2724329ED092DAFF19A14BB1C3364487E089AFE4D062D5AF9B264F36A5B701CB0962CD9C5F0F5F3A8B52D2F989EA92E4B020383861F898DA962C725D3A9C63BD31D38FE95A9AE4CDC4DC782424298B7ED4F014E6852847666AB07FFE06780A95E4BFE39704C0BC67FF16FC87F7EAE7B6C652F5F4CBA54141BA2A50774916A2B150A6503E6C0B13510C2646FF8221B8E2FF2BBAC5AD44A60F03E6579E4B7D83E5383AF76E08420F3A2C0E2EF604C753DA834613EC9CC9E3F3896E426D0FCAE5AC54893A264AEC551C0AB9BEA856EADAC4D2278894751A7E03992925596E4F66A201C8368C1953B75A32D138A75BAEE6E1A5B29F94DCAA19ED5CD1529DDAD7D0A2F18DA65D3045F402CB29CFAFEC0F0F819A0F8BA3FFD528ECFCFD64ADB7B0DFA45C1E0B78D0B14554941C61D3C57F5D1E6FA1EFBDE5D227F8391375A6971CD2A00A64A6169BF23D668B92D90E71C891BAC39269CF1959B7A4CA2E465F154480EBB83B78B5F591D4BAE4F4727095F5BFFDA4B378D6A2E4ADEA5543BAFB426CA712B2B8DE37265700190EEB99C32E665

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Mathias Olivier

79197268

Date: 2024-11-17 13:20:12
Score: 2
Natty:
Report link

In reply to shadow:

Using the trail with MySql: I get no response at all. Python simply stops, and I have to start it up again from scratch.

Using ODBC, I get:

exec(open('pythonx.py').read()) 1 2 Traceback (most recent call last): File "", line 1, in exec(open('pythonx.py').read()) ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 25, in pyodbc.InterfaceError: ('IM002', '[IM002] [Microsoft][ODBC-stuurprogrammabeheer] De naam van de gegevensbron is niet gevonden en er is geen standaardstuurprogramma opgegeven (0) (SQLDriverConnect)')

Or, after adjusting the driver mentioned

pyodbc.Error: ('HY000', 'The driver did not supply an error!')

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Filler text (0.5): ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  • Low reputation (1):
Posted by: Joop Moerkens

79197266

Date: 2024-11-17 13:19:12
Score: 3
Natty:
Report link

You can go to https://lmarena.ai and ask your questions. Choose a suitable model (I liked deepseek-v2.5) and speak to it on the topic. It will provide you with detailed instructions. Good luck.

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

79197264

Date: 2024-11-17 13:19:12
Score: 1.5
Natty:
Report link

Maybe you don't need JS there is already a ready-made CSS solution

html {
  scroll-behavior: smooth;
}
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: BlackStar1991

79197261

Date: 2024-11-17 13:18:12
Score: 3
Natty:
Report link

Changing the system-wide font on the phone programmatically from your app is not officially supported in Android.

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

79197258

Date: 2024-11-17 13:14:11
Score: 0.5
Natty:
Report link

"Is there a way preferbly in properties file to instruct spring boot to use it?"

Short answer is NO.

Long answer you need to do it manually for each query you execute.

Also there is no universal way to do it. Solution will be different for different DB.

Reasons:
  • Blacklisted phrase (1): Is there a way
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • High reputation (-2):
Posted by: talex moved to Codidact

79197255

Date: 2024-11-17 13:14:11
Score: 1.5
Natty:
Report link

at first i seperated my folders in app.js into both folders

app
----(main)
----------login
----------profile
----dashboard
-------------page.js

which gets this error, in main there are many pages and i get this error. folder structure in main folder were something like this

app/(main)/profile/page.js

i removed (main) in app.js and transfer all folders in app.js directly, not in brackes (main) and edited like this

app/profile/page.js

the error gone

Reasons:
  • RegEx Blacklisted phrase (1): i get this error
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: amir seraj

79197243

Date: 2024-11-17 13:05:09
Score: 2.5
Natty:
Report link

email format to enable classic editor to get permission to the organizational level on azure devops you have to an email in this format to azure team and this issue will resolve within 2 days

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

79197230

Date: 2024-11-17 12:58:08
Score: 2
Natty:
Report link

Scheduler sched = StdSchedulerFactory.getDefaultScheduler(); if (!sched.isStarted()){ sched.start(); } String konf = MyConfigClass.getRow(25).getKonfiguration(); Calendar cal = Calendar.getInstance(); cal.setTime(MyParser.stf.parse(konf)); String expression = "0 " + cal.get(Calendar.MINUTE) + " " + cal.get(Calendar.HOUR_OF_DAY) + " ? * MON-FRI"; CronTrigger ct = new CronTrigger(triggerName, group, jobName, group, expression); if (sched.getTrigger(triggerName, Scheduler.DEFAULT_GROUP) != null) { sched.rescheduleJob(triggerName, group, ct); } else { JobDetail jd

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

79197228

Date: 2024-11-17 12:57:08
Score: 0.5
Natty:
Report link

There are many architecture patterns and you can follow any one that suits your need. By default android follow mvc but most developers prefer mvvm since its also recommended by google itself.

Since you are new to android I would suggest you to follow the default architecture (mvc) you can place the business logic in your activity or fragment (especially if your building a small app).

First get familiar with android eco system by making different small apps then when you are confident move to advance topics. (Its my opinion, others can agree or disagree).

Incase you prefer to follow other architecture patterns like mvvm then you can put your buisness logic in repository or use clean architecture with mvvm and place your business logic in usecases.

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

79197218

Date: 2024-11-17 12:52:06
Score: 2
Natty:
Report link

I just managed to solve the problem for me (as far as I can tell with the testing I have done so far). I had the same app with two different ids on my phone, one for development, the other for (beta/performance) testing. They both used the same id resulting in some kind of conflict when accessing/writing data with mmkv. In any case, deleting the preduction build solved the problem. I will simply use two different mmvk storage ids to avoid the problem going forward.

Thanks again @youssdevx for the answer.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Whitelisted phrase (-1): I had the same
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @youssdevx
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: N K

79197216

Date: 2024-11-17 12:51:06
Score: 3
Natty:
Report link

a is better (declare before the loop) if You need to reuse the variable outside the loop after it finishes executing.

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

79197210

Date: 2024-11-17 12:46:05
Score: 1
Natty:
Report link
  1. When converting the code to IL, we observe that abstract methods are called using the callvirt instruction. This signifies that they are virtual by nature and rely on a runtime mechanism called the vtable (virtual table). IL Abstract. A vtable is a per-class table that holds references to the implementations of virtual and abstract methods. This table allows derived classes to override the base class's abstract or virtual methods. At compile time, the compiler ensures that the derived class refers to the base class’s vtable and updates the entries to point to the correct implementations from the derived class. IL override

This mechanism inherently relies on object instances to resolve the method calls at runtime, which is why abstract methods are tied to instance-based polymorphism.

  1. However, static methods work entirely differently in C#. They are not associated with instances of a class but rather with the class itself. Static methods are resolved at compile time based on the type, and they do not participate in the vtable mechanism. Because static methods are not tied to an instance, there is no runtime resolution, and they cannot be overridden or abstracted like instance methods.IL Static

Due to this fundamental difference, it is not possible to define static abstract methods in a class. The runtime has no mechanism to support such behavior, as it would require combining type-level resolution (for static methods) with instance-level polymorphism (for abstract methods), which is not supported in C#.

The implementation has already been written above

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

79197203

Date: 2024-11-17 12:44:05
Score: 0.5
Natty:
Report link

Umm, if they want seqnum 1 on every Logon you need to set ResetOnLogon=Y.

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

79197201

Date: 2024-11-17 12:43:05
Score: 0.5
Natty:
Report link

In reply to Maurice

Using MySql I use this code:

import mysql.connector
cnx = mysql.connector.connect(user='root', password='Aragorn_2024', 
host='127.0.0.1',  database='Aragorn')
cur = cnx.cursor()
cur.execute("INSERT INTO sakila.tempora SELECT sysdate()")
for row in cur.fetchall():
    print (row[0])
cnxn.close())

Using ODBC, the code looks like this: import pyodbc cnx = pyodbc.connect('DRIVER={Devart ODBC Driver for SQL Server};Server=127.0.0.1;Database=Aragorn;Port=3306;UserID=root;Password=Aragorn_2024') cur = cnx.cursor() cur.execute("INSERT INTO sakila.tempora SELECT sysdate()") for row in cur.fetchall(): print (row[0]) cnxn.close()

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

79197199

Date: 2024-11-17 12:42:04
Score: 1.5
Natty:
Report link

It seems the GPT-4 with browsing (GPT-4o) feature is either disabled or temporarily unavailable. You might be selecting the model correctly, but it's defaulting to regular GPT-4, which doesn't have internet access.

Try:

Logging out and back in. Clearing your browser cache. Checking OpenAI status for updates. Contacting OpenAI support for clarification. If browsing is down, responses will be immediate since the model isn't fetching real-time data.

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

79197196

Date: 2024-11-17 12:41:04
Score: 0.5
Natty:
Report link

this is what i wrote to myself with regards to snowflake native apps, for future maybe it will be helpful for you

  1. you're supposed to use snowflakecli ( not snowsql ) the command for snowflake cli is "snow" rather than "snowsql" that is used above, not confusing at all right?
  2. for "snow" to work you have to install it and use it in windows in command prompt started as admin
  3. once it's working you have configure it, the way to do this is
  4. issue $ snow connection list
  5. go to the connection file it lists
  6. add your configs in the .toml file the same way other look like ( all see my config below )
  7. issue snow connection set-default (myconnection)
  8. test it by running snow sql --query "select 'this is not painful at all snowflake team' as is_it_painful "
  9. now you should be able to issue snow app run as the walkthrough tells you to do

connection.toml file

["myconnection"]
name = "your_cute_name_not_the_same_as_myconnection_above_which_is_the_real_name"
account = "dagass-graawa"
user = "MAGA47"
authenticator = "snowflake"
password = "will_not_tell_you"
Reasons:
  • Blacklisted phrase (1): regards
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: pawelek69420

79197193

Date: 2024-11-17 12:40:04
Score: 2
Natty:
Report link

Since you need to insert a pair to the map, you can also use emplace instead of insert, so it will construct the pair in-place with the given key and value. https://en.cppreference.com/w/cpp/container/unordered_map/emplace

map.emplace("string", std::make_shared<ClassB>());
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Zipzap

79197182

Date: 2024-11-17 12:33:01
Score: 1.5
Natty:
Report link

As discussed in the comment section, without knowing ordering of data it would not be possible to retrieve the output, because select does not guarantee it will output in insertion order, unless you have a column to determine it.And every calculation done on grouping similar timestamp could lead to different output in different runs.

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

79197175

Date: 2024-11-17 12:31:01
Score: 0.5
Natty:
Report link

Usually Android applications follow MVVM design pattern or sometimes MVP pattern, in addition to those sometimes we add Use Case - Repository - Service a typical app using latest technology and built from the ground up in a decent pattern and ready for unit testing would be like this. Model - View - ViewModel - UseCase - Repository - Service with each one having it's own unique functionality, and all with a Dependency Injection running as well for testing, something like Dagger or Hilt for larger apps, or maybe Koin for smaller ones

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

79197158

Date: 2024-11-17 12:23:59
Score: 1.5
Natty:
Report link

Try to change importance: Importance.high to importance: Importance.low,

Please review this doc: AndroidForeground

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

79197156

Date: 2024-11-17 12:21:58
Score: 1.5
Natty:
Report link

In addition to the existing solutions, I found that Assimp::Importer::ReadFileFromMemory only read file ptr but no handling outsource file, such as mtl file. It is commented in the library. Instead, I should use Assimp::Importer::ReadFile.

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