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

79584564

Date: 2025-04-21 11:50:08
Score: 2
Natty:
Report link

I have two queries that work in Cosmos. But now I want to combine them into one query. How do I do that?

As you want to combine the two queries, in the first query it is retrieving only the data which is "id = LanguageList-V3" and in the second query it is retrieving the data having languageId = "af". Means after combining two queries using JOIN, it will print only the data of id having LanguageList-V3 and with languageId = "af" .

Also, you mentioned There are other version of the same list in the table, below is the data stored in my cosmos db container with some other versions along with id "LanguageList-V3" such as "LanguageList-V1" and "LanguageList-V2":

[
    {
        "id": "LanguageList-V1",
        "type": "LanguageList",
        "version": 1,
        "createdAt": "2023-01-01T00:00:00Z",
        "Languages": [
            {
                "languageId": "af",
                "englishName": "Afrikaans",
                "nativeName": "Afrikaans",
                "active": true
            },
            {
                "languageId": "es",
                "englishName": "Spanish",
                "nativeName": "Español",
                "active": true
            }
        ]
    },
    {
        "id": "LanguageList-V2",
        "type": "LanguageList",
        "version": 2,
        "createdAt": "2024-01-01T00:00:00Z",
        "Languages": [
            {
                "languageId": "es",
                "englishName": "Spanish",
                "nativeName": "Español",
                "active": false
            },
            {
                "languageId": "zh",
                "englishName": "Chinese",
                "nativeName": "äž­æ–‡",
                "active": true
            }
        ]
    },
    {
        "id": "LanguageList-V3",
        "type": "LanguageList",
        "version": 3,
        "createdAt": "2025-04-21T12:00:00Z",
        "Languages": [
            {
                "languageId": "af",
                "englishName": "Afrikaans",
                "nativeName": "Afrikaans",
                "active": false
            },
            {
                "languageId": "zh",
                "englishName": "Chinese",
                "nativeName": "äž­æ–‡",
                "active": true
            }
        ]
    }
]

Below is the query which i tried to combine both the queries using JOIN:

SELECT VALUE l
FROM c
JOIN l IN c.Languages
WHERE c.id = "LanguageList-V3" AND l.languageId = "af"

Output:

[
    {
        "languageId": "af",
        "englishName": "Afrikaans",
        "nativeName": "Afrikaans",
        "active": false
    }
]

Note: Cosmos DB does not support joins across different containers or items. It supports self-join ,means joins occur within a single item. For more information, please refer to this link.

Reasons:
  • Blacklisted phrase (1): How do I
  • Blacklisted phrase (1): this link
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
Posted by: Balaji

79584560

Date: 2025-04-21 11:48:08
Score: 2.5
Natty:
Report link

"Re-run the server and force-refresh the browser." I faced same issue with you and above method worked! :)

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

79584555

Date: 2025-04-21 11:44:06
Score: 3.5
Natty:
Report link

This enter image description hereshows that u have 4 errors, and 6 warnings. But you mentioned there are no error.

try to resolve these errors first , then it will run

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

79584539

Date: 2025-04-21 11:36:04
Score: 0.5
Natty:
Report link

First, you have to make shape in drawable:

<shape android:shape="line" xmlns:android="http://schemas.android.com/apk/res/android">
    <stroke android:color="@color/gray" android:width="1dp"/>
</shape>

After that, set this shape on the TextView.

android:background="@drawable/discount_line"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Hadi Abedi

79584534

Date: 2025-04-21 11:32:03
Score: 1
Natty:
Report link

For me updating the NDK helped.

sdkmanager "ndk;27.2.12479018"
export NDK_HOME="$ANDROID_HOME/ndk/27.2.12479018""

For more details see here.

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

79584532

Date: 2025-04-21 11:29:02
Score: 1
Natty:
Report link

