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

79197154

Date: 2024-11-17 12:19:58
Score: 3.5
Natty:
Report link

I have a merged PR for this issue in GIT.

I have added a new mapper, "Organization Specific Attribute", which will add the attribute matching claim name, just as the user attribute.

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Prifulnath

79197145

Date: 2024-11-17 12:16:56
Score: 2.5
Natty:
Report link
  1. System.out.print() prints content without moving to the next line. 2. System.out.println() moves the cursor to the next line after printing
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Anfal

79197138

Date: 2024-11-17 12:14:56
Score: 2
Natty:
Report link

Define two functions to find the greatest common divisor and the least common multip. Requirements: (1) The two integers should be input in the main() function. Report "Input Error" while the input contains negative number. (2) In the main(), call the two functions and output result.

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

79197123

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

As you're making use of template literals, you need to replace the ' with `.

const textOut = `This is what we know: ${textIn}.\nCreated on ${Date.now()}`;

Before template literals following method was used to concatenation.

const textOut = 'This is what we know: '+textIn+'.\nCreated on '+Date.now();
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Naeem Akhtar

79197116

Date: 2024-11-17 12:00:53
Score: 0.5
Natty:
Report link

I doubt/suspect that your Reverse(orig) function returns an error but you ignore it. If your function returns an error like:

func Reverse(s string) (string, error) {
if !utf8.ValidString(s) {
    return s, errors.New("input is not valid UTF-8")
}
r := []rune(s)
for i, j := 0, len(r)-1; i < len(r)/2; i, j = i+1, j-1 {
    r[i], r[j] = r[j], r[i]
}
return string(r), nil
}

Then your test should look like:

func FuzzReverse(f *testing.F) {
testcases := []string{"Hello, world", " ", "!12345"}
for _, tc := range testcases {
    f.Add(tc) // Use f.Add to provide a seed corpus
}
f.Fuzz(func(t *testing.T, orig string) {
    rev := Reverse(orig)
    if err1 != nil {
        t.Skip()
    }
    doubleRev, err2 := Reverse(rev)
    if err2 != nil {
        t.Skip()
    }
    if orig != doubleRev {
        t.Errorf("Before: %q, after: %q", orig, doubleRev)
    }
    if utf8.ValidString(orig) && !utf8.ValidString(rev) {
        t.Errorf("Reverse produced invalid UTF-8 string %q", rev)
    }
})
}

Also make sure your main package's folder is writable and you may need to clean the cache if the issue still persists:

Running 'go clean -fuzzcache' removes all cached fuzzing values. This may make fuzzing less effective, temporarily.

I advise to go through the doc step by step avoiding jumping/skipping some steps or just copying the code without reading the instructions & explanations as it's useful for avoiding such unknown errors. LMK more details and/or share your full code including the function itself that you're testing (the fuzz target).

PS: You may find the following commands useful:

go help testflag
go help testflag

You may additionally find this link useful!

Reasons:
  • Blacklisted phrase (1): this link
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ahmad Saeed Goda

79197111

Date: 2024-11-17 11:58:53
Score: 2.5
Natty:
Report link

I was stuck with this problem a whole day, my issue was that in the optionMenuCreated constructor I used the old androidMenuInflator class which parses the menu.xml but just skips androidX attributes. Fixed by using getMenuInflater.inflate instead of the own instantiated object from Android and not AndroidX

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

79197110

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

Managed to solve this - I tried to perform the debugging inside an Hyper-V VM, when I switched to a VMWare VM this problem was solved.

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

79197102

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

I have seen that you are using LocalDateTime and LocalTime in Java, these classes have methods to know if they overlap:

boolean isAfter(ChronoLocalDateTime<?> other) ➔ Checks if this date-time is after the specified date-time.

boolean isBefore(ChronoLocalDateTime<?> other) ➔ Checks if this date-time is before the specified date-time.

boolean isEqual(ChronoLocalDateTime<?> other) ➔ Checks if this date-time is equal to the specified date-time.

You could just get the last date from your range1 and the first from your second range. And play with this

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Jesús Mariscal

79197096

Date: 2024-11-17 11:52:51
Score: 3.5
Natty:
Report link

I would suggest combining Pod Disruption Budgets PDBs for your RabbitMQ pods which will ensure at least your two RabbitMQ pods arealways running for example and the managed nodes rolling update strategy:

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

79197087

Date: 2024-11-17 11:45:50
Score: 3
Natty:
Report link

Use kubectl get events --sort-by=.metadata.creationTimestamp --watch to tail events. Without --sort-by=.metadata.creationTimestamp, the event at the bottom may not be the latest.

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

79197082

Date: 2024-11-17 11:41:49
Score: 1.5
Natty:
Report link

I encountered this error within an Angular Material component when using Angular version 18, while Angular Material was still on version 17.

Upgrading Angular Material to match the Angular version resolved the issue.

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

79197076

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

CHECKED EXCEPTION:

Basically Checked Exception are the exception, which actually occurs when we are dealing with any resources, like File,Database,Network etc.So,during loading another class for any purpose like when we use Class.forName(String ClassName) for dynamically load the Driver class at runtime during connection of database or any other purpose we are dealing with another class , which acts as a resource for our class and another one is when we use File for write or read some data the file also is a resource so basically in my observation when we handling with resources then they throws checked exception which we need to catch explicitly by try-catch block or after method declaration we can write with throws which will be handle by JVM's default exception handler. Examples Of Checked Exception:

IOException (we are depending upon System Keyboard OR Files ) FileNotFoundException(We are depending upon the file) InterruptedException (Thread related problem) ClassNotFoundException (class related problem) SQLException (SQL related or database related problem) CloneNotSupportedException (Object is the resourse) EOFException(We are depending upon the file)

And , another thing all the checked exception are directly subclass of either java.lang.Exception or java.lang.Throwable

Unchecked Exception

Unchecked Exception are sub-class of RuntimeException class.this is the way to identify unchecked exception.An Unchecked exception is rare and most of the the time these are not linked with any resource . These are directly handled by default exception handler by jvm . it is upto the programmer to handle the exception. if we do not handle exception application will terminate abnormally throwing that perticular exception. if we handle it then program throws exception, we can provide user-friendly message to user related to exception.because our client might a non technical person if he is dividing a number by 0 and we provide him java.lang.ArithmeticException may be he could not understand ,by providing user-friendly message "Like Dont divide any number by 0" it would be better approach.so it is reccomended to catch every possible exception(whether checked or unchecked ) in our application to provide user-friendly message and a normal termination.

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

79197072

Date: 2024-11-17 11:37:48
Score: 2.5
Natty:
Report link

install pip install brax-jumpy and then import jumpy as jp don't import jumpy' from 'brax' again otherwise you will receive the same error.

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

79197064

Date: 2024-11-17 11:28:47
Score: 2.5
Natty:
Report link

Have you tried to update via npm? Also you need to have compatible versions of node and angular depending on typescript version

Reasons:
  • Whitelisted phrase (-1): Have you tried
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: R.Bacaro

79197061

Date: 2024-11-17 11:26:46
Score: 1
Natty:
Report link

This was an issue with so much older documentation/examples out there on the internet.

The simple answer is that they had changed the syntax of the function. The second parameter has been removed, so the correct syntax is simply...

lv_style_set_text_font(&style, &lv_font_unscii_16);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Steve Harding

79197053

Date: 2024-11-17 11:18:44
Score: 1
Natty:
Report link

Apple's documentation [1] says

Observation doesn’t require a property wrapper to make a property observable. Instead, the accessibility of the property in relationship to an observer, such as a view, determines whether a property is observable.

If you have properties that are accessible to an observer that you don’t want to track, apply the ObservationIgnored() macro to the property.

[1] https://developer.apple.com/documentation/swiftui/migrating-from-the-observable-object-protocol-to-the-observable-macro

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

79197037

Date: 2024-11-17 11:05:41
Score: 1
Natty:
Report link

If your project requires a custom Babel configuration, you need to create the babel.config.js file in your project by following the steps below:

  1. Navigate to the root of your project, run the following command inside a terminal

npx expo customize

  1. This command prompts generating different config files. Select babel.config.js.

  2. The babel.config.js file is created in the root of your project with the default configuration as shown below:

    module.exports = function (api) { api.cache(true); return { presets: ['babel-preset-expo'], }; };

Expo Docs

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

79197018

Date: 2024-11-17 10:52:39
Score: 1.5
Natty:
Report link

I think below one is the easiest and convenient one. Set varCurrentDate with convertFromUtc(utcNow(), 'Arab Standard Time') and then use a boolean variable to set the below formula to determine if current date is last week(7 days) of the month not(equals(formatDateTime(variables('varCurrentDate'), 'MM'), formatDateTime(addDays(variables('varCurrentDate'), 7),'MM')))

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

79197017

Date: 2024-11-17 10:52:39
Score: 4
Natty: 5
Report link

try uninstall opencv with cuda likely cuda device count is 1 perhaps that was is used by opencv when in yolo doesnt work im still try figure it out

Reasons:
  • Blacklisted phrase (1): doesnt work
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Budi TheUnknownName

79197014

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

Sorry , hier are two keys from Eclipse

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Defender\Exclusions\Processes

C:\ProgrammeWZ\Eclipse\eclipse\eclipse.exe C:\ProgrammeWZ\eclipse\java-2024-092\eclipse\eclipse.exe this ke4as are not alloaw to delete regardes

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

79197013

Date: 2024-11-17 10:49:37
Score: 4
Natty: 4
Report link

Well boys I'll tell you what I've learned is that your trying to force or manipulate the app to scan beacons once you've murdered it. And you're doing that through a tas manager is that correct?. Hell wouldn't it be a whole lot easier to build an infrared night and heat sensing camer with activate with motion and activate with noise feature and if you're going that far you need to go from the window to he wall with it get some ultraviolet drippin of your Jaws with it, ya know what I'm saying? Mount a silenced 223 with a 30 in bull barrel wieghs like 45lbs most anoying think to carry to the 3rd floor of a book repository if you catch my drift. He got shot by 2 naked men before her ever made the turn on deely that took him in front of and past the damn book store. At least thats what photographic evidence would suggest unless theyve taken parts from 2 different films on 2 different sides and mixed matched them a little. Why were they naked? Well bc when you get to the otherside apperently when you strip ass naked you vanish like a damn ghost. Thats why i say if it ever gets that bad and with the way the world and you computer guys are running shit it llols like we might all be stripping naked and heading to the forrest. Do you see where im taking you with your wording in your code? Listen ill tell you for certain that everything you say or write can and will be used against you when "they" come back, and "they" idk...but thanks to you qe have a bounch of illuminated or outright vaporized invisible people ourlt here running around killing apps. Then when the app wakes up in his new reality hes made a slave bc of your wording. All of your wording has to be fixed. You actually have ppl out there coding using apocalyptic terms like how fucking ignorant can you geniouses be? Well its ppl like you that sent a fucking solid gold record player into deep space to play the intising sound of young school children on earth oh and some pretty noises like birds and bullfrogs as well. Like swriously? Who the hells in charge of shit like that? He needs a foot so far upnhis ass they have to call the foot doc over to the ass docs office to figure out whay sort of insteuments and emergency techniques theyre going to need too get his ass home once they pull that size 14 baseball golf cleet out of there. Seriously you don't kill an application and expect it to do everything you want when it gets to the otherside, bc if I am that application I'm going to fucking run your whole metaverse. Anyway a little friendly suggestions from one assassin to the other. Just bang and walk away. That's you're only hope.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (2): fuck
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Sir Donald Ryan Hobeck

79197010

Date: 2024-11-17 10:48:37
Score: 0.5
Natty:
Report link

make sure your main application class (StudentSystemApplication.java) has component scanning enabled for the correct base package. It should look like this:

@SpringBootApplication
@ComponentScan(basePackages = "com.connectingfrontandback")
public class StudentSystemApplication {
 public static void main(String[] args) {
    SpringApplication.run(StudentSystemApplication.class, args);
 }
}

Because @SpringBootApplication includes component scanning functionality that automatically detects annotations like @RestController, @Service, @Repository, and @Component. When these annotations are found, Spring creates and manages those classes as beans. However, this scanning only works within the package containing your main class and its sub-packages. So if your main application class is in a different package than your components, you need to explicitly add @ComponentScan(basePackages = "com.connectingfrontandback") to ensure Spring finds and manages all your annotated classes correctly.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @RestController
  • Low reputation (0.5):
Posted by: Haitam-Elgharras

79197009

Date: 2024-11-17 10:46:36
Score: 3
Natty:
Report link

doing a flutter clean worked for me

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Göktürk

79197006

Date: 2024-11-17 10:44:36
Score: 2
Natty:
Report link

The up-to-date way of doing this is using mc anonymous: https://min.io/docs/minio/linux/reference/minio-mc/mc-anonymous-set.html

For example to allow public downloads for a bucket, use mc anonymous set download mybucket/downloads

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

79197004

Date: 2024-11-17 10:44:36
Score: 1.5
Natty:
Report link

As far as I remember there is a similar thing in the official Dart Code or Dart extension, enable the editor.codeLens option

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

79196998

Date: 2024-11-17 10:41:35
Score: 0.5
Natty:
Report link

In Visual Studio Code (VSCode), while there isn't a built-in feature exactly like Visual Studio's "reference display" above method declarations, you can still achieve something similar using a few tools and techniques. Here’s how you can manage references and make navigation smoother in your Dart code:

  1. Install Dart & Flutter Extensions First, make sure you have the Dart and Flutter extensions installed in VSCode. These extensions give you powerful features like code navigation and refactoring tools, which are essential for working with Dart code.

How to use it: After installing the Dart extension (and Flutter if you're working with Flutter), you can easily find references to methods and classes. Just right-click on any method or class name, and select Go to References or press Shift + F12. This will open a panel showing where the method or class is referenced across your project. However, it doesn't show the references above the method declaration in the same way Visual Studio does. You’ll need to look at a side panel or the hover information to see the references.

  1. Peek References VSCode also has a feature called Peek References that gives you a quick, inline view of all references in the code, without leaving your current view.

How to use it: Right-click on a method name and choose Peek → Peek References, or use the shortcut Alt + F12. This opens a small window at the bottom of your current editor, where all references are shown right next to the code you're working on. It's like a quick peek into all the places where your method is being used, without navigating away from the current file.

  1. Finding All References (Manually) If you're looking for more control over finding references, you can always search for them manually.

How to do it: Select the method or class you want to track, and press Shift + F12 to see all references of that item across your project. This will show a list of places in your code where the method or variable is used. It's not as automatic as seeing it directly above the method, but it's a great way to gather all references in one go. 4. Dart Code Metrics (Extra Features) For additional insights into your code’s quality and structure, you can install the Dart Code Metrics extension. It won’t show references above your method declarations, but it will provide a lot of helpful code analysis.

How to use it: Install the Dart Code Metrics extension from the Extensions marketplace. It provides things like code complexity and other metrics, which can help you manage your codebase more effectively. 5. GitLens for Version Control If you're working with Git, the GitLens extension gives you a detailed history of your code, including reference tracking, so you can see changes over time.

How to use it: GitLens doesn’t show references directly above methods but provides insights into the history of a function or class. This is especially useful if you're working in a team and need to track where things have been used and changed across different versions.

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