79677843

Date: 2025-06-24 15:36:57
Score: 3
Natty:
Report link

Issue fixed after created a simple file (index.html, for example). The import doesn't work with empty repository.

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

79677841

Date: 2025-06-24 15:35:56
Score: 1
Natty:
Report link

For some reason, no errors are generated when using wild cards in the path of Copy-Item (as @mklement0 states in the comments). Using the Filter param instead should bypass this behavior.

Copy-Item "$UpdateSourceFolder\" -Filter * "$UpdateDestinationFolder" `
  -Recurse -ErrorAction Stop

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @mklement0
Posted by: Dennis

79677837

Date: 2025-06-24 15:33:56
Score: 3
Natty:
Report link

If still needed, I have written this script to produce a new Hyperv VM from existing one (which acts as a template): https://github.com/ageoftech/hyperv-vm-builder

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

79677834

Date: 2025-06-24 15:29:55
Score: 2.5
Natty:
Report link

Polars is actually perfect for this because its similar to pandas and it allows you to do lazy evaluation of your data/queries , and if i remember correctly they have GPU support in beta currently .

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

79677832

Date: 2025-06-24 15:29:55
Score: 0.5
Natty:
Report link

Multicriteria objectives are for linear and integer problems only.

If you have several criteria and at least one that is quadratic:

(Of course, in your example, there is a single criterion, so no need to use a multicriteria objective, just remove "staticLex")

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

79677830

Date: 2025-06-24 15:28:54
Score: 1.5
Natty:
Report link

Just compare it with a not existing variable ({NULL}) to compare it with null:

<f:if condition="{user.usergroup} != {NULL}">

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

79677820

Date: 2025-06-24 15:18:52
Score: 3.5
Natty:
Report link

As far as I can tell, this just doesn't work. I've switched to using yet another cloudwatch exporter, which succeeds at this.

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

79677818

Date: 2025-06-24 15:17:51
Score: 3
Natty:
Report link

The best case for you is the last option, a custom "x-axis", but to resolve the size of the column go to 'Customize' find 'Stacked Style' and change it to 'Stack'

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

79677800

Date: 2025-06-24 15:03:49
Score: 0.5
Natty:
Report link

Thank you good answer but i can't find how to recolor text from sender and receiver to different colors. I see props for bg but not for text.

      markdown: {
        text: {
          color: theme.newTheme.textIcon_Inverse,
          fontSize: 18,
          fontWeight: 400,
          lineHeight: 20,
        }
      },
      receiverMessageBackgroundColor: theme.newTheme.backgroundInverse,
      senderMessageBackgroundColor: theme.newTheme.backgroundTertiary,

but i try messageUser and it's not working

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: bigNY

79677797

Date: 2025-06-24 14:59:47
Score: 4
Natty: 5
Report link

What of those using expo image picker which is the same as android photo picker, am still stuck in this issue for offer two weeks now and is really really frustrating

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What of those
  • Low reputation (1):
Posted by: Kingsley

79677793

Date: 2025-06-24 14:57:47
Score: 3
Natty:
Report link

Check if you have the correct java version set globally or not . It might be due to the java version being different in the place you are running the mvn commands.

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

79677791

Date: 2025-06-24 14:56:46
Score: 1.5
Natty:
Report link

I think it is because you are not remembering the refresh state.

At the top of the function MyScreen add the value

val state = rememberPullToRefreshState()

Now when you pull to refresh it should be aware of the state

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

79677790

Date: 2025-06-24 14:55:46
Score: 1
Natty:
Report link

First of all, you do not need 2 script for 2 different scenarios.

You've mentioned that you've used C++ and Java but the errors were simple and easy to solve.

You've used wrongly myAge variable and did not use the same in 2 different if condition.

I would suggest please use codepen and work on different javascript tutorials.

Thank you.

var yourName = prompt("What is your name?");
var myAge = prompt("What is your age");

if (yourName != null) {
  document.getElementById("sayHello").innerHTML = "Hello " + yourName;
} else {
  alert("Please enter your name correctly");
}


if (myAge < 4) {
  document.write("You should be in preschool");
  }
  else if (myAge > 4 && myAge < 18) {
    document.write("You should be in public private school");
  } else if (myAge > 18 && myAge < 24) {
    document.write("You should be in college");
  } else {
    document.write("you're in the work force now");
  }
body {
  font-size: 1.6em;
}

.hidden {
  display: none;
}

.show {
  display: inline !important;
}

button {
  border: 2px solid black;
  background: #E5E4E2;
  font-size: .5em;
  font-weight: bold;
  color: black;
  padding: .8em 2em;
  margin-top: .4em;
}
<p id="sayHello"></p>

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): What is your
  • RegEx Blacklisted phrase (1): I would suggest please
  • Long answer (-1):
  • Has code block (-0.5):
Posted by: Naeem Akhtar

79677789

Date: 2025-06-24 14:54:45
Score: 10 🚩
Natty: 6.5
Report link

Have you used the sinc interpolation method to solve differential equations? I need help

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (2.5): I need help
  • RegEx Blacklisted phrase (1.5): solve differential equations?
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: MOHAMED EL BOURGHI

79677775

Date: 2025-06-24 14:44:42
Score: 1.5
Natty:
Report link

The way batch_size works is still hard to predict without digging through the source code, which I try to avoid at the moment. If I supply 63 configurations, each resampled three times, the result is a total of 189 iterations. The Terminator is none, and I'm calling this job on 30 cores. If par batch_size determines exactly how many configurations are evaluated in parallel, then setting it to a value of 50, e.g., should divide jobs into four batches. When I call this, the returned info says that I actually have two batches, each evaluating a 33/31 configuration, 96/93 resamplings. Any other batch_size also leads to an unpredictable split of iterations. How does this load balancing actually work?