Okay maybe I was a bit too quick, but in the end I figured it out by indeed relaunching my dev server one or multiple times. I also see a related question popping up on mine, and I suppose this works for people if they stumble across this issue: https://stackoverflow.com/a/7116701/2217725

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-2): I figured it out
  • Low length (0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
Posted by: royketelaar

79584523

Date: 2025-04-21 11:24:01
Score: 1
Natty:
Report link

Try logging the value your about to set instead of accessing the state variable console.log(result.result.LabelNumber);

I think the issue is your console log for results.LabelName is running before the state has updated.

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

79584512

Date: 2025-04-21 11:20:59
Score: 6.5 đŸš©
Natty: 5
Report link

I am also facing the same issue. I am having selector.select() inside while loop and it is using high CPU. What can be done to reduce the CPU

Reasons:
  • Blacklisted phrase (1): I am also facing the same issue
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also facing the same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Harika Kathi

79584508

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

Thank for your support. The virtual scroll bar works good. But i found two more issue: 1. The virtual scroll bar is always scrolling, the scrolling never comes to an end. 2. When there are only 5 rows in the DataTable, there will be a lot of empty space below those 5 rows. We want to scroll down many times to view the horizontal scroll bar. Otherwise the horizontal scrollbar is not at all visible. The issue can be reproduced from the same Stackblitz demo link:https://stackblitz.com/edit/224fkuqa?file=src%2Fservice%2FProductService.jsx,src%2FApp.jsx,package.json

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

79584507

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

how does one make java into a real script. A script is a formal documentation of real life situation. A situation is realistically applied to a computer with a graphics card. A graphics card is a portal to blizzard G.O.D. and valve. A portal or realm is a pass code in a virtual reality. Virtual reality is a platform called verizon. Verizon is technically called a lan, lan is called land line. A land line is a internet context. Internet in dsl or also known as verizon is a like demonoid, ares, or lime wire; first called raphsody. The point of land line is to make a portal with a * pound, also know as an operator. The operator connects a dial up to a server and the server access a portal also known as valve, a internet system called lan, where anyone with a simple passcode can access zero_cool. The more you know him the more you access his files which is the art os music, video, and sound.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): how do
  • Low reputation (1):
Posted by: TheDutchMaster

79584504

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

Put this code inside Navigation Graph class.

NavHost(
            navController = navController,
            startDestination = "Splash"
        ) {
            composable(route = "Splash") {
                log("Splash")
                SplashViewAndViewModel(navController)

            }
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Anshul Nema

79584487

Date: 2025-04-21 11:08:55
Score: 3
Natty:
Report link

I think it's very useful! I recently read a help document, and the method in it is also very good.https://support.servbay.com/dotnet/how-to-develop-asp-net-framework-4-x-on-macos

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

79584486

Date: 2025-04-21 11:08:55
Score: 0.5
Natty:
Report link

There is no Dialer app on the iOS Simulator, so you have no app to open the tel protocol.

Try using a physical device.

The "tel://" link doesn't work on iPhone Simulator

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

79584478

Date: 2025-04-21 11:05:54
Score: 1.5
Natty:
Report link

Retrofitting a 360-degree camera system in older vehicles is not just possible, but also a great upgrade for safer driving in Indian traffic. With trusted companies like DHC Autosolutions providing reliable kits and support, it's a smart investment that enhances both convenience and safety.

If you're specifically looking for 360 Degree Camera Cars In India, retrofitting your current car might just give you a similar experience at a fraction of the cost of buying a new one.

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

79584476

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

```lua

game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, "a7130411-91f8-4209-b3bd-918bd190b2ed", game.Players.LocalPlayer)

```

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TrĂąm VĂ” Thị BĂ­ch

79584458

Date: 2025-04-21 10:54:51
Score: 1.5
Natty:
Report link

This is the code can somebody find the problem?

todos = []

while True:
    user_action = input("Type add ,show, complete, edit or exit: ")
    user_action = user_action.strip()

    match user_action:
        case 'add':
            todo = input("Enter a todo: ") + "\n" ur backslash was a normal slash

            file = open('todos.txt', 'r')
            todos = file.readlines()
            file.close()

            todos.append(todo)

            file = open('todos.txt', 'w')
            file.writelines(todos)
            file.close()
        case 'show':
            for index, item in enumerate(todos):
                row = f"{index+1}-{item}"
                print(row)
            print(len(todos))
        case 'edit':
            number = int(input("Number of the todo to edit: "))
            number = number - 1
            new_todo = input("Enter a new todo: ")
            todos[number] = new_todo
        case 'complete':
            number = int(input("Number of the todo to complete: "))
            todos.pop(number)
        case 'exit':
            break

print("Bye...")
Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: EclipsedSadness