79096585

Date: 2024-10-17 05:35:32
Score: 1
Natty:
Report link

I found a solution, maybe someone will need it: it turns out that there is a FilteredWorksetCollector that does an excellent job with this task.

var worksets = new FilteredWorksetCollector(_doc)
        .OfKind(WorksetKind.UserWorkset)
        .ToWorksets();

newChangeWorkSetComboBox.Items.Clear();

foreach (Workset workset in worksets)
{
    newChangeWorkSetComboBox.Items.Add(workset.Name);
}
StackPanel_ChangeWorkSets.Children.Add(newChangeWorkSetComboBox);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: zavla

79096573

Date: 2024-10-17 05:30:30
Score: 5.5
Natty: 6
Report link

Can I get an explanation please? I am dealing with a similar issue, trying to use LWIP with FreeRTOS on a Raspberry Pi Pico. The differences I see are the removal of the LWIP folders from the include_directories, and removal of lwip from the target_link_libraries? Is this correct, and if so, why does this work?

Reasons:
  • RegEx Blacklisted phrase (1): I get an explanation please
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): Can I
  • Low reputation (1):
Posted by: Colin Cutler

79096565

Date: 2024-10-17 05:25:29
Score: 1.5
Natty:
Report link
def is_digit(s):
    flag = True
    for i in s:
        if not i.isdigit():
            flag = False
    return flag       
    
s = "12345"
print(is_digit(s))
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Gaurao Mate

79096560

Date: 2024-10-17 05:23:29
Score: 0.5
Natty:
Report link

.NET Core and .NET Standard are both part of the .NET ecosystem, but they serve different purposes and are used in different contexts. Here’s a breakdown of the differences between a .NET Core Class Library and a .NET Standard Class Library:

.NET Core Class Library Target Framework: Specifically designed to run on the .NET Core runtime. Features: Can leverage APIs and features that are unique to .NET Core, including some that may not be available in .NET Framework or .NET Standard. Use Case: Best suited for applications that will only run on .NET Core or that require specific .NET Core features. Performance: Generally offers better performance optimizations specific to .NET Core. .NET Standard Class Library Target Framework: An API specification that defines a set of APIs that all .NET implementations (like .NET Core, .NET Framework, Xamarin, etc.) must support. Features: Aimed at creating libraries that can be used across multiple .NET implementations. It doesn't provide platform-specific features. Use Case: Ideal for creating reusable libraries that need to work across different .NET runtimes. Compatibility: Ensures broader compatibility but may not leverage the latest features in specific platforms like .NET Core. Summary Use a .NET Core Class Library if you are targeting only .NET Core and want to utilize its specific features. Use a .NET Standard Class Library if you need compatibility across multiple .NET implementations and want to ensure your library can be reused widely. As a general practice, if you are starting a new library today, you might consider targeting .NET 5 (or later), which unifies .NET Core and .NET Framework into a single platform, providing a modern development experience.

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

79096558

Date: 2024-10-17 05:21:28
Score: 4
Natty:
Report link

The issue in my case was the VS Code was not up to date, as it was in the Downloads folder instead of Applications. So just move it to Applications and Update your VS Code and it should work.

P.S - If it is still not working, try uninstalling and installing all extensions

Reasons:
  • Blacklisted phrase (2): still not working
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Arnav Kohli

79096556

Date: 2024-10-17 05:21:28
Score: 3
Natty:
Report link

well it got fixed, I had to pass mask_image=mask_pil but I was passing mask=mask_pil

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

79096555

Date: 2024-10-17 05:20:28
Score: 1.5
Natty:
Report link

MLST command cannot open the data connection. For this need to upgrade the FTP server or disable the MLST(Machine Processing List) on the client. For script, var client = new Rebex.Net.Ftp(); client.EnabledExtensions &= ~FtpExtensions.MachineProcessingList;

For SSIS or any BI tool, DisableMachineProcessingList1

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

79096553

Date: 2024-10-17 05:18:27
Score: 2.5
Natty:
Report link

const Slider = dynamic(() => import('react-slick'), { ssr: false })

Making sure that the dynamic import renders only to the client will resolve the error.

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

79096550

Date: 2024-10-17 05:17:27
Score: 2
Natty:
Report link

Maybe the package flutter-titled-container is something you can use.

See https://github.com/johandb/flutter_titled_container

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: baliman

79096510

Date: 2024-10-17 04:55:23
Score: 0.5
Natty:
Report link

I cannot comment yet so i will be answering instead.

I have tried using Llava for Policies.pdf and stuff for RAG FAQ chatbot, however that multimodal model have also said the same thing to me, either the image is not good enough or it just takes a guess. It is able to understand images though, like dogs, or graphs (in my case it just tells me the image is a graph but cannot give details about it). Even when upscaled with pdf to image to upscaler, it still say the same thing, but can now identify more text on the image.

Ultimately to reach some weird deadline i threw that Model and implemented a pre-processing, PDF to Image to OCR. And yes it makes Llava redundant in here. But you can use other models to process the text output of OCR to reach the same "Document Understanding" task.

Another thing: PDF Documents are a pain, some of them may be all text and can be scraped easily with already available PDFpackages. But some may contain Images, or just all Scanned Images of the actual printed document. That is where Image to OCR will be of use to you. You can try other vision models or OCR packages but currently from all i've tested winocr works best for image text extraction.(yes, its using the OCR engine of windows snipping tool)

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): cannot comment
  • Long answer (-1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: EGGoist

79096509

Date: 2024-10-17 04:54:22
Score: 2.5
Natty:
Report link

As of 2024 you can pass any http/s.request options to the websocket constructor.

See: https://github.com/websockets/ws/issues/2074

const ws = new WebSocket(url, {
  headers: { foo: 'bar' }
});
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: tay_rex

79096503

Date: 2024-10-17 04:50:21
Score: 1.5
Natty:
Report link

Check if you have configured the necessary background modes in your iOS project's Info.plist file. For beacon detection, you typically need to enable Uses Bluetooth LE accessories and Background fetch capabilities.

<key>UIBackgroundModes</key>
<array>
    <string>fetch</string>
    <string>bluetooth-central</string>
</array>

Also, make sure to request and handle background location permissions (Always authorization) in your Flutter app. This allows your app to access location updates, which are necessary for beacon detection in the background.

if still not working then check if the flutter_beacon plugin supports background beacon detection. Some plugins may have limitations or specific configurations required for background operation. Refer to the plugin documentation or GitHub repository for any specific instructions or updates related to background beacon detection.

Since flutter_beacon uses native APIs (CoreLocation on iOS), ensure that your native iOS code (Objective-C/Swift) includes the necessary configurations for background beacon monitoring:

Implementing background beacon detection typically involves setting up CLLocationManager in your iOS native code and configuring it for background monitoring.

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

79096502

Date: 2024-10-17 04:50:21
Score: 1.5
Natty:
Report link

This may or may not solve your issue, It is recommended to use sigaction() instead of signal(). sigaction() is more consistent and reliable, allowing better control over signal delivery and handling. Generally, from experience, sigaction is a lot more portable, as concured by the GNU Docs.

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

79096500

Date: 2024-10-17 04:50:21
Score: 1
Natty:
Report link

I found the issue. The problem was that the parent was sending the signals to the child before the child could register the signal handler in the first place. Since the default behavior when SIGUSR1 and SIGUSR2 is received is to terminate, the child was exiting before it could print anything. Adding a 1 second delay in the parent process fixed the issue.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Setu

79096492

Date: 2024-10-17 04:42:19
Score: 1.5
Natty:
Report link
Any solution for above problem, we also getting the error as "Unexpected error 9 on netlink descriptor"

and also getting same stack here as below?
 #0  0x00007f532d260a4f raise (libc.so.6)
                #1  0x00007f532d233db5 abort (libc.so.6)
                #2  0x00007f532d2a3057 __libc_message (libc.so.6)
                #3  0x00007f532d2a311a __libc_fatal (libc.so.6)
                #4  0x00007f532d35e644 __netlink_assert_response (libc.so.6)
                #5  0x00007f532d35e3b2 __check_native (libc.so.6)
                #6  0x00007f532d329c11 rfc3484_sort (libc.so.6)
                #7  0x00007f532d2624a5 msort_with_tmp.part.0 (libc.so.6)
                #8  0x00007f532d262716 qsort_r (libc.so.6)
                #9  0x00007f532d32c5dc getaddrinfo (libc.so.6)
                #10 0x00007f5314015524 Java_java_net_Inet6AddressImpl_lookupAllHostAddr (libnet.so)
Reasons:
  • Blacklisted phrase (1.5): Any solution
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Amarnadha Reddy T

79096490

Date: 2024-10-17 04:41:19
Score: 2
Natty:
Report link

First, check the location of the JSON file.

If dat.json is in the same folder as the HTML file, the fetch path should be './dat.json'. If it's in a subfolder, the path should reflect that, e.g., './data/dat.json'.

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

79096487

Date: 2024-10-17 04:40:19
Score: 1
Natty:
Report link

Please delete node_modules

npm cache clean --force 
npm install

then run

brew reinstall watchman
watchman watch-del-all

This should do the trick (specially for M1 chip issues)

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

79096485

Date: 2024-10-17 04:39:19
Score: 3
Natty:
Report link

Here is a great and FREE online tool, you can split pdfs on bookmarks and combine page limits if you need. https://www.splitbybookmark.com/

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

79096480

Date: 2024-10-17 04:37:18
Score: 0.5
Natty:
Report link

init is a binary executable.

binwalk did not extract any meaningful data from it. init has got quite beefy. Other files which had previously been included in the initial ramdisk in earlier android versions have been pushed out onto the system.img under /system/vendor/etc/ in case you were wondering.

link to aosp readme: https://android.googlesource.com/platform/system/core/+/master/init/README.md

Reasons:
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: xchange

79096479

Date: 2024-10-17 04:36:18
Score: 2
Natty:
Report link

As @Willeke said in comments, the solution is to make clip clipToBounds=true. It's really good to checkout AppKit release notes if anything not working expected but previously worked.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Willeke
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Youmate

79096471

Date: 2024-10-17 04:32:17
Score: 4
Natty:
Report link

Apple support gives me the answer here and it works

https://developer.apple.com/forums/thread/766360

Use this library instead https://github.com/apple/app-store-server-library-python

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

79096470

Date: 2024-10-17 04:32:17
Score: 1
Natty:
Report link

Go to AndroidManifest.xml and make sure that the relevant activity has the following intent-filter added:

<intent-filter>
    <action android:name="androidx.health.ACTION_SHOW_PERMISSIONS_RATIONALE"/>
    <category android:name="android.intent.category.HEALTH_PERMISSIONS"/>
  </intent-filter>

See details

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

79096468

Date: 2024-10-17 04:30:16
Score: 4
Natty: 4
Report link

Follow these steps this can resolve your issue. Issue might caused due to missing structure of guacamole during installation in my case it happened with tomcat:

https://medium.com/@anshumaansingh10jan/unlocking-remote-access-a-comprehensive-guide-to-installing-and-configuring-apache-guacamole-on-30a4fd227fcd

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

79096464

Date: 2024-10-17 04:28:16
Score: 2.5
Natty:
Report link

On Windows, I like to use TextAnalysisTool. It is really easy to set up with filters and highlighting, and it breezes through gigabyte sized files.

https://textanalysistool.github.io/

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

79096460

Date: 2024-10-17 04:24:14
Score: 2.5
Natty:
Report link

simple way to take out password update date for any user is #logins -xl username this will give you only latest date on which password was updated, but not the time of password update as perl command gives.

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

79096455

Date: 2024-10-17 04:21:13
Score: 0.5
Natty:
Report link

Original poster here, this got resolved, here is how.

Docker parses the env files in a specific way, so if you have ENVNAME="ENVVALUE" the double quotes get included in the value.

Changing this to ENVNAME=ENVVALUE solved the problem

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

79096453

Date: 2024-10-17 04:18:13
Score: 2.5
Natty:
Report link

I cannot give a comment yet so i will be posting it as an answer.

If your resume.pdf have images containing this "skipped parts" then it will not be read, you will need to pdf > image(s) > OCR before you can get the full text of the document.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: EGGoist

79096450

Date: 2024-10-17 04:16:13
Score: 2
Natty:
Report link

You can easily hide shipping methods without knowledge of PHP. A helpful plugin is available to hide shipping methods or rates depending on various conditions. You can check the Wordpress plugin here to hide shipping methods conditionally.

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

79096448

Date: 2024-10-17 04:15:12
Score: 2
Natty:
Report link

I have also encountered this situation. You can see the error message from the F12 developer tools, and it appears that there is an error in how the browser is parsing the custom protocol.

I am currently using Edge as a workaround.

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

79096447

Date: 2024-10-17 04:13:12
Score: 2
Natty:
Report link
RUN corepack enable
RUN corepack install
RUN pnpm install
RUN pnpm run build 
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Дмитрий Переверзев

79096440

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

You should open Pycharm settings -> Keymap -> and use keyboard shortcuts for "Execute selection in Python console"

highlighted in red

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

79096436

Date: 2024-10-17 04:08:10
Score: 1
Natty:
Report link
<select class="form-control addon-service-dropdown" name="addon_service[]" multiple="multiple">
enter code here

i was fetching same issue, so i was applied above method, then it is working fine now

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

79096423

Date: 2024-10-17 03:56:08
Score: 0.5
Natty:
Report link

Nice example! One quick way is to wrap this in return and filtering on the array: https://surrealdb.com/docs/surrealql/datamodel/arrays#mapping-and-filtering-on-arrays

(SELECT id,age, <-parent_of<-(dog WHERE age > 5).* AS parents FROM dog WHERE age < 2)[WHERE parents];

WHERE parents goes into the parents field to see if it is truthy or not (truthy = not NONE, NULL, or an empty value).

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

79096417

Date: 2024-10-17 03:50:07
Score: 3.5
Natty:
Report link

Are you able to resolve, encountering the same issue

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

79096416

Date: 2024-10-17 03:50:06
Score: 6 🚩
Natty:
Report link

Try:

options.addArguments("--disable-web-security");

See - How do i stop the blocking of redirects in my chromedriver?

Reasons:
  • Blacklisted phrase (1): How do i
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
Posted by: Ory Zaidenvorm

79096414

Date: 2024-10-17 03:50:06
Score: 1
Natty:
Report link

If you're planned to run the dockerfile on cloud for testing. Free way to do is using killerkoda platform. They will provide free instance for 1 hr. After that it will terminated. Otherwise you can use the free trial instances of AWS(make sure to enable zero budget alert)

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Gerlyn M

79096413

Date: 2024-10-17 03:49:06
Score: 4.5
Natty: 4
Report link

@jacksmito I love how you said that, you made is seem so straight forward lol but it all went right over my head lol i'm having the exact same dilemma, I might have to learn this from scratch so I can understand the terminology better because to have the answer right in front of me but not know how to implement it is killing me. but thank you for the post because its a start.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • No code block (0.5):
  • User mentioned (1): @jacksmito
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Harry Triplet

79096406

Date: 2024-10-17 03:44:04
Score: 4.5
Natty:
Report link

Thank you both Harun & Evan. Both the formulas worked wonders for me but Evan's answer seems to be slightly less intimidating. Nonetheless, thank you both!

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

79096397

Date: 2024-10-17 03:39:04
Score: 1.5
Natty:
Report link

I had a similar problem except that my requests would wait for two minutes and then die. Being new to gunicorn I had no idea, but thanks to Chanpols' post I found my --timeout setting was 120 and needed to be longer for my long running API endpoints to complete.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Tony Tullemans

79096395

Date: 2024-10-17 03:38:03
Score: 1
Natty:
Report link

Use full path of exe. (forward slash should work on Windows)

subprocess.run([
    'C:/Program Files/Google/Chrome/Application/chrome.exe',
    '--remote-debugging-port=9222',
    '--user-data-dir="C:\\selenum\\ChromeProfile"'
])
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Shahid Siddiqui

79096390

Date: 2024-10-17 03:36:03
Score: 0.5
Natty:
Report link

This works:

    // for demonstrating the more general case, I'm using a non-Copy type here
    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(move |_: Uri| {
            let path_shared = Arc::new(path.clone());
            async move {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(
                    UnixStream::connect(path_shared.as_ref()).await?,
                ))
            }
        }))
        .await?;

Note that depending on what exact behaviour you want, you may wish to move the construction of path_shared to outside of the closure.

Let's see how we got here. We'll start with a naive implementation, and let the compiler guide us.


This is what we want, written as simply as possible:

    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(|_: Uri| {
            async {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(path).await?))
            }
        }))

And this doesn't compile:

error[E0525]: expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce`
  --> examples/src/uds/client.rs:26:44
   |
26 |         .connect_with_connector(service_fn(|_: Uri| {
   |          ----------------------            ^^^^^^^^ this closure implements `FnOnce`, not `FnMut`
   |          |
   |          the requirement to implement `FnMut` derives from here
...
29 |                 Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(path).await?))
   |                                                                          ---- closure is `FnOnce` because it moves the variable `path` out of its environment
   |
   = note: required for `ServiceFn<{closure@examples/src/uds/client.rs:26:44: 26:52}>` to implement `Service<Uri>`

Okay this makes sense. We moved in an external value and consumed it, of course the closure is FnOnce. Since UnixStream::connect is generic, we will try passing it a &path instead.

Note that the move keyword is not necessary for a closure to capture by value; it only forces capturing by value in cases where it normally wouldn't (ref).

    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(|_: Uri| {
            async {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(&path).await?))
            }
        }))
        .await?;
error[E0373]: closure may outlive the current function, but it borrows `path`, which is owned by the current function
  --> examples/src/uds/client.rs:26:44
   |
26 |         .connect_with_connector(service_fn(|_: Uri| {
   |                                            ^^^^^^^^ may outlive borrowed value `path`
...
29 |                 Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(&path).await?))
   |                                                                           ---- `path` is borrowed here
   |
note: function requires argument type to outlive `'static`
  --> examples/src/uds/client.rs:26:33
   |
26 |           .connect_with_connector(service_fn(|_: Uri| {
   |  _________________________________^
27 | |             async {
28 | |                 // Connect to a Uds socket
29 | |                 Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(&path).await?))
30 | |             }
31 | |         }))
   | |__________^
help: to force the closure to take ownership of `path` (and any other referenced variables), use the `move` keyword
   |
26 |         .connect_with_connector(service_fn(move |_: Uri| {
   |                                            ++++

Okay, lifetime issue, makes sense. The closure could run on a thread long after this function has returned. Let's add move.

    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(move |_: Uri| {
            async {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(&path).await?))
            }
        }))
        .await?;
error: lifetime may not live long enough
  --> examples/src/uds/client.rs:27:13
   |
26 |           .connect_with_connector(service_fn(move |_: Uri| {
   |                                              -------------
   |                                              |           |
   |                                              |           return type of closure `{async block@examples/src/uds/client.rs:27:13: 27:18}` contains a lifetime `'2`
   |                                              lifetime `'1` represents this closure's body
27 | /             async {
28 | |                 // Connect to a Uds socket
29 | |                 Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(&path).await?))
30 | |             }
   | |_____________^ returning this value requires that `'1` must outlive `'2`
   |
   = note: closure implements `Fn`, so references to captured variables can't escape the closure

This error message may appear a bit cryptic, especially the annotations on '1 and '2. But the note at the bottom is telling: we just aren't allowed to keep a reference to data within the closure in our async block. Async blocks capture variables using the same rules as closures (ref), so let's make it async move.

    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(move |_: Uri| {
            async move {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(&path).await?))
            }
        }))
        .await?;
error[E0525]: expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce`
  --> examples/src/uds/client.rs:26:44
   |
26 |         .connect_with_connector(service_fn(move |_: Uri| {
   |          ----------------------            ^^^^^^^^^^^^^ this closure implements `FnOnce`, not `FnMut`
   |          |
   |          the requirement to implement `FnMut` derives from here
...
29 |                 Ok::<_, std::io::Error>(TokioIo::new(UnixStream::connect(&path).await?))
   |                                                                           ---- closure is `FnOnce` because it moves the variable `path` out of its environment
   |
   = note: required for `ServiceFn<{closure@examples/src/uds/client.rs:26:44: 26:57}>` to implement `Service<Uri>`

Okay, so our closure is FnOnce again. Why? Again the compiler tells us: it's because we moved path into our async block. We can't do that. For the closure to be FnMut (and in fact, Fn), path has to stay in the closure.

So here we hit a T-junction. We can either clone path and move it into the async block, or we can satisfy the ownership requirement using a reference counting smart pointers. We'll do smart pointers here.

    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(move |_: Uri| {
            let path_shared = Rc::new(path);
            async move {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(
                    UnixStream::connect(path_shared.as_ref()).await?,
                ))
            }
        }))
        .await?;
error: future cannot be sent between threads safely
   --> examples/src/uds/client.rs:28:33
    |
28  |           .connect_with_connector(service_fn(move |_: Uri| {
    |  _________________________________^
29  | |             let path_shared = Rc::new(path);
30  | |             async move {
31  | |                 // Connect to a Uds socket
...   |
35  | |             }
36  | |         }))
    | |__________^ future created by async block is not `Send`
    |
    = help: within `{async block@examples/src/uds/client.rs:30:13: 30:23}`, the trait `Send` is not implemented for `Rc<PathBuf>`, which is required by `{async block@examples/src/uds/client.rs:30:13: 30:23}: Send`
note: captured value is not `Send`
   --> examples/src/uds/client.rs:33:41
    |
33  |                     UnixStream::connect(path_shared.as_ref()).await?,
    |                                         ^^^^^^^^^^^ has type `Rc<PathBuf>` which is not `Send`
note: required by a bound in `Endpoint::connect_with_connector`
   --> /home/cyq/Repos/Public/tonic/tonic/src/transport/channel/endpoint.rs:368:20
    |
364 |     pub async fn connect_with_connector<C>(&self, connector: C) -> Result<Channel, Error>
    |                  ---------------------- required by a bound in this associated function
...
368 |         C::Future: Send,
    |                    ^^^^ required by this bound in `Endpoint::connect_with_connector`

So Endpoint::connect_with_connector wants a Send future. What does this mean? The documentation of Send tells us: it's a type that can be transferred across thread boundaries (ref). The specific reason it wants this is that tokio by default uses a multi-threaded executor. It is possible to configure it to run single-threaded, thereby alleviating the Send bound, but it's seldom done in practice.

So why isn't our future Send? Again the error tells us: path_shared has type Rc<PathBuf> which is not Send. Why isn't Rc Send? We can find it in the docs:

Rc uses non-atomic reference counting. This means that overhead is very low, but an Rc cannot be sent between threads, and consequently Rc does not implement Send. As a result, the Rust compiler will check at compile time that you are not sending Rcs between threads. If you need multi-threaded, atomic reference counting, use sync::Arc.

So let's use Arc instead.

    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(move |_: Uri| {
            let path_shared = Arc::new(path);
            async move {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(
                    UnixStream::connect(path_shared.as_ref()).await?,
                ))
            }
        }))
        .await?;
error[E0525]: expected a closure that implements the `FnMut` trait, but this closure only implements `FnOnce`
  --> examples/src/uds/client.rs:26:44
   |
26 |         .connect_with_connector(service_fn(move |_: Uri| {
   |          ----------------------            ^^^^^^^^^^^^^ this closure implements `FnOnce`, not `FnMut`
   |          |
   |          the requirement to implement `FnMut` derives from here
27 |             let path_shared = Arc::new(path);
   |                                        ---- closure is `FnOnce` because it moves the variable `path` out of its environment
   |
   = note: required for `ServiceFn<{closure@examples/src/uds/client.rs:26:44: 26:57}>` to implement `Service<Uri>`

Once again our closure is FnOnce. Why? Recall that we concluded earlier that path has to stay in the closure. But here we have moved it into path_shared. So instead, let's clone path so that it stays put.

    let path = PathBuf::from("your path here");

    let channel = Endpoint::try_from("http://[::]:50051")?
        .connect_with_connector(service_fn(move |_: Uri| {
            let path_shared = Arc::new(path.clone());
            async move {
                // Connect to a Uds socket
                Ok::<_, std::io::Error>(TokioIo::new(
                    UnixStream::connect(path_shared.as_ref()).await?,
                ))
            }
        }))
        .await?;

And finally we have arrived at our final code.


The biggest characteristic about Rust is that it doesn't let you compile until everything is perfect, and getting to perfection is hard. Some people find it frustrating, but personally I like it because I can rest assured that there's not going to be an urgent call that wakes me up at 0300. But as you can see here, the Rust compiler can often do a tremendous job in guiding you to the right answer, if you follow its advice step by step.

Reasons:
  • Blacklisted phrase (0.5): Why?
  • RegEx Blacklisted phrase (2): urgent
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • High reputation (-1):
Posted by: cyqsimon

79096382

Date: 2024-10-17 03:32:01
Score: 1
Natty:
Report link

Try this: =IF(B8="",,GOOGLETRANSLATE(LOWER(B8),"en","hr"))

Reasons:
  • Whitelisted phrase (-2): Try this:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Low reputation (0.5):
Posted by: 4thAnd1

79096368

Date: 2024-10-17 03:13:57
Score: 2.5
Natty:
Report link

In my view, this is really a bad naming within pytorch. I would suggest to use something like set_mode('eval') or set_mode('train') instead.

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

79096365

Date: 2024-10-17 03:11:56
Score: 3
Natty:
Report link

Late to the party, but loading the JQuery script in the head solved my problem.

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

79096364

Date: 2024-10-17 03:09:56
Score: 1.5
Natty:
Report link

Install tf_keras before using it.

import tf_keras as k3

model = k3.models.load_model(YOUR_MODEL_PATH)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: GrayLand119

79096362

Date: 2024-10-17 03:08:56
Score: 2.5
Natty:
Report link

I have the same symptoms. I think it's related to the company's security system, but I don't know what the problem is

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 정일운

79096357

Date: 2024-10-17 03:06:55
Score: 1
Natty:
Report link

I am currently using MAMP 7.0. I thought I would contribute to this conversation. what worked for me was to add "-idle-timeout 9600" to my FastCgiServer Config in the block.

e.g. FastCgiServer /Applications/MAMP/fcgi-bin/php.fcgi -idle-timeout 9600 -socket httpdFastCGI.sock

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ryan Stewart

79096355

Date: 2024-10-17 03:05:55
Score: 0.5
Natty:
Report link

I tried many solutions, but then ultimately ended up creating my own version which works.

version: '3.8'

services:
  vault:
    image: hashicorp/vault:latest
    container_name: vault
    restart: unless-stopped
    environment:
      VAULT_ADDR: "https://127.0.0.1:8200"
      VAULT_API_ADDR: "https://127.0.0.1:8200"
      VAULT_LOCAL_CONFIG: |
        {
          "listener": [
            {
              "tcp": {
                "address": "0.0.0.0:8200",
                "tls_disable": 0,
                "tls_cert_file": "/vault/config/certs/vault-cert.pem",
                "tls_key_file": "/vault/config/certs/vault-key.pem"
              }
            }
          ],
          "storage": {
            "file": {
              "path": "/vault/data"
            }
          },
          "default_lease_ttl": "168h",
          "max_lease_ttl": "720h",
          "ui": true
        }
    ports:
      - "8200:8200"
    volumes:
      - "<CUSTOM_USER_DIRECTORY>/data:/vault/data"
      - "<CUSTOM_USER_DIRECTORY>/certs:/vault/config/certs"
    cap_add:
      - IPC_LOCK
    command: "vault server -config vault/config/local.json"

Notice that I used the <CUSTOM_USER_DIRECTORY> which can be any directory on your system. I mapped these directories as I wanted to backup data using the backup service running and taking regular differential snapshots of the directory.

Also, in my case, I had to assign correct permissions to the directory I mentioned above.

sudo chown -R 100:100 <CUSTOM_USER_DIRECTORY>
sudo chmod -R 770 <CUSTOM_USER_DIRECTORY>

Also notice that I'm not running a dev env. It is using TLS. For that, I am using the mkcert tool for generating the TLS certificate inside the certs directory. It can creates certificate even for localhost. Here's what i created for.

mkcert 127.0.0.1

It created a certificate valid for 3 years. Good enough for me.

Now, if you created the certificate afte you assigned the permissions, notice that you'd have to make sure the certificates also have the correct permissions.

Only issue with this approach is, cli access is not valid anymore. It throws an error saying, "tls: failed to verify certificate: x509: certificate signed by unknown authority"

But, I'm using nginx as the load-balancer and mapped a domain to https://127.0.0.1:8200. (Notice the https here also).

Finally, the access via the domain works and it is TLS encrypted. First time, it shows the initialize UI screen also. Works perfectly well.

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: simarmannsingh

79096340

Date: 2024-10-17 02:57:53
Score: 1.5
Natty:
Report link

there are 2 options to submit an archived build to the app store developer connect from Xcode. so, if you have did not select AppStore Connectselected method for distribution, then the build will not be available to select in build section for submitting for review.

in my case, I uploaded a new build to TestFlight internal only, and then it appeared in select build section but the radio button was not selectable.

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

79096336

Date: 2024-10-17 02:53:52
Score: 4
Natty:
Report link

遇到同样的问题,window.ReactNativeWebView undefined

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

79096318

Date: 2024-10-17 02:47:51
Score: 5
Natty:
Report link

"Can anyone tell me the issue." No i cannot but i can give a guess.

lastly re-install

Reasons:
  • Blacklisted phrase (0.5): i cannot
  • RegEx Blacklisted phrase (2.5): Can anyone tell me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: EGGoist

79096315

Date: 2024-10-17 02:45:50
Score: 2.5
Natty:
Report link

This will usually occur if you haven't enabled disable_oob.

If you have enabled disabled_oob=True, then please check your internet connection and try again.

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

79096284

Date: 2024-10-17 02:25:47
Score: 2.5
Natty:
Report link
  1. enter code herepip uninstall selenium
  2. download stable version https://developer.microsoft.com/en-us/microsoft-edge/tools/webdriver
  3. unzip folder in c\user\
  4. pip install selenium=4.0

from selenium import webdriver

edge_driver = webdriver.Edge("C:\Users\user\edgedriver\msedgedriver.exe") edge_driver.get("https://www.microsoft.com")

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

79096268

Date: 2024-10-17 02:18:45
Score: 3
Natty:
Report link

For those hitting into a similar error in Python 3.11 (or higher), I've found that reverting to Python 3.10 resolves the issue

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

79096257

Date: 2024-10-17 02:13:44
Score: 2
Natty:
Report link

in VSCode, you just need to go to the extensions button, search for 'Flutter,' and install the one from 'Dart Code.' After that, you'll be able to create projects by pressing Ctrl + Shift + P and typing 'Flutter: New Project.'

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

79096249

Date: 2024-10-17 02:07:42
Score: 8 🚩
Natty: 5.5
Report link

May I ask if this issue has been resolved?

Reasons:
  • Blacklisted phrase (1): May I ask
  • RegEx Blacklisted phrase (1.5): resolved?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 徐翔宇

79096240

Date: 2024-10-17 02:00:40
Score: 4
Natty: 2
Report link

I have encountered the same problem, I have to submit a new build version, first I submitted that to FlightTest, and it works well, when I want to submit it for review, in the build section there is a build available, but the radio button is not possible to select, hence it is not possible to add.

enter image description here enter image description here

Reasons:
  • Blacklisted phrase (1): enter image description here
  • RegEx Blacklisted phrase (1): I want
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Akmal Khasanov

79096238

Date: 2024-10-17 02:00:40
Score: 3
Natty:
Report link

output = result.stdout.decode('utf-8') + '\n' + result.stderr.decode('utf-8') print('Compiled Successfully')

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

79096237

Date: 2024-10-17 02:00:40
Score: 2.5
Natty:
Report link

I ended up fixing this issue by playing around with the privacy and security settings for the app. It seems like even though I gave accessibility permissions for the app while running the app locally, I had to delete the permissions and add them again for TestFlight even though the permission still appeared to be granted.

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

79096225

Date: 2024-10-17 01:53:39
Score: 2
Natty:
Report link
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: user7378390

79096202

Date: 2024-10-17 01:35:35
Score: 1.5
Natty:
Report link

It might be in the Theme's own settings. After 2 months, I suddenly just found it. I am using Blocksy free theme, and the settings was found at theme customizer > Product Archive > Col and Rows (see that PC, Tab, Mobile icons on right side of the title) > click that mobile icon and set 2.

2 column in mobile. woo. blocksy theme.

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

79096195

Date: 2024-10-17 01:29:35
Score: 1.5
Natty:
Report link

I've tried to run the script UpdateOS on a remote server, but always get error code 0x80070005 is also described as ACCESS DENIED. Tried below and same error.

Invoke-Command -ComputerName RemoteComputerName -FilePath "C:\Path\To\Update.ps1"

tried pSSession as well when logged on using Domain admin account: #Server name

$serverName = "Server1"

#Establish Session

$session = New-PSSession -ComputerName $serverName

#Run updateOS

Invoke-Command -Session $session -FilePath "C:\Path\To\Update.ps1"

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

79096194

Date: 2024-10-17 01:28:34
Score: 3
Natty:
Report link

For some reason, I had this issue when I forgot to activate my virtual environment with "source myenv/bin/activate". Once I activated it, all was fine.

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

79096193

Date: 2024-10-17 01:27:33
Score: 9.5 🚩
Natty: 6
Report link

Where you able to solve it? We are facing the same issue

Reasons:
  • Blacklisted phrase (1): you able to solve
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Where you
  • Low reputation (1):
Posted by: Rosina Garagorry

79096186

Date: 2024-10-17 01:19:32
Score: 3
Natty:
Report link

It is very likely that Angular officials do not handle cache files. Please delete the .angular folder to see if this solves the problem.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: 拓跋伯安

79096183

Date: 2024-10-17 01:18:31
Score: 0.5
Natty:
Report link

This works for me. Try 1: - chmod 700 specialFile - or special_script 2: - chmod +t specialFile ; ls -la specialFile note gecko

-rwx-----T 1 meUser meUser 123 Oct 16 20:51 specFile* no other acct on system can touch it ls/cat/grep/sed/more all render permissions denied. go deep into *Nix ACL-access control list. require ,acl, added to your mount point area ext4 discard,noatime 1 1 --->chgToo---> ext4 discard,acl,noatime 1 1 (showing only the right side of entry from file 'type or -t ext4' now the FS will check every inode permission its deep and unique but worth the advancement need. Good Luck.

Reasons:
  • Whitelisted phrase (-1): works for me
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: atomick

79096143

Date: 2024-10-17 00:39:24
Score: 3
Natty:
Report link

Another simple way in pyspark:

df.selectExpr("* except(column1,column2)")

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Alejandro Piñon

79096137

Date: 2024-10-17 00:35:22
Score: 6.5 🚩
Natty: 5.5
Report link

How can You do this in OpenSAML 5?

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): How can You
  • Low reputation (1):
Posted by: GMN1 TEST

79096135

Date: 2024-10-17 00:34:21
Score: 7 🚩
Natty: 5
Report link

what if ractangles look like this?

Reasons:
  • Probably link only (1):
  • Low length (2):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Великий Самовар

79096104

Date: 2024-10-17 00:05:16
Score: 1.5
Natty:
Report link

Okay, so if anyone is struggling with this -lGL, it basically means what it says: the linker is looking for gl.h file in a specified directory (/usr/include in my case) and it can not find it there. What you do to install gl.h: if you are rpm-based (Fedora):

sudo dnf install mesa-libGL-devel.i686 OR sudo dnf install mesa-libGL-devel.x86_64

If you are apt based:

sudo apt-get install mesa-utils

Should do.

Reasons:
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Кирило Лисков

79096098

Date: 2024-10-17 00:03:16
Score: 2
Natty:
Report link

The method is very obscure in XCode 16:

  1. Go to Copy Bundle Resources Phase
  2. Click the + Button
  3. Click Add Other
  4. Select the top directory of the structure you want to add
  5. In the "Choose options for adding these files" dialog, tick Create folder references
  6. Click Finish
Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: macaroni n. cheese

79096094

Date: 2024-10-16 23:59:15
Score: 4.5
Natty: 5
Report link

someone tell this to w3schools =) https://www.w3schools.com/sql/func_sqlserver_isnull.asp

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

79096080

Date: 2024-10-16 23:51:13
Score: 8.5 🚩
Natty: 6.5
Report link

Hi I have a similar issue, firebell.net, using a child of store front, I have tried this code both versions and bunch of others and nothing is working to stack left sidebar top on mobile. Thank You in advance for your help!

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • RegEx Blacklisted phrase (3): Thank You in advance
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I have a similar issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Jennifer Kusiak

79096079

Date: 2024-10-16 23:50:12
Score: 1
Natty:
Report link

You can use GPU acceleration. If you have an NVIDIA GPU, use GPU acceleration python libraries. This is how I train all of my AI models, whether chess related or just fun projects.

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sid Barkley

79096078

Date: 2024-10-16 23:49:12
Score: 2
Natty:
Report link

I had the same issue in shutil module, but got it resolved by removing the parent folder from windows quick access explore.

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

79096068

Date: 2024-10-16 23:38:10
Score: 3.5
Natty:
Report link

Gary, How can we add callback methods to log stats regarding how much time each batch is taking to process ? Is it supported in the latest versions?

Looked into the ConcurrentMessageListenerContainer and didn't see any call backs which lets us calculate when the entire batch is acknowledged.

Appreciate any inputs.

Thanks Sateesh

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): How can we
  • No code block (0.5):
  • Contains question mark (0.5):
  • Looks like a comment (1):
Posted by: Sateesh K

79096061

Date: 2024-10-16 23:33:09
Score: 0.5
Natty:
Report link

Ensure you have unique identifier if you're using ForEach

set unique id to your ForEach loop:

ForEach(msgViewModel.msgs.sorted(by: {$0.key < $1.key}), id:\.self.id) {
. . .
}

If you're wrapping your list in Array then you're id will be \.element.id:

ForEach(Array(msgViewModel.msgs.enumerated()), id: \.element.id) { index, page in
. . .
}

for me, this fixed dismissal of the first child. if you only have one child, then this is probably all you need.

If you have further nested NavigationLink

add .isDetailLink(false) modifier to the NavigationLink

Here's demo code with the fix:

import SwiftUI

@main
struct UIExperimentApp: App {
    var body: some Scene {
        WindowGroup {
            ContentView()
        }
    }
}

struct ContentView: View {
    @StateObject var msgViewModel = MsgViewModel()
    
    var body: some View {
        NavigationView {
            List {
                /// use this if you're wrapping the list in `Array`:  ForEach(Array(msgViewModel.msgs.enumerated()), id: \.element.id) { index, page in
                ForEach(msgViewModel.msgs, id:\.self.id) { msg in
                    NavigationLink(destination: ChildOneView(msgViewModel: msgViewModel, msg: msg)) {
                        Text("Msg read: \(msg.read ? "Yes" : "No")")
                            .padding()
                    }
                    .isDetailLink(false)
                }
            }
        }
    }
}

struct ChildOneView: View {
    @ObservedObject var msgViewModel: MsgViewModel
    var msg: Msg
    
    var body: some View {
        VStack {
            Text("Child One Message: \(msg)")
            
            NavigationLink(destination: ChildTwoView(msgViewModel: msgViewModel, msg: msg)) {
                Text("Go two Child two")
                    .padding()
                    .background(Color.blue)
                    .foregroundColor(.white)
                    .cornerRadius(8)
            }
            .isDetailLink(false)
        }
    }
}

struct ChildTwoView: View {
    @ObservedObject var msgViewModel: MsgViewModel
    var msg: Msg
    
    var body: some View {
        VStack {
            Text("Child two: Message \(msg)")
                .padding(40)
            
            Button("Mark as Read") {
                if let index = msgViewModel.msgs.firstIndex(where: { $0.id == msg.id }) {
                    msgViewModel.msgs[index].read.toggle()
                }
            }
            .padding()
            .background(Color.blue)
            .foregroundColor(.white)
            .cornerRadius(8)
        }
    }
}

class MsgViewModel : ObservableObject {
    @Published var msgs = [
        Msg(id: "id1", read:false, content: "Hello"),
        Msg(id: "id2", read:false, content: "World")
    ]
}

struct Msg {
    var id : String
    var read = false
    var content : String
}

Links that helped me:

  1. Nested NavigationLinks not working properly in latest SwiftUI
  2. SOLVED: Pop multiple nested views using NavigationLink and isActive
  3. Dismiss multiple Views in a NavigationView
  4. In SwiftUI, iOS15, 2nd level NavigationLink, isActive is not working
Reasons:
  • Blacklisted phrase (0.5): not working properly
  • Probably link only (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: leo

79096058

Date: 2024-10-16 23:29:08
Score: 7.5 🚩
Natty: 6
Report link

is there a way to put this into a private sub like worksheet_change?

Reasons:
  • Blacklisted phrase (1): is there a way
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): is there a
  • Low reputation (1):
Posted by: steve

79096050

Date: 2024-10-16 23:24:06
Score: 3.5
Natty:
Report link

It should look like this. Both localhost and localhost:3000 should be present. Just edit your credential to add both. enter image description here

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

79096043

Date: 2024-10-16 23:20:05
Score: 1.5
Natty:
Report link

Select your app in the console, then on the left pane:

This section will allow you to download the signed universal APK which will work on all supported architectures. If you need an APK for a specific device you can try searching for it down below.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Emir Halıcı

79096038

Date: 2024-10-16 23:18:04
Score: 6 🚩
Natty:
Report link

currently I'm using an Angular 18 service to interact with the GeoServer REST API. Method to get workspaces

However I get this error on my console:

Error on console

I wonder if the problem is about the headers using on my request? Can you share me the structure that you are using on the request please.

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you share me
  • RegEx Blacklisted phrase (1): I get this error
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Desarrollador Web

79096033

Date: 2024-10-16 23:12:02
Score: 2
Natty:
Report link

When you run docker-compose.yaml it relies on docker auth configuration. If you once logged in into your registry with docker login docker compose will use docker login data.

You can read about it in this article

Reasons:
  • Blacklisted phrase (1): this article
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): When you
  • Low reputation (0.5):
Posted by: poisoned_monkey

79096028

Date: 2024-10-16 23:05:01
Score: 6.5
Natty: 7.5
Report link

Can someone please provide the case insensitive version of this? I tried the one below in Python but it doesn't work (the case sensitive version works however).

Reasons:
  • RegEx Blacklisted phrase (2.5): Can someone please provide
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can someone please
  • Low reputation (1):
Posted by: Geo Lew

79096019

Date: 2024-10-16 22:55:59
Score: 2
Natty:
Report link

I didn't check the MQ client error logs. I had to set the dynamic library path to get my python program running.

export DYLD_LIBRARY_PATH=/opt/mqm/lib64

All good now!

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

79096017

Date: 2024-10-16 22:54:59
Score: 5
Natty:
Report link

I'm wondering which is your log error. To get more context please could you paste here your log error?

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Eduardo Hans González García

79096010

Date: 2024-10-16 22:46:57
Score: 1.5
Natty:
Report link

It's simpler than I thought to apply the regionOfInterest. I just had to add viewController.regionOfInterest = CGRectMake(0, 0, 200, 200) in the override func viewDidLoad() function. Thanks again Ilia for getting me to think differently about it.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Dave

79095999

Date: 2024-10-16 22:37:56
Score: 1.5
Natty:
Report link

Yes, this is clearly a permission issue. The error message "Access Denied: BigQuery BigQuery: Permission denied while getting Drive credentials." means that the BigQuery service account used for your API request doesn't have the necessary permissions to access the Google Sheet you're referencing. Also, verify if the BigQuery service account is added as "Editor" to your Google sheet.

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

79095979

Date: 2024-10-16 22:21:53
Score: 1
Natty:
Report link

The issue seems to be with how the find_zip_files function is structured. It initializes zip_files with None values for each key (vte, cli, art), and if a file matching one of these criteria is not found in the folder, it remains None. Later in your code, you're checking if zip_files["vte"], zip_files["cli"], or zip_files["art"] are None to decide whether to skip processing for that month.

Given that your code is skipping all files, it suggests that it's not finding files that match the expected criteria ("VTE", "CLI", "ART"). This could happen due to several reasons:

Case Sensitivity: Python string operations are case-sensitive. If the filenames in your directory are not exactly "VTE", "CLI", "ART" (e.g., they are lowercase or mixed case), they won't match the checks in find_zip_files.

File Extension: The function find_zip_files checks for filenames ending with .zip. If your files have different extensions or no extension, they won't be recognized.

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

79095975

Date: 2024-10-16 22:18:52
Score: 1
Natty:
Report link

Fix 1:

onClick={() =>
 router.push({
  pathname: `/productDetails/${id}`,
 })
}

Fix 2: Please check your folder structure, it must be like this.

src/
 app/
  productDetails/
   [pid].tsx

Note: The above structure is for Nextjs 14 app router with src folder.

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

79095971

Date: 2024-10-16 22:17:52
Score: 1.5
Natty:
Report link

I couldn't solve it either, the only way I found to get around this for now was to install a previous version of laravel.

composer create-project laravel/laravel:^10.0 example-app
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Herbert Tereski

79095965

Date: 2024-10-16 22:14:51
Score: 0.5
Natty:
Report link

I was experiencing the same, and got around it my adding the permissions I needed manually to the manifest on the App Registration. To retrieve the IDs I just copied them some a similar App Registration I had on the Public Cloud. After doing so, they showed up properly under the Configured Permissions as "Office 365 SharePoint Online" permissions and they worked correctly in my client application.

For example:

"requiredResourceAccess": [
        {
            "resourceAppId": "00000003-0000-0ff1-ce00-000000000000",
            "resourceAccess": [
                {
                    "id": "c8e3537c-ec53-43b9-bed3-b2bd3617ae97",
                    "type": "Role"
                },
                {
                    "id": "20d37865-089c-4dee-8c41-6967602d4ac8",
                    "type": "Role"
                }
            ]
        },
Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: John

79095955

Date: 2024-10-16 22:12:50
Score: 0.5
Natty:
Report link

The SendGrid C# library now has ASM (Advanced Subscription Management) implemented as a property of the "SendGridMessage" object:

SendGridMessage message = MailHelper.CreateSingleTemplateEmail(from, to, templateId, dynamicTemplateData);
message.Asm = new ASM() { GroupId = 123, GroupsToDisplay = new List<int>() { 123, 456 } };
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: John Trenwith

79095952

Date: 2024-10-16 22:09:48
Score: 7.5 🚩
Natty: 4
Report link

hi just came across this post, wondering have you been able to resolve the mystery? i'm struggling with exact same issue here. :(

Reasons:
  • Blacklisted phrase (1.5): have you been able to
  • Blacklisted phrase (1): :(
  • RegEx Blacklisted phrase (1.5): resolve the mystery?
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aria

79095951

Date: 2024-10-16 22:08:47
Score: 1.5
Natty:
Report link

I found the issue and its resolved.

Admin controls for GitHub Copilot in Visual Studio - Visual Studio (Windows) | Microsoft Learn

I accidentally had installed this policy in an attempt to get it working. and it was disabling the copilot running. I disabled these policies and the copilot is working.

STEPS: Run > gpedit.msc > Local Computer Policy > Administrative Templates > Visual Studio > Copilot Settings

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

79095945

Date: 2024-10-16 22:05:46
Score: 2
Natty:
Report link

As stated in the docs for maplibre-react-native, the app is not compatible with the Expo Go app. You will need to create an Expo Development build in order to run your app and use the maplibre-react-native library.

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

79095936

Date: 2024-10-16 22:03:46
Score: 1.5
Natty:
Report link

Here's a way to achieve this: Create a separate virtual environment: You can create a virtual environment specifically for development purposes this way, you can install IPython and other development tools without affecting the main project dependencies.

Update your pyproject.toml: You can specify the virtual environment path in your pyproject.toml and ensure it's used during development1

pyproject.toml:

[project]
name = "demo"
description = "Demo Project"
version = "0.0.1"
readme = "README.md"
requires-python = ">=3.12"
dependencies = []

[project.optional-dependencies]
test = [
    "pytest",
    "ipython",
]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"

[tool.hatch.envs.default]
type = "virtual"
path = "venv"
python = "3.12"

Use the following command to activate the virtual environment and install IPython:

hatch env shell

pip install ipython This way, IPython will be available in your development environment without being listed as a project dependency.

Does this approach work for you?

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Rad Taren

79095933

Date: 2024-10-16 22:02:45
Score: 2.5
Natty:
Report link

You might want to check out SpreadsheetWeb API. It can expose your Excel file as a stateless calculation engine. I used it in the past in couple of projects. I recently saw an article related to connecting PowerAps to their API. If you are interested I'll see if I can find that article

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

79095932

Date: 2024-10-16 22:01:45
Score: 1.5
Natty:
Report link

There is not a simple way to connect multiple signals to the input port.

The syntax for binding ports and signals is:

  port(signal)

That means to bind your two signals to a single port would look like this:

  port_in(m0_sig_in_s);
  port_in(m1_sig_in_s);

Unfortunately, this does not work because ports like sc_in can only have one binding.

The usual solution is to use an sc_method for the connectivity:

SC_CTOR(mymod) {
  SC_METHOD(connect_port_in);
  sensitive << port_in;
}
...
void connect_port_in() {
  m0_sig_in_s.write(port_in.read());
  m1_sig_in_s.write(port_in.read());
}

Another option is to create a custom port type that can accept more than one binding. An example can be found here: Is it possible to bind the output of a submodule to two different output ports?

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Whitelisted phrase (-1): solution is
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Mr Bone

79095917

Date: 2024-10-16 21:54:44
Score: 3
Natty:
Report link

You can use JSON.parse(event.body)

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: user2501264

79095910

Date: 2024-10-16 21:48:43
Score: 2.5
Natty:
Report link

The problem is with Android Studio "LadyBug" version. It has some conflicts with default gradle plugin. Easy way is delete all gradle and android studio caches, then install android studio Koala version and try again.

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