tune(
    task = task,
    tuner = tnr("grid_search", batch_size = 50),
    learner = lrn("regr.ranger", importance = "permutation", num.threads = 8),
    resampling = rsmp("cv", folds = 3), 
    measures = msr("regr.mae"),
    terminator = trm("none"),
    search_space = ps(
      num.trees = p_fct(seq(100, 500, 50)),#9
      mtry = p_fct(seq(3, 9, 1))#7
    )
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: maRko

79677771

Date: 2025-06-24 14:42:41
Score: 2.5
Natty:
Report link

To handle Shopify subscription properly, you will need to store Shopify subscription data in the database, including started_at, status, etc.

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

79677762

Date: 2025-06-24 14:38:40
Score: 5
Natty: 5.5
Report link

PDF function (experimental) in PowerApps can be used to generated a pdf. However it does not support Maps, embedded PowerBI's and nested galleries. Guess that could be incorporated in the ppt?

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

79677751

Date: 2025-06-24 14:30:37
Score: 2
Natty:
Report link

this work on me

sudo apt install libpcre3-dev
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: auwo ganteng

79677746

Date: 2025-06-24 14:24:35
Score: 1.5
Natty:
Report link

Based on the information provided here I was unable to reproduce the issue using this data and the code below. Please provide a MWE which reproduces the issue. For future reference, SimpleITK/ITK have a dedicated discourse forum.

import dicom2nifti
import SimpleITK as sitk
import os
import time

dicom_folder_path = "./single_series_CIRS057A_MR_CT_DICOM"
nifti_output_path = "./result.nii.gz"
dicom_output_dir = "./result"

dicom2nifti.dicom_series_to_nifti(dicom_folder_path, nifti_output_path, reorient_nifti=False)

image = sitk.ReadImage(nifti_output_path, outputPixelType=sitk.sitkFloat32)

# List of tag-value pairs shared by all slices
modification_time = time.strftime("%H%M%S")
modification_date = time.strftime("%Y%m%d")
direction = image.GetDirection()
series_tag_values = [
    ("0008|0031", modification_time),  # Series Time
    ("0008|0021", modification_date),  # Series Date
    ("0008|0008", "DERIVED\\SECONDARY"),  # Image Type
    (
        "0020|000e",
        "1.2.826.0.1.3680043.2.1125." + modification_date + ".1" + modification_time,
    ),  # Series Instance UID
    (
        "0020|0037",
        "\\".join(
            map(
                str,
                (
                    direction[0],
                    direction[3],
                    direction[6],
                    direction[1],
                    direction[4],
                    direction[7],
                ),
            )
        ),
    ),  # Image Orientation
    # (Patient)
    ("0008|103e", "Created-SimpleITK"),  # Series Description
]
# Write floating point values, so we need to use the rescale
# slope, "0028|1053", to select the number of digits we want to keep. We
# also need to specify additional pixel storage and representation
# information.
rescale_slope = 0.001  # keep three digits after the decimal point
series_tag_values = series_tag_values + [
        ("0028|1053", str(rescale_slope)),  # rescale slope
        ("0028|1052", "0"),  # rescale intercept
        ("0028|0100", "16"),  # bits allocated
        ("0028|0101", "16"),  # bits stored
        ("0028|0102", "15"),  # high bit
        ("0028|0103", "1"),
    ]  # pixel representation

writer = sitk.ImageFileWriter()
writer.KeepOriginalImageUIDOn()
for i in range(image.GetDepth()):
    slice = image[:, :, i]
    for tag, value in series_tag_values:
        slice.SetMetaData(tag, value)
    # slice origin and instance number are unique per slice
    slice.SetMetaData(
        "0020|0032",
        "\\".join(map(str, image.TransformIndexToPhysicalPoint((0, 0, i)))),
    )
    slice.SetMetaData("0020|0013", str(i))
    writer.SetFileName(os.path.join(dicom_output_dir, f"{i+1:08X}.dcm"))
    writer.Execute(slice)
Reasons:
  • RegEx Blacklisted phrase (2.5): Please provide
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: zivy

79677745

Date: 2025-06-24 14:24:35
Score: 2
Natty:
Report link

Had the same issue. Worked around it by using the Angular app template (without ASP core) and creating a second project with the ASP core API template.

Apparently only the Angular app template is updated.

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

79677744

Date: 2025-06-24 14:24:35
Score: 1
Natty:
Report link

Increase the timeout to a higher value

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-2):
Posted by: Claus Ibsen

79677721

Date: 2025-06-24 14:07:31
Score: 2
Natty:
Report link

If this Helps anyone, i updated my prisma version with the latest. and it worked fine

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: Mohammed Bekele

79677717

Date: 2025-06-24 14:05:30
Score: 1.5
Natty:
Report link
https://graph.microsoft.com/v1.0/sites/{siteId}/drive/root:/directoryName1/directoryName2:/children?search(q='Data')

To directly search within that specific path, you should remove the /children segment and use the /search endpoint like this:

https://graph.microsoft.com/v1.0/sites/siteId/drive/root:/directoryName1/directoryName2:/search(q='Data')

It will return all files in the specified directory, and then apply the search filter

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

79677690

Date: 2025-06-24 13:48:25
Score: 1.5
Natty:
Report link

thank you for you answers.

I followed the approach in my [edit 1] proposal and came up with the following.

  1. I converted my list(parts) into a list(list(parts))
# FROM
packages_to_dl = [
    { "part": "file_1.7z.001" },
    { "part": "file_1.7z.xxx" },

    { "part": "file_N.7z.001" },
    { "part": "file_N.7z.xxx" },
]

# TO
packages_to_dl = [
    [ "file_1.7z.001", "file_1.7z.xxx" ],
    [ "file_N.7z.001", "file_N.7z.xxx" ],
]
  1. Then I took advantage of list index to know where I am
async def download(self, packages_to_dl: list) -> None:
    for idx, packages in enumerate(packages_to_dl):
        if idx == 0:
            """ Download batch of parts """
            async with asyncio.TaskGroup() as tg:
                [
                    tg.create_task(
                        coro=self.download_from_gitlab(
                            url,
                            output_document,
                        )
                    ) for x in packages
                ]
    
        if idx != 0:
            async with asyncio.TaskGroup() as tg:
                """ Download idx parts... """
                [
                    tg.create_task(
                        coro=self.download_from_gitlab(
                            url,
                            output_document
                        )
                    ) for x in packages
                ]
    
                """ ... While extracting idx-1 parts """
                args = [
                    'x',
                    packages_to_dl[idx-1][0],
                    save_dir
                ]
    
                tg.create_task(
                    coro=self.extract(
                        "7z",
                        args
                    )
                )
    
    """ Once the loop is done, extract last batch of parts """
    args = [
        'x',
        packages_to_dl[-1][0],
        save_dir
    ]
    await self.extract("7z", args)


async def download_from_gitlab(self, url: str, output_document: str, limiter=2) -> None: 
    async with asyncio.Semaphore(limiter): # download parts 2/2 by default
        async with self._session.get(url=url) as r:
            with open(output_document, "wb") as f:
                chunk_size = 64*1024
                async for data in r.content.iter_chunked(chunk_size):
                    f.write(data) 

async def extract(self, program: str, args: list[str]) -> None:
    proc = await asyncio.create_subprocess_exec(
        program,
        *args,
        stdout=asyncio.subprocess.PIPE,
        stderr=asyncio.subprocess.PIPE
    )
    await proc.communicate()
    print(f'{program} {" ".join(args)} exited with {proc.returncode}')

Cheers,

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): Cheers
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: aymericpineau

