79585119

Date: 2025-04-21 18:35:01
Score: 1
Natty:
Report link

In my case the default TargetFramework didn't work, I had to use Net.Net80

private readonly ReferenceAssemblies referenceAssemblies = Net.Net80
    .WithPackages([new PackageIdentity("Microsoft.EntityFrameworkCore", "8.0.11")]);
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: user29905907

79585112

Date: 2025-04-21 18:25:59
Score: 1
Natty:
Report link

You should specify Entrypoint like this

ENTRYPOINT [ "/lambda-entrypoint.sh" ]

Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: poisoned_monkey

79585108

Date: 2025-04-21 18:24:59
Score: 2.5
Natty:
Report link

There are unofficial ways to switch Python versions, try out this notebook for Python 3.8.

For additional details, see: https://github.com/j3soon/colab-python-version.

Reasons:
  • Probably link only (1):
  • Contains signature (1):
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: J3soon

79585105

Date: 2025-04-21 18:22:58
Score: 4
Natty: 4
Report link

Doesn't look like a bot token. Please send me a token of your bot. It should look like this:

123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11
Reasons:
  • RegEx Blacklisted phrase (2.5): Please send me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Nitesh Patel

79585101

Date: 2025-04-21 18:16:56
Score: 5
Natty: 5
Report link

May be you could just drag those apart-positioned window in android studio form and connect/drop to some edge of inner side in it?

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

79585093

Date: 2025-04-21 18:13:55
Score: 2
Natty:
Report link

Both ways are good, Usign the context directly without "Provider" property is a feature of React 19 version

For more information you can have a look on react 19 post with the new features released on the framework

https://react.dev/blog/2024/12/05/react-19#context-as-a-provider

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

79585084

Date: 2025-04-21 18:10:54
Score: 2
Natty:
Report link

from fpdf import FPDF

from PIL import Image

# Load the generated image

image_path = "/mnt/data/carbon_footprint_poster.png"

# Convert the image to A3 size in mm (A3 = 297 x 420 mm)

a3_width_mm = 297

a3_height_mm = 420

# Create a PDF with A3 size

pdf = FPDF(orientation='P', unit='mm', format='A3')

pdf.add_page()

pdf.image(image_path, x=0, y=0, w=a3_width_mm, h=a3_height_mm)

# Save the PDF

pdf_path = "/mnt/data/Carbon_Footprint_Poster.pdf"

pdf.output(pdf_path)

pdf_path

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

79585082

Date: 2025-04-21 18:08:54
Score: 1
Natty:
Report link
  1. open Windows Task Manager

  2. right click on emulator process

  3. select "Maximize"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • High reputation (-1):
Posted by: giorgio79

79585076

Date: 2025-04-21 18:00:52
Score: 0.5
Natty:
Report link

Ok here is what worked eventually:

On socketio definition

socketio = SocketIO(app, cors_allowed_origins="*", async_mode='threading')

(I did not have the async_mode set)

And then when initialising:

if __name__ == '__main__':
    socketio.start_background_task(start_stream_consumer, r, emit_leaderboard_updates)
    socketio.run(app, debug=True)

That seems to do the trick

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

79585070

Date: 2025-04-21 17:56:51
Score: 0.5
Natty:
Report link

I recommend syft by anchore. It is an open source tool that works reasonably well. It can also include dll files in the output, if you point it at a folder containing them. However, in my experience it can get the PURL and CPE wrong for dlls. If your goal is to compare the SBOM to vulnerability databases (using grype, for example), it won't work. And of course syft won't decompile the dlls for you and include their dependencies as well. I feel like .NET projects are extra tricky, because they offer so many ways of including dependencies. Syft doesn't recognise them all. You'll definetely have to do some experimentation on your project.

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

79585062

Date: 2025-04-21 17:52:50
Score: 1.5
Natty:
Report link

If anyone is having issues with Angular version 19 and using hmr, setting projects.{app-name}.architect.build.configurations.development.optimization.scripts: false in angular.json did the trick for me.

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

79585058

Date: 2025-04-21 17:48:49
Score: 0.5
Natty:
Report link

I redacted original Matt solution a bit.

@echo off
chcp 1251
::::::::::::::::::::::::::::::::::::::::::::
:: Elevate.cmd - Version 9 custom
:: Automatically check & get admin rights
:: see "https://stackoverflow.com/a/12264592/1016343" for description
::::::::::::::::::::::::::::::::::::::::::::
 CLS
 ECHO.
 ECHO =============================
 ECHO Running Admin shell
 ECHO =============================

:init
 setlocal DisableDelayedExpansion
 set cmdInvoke=1
 set winSysFolder=System32
 set "batchPath=%~dpnx0"
 rem this works also from cmd shell, other than %~0
 for %%k in (%0) do set batchName=%%~nk
 set "vbsGetPrivileges=%temp%\OEgetPriv_%batchName%.vbs"
 setlocal EnableDelayedExpansion

:checkPrivileges
  whoami /groups /nh | find "S-1-16-12288" > nul
  if '%errorlevel%' == '0' ( goto checkPrivileges2 ) else ( goto getPrivileges )


:checkPrivileges2
  net session 1>nul 2>NUL
  if '%errorlevel%' == '0' ( goto gotPrivileges ) else ( goto getPrivileges )

:getPrivileges
  if '%1'=='ELEV' (echo ELEV & shift /1 & goto gotPrivileges)
  ECHO.
  ECHO **************************************
  ECHO Invoking UAC for Privilege Escalation
  ECHO **************************************

  ECHO Set UAC = CreateObject^("Shell.Application"^) > "%vbsGetPrivileges%"
  ECHO args = "ELEV " >> "%vbsGetPrivileges%"
  ECHO For Each strArg in WScript.Arguments >> "%vbsGetPrivileges%"
  ECHO args = args ^& strArg ^& " "  >> "%vbsGetPrivileges%"
  ECHO Next >> "%vbsGetPrivileges%"
  
  if '%cmdInvoke%'=='1' goto InvokeCmd 

  ECHO UAC.ShellExecute "!batchPath!", args, "", "runas", 1 >> "%vbsGetPrivileges%"
  goto ExecElevation

