79084504

Date: 2024-10-14 01:41:01
Score: 2.5
Natty:
Report link

postgres-11.16 에서 15.7로 업그레이드 하면서 동일 문제가 발생했는데, sink connector에 "converters": "numbertolong" 설정을 추가하고 sink connector를 restart 하니 잘 됩니다.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: 송대진

79084496

Date: 2024-10-14 01:32:59
Score: 0.5
Natty:
Report link

Encountered same issue. I think the file is empty because openssl gets stuck before requesting passphrase. I was able to workaround this by providing passphrase inline (e.g. 'abc' below):

openssl genrsa 2048 | openssl pkcs8 -topk8 -v2 des3 -inform PEM -passout pass\:abc -out rsa_key_enc.p8 
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Humble Hero

79084494

Date: 2024-10-14 01:28:58
Score: 2.5
Natty:
Report link

To add to @Mike Driscoll's answer,

topFrame = wx.GetTopLevelParent(window).

The function takes an argument, window (the object we want its top level parent).

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • User mentioned (1): @Mike
  • Low reputation (1):
Posted by: Bazzan

79084481

Date: 2024-10-14 01:12:55
Score: 1.5
Natty:
Report link

Try to add -fmodules compiler option:

    pod(
        name = "TensorFlowLiteObjC",
        version = "2.5.0",
        moduleName = "TFLTensorFlowLite"
        extraOpts = listOf("-compiler-option", "-fmodules")
    )

Read more: https://kotlinlang.org/docs/native-cocoapods-libraries.html#support-for-objective-c-headers-with-import-directives

Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tamás Fábián

79084473

Date: 2024-10-14 00:59:53
Score: 0.5
Natty:
Report link

This is a fundamental issue with the way 3D scenes are commonly rendered. Parts of the image that are further away from the focal center of the camera are increasingly distorted, stretched radially away from the center. This inherent distortion is fine with flat screens because the mathematical model used to create the image assumes that the scene is projected onto a flat plane.

When dealing with non-flat screens, you need to counteract this distortion with an opposite distortion: Barrel Distortion

Barrel distortion essentially expands the area near the center of the image OR shrinks the area at the edge of the image. Either way, it stretches the image in a radially symmetrical fashion, in the opposite way that perspective projections introduce distortion. You can read more about barrel distortion here: https://www.decarpentier.nl/lens-distortion

Barrel distortion can be implemented in one of two ways: Either as a post-processing shader or as a vertex shader applied to every mesh.

The vertex shader approach is expensive to compute and not used by anything I know of, so I can't help you with it. However, it would allow you to virtually extend the camera FOV to more than 180°, which could be interesting for you.

The post-processing shader approach is relatively cheap to compute, but will either introduce a black curved (or even circular) border around the screen. This is solved by scaling up the image, but causes the center of the image to be blurry. This last problem is fixed by rendering at a larger resolution.

Here is an implementation of barrel distortion for Godot: https://godotshaders.com/shader/2d-radial-distortion-fisheye-barrel/ This specific implementation only shrinks the image inwards, leaving a black circle around the edge of the screen. You probably want to scale the image up to remove that. The aforementioned blog post includes a lot of math and shader code, so you can always refer to that when making modifications to the shader.

A last thing to mention is that your setup in particular features a very wide screen, so it might be better to only apply the distortion along the Y-axis to reduce the performance impact, but I will leave that for you to experiment with.


Asides:

  1. The only game I can think of that allows you to play with barrel distortion is Teardown. People generally dislike it, and understandably so, considering most people are playing on flat screens and are used to the edge distortions anyway.

  2. When the Oculus Rift was being sold in 2014, every video and livestream showed both the left and right eye images. This was difficult to look at, but revealed an interesting detail: Each image is shrunk down with barrel distortion! The distortion was applied at about 50% strength, so the outer edge of the screen wasn't a circle.

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

79084470

Date: 2024-10-14 00:57:52
Score: 0.5
Natty:
Report link

The general formula is as follows, you can adjust to your needs:

=IF(ROW() - 1 <= COUNTA(A:A)-1, INDEX(A:A, ROW()), INDEX(B:B, ROW() - COUNTA(A:A)+1))

enter image description here

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

79084467

Date: 2024-10-14 00:56:52
Score: 1
Natty:
Report link

The easist way to create and delete Transfer Family is via IAC (Infra as Code).

As others suggested cloudformation is a way of IAC, I personally prefer terraform it somehow is easier to learn and does nor cover only aws. Comes with good example and community.

Let me share couple of examples to some similar needs and the oficial module.

  1. Cool guided tutorial
  2. Oficial module
  3. Github example

I have done what you wanted and can say it pretty much works for my use case =)

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

79084464

Date: 2024-10-14 00:55:52
Score: 3
Natty:
Report link

Try using findIndex method and splice instead.

or filter the array.

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

79084456

Date: 2024-10-14 00:49:50
Score: 1
Natty:
Report link

You can only specify dependencies on KMP libraries in commonMain.

If you'd like to develop KMP app with Material UI, then have a look on Compose Multiplatform by Jetbrains https://www.jetbrains.com/compose-multiplatform/

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Tamás Fábián

79084438

Date: 2024-10-14 00:37:48
Score: 0.5
Natty:
Report link

I forgot to update my crop image feature where i should also update it as longblob but It still remain as blob type. thus the issue of the sharp not saving and reading is because of the crop image feature of mine... anyways thank you