79677688

Date: 2025-06-24 13:48:25
Score: 3
Natty:
Report link

Absolutely — here’s a clear and professional version of your question in English that you can use to ask for help on platforms like Stack Overflow, GitHub Discussions, or Reddit:

Title: Why is Sinc-Interpolation with Double Exponential Transform not showing exponential convergence?

Body: Hello everyone, I’m working on numerically solving the boundary value problem:

u′′(x)−u(x)=sin⁡(πx),x∈[−1,1],u(−1)=u(1)=0u''(x) - u(x) = \sin(\pi x), \quad x \in [-1,1], \quad u(-1) = u(1) = 0

I'm applying Sinc-Interpolation with the Double Exponential (DE) transformation as described in Stenger's method. I construct the second derivative matrix D(2)D^{(2)} in the tt-domain, then transform it to the xx-domain using:

Dx(2)=diag(1ϕ′(tk)2)⋅Dt(2)−diag(ϕ′′(tk)ϕ′(tk)3)⋅Dt(1)D^{(2)}_x = \text{diag}\left( \frac{1}{\phi'(t_k)^2} \right) \cdot D^{(2)}_t - \text{diag}\left( \frac{\phi''(t_k)}{\phi'(t_k)^3} \right) \cdot D^{(1)}_t

I solve the linear system

(Dx(2)−I)u=f(D^{(2)}_x - I) u = f

after applying Dirichlet boundary conditions at x=±1x = \pm1. The exact solution is known and smooth:

u(x)=−1π2+1sin⁡(πx)u(x) = -\frac{1}{\pi^2 + 1} \sin(\pi x)

However, even after increasing NN up to 50 or more, I’m not seeing exponential decay in the maximum error. The error seems to flatten out or decrease very slowly. I suspect a subtle mistake is hiding in my implementation — either in the transform, the derivative matrices, or the collocation formulation.

Any ideas on what I might be missing? Has anyone implemented Sinc collocation with DE and observed similar issues?

Thank you in advance!