:InvokeCmd
  ECHO args = "/c """ + "!batchPath!" + """ " + args >> "%vbsGetPrivileges%"
  ECHO UAC.ShellExecute "%SystemRoot%\%winSysFolder%\cmd.exe", args, "", "runas", 1 >> "%vbsGetPrivileges%"

:ExecElevation
 "%SystemRoot%\%winSysFolder%\WScript.exe" "%vbsGetPrivileges%" %*
 exit /B

:gotPrivileges
 setlocal & cd /d %~dp0
 if '%1'=='ELEV' (del "%vbsGetPrivileges%" 1>nul 2>nul  &  shift /1)

 ::::::::::::::::::::::::::::
 ::START
 ::::::::::::::::::::::::::::
 your code

Now its much less buggy and properly support both cyrillic and if/else parameters.

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Verity Freedom

79585041

Date: 2025-04-21 17:33:46
Score: 1.5
Natty:
Report link

Make sure that your Android Studio > Tools > SDK Manager > Flutter is pointing to the correct tools that you're using (e.g. fvm list if you're using fvm. Fixing the tools resolved this problem for me.

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

79585037

Date: 2025-04-21 17:31:46
Score: 1.5
Natty:
Report link

A .d.ts file is a type file. E.g. it would contain things like export type Alphabet = 'A' | 'B' | 'C'.

The purpose of the compiler is to transpile .ts files into .js files, so I don't think producing a single .d.ts file would've been perceived as a necessary feature.

See this StackOverflow post: About "*.d.ts" in TypeScript

I think what you really want to do is to compile everything into a single .js file. I believe webpack is the correct tool to use in this case.

Reasons:
  • Blacklisted phrase (1): StackOverflow
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: twistedmister

79585035

Date: 2025-04-21 17:30:46
Score: 2.5
Natty:
Report link

Stop using gnatmake and use gprbuild instead.

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

79585016

Date: 2025-04-21 17:17:42
Score: 1.5
Natty:
Report link

I located the test.py code on the same level as the my_project folder. I found that in addition to the following entry suggested by @bsraskr.

my_project/__init__.py

from . import draw

You also need:

my_project/draw/__init__.py

from .shapes import box
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @bsraskr
  • Low reputation (0.5):
Posted by: Charles Knell

79585015

Date: 2025-04-21 17:16:42
Score: 1.5
Natty:
Report link
from pathlib import Path
import shutil

# Create a small dummy video file to simulate a light version
dummy_video_path = Path("/mnt/data/final_house_video_light.mp4")
with open(dummy_video_path, "wb") as f:
    f.write(b'\x00' * 1024 * 1024 * 3)  # 3MB dummy file

dummy_video_path.name
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Kamran

79585013

Date: 2025-04-21 17:15:42
Score: 1
Natty:
Report link

You're almost there, just a small bug in your filter logic.

You're doing:

setSites(sites.filter((site, i) => index !== site[i]));

But site[i] doesn't make sense. You probably meant:

setSites(sites.filter((_, i) => i !== index));
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Chitranshu Sanket

79584988

Date: 2025-04-21 16:52:36
Score: 6 đŸš©
Natty:
Report link

Trying this but not getting the same error. I am facing something different.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): getting the same error
  • Single line (0.5):
  • Low reputation (1):
Posted by: namma singh

79584985

Date: 2025-04-21 16:46:34
Score: 0.5
Natty:
Report link

As nothing works for me. I will post my solution for this issue:
Check the logs in xcode or in flutter logs to see what is the problem.
For me it was the flutterfire. I executed the following command:
flutterfire configure
and then 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: Mohammad Hammadi

79584979

Date: 2025-04-21 16:44:34
Score: 2.5
Natty:
Report link

This error means that you're trying to use the .map() function on a variable that is currently undefined. To fix it, make sure the variable you're mapping over is actually an array by checking if it exists before calling .map(), using optional chaining like data?.map(...) or providing a default value like (data || []).map(...).

Reasons:
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Desmond Nana Adjei

79584966

Date: 2025-04-21 16:38:32
Score: 1
Natty:
Report link

I had the same issue, then I tried web version of telegram and it worked

Reasons:
  • Whitelisted phrase (-1): it worked
  • Whitelisted phrase (-1): I had the same
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: ĐšĐŸĐșсОĐș

79584965

Date: 2025-04-21 16:37:32
Score: 5
Natty: 4.5
Report link

Check my code in github with a working example: https://github.com/wolfdev1337/nextjs-socketio

Server code

Client code

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

79584958

Date: 2025-04-21 16:32:30
Score: 3
Natty:
Report link

Take a look at this page. Here is a very well explained solution for animations with different speed at different Monitor Framerates enter link description here

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

79584953

Date: 2025-04-21 16:29:30
Score: 1.5
Natty:
Report link

Turns out

snowflake_region = "us_east_2"

is the issue. I did not realize that snake_case'd regions means Azure and kebab-case'd means AWS

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

79584948

Date: 2025-04-21 16:26:29
Score: 1.5
Natty:
Report link

Here is the documentation for Spark configuration options: https://spark.apache.org/docs/3.5.5/configuration.html

And here are options for Parquet:
https://spark.apache.org/docs/3.5.5/sql-data-sources-parquet.html
You can also find other formats' options in the list on the left.

The links are for 3.5.5, but I assume they'll be the same or similar for the older/newer versions.

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

79584944

Date: 2025-04-21 16:25:28
Score: 1
Natty:
Report link

Mine worked with premium license and have 1. installed the gateway ensure that you publish your report on your premium workspace (Diamond icon there you will see) just publish on your workspace.

How to publish you do this File > Publish > Publish to Power BI

After this ensure you link your dataset to the gateway let's say its SQL Server right add your password etc to link it ensure its correct.

Under dataset settings you have to enable "Schedule Refresh"

The catch here is the user should have Powerbi Pro or Premium

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

79584935

Date: 2025-04-21 16:19:27
Score: 0.5
Natty:
Report link

For me, the answer was in the error:

Unable to create a ConnectionFactory for 'ConnectionFactoryOptions{options={database=boot, host=localhost, createDatabaseIfNotExist=true, driver=mysql, useUnicode=true, password=REDACTED, useJDBCCompliantTimezoneShift=true, useLegacyDatetimeCode=false, port=3306, user=root}}'.
Available drivers: [ mariadb, pool ]

Its was looking for a mariadb DRIVER(NOT mysql). I merely had to change the url to point to the mariadb driver.

I would suggest when seeing this error to go back over your config and see what you missed.

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

79584922

Date: 2025-04-21 16:07:23
Score: 4
Natty:
Report link

Claro, aquĂ­ tienes una mejor redacciĂłn:


“Una solución es simplemente ejecutar el servidor con:

php artisan serve --host=0.0.0.0 --port=8001

Luego, consumir la API utilizando la dirección IP local (IPv4) que obtienes ejecutando el comando ipconfig.”

Reasons:
  • Blacklisted phrase (3): soluciĂłn
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Prueba

79584916

Date: 2025-04-21 15:59:22
Score: 1
Natty:
Report link

I tried the above answer using:

rownames(mat.z)[row_order(ht)]
Error in rownames(mat.z)[row_order(ht)] : 
  invalid subscript type 'list'

And got this error so instead I did:

ht <- draw(ht)
order <- row_order(ht)
order_unlist <- unlist(order)
rownames(mat.z)[order_unlist]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Melody Hancock

79584915

Date: 2025-04-21 15:58:21
Score: 2
Natty:
Report link

I ran into this problem. After much investigation it turned out, in my case, that our works security configs (firewall and layers of VMs) was somehow preventing the emulator from sending control signals to the dev server. The fix for me was to run the dev server in a tunnel.

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

79584911

Date: 2025-04-21 15:55:20
Score: 5.5
Natty:
Report link

I forked your code and make some change, is this what u want? enter image description here

https://codesandbox.io/p/devbox/mui-persistantdrawerleft-forked-j22q5l?workspaceId=ws_UMhkCVPxq8yi6pfH8Fwg1o

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Ghost

79584901

Date: 2025-04-21 15:49:18
Score: 4
Natty: 4
Report link

If you're trying to clear HSTS settings for localhost in Chrome, this guide explains it step by step using
https://aspdotnetpb.blogspot.com/2024/11/how-to-use-chromenet-internalshsts-to.html

It helped me fix issues with Chrome forcing HTTPS on local projects.

Reasons:
  • Blacklisted phrase (1): this guide
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: pratik

79584900

Date: 2025-04-21 15:46:17
Score: 1.5
Natty:
Report link

As per the React Native docs at the time of writing:

If you already have a JDK on your system, we recommend JDK17. You may encounter problems using higher JDK versions.

As you can see from other answers, this may change as React Native is updated.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: dylan-myers

79584899

Date: 2025-04-21 15:45:17
Score: 0.5
Natty:
Report link

This is thrown by the timm package. Checkout this line in the source code.

For me it was thrown for version timm==0.5.4. Upgrading the latest version (via pip install --upgrade timm) solved the issue.

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

79584889

Date: 2025-04-21 15:38:15
Score: 1
Natty:
Report link

It can be done. The backend java programs have to be called through another scripting interface. From your front end, you could call PHP which intern calls your java wrapped in bash to perform strictly backend tasks, CRUD, data processing, cross platform RMI, email processing, and anything which you could do with java. Your java environment has to be well resourced.

With the resources well in place, speeds and reliability would be attained better than working with Spring. Spring has its own overheads.

I did this on Linux and Unix. I have never tried it on Windows.

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

79584888

Date: 2025-04-21 15:36:14
Score: 3
Natty:
Report link

Maybe check if the gateway was installed correctly? or Sometimes its not mapped. I did encountered once before that my password was expired in the datasource that's why it didnt refreshed.

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

79584887

Date: 2025-04-21 15:35:13
Score: 11.5 đŸš©
Natty: 6.5
Report link

did you solve it?. I am facing the same issue

Reasons:
  • RegEx Blacklisted phrase (3): did you solve it
  • RegEx Blacklisted phrase (1.5): solve it?
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I am facing the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did you solve it
  • Low reputation (1):
Posted by: Javier

79584886

Date: 2025-04-21 15:35:13
Score: 0.5
Natty:
Report link

This is not exactly what you asked for, but this is a popular question and more people may need what I needed.

To get the variable's name only, without its value (Python 3.8 and above):

def varname(var_name_from_fstring: str) -> str:
    return var_name_from_fstring.split("=", maxsplit=1)[0]

my_variable = "blah"
name = varname(f"{my_variable=}")
print(name)

# Prints "my_variable"
Reasons:
  • Blacklisted phrase (0.5): I need
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Noam-N

79584881

Date: 2025-04-21 15:32:12
Score: 1
Natty:
Report link

For me, I was using GraalVM as a JDK on Mac M1. Moving to Azul JDK 17 as described in the official docs helped.

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

79584873

Date: 2025-04-21 15:29:11
Score: 4
Natty:
Report link

file:///private/var/mobile/Library/Mobile%20Documents/com~apple~CloudDocs/Downloads/%D0%BD%D0%BE%D0%B2%D0%B0%D1%8F%20%D0%BF%D0%B0%D0%BF%D0%BA%D0%B0/%D0%9C%D0%BE%D0%B9_%D0%BD%D0%BE%D0%B2%D1%8B%D0%B9_%D0%BC%D0%B8%D1%80_Zulya_%D0%B5%D0%B6%D0%B5%D0%B4%D0%BD%D0%B5%D0%B2%D0%BD%D0%B8%D0%BA.docx%204.download

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

79584863

Date: 2025-04-21 15:23:09
Score: 2
Natty:
Report link

There is my example how to make the isometric tiles with multiple layers (Z):
https://love2d.org/forums/viewtopic.php?p=261907#p261907

You are need the depthOffset to make the right y-on-screen offset for every Z layer.

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

79584856

Date: 2025-04-21 15:14:07
Score: 3
Natty:
Report link

try to increase docker resources through docker desktop and it will fix the issue

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

79584842

Date: 2025-04-21 15:03:04
Score: 0.5
Natty:
Report link

Here is a quick fix that works for windows:

On the package.json file edit the start command

 "start": "set NODE_OPTIONS=--openssl-legacy-provider && react-scripts start",
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: Abishe G Chhetri

79584839

Date: 2025-04-21 15:00:04
Score: 1.5
Natty:
Report link

We also ended up getting this error in the following fashion.

  1. AspNetCore 8.0 app compiled to be an x86 application

  2. A newer version of AspNetCore was loaded for x64 than for x86 on the server (from a patch)

The resulting scenario was that it saw that the newer version was there, but in trying to run with the latest, but did not recognize that the latest was not the same architecture as the application.

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

79584827

Date: 2025-04-21 14:53:02
Score: 2
Natty:
Report link

If you're working with multiple projects in Visual Studio and want to open them in a single browser window—such as when dealing with a front-end/back-end setup—I've written a detailed guide that might help. It walks through how to configure your launch settings and set up project dependencies so everything runs seamlessly together in one browser tab. You can check it out here: Open Multiple Projects in One Browser - Visual Studio. Hope it helps someone facing the same challenge!

Reasons:
  • Blacklisted phrase (0.5): check it out
  • Whitelisted phrase (-1): Hope it helps
  • No code block (0.5):
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: pratik

79584820

Date: 2025-04-21 14:48:01
Score: 3
Natty:
Report link

Yes, Same as in mobile apps and desktop.

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

79584815

Date: 2025-04-21 14:43:00
Score: 1
Natty:
Report link

I’ve worked with Apache NiFi for similar use cases, and it can be quite effective, depending on your ETL requirements.

What works well with NiFi:

Limitations to keep in mind:

For data quality, governance, version control, and enterprise support, I would suggest using Data Flow Manager. With this, you can deploy NiFi data flows using its graphical user interface, version control your NiFi data flows, and get support all the time from experts.

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

79584812

Date: 2025-04-21 14:40:59
Score: 1.5
Natty:
Report link

The issue was I had wrapped the add_filter calls inside an is_admin() check – which does not work with REST API. I suppose the check wasn't essential anyway, since upload attempts from unauthorized users should be rejected regardless of mime-type.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Johan Martin Aarstein

79584811

Date: 2025-04-21 14:39:59
Score: 3.5
Natty:
Report link

I have no idea where I came across this bit of information but it was in regards to jQuery and rails.

... Make sure you do not have

defer: true

Reasons:
  • Blacklisted phrase (1): regards
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Baden Rushworth

79584803

Date: 2025-04-21 14:34:58
Score: 0.5
Natty:
Report link

There's a great library for this now (I know the question was asked 13 years ago!)

But anyone who is still looking..

https://github.com/adbario/php-dot-notation

Reasons:
  • Low length (1):
  • No code block (0.5):
  • High reputation (-1):
Posted by: Tac Tacelosky

79584801

Date: 2025-04-21 14:31:56
Score: 7.5 đŸš©
Natty: 5.5
Report link

I have the same problem. .... .

Reasons:
  • Blacklisted phrase (1): I have the same problem
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): I have the same problem
  • Single line (0.5):
  • Low reputation (1):
Posted by: Văn ThÆ°ÆĄng Đào

79584795

Date: 2025-04-21 14:27:55
Score: 1
Natty:
Report link
import pandas as pd
pd.set_option('display.max_colwidth', None)  # Disables truncation
df = pd.read_csv("your_data.csv")  # Load your dataset
df["article_column"]  # Now the full text will display
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: aterzgar

79584794

Date: 2025-04-21 14:26:55
Score: 3.5
Natty:
Report link

import { default as thunk } from "redux-thunk"; // Updated import

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

79584793

Date: 2025-04-21 14:24:52
Score: 8 đŸš©
Natty:
Report link

Does anybody have an update on the future of using VS Code for Office Scripts?

Do we know why Microsoft pulled their support? If they aren't interested in supporting Office Scripts, I am reluctant to use it....

Reasons:
  • RegEx Blacklisted phrase (3): Does anybody have an update
  • RegEx Blacklisted phrase (2.5): Do we know why
  • Low length (0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: namgaw

79584788

Date: 2025-04-21 14:19:50
Score: 3.5
Natty:
Report link

Here is a reference to issue on the nextjs tutorial that had the same problem. https://github.com/vercel/next.js/discussions/76822

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

79584786

Date: 2025-04-21 14:19:50
Score: 2.5
Natty:
Report link

My name and address me know my all many times Cash Wise Diary ok545992917 my house nombar 24 .10 Baiynes Abudabe

Ok

Welcome to Gboard clipboard, any text you copy will be saved here.Tap on a clip to paste it in the text box.S

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

79584784

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

Nice one! I "cheated" and declared (but never instantiated) several RichtextBoxes just to hold the rich-text for several different 'high level types' (data for All-Time, data for filtered by Date-Span and other 'user types'). Then, depending on the "view" I wanted, I simply copy the appropriate (pre-filtered on rtf-file-load and parse) richextbox..rtf to the one and only visible and instantiated richtextbox.

I know it's NOT EXACTLY what you were doing, but it's prettry similar in nature.

NIce one with the stream though!

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

79584783

Date: 2025-04-21 14:18:50
Score: 2
Natty:
Report link

Check https://github.com/GoogleCloudPlatform/python-docs-samples/tree/main/dataflow/flex-templates/pipeline_with_dependencies#build-the-flex-template

You should build your SDK_CONTAINER_IMAGE first and use it like this

--image $SDK_CONTAINER_IMAGE

not

--image-gcr-path
Reasons:
  • Probably link only (1):
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: XQ Hu

79584782

Date: 2025-04-21 14:18:50
Score: 3
Natty:
Report link

Got this error simply because the wrong schema was selected in DataGrip.

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

79584768

Date: 2025-04-21 14:06:47
Score: 0.5
Natty:
Report link

There is a tool that should perfectly do what you want: LgpCli on GitHub.
It has two modi:
a) find, inspect and set policy (like GPEdit) this can also help to create the commandline
b) commandline - just use this in your script to set the policy

sample preview of using LgpCli so your final command would be:

LgpCli disable wuau.AutoUpdateCfg Machine

There is also a page that should explain how policies work: Policies Description

Disclaimer: I'm the author of that tool, however it is not commercial, free to use and open source.

Reasons:
  • Contains signature (1):
  • Has code block (-0.5):
Posted by: BerndK

79584763

Date: 2025-04-21 14:02:46
Score: 1
Natty:
Report link

httpx[http2] just adds the h2 package try adding it manually by :

python3 -m pip install --user httpx h2

and i recommend to use virtual environment as it avoids any system level limitations:

python3 -m venv venv
source venv/bin/activate
pip install httpx[http2]

it should work now

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

79584758

Date: 2025-04-21 13:59:45
Score: 1.5
Natty:
Report link

Quick answer, this will add the file and commit message

git add path/to/filename && git commit -m "your commit message"
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Daniel Tobi

79584753

Date: 2025-04-21 13:56:44
Score: 2
Natty:
Report link

If you use esbuild to build your typescript, you need to use something like https://github.com/thomaschaaf/esbuild-plugin-tsc

so esbuild converts decorators.

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

79584748

Date: 2025-04-21 13:54:44
Score: 1
Natty:
Report link

You can put a macro in the sheet tab that upon edit moves any data to the corresponding cell in the other sheet, if that is what you are looking for.

I've not done it, so I don't have concrete guidance for you - but if you search stack overflow for sheet level macros that execute upon edit you'll likely get something that does what you are looking for.

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

79584746

Date: 2025-04-21 13:53:43
Score: 1.5
Natty:
Report link

For me (on ubuntu), worked running:

sudo apt-get install libpq-dev and then running sudo pip install psycopg2 , If you run without sudo it won't work.

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

79584736

Date: 2025-04-21 13:47:41
Score: 5
Natty:
Report link

That package supports Handlebars a11y: https://www.npmjs.com/package/ember-template-lint

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

79584731

Date: 2025-04-21 13:42:40
Score: 2.5
Natty:
Report link

You can check this documentation. It explains well about Class Based Views in Fast API. And I guess it's official documentation, so this will gonna be correct way to use Classes for routers.
https://fastapi-utils.davidmontague.xyz/user-guide/class-based-views/

Reasons:
  • Blacklisted phrase (1): this document
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Kanha Tomar

79584730

Date: 2025-04-21 13:41:40
Score: 0.5
Natty:
Report link

You may try:

=tocol(arrayformula(if(B2:D4="Copper",A2:A4&","&B1:D1,)),1)

enter image description here

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • High reputation (-2):
Posted by: rockinfreakshow

79584727

Date: 2025-04-21 13:37:39
Score: 1.5
Natty:
Report link

I have done everything in here. I have even gotten in touch with apple support. But it all comes down to this.

You do not have to do all three set of steps down here. It goes from less intrusive to a more intrusive approach.

Config Steps

  1. Make sure your phone is up to date.

  2. Make sure the needed support for your phone's version exists on your computer.

  3. Make sure you have your phone config set correctly.

IN CASE STEPS 1-3 did not work:

Reset Steps

  1. Reset your computer's configs (obs: this is not formatting)

  2. Reset your phone's configs (obs: this is not formatting)

Formatting Steps

This is a more extreme scenario

  1. (back up your computer) Format your [mac] computer

  2. (back up your phone) Format your [iOS] iPhone

Reasons:
  • Blacklisted phrase (1): did not work
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Victor Matos

79584720

Date: 2025-04-21 13:31:38
Score: 1
Natty:
Report link

Update your app's icon assets in Xcode:

Additional Tips

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

79584715

Date: 2025-04-21 13:27:37
Score: 3.5
Natty:
Report link

I've upgrade Kotlin version and solved my problem

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

79584709

Date: 2025-04-21 13:22:35
Score: 0.5
Natty:
Report link

This should be resolved in the latest v8.7.1 which is now available in the pre-release packages

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

79584692

Date: 2025-04-21 13:11:33
Score: 1
Natty:
Report link

Even if you do not have --system-site-package, I can use TensorRT from conda by following the steps below. However, this method does not allow you to use TensorRT installed with apt directly from a conda environment.

$ conda create -n trt_exec python=3.10
$ conda activate trt_exec
$ pip install nvidia-pyindex
$ pip install nvidia-tensorrt
$ pip install scipy
$ pip install opencv-python
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Shinobu HUYUGIRI

79584690

Date: 2025-04-21 13:10:32
Score: 5.5
Natty:
Report link

Have you checked your extensions or tried using Incognito Mode?

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

79584683

Date: 2025-04-21 13:07:31
Score: 0.5
Natty:
Report link

It means that your are using ! on a null value

example:

bool? b;
try {
  print(b!);
} catch (e) {
  print(e);// this will print the error you got
}

the use of ! on a nullable value, means that you are sure that the value is not null

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

79584676

Date: 2025-04-21 13:04:30
Score: 1
Natty:
Report link

Solved using ChatGPT

=BYROW(Q10:Q55, LAMBDA(assetGroup,
    SUM(
        FILTER(
            Tbl_Assets[WDV on Year 0],
            (Tbl_Assets[Asset Group as per Co. Act (SCH II)] = assetGroup) *
            ((Tbl_Assets[Disposal Date] > StartDate) + (Tbl_Assets[Disposal Date] = 0)),
            0
        )
    )
))
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Deepak Sugandhi

79584674

Date: 2025-04-21 13:02:29
Score: 6 đŸš©
Natty: 4.5
Report link

I know this is way old, but I got here via a search. Stop an app by deleting the <project>-anchor.txt file in the <AnypointStudio path>\plugins\org.mule.tooling.server.<your server version>\mule\apps folder.

First, thanks for that.

Second did you manage to do this?

"you can enable the mule run time in preferences tab of anypoint studio.

That is easiest way to stop specific applications on anypoint studio"?

Reasons:
  • Blacklisted phrase (0.5): thanks
  • RegEx Blacklisted phrase (3): did you manage to
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: allanwa

79584670

Date: 2025-04-21 13:00:28
Score: 1.5
Natty:
Report link

Harshank Bansal provided the correct answer. If you want to post your comment as an answer I will mark it correct.

Adding those imports in the global.xml made the XMLs visible to each other.

Unfortunately for us, once the flows were all universally visible, we learned that a universal logging component that we have in all of our Mule 3 projects is very much incompatible with Mule 4 so we may just end up doing a ground up re-write after all.

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

79584667

Date: 2025-04-21 12:56:28
Score: 2
Natty:
Report link

You have a typo in your

def __int__(self):
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: TĂ n DÆ°ÆĄng

79584657

Date: 2025-04-21 12:51:26
Score: 2
Natty:
Report link

Please set up your environment properly using the CLI, and make sure to run the script from the exact path or folder.
If you’re using a Windows machine, ensure that the terminal is Command Prompt (CMD) instead of PowerShell.

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

79584654

Date: 2025-04-21 12:45:25
Score: 1
Natty:
Report link

Starting with Bootstrap 4, the '.col-xs-*' class is no longer used. For reference, see the official blog post:

Bootstrap 4 Alpha 6

Back in Bootstrap 3, .col-xs-* was how you handled layouts for extra small screens. But with Bootstrap 4 and up, things got simpler thanks to a mobile-first approach.

You don’t need a special class for extra small devices anymore. Just use .col-* without any breakpoint prefix—it automatically applies to screens smaller than 576px.

If you're working with different layouts for various screen sizes, you can still use classes like .col-sm-*, .col-md-*, and so on for small, medium, and larger devices. For extra small (XS) screens, just stick with .col-* and set the value you need.

For more details, refer to the Bootstrap 4 Grid documentation:

Grid system

Reasons:
  • Blacklisted phrase (0.5): thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: Olga S

79584653

Date: 2025-04-21 12:45:25
Score: 2
Natty:
Report link

If this is an issue for anyone else I found that the boilerplate CSS that was being imported was overwriting the behaviour. I would double check there isn't a top level css file with body CSS that is taking priority.

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

79584646

Date: 2025-04-21 12:42:24
Score: 0.5
Natty:
Report link

Even I faced the same problem a few hours ago.
Got to know the sdfx command is old and not supported in certain OS.
Try using sf instead.
Worked for me!

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jibesh04

79584645

Date: 2025-04-21 12:42:23
Score: 7.5 đŸš©
Natty: 5
Report link

Is your Apache vhost appropriately mapped and confiigured for OpenProject? Can you provide the conf details?

Reasons:
  • RegEx Blacklisted phrase (2.5): Can you provide
  • Low length (1):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: RadWebHosting

79584644

Date: 2025-04-21 12:40:22
Score: 1.5
Natty:
Report link

In my case, check git modified file if the config is misconfig.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: yu yang Jian

79584639

Date: 2025-04-21 12:38:22
Score: 1
Natty:
Report link


<intent-filter>
    <action android:name="android.intent.action.VIEW"/>

    <category android:name="android.intent.category.DEFAULT"/>
    <category android:name="android.intent.category.BROWSABLE"/>

    <data
        android:host="com.android.settings"
        android:path="/settings"
        android:scheme="com.android"/>
</intent-filter>
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Nick

79584636

Date: 2025-04-21 12:34:21
Score: 1
Natty:
Report link

If you want to rename "Email address" to something else (e.g., "Your Email"):

add_filter( 'woocommerce_checkout_fields', 'custom_email_label_checkout' );
function custom_email_label_checkout( $fields ) {
    $fields['billing']['billing_email']['label'] = 'Your Email';
    return $fields;
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: wishinfo

79584633

Date: 2025-04-21 12:32:20
Score: 3
Natty:
Report link

This error occurs when the Chrome extension is enabled. If you disable it, the error is gone. This happens in Next.js 15.2

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

79584629

Date: 2025-04-21 12:30:20
Score: 3
Natty:
Report link

External hyperlinks to Excel files may break if they are moved, renamed, or have their path changed.

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

79584618

Date: 2025-04-21 12:24:18
Score: 1
Natty:
Report link

I was testing codex cli from openai on windows. Reinstalling Git to latest version resolved my issue.

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

79584596

Date: 2025-04-21 12:11:15
Score: 1.5
Natty:
Report link

i use httpclient instead of Sardine and it work

<dependency>
    <groupId>org.apache.httpcomponents</groupId>
    <artifactId>httpclient</artifactId>
    <version>4.5.14</version>
</dependency>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Ahmed Hassine

79584593

Date: 2025-04-21 12:10:15
Score: 0.5
Natty:
Report link

import matplotlib.pyplot as plt

import numpy as np

# Simulated data

time = np.arange(0, 10, 0.5)

hydrogen_rate = np.random.normal(loc=2.0, scale=0.2, size=len(time))

energy_consumption = np.random.normal(loc=50, scale=5, size=len(time))

voltage = np.random.normal(loc=1.8, scale=0.05, size=len(time))

efficiency = 100 / energy_consumption # Simplified efficiency metric

# Create subplots

fig, axs = plt.subplots(2, 2, figsize=(12, 8))

fig.suptitle('Hydrogen Production Data Overview')

# Chart 1: Hydrogen Production Rate Over Time

axs[0, 0].plot(time, hydrogen_rate, marker='o', color='green')

axs[0, 0].set_title('Hydrogen Production Rate Over Time')

axs[0, 0].set_xlabel('Time (hours)')

axs[0, 0].set_ylabel('H₂ Rate (Nm³/h)')

# Chart 2: Energy Consumption per kg of H₂

axs[0, 1].plot(time, energy_consumption, marker='s', color='blue')

axs[0, 1].set_title('Energy Consumption per kg H₂')

axs[0, 1].set_xlabel('Time (hours)')

axs[0, 1].set_ylabel('Energy (kWh/kg)')

# Chart 3: Voltage vs Time

axs[1, 0].plot(time, voltage, marker='x', color='red')

axs[1, 0].set_title('Cell Voltage Over Time')

axs[1, 0].set_xlabel('Time (hours)')

axs[1, 0].set_ylabel('Voltage (V)')

# Chart 4: Efficiency Over Time

axs[1, 1].plot(time, efficiency, marker='^', color='purple')

axs[1, 1].set_title('Efficiency Over Time')

axs[1, 1].set_xlabel('Time (hours)')

axs[1, 1].set_ylabel('Efficiency (kg H₂/kWh)')

plt.tight_layout(rect=[0, 0.03, 1, 0.95])

plt.show()

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

79584589

Date: 2025-04-21 12:07:14
Score: 1.5
Natty:
Report link

Yes..

First, some tables for testing.



    IF OBJECT_ID('FIFO_BUYING') IS NOT NULL DROP TABLE FIFO_BUYING;
    IF OBJECT_ID('FIFO_SELLING') IS NOT NULL DROP TABLE FIFO_SELLING;
    
    CREATE TABLE FIFO_BUYING (
        ID INT IDENTITY(1,1) PRIMARY KEY,
        [DATE] DATETIME,
        UNIT_PRICE DECIMAL(18,2),
        QUANTITY DECIMAL(18,2)
    );
    
    CREATE TABLE FIFO_SELLING (
        ID INT IDENTITY(1,1) PRIMARY KEY,
        [DATE] DATETIME,
        UNIT_PRICE DECIMAL(18,2),
        QUANTITY DECIMAL(18,2)
    );
    
    INSERT INTO FIFO_BUYING ([DATE], [UNIT_PRICE], [QUANTITY]) VALUES
    ('2023-01-01 16:01', 100.0, 2.0),
    ('2023-01-08 13:40', 105.0, 4.0),
    ('2023-01-08 14:11', 102.0, 2.0),
    ('2023-01-12 14:00', 101.0, 7.0),
    ('2023-01-14 17:55', 103.0, 5.0);
    
    INSERT INTO FIFO_SELLING ([DATE], [UNIT_PRICE], [QUANTITY]) VALUES
    ('2023-01-02 10:21', 150.0, 1.0),
    ('2023-01-08 13:45', 140.0, 3.0),
    ('2023-01-10 17:30', 145.0, 3.0),
    ('2023-01-10 17:55', 130.0, 5.0),
    ('2023-01-15 12:15', 135.0, 6.0);

before we join tables we will need cumulative quantities. that will help us pair right rows with each other. elimineting unnecessary matches is the key for performance. there are many ways to do it but Its simple with "SUM(...) OVER (ORDER BY ...)".

The join will do all the job. so i need to explain this a little further.

WITH OrderedBuy AS (
    SELECT TOP 100 PERCENT 
        *,
        SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
    FROM FIFO_BUYING
    ORDER BY [DATE]
),
OrderedSell AS (
    SELECT TOP 100 PERCENT
        *,
        SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
    FROM FIFO_SELLING
    ORDER BY [DATE]
)
select *
FROM OrderedBuy B
JOIN OrderedSell S
  ON (B.CUMULATIVE_QUANTITY - B.QUANTITY) < S.CUMULATIVE_QUANTITY
 AND (S.CUMULATIVE_QUANTITY - S.QUANTITY) < B.CUMULATIVE_QUANTITY

First, what does CUMULATIVE_QUANTITY - QUANTITY mean?

That gives us the starting point of that row’s block. So:

Same idea for selling:

Now the join becomes:

That’s what this checks:

Which is classic interval overlap logic. You’ve probably used it before in date ranges or scheduling overlaps.

Just replace "date ranges" with "quantity ranges"

That’s all.

Note that having precalculated cumulative quantities will impact performance dramaticly

and final query will be like;

WITH OrderedBuy AS (
    SELECT TOP 100 PERCENT 
        *,
        SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
    FROM FIFO_BUYING
    ORDER BY [DATE]
),
OrderedSell AS (
    SELECT TOP 100 PERCENT
        *,
        SUM(QUANTITY) OVER (ORDER BY [DATE]) AS CUMULATIVE_QUANTITY
    FROM FIFO_SELLING
    ORDER BY [DATE]
)
SELECT 
    B.[DATE] AS BuyDate,
    B.UNIT_PRICE AS BuyPrice,
    B.QUANTITY AS BuyQty,
    B.CUMULATIVE_QUANTITY AS BuyCumQty,

    S.[DATE] AS SellDate,
    S.UNIT_PRICE AS SellPrice,
    S.QUANTITY AS SellQty,
    S.CUMULATIVE_QUANTITY AS SellCumQty,
    GREATEST(0,
        LEAST(B.CUMULATIVE_QUANTITY, S.CUMULATIVE_QUANTITY)
        - GREATEST(B.CUMULATIVE_QUANTITY - B.QUANTITY, S.CUMULATIVE_QUANTITY - S.QUANTITY)
    ) AS ProcessQty,
    ROUND((S.UNIT_PRICE - B.UNIT_PRICE) *
        GREATEST(0,
            LEAST(B.CUMULATIVE_QUANTITY, S.CUMULATIVE_QUANTITY)
            - GREATEST(B.CUMULATIVE_QUANTITY - B.QUANTITY, S.CUMULATIVE_QUANTITY - S.QUANTITY)
        ), 2) AS Profit
FROM OrderedBuy B
JOIN OrderedSell S
  ON (B.CUMULATIVE_QUANTITY - B.QUANTITY) < S.CUMULATIVE_QUANTITY
 AND (S.CUMULATIVE_QUANTITY - S.QUANTITY) < B.CUMULATIVE_QUANTITY

ProcessQty is something else to be careful with. there are ways more than one to calculate it.. like using LAG function to check with the qty on previous row but you still need something for first row..

PROCESS_QTY= ABS(Lag(B.CUMULATIVE_QUANTITY, 1) OVER(ORDER BY S.DATE ASC)-Lag(S.CUMULATIVE_QUANTITY, 1) OVER(ORDER BY S.DATE ASC))

at the end this is the aswer of "How many units from this buying row match with this selling row?". Nothing special.

Reasons:
  • Blacklisted phrase (0.5): i need
  • RegEx Blacklisted phrase (1): help us
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Serkan Ekßioğlu

79584581

Date: 2025-04-21 12:03:13
Score: 0.5
Natty:
Report link

You started with a Vue 2 Options API component using: vue-chartjs's component, some mixins,and props for chart data. To convert this Vue 2 component into a class-based component using TypeScript, you’ll want to use "vue-class-component" and "vue-property-decorator". These are two decorator-based libraries that enable class-style Vue development. "vue-class-component" allows defining components as ES6 classes. "vue-property-decorator" gives us decorators like @Prop, @Emit, @Watch, etc.

Firstly, you will have to install dependencies if you haven't already. Type this in your terminal:

npm install vue-class-component vue-property-decorator --save

The solution to this is outlined below:

<script lang="ts">
import { Component, Prop, Mixins } from 'vue-property-decorator'
import { Line } from 'vue-chartjs'
import { chartLast30Days, chartStylingMethods } from '#/mixins'
import { myChartOptions } from '#/const/charts'

@Component
export default class MyLineChart extends Mixins(Line, chartLast30Days, chartStylingMethods) {
  @Prop({ type: Array }) chartPointsDownloads!: any[]
  @Prop({ type: Array }) chartPointsPlays!: any[]
  @Prop({ type: Array }) chartPointsSales!: any[]

  mounted() {
    this.renderChart({
      labels: ['Jan', 'Feb', 'Mar'],
      datasets: [
        {
          label: 'Downloads',
          data: this.chartPointsDownloads,
          backgroundColor: '#f87979',
        }
      ]
    }, myChartOptions)
  }
}
</script>

@Component makes the class a Vue component. extends Mixins(...) allows us to inherit from line (from vue-chartjs) and your mixins (chartLast30Days, chartStylingMethods). So instead of "extends: Line" and "mixins: [...]", we do both using Mixins() from "vue-class-component". @Prop are the props passed to the component, just like in your original props: {...} block. mounted() is the lifecycle hook that runs when the component is inserted into the DOM. renderChart() comes from Line, and lets you draw the chart with custom data. You pass in a dataset (from props) and your myChartOptions.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • User mentioned (1): @Prop
  • User mentioned (0): @Emit
  • User mentioned (0): @Watch
  • User mentioned (0): @Prop
  • Low reputation (1):
Posted by: sasha schukken

79584579

Date: 2025-04-21 12:01:12
Score: 1.5
Natty:
Report link

If you are on Mac try going to Volumes

cd /Volumes

then lookup what volumes are currently in there

ls

if you see your directory then navigate to it

cd YOUR_DIRECTORY_NAME

if this works get the path

pwd

Try that! Worked for me to run a local node tool across my local network.

Reasons:
  • Whitelisted phrase (-1): Worked for me
  • Low length (0.5):
  • No code block (0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: user30330343

79584575

Date: 2025-04-21 11:58:11
Score: 4.5
Natty:
Report link

This is actually a question. How can the technique of using MapViewOfFileEx to map at a particular address be safely used? From my tests, admittedly limited, the memory address in question has to be free. What’s to stop another thread from scooping up the virtual addresses?

Reasons:
  • Blacklisted phrase (1): This is actually a question
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
Posted by: Steve

79584572

Date: 2025-04-21 11:55:10
Score: 4
Natty:
Report link

I was trying to resolve this one, but there are problems. Have a look at this code snippet:

#include <stdio.h>
#include <stdlib.h>
#include <xcb/xcb.h>
#include <xcb/shm.h>
#include <xcb/xcb_image.h>
#include <sys/shm.h> // shmget
#include <unistd.h> // usleep

#include <inttypes.h> // PRIu8
#include <wchar.h>   // wmemset

int main(void) {
  xcb_connection_t    *c;
  xcb_screen_t        *s;
  xcb_window_t         w;
  xcb_gcontext_t       g;
  xcb_generic_event_t *e;
  uint32_t             mask;
  uint32_t             values[2];
  int                  done = 0;
  xcb_rectangle_t      r = { 20, 20, 160, 160 };

  int ww= 600, wh = 400, wx = 800, wy = 500;
  xcb_rectangle_t      wr = { 0, 0, 800, 600 };

  c = xcb_connect(NULL,NULL);
  if (xcb_connection_has_error(c)) {
    printf("Cannot open display\n");
    exit(EXIT_FAILURE);
  }

  const xcb_setup_t* setup = xcb_get_setup(c);
  s = xcb_setup_roots_iterator( setup ).data;

 // create black graphics context
  g = xcb_generate_id(c);
  w = s->root;
  mask = XCB_GC_FOREGROUND | XCB_GC_GRAPHICS_EXPOSURES;
  values[0] = s->white_pixel;
  values[1] = 0;
  xcb_create_gc(c, g, w, mask, values);

 // create window
  w = xcb_generate_id(c);
  mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK;
  values[0] = s->black_pixel;
  values[1] = XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_KEY_PRESS;
  xcb_create_window(c, s->root_depth, w, s->root,
                    (s->width_in_pixels  / 2) - (600 / 2),
                    (s->height_in_pixels / 2) - (400 / 2), 600, 400, 10,
                    XCB_WINDOW_CLASS_INPUT_OUTPUT, s->root_visual,
                    mask, values);

  xcb_map_window(c, w);


 // An attempt in mask preparation
  xcb_pixmap_t cm1 = xcb_generate_id( c );
  xcb_create_pixmap (c, 1, cm1, w, ww, wh); // depth = 1
//  xcb_gcontext_t gm1 = xcb_generate_id(c);                      // <- 3
//  mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND;
//  values[0] = s->white_pixel;
//  values[1] = s->black_pixel;
//  xcb_create_gc(c, gm1, cm1, mask, values);

 // The buffer where all the drawing shall be done
  xcb_pixmap_t pix = xcb_generate_id( c );
  xcb_create_pixmap (c, s->root_depth, pix, w, ww, wh);
  xcb_gcontext_t fill = xcb_generate_id(c);
  mask = XCB_GC_FOREGROUND | XCB_GC_BACKGROUND | XCB_GC_CLIP_MASK;
  values[0] = 0xdc143c;
  values[1] = s->black_pixel;
  values[2] = XCB_NONE;                                            // <- 2
  xcb_create_gc(c, fill, pix, mask, values);

//  xcb_change_gc(c, fill, XCB_GC_CLIP_MASK, (uint32_t[]){ cm1 }); // <- 1
//  xcb_clear_area(c, 1, cm1, 0, 0, ww, wh);

  xcb_flush(c);

  // event loop
  int dx = 1, dy = 1;
  xcb_get_geometry_cookie_t geom;
  xcb_get_geometry_reply_t  *geo;
int gg = 0;
geom = xcb_get_geometry(c, w);
geo = xcb_get_geometry_reply(c, geom, NULL);
ww = geo->width; wh = geo->height;
free(geo);
xcb_expose_event_t *ex_event;
  while (!done) {
      usleep(10000); // Around 100 FPS
      if (r.x + r.width == ww)
        dx = -1;
      else if (r.x == 0)
        dx = 1;
      if (r.y + r.height == wh)
        dy = -1;
      else if (r.y == 0)
        dy = 1;
      r.x += dx;
      r.y += dy;
   // The above is just for moving the rectangle around

    e = xcb_poll_for_event(c);

 // Below: paint background, rectangle - and render it all
    xcb_change_gc(c, fill, XCB_GC_FOREGROUND, (uint32_t[]){ 0x000000FF });
    xcb_poly_fill_rectangle(c, pix, fill, 1, &wr);
    xcb_change_gc(c, fill, XCB_GC_FOREGROUND, (uint32_t[]){ 0xdc143c });
    xcb_poly_fill_rectangle(c, pix, fill, 1, &r);
    xcb_copy_area(c, pix, w, g, 0, 0, 0, 0, ww, wh);
    xcb_flush(c);
//    printf("Flushed ");                                    // <- 4

    if (e) {
      switch (e->response_type & ~0x80) {
      case 0:
        puts("Unfortunately, a request had no reply");
        break;
      case XCB_DESTROY_NOTIFY:
        puts("Destruction!");
        break;
      case XCB_EXPOSE:
        xcb_flush(c);
        break;
      case XCB_KEY_PRESS:  // exit on key press
        done = 1;
        break;
      case XCB_CLIENT_MESSAGE:
        done = 1;
        break;
      default:
        printf("Unrecognized event %"PRIu8"\n", e->response_type);
        break;
      }
    }
    free(e);
  }

  xcb_free_pixmap(c, cm1);
  xcb_free_pixmap(c, pix);
  xcb_disconnect(c);
  exit(EXIT_SUCCESS);
}

Now if you run it „as is” you'll see the red rectangle moving around on a blue background (that's why I'm polling for events). Then I'd like to use just any mask simply to find out, how it is supposed to work. The scarce docs say that the mask can be attached to pixmap on creation time, or it can be done later using xcb_change_bc.

From what I see, either the docs are wrong, or I'm doing something wrong (or maybe there's a bug in XCB?) — because these methods aren't equivalent. You can test it by either removing the comment from the beginning of the line marked with „<- 1”, or by adding a parameter (instead of XCB_NONE) in the line marked with „<- 2”. In the latter case you'll notice plenty of „Unfortunately, a request had no reply” notices in your console, and the window becomes very unresponsive (cannot be closed with a keypress instantly, one has to wait quite a few seconds) — obviously something goes very wrong in that case.

By uncommenting the line marked with „<- 1” it looks somewhat better — there's no more that plenty of annoying messages — still there's also no more moving rectangle. Indeed in fact I didn't prepare proper black-and-white mask of depth 1 (just the uninitialized pixmap of that depth), still the created pixmap means allocating some memory area, where plenty of zero and non-zero values are present, so I could expect the moving picture like before, but looking like there was some raster imposed over it (some pixels visible, most of them not). Although indeed the image got spoiled in kind of that way, there are two unexpected effects in addition:

  1. I can see (on my screen) a few green dots in addition — IMHO I shouldn't see there any other colour but blue and red.

  2. There's no more movement of the rectangle! Somehow it got stuck now. Why? The loop doing recalculation and flushing seems to be still circling around, which can be verified by uncommenting the line marked with „<- 4”.

I was also trying to add the „context” to that mask and use it later also to paint it black and white (see the commented out block marked with „<- 3”), but somehow it didn't help neither. Unfortunately, there's no proper docs for XCB (since more than 20 years of its development), neither any decent tutorials (nor code snippets featuring that transparency thing, that one could google for).

Anyone could paste a „working example” that could be used to learn how in XCB actually we can take advantage out of transparency using masks — and how the masks are properly created and used? The suggestions I'm writing under, are vague.

Thanks in advance! :)

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Blacklisted phrase (0.5): Why?
  • RegEx Blacklisted phrase (3): Thanks in advance
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: Empty Stack

79584570

Date: 2025-04-21 11:53:09
Score: 4.5
Natty:
Report link

So, enron is saying that the parkers are striving to make peace and order for a place in dc to make a cake walk for jimmy carter carver buren and parker. In retrospect, one can believe that the ideas of law and order is that of obedience. Who says anything else by law and creation. For manifest destiny is of alignment of laws created by man to creat obdedience, the new order. Who cares about the ideas of society, for the fullfillment of the statistics of the status quo oif questions is that of condition. Can we be at peace with our seleves, that we shall not be enslaved by man but by our souls alone?

Reasons:
  • Long answer (-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: TheDutchMaster

79584568

Date: 2025-04-21 11:52:09
Score: 3.5
Natty:
Report link

The documentation says that Windows isn't supported: https://druid.apache.org/docs/latest/tutorials/ - see the Prerequisites section.

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