export const getCroppedImg = (imageSrc, croppedAreaPixels) => {
  return new Promise((resolve, reject) => {
    const image = new Image();
    image.src = imageSrc;

    image.onload = () => {
      const canvas = document.createElement('canvas');
      const ctx = canvas.getContext('2d');

      // Set canvas size
      canvas.width = croppedAreaPixels.width;
      canvas.height = croppedAreaPixels.height;

      ctx.drawImage(
        image,
        croppedAreaPixels.x,
        croppedAreaPixels.y,
        croppedAreaPixels.width,
        croppedAreaPixels.height,
        0,
        0,
        croppedAreaPixels.width,
        croppedAreaPixels.height,
      );

      // Convert to Blob and resolve
      canvas.toBlob((blob) => {
        if (!blob) {
          reject(new Error('Canvas is empty'));
          return;
        }

        const reader = new FileReader();
        reader.onload = () => {
          // Convert ArrayBuffer to a new Blob
          const arrayBuffer = reader.result;
          const longBlob = new Blob([arrayBuffer], { type: 'image/jpeg' });
          resolve(longBlob); // Resolve with the LONG BLOB
        };

        // Read the blob as an ArrayBuffer
        reader.readAsArrayBuffer(blob);
      }, 'image/jpeg');
    };

    image.onerror = () => {
      reject(new Error('Failed to load image'));
    };
  });
};
Reasons:
  • Blacklisted phrase (0.5): thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Kurt Bernstein Blancia

79084434

Date: 2024-10-14 00:35:47
Score: 0.5
Natty:
Report link

(Answering my own question...)

So it turns out that tweaking EventHandlerMap as follows resolves the TypeScript error:

type EventHandlerMap<E extends Event> = {
  // Previously: [Ev in E as Ev['type']]: (data: Ev['data']) => void
  [T in E['type']]: (data: Extract<E, { type: T }>['data']) => void
}

I suppose TypeScript can rationalise this in a way that more closely matches my intent, since it ~iterates over the Event['type']s rather than the Events themselves. This will behave differently in the case where multiple members of the Event union have the same type attribute (but different data attributes).

Playground

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

79084428

Date: 2024-10-14 00:29:45
Score: 1.5
Natty:
Report link

I actually set dividerThickness: double.infinity. I don't know how it worked; maybe an overflow.

(P.s: it's in portuguese, but you can still understand)

DataTable working with double.infinity

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Mateus Henrique

79084424

Date: 2024-10-14 00:24:45
Score: 0.5
Natty:
Report link

It looks like I just needed to include algorithm explicitly. I am not sure why this did not error when running g++11, but it is now working.

#include <iostream>
#include <algorithm>

using namespace std;
int main() {
  char shipLetters[] = { 'A', 'B', 'S', 'C', 'D' };
  char selection;
  cin >> selection;
  char *index = std::find(begin(shipLetters), end(shipLetters), selection);
  cout << index << endl;
  return 0;
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: slackwars

79084415

Date: 2024-10-14 00:10:42
Score: 1.5
Natty:
Report link

One thing to note is that you need to restart the kernel for tqdm from tqdm.notebook to work after installing ipywidgets.

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

79084411

Date: 2024-10-14 00:07:41
Score: 1.5
Natty:
Report link

I finally found the solution

class WebAppInterfaced(val webview: WebView) {
    @JavascriptInterface
    fun PageRedirect(newUri: String) {
        webview.post(Runnable {
            webview.loadUrl("file:///android_asset/$newUri")
        });
    }

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

79084409

Date: 2024-10-14 00:03:41
Score: 3
Natty:
Report link

flutter build apk --split-per-abi

Reasons:
  • Low length (2):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Anas Abd Elazim

79084366

Date: 2024-10-13 23:34:35
Score: 0.5
Natty:
Report link

Even though your question was already answered, my approach to be straightforward would be something like this:

>>> class Store:
...     @staticmethod # This method can’t access or modify the class state, so 'self' is not required.
...     def calc_cost(rate: float, qty: int) -> float:
...         return rate * qty
...                                                                                                                            ...
>>> def sum_stores(store1: Store, total: int) -> float: # total parameter is never used.
...     return store1.calc_cost(15,30)
...
>>> total = 0
>>> ice_cream_shop = Store()
>>> total += sum_stores(ice_cream_shop, total)
>>> total
450
>>> total += sum_stores(ice_cream_shop, total)
>>> total
900

However my recommendation at the moment to use classes would be different, you need to analyze that any state is going to be handled, so classes are good way to do this, but, this case may be simpler, we don't need a class to calculate the cost, just the alone function works pretty well and it's more readable.

>>> def calc_cost(rate: float, qty: int) -> float:
...     return rate * qty
...
>>> total = 0
>>> cost = calc_cost(15.0, 30)
>>> total += cost
>>> total
450.0

I highly recommend watch this video to avoid bad practises in OOP.

Reasons:
  • Blacklisted phrase (1): this video
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jkrox

79084357

Date: 2024-10-13 23:23:33
Score: 3.5
Natty:
Report link

com_google_firebase_crash .... change location and put in app\src\main\res\values you have two resource file call "values"enter image description here

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

79084355

Date: 2024-10-13 23:22:32
Score: 5
Natty: 5
Report link

Would it be possible to do the opposite? That is receive the email using aws ses with a .zip file as it's attachment and save it to an s3 bucket?

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

79084329

Date: 2024-10-13 23:01:27
Score: 8.5 🚩
Natty: 4
Report link

Did you find the answer? I am also looking for same question answer but haven’t find it yet.

Reasons:
  • Blacklisted phrase (2): I am also looking
  • RegEx Blacklisted phrase (3): Did you find the answer
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Did you find the answer
  • Low reputation (0.5):
Posted by: Ankit Singh

79084324

Date: 2024-10-13 22:57:26
Score: 3.5
Natty:
Report link

Try yarn eject. It work for me

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

79084321

Date: 2024-10-13 22:56:26
Score: 0.5
Natty:
Report link

The issue here is that Objective-C allows nullable pointers, and Swift has strict typing around optional and non-optional pointers.

Since floatChannelData is of type UnsafePointer<UnsafeMutablePointer>, you can map it to the correct type using this conversion:

if let floatChannelData = buffer.floatChannelData {
    // Convert the pointer to the expected form
    let data = UnsafePointer<UnsafeMutablePointer<Float>?>(floatChannelData)
    
    audioProcess(Int32(buffer.format.channelCount),
                 numSamples: Int32(buffer.frameLength),
                 stride: Int32(buffer.stride),
                 data: data)
}

different UnsafePointer for Swift and Objective-C/C++

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

79084319

Date: 2024-10-13 22:55:25
Score: 1
Natty:
Report link

So I fiddled with changing the styles.css by changing the gradient from html to body and it turns out I have to put the same settings to both body and html.

html{
    height:100%;
    width:100%;
    background-image: linear-gradient(rgb(60,43,91), rgb(153,39,77));
    background-repeat: no-repeat;
    background-size:100%;  
}
body{
    height:100%;
    background-image: linear-gradient(rgb(60,43,91), rgb(153,39,77));
}
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Thomas the Dank Engine

79084316

Date: 2024-10-13 22:53:24
Score: 12 🚩
Natty: 6.5
Report link

How do you resolve this? I'm having the same issue

Reasons:
  • Blacklisted phrase (1): How do you
  • RegEx Blacklisted phrase (1.5): resolve this?
  • RegEx Blacklisted phrase (2.5): do you resolve this
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I'm having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): How do you
  • Low reputation (1):
Posted by: Olu Bello

79084298

Date: 2024-10-13 22:35:20
Score: 2.5
Natty:
Report link

Select "execute script" and paste

location.reload(true);

enter image description here

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

79084297

Date: 2024-10-13 22:35:20
Score: 1
Natty:
Report link

getAdditionalUserInfo() is a function to be called with the result UserCredentials object.

firebase.auth().signInWithPopup(provider).then(async function (result) {
  const additionalUserInfos = await getAdditionalUserInfo(result);

  console.log(additionalUserInfos.isNewUser)
})
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Starts with a question (0.5): is a
  • Low reputation (0.5):
Posted by: user3550312

79084289

Date: 2024-10-13 22:29:19
Score: 2.5
Natty:
Report link

What I did was basically edit the 'install_venv.sh' script and remove the condition checking for MacOS version "11.0". My PC is using MacOS 14.0, but the script has a hardcoded instruction to check for "11.0", which is just weird. The installation proceeded perfectly thereafter.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Starts with a question (0.5): What I
  • Low reputation (1):
Posted by: sdatta97

79084288

Date: 2024-10-13 22:29:19
Score: 3
Natty:
Report link

'but it does not solve of the problem of clickjacking.'

I am sorry I don't understand why Intersection Observer V2 doesn't solve the problem of clickjacking.

'So is there a way to detecting if there an element or iframe overlaid on top of my iframe from within my iframe?'

Isn't Intersection Observer V2 supposed to give you that if you don't specify the root element in the Observer options? It is supposed to default to the top-level browsing context’s document node if set as null.

Reasons:
  • Blacklisted phrase (1): is there a way
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Sunil Agrawal

79084232

Date: 2024-10-13 21:53:11
Score: 2.5
Natty:
Report link

I have not solved the issue but the main issue is the type built into the middleware request handler the first error Params is not supported as a request handler so I was thinking of extending the type so it can support it, but once I get it done, would edit this post

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

79084217

Date: 2024-10-13 21:46:10
Score: 3.5
Natty:
Report link

You must change the ControlIdType property from "Office" to "Custom" in the Tab Properties. This will remove the 'Menu Commands' when running in "debug" or "release" mode in VS 2022.

Microsoft.Office.Tools.Ribbon.RibbonTab Properties

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

79084216

Date: 2024-10-13 21:45:09
Score: 3
Natty:
Report link

I got this error after a Windows update because I was using an outdated version of Visual Studio 2022. Updating Visual Studio fixed this for me.

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

79084212

Date: 2024-10-13 21:41:08
Score: 4.5
Natty:
Report link

just pip install win32security

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

79084204

Date: 2024-10-13 21:39:08
Score: 3.5
Natty:
Report link

Never mind, saw the solution there

just using documentId instead of id

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Basem Sleem

79084165

Date: 2024-10-13 21:22:04
Score: 2
Natty:
Report link

i find this solve

// Method to get the current UTC timestamp with millisecond precision public static String getCurrentUTCTimestamp() { return java.time.format.DateTimeFormatter.ofPattern("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'") .withZone(java.time.ZoneOffset.UTC) .format(java.time.Instant.now().truncatedTo(java.time.temporal.ChronoUnit.MILLIS));

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

79084159

Date: 2024-10-13 21:20:03
Score: 3.5
Natty:
Report link

Install the latest Microsoft Visual C++ Redistributable Version.

https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170#latest-microsoft-visual-c-redistributable-version

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

79084155

Date: 2024-10-13 21:18:03
Score: 1
Natty:
Report link

No, websocat currently does not correctly perform the close handshake. It does not reply to a close frame it receives. I opened an issue for that: https://github.com/vi/websocat/issues/269

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

79084126

Date: 2024-10-13 20:58:59
Score: 0.5
Natty:
Report link

For the benefit of others that might come across this question searching for why their ECS task/service might be stuck on PROVISIONING with CloudFormation on CREATE_IN_PROGRESS:

Make sure you haven't re-used a launch template from a different ECS cluster. As the other answers point out: there is a bash script in the Advanced section at the bottom of the template creation page that contains information specific to one cluster. You can re-use it, but you must change the cluster name. You will know if you have it set up correctly if the instance appears in the Infrastructure tab in the cluster on ECS.

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

79084118

Date: 2024-10-13 20:53:58
Score: 2.5
Natty:
Report link

You're looking for [textView unmarkText].

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

79084116

Date: 2024-10-13 20:52:58
Score: 2
Natty:
Report link

I found the answer myself, or should I say, an answer. The answer is: add the iframe via javascript after the page loads (or near the end).

Reference: Javascript: add iframe element after page has loaded - thank you Stackoverflow community.

Specifically, instead of

<iframe src=somepage.html>

I use

const iframe = document.createElement("iframe");
iframe.id = "framex";
document.getElementById("whereIwantIt").appendChild(iframe);

That prevents Firefox from preloading the html of the iframe until I ask it to, later, by giving it the source file.

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): Stackoverflow
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: T G

79084114

Date: 2024-10-13 20:50:57
Score: 1.5
Natty:
Report link

It looks like there is a misconfiguration in your Go code. The port says "53" while you should be targeting "5432". Try changing that.

Also, make sure you use the correct service domain name. Try kubectl port-forward -n <NAMESPACE> svc/authentication-headless-service 8080:5432 and see if it works.

Also, make sure the Postgres instances are healthy.

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

79084109

Date: 2024-10-13 20:46:56
Score: 5
Natty: 6.5
Report link

You may check this out https://github.com/marketplace/actions/rerun-checks

this plugin will rerun the check by its name

Reasons:
  • Blacklisted phrase (1): this plugin
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Ahlam Al-Hmeadat

79084081

Date: 2024-10-13 20:26:51
Score: 3.5
Natty:
Report link

Try ServerlesV2 configuration, it is low cost as well.

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

79084075

Date: 2024-10-13 20:24:51
Score: 3
Natty:
Report link

It can be, because u have some data in Table, which (size =< 15). So for start write the check and after add some data.

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

79084073

Date: 2024-10-13 20:23:50
Score: 0.5
Natty:
Report link

Thank you @Merzley , I need a low latency interface (to trigger audio websocket push). This is my config in config/horizon.php look at the sleep value :

'defaults' => [
    'supervisor-1' => [
        'connection' => 'redis',
        'queue' => ['default'],
        'balance' => 'auto',
        'autoScalingStrategy' => 'time',
        'maxProcesses' => 10,
        'maxTime' => 0,
        'maxJobs' => 0,
        'memory' => 1024,
        'tries' => 1,
        'timeout' => 1800,
        'nice' => 0,
        'sleep'=>.1
    ],
]

This reduce latency from 3s to 100ms ! I didnt reported a lot more CPU usage on a small intel N100 processor (6W watt CPU), still very low (laravel app + redis + horizon + pulse + custom laravel react/ratchet program, only few percent between 1 and 4%.

These are my tests with different sleep value on horizon : Tried with sleep 0 = high cpu usage on redis server, a full core load 100% ( / 400%). With .001 about 34% of one core With .01 it's 10% With .1 it's 1.3 - 2% (with all service stop redis still at 1.3% CPU load).

3s sleep default is too high for me, but 100ms is perfect, without any perceptible CPU usage increase and nearly instant reactivity.

Hardware is : N100 16GB DDR4 single channel, nvme 500Go (Beelink S12 pro). OS : Ubuntu server 24.04 LTS.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (0.5): I need
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Merzley
Posted by: neoteknic

79084067

Date: 2024-10-13 20:18:49
Score: 1
Natty:
Report link

I often run into this when deploying from the VSC code tools. There isn't a lot of information given back on the issue.

9 times out of 10, restarting the function app in the portal fixes the issue.

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

79084065

Date: 2024-10-13 20:17:49
Score: 1
Natty:
Report link

Or can I click just name which is "MIKE CHASE (12345086)"? I code this:

const link1 = await page.evaluateHandle(
      text => [...document.querySelectorAll('span')].find(span => span.innerText ===  'MIKE CHASE (12345086)')
);
          await link1.click();

It seems ok, its clicked, but another name gonna error, for example '___MIKE CHASE (12345086)' and error message is:

          await link1.click();
                      ^

TypeError: link1.click is not a function

How I can through this error? Because I wanna pass through it if the name is match.

Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Yuki Matuzaki

79084058

Date: 2024-10-13 20:13:48
Score: 1
Natty:
Report link

From polars documentation:

Rechunking

Before a concatenation we have two dataframes df1 and df2. Each column in df1 and df2 is in one or more chunks in memory. By default, during concatenation the chunks in each column are not made contiguous. This makes the concat operation faster and consume less memory but it may slow down future operations that would benefit from having the data be in contiguous memory. The process of copying the fragmented chunks into a single new chunk is known as rechunking. Rechunking is an expensive operation. Prior to version 0.20.26, the default was to perform a rechunk but in new versions, the default is not to. If you do want Polars to rechunk the concatenated DataFrame you specify rechunk = True when doing the concatenation.

You need set recunk parameter to True in in the expression where you use concat, for example: some_df = pl.concat([df1, df2], rechunk=True)

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

79084049

Date: 2024-10-13 20:09:47
Score: 0.5
Natty:
Report link

I've tried this and get_job only returns the job if it was just added during the same 'flask run' process. In other words, if the job exists in the SQLite job store and was not recently added, get_job('start1') does not return any job -- it doesn't find it. Even though I can clearly see it in the list of jobs when opening the SQLite db file with a SQLite DB viewer.

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

79084039

Date: 2024-10-13 20:02:45
Score: 2
Natty:
Report link

I am using media queries and there are two resolutions for phones i am focusing

(smartphone 412 * 915 ) (smartphone 385 * 854 ) but the issue i am facing is that both are overlapping whats the issue?

@media only screen and (min-width: 412px) and (max-width: 915px) { /* smartphone (2) --- (smartphone 412 * 915 ) --- ---- (actual 412 * 915 ) --- */

body { background-color: rgb(234, 149, 149); /* portrait color */ }

@media only screen and (orientation: landscape) { /* Styles specifically for landscape orientation */

body { background-color: #F4F4F4 !important; /* landscape color */ } }

}

@media only screen and (min-width: 384px) and (max-width: 854px) { /* smartphone (1) --- (smartphone 385 * 854 ) --- ---- (actual 385 * 854 ) --- */

body.index-page.is-smartphone { background-color: #a3d093; /* portrait color */ }

@media only screen and (orientation: landscape) { /* Styles specifically for landscape orientation */

body { background-color: purple !important; /* landscape color */ }

}

}

I expected to apply distinct styles for each resolution without any overlap. However, I am facing an issue where both resolutions are overlapping in their styles, causing conflicts.

Reasons:
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @media
  • User mentioned (0): @media
  • User mentioned (0): @media
  • User mentioned (0): @media
  • Low reputation (1):
Posted by: Ali Abdul Rehman

79084015

Date: 2024-10-13 19:51:43
Score: 1.5
Natty:
Report link

A solution using two separate tables, AllDiagList and PtDiag:

Table definitions

Then in table PtDiag, enter in the first cells

=LET(pt_diags, TRIM(TEXTSPLIT([@[PATIENT''S DIAGNOSIS(ES)]], ";")),
IF(SUM(ISNUMBER(XMATCH(AllDiagList[Diag], pt_diags)) * (AllDiagList[CARDIO] = "Y")), "Y", "N"))
=LET(pt_diags, TRIM(TEXTSPLIT([@[PATIENT''S DIAGNOSIS(ES)]], ";")),
IF(SUM(ISNUMBER(XMATCH(AllDiagList[Diag], pt_diags)) * (AllDiagList[RESP] = "Y")), "Y", "N"))

Tables and result

Please let me know if you need further explanation of the steps.

Reasons:
  • RegEx Blacklisted phrase (2.5): Please let me know
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: nkalvi

79084004

Date: 2024-10-13 19:44:41
Score: 1.5
Natty:
Report link

<a href="javascript:;" style="color:red;" onclick="window.open('http://www.la.unm.edu',null,'left=50,top=50,width=700,height=500,toolbar=1,location=0,resizable=1,scrollbars=1'); return false;">Limk</a>

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

79084001

Date: 2024-10-13 19:43:40
Score: 6 🚩
Natty: 6
Report link

I'm currently having same issue, how can I sole it

If u need me to provide my code let me know. Thanks

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): how can I
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): having same issue
  • Low reputation (1):
Posted by: Michael

79083974

Date: 2024-10-13 19:29:36
Score: 4.5
Natty: 6
Report link

Go look at my question and answer at How do you open multiple new tabs with target=_blank and have each in a seperate tab?

should give you some idea as to what is happening.

Reasons:
  • Blacklisted phrase (1): How do you
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: SimonT

79083963

Date: 2024-10-13 19:23:35
Score: 2
Natty:
Report link

If you specify a unique target value,like 1blank, for each target each link will open in a new tab and the tabs won't be reused by other links.

It may be ugly and nonstandard, but it serves my purpose.

I don't see any errors in the console after trying this. I'm guessing this is taking the name I use in the target=, looks for a tab with that name, if found the tab is reused.

If not found, a new tab is created.

I am using the href value as the target value and everything seems to be working as I want it to.

Perhaps the using of a unique target which equates to a window name is an undocumented matter.

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: SimonT

79083955

Date: 2024-10-13 19:20:34
Score: 2
Natty:
Report link

I have found a workaround: use relative paths to a folder with the desired images, then your exe will search for that folder relative to itself. I suggest using: path="./Folder/image.jpg" and you just put a folder with your images next to your exe.

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

79083948

Date: 2024-10-13 19:16:33
Score: 0.5
Natty:
Report link

I found a temp workaround:

You can make a plugin that rewrites the permalinks using this code:

<?php
/*
Plugin Name: Custom Post Type Permalink Modifier
Description: Removes the base slug from custom post type permalinks
Version: 1.0
Author: Your Name
*/

function remove_cpt_base($post_link, $post) {
    if ('custompage' === $post->post_type && 'publish' === $post->post_status) {
        $post_link = str_replace('/this-string-gets-removed/', '/', $post_link);
    }
    return $post_link;
}
add_filter('post_type_link', 'remove_cpt_base', 10, 2);

// Flush rewrite rules on plugin activation
function cpt_permalink_modifier_activate() {
    flush_rewrite_rules();
}
register_activation_hook(__FILE__, 'cpt_permalink_modifier_activate');

// Flush rewrite rules on plugin deactivation
function cpt_permalink_modifier_deactivate() {
    flush_rewrite_rules();
}
register_deactivation_hook(__FILE__, 'cpt_permalink_modifier_deactivate');

// Add custom rewrite rule
function custom_rewrite_rules() {
    add_rewrite_rule(
        '^([^/]+)/?$',
        'index.php?post_type=custompage&name=$matches[1]',
        'top'
    );
}
add_action('init', 'custom_rewrite_rules', 10, 0);

Change the ACF post type's Permalink Rewrite to "Custom Permalink". Enter a slug here that will later be removed. You can find this setting at:

ACF > Post Types > Edit Post Type > Advanced Configuration > Advanced Settings > Urls

In the above code, replace:

  1. 'custompage' with the ACF "Post Type Key" from ACF Edit Post Type
  2. '/this-string-gets-removed/' with the slug you entered

This plugin code does not remove the original slug. So there will be two URLs to the same page.

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

79083942

Date: 2024-10-13 19:14:32
Score: 2.5
Natty:
Report link

It looks like your dependency has an typo. "kotlin.sourceSets.ommonMain.dependencies" of build.gradle

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

79083940

Date: 2024-10-13 19:14:32
Score: 2
Natty:
Report link

What you used looks like the package ComplexHeatmap (from the error message)? From my knowledge, ComplexHeamtap can automatically merge the heamtap dendrograms when you split by a group variable. Details see: https://jokergoo.github.io/ComplexHeatmap-reference/book/a-single-heatmap.html#split-by-categorical-variables.

You don't have to merge the dendrogram by yourself.

The problem is something wrong in your matrix (maybe too many missing values), some issues similar with you has been asked in github:

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What you use
  • Low reputation (0.5):
Posted by: Yun

79083934

Date: 2024-10-13 19:10:32
Score: 1.5
Natty:
Report link

The reason it is happening is because services continue running even if user press back, home or recent. service onDestroy() will be called when service is stopped by code internally by calling stopSelf() or stopService().

so, you can override lifeCycle onPause()/onStop()/onResume() methods for your activity where you start your service to call stopSelf()/stopServcie().

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

79083924

Date: 2024-10-13 19:06:30
Score: 2.5
Natty:
Report link

I have the same request, tried various compiler directives but they can't operate on Blazor @attribute. The only way I was able to avoid authorization was to comment out the:

@* @attribute [Authorize(Policy = aClaim)] *@

Which means I have to make sure I remember to uncomment before I push to Git repo and/or test/production environments. Definitely NOT ideal.

Another approach is to change the AD settings in appSettings.json and point to different path and I would still need to build user claims locally.

Reasons:
  • Blacklisted phrase (1): to comment
  • Long answer (-0.5):
  • No code block (0.5):
  • User mentioned (1): @attribute
  • User mentioned (0): @attribute
  • Low reputation (0.5):
Posted by: Rob Ainscough

79083921

Date: 2024-10-13 19:05:30
Score: 0.5
Natty:
Report link

I found the problem: i was previously using a CustomAuthenticationStateProvider and i forgot to remove it from the application builder:

builder.Services.AddScoped<AuthenticationStateProvider, CustomAuthenticationStateProvider>();

This is overwriting, as inteded i guess, any other state coming from a different authentication flow.

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

79083918

Date: 2024-10-13 19:02:29
Score: 1
Natty:
Report link

I encountered the same issue, and the solution for me was to do the same as the poster's comment, but I thought I would add a more detailed explanation.

Find where the Visual Studio installer is located in your program files. For me, this was in C:\Program Files (x86)\Microsoft Visual Studio.

Within that directory, rename or delete the folder called "Installer" then rerun whichever Visual Studio setup application you need from here: https://visualstudio.microsoft.com/downloads/

This got rid of the error for me and allowed me to properly install VS.

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

79083909

Date: 2024-10-13 18:55:27
Score: 5
Natty:
Report link

@marcinj Can you answer as an unit-test?

I dont recommend unit testing thread correction of your code, how do you know how long such test would have to last? 2s, 10minutes or 10h? Maybe it would fail after a 12h of testing. Currently it fails after few seconds in multithreaded environment, but there are other subtle errors.

The truth is if you would code it to the moment it starts working correctly, you would probably end up with implementation similar to the one from the java.util.concurrent.Executors, so why dont you just reuse what is well tested and official.

As for testing, I suggest checking other things, like if the exception reporting in your class works as intended (errorHandler). Maybe if some scheduled work finishes before executeUntilDeplated.

Below is my try to rewrite your code with Executors thread pool:

package org.example;

import java.util.concurrent.*;
import java.util.function.Consumer;
import java.util.logging.Level;
import java.util.logging.Logger;

public class DepleatingFiFoThreadPool<A> {

public static final Logger LOG = Logger.getLogger(DepleatingFiFoThreadPool.class.getCanonicalName());

private final ExecutorService executor;
private final Consumer<Throwable> errorHandler;
private final String prefix;
private final Consumer<A> invoker;

public DepleatingFiFoThreadPool(final int threadsRunningMax, final Consumer<Throwable> errorHandler,
                            final String prefix, final Consumer<A> invoker) {
    this.errorHandler = errorHandler;
    this.prefix = prefix;
    this.invoker = invoker;
    this.executor = Executors.newFixedThreadPool(threadsRunningMax, new ThreadFactory() {
        private int count = 0;

        @Override
        public Thread newThread(Runnable r) {
            Thread t = new Thread(r, prefix + "-Thread-" + (++count));
            t.setUncaughtExceptionHandler((thread, e) -> {
                try {
                    errorHandler.accept(e);
                } catch (Throwable ta) {
                    ta.addSuppressed(e);
                    LOG.log(Level.SEVERE, ta.getMessage(), ta);
                }
            });
            return t;
        }
    });
}

public void addAndStartThread(final A notRunningThread, final String threadPostfix) {
    executor.submit(() -> {
        Thread.currentThread().setName(prefix + "-Thread-" + threadPostfix); // Set thread name per task
        try {
            invoker.accept(notRunningThread);
        } catch (Throwable e) {
            // note: this blocks any exceptions to be passed to errorHandler, is this intentional?
            LOG.log(Level.SEVERE, "Task execution error", e);
        }
    });
}

public boolean executeUntilDeplated(long timeoutMs) throws InterruptedException {
    executor.shutdown();
    return executor.awaitTermination(timeoutMs, TimeUnit.MILLISECONDS);
}

}

Reasons:
  • Blacklisted phrase (1): how do you
  • RegEx Blacklisted phrase (2.5): Can you answer
  • RegEx Blacklisted phrase (2.5): do you know how
  • Contains signature (1):
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @marcinj
  • High reputation (-2):
Posted by: marcinj

79083906

Date: 2024-10-13 18:55:27
Score: 1
Natty:
Report link

In very simple terms, you can see one transformer block as one layer of a (vanilla) neural network.

One attention head represents one neuron, one transformer block with multiple attention head represents one layer with multiple neurons.

If you see it this way, this question is same as: Why do we need a neural network with 5 hidden layers each having 10 neurons while we can create a neural network with a single hidden layer with 50 neurons ?

The early layers see lower level patterns while the deeper layers see more abstract and high-level patterns and hence stacking of layer is needed.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (0.5):
Posted by: Bhavesh Achhada

79083887

Date: 2024-10-13 18:41:24
Score: 0.5
Natty:
Report link

Add entity (or any other name) index to all the node types using the below Cypher query:

CREATE FULLTEXT INDEX entity FOR (e:award | birthPlace | characteristics | date | degree | Document | institution | invention | nationality | person | relation | role) ON EACH [e.id]

You can check using the below command:

SHOW INDEXES
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aylin Naebzadeh

79083873

Date: 2024-10-13 18:35:23
Score: 3
Natty:
Report link

For the future, QT GUI Sink, this is how it looks like:

enter image description here

You can also use QT GUI Frequency Sync

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

79083872

Date: 2024-10-13 18:34:22
Score: 2.5
Natty:
Report link

For Oracle on Windows: (credit goes to Chris Saxon...)

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

79083870

Date: 2024-10-13 18:34:22
Score: 3
Natty:
Report link

Found a solution via the "lubricate" package from tidyverse:

co2_clean$Datetime = dmy_hms(co2_clean$Datetime)
    
co2_clean$hours = as.numeric(difftime(co2_clean$Datetime, co2_clean$Datetime[1], units = "hours"))

Still dont know what the problem is on my first approach, so if anyone could enlighten me on that I`d be very grateful!

Reasons:
  • RegEx Blacklisted phrase (2): be very grateful
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: lz_umt

79083866

Date: 2024-10-13 18:31:21
Score: 1
Natty:
Report link

Here's another version! It's even shorter. Instead of using addEventListener, we can simply assign a function to canvas.elt.oncontextmenu to disable the right-click menu directly.

function setup() {
    const canvas = createCanvas(windowWidth, windowHeight);
    canvas.elt.oncontextmenu = () => false; 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Elric Schirmer

79083862

Date: 2024-10-13 18:29:20
Score: 10 🚩
Natty: 6
Report link

were you able to find a solution? having the same issue with multiple websites when running my script in EC2.

Reasons:
  • RegEx Blacklisted phrase (1): were you able to find a solution
  • RegEx Blacklisted phrase (3): were you able
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): having the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: yon lo

79083856

Date: 2024-10-13 18:27:19
Score: 1
Natty:
Report link

Just check which Python interpreter is active using either which python or type python commands. Enter the path output by either of the two commands in Shebang and the script should run.

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

79083839

Date: 2024-10-13 18:18:16
Score: 3
Natty:
Report link

I renamed the database file and this fixed the issue. As mentioned in the post below there must be some kind of caching in play that means if you update an asset file it doesn't necessarily update what's being used in Expo Go.

Thanks to this post for helping me solve this: React Native - Expo SQLite returns mixed up values for columns

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: gmatthews88

79083829

Date: 2024-10-13 18:14:15
Score: 0.5
Natty:
Report link

You can simply use the conda.bat file to activate the conda manually.

<path_to_conda.bat_file> activate

The base environment should be activated.

path_to_conda.bat : <conda installed>\condabin\conda.bat

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

79083828

Date: 2024-10-13 18:14:15
Score: 4
Natty:
Report link

I found this which might help, still searching for a clear answer though: https://www.awesomeacf.com/extension/permalinks/

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

79083823

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

What is the purpose of importing PMML decision tree models into R? Making predictions, visualization, something else?

For prediction, you may check out the JPMML-Evaluator-R package.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): What is the
  • High reputation (-1):
Posted by: user1808924

79083819

Date: 2024-10-13 18:10:13
Score: 1
Natty:
Report link

Check you have imported the capturer library in the html file before you reference test.js.

i.e.

<script src="CCapture.all.min.js"></script>
<script language="javascript" type="text/javascript" src="test.js"></script>

Must be in this order.

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

79083809

Date: 2024-10-13 18:04:12
Score: 3
Natty:
Report link

damn, I was looking right for cumcount two days ago :o)

thanks guys

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Low length (1.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: David Hajes

79083801

Date: 2024-10-13 17:59:11
Score: 4
Natty: 4.5
Report link

I've been working independently on a solution for this problem and now have a working proof-of-concept using real data to demonstrate it. I did a search to see if anyone else was addressing this challenge, and came up with this rather old thread.

Happy to share my link, algorithms etc if there is still any interest?

Reasons:
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Chris

79083800

Date: 2024-10-13 17:59:11
Score: 2
Natty:
Report link

The WillPopScope widget can be used with the approach from above in order to properly handle the back button in Flutter application in the case nested navigators are provided. It controls what should happen when you press the back button. As the onInvoked method is deprecated nowadays, the WillPopScope is the correct approach to reach this. So, you need to wrap these nested navigators with the WillPopScope and handle the back navigation behavior manually.

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

79083796

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

So, the issue was that in kernel_main, it returns right after setting up the IDT, and then we end up back in main64.asm in long_mode_start, where it hits a hlt instruction. The problem is that hlt halts the CPU until the next interrupt occurs, like a timer. But when the first interrupt happens, there’s no code to run after the hlt. I should have done something like .hltloop: hlt jmp .hltloop so that the hlt would run in an infinite loop. Otherwise, the CPU could try to execute whatever comes after hlt, and that would lead to unpredictable behavior.

Here is the fixed part.

section .text
bits 64
long_mode_start:
    ; load null into all data segment registers
    mov ax, 0
    mov ss, ax
    mov ds, ax
    mov es, ax
    mov fs, ax
    mov gs, ax

    call kernel_main

.hltloop:
    hlt
    jmp .hltloop
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: AlexTheNewDev

79083779

Date: 2024-10-13 17:49:08
Score: 0.5
Natty:
Report link

Microsoft.AspNetCore.Identity 2.2.0 is deprecated, true. You need to install Microsoft.AspNetCore.Identity.EntityFrameworkCore instead. Namespace stays the same

using Microsoft.AspNetCore.Identity;
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • High reputation (-1):
Posted by: Yehor Androsov

79083765

Date: 2024-10-13 17:38:06
Score: 0.5
Natty:
Report link

I had the same issue and spent hours trying to figure it out. Then I read on github that it was due to missing permission. The error code generated is confusing but if you check the logs you'll see that some permission were missing.

https://github.com/aws/aws-iot-device-sdk-python-v2/discussions/329

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

79083764

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

Use @JsonManagedReference and @JsonBackReference:

For example, in your User and IDCard classes:

@OneToOne(mappedBy = "user", cascade = CascadeType.ALL, orphanRemoval = true)
    @JsonManagedReference
    private IDCard idCard;

 @OneToOne
    @JoinColumn(name = "user_id")
    @JsonBackReference
    private User user;

Or use @JsonIgnore in IDCard class:

@OneToOne
@JoinColumn(name = "user_id")
@JsonIgnore
private User user;
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @JsonManagedReference
  • User mentioned (0): @JsonBackReference
  • User mentioned (0): @JsonManagedReference
  • User mentioned (0): @JsonBackReference
  • User mentioned (0): @JsonIgnore
  • Low reputation (1):
Posted by: Yahya Ibrahim

79083756

Date: 2024-10-13 17:35:04
Score: 6.5 🚩
Natty: 6.5
Report link

I am using @okta/okta-react. I am using the signIn method. Yes, the response has factors with enroll methods. But if you enroll in one factor, further responses no longer include the other factors. How do you use okta-react to enroll in more than one factor at a time?

Reasons:
  • Blacklisted phrase (1): How do you
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: wingedearth

79083736

Date: 2024-10-13 17:27:02
Score: 1.5
Natty:
Report link

The storage event is still useful for sessionStorage within the same tab for some uses. For example:

If a webpage has more than one iframe in the same tab and has the same sessionStorage, if one iframe may change the value of the sessionStorage, other iframes in the same tab can be notified to do something.

In other words, a storage event for sessionStorage is there when multiples of the same document would share the same sessionStorage for one tab and not for cross-tab communication.

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

79083734

Date: 2024-10-13 17:27:02
Score: 3
Natty:
Report link

I've been facing the same problem. When I run gcc --version, the system is not able to find the executable file. But it worked for me when I added this path : C:\msys64\ucrt64\bin to the environment variables.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): facing the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Santiago

79083729

Date: 2024-10-13 17:26:02
Score: 0.5
Natty:
Report link

To keep crisp pixels (like in typical "pixel art" aesthetics) during magnification or subpixel movement, you can use antialiased point sampling, implemented manually in the shader. Here are some examples:

https://www.shadertoy.com/view/ltBGWc

short intro gist: https://gist.github.com/d7samurai/9f17966ba6130a75d1bfb0f1894ed377

in context, complete sprite renderer: https://gist.github.com/d7samurai/e51adec8a440126d028b87406556079b

enter image description here

enter image description here

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

79083726

Date: 2024-10-13 17:26:02
Score: 0.5
Natty:
Report link

Using @marks answer with Java Virtual Threads to make it really non-blocking:

private val vtDispatcher = Executors.newVirtualThreadPerTaskExecutor().asCoroutineDispatcher()

suspend fun getAllItems() = withContext(vtDispatcher) {
    itemQueries.selectAll().mapToList()
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: frevib

79083714

Date: 2024-10-13 17:21:00
Score: 3.5
Natty:
Report link

i found that answer is using software instead: enter image description here

But it take too long to render and i don't know how to run avd with hardware graphic. It take me several day to find the answer T.T

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

79083707

Date: 2024-10-13 17:19:00
Score: 3.5
Natty:
Report link

The issue was already closed. It was in the end inside the code not with trimming optimization. I found it and fix it.

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

79083705

Date: 2024-10-13 17:19:00
Score: 3.5
Natty:
Report link

I was struggling for two hours, all seemed fine, chat gpt was clueless too. gemini too. Thanks for saving my night. All it took was a broadcastIntent.setPackage("com.......")

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Anisur Rahman

79083701

Date: 2024-10-13 17:17:59
Score: 4
Natty:
Report link

how to run a excel data name weight height age in csv file run into R

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

79083699

Date: 2024-10-13 17:16:59
Score: 1.5
Natty:
Report link

I don't not if this might help, I'm currently learning android studio, language in use is java. If there is a view on the xml file you just drop the element you wish to place, e.g text, button e.t.c, after which you place your mouse on the borders of the element and move an arrow line toward the edge of the window(phone) for both sides and it will usually be centered. It doesn't have to be the edge it could also be an element.

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

79083692

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

As of 15th of July 2024 there is now official ktor support for WASM.

Three days ago [9th of October 2024] in its 3.0.0 release, it became stable.

Reasons:
  • Low length (1):
  • No code block (0.5):
Posted by: Samuel Marks

79083689

Date: 2024-10-13 17:10:58
Score: 3.5
Natty:
Report link

It seems like its only an issue in the Xcode simulator, when i make a .ipa build everything seems to work fine

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

79083680

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

There is a manual way: Shift + F5.

At least there is no code. It works directly in the browser. Less code, less bugs.

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

79083674

Date: 2024-10-13 17:01:55
Score: 6.5 🚩
Natty: 6.5
Report link

I have similar requirement. If I have null dated record along with other dated records for same empl id, I need to pick only null dated record.

If there are say two records with date and no null dated records for same empl id then I need to fetch max date.

How can I achieve this?

Reasons:
  • Blacklisted phrase (0.5): How can I
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1): I have similar
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user27779748

79083669

Date: 2024-10-13 16:58:53
Score: 1
Natty:
Report link

For anyone happening upon this thread, Solution File serializers have been made open-source: https://github.com/microsoft/vs-solutionpersistence

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Peter Ritchie

79083668

Date: 2024-10-13 16:58:53
Score: 1.5
Natty:
Report link

We can also use List collection to store boolean data:-

List<boolean>result=new List<>();
result.add(condition);
return result;
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Harsh Yadav

79083662

Date: 2024-10-13 16:57:53
Score: 1
Natty:
Report link

No trigger is activated when a filter is changed. One option is to use a sidebar to hold client-side JavaScript and google.script.run to poll the spreadsheet status, in this case, if the filter has changed.

Related

Reasons:
  • Blacklisted phrase (1): How do I
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • High reputation (-2):
Posted by: Wicket