If you want, I can even translate it into French or format it as a GitHub issue. Just let me know how you'd like to post it ✨

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): Any ideas
  • Whitelisted phrase (-1.5): you can use
  • Whitelisted phrase (-1): solution is
  • RegEx Blacklisted phrase (3): Thank you in advance
  • Long answer (-1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: MOHAMED EL BOURGHI

79677669

Date: 2025-06-24 13:37:21
Score: 1
Natty:
Report link

I use Config.Image it's a field of the container's inspect output plus jq to parse the JSON output :

docker inspect <container-id/name> | jq -r '.[0].Config.Image'
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: TouFa7

79677666

Date: 2025-06-24 13:35:20
Score: 0.5
Natty:
Report link

According to the documentation your code is lacking the .listStyle(.insetGrouped) modifier on the list as follows:

List {
    // (...)
}
.listStyle(.insetGrouped)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Hutjepower

79677665

Date: 2025-06-24 13:33:19
Score: 5
Natty:
Report link

This blog is informational.

IF YOU WANT TO MAKE ONLINE EARNING

Visit our website : https://www.playmaxx.club/

TRUSTED WORK

Reasons:
  • Blacklisted phrase (1): This blog
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: PLAYMAX

79677652

Date: 2025-06-24 13:29:18
Score: 2.5
Natty:
Report link

solution
Just enable "Delegate IDE build/run actions to Maven" option in Maven -> Runner

This solved my problem after long hours of different tries, please see the picture above.

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

79677647

Date: 2025-06-24 13:26:17
Score: 2.5
Natty:
Report link

A colleague worked on this issue and he used the percentage values instead of the raw values in the data given to the chart. This fixed the issue !

Unfortunately, I do not work on the project anymore so I cannot try what kikon and oelimoe suggest in comments.

Reasons:
  • Blacklisted phrase (0.5): I cannot
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Glim

79677628

Date: 2025-06-24 13:13:13
Score: 0.5
Natty:
Report link

Below is the distilled “field-notes” version, with the minimum set of changes that finally made web pages load on both Wi-Fi and LTE while still blocking everything that isn’t on the whitelist.

1. Decide which battle you want to fight

Option What it does ? Effort Battery
DNS-only allow-list (recommended) Let Android route traffic as usual, but fail every DNS lookup whose FQDN is not on your list. Minimal Minimal
Full user-space forwarder Suck all packets into the TUN, recreate a TCP/UDP stack in Kotlin, forward bytes in both directions. Maximum Maximum

Unless you need DPI or per-packet accounting, stick to DNS filtering first. You can always tighten the net later.

2. DNS filter that actually works on Wi-Fi and LTE

class SecureThread(private val vpn: VpnService) : Runnable {

    private val dnsAllow = hashSetOf(
        "sentry.io", "mapbox.com", "posthog.com", "time.android.com",
        "fonts.google.com", "wikipedia.org"
    )

    private lateinit var tunFd: ParcelFileDescriptor
    private lateinit var inStream: FileInputStream
    private lateinit var outStream: FileOutputStream
    private val buf = ByteArray(32 * 1024)

    // Always use a public resolver – carrier DNS often hides behind 10.x / 192.168.x
    private val resolver = InetSocketAddress("1.1.1.1", 53)

    override fun run() {
        tunFd = buildTun()
        inStream = FileInputStream(tunFd.fileDescriptor)
        outStream = FileOutputStream(tunFd.fileDescriptor)

        val dnsSocket = DatagramSocket().apply { vpn.protect(this) }
        dnsSocket.soTimeout = 5_000   // don’t hang forever on bad networks

        while (!Thread.currentThread().isInterrupted) {
            val len = inStream.read(buf)
            if (len <= 0) continue

            val pkt = IpV4Packet.newPacket(buf, 0, len)
            val udp = pkt.payload as? UdpPacket ?: passthrough(pkt)
            if (udp?.header?.dstPort?.valueAsInt() != 53) { passthrough(pkt); continue }

            val dns = Message(udp.payload.rawData)
            val qName = dns.question.name.toString(true)

            if (dnsAllow.none { qName.endsWith(it) }) {
                // Synthesize NXDOMAIN
                dns.header.rcode = Rcode.NXDOMAIN
                reply(pkt, dns.toWire())
                continue
            }

            // Forward to 1.1.1.1
            val fwd = DatagramPacket(udp.payload.rawData, udp.payload.rawData.size, resolver)
            dnsSocket.send(fwd)

            val respBuf = ByteArray(1500)
            val respPkt = DatagramPacket(respBuf, respBuf.size)
            dnsSocket.receive(respPkt)

            reply(pkt, respBuf.copyOf(respPkt.length))
        }
    }

    /* - helpers -*/

    private fun buildTun(): ParcelFileDescriptor =
        vpn.Builder()
            .setSession("Whitelist-DNS")
            .setMtu(1280)                       // safe for cellular
            .addAddress("10.0.0.2", 24)         // dummy, but required
            .addDnsServer("1.1.1.1")            // force all lookups through us
            .establish()

    private fun passthrough(ip: IpV4Packet) = outStream.write(ip.rawData)

    private fun reply(request: IpV4Packet, payload: ByteArray) {
        val udp = request.payload as UdpPacket
        val answer =
            UdpPacket.Builder(udp)
                .srcPort(udp.header.dstPort)
                .dstPort(udp.header.srcPort)
                .srcAddr(request.header.dstAddr)
                .dstAddr(request.header.srcAddr)
                .payloadBuilder(UnknownPacket.Builder().rawData(payload))
                .correctChecksumAtBuild(true)
                .correctLengthAtBuild(true)

        val ip =
            IpV4Packet.Builder(request)
                .srcAddr(request.header.dstAddr)
                .dstAddr(request.header.srcAddr)
                .payloadBuilder(answer)
                .correctChecksumAtBuild(true)
                .correctLengthAtBuild(true)
                .build()

        outStream.write(ip.rawData)
    }
}

3. Hard-blocking at the IP layer (if you really need it)

  1. Keep a ConcurrentHashMap<InetAddress, Long> of “known good” addresses (expires at TTL).

  2. After you forward an allowed DNS answer, add every A/AAAA to the map.

  3. Add addRoute("0.0.0.0", 0) / addRoute("::", 0) and implement a proper forwarder:

    • UDP: create a DatagramChannel, copy both directions.

    • TCP: socket-pair with SocketChannel + Selector.

  4. Drop any packet whose dstAddr !in allowedIps.

That’s basically what tun2socks, Intra, and Nebula do internally. If you don’t want to maintain your own NAT table, embed something like go-tun2socks with JNI.

4. IPv6 corner-case

When you do block IPv6 queries, respond with an AAAA that points to loopback:

dnsMsg.addRecord(
    AAAARecord(
        dnsMsg.question.name,
        dnsMsg.question.dClass,
        10,
        Inet6Address.getByName("::1")
    ), Section.ANSWER
)

Chrome will happily move on to the next host in the alt-svc list.

5. Quality-of-life tweaks

private val dnsSock = ThreadLocal.withInitial {
    DatagramSocket().apply { vpn.protect(this) }
}
  1. Timeouts everywhere – missing one receive() call on cellular was what froze your first run.

  2. Verbose logging for a day, then drop to WARN – battery thanks you.

Happy hacking!

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Takashi Doyle

79677617

Date: 2025-06-24 13:07:11
Score: 1.5
Natty:
Report link

Set the appropriate parameter in your message request:

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

79677614

Date: 2025-06-24 13:05:10
Score: 6 🚩
Natty: 5.5
Report link

is the reCaptcha issue resolved after downloading it from google play release?

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Starts with a question (0.5): is the
  • Low reputation (1):
Posted by: Karan Bhanushali

79677613

Date: 2025-06-24 13:03:09
Score: 2
Natty:
Report link

Ensure the .m3u8 URL is valid uses HTTP and AVURLAsset is loaded with AVAsset.loadValuesAsynchronously before accessing tracks.

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

79677607

Date: 2025-06-24 12:59:07
Score: 5
Natty:
Report link

@JvdV, your solution works, but it also returns duplicate values. Would you please modify the formula to remove duplicate values.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • User mentioned (1): @JvdV
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: user469843

79677596

Date: 2025-06-24 12:51:04
Score: 3
Natty:
Report link

Little "side effect hack": menu "Debug", "Attach to process" select process which not running under your credentials will cause restart VS in "admin mode".

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Marek Přikryl

79677592

Date: 2025-06-24 12:48:04
Score: 1
Natty:
Report link

You can do this via python an its win32com.client. This loop will print out all text from all slides of Test.pptx.

import win32com.client

ppt_dir = r'C:\Users\Documents\Test.pptx'
ppt_app = win32com.client.GetObject(ppt_dir)

for ppt_slide in ppt_app.Slides:
    for comment in ppt_slide.Comments:
        for shape in ppt_slide.shapes:
            print(shape.TextFrame.TextRange)

Content of Test.pptx

Result: This is a test

Take this as a starting point, depending on what you want to do with the extracted text.

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

79677589

Date: 2025-06-24 12:47:03
Score: 1
Natty:
Report link

Probably this is because trace information is not propagated. You can check out headers provided by producer side. If there are no trace headers, then check server side. If headers are supplied then it is consumer side problem.

Trace info propagation depends on interop mechanism. I mean that for REST it is one set of classes but for Kafka it is other set.

For Kafka e.g. Spring Boot 3 has observation turned off by default.

It can be turned on by these properties:

Or if you construct KafkaTemplate and/or ConcurrentKafkaListenerContainerFactory beans by yourself then you should set observation while configuring beans. Have a look at this article https://www.baeldung.com/spring-kafka-micrometer#2-propagating-the-context

For REST afaik there are no special properties and it should work out-of-the-box.

BTW, you no need to include micrometer-tracing dependency. It is transitive from micrometer-tracing-bridge-brave.

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

79677580

Date: 2025-06-24 12:41:02
Score: 1
Natty:
Report link

For those coming here on looking how to get the old type stack view...

So in the latest versions I think they've changed the stack view to something else , which I personally wouldn't prefer. The workaround is that -

Open r2 with a binary then save the current default layout with any name say "xyz" or any one of your saved layouts , It should be in your saved layouts. Now go to .local/share/radare2/r2panels, you can see the "xyz" config file there. Do this modification:

Change the stack Cmd from "xc 256@r:SP" to "pxr@r:SP" , which will get you that good old radare2 stack layout view.

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

79677574

Date: 2025-06-24 12:33:59
Score: 1.5
Natty:
Report link

I understand this is an old post, but I've come here looking for an answer.
I've been told it can be resolved with a Triplanar Shader. I am currently downloading a package which hopefully will show some results.

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

79677571

Date: 2025-06-24 12:31:58
Score: 5
Natty: 4
Report link

Is it possible to rotate the annotation? I have searched through documentation, gallery and answers here and I wasn't able to find any hint.

Reasons:
  • Blacklisted phrase (1): Is it possible to
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Is it
  • Low reputation (1):
Posted by: Dickson Souza

79677567

Date: 2025-06-24 12:28:57
Score: 1.5
Natty:
Report link

In my case rm -rf node_modules and yarn install were enough

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

79677559

Date: 2025-06-24 12:21:56
Score: 0.5
Natty:
Report link
The issue of the TextField being hidden behind the keyboard can be resolved by using .safeAreaInset(edge: .bottom) to place the input bar above the keyboard. Here’s a complete example that demonstrates how to achieve this in SwiftUI:

struct ChatView: View {
    @State private var typedText: String = ""

    var body: some View {
        ScrollViewReader { scrollProxy in
            ScrollView {
                VStack(spacing: 8) {
                    ForEach(0..<20, id: \.self) { index in
                        Text("Message \(index)")
                            .frame(maxWidth: .infinity, alignment: .leading)
                    }
                }
                .padding()
            }
            .safeAreaInset(edge: .bottom) {
                inputBar
            }
        }
    }

    var inputBar: some View {
        VStack(spacing: 0) {
            Divider()
            HStack {
                TextField("Start typing here...", text: $typedText)
                    .textFieldStyle(RoundedBorderTextFieldStyle())
            }
            .padding()
            .background(Color(UIColor.systemBackground))
        }
    }
}

Using .safeAreaInset(edge: .bottom) ensures the TextField is always displayed above the keyboard, respecting the safe area. This approach works reliably in iOS 15 and later.
Reasons:
  • Blacklisted phrase (1): how to achieve
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sebastin Jeyaprakash

79677557

Date: 2025-06-24 12:19:55
Score: 1.5
Natty:
Report link

Interesting fact about using TanStack Query within NextJS's AppRouter is that you need to prefetch all queries that you are using in client components.

If the query is dependant on some variable, which is not connected with query directly (e.g. its key), use imperative fetch (docs) via queryClient hook.

===
This was helpful resource too:
https://www.robinwieruch.de/next-server-actions-fetch-data/

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

79677554

Date: 2025-06-24 12:18:55
Score: 3.5
Natty:
Report link

Forget about DBeaver CE with fuzzy work with local client utilities

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

79677553

Date: 2025-06-24 12:17:54
Score: 0.5
Natty:
Report link

It should also be borne in mind that there are different compilers for the two controllers. The xc16 is used for the PIC24, while Microchip recommends the xc-DSC compiler for new projects with the dsPIC.

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

79677552

Date: 2025-06-24 12:16:54
Score: 0.5
Natty:
Report link

Use a proper Paper Size with the Same Aspect Ratio in CSS

To solve this problem, in CSS use a required paper size with the same aspect ratio, as shown below. This example is for A4 size.

@page {
  /* A4 size (210mm × 297mm) scaled by 1.5x */
  size: 315mm 445.5mm;
  margin: 0;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sachin Chillal

79677546

Date: 2025-06-24 12:13:53
Score: 0.5
Natty:
Report link

Add some any Resolver like:

@Resolver()
export class AppResolver {
  @Query(() => String)
  hello(): string {
    return 'Hello world!';
  }
}

and add it to providers in your app.module:

providers: [AppResolver, AppService],
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Den Rash

79677541

Date: 2025-06-24 12:09:51
Score: 3.5
Natty:
Report link

Diagnosed the forked package of typescript-Codegen and found that there was no code to handle ArrayBuffer responses, which was causing the issue

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

79677529

Date: 2025-06-24 12:00:49
Score: 1.5
Natty:
Report link

Turns out this simply needs vi.runAllTimersAsync() instead. Then it works.

Of course stubbing setTimeout() is also an option.

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

79677524

Date: 2025-06-24 11:57:48
Score: 1
Natty:
Report link

For additional information, as said by a Logstash maintainer (Source),

If I use Filebeat for collecting a particular kind of log file on all servers I'd use Filebeat everywhere instead of making an exception for the Logstash server(s) which theoretically wouldn't have needed Filebeat.The file input and Filebeat have slightly different tuning options too.

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

79677521

Date: 2025-06-24 11:56:48
Score: 3.5
Natty:
Report link

Please notice that until you commit the changes, the nextval function call in the default column of your primary key is missing.

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

79677487

Date: 2025-06-24 11:38:42
Score: 1
Natty:
Report link

Here’s how it should be structured:

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib"> <!-- Cool comment --> <Grid> <!-- Your UI elements go here --> </Grid> </Window>

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

79677484

Date: 2025-06-24 11:36:42
Score: 3.5
Natty:
Report link

the leak that just won't quit until today.

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

79677473

Date: 2025-06-24 11:22:38
Score: 1
Natty:
Report link

Make sure you use sqlalchemy >= 2.0.0

I was using sqlalchemy 1.4.28 with the latest pandas, which are no longer compatible (and could not upgrade because my airflow version was limited to sqlalchemy < 2.0.0)

See this discussion: https://github.com/pandas-dev/pandas/issues/58949#issuecomment-2153485545

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

79677457

Date: 2025-06-24 11:09:35
Score: 3
Natty:
Report link

Nimnankit minimum kinnikinnick n8jjnnnnnnnNnnn8Jn8nnnnnjn8NNn8jn8n888n8nnnjnjn8nnjjnNn8jnnn8nnnnnnkniNNni momino j

header 1 header 2
cell 1 cell 2
cell 3 cell 4jjjnnnjn
Reasons:
  • Low length (1):
  • No code block (0.5):
  • Filler text (0.5): nnnnnnnNnnn
  • Low reputation (1):
Posted by: nitish yadav

79677453

Date: 2025-06-24 11:05:33
Score: 1.5
Natty:
Report link

This package is now more than 2 years old. It wont work with updated flutter versions. Use image_gallery_saver_plus instead. Don't worry this package is based on original image_gallery_saver.

For details click here

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

79677447

Date: 2025-06-24 10:58:31
Score: 1
Natty:
Report link

Alright I figured out the answer for two questions about postfixes: Just use --output-hashing=none when build. Postfixes won't appear

Reasons:
  • Whitelisted phrase (-2): I figured out
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Anton Bobylev

79677446

Date: 2025-06-24 10:57:31
Score: 2
Natty:
Report link

I use notepad++ to get rid of them. (god how I hate them too). I use CubeMx to create the file and then thats it, I never (need to) go back. If I do miss something then I create another project with the extra bits I need.

Once Cube has created them, open the file (eg main.c or any of the generated files) in noptepad++ and do the following. Note: the 'replace' field is empty or a space, depending on what it allows. Ensure regular exp is on too.

find: ^.*\/\*.*USER CODE.*$

replace:

-------------------------------------

and also to replace /* commment */ with //comment

find: (^.*)\/\*(.+)\*\/

replace: \1// \2

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • No code block (0.5):
  • Filler text (0.5): -------------------------------------
  • Low reputation (1):
Posted by: user30879702

79677445

Date: 2025-06-24 10:57:31
Score: 1.5
Natty:
Report link

This package is now more than 2 years old. It wont work with updated flutter versions. Use image_gallery_saver_plus instead. Don't worry this package is based on original image_gallery_saver.

For details click here

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

79677434

Date: 2025-06-24 10:47:28
Score: 7.5
Natty: 7.5
Report link

I had problem here, after changing to LF it works. But worked locally using docker desktop, when pushed same image to ACR and pulled the image in deployement file, it fails. can you explain why?

Reasons:
  • Blacklisted phrase (0.5): why?
  • RegEx Blacklisted phrase (2.5): can you explain
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sai kumar

79677432

Date: 2025-06-24 10:47:27
Score: 8 🚩
Natty: 4
Report link

I am new to drones and QGroundControl, so if I make any mistakes or ask obvious questions, I hope you can forgive me and point me in the right direction I am currently trying to customize the QGroundControl UI for Android. I want to redesign the entire interface with a more modern and touch-friendly look. I have been going through the developer documentation on the QGroundControl website, but honestly, I have been stuck for the past two weeks. I still haven't figured out which version of Qt to use or where exactly to get the source code for a setup that works well with QGroundControl development on Android. Any help or guidance regarding customizing Qgroundcontrol for Android would mean a lot to me. I would appreciate any help from you. Thanks a lot.

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (1): Any help
  • Blacklisted phrase (1): any help
  • Blacklisted phrase (1.5): would appreciate
  • RegEx Blacklisted phrase (1): I want
  • RegEx Blacklisted phrase (1.5): I am new
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Hoàn Bùi

79677430

Date: 2025-06-24 10:44:26
Score: 1.5
Natty:
Report link

one reason imread might return None is if you have special characters in your path. I had the same error and solved it by changing my path name from .../Maße/... to .../Version/... apparently the current version of opencv does not accept ß in the pathname

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: Maurice

79677417

Date: 2025-06-24 10:36:24
Score: 1.5
Natty:
Report link

You can also use a simple yet powerful tool called xmgrace to plot .xvg files generated from gromacs. It's perfect for visualizing data from molecular dynamics simulations and offers a lot of options for tweaking the plots,colors, labels, legends, and analysis aas well. Highly recommended for publication quality graphics.

Read more : https://plasma-gate.weizmann.ac.il/Grace/

Installation is pretty straight forward : sudo apt install grace

You also have something similar for windows.

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: comp-era

79677409

Date: 2025-06-24 10:31:22
Score: 4
Natty:
Report link

Thank you Koen for your response. It works like a charm. I confirm that it resolved my query.

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

79677407

Date: 2025-06-24 10:28:21
Score: 4
Natty: 7.5
Report link

Thank you so much! This worked perfectly after I spent hours trying different approaches with meta fields that didn't work. Even AI couldn't help me solve this one. You saved me a lot of time!!!

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

79677389

Date: 2025-06-24 10:13:18
Score: 3
Natty:
Report link

You can also do it with another method. Instead of Setting height you can set the line-height & position to fixed of the navigation bar

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

79677369

Date: 2025-06-24 09:58:14
Score: 2
Natty:
Report link

The solution is on the edit page of your search index.
Scroll down to Europa search index options and click Remote rather than local.
Your view will now show results based upon the values indexed in your datasource.

Regards

Tim

Reasons:
  • Blacklisted phrase (1): Regards
  • Whitelisted phrase (-1): solution is
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TechnoTim2010

79677368

Date: 2025-06-24 09:57:14
Score: 1.5
Natty:
Report link

Outpatient Drug Treatment in Edison, NJ – A Personalized Approach at Virtue Care Services, Inc.

At Virtue Care Services, Inc., we understand that the journey to recovery is deeply personal. Located in the heart of Edison, NJ, and proudly serving Middlesex County, our Outpatient Drug Treatment Program is designed to provide effective, compassionate, and flexible care for individuals seeking freedom from addiction without stepping away from their daily responsibilities.

Why Choose Outpatient Treatment?

Outpatient drug treatment is ideal for individuals who need support to overcome substance use but do not require 24/7 supervision or inpatient care. It’s a perfect solution for those with work, school, or family obligations who still want access to professional, structured support.

At Virtue Care Services, Inc., our outpatient program offers evidence-based treatment while allowing clients to live at home and remain active in their communities.

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

79677361

Date: 2025-06-24 09:51:12
Score: 1
Natty:
Report link

if navigation is operated in initState

void initState() {
    super.initState();
    WidgetsBinding.instance.addPostFrameCallback((_) {
      Navigator. ... // navigation
    });
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Baxrom Rajabov

79677359

Date: 2025-06-24 09:49:11
Score: 1.5
Natty:
Report link

Try doing this, where td is your element.

const selectedOption = td.querySelector("select").selectedIndex;
console.log(td.querySelector("select").options[selectedOption].value);
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: John

79677357

Date: 2025-06-24 09:49:11
Score: 1.5
Natty:
Report link

Have you tried opening it inside a project?

From what I saw in the video, the screen was completely blank, which suggests it might have crashed on startup. I’d recommend starting the emulator from within a project and checking the logs to see what’s going on.

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

79677355

Date: 2025-06-24 09:46:10
Score: 5.5
Natty:
Report link

I have discover a bug when you have two legend to the right or left, the second event click is weardly placed. Let me know if you have the same issue

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): have the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Rayan Hilliman

79677350

Date: 2025-06-24 09:41:09
Score: 2.5
Natty:
Report link

std::visit can appear inefficient because it relies on a compile-time-generated visitor dispatch mechanism, which can lead to large and complex code, especially with many variant alternatives. This can increase binary size and reduce performance due to missed inlining or poor branch prediction.

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

79677347

Date: 2025-06-24 09:40:09
Score: 3
Natty:
Report link

You can type ":context" without any further text to see a list of all available contexts.

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

79677344

Date: 2025-06-24 09:37:08
Score: 1
Natty:
Report link

✅ Make API Request in Kotlin (Jetpack Compose)

Use Retrofit with ViewModel and Coroutines for API calls in Jetpack Compose. Jetpack Compose doesn't handle HTTP directly.


🔧 1. Add Dependencies

groovy

CopyEdit

implementation 'com.squareup.retrofit2:retrofit:2.9.0' implementation 'com.squareup.retrofit2:converter-gson:2.9.0' implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1'


📦 2. Setup Retrofit

kotlin

CopyEdit

dataclass User(val id: Int, val email: String) interface ApiService { @GET("api/users") suspend fun getUsers(@Query("page") page: Int): UserResponse } object ApiClient { val api = Retrofit.Builder() .baseUrl("https://reqres.in/") .addConverterFactory(GsonConverterFactory.create()) .build() .create(ApiService::class.java) }


👨‍💻 3. ViewModel

kotlin

CopyEdit

classUserViewModel : ViewModel() { var users by mutableStateOf<List<User>>(emptyList()) init { viewModelScope.launch { users = ApiClient.api.getUsers(1).data } } }


🎨 4. Compose UI

kotlin

CopyEdit

@Composable fun UserScreen(viewModel: UserViewModel = viewModel()) { LazyColumn { items(viewModel.users) { user -> Text("${user.id}: ${user.email}") } } }

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • User mentioned (1): @Composable
  • Low reputation (1):
Posted by: Saurabh Chauhan

79677328

Date: 2025-06-24 09:23:04
Score: 3
Natty:
Report link

In the footer(bottom bar) of vs code there is OVM button on the right side click it and the cursor width will turn back to normal

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

79677325

Date: 2025-06-24 09:21:03
Score: 0.5
Natty:
Report link

No, the models will be different, including:

  1. Different number of columns will result in different model weights (coefficients)

  2. Intercepts will usually be different

  3. Prediction results and model explanatory power (e.g. R²) will also be different

Because when you add more features, the model will readjust the contribution of all variables to minimize the overall error, which will also affect the optimal solution for the intercept.

LinearRegression() is a linear regression model, and its learning formula is

enter image description here

y_hat = w0 + w1 * x1 + w2 * x2 + ... + wn * xn​

therefor, When you change the number of columns in X (that is, the number of features fed into the model), for a linear regression model, it completely affects the learning results of the entire model.

example

import pandas as pd
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
from sklearn.metrics import r2_score

# Create sample data set (simulated marketing budget and sales
data = pd.DataFrame({
    'TV': [230.1, 44.5, 17.2, 151.5, 180.8, 8.7, 57.5, 120.2, 8.6, 199.8],
    'Radio': [37.8, 39.3, 45.9, 41.3, 10.8, 48.9, 32.8, 19.6, 2.1, 2.6],
    'Newspaper': [69.2, 45.1, 69.3, 58.5, 58.4, 75.0, 23.5, 11.6, 1.0, 21.2],
    'Sales': [22.1, 10.4, 9.3, 18.5, 12.9, 7.2, 11.8, 13.2, 4.8, 10.6]
})

# Prepare X, y separately (single feature vs multiple features)
X1 = data[['TV']]
X3 = data[['TV', 'Radio', 'Newspaper']]
y = data['Sales']

# Data segmentation (maintain consistency)
X1_train, X1_test, y_train, y_test = train_test_split(X1, y, test_size=0.3, random_state=42)
X3_train, X3_test, _, _ = train_test_split(X3, y, test_size=0.3, random_state=42)

# Build and train the model
model1 = LinearRegression().fit(X1_train, y_train)
model3 = LinearRegression().fit(X3_train, y_train)

# predict
y_pred1 = model1.predict(X1_test)
y_pred3 = model3.predict(X3_test)

# Output comparison
print("Univariate Model:")
print(f"  Intercept: {model1.intercept_:.4f}")
print(f"  TV Coefficient: {model1.coef_[0]:.4f}")
print(f"  R² : {r2_score(y_test, y_pred1):.4f}")

print("\nMultivariate Model:")
print(f"  Intercept: {model3.intercept_:.4f}")
print(f"  Coefficients (TV, Radio, Newspaper): {model3.coef_}")
print(f"  R²: {r2_score(y_test, y_pred3):.4f}")
Reasons:
  • Blacklisted phrase (1): enter image description here
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: 陳俊方

79677323

Date: 2025-06-24 09:20:03
Score: 3
Natty:
Report link

I have got a good video tutorail about editing ag grid react.. Editing all cells simultaneously by click on a single button and saving all edited data with a save button. You can find the video here. it is very helpful. https://youtu.be/mZb__0A5qPg?si=MYcQl04_khCgxg3v

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Reneesh TK

79677320

Date: 2025-06-24 09:19:03
Score: 1.5
Natty:
Report link

You can create a non-activating overlay window (an NSPanel with .nonactivatingPanel) so it stays visible but doesn’t receive input letting other apps stay focused while your UI sits on top

Then use a CGEventTap at the system level with Accessibility permissions to intercept and drop keyboard and mouse events before they reach any app.

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

79677318

Date: 2025-06-24 09:17:02
Score: 3.5
Natty:
Report link

I have got a video about how to edit multiple cells at a time by click on a button as in the question. you can find the video here. https://youtu.be/mZb__0A5qPg?si=MYcQl04_khCgxg3v

Reasons:
  • Blacklisted phrase (1): youtu.be
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Reneesh TK

79677302

Date: 2025-06-24 09:07:00
Score: 0.5
Natty:
Report link

Two steps:

  1. In the Build Phases, the Run Script must be placed below Embed Foundation Extensions.

    Just put the Run Script at the bottom.

  2. In the Embed Foundation Extensions section, you must uncheck “Copy only when installing”.

It works for me.

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

79677290

Date: 2025-06-24 09:00:57
Score: 3
Natty:
Report link

A little late, but i documented the solution to send data to the backend before acutally creating the data in the backend:
https://docs.spreadsheet-importer.com/pages/Events/#validating-with-rap-backend-actions

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

79677285

Date: 2025-06-24 08:57:56
Score: 0.5
Natty:
Report link

Id,Equipment__c,Quantity__c FROM Equipment_Maintenance_Items__r)

                                                     FROM Case WHERE Id IN :validIds\]);

        Map\<Id,Decimal\> maintenanceCycles = new Map\<ID,Decimal\>();

        AggregateResult\[\] results = \[SELECT Maintenance_Request__c, MIN(Equipment__r.Maintenance_Cycle__c)cycle FROM Equipment_Maintenance_Item__c WHERE Maintenance_Request__c IN :ValidIds GROUP BY Maintenance_Request__c\];



    for (AggregateResult ar : results){ 

        maintenanceCycles.put((Id) ar.get('Maintenance_Request__c'), (Decimal) ar.get('cycle'));

    }



        for(Case cc : closedCasesM.values()){

            Case nc = new Case (

                ParentId = cc.Id,

            Status = 'New',

                Subject = 'Routine Maintenance',

                Type = 'Routine Maintenance',

                Vehicle__c = cc.Vehicle__c,

                Equipment__c =cc.Equipment__c,

                Origin = 'Web',

                Date_Reported__c = Date.Today()



            );



            If (maintenanceCycles.containskey(cc.Id)){

                nc.Date_Due__c = Date.today().addDays((Integer) maintenanceCycles.get(cc.Id));

            }



            newCases.add(nc);

        }



       insert newCases;



       List\<Equipment_Maintenance_Item__c\> clonedWPs = new List\<Equipment_Maintenance_Item__c\>();

       for (Case nc : newCases){

            for (Equipment_Maintenance_Item__c wp : closedCasesM.get(nc.ParentId).Equipment_Maintenance_Items__r){

                Equipment_Maintenance_Item__c wpClone = wp.clone();

                wpClone.Maintenance_Request__c = nc.Id;

                ClonedWPs.add(wpClone);



            }

        }

        insert ClonedWPs;

    }

}

}

-------------------------------------------------------------------------------------------------------------

SOURCE CODE3 : MaintenanceRequest (trigger)

trigger MaintenanceRequest on Case (before update, after update) {

if(Trigger.isUpdate && Trigger.isAfter) {

    MaintenanceRequestHelper.updateworkOrders(Trigger.New, Trigger.OldMap);

}

}

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • No latin characters (0.5):
  • Filler text (0.5): -------------------------------------------------------------------------------------------------------------
  • Low reputation (1):
Posted by: Amit Gaurav

79677283

Date: 2025-06-24 08:54:56
Score: 2
Natty:
Report link

I would say this type of error typically occurs when you rename files, without using the built-in Rename functionality in Visual Studio. In my case, all variable names and inputs were correct in my Razor pages, but the namespace was still referencing the old name.

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

79677276

Date: 2025-06-24 08:50:50
Score: 6.5 🚩
Natty:
Report link

I ran into the same problem, did you finally solve it

Reasons:
  • RegEx Blacklisted phrase (3): did you finally solve it
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DuangDuang

79677273

Date: 2025-06-24 08:47:49
Score: 0.5
Natty:
Report link

Since rememberRipple() api deprecated, Android provide new api ripple() that works perfectly, instead of using the clip modifier.

Here is the code snippet to implement it:

Icon(
     modifier = Modifier
     .size(dimensionResource(R.dimen.dimen_20_dp))
     .clickable(
               onClick = { onBackArrowClick() },
               interactionSource = remember { MutableInteractionSource() },
               indication = ripple(bounded = false)),
               imageVector = ImageVector.vectorResource(R.drawable.ic_back),
               contentDescription = "Back",
               tint = colorResource(R.color.black)
            )

Android Doc: https://developer.android.com/develop/ui/compose/touch-input/user-interactions/migrate-indication-ripple

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Asad Mukhtar

79677268

Date: 2025-06-24 08:46:49
Score: 1.5
Natty:
Report link

For those looking to track and report task time by user and day directly within Azure DevOps, TMetric offers a seamless solution. Our browser extension integrates a 'Start Timer' button right into Azure DevOps work items, allowing for one-click time tracking. This data then feeds into comprehensive TMetric reports, which can be easily filtered by user, date, project, and more, providing precise insights into logged time.

If any questions arise, we'll be happy to assist.

Best,
TMetric Team

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

79677255

Date: 2025-06-24 08:35:46
Score: 4
Natty:
Report link

In Camel 4.x, OPC-UA is supported through the PLC4X component https://camel.apache.org/components/next/plc4x-component.html

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Aurélien Pupier

79677251

Date: 2025-06-24 08:34:45
Score: 2.5
Natty:
Report link

To fix the problem on my Ma, I had to turn on the option "Show scroll bars" to "Always":
enter image description here
Hope it helps

Reasons:
  • Blacklisted phrase (1): enter image description here
  • Whitelisted phrase (-1): Hope it helps
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Philippe Krief

79677249

Date: 2025-06-24 08:32:45
Score: 2
Natty:
Report link

I used the following URL format for my Stripe webhook destination in a Vercel preview deployment

https://<your-preview-url>/api/stripe-webhook?x-vercel-protection-bypass=<YOUR_SECRET>

According to Vercel Docs the x-vercel-protection-bypass token can be passed either as an HTTP header (recommended) or as a query parameter

https://vercel.com/docs/deployment-protection/methods-to-bypass-deployment-protection/protection-bypass-automation

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: rvlsnjk

79677248

Date: 2025-06-24 08:31:45
Score: 2
Natty:
Report link

You can try adding a minimum horizontal padding (~20-40 pts) to the left and right sides of your list or draggable controls. It would keep drag start positions away from the drag-sensitive edges zones and thus preventing the system from interpreting your drag as a Stage Manager gesture.

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

79677247

Date: 2025-06-24 08:31:44
Score: 4.5
Natty: 6
Report link

What helped me was to recreate the identifier directly on the website https://developer.apple.com/account/resources/identifiers/list

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What help
  • Low reputation (0.5):
Posted by: koliush

79677245

Date: 2025-06-24 08:30:44
Score: 4
Natty: 4.5
Report link

Update:
Kotlin 2.4 Introduces Rich Errors, which are SumTypes

https://xuanlocle.medium.com/kotlin-2-4-introduces-rich-errors-a-game-changer-for-error-handling-413d281e4a05
the | symbol is used as in Scala or TS

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

79677243

Date: 2025-06-24 08:29:43
Score: 4.5
Natty: 6
Report link

What helped me was to recreate the identifier directly on the website https://developer.apple.com/account/resources/identifiers/list

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): What help
  • Low reputation (0.5):
Posted by: koliush

79677229

Date: 2025-06-24 08:20:39
Score: 9 🚩
Natty: 4.5
Report link

Has anyone found a solution? I am using keycloak 26.2.5

Reasons:
  • Blacklisted phrase (2): anyone found
  • RegEx Blacklisted phrase (3): Has anyone found
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Ahmed zeiss

79677227

Date: 2025-06-24 08:18:39
Score: 2.5
Natty:
Report link

On this example, you shoud use ""

cmdkey /generic:TERMSRV/"server"port /user:domain\JohnB /pass:sdf#$@4dwas

cmdkey /generic:TERMSRV/"server.domain.local"3333 /user:domain\JohnB /pass:sdf#$@4dwas

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

79677221

Date: 2025-06-24 08:15:38
Score: 1.5
Natty:
Report link

In the File > Account Settings menu
There is a list of all accounts, including GitHub subscriptions. There you can click on the three dots next to the account name. A menu will open with the option "Remove Account". Clicking on this button will remove the subscription that has finished using its resources.
then you can register to another free github account...

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

79677218

Date: 2025-06-24 08:14:37
Score: 4
Natty:
Report link

The issue was there was no container for Function App Code. I had to manually create one (named code-container) and specify it in the deployment settings.

enter image description here

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

79677217

Date: 2025-06-24 08:13:37
Score: 1.5
Natty:
Report link
$('.trumbowyg').trumbowyg({
    semantic: {
        'div': 'div' // Editor does nothing on div tags now
    }
});

will solve the problem
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: patrickstart974