79449617

Date: 2025-02-18 21:10:34
Score: 7 🚩
Natty:
Report link

Was this issue resolved, as i am facing the same issue

Reasons:
  • RegEx Blacklisted phrase (0.5): Was this issue resolved
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): i am facing the same issue
  • Single line (0.5):
  • Starts with a question (0.5): Was this is
  • Low reputation (1):
Posted by: binoj cherian

79449601

Date: 2025-02-18 21:04:32
Score: 1.5
Natty:
Report link
     print("   <td class=timx-fieldC >")
     print("     <input type=text id=1 name=var7 value='"+var1[7]+"'>")
     print("   </td><td></tr>")
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Tim Patterson

79449593

Date: 2025-02-18 21:02:32
Score: 1
Natty:
Report link

For me, this was only happening when Dependabot was the one who triggered the workflow (Dependabot was the "actor").

Workflows triggered by a Dependabot action are run as if they were in a fork, and don't have access to Organization or Repository secrets: GitHub Actions: Workflows triggered by Dependabot PRs will run with read-only permissions.

So, for now, I will be manually clicking "Merge" on my Dependabot Pull Requests since the next workflow in my CI/CD requires secrets.

See discussion here: GitHub Secrets sometimes empty

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

79449584

Date: 2025-02-18 20:58:30
Score: 2.5
Natty:
Report link

Make sure to do the mocks/add fixtures before freezing time. For me it was the other way around, that did it for me!

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

79449563

Date: 2025-02-18 20:49:28
Score: 4
Natty: 5.5
Report link

The answer posted by EricI uses both "\n\r" in the regular expression search. Do you need to use both? The other answers recommend searching for just "\n". Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: donohealy

79449559

Date: 2025-02-18 20:47:27
Score: 1.5
Natty:
Report link

I had the same problem because when I was creating a project, I chose a type of project "Unit test project" in VS 2019. When I tried to create a project of type "NUnit test project" - this problem was solved. Maybe my new experience will help to someone.

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

79449554

Date: 2025-02-18 20:45:27
Score: 1
Natty:
Report link

Thank you all for your help! I found the bug location. It was rotationIncrement quaternion in function RotateTowards. I just added:

if (glm::any(glm::isnan(rotationIncrement))) 
    return from;

and it worked.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: John Stoner

79449524

Date: 2025-02-18 20:35:25
Score: 1
Natty:
Report link

To disable SSR correctly project-wide, you need to put this in +layout.js:

export const ssr = false;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Petr L.

79449520

Date: 2025-02-18 20:33:24
Score: 2
Natty:
Report link

The solution was to use it on appear, like so:

@main
struct ExampleApp: App {

    @UIApplicationDelegateAdaptor private var appDelegate: AppDelegate
    
    var body: some Scene {
        WindowGroup {
            ContentView()
                .onAppear(perform: {
                    appDelegate.app = self
                })
        }
    }
}

And inside AppDeligate it should start like this:

class AppDelegate: NSObject, UIApplicationDelegate {
    
    var app: ExampleApp?
Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
Posted by: TheGreatCornholio

79449511

Date: 2025-02-18 20:28:23
Score: 1.5
Natty:
Report link

I guess you‘re calling /scalar/v1/ in your browser. Please try it again without the trailing slash /scalar/v1.

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

79449502

Date: 2025-02-18 20:24:22
Score: 2.5
Natty:
Report link

DO functions cannot return data directly, but they can declare cursors and those can be accessed after the DO function ends.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: lewis.michaelr

79449500

Date: 2025-02-18 20:23:22
Score: 1.5
Natty:
Report link

I found that VLC was treating my URL as a file, I just had to do this instead:

final Media media = new Media(mLibVLC, Uri.parse(IPTV_URL));
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: zuokuok

79449493

Date: 2025-02-18 20:21:22
Score: 1.5
Natty:
Report link

According to MDN: The beforeunload event is fired when the current window, contained document, and associated resources are about to be unloaded. The document is still visible and the event is still cancelable at this point.

If the user wants to close or refresh the tab, window, or browser, preventing that from happening would be annoying for users. This is because is no way to prevent users from doing this.

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

79449485

Date: 2025-02-18 20:19:21
Score: 1.5
Natty:
Report link

Thank you so much! This =N(CELL("width",A1)>0) formula worked for me. Happy to find a solution that didn't involve VBA.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: sjboyd81

79449473

Date: 2025-02-18 20:14:20
Score: 0.5
Natty:
Report link

I fixed the issue by setting a PIN (password) on my Android phone. After doing that, the RSA prompt appeared on the phone. It seems that the RSA prompt doesn't show up when the phone doesn’t have a password or PIN set for unlocking.

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

79449472

Date: 2025-02-18 20:14:20
Score: 4
Natty:
Report link

Since Joomla 5 you can create an override for the emails. Here is a short description: https://docs.joomla.org/J5.x:Managing_Mail_Template_Layout

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

79449470

Date: 2025-02-18 20:12:19
Score: 6 🚩
Natty:
Report link

If I understand correctly, you made component A depend on component B and now the test for A is failing because of resources needed by component B? Can you just mock component B in A's test?

This was covered before: Angular Unit Testing - Mock Child Component using Stub

or see something like: https://ng-mocks.sudo.eu/api/MockComponent/

Or can you post your test?

Reasons:
  • RegEx Blacklisted phrase (2.5): can you post your
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Randy

79449469

Date: 2025-02-18 20:12:19
Score: 1.5
Natty:
Report link

The standard C library provides mbstowcs and wcstombs which probably do everything that is required except using std::string and std::wstring. A std::string to std::wstring function based on mbstowcs would almost certainly be a lot faster than using std::wstringbuffer.

This the wc* and mb* function are required in C11 so should be supported everywhere but don't have any access to MSVC++ to check. A lot of programs use UTF 8 to avoid all the issues around byte order, how many bits fit in a wide character (32 bits in glibc, 16 bits on windows), etc.

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

79449466

Date: 2025-02-18 20:10:19
Score: 1.5
Natty:
Report link

Use this code.

In layout

@RenderSection("Style", false)

In page

@section Style
    {
        //style  
    }
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: moslem aslani

79449460

Date: 2025-02-18 20:07:17
Score: 4
Natty: 5
Report link

Thank you!, i was facing the same problem

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: yach

79449452

Date: 2025-02-18 20:04:16
Score: 1.5
Natty:
Report link

The correct answer is that I need to add params with type: "string" ID, it actually had value type: "number"

@Crud({
  model: {
      type: User
    }, 
    params: {
      UserID: {
        field: 'UserID',
        type: 'string',
        primary: true
      }
    }
})
@ApiTags('users')
@Controller('users')
export class UserController implements CrudController<User> {
  
  constructor(public service: UserService) {

  }

  get base(): CrudController<User> {
    return this;
  }
}

Original answer found here: https://github.com/nestjsx/crud/issues/240#issuecomment-527350394

Reasons:
  • Blacklisted phrase (0.5): I need
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: dguard

79449444

Date: 2025-02-18 19:59:16
Score: 1
Natty:
Report link

If signInWithPopup from Google Firebase Authentication isn’t working on iOS when using Ionic + Capacitor, it's likely due to WebView limitations. iOS does not support pop-ups the same way browsers do, especially in WebViews.

Possible Issues & Fixes:

  1. signInWithPopup Doesn't Work on iOS WebViews Issue:

signInWithPopup() relies on pop-ups, which are blocked by WebViews in iOS. iOS does not allow pop-ups from WebViews due to security restrictions. signInWithPopup() works fine on browsers but not in an embedded WebView.

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

79449443

Date: 2025-02-18 19:59:16
Score: 1
Natty:
Report link

Subversion (as of 1.14.2 at least) comes with an svn-bisect tool. In debian, it is available in the subversion-tools package.

sudo apt install subversion-tools

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

79449439

Date: 2025-02-18 19:58:15
Score: 0.5
Natty:
Report link

Here is my final piece of code if someone needs it. It also extends the width of the column a little bit after Autofit.

        int i = 1;
        while (i <= ws.UsedRange.Columns.Count)
        {
            try
            {
                ws.Columns[i].AutoFit();                
            }
            catch
            {
                try
                {
                    ws.Columns[i].AutoFit();
                    ws.Columns[i].ColumnWidth = ws.Columns[i].ColumnWidth + 5;                     
                }
                catch
                {
                    ws.Columns[i].Width = 255;                       
                }
            }
            i++;
        }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: A B

79449438

Date: 2025-02-18 19:57:15
Score: 1.5
Natty:
Report link

Additional trick to save one keystroke: Remove the reference to the standard code snippets in the snippet manager.

I've changed the shortcut for evoking the snippet lookup to Ctrl < and now have to type Ctrl < tt Enter. So I have an additional 3 keystrokes next to my shortcut.

Why does this help: If you only have one folder that contains snippets for your langauge, they don't show up ;-)

Of course this won't work for everybody. But still ...

Also: If you need those code snippets, consider pushing (copying) them to your own snippet.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Annette T.

79449436

Date: 2025-02-18 19:55:15
Score: 1
Natty:
Report link

Using DFS with a Modified Stack For cycle detection using DFS in a directed graph, the basic idea is to traverse the graph and mark each node as visited. The nodes that are currently being explored (i.e., on the DFS call stack) are also marked. If we encounter a node that is already on the stack, we've detected a cycle.

However, DFS recursion can lead to stack overflow in graphs with large depths. To mitigate this:

Iterative DFS with an explicit stack: Instead of relying on recursive calls, use an explicit stack (or queue) to perform DFS iteratively. This avoids the recursion limit issue.

Optimized memory usage: Only store essential data (e.g., visitation state) and make sure to avoid storing unnecessary structures

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

79449434

Date: 2025-02-18 19:54:14
Score: 15 🚩
Natty: 6.5
Report link

Did you solve this issue? I am having the same issue here. The weird thing is that the change report worked. The server responded with a 202 code, but the device's status never got updated.

Everything else works perfectly, except for the Change Report.

Any help would be appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): Any help
  • RegEx Blacklisted phrase (3): Did you solve this
  • RegEx Blacklisted phrase (1.5): solve this issue?
  • RegEx Blacklisted phrase (3): Any help would be appreciated
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having the same issue
  • Contains question mark (0.5):
  • Starts with a question (0.5): Did you solve this is
  • Low reputation (1):
Posted by: Bruno Martins

79449430

Date: 2025-02-18 19:51:13
Score: 0.5
Natty:
Report link

Concatenation in JS is done through "+" operator and looks something like this:

const var1 = "foo"
const var2 = "bar"
const var3 = "foobar"
console.log(var1 + " " + var2 + " " + var3) // foo bar foobar
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sanyokk

79449422

Date: 2025-02-18 19:47:12
Score: 1
Natty:
Report link

I've had this problem, and I believe what fixed it for me was described here. Try doing this:

brew install postgresql

pip install "psycopg[binary,pool]" --force-reinstall --no-cache-dir
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Henrique Labella

79449412

Date: 2025-02-18 19:43:11
Score: 3
Natty:
Report link

Sid's answer worked very well and broke it down in a way that's easy to digest and understand.

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

79449409

Date: 2025-02-18 19:42:10
Score: 1.5
Natty:
Report link

I think the problem is not in your Kotlin code, but in your API itself

As I can see your api is not returning pure JSON code. It's returning some html code and below it the Json string. This will make Kotlin code unable to parse the data properly.

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

79449398

Date: 2025-02-18 19:37:10
Score: 3
Natty:
Report link

I upgraded android studio to lady bug then I upgraded android gradle plugin to the latest version 8.8.1 using the AGP upgrade assistant. I also changed the compile sdk to 35 and target sdk to 34. I was then able to compile and run my code with the dependency.

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

79449396

Date: 2025-02-18 19:36:09
Score: 1
Natty:
Report link

I've created exactly the tool you described: https://github.com/jhasse/minclude

It removes the includes in random order though. Also the downside that are mentioned in other answers are valid: It will remove a lot more than what is "used".

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: jhasse

79449370

Date: 2025-02-18 19:28:08
Score: 0.5
Natty:
Report link

In my case, IntelliJ created 2 module configurations: the old and the new. It was using the old one. I tried to delete it from Project Structure, but IntelliJ refused to delete it.

So I closed IntelliJ and deleted the module from the console with the following commands:

  1. Remove IntelliJ IDEA project files: rm -rf .idea find . -name "*.iml" -type f -delete

  2. Clean Gradle build: ./gradlew clean

  3. Remove Gradle caches for your specific project: rm -rf ~/.gradle/caches/modules-2/files-2.1/YOUR_FOLDER_HERE

    For example, if you are in a project com.enterprise.something.else, you should do: rm -rf ~/.gradle/caches/modules-2/files-2.1/com.enterprise

  4. Open IntelliJ and use "File -> Open Project" to import the project from scratch, allowing IntelliJ to reconfigure everything.

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

79449367

Date: 2025-02-18 19:25:07
Score: 0.5
Natty:
Report link

So this was already answered by kakkoko's comment. But I just wanted to put this into an answer so that the question is marked as solved.

So! Most compilers follow the Itanium abi, meaning that there is a defined interface. Essentially, when type_info and __fundamental_type_info are defined as the abi declares them (so matching the namespace, functions etc), then the compiler works some magic in the background and defines the type info for you!

I tried to put this into godbolt, but it seems it needs them to be defined in a separate file.

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

79449363

Date: 2025-02-18 19:23:06
Score: 0.5
Natty:
Report link

So apparently it was a WSL networking issue and a Nomad/Traefik issue, two in one.

I had to mount the traefik config files from Nomad to Docker like:

        volumes = [
          "etc/traefik/traefik.yml:/etc/traefik/traefik.yml",
          "etc/traefik/dynamic.yml:/etc/traefik/dynamic.yml"
        ]

Then I had to remove the port forwarding since Nomad does automatic NAT translation when bound to 0.0.0.0, then bind the ports in the hcl setup so that Nomad can handle that: ports = ["admin", "http"]

That results in Traefik being available on the WSL IP address (not localhost, as it's not found to 0.0.0.0) and is able to handle incoming traffic.

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

79449354

Date: 2025-02-18 19:20:06
Score: 1
Natty:
Report link

No. Linux does not write pages to swap if that same page exists in storage. ".text" pages, are the program and library code pages that are generally read-only and change on disk infrequently.

When the kernel is recouping dram, it examine LRU pages. If the page exists on disk it merely 'evicts' the page - it marks the page as not present in dram in the MMU, and then re-uses that dram page for other purposes. If the evicted page is later accessed, it will page-fault in from disk.

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

79449352

Date: 2025-02-18 19:19:06
Score: 3.5
Natty:
Report link

You can’t call functions that yields inside metamethods because Luau doesn’t support suspending coroutines inside metamethod functions.

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

79449350

Date: 2025-02-18 19:18:05
Score: 0.5
Natty:
Report link

I suspect that running uv run -m scripts.importmylist might solve your problem. Notice the -m or --module flag, which runs a python module. Also notice the dot instead of the slash and the lack of the .py ending.

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

79449349

Date: 2025-02-18 19:18:05
Score: 3
Natty:
Report link

Grails 6.2.3 is on Spring Boot 2.7.18 which supports a max tomcat version of 9.0.x.

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/2.7.18

Grails 7 will be on Spring Boot 3.4.x which supports Tomcat 10.1.x. https://grails.org/blog/2024-12-23-grails-7-m1.html

https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-dependencies/3.4.0

Grails 8 will likely be the first version to support Tomcat 11.

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: James Fredley

79449339

Date: 2025-02-18 19:13:04
Score: 2
Natty:
Report link

.1.3.6.1.2.1.2.2.1.7 is ifAdminStatus, 1 means the port is enabled/up, 2 means it's shutdown/down

.1.3.6.1.2.1.2.2.1.8 is ifOperStatus, if the admin status is down, this will be down. 1 means the port is admin up AND connected, 2, if the port is admin up, means the port is disconnected.

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

79449336

Date: 2025-02-18 19:12:04
Score: 1.5
Natty:
Report link

I think what you need here is replacing

make.left.right.greaterThanOrEqualToSuperview().inset(padding).priority(.required)

with

make.left.greaterThanOrEqualToSuperview().inset(padding)
make.right.lessThanOrEqualToSuperview().inset(padding)

For me it works perfectly fine now!

landscape portrait

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

79449331

Date: 2025-02-18 19:07:02
Score: 1
Natty:
Report link

using rm-pycache https://pypi.org/project/rm-pycache/

python3 -m pip install rm-pycache

rm_pycache()

you can specify the path, or otherwise will run in the current working directory.

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

79449311

Date: 2025-02-18 18:58:01
Score: 2.5
Natty:
Report link

You'd expect this issue to be solved by now right?, but yeah Microsoft

You can just use this dotnet tool instead https://github.com/dotnet-outdated/dotnet-outdated

update to the latest packages for your runtime by calling:

dotnet outdated -vl Major -u
Reasons:
  • RegEx Blacklisted phrase (1.5): solved by now right?
  • Low length (0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: brodrigs

79449310

Date: 2025-02-18 18:56:00
Score: 4.5
Natty: 4.5
Report link

Here is a screen shot link:

Sort Order Lexicographic Options Setting

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

79449307

Date: 2025-02-18 18:54:59
Score: 3.5
Natty:
Report link

Or try dumber to (un)numbering Mardown sections, and add/remove Table(s) of Content.

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

79449304

Date: 2025-02-18 18:51:59
Score: 1.5
Natty:
Report link

Regarding your question:

Also how can we Disable Default MongoDB ObjectID's Generation and _v?`

Setting versionKey to false in your schema will disable versioning.

const mySchema = new mongoose.Schema({
    someField: String
}, { versionKey: false });

All top-level documents require an _id. The _id serves as the primary key.

Note: autoIndexId: false only worked in older versions of MongoDB (before v3.4)

Reasons:
  • Blacklisted phrase (1): how can we
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Stephen Taylor

79449301

Date: 2025-02-18 18:48:58
Score: 1
Natty:
Report link

Looks like we use https://aiohttp.readthedocs.io/en/stable ourselves: https://github.com/aio-libs/aiohttp-session/blob/4e14245e60140825979fcc7ec9d732f5aa16663f/docs/conf.py#L345

So, I'd try that.

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

79449300

Date: 2025-02-18 18:46:58
Score: 0.5
Natty:
Report link

I found the problem!

I wasn't acking the task when it finished

It wasn't something that gave an answer, so I did't get the result. I only checked that it was on rabbitmq like this:

async_result = available_tasks[task_name].apply_async(args=[data], kwargs=kwargs)
data = {'job_id': async_result.id, 'state': async_result.state}
code = 200
status = True
message = ''
return response(status, code, data, message)

But I shoulded use something like this:

async_result = available_tasks[task_name].apply_async(args=[data], kwargs=kwargs)
data = {'job_id': async_result.id, 'state': async_result.state, 'job_result': async_result.get()}
code = 200
status = True
message = ''
return response(status, code, data, message)

If I wouldn't use the get function rabbitmq would wait for the acknowledgement and disconect. That was the origin of the problem

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

79449293

Date: 2025-02-18 18:40:56
Score: 1
Natty:
Report link

It turns out that the issue was that the new file paths exceed Windows' maximum path length (256 characters):

> physical(my_ff_matrix_1)$filename %>% nchar()
[1] 262

Moving the ffarchive to a location such that physical(my_ff_matrix_1)$filename %>% nchar() was less than 256 solved the issue.

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

79449286

Date: 2025-02-18 18:37:56
Score: 0.5
Natty:
Report link

You can use pagehide event. According to chrome, pageHide is more reliable than beforeunload. But again, like other events, this event is not reliably fired by browsers, especially on mobile.

For more information:

Reasons:
  • Whitelisted phrase (-1.5): You can use
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 404nnotfoundd

79449278

Date: 2025-02-18 18:35:55
Score: 1.5
Natty:
Report link

Make sure that your response variable is on the [0,1] scale, as expected by betar() since the Beta distribution exists only on that interval.

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

79449276

Date: 2025-02-18 18:34:55
Score: 2.5
Natty:
Report link

What person came along and down-voted this question?! I voted it up again. It's a common problem in Snakemake and it has a good answer - shadow rules:

https://snakemake.readthedocs.io/en/stable/snakefiles/rules.html#shadow-rules

Using shadow mode is not as mysterious as it may seem. It just does exactly what you are trying to do with subfolders but in a consistent and robust way. The "shadow" is just a temporary directory where the rule runs and makes whatever output, then Snakemake moves the output file back to the real working directory and deletes anything else. It's great for cleaning up temp files, and for resolving conflicts like you have.

If you ever tried Nextflow, that system basically runs every step as a shadow rule.

The short answer is, just add shadow: 'minimal' to your original rule (the simple version that did [*command to generate SolFix*]; mv SolFix {output.SolFix_ebv}) and then you should be golden. Let me know if you still have problems.

Reasons:
  • RegEx Blacklisted phrase (2): down-vote
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What
  • Low reputation (0.5):
Posted by: Tim Booth

79449254

Date: 2025-02-18 18:24:52
Score: 2.5
Natty:
Report link

You need to call the callback function. You can find it in hcaptcha.render. An example of how to do this is available on the website https://multibot.in in the API documentation.

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

79449249

Date: 2025-02-18 18:23:52
Score: 3
Natty:
Report link

Many thanks for all the comments. I now have code which works 100% as envisaged:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Dislocation of Artificial Hip Joint</title>

<script src="https://code.jquery.com/jquery-3.7.1.js"></script>
<!-- https://github.com/jquery/jquery/blob/main/LICENSE.txt -->

<script>

window.addEventListener('keydown', function (e) {

    // Process e object
    var key = e.which
    if (e.ctrlKey)  { key = "ctrl"+key;     }
    if (e.altKey)   { key = "alt"+key;      }
    if (e.shiftKey) { key = "shift"+key;    }

    // Ctrl+C
    if (key == "ctrl67") {
        // Preserve default
        return;
    }

    // Ctrl+F
    if (key == "ctrl70") {
        // Preserve default
        return;
    }

    // Space
    if (key == "32") {
        // Preserve default
        return;
    }

    // TAB
    if (key == "9") {
        // Preserve default
        return;
    }

    // Shift+TAB
    if (key == "shift9") {
        // Preserve default
        return;
    }

    // LeftArrow
    if (key == "37") {
        // Preserve default
        return;
    }

    // RightArrow
    if (key == "39") {
        // Preserve default
        return;
    }

    // Enter        - if radio button send space
    if (key == "13") {
        if($("input[type=radio]").is(':focus')){
            // Dissable default
            e.preventDefault();
            // Simulate Space
            let inputs = $('input');
            let index_input = inputs.index($('#' + e.target.id));
            inputs.eq(index_input).click();
        } else {
            // Preserve default
            return;
        }
    }

    // DownArrow    - if radio button send TAB
    if (key == "40") {
        if($("input[type=radio]").is(':focus')){
            // Dissable default
            e.preventDefault();
            // Simulate TAB to move to next radio group
            let inputs = $('input');
            let index_input = inputs.index($('#' + e.target.id));
            let next = inputs.eq(index_input + 2);
            next.focus();
        } else {
            // Preserve default
            return;
        }
    }

    // UpArrow      - if radio button send Shift+TAB
    if (key == "38") {
        if($("input[type=radio]").is(':focus')){
            // Dissable default
            e.preventDefault();
            // Simulate Shift+TAB to move to prev radio group
            let inputs = $('input');
            let index_input = inputs.index($('#' + e.target.id));
            let next = inputs.eq(index_input - 2);
            next.focus();
        } else {
            // Preserve default
            return;
        }
    }

    // Dissable fall-through and all remaining keyboard shortcuts
    e.preventDefault();
});

</script>
<style>
body {
margin: 20;
}
.Q {
margin: 10;
}
input[type='radio']{
    transform: scale(2);
    margin:10px;
    margin-bottom: 15px;
}
</style>

</head>
<body>
<h1>Hip Replacement Dislocation</h1>

<h2>Introduction</h2>

These questions will help you assess, document and treat patients with dislocations of their total hip replacements.<br>
<br>
Unfortunately patients with unstable hips may present several time in ED, before remedial surgery is undertaken.

<H2>Questions</h2>
<div id="Q0" class="Q" style="display:block">
    Does your patient have a total hip replacement or hip resurfacing?
    <br>
    Yes <input class="Y" name="Q0" id="Q0y" type="radio"  onchange="Q0();">
    No <input class="N" name="Q0" id="Q0n" type="radio"  onchange="Q0();">

    <script type="text/javascript">
        function Q0() {
            // Hide future questions
            $('.Q').slice(0+1).hide();
            // Clear future question responses
            $('.Y').slice(0+1).prop('checked', false);
            $('.N').slice(0+1).prop('checked', false);
            // Jump to selected question
            if ($('#Q0y').is(':checked')) {
                $("#Q1").css("display","block");
                $("#Q1y").trigger('focus');
            } else {
                $("#Q101").css("display","block");
            }
        }
    </script>
</div>

<div id="Q1" class="Q" style="display:none">
    Do x-rays show the ball outside the socket?<br>
    NB. After some years of wear the ball is allowed to be eccentric in the socket.<br>
    Yes <input class="Y" name="Q1" id="Q1y" type="radio"  onchange="Q1();">
    No <input class="N" name="Q1" id="Q1n" type="radio"  onchange="Q1();">

    <script type="text/javascript">
        function Q1() {
            $('.Q').slice(1+1).hide();
            $('.Y').slice(1+1).prop('checked', false);
            $('.N').slice(1+1).prop('checked', false);
            if ($('#Q1y').is(':checked')) {
                $("#Q2").css("display","block");
                $("#Q2y").trigger('focus');
            } else {
                $("#Q102").css("display","block");
            }
        }
    </script>
</div>

<div id="Q2" class="Q" style="display:none">
    Is there an open wound, loss of innervation or loss of blood supply!
    <br>
    Yes <input class="Y" name="Q2" id="Q2y" type="radio"  onchange="Q2();">
    No <input class="N" name="Q2" id="Q2n" type="radio"  onchange="Q2();">

    <script type="text/javascript">
        function Q2() {
            $('.Q').slice(2+1).hide();
            $('.Y').slice(2+1).prop('checked', false);
            $('.N').slice(2+1).prop('checked', false);
            if ($('#Q2y').is(':checked')) {
                $("#Q103").css("display","block");
            } else {
                $("#Q3").css("display","block");
                $("#Q3y").trigger('focus');
            }
        }
    </script>
</div>

<div id="Q3" class="Q" style="display:none">
    Typically the whole leg is rotated with a hip dislocation.<br>
    Which way is the leg rotated - toes pointing?
    <br>
    Inward <input class="Y" name="Q3" id="Q3y" type="radio"  onchange="Q3();">
    Outward <input class="N" name="Q3" id="Q3n" type="radio"  onchange="Q3();">

    <script type="text/javascript">
        function Q3() {
            $('.Q').slice(3+1).hide();
            $('.Y').slice(3+1).prop('checked', false);
            $('.N').slice(3+1).prop('checked', false);
            if ($('#Q3y').is(':checked')) {
                $("#Q4").css("display","block");
            } else {
                $("#Q5").css("display","block");
            }
        }
    </script>
</div>

<div id="Q4" class="Q" style="display:none">
    <h2>Advice</h2>

    This is a posterior dislocation of the artificial hip.<br>
    <br>
    Please document your findings:<br>
    <ul>
        <li>Radiologically proven dislocation</li>
        <li>Posterior direction</li>
        <li>Number of previous dislocations</li>
        <li>No fractures or complex implants</li>
        <li>No loss of innervation</li>
        <li>No loss of blood supply</li>
    </ul>

    Assuming a suitable patient with no other injuries, this should be reduced by the ED staff in line with locally agreed procedure:
    <ul>
        <li><a href=https://www.youtube.com/watch?v=yGU2zqHt-BQ target="_blank">YouTube (81 seconds)</a></li>
    </ul>

    For a very unstable hip, splinting the knee will inhibit hip flexion, and may reduce the risk of recurrent posterior dislocation.
</div>

<div id="Q5" class="Q" style="display:none">
    <h2>Advice</h2>

    This is an anterior dislocation of the artificial hip.<br>
    <br>
    Please document your findings:<br>
    <ul>
        <li>Radiologically proven dislocation</li>
        <li>Anterior direction</li>
        <li>Number of previous dislocations</li>
        <li>No fractures or complex implants</li>
        <li>No loss of innervation</li>
        <li>No loss of blood supply</li>
    </ul>

    Assuming a suitable patient with no other injuries, this should be reduced by the ED staff in line with locally agreed procedure:
    <ul>
        <li><a href=https://www.youtube.com/watch?v=oiKQxgbrOcA target="_blank">YouTube (89 seconds)</a></li>
    </ul>

    Splinting the knee, will not reduce the risk of recurrent anterior dislocation.
</div>

<div id="Q101" class="Q" style="display:none">
    <h2>End of help</h2>
    These questions are only valid for dislocation of total hip replacements.<br>
    <br>
    Dislocation of a native hip or a hemiarthroplasty, have their own pages.
</div>

<div id="Q102" class="Q" style="display:none">
    <h2>End of help</h2>
    If the ball is inside to socket, then the hip is not dislocated.
    <br>
    <br>
    Look at the x-rays carefully for other causes of sudden hip pain and leg shortening:
    <ul>
        <li>Periprosthetic fracture of the femur</li>
        <li>Periprosthetic fracture of the acetabulum</li>
        <li>Fracture of the stem</li>
        <li>Dissassembly of the liner in uncemented cups</li>
    </ul>
    If you can't make a diagnosis, call the orthopaedic team for help.
</div>

<div id="Q103" class="Q" style="display:none">
    <h2>End of help</h2>
    Complicated artificial hip dislocations are uncommon - you will need help.
    <br>
    <br>
    Before calling the orthopaedic team:
    <ul>
        <li>For open wounds, please immediately give intravenous broad spectrum antibiotics and tetanus cover</li>
        <li>For patients with loss of innervation, please document MRC power grading and map loss of sensation</li>
        <li>For patients with loss of blood supply, please check with doppler for pulses</li>
    </ul>
    Now call the orthopaedic team for help.
</div>

<script>
    $("#Q0y").focus();
</script>

</body>
</html>

Using this template I can generate unlimited pages with easily accessible Y/N decision trees.

Kind Regards Gavin Holt

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): Regards
  • Blacklisted phrase (1): youtube.com
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Gavin

79449247

Date: 2025-02-18 18:22:52
Score: 2.5
Natty:
Report link

I've had similar issue like this, but in my case, what I had to do was to go to mongoDB atlas network access settings and to make sure my IP address is whitelisted, that is, allowed.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Obinna Obi-Akwari

79449245

Date: 2025-02-18 18:22:52
Score: 3.5
Natty:
Report link

Quick update if anyone facing the same problem in 2025 with MAMP7.

I had the same issue, now the mysql folder is located at: /Applications/MAMP/Library/bin/mysql80/bin

If you use other mysql version then i guess just change .../mysql80/... - to your version.

Reasons:
  • Whitelisted phrase (-1): I had the same
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Low reputation (1):
Posted by: Attila Balog

79449242

Date: 2025-02-18 18:20:51
Score: 3.5
Natty:
Report link

See https://github.com/php/php-src/issues/17856.

The Visual Studio version used to build PHP shouldn't matter.

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

79449236

Date: 2025-02-18 18:14:50
Score: 1
Natty:
Report link

Per Polars Support:

First, you need way more iterations than just 100 for such a small timewindow. With 10,000 iterations I get the following:

avg polars run: 0.0005123567976988852 avg pandas run: 0.00012923809615895151 But we can rewrite the polars query to be more efficient:

df_filtered = (
    df.lazy()
      .with_columns(abs_diff = (pl.col.column_0 - target_value).abs())
      .filter(pl.col.abs_diff == pl.col.abs_diff.min())
      .collect()
)

Then we get:

avg polars run: 0.00018435594723559915 Ultimately Polars isn't optimized for doing many tiny tiny horizontally wide datasets though.

Unfortunately, I didn't experience much of a performance boost when I tried the version above. It does seem the speeds are very machine dependent. I will continue with pandas for this specific use case. Thanks all for looking.

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

79449234

Date: 2025-02-18 18:13:50
Score: 1
Natty:
Report link

The problem is with the "git server" plugin, there is a bug that causes the HTTP(S) not work https://issues.jenkins.io/browse/JENKINS-72606?jql=resolution%20is%20EMPTY%20and%20component%3D17613

To use the scriptler plugin, you must enable SSH in Jenkins itself (running SSH on the server will not work because it does not tie directly into Jenkins). After you have enabled SSH you will need to generate an RSA public key on your workstation. Then in Jenkins click on your userid in the upper right corner and select "Account". The on the left side click on "Security", scroll down and paste the contents of the "id_rsa.pub" file from you local machine into the SSH Public Keys box then save. Now to clone the scriptler repo use the synax: git clone ssh://@:/scritper.git

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

79449227

Date: 2025-02-18 18:10:49
Score: 1
Natty:
Report link

Thanks to user Mohkoma for sharing this solution, it helped me a lot to implement transitions in my project with Inertia. I just wanted to make a small improvement: if you wrap the only around the main content, instead of spanning the entire page, the animation will affect only the content and not the header or footer. Here is an example of how I implemented it:

<template>
    <AppHeader />
    <main class="max-w-7xl">
        <Transition name="fade" mode="out-in" appear>
            <div :key="$page.url">
                <slot />
            </div>
        </Transition>
    </main>
    <AppFooter />
</template>
Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): helped me a lot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Erik Jhordy

79449223

Date: 2025-02-18 18:07:49
Score: 1.5
Natty:
Report link

An alternative could be a regex pattern, but this is as brittle as any solution that assumes URL structures will never change. Relying on URLs for the id is probably not the most solid approach. Surely the JSON stream holds the actual ids somewhere, at least indirectly in the linked objects?

Explanation of the matching pattern /\/(\d+)\/?$/ used in the example below:

  1. \/ matches a forward slash, escaped with a backslash.
  2. (\d+) gets one + more digits
  3. \/? gets optional /, escaping it.
  4. $ matches end of string
  5. The first and last / are JS regex delimiters, so not functional parts o the patten

Most of this is touched upon in the Regular expressions at MDN. Also see String.prototype.match() for this method.

const url = 'https://jsonplaceholder.typicode.com/todos/101/';
const idInUrlPattern = /\/(\d+)\/?$/;
//? handles a null case, [1] returns the matching group
const getIdFromUrl = url => url.match(idInUrlPattern)?.[1];
console.log(getIdFromUrl(url));

Reasons:
  • Blacklisted phrase (1.5): any solution
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: MiB

79449221

Date: 2025-02-18 18:07:49
Score: 0.5
Natty:
Report link

adding isolate() in this line :

selected <- ifelse(input$inSelect %in% x, input$inSelect, tail(x, 1))

so it looks like this:

selected <- ifelse(isolate(input$inSelect) %in% x, isolate(input$inSelect), tail(x, 1))

appears to solve the problem

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

79449219

Date: 2025-02-18 18:05:48
Score: 5
Natty: 4.5
Report link

For me it turned out to be an exclamation mark (!) in a

element. Rookie error. Anyway, thanks to @atazmin for the suggestion to comment out different sections in the root layout component.

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Blacklisted phrase (1): to comment
  • Low length (0.5):
  • No code block (0.5):
  • User mentioned (1): @atazmin
  • Single line (0.5):
  • Low reputation (1):
Posted by: thetada

79449217

Date: 2025-02-18 18:04:47
Score: 1.5
Natty:
Report link

One thing that works for me is to check out another branch, especially if it's very different from the current one. After that, just go back to the branch you were working on.

I don't know why, but sometimes I need to repeat this process a few times to solve it.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): works for me
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Cezar Oliveira

79449210

Date: 2025-02-18 18:02:47
Score: 0.5
Natty:
Report link

I wasted my whole day struggling with this problem, I am pretty sure my solution will work almost everywhere! SOLUTION: Just update your node version...

Reasons:
  • Whitelisted phrase (-2): SOLUTION:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Umar Zaib

79449206

Date: 2025-02-18 18:01:47
Score: 1
Natty:
Report link

I ran into the same issue and managed to fix it by doing the following:

  1. Click on the Project Name Go into the Build Settings

  2. Find Build Options: Look for the Build Options section—it’s usually where you tweak things related to how your project gets built.

  3. Change the Setting: There should be an option you can toggle, like switching it from Yes to No

  4. Rebuild the Project: Save your changes and rebuild the project to see if it works.

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

79449182

Date: 2025-02-18 17:52:44
Score: 5
Natty: 6
Report link

This article resolved the issue for me:

https://learn.microsoft.com/en-us/dotnet/maui/migration/secure-storage?view=net-maui-9.0

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

79449178

Date: 2025-02-18 17:50:44
Score: 1.5
Natty:
Report link

Java's ExecutorService provides a powerful way to manage threads efficiently. You can create a separate thread for each device, enabling them to start acquisition and transmit data in parallel.

Implementation Strategy: Create a Runnable or Callable task for each device. Use a FixedThreadPool or CachedThreadPool to manage threads. Start data acquisition for all devices simultaneously. Collect and process the data as soon as each device finishes transmitting.

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

79449174

Date: 2025-02-18 17:49:43
Score: 2.5
Natty:
Report link

After trying three variations on the second approach that wasn't working, I was looking at this tutorial and discovered that by setting:

scene = mi.load_file("my_scene.xml", integrator=prb_projective')

instead of

scene = mi.load_file("my_scene.xml", integrator=prb')

my optimizer was again able to find a gradient with respect to the size of the light (in the case that worked for me, I was editing a latent variable that was used to control a scale matrix that positioned the vertices of the area light).

Although this works, there are a couple things that should be noted:

  1. It's much slower to use a projective integrator
  2. It's extremely unclear how Mitsuba was able to figure out how to adjust the size of the light in the first case when using the non-projective prb integrator, but why it wasn't able to in the second case until I switched to the prb_projective integrator.

Any thoughts on this would be greatly appreciated.

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (1): this tutorial
  • Blacklisted phrase (1.5): Any thoughts
  • Whitelisted phrase (-1): worked for me
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Anson Savage

79449166

Date: 2025-02-18 17:48:43
Score: 0.5
Natty:
Report link

Install the following nuget package.

xRetry.SpecFlow

Once installed , at the feature level add following tag

@retry(2,5000)
Feature: <Feature Name>

2 -- number of times to retry 5000 -- time in ms between each retry.

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

79449158

Date: 2025-02-18 17:44:42
Score: 1
Natty:
Report link

I'm new to go-app and this library is very fascinating but here's what I understand about the Render() and OnClick() methods.

Render() is called on the server side, so you can execute code to write a new file on the server itself. While the OnClick() is executed on the client side and no longer has access to the server to create a new file.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Has code block (-0.5):
Posted by: ginad

79449156

Date: 2025-02-18 17:43:41
Score: 4.5
Natty: 5
Report link

https://repost.aws/knowledge-center/backup-assign-resources. The conditions in list of tags is OR'ed

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

79449155

Date: 2025-02-18 17:43:41
Score: 1.5
Natty:
Report link

To come up with a greedy algorithm quickly (or slowly) is easy. The difficult part is proof of correctness. My strategy is to prove by contradiction so that requires me to quickly think of a counter-example. The proofs explained in the CLRS book for some of the algorithms could be a good start. Proofs by induction are also good but to come up with them might get difficult. Bottom line is that greedy algorithms need to be protected by proofs.

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

79449150

Date: 2025-02-18 17:40:41
Score: 0.5
Natty:
Report link

SIMD and VLIW are two distinct parallel computing architectures. Here is the details:

SIMD (Single Instruction Multiple Data): SIMD performs the same operation on multiple data points simultaneously. It's highly efficient for tasks that involve large datasets. Commonly used in graphics processing units (GPUs) and multimedia applications to accelerate tasks like image processing and matrix multiplication. e.g.: Vector operations where the same arithmetic operation is applied to a set of numbers in parallel.

VLIW (Very Long Instruction Word): VLIW allows multiple independent operations to be encoded in a single long instruction word. The compiler decides which operations can be executed in parallel. Used in digital signal processors (DSPs) and some general-purpose processors to improve instruction-level parallelism. e.g. : A VLIW processor might execute multiple arithmetic and memory operations in a single clock cycle by encoding them into one long instruction.

They are two distinct approaches to parallel computing, each with its strengths and weaknesses, and are not subsets of each other.

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

79449148

Date: 2025-02-18 17:39:40
Score: 3
Natty:
Report link

Though it seems like it wouldn't, this actually works in Arabic locales that use Eastern-Arabic numbers.

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

79449139

Date: 2025-02-18 17:34:39
Score: 14.5
Natty: 7.5
Report link

@saurabh060 did you find the solution? I am facing the same issue. Please help.

Reasons:
  • RegEx Blacklisted phrase (3): Please help
  • RegEx Blacklisted phrase (3): did you find the solution
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • User mentioned (1): @saurabh060
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: Vidhi Jain

79449127

Date: 2025-02-18 17:31:38
Score: 2
Natty:
Report link

I was able to get this working by padding out the keyboard inset. Now the layout resizes above the keyboard:

      ViewCompat.setOnApplyWindowInsetsListener(findViewById(R.id.main)) { v, insets ->
        val systemBars = insets.getInsets(WindowInsetsCompat.Type.systemBars())
        val ime = insets.getInsets(WindowInsetsCompat.Type.ime())
        v.setPadding(systemBars.left, systemBars.top, systemBars.right, systemBars.bottom + ime.bottom)
        insets
    }

This solution looks reasonable, but I'd appreciate any alternative solutions or additional advice as I'm new to android development. My initial impression from reading various docs was that I wouldn't need to do this manual padding adjustment with android:windowSoftInputMode="adjustResize" set.

Reasons:
  • RegEx Blacklisted phrase (1.5): I'm new
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lrouleau

79449124

Date: 2025-02-18 17:28:37
Score: 3.5
Natty:
Report link

The problem has same answer as the non-ndk pure-java version of the problem. That is, too low targetSdkVersion. setting targetSdkVersion>=24 fixed the problem.

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

79449123

Date: 2025-02-18 17:28:37
Score: 2
Natty:
Report link

It turned out to be easier to cut out the time management system and rewrite everything from scratch. It was pointless to waste time on something that was written crookedly. Now I set the time and day of the week in the config for restarting specific types of dungeons and it works exactly in this hour. Viste several years ago suggested this fix, but it was rejected. And they continue to suffer to spite everyone :)

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

79449120

Date: 2025-02-18 17:26:37
Score: 1.5
Natty:
Report link

In my case, Clearing Metro Bundler cache and restarting the app worked. Using the below command,

expo start -c

And I was already in the LAN mode

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

79449114

Date: 2025-02-18 17:24:36
Score: 2.5
Natty:
Report link

Looks like "/" is not enaugh, cause "/" means to use 'hidden' "/index.html" (or what default resourse path). I've got the same problem and it works, when I permit only both "/" AND "/index.html".

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

79449085

Date: 2025-02-18 17:12:34
Score: 1
Natty:
Report link

This works as expected with newer version of Rails (v6.1 and later).

some = I18n.t("something.something_else", default: nil) returns nil as expected

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

79449084

Date: 2025-02-18 17:12:34
Score: 2.5
Natty:
Report link

We have a build server with only the build tools, not IDE/UI. Where is the JavaSdkDirectory value set? There is not a registry setting on our build machine, presumably because there is no IDE/UI.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Rich Morey

79449079

Date: 2025-02-18 17:10:33
Score: 1
Natty:
Report link

I found this answer really useful, I would just like to add that, whilst not necessary, adding a "SET" command seems to remove potential errors being flagged in a Synapse notebook, magic SQL cell.

%%sql
SET myapp.myVar;
SELECT * FROM myTable WHERE myVal = '${myapp.myVar}'
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Paul Mattey

79449077

Date: 2025-02-18 17:10:32
Score: 9 🚩
Natty:
Report link

I tried the same example https://github.com/tdlib/td/blob/master/example/cpp/td_example.cpp but below lambda section didn't work in my building at all.

if (o->get_id() == td_api::error::ID) {
      return;
    }

    auto chat = td::move_tl_object_as<td_api::chat>(o);
    offset_order_ = chat->order_;
    offset_chat_id_ = chat->id_;
    update_chats_ = true;

Had you the same problem? How did you fix it?

Reasons:
  • Blacklisted phrase (1): How did you fix
  • RegEx Blacklisted phrase (3): did you fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Probably link only (1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Katya Orlova

79449072

Date: 2025-02-18 17:09:32
Score: 2.5
Natty:
Report link

apt install libapache2-mod-php8.2 si tienes una version de php 8.2 esa liberia tienes que instalar

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

79449070

Date: 2025-02-18 17:09:31
Score: 7.5 🚩
Natty: 5.5
Report link

I'm using version 7.4.5.

As for the colors example, I think I understand what is written here in the answer (and in the documentation), but I can't figure out how to do it...

Let's suppose we have a simple "Car" entity with an "id" field and a "color" field. I want to show in the form a combo loaded with some colors added programmatically (red, yellow and so on..)

My question is: "where" should I write the getView().addValidValue() statements? Directly in the entity class "Car"?

Thanks in advance.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (3): Thanks in advance
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Lorenzo Morini

79449062

Date: 2025-02-18 17:05:30
Score: 7 🚩
Natty: 4
Report link

I came across your LHA Decompressor code a week or two back and have integrated it into my application - it's been quite useful and very much appreciated. What I've found however, is that with some archives, looking at the moment like LHZ ones, during the initial "MakeEntryMap" stage where the code is reading the header, it iterates through all the entries without issue, but continues on even though there's none left and then throws an exception - I've only just started to take a look at it and see if I can figure out how to sort it, but I was wondering if you'd come across this issue? This doesn't happen with all the archives that I have, but with quite a few. It's LH5 encoded, with an extended header (1). If you have any insight, I'd be grateful for any advice - I'm not great with compression code!

Reasons:
  • Blacklisted phrase (1): appreciated
  • Blacklisted phrase (2): was wondering
  • RegEx Blacklisted phrase (2): I'd be grateful
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Joe 90

79449061

Date: 2025-02-18 17:05:30
Score: 1
Natty:
Report link
This is all the ways to mark a serialized field before renaming depending on its type [SerializeField, FormerlySerializedAs("TAG")]:

where TAG's are:
<[property name]>k__BackingField
_[camel-cased property name]
_[property name]
m_[camel-cased property name]
m_[property name]
[property name]_
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mark

79449053

Date: 2025-02-18 17:00:28
Score: 4.5
Natty: 5.5
Report link

hey so help me my compass is just not connecting it just tries and stops after 30 seconds

Reasons:
  • Blacklisted phrase (1): help me
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Aditya Raj

79449052

Date: 2025-02-18 16:59:27
Score: 11.5 🚩
Natty: 6.5
Report link

Did you manage to make the adjustment?. I have the same application, but I have not managed to make it work, I also need it to ask only for the mail on the initial screen.

Can you help me?

Reasons:
  • Blacklisted phrase (1): help me
  • RegEx Blacklisted phrase (3): Did you manage to
  • RegEx Blacklisted phrase (3): Can you help me
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Did you
  • Low reputation (1):
Posted by: user29698890

79449050

Date: 2025-02-18 16:59:27
Score: 1.5
Natty:
Report link

If you are loading the posts and pagination via ajax, then your pagination links need have listeners attached to them that make ajax calls of their own. Right now, it appears you are loading normal pagination links, and that's not how your page is designed to work.

Three steps:

  1. Add a 'paged' variable to the data object in your ajax call so that this information is passed to your php function.
  2. Adjust your php function so that it outputs custom pagination links
  3. Add new javascript that listens for clicks on these links and makes your ajax call with the paged variable set appropriately

EDIT: On second thought, you don't need step two as you can probably attach your event and gather the page information from the links as they are.

Reasons:
  • Blacklisted phrase (1): these links
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Chad Phillips

79449048

Date: 2025-02-18 16:58:27
Score: 3
Natty:
Report link

Press F12 (developer tools) to see error. In our case, it was lack of permission to execute the Apex class associated with the controller. Worked fine in Preview...but not after publish.

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

79449047

Date: 2025-02-18 16:58:26
Score: 5.5
Natty:
Report link

Installing lib32z1 library fixed my problem. Thanks @Anon Coward.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1.5):
  • No code block (0.5):
  • User mentioned (1): @Anon
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Smruti Dash

79449045

Date: 2025-02-18 16:57:26
Score: 1
Natty:
Report link

Hi i also experience issues regarding this. I have a empty starter scene and i am loading an addressable (scene) additively. I set all the texture resolutions to 64px for Android (1024px works normally flawlessly if I just load it directly additively via script without using addressables). I am running the build with the default interaction toolkit setup, unity 6000.0.38f1 with Addressable (2.2.2) and building it for the quest 3 (yes 64 bit build). In one build it seems to work flawlessly in another build the app crashes when loading the addressable scene with out of memory.

Really, I don't know what the problem is with it. Same behavior with Unity 2022.3.x

Profiler about quest 3 run before crashing down

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

79449043

Date: 2025-02-18 16:56:26
Score: 3
Natty:
Report link

Currently its not possible only systemImageName is supported: https://forums.developer.apple.com/forums/thread/758159?answerId=795059022#795059022

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

79449042

Date: 2025-02-18 16:56:26
Score: 1
Natty:
Report link

I put a Timer event with an interval of 500ms on the form - it seems to work OK for me. It simply updated an unbound text control.

Private Sub Form_Timer()

txtLocalTime.Value = Time()

End Sub

I suppose if you're going to use the Form Timer event to do something else, then it could be an issue, but, I believe in keeping things simple :-)

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: HeckingtonSkies

79449040

Date: 2025-02-18 16:54:25
Score: 1
Natty:
Report link

You should SQL_C_CHAR to fetch the value as a string and then convert it to a long long (64-bit interger) with strtoll.

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

79449039

Date: 2025-02-18 16:54:25
Score: 8.5
Natty: 7.5
Report link

coming in 2025, i need the same thing, did you find a solution for that? Without using powershell?

Reasons:
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (3): did you find a solution
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Vic