79387287

Date: 2025-01-25 18:40:25
Score: 1.5
Natty:
Report link

It can be resolved by setting overflow to scroll on the body element.

body{
overflow:scroll;
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Christian

79387286

Date: 2025-01-25 18:40:25
Score: 5.5
Natty:
Report link

Are you using the same branch in which you have created the pipeline yaml file?

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

79387283

Date: 2025-01-25 18:39:24
Score: 1
Natty:
Report link

Do you want to check only for contiguous triplets of the form (a, b, b)? Based on your example, that doesn't seem to be the case. Then, you can just count the number of unique values and repeated values and multiply them.

In the example [5,6,7,3,3,3],

count_of_unique_vals = 3     # 5, 6 and 7
count_of_repeated_vals = 1   # 3
count_of_triplets = 3        # 3*1, or len(unique_vals) * len(repeated_vals)
Reasons:
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: SivaTN

79387278

Date: 2025-01-25 18:36:24
Score: 1
Natty:
Report link

You no longer need to do npx tailwindcss init -p according to tailwindcss v4 docs. Link: how to config it with vite

If you still wanna use npx tailwindcss init -p then you have to install v3 by using npm install -D tailwind@3, then you can proceed with npx tailwindcss init -p. Link: tailwindcss v3 docs installation guide

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

79387270

Date: 2025-01-25 18:30:22
Score: 5.5
Natty: 6
Report link

checkout this blog https://sagarsangwan.vercel.app/blogs/pdf-generation-in-next-js-15-with-puppeteer-1737813702027 for a detailed blog on how to convert html into pdf

Reasons:
  • Blacklisted phrase (1): this blog
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Sagar Sangwan

79387269

Date: 2025-01-25 18:29:22
Score: 1
Natty:
Report link

He buddy, I'm try to fine-tune llama3.2:1b, 3b and llama3.1:8b and I have that same max_seq_length 2048 for all models but after fine-tuning the model context lenght will not be limited to 2048, I think!. I'm having some great problems in fine-tuning.

Sequence length: This is the specific length of the input you provide to the model, which can be shorter than the model's overall context length.

Context length: This is the maximum amount of text (in tokens) that the model can process and reference when generating an output, representing its ability to remember and understand the broader context of a conversation or document.

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

79387268

Date: 2025-01-25 18:27:21
Score: 2
Natty:
Report link

Children of a Prefab instance cannot be moved, and components cannot be reordered. You can unpack the Prefab instance to remove its Prefab connection.

for this one easy solution might be to duplicate the prefab and then copying it and then delete the duplicated one.

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

79387260

Date: 2025-01-25 18:24:21
Score: 1
Natty:
Report link

Please create a .env file at project directory and add below:

DANGEROUSLY_DISABLE_HOST_CHECK=true
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Ved Prakash

79387248

Date: 2025-01-25 18:19:20
Score: 1.5
Natty:
Report link

if (name.value != name.defaultValue) { 
    alert("#name has changed"); 
    }

false

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: اية السعايدة

79387242

Date: 2025-01-25 18:14:19
Score: 0.5
Natty:
Report link

Beacon transmitters can only keep going so long as the app that creates the keeps running in the background. If the app stops for some reason (the operating system kills it, the app crashes, the user force quits it) the transmission will stop.

The most likely cause of the problem you report is that the operating system is killing the app for some reason. Motorola devices are usually pretty faithful to open-source Android, so it is a bit surprising that Motorola devices are doing this. On a Pixel 7a, I often see beacon transmitters running for many days at a time without stopping.

There are many techniques BeaconScope (and other apps) use to keep running in the background: (1. Broadcast Intents, 2. ForegroundService, 3. Job Service). The latest 1.5 version of the app uses 1 and 2, but not 3. I added this to version 1.5.2 of BeaconScope just now and sent that for review in the Google Play Store. This should be available in a couple of days, and it may improve things by restarting the app within 15 minutes if it is ever killed by the operating system.

If you would like to help troubleshoot why your phone is killing the app, so I can make this more robust, I can give you instructions to do one of two things (1) Use Android debugging tools to get an app log - this requires installing Android dev tools (2) Sending a bug report - this requires performing a procedure on your phone within 60 seconds of when the transmission stops. Let me know if you can help with either of these and I will share instructions.

Reasons:
  • RegEx Blacklisted phrase (3): you can help
  • Long answer (-1):
  • No code block (0.5):
  • High reputation (-2):
Posted by: davidgyoung

79387240

Date: 2025-01-25 18:12:18
Score: 3
Natty:
Report link

Here is an algorithm to try:

  1. Import numpy and pandas
  2. Define A = np.array([[1, 2, 1],[1, 3, 2]])
  3. Split df of B in 2
  4. Define df1 = pd.DataFrame("the first two rows of B")
  5. Define df2 = pd.DataFrame("the next two rows of B")
  6. result1, result2 = A * df1, A * df2
  7. print the result

This is a pandas documentation on multiplication for reference

Reasons:
  • Contains signature (1):
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: S I

79387224

Date: 2025-01-25 18:01:16
Score: 3.5
Natty:
Report link

Just iterate over the set of dataframes and multiply each one with the array.

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

79387219

Date: 2025-01-25 17:59:16
Score: 0.5
Natty:
Report link

I would like to mention something when you try to store your data make sure

as an example below you are decoding that buffer into a UTF-8 string

const originalName = Buffer.from(file.originalname, 'binary').toString(
      'utf-8',
    );
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Abdeldjalil Hachimi

79387216

Date: 2025-01-25 17:58:15
Score: 1.5
Natty:
Report link

I was getting the same error. As a workaround, I did File.Copy() to copy to a new file, then uploaded that. Seems AWS library wants exclusive access. I don't have control over other processes accessing the file, perhaps they are not cleaning up properly.

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

79387214

Date: 2025-01-25 17:57:15
Score: 1.5
Natty:
Report link

I think the load_dotenv function fetches the environment variable's cached value. It can be resolved by enabling an override prop in the load_dotenv function.

using this you can fetch the correct value whenever it is updated in the correct order, I think this will help(taken from the docs of python dotenv - https://pypi.org/project/python-dotenv/) -

enter image description here

load_dotenv(override=True)
Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Vikas Kushwaha

79387213

Date: 2025-01-25 17:57:14
Score: 4
Natty: 4.5
Report link

Three dot represent the spread operator.

Below URL to understand the concepts

URl: https://www.freecodecamp.org/news/javascript-spread-and-rest-operators/

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

79387212

Date: 2025-01-25 17:55:14
Score: 3
Natty:
Report link

You can find the data in the SAP client, in Users, there is the login account and the BIND with Active Directory, I always used bind ( adname\account_id ), check if the user has permissions to access the Service Layer and the base name is correct.

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

79387199

Date: 2025-01-25 17:49:11
Score: 10 🚩
Natty: 5
Report link

@kai-pham , Did you manage to solve the issue, I am having similar problem with converting pcm16 audio to g711ulaw rtp stream. I have tried various combination with little success.

Reasons:
  • RegEx Blacklisted phrase (3): Did you manage to solve the
  • Low length (0.5):
  • No code block (0.5):
  • Me too answer (2.5): I am having similar problem
  • User mentioned (1): @kai-pham
  • Single line (0.5):
  • Looks like a comment (1):
  • Low reputation (1):
Posted by: AshG

79387194

Date: 2025-01-25 17:47:10
Score: 1
Natty:
Report link

tomcat by default take name of war file as context root . So we can rename our war file or we can have context.xml inside /WEB-INF

inside pom.xml

<finalName>warName</finalName>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Denil Nair

79387175

Date: 2025-01-25 17:37:07
Score: 1
Natty:
Report link

You can try following:

aws ec2 describe-instances --filters Name=availability-zone,Values=us-east-1a

AWS CLI describe-instances documentation.

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

79387174

Date: 2025-01-25 17:36:06
Score: 7.5 🚩
Natty:
Report link

I ended up finding the solution to my problem, if someone else is having the same problem with the "IP not being whitelisted" even though it is. And if you tried changing the DNS to 8.8.8.8, turning off your vpn, creating new outbound and inbound rules for port 27017, and still you can't find the solution. Check your node version and make sure is updated, that was the mistake i was making, i checked mongoose version, express and mongodb versions and everything looked good.

It was the node update.

Reasons:
  • RegEx Blacklisted phrase (1.5): can't find the solution
  • RegEx Blacklisted phrase (2): can't find the solution
  • Long answer (-0.5):
  • No code block (0.5):
  • Me too answer (2.5): having the same problem
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Gerardo Acedo

79387168

Date: 2025-01-25 17:31:05
Score: 0.5
Natty:
Report link

finally I find this modification can print multiple font size

...
WebSettings wSettings = myWebView.getSettings();
String st = editText2.getText().toString();
st = st.replaceAll("\n", "<br>");
myWebView.loadDataWithBaseURL("file:///android_asset/", st, "text/html", "UTF-8", null);
wSettings.setTextZoom((int)(editText2.getTextSize()*2));//You can change 2 to the multiple you want
...
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Fisher

79387160

Date: 2025-01-25 17:24:02
Score: 5
Natty:
Report link

I have a solution. Here i use React-router-dom,TypeScript,Tailwind and Shadcn https://github.com/SadikMuktadir/tailwind-Shadcn.git

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

79387159

Date: 2025-01-25 17:23:02
Score: 2
Natty:
Report link

Since you define the _id as non-nullable, it will always generate the id with an empty string "". The solution is to make it optional, hence String?, and remove the default value.

Reasons:
  • Whitelisted phrase (-1): solution is
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: João Saraiva

79387158

Date: 2025-01-25 17:22:02
Score: 0.5
Natty:
Report link

Replit does not use Apache, so it ignores .htaccess files. To implement custom routing, you need to handle the incoming URLs in your PHP code by inspecting the request path (for example with $_SERVER['REQUEST_URI']) and then deciding which script or content to serve based on that. This means you should manage your rewrites and routing logic directly within index.php or another script instead of relying on .htaccess.

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

79387150

Date: 2025-01-25 17:17:00
Score: 1
Natty:
Report link

I encountered the same issue today; if you want to simply display as a column with no scrolling applied, the following code worked well for me:

    .tabs {
    display: flex;
    flex-direction: column;
    height: 100%;
  }
  
  .tabs ul {
    display: flex;
    flex-direction: column;
  }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: DmitriiK

79387146

Date: 2025-01-25 17:13:59
Score: 2
Natty:
Report link

Add to setupTests.js

import console from "console"
global.console = console
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: vikonnikov

79387145

Date: 2025-01-25 17:13:59
Score: 0.5
Natty:
Report link

Explored numerous options to resolve the problem. here are some option I have tried

  1. added "type": "module" in package.json
  2. clean cache, clear dependencies and reinstall everything

rm -rf .serverless/ .webpack/ node_modules package-loc.json npm install

  1. debug using serverless print
  2. finally worked! explicitly set .mjs in serverless.yml

Before serverless.yml

functions:
  myfunction:
    handler: handler.main

After serverless.yml

functions:
  myfunction:
    handler: handler.mjs.main

That means Serverless Framework wasn't automatically detecting .mjs files

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

79387137

Date: 2025-01-25 17:05:57
Score: 4
Natty: 5
Report link

Thanks! I didn't know what (double **) meant.

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

79387135

Date: 2025-01-25 17:05:57
Score: 0.5
Natty:
Report link

This error in Azure Pronunciation Assessment typically indicates an issue with the configuration or the way the speech context is being set up. Here are a few common reasons and potential solutions:

Ensure that the configuration parameters for the pronunciation assessment are correctly set. Double-check the settings for PronunciationAssessmentConfig and make sure they match the expected format.

Verify that you are using a compatible version of the Azure Speech SDK. Sometimes, using an outdated version can cause deserialization issues1.

Ensure that the audio format of the input file is supported by the service. The service typically supports WAV files with a sample rate of 16 kHz3.

Subscription Key and Region: Make sure that your subscription key and service region are correctly set in your configuration. Incorrect credentials can lead to errors.

Implement robust error handling in your code to catch and diagnose issues more effectively.

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

79387127

Date: 2025-01-25 16:59:55
Score: 0.5
Natty:
Report link

It takes about 3 minutes, however won't break at the next update.

%%bash
wget https://github.com/TA-Lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-src.tar.gz
tar -xf ta-lib-0.6.4-src.tar.gz && cd ta-lib-0.6.4/
./configure --prefix=/usr && make && make install
python -m pip install ta-lib==0.6
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: numrut

79387126

Date: 2025-01-25 16:58:55
Score: 0.5
Natty:
Report link

It takes about 3 minutes, however won't break at the next update.

%%bash
wget https://github.com/TA-Lib/ta-lib/releases/download/v0.6.4/ta-lib-0.6.4-src.tar.gz
tar -xf ta-lib-0.6.4-src.tar.gz && cd ta-lib-0.6.4/
./configure --prefix=/usr && make && make install
python -m pip install ta-lib==0.6
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: numrut

79387125

Date: 2025-01-25 16:57:55
Score: 1
Natty:
Report link

Gitlab creates one pipeline per commit/tag in git. But for this, the commit needs to have a gitlab-ci file defined.

If your old commit does not have the file, is not possible to run a pipeline directly.

One posible solution could be to create a new branch starting from the old commit you want to run in a pipeline, and add one commit in this branch with the gitlab-ci file. This should create a pipeline with the code in your old commit.

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

79387118

Date: 2025-01-25 16:50:54
Score: 1
Natty:
Report link

I think the problem is there is not enough memory in the system for an array so big. Try with smaller values. If you need to manage so big array, you will need a new algorithm, or get more ram. According to the message, 4 GB are required just for this variable b. Integer(4) use less memory space, half than integer(8), so this could be the reason it works with integer(4).

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

79387110

Date: 2025-01-25 16:45:52
Score: 4.5
Natty:
Report link

This behavior is confirmed as unexpected and it was fixed. Refer to https://github.com/OfficeDev/office-js/issues/5127

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

79387097

Date: 2025-01-25 16:35:50
Score: 1.5
Natty:
Report link

Yes! To exclude folders from the Problems tab in VS Code, add a .vscode/settings.json file in your project root with these exclusions:

{
    "problems.excludePatterns": [
        "**`enter code here`/.history/**",
        "**/node_modules/**",
        "**/vendor/**",
        "**/backups/**"
    ]
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Orange Jeff

79387096

Date: 2025-01-25 16:35:50
Score: 1.5
Natty:
Report link

You are Trying to install the Rstudio that is incompatible with your MAC so refer again to the CRAN and select the correct download for the ARM Architecture. If you still Persist the Issue I suggest you to use the web version of Rstudio that is Posit Cloud that has different versions of R installed choose among them as you need and it default provides about 1.5 GB of Execution memory enough to run medium memory intensive tasks.

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

79387087

Date: 2025-01-25 16:29:48
Score: 3.5
Natty:
Report link

"accessToken":"(?s)(.+?)" use this expression to capture your value.

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Low reputation (1):
Posted by: shyam Vishwakarma

79387084

Date: 2025-01-25 16:28:48
Score: 1
Natty:
Report link

The function createSticher() is depracated in OpenCV 4, you should use the function

csv.Stitcher_create()

You also seem to have your file named 'import cv2.py', consider changing this for best naming practices.

Have a great day!

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

79387083

Date: 2025-01-25 16:27:48
Score: 3
Natty:
Report link

Trop compliqué à comprendre, je voulais adhérer à Prolog Power , mais vue les commentaires j'hésite à me prononcer, il faudrait une explication plus simple à mettre en place pour pouvoir utiliser ces 5 ingrédients merci

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

79387080

Date: 2025-01-25 16:26:47
Score: 1
Natty:
Report link

Apple states:

Important iPad apps running in macOS cannot use the AVFoundation Capture classes. These apps should instead use UIImagePickerController for photo and video capture.

Source: https://developer.apple.com/forums/thread/124652

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

79387079

Date: 2025-01-25 16:25:46
Score: 5
Natty:
Report link

This issue is done, thank you so much

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Low length (2):
  • No code block (0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Manny Somarriba

79387078

Date: 2025-01-25 16:25:46
Score: 3.5
Natty:
Report link
-> echo "hello" | wl-copy
Failed to connect to a Wayland server: No such file or directory
Note: WAYLAND_DISPLAY is set to wayland-0*
Note: XDG_RUNTIME_DIR is set to /run/user/1000
Please check whether /run/user/1000/wayland-0* socket exists and is accessible.

-> ls -l /run/user/1000/wayland-0*
lrwxrwxrwx 1 root root 32 Jan 25 21:29 '/run/user/1000/wayland-0*' -> '/mnt/wslg/runtime-dir/wayland-0*'

I cannot understand why the WSLg provided wayland compositor socket file(wayland-0*) is a symlink to some other file that does not exist? I am using arch wsl (the latest) with zsh and unable to make wayland work. I have checked for a weston process using ps aux | grep weston to check if it is running...it is not Also is the file supposed to be owned by root and not like i can see for my other files?...(sorry if this is a dumb question) How do i get rid of this error and make my wl-copy wl-paste work ?

Reasons:
  • Blacklisted phrase (1): How do i
  • Blacklisted phrase (0.5): I cannot
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: ajay

79387076

Date: 2025-01-25 16:22:46
Score: 3
Natty:
Report link

Found this error today. What worked for me was this :https://github.com/material-extensions/vscode-material-icon-theme/issues/2767

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Probably link only (1):
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Charles Biegon

79387070

Date: 2025-01-25 16:19:45
Score: 1
Natty:
Report link

It turns out that only old version of Alert Triggers includes the top 10 results. It took a bit of effort to prove it out, but it is possible to deploy an Alert Trigger using the 2018-06 api through the portal - the Top 10 Results section was present. In our case our Terraform scripts were also targeting the legacy api, which added to the confusion. I wouldn't recommend to use the legacy api though...

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

79387063

Date: 2025-01-25 16:15:43
Score: 0.5
Natty:
Report link

Does the name of your source database contain any special characters? Like in my case?

I got the same error as you, but fixed it by changing the name of the database to something simple, like mydatabase.

How to change the name of the database?

E.g. by using Microsoft SQL Server Management Studio. Right-click the database -> click "Rename", type the new name, and hit enter.

For some reason I had to do it by re-attaching the database, and specify the new name in the Attach As field inside the Attach Databases dialogue.

Why does this happen?

Looking at the log from my case, I suspect the problem to be caused by MySQL Workbench calling wbcopytables.exe with the argument --table {YOUR_DATABASE_NAME}, which in my case it used --table {C:\DATABASES\db.mdf}. It seems to be copying the source database name directly into the terminal.

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

79387052

Date: 2025-01-25 16:06:42
Score: 1
Natty:
Report link

In Tailwind v4, you use the @theme directive to define your default custom properties (CSS variables) and the @variant directive to modify them based on themes like dark. For dark mode, Tailwind automatically applies the dark variant if the dark class is present on the root element. You no longer manually toggle CSS with .dark inside your CSS file; instead, use these directives to handle it.

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

79387045

Date: 2025-01-25 16:02:41
Score: 2
Natty:
Report link

Maybe not the nicer way of doing this, but I add an random ID key to new object in array, so when the array change and call a rerender, <Item key={obj.ID}...> block the rerender of existing Components.

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

79387032

Date: 2025-01-25 15:53:40
Score: 1
Natty:
Report link

The same has been occuring to me for sometime (6months). I thought it was because i was using Moodle Bitnami, since it was not the same experience on xampp.

I now find the issue to be downloader extension installed on my browser, after using another browser with the same phpmyadmin it stopped auto convertion to .htm and it is now downloading as .sql

This can be a solution to someone out there.

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

79387030

Date: 2025-01-25 15:51:39
Score: 1
Natty:
Report link

I had a similar situation recently. Turns out y accidentally created a filname.d.ts file in my repository, which seemingly caused ESLint to crash.

Sharing this here in case it helps.

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

79387027

Date: 2025-01-25 15:51:39
Score: 2
Natty:
Report link

The biggest problems I have encountered with this type of situations are caused by the coordinate that contains the version with which the dependency is being verified, I recommend that you look for the most recent version that is compatible with the project, sometimes when you look for this dependency it may not be available com.android.tools.build:gradle:x.x.x and sometimes the functionality is not what you require, so you have to increase the version number.

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

79387024

Date: 2025-01-25 15:50:39
Score: 1
Natty:
Report link

I did not find a solution, but a mere workaround:

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

79387023

Date: 2025-01-25 15:49:38
Score: 2.5
Natty:
Report link

Actually the solution was very simple, just create a .gitignore file and exclude the node_modules, I managed to solve it by finding these answers from 2 days ago: https://github.com/tailwindlabs/tailwindcss/issues/15714

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Matteo Feduzi

79387018

Date: 2025-01-25 15:47:38
Score: 2
Natty:
Report link

AFAIK Visual Studio doesn’t provide an option to change the default access modifier for methods generated by the IDE (e.g., through code generation or refactoring tools). By default, it uses internal for new methods in C# because that aligns with the language's conventions.

Might be wrong though

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

79387017

Date: 2025-01-25 15:46:38
Score: 3
Natty:
Report link

Actually i got it Inside your Webapp, on the left panel you have authentication. Add an identity provider for the application. It is working😊

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

79387011

Date: 2025-01-25 15:43:37
Score: 3
Natty:
Report link

If the file is stored in a cloud like OneDrive or Sharepoint, you need to add those sites as Trusted Sites under Internet Options as described in my video tutorial.

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

79387006

Date: 2025-01-25 15:41:36
Score: 1
Natty:
Report link

The reason you're not seeing distinct path components returned from the resolve method of the FileSystemDirectoryHandle in Chrome for Android is because Android uses content URIs for paths, which are opaque identifiers. These content URIs don't follow the typical hierarchical file path structure with separators like /dir/subdir/file.txt. Instead, they are represented as something like content://authority/path1.

This difference in path representation means that the resolve method doesn't return the expected array of directory names1.

Refrence

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

79386993

Date: 2025-01-25 15:31:34
Score: 2
Natty:
Report link

@David Maze

I came here for the exact same question/problem like initially asked for. But didn't try anything before, so having default configs/setup (networks) on my mac.

Thank you very much for your first answer, helped a lot for further understanding.

But as you described like it should work out of the box here:

Docker provides a network address translation (NAT) mechanism, so containers that make outbound calls mostly look like they're calling from the host system, and generally can reach all of the same places the host system can.

It unfortunately does not on my machine.

Any idea what could be wrong here?

curl on host:

curl --connect-timeout 5 -I 192.168.2.216
HTTP/1.1 200 OK
Content-Type: text/html
Accept-Ranges: bytes
ETag: "4162515329"
Last-Modified: Sun, 29 Dec 2024 15:48:09 GMT
Content-Length: 303
Date: Sat, 25 Jan 2025 14:29:08 GMT
Server: lighttpd/1.4.52-devel-lighttpd-1.4.52

And curl by container:

docker run --rm -it jonlabelle/network-tools curl --connect-timeout 5 -I 192.168.2.216
curl: (28) Connection timed out after 5003 milliseconds

Additionally I have also tried to to run it by a docker-compose file. But still no access to the local network:

docker-compose.yaml:

services:
    curl-test:
        image: jonlabelle/network-tools
        command: curl --connect-timeout 10 -I 192.168.2.216

Result:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed


  0     0    0     0    0     0      0      0 --:--:--  0:00:30 --:--:--     0
curl: (28) Connection timed out after 10003 milliseconds
Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Blacklisted phrase (1): what could be
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @David
  • Low reputation (0.5):
Posted by: Samuel Breu

79386984

Date: 2025-01-25 15:24:33
Score: 2
Natty:
Report link
var i = MyList.FindIndex(x => x.IdItem == itemModified.IdItem);
MyList[i] = itemModified;
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Irak Rubio

79386972

Date: 2025-01-25 15:20:31
Score: 4
Natty:
Report link

Now you can name new values set within INSERT query

https://dev.mysql.com/doc/refman/8.4/en/insert-on-duplicate.html

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

79386970

Date: 2025-01-25 15:18:30
Score: 2.5
Natty:
Report link
  1. Can multiple P4 verify processes run in parallel?

Yes, you may use all sort of ways such as GNU parallel, & operator, etc, to run P4 command in parallel, with your own risk of hitting weird issue if their verification is somewhere overlapped.

  1. Does p4 verify -q //... check all files, including submitted files(archive files), shelved files, files in the unload depot, and files in the archive depot(archived files)? What commands should I run to ensure that I check every single file?

No, p4 verify -q //... does not check all files in all scenarios. Here's what it covers:

  1. Could you clarify the scenarios for using the -s parameter? My understanding is that the -s verifies both the file size and the MD5 checksum, while without it, it only verifies the MD5. Is that correct?

Your statement is correct. For when to use -s, Some examples might be, say, if you suspect file size issues or if you want a stronger verification process that checks both file content (MD5) and size.

  1. When users submit files, is the file's MD5 automatically generated and saved on the server? And what is the -u option used for in p4 verify?

Yes, when a user submits a file to the Perforce server, the server automatically computes an MD5 checksum for the file and stores it in the metadata database. This checksum is later used for verification during commands like p4 verify.

Reasons:
  • RegEx Blacklisted phrase (2.5): Could you clarify
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Starts with a question (0.5): Can
  • Low reputation (0.5):
Posted by: PkDrew

79386966

Date: 2025-01-25 15:14:30
Score: 1.5
Natty:
Report link

In simple situations, use document.body.replace() method (or the odfdo-replace script). However, as mentioned before, if the text to change is mangled in several <span> tags, a deeper analysis is required.

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

79386958

Date: 2025-01-25 15:10:29
Score: 3
Natty:
Report link

The issue was due to scope mismatch in the OAuth. It has been resolved by running the shopify app deploy command.

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

79386951

Date: 2025-01-25 15:02:27
Score: 5
Natty:
Report link

';' - open parenthesis expected error in MQL5

I'm getting the above error for the code: int totalBars = Bars;

and

'waveCountLookback' - undeclared identifier

I'm getting the above error for the code: int lookBack = waveCountLookback;

What's the solution for the 2 above errors?

Reasons:
  • RegEx Blacklisted phrase (1): I'm getting the above error
  • Low length (0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Michael

79386941

Date: 2025-01-25 14:59:26
Score: 3.5
Natty:
Report link

use "pip install -U duckduckgo_search" problem will be solved checkinkaggle

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

79386938

Date: 2025-01-25 14:54:24
Score: 4
Natty:
Report link

I am using FLYOUT instead of AppShell, and its working fine.

Thank You

Reasons:
  • Blacklisted phrase (0.5): Thank You
  • Low length (1.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Hitesh Patel

79386924

Date: 2025-01-25 14:47:23
Score: 2.5
Natty:
Report link

If you're switching to TailwindCSS v4.0 from using safelist in v.3.4.17 make sure to pass class names to elements generated by loops as the full class name and not through concatentation. As @Karson mentioned, pass in the full string "bg-darkgreen hover:bg-hdarkgreen" instead of using bg-${color} hover:bg-h${color}.

Reasons:
  • Has code block (-0.5):
  • User mentioned (1): @Karson
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: slavic max

79386918

Date: 2025-01-25 14:44:22
Score: 2
Natty:
Report link

According to this Github issue the above @apply is no longer global. For me replacing it with @reference worked perfectly.

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

79386915

Date: 2025-01-25 14:43:22
Score: 1
Natty:
Report link

In new the Laravel it's better to use the following method in you Model

protected $casts = [
    'created_at' => 'datetime:Y-m-d H:i',
    'updated_at' => 'datetime:Y-m-d H:i',
];
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Gene_Nostrada

79386913

Date: 2025-01-25 14:39:21
Score: 0.5
Natty:
Report link

Configure Django's STATIC_URL

In your settings.py:

Python

STATIC_URL = '///en/static/' Replace and with the actual values.

  1. Configure Django's STATIC_ROOT

In your settings.py:

Python

STATIC_ROOT = os.path.join(BASE_DIR, 'staticfiles') This is where Django will collect all static files during the collectstatic management command.

  1. Configure Apache to Serve Static Files

Create a new .htaccess file in your :

Apache

RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^static/(.*)$ //static/$1 [L] Replace with the absolute path to your project's root directory. This rule will redirect requests for static files to the appropriate location in your filesystem.
  1. Collect Static Files

Run the following command in your terminal:

Bash

python manage.py collectstatic This will collect all static files from your apps' static directories and place them in the STATIC_ROOT directory.

  1. Restart Apache

Restart your Apache server to apply the changes. Explanation:

STATIC_URL: This setting tells Django the URL prefix for all your static files. Since you're running Django in a subdirectory, you need to include the subdirectory in the URL. STATIC_ROOT: This setting defines the absolute path where Django will collect and serve static files. Apache Configuration: The .htaccess file redirects requests for static files to the correct location on your server. collectstatic: This command gathers all static files from your apps and places them in the STATIC_ROOT directory, making them accessible to Apache. Important Notes:

Security: For production environments, consider using a dedicated static file server like Nginx or a CDN for better performance and security. Debug Mode: If you're in debug mode, Django will serve static files directly from your apps' static directories. The above configuration is primarily for production environments. Permissions: Ensure that Apache has the necessary permissions to read and serve files from the STATIC_ROOT directory. By following these steps, you should be able to successfully serve static files from your Django application running in a subdirectory under Apache.

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

79386901

Date: 2025-01-25 14:34:20
Score: 1
Natty:
Report link

My shot: give the button borders (bottom and right) of a darker color than the background, change its size when its clicked (active).

Code:

<button className="mt-4 px-12 py-3 rounded-lg text-white bg-blue-600 border-b-8 border-r-8 border-blue-800 active:border-b-4 active:border-r-4 transition-all duration-100">Click me</button>

Gif:

enter image description here

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

79386900

Date: 2025-01-25 14:33:20
Score: 3
Natty:
Report link

For who it could be useful, I could fix this by change this setting :

enter image description here

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

79386898

Date: 2025-01-25 14:33:20
Score: 3.5
Natty:
Report link

Are there Maven or Gradle dependency files? I'd like to try and see if I can reproduce the same effect.

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

79386885

Date: 2025-01-25 14:27:18
Score: 2.5
Natty:
Report link

Because thick_path is disposed.

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • High reputation (-1):
Posted by: Dan Byström

79386864

Date: 2025-01-25 14:15:16
Score: 2
Natty:
Report link

Hey what worked for me was using the sandbox and adding target users. Make sure you have target users in the sandbox settings. Here's a useful article here

Reasons:
  • Whitelisted phrase (-1): worked for me
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: themuffineman

79386862

Date: 2025-01-25 14:12:15
Score: 0.5
Natty:
Report link

This looks to be the easiest way to do it:

provideAppInitializer(async () => {
  const keycloakConfig = await inject(ConfigService).getConfig();

  if (keycloakConfig) {
    return provideKeycloak({
      config: {
        url: keycloakConfig.url,
        realm: keycloakConfig.realm,
        clientId: keycloakConfig.clientId
      }
    });
  } else {
    return null;
  }
})
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Bernd

79386850

Date: 2025-01-25 14:06:14
Score: 2
Natty:
Report link

So! I have it figured out... Kinda? So I figured that my choice was architecturally wrong - if there's not a clear cut technical solution, probably something to be improved on the architecture side of things.

What I've done is created a separate endpoint for uploading files, that returns the UUID of the file in the response. I will upload all files associated with that JSON object BEFORE sending the main body, attaching the UUIDs of the files in the JSON fields appropriate.

Not the approach I intended, but this keeps the code cleaner overall. Thanks!

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Flinty926

79386833

Date: 2025-01-25 13:52:11
Score: 1.5
Natty:
Report link

UPDATE: Jan 2025 - For Type-Safe Compose Library.

val parentEntry = remember(backStackEntry) {
    navController.getBackStackEntry<SubGraphRoute>()
}
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Hugo Salazar

79386823

Date: 2025-01-25 13:49:11
Score: 2
Natty:
Report link

Maybe you need config like this..

cache: new InMemoryCache({
  typePolicies: {
    Query: {
      fields: {
        inventories: relayStylePagination(["variableName#1", ...etc]),
      },
    },
  },
})

Key arguments in Apollo Client

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

79386818

Date: 2025-01-25 13:45:10
Score: 2.5
Natty:
Report link

Since I want to use it often, I made @jthill's answer into an alias.

Add the alias with

git config --global alias.branch-diff "!f(){ git diff $(git merge-base $1 $2) $2 "${@:3}"; }; f"

With syntax git branch-diff <arg1> <arg2> <more args>. The 1st argument represents the master branch, which the branch in the 2nd argument split off at some point. Further arguments are passed to the diff.

Usage:

  1. What files did i change in branch?
git branch-diff master other-branch --name-only

The alias expands this into this and executes it:

git diff $(git merge-base master other-branch) other-branch --name-only
  1. What are the actually changes (diff) i made to the branch?
git branch-diff master other-branch

The alias expands this into this and executes it:

git diff $(git merge-base master other-branch) other-branch

Bonus:

# get all file names changed
git branch-diff master other-branch --name-only
# get changes of my_file.cpp
git branch-diff master other-branch -- my_file.cpp
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-1):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @jthill's
  • Low reputation (0.5):
Posted by: Brambor

79386794

Date: 2025-01-25 13:32:07
Score: 2.5
Natty:
Report link

I faced the same problem today when start unit test debugging with Resharper. Regular VS unit test explorer did work.

Apparently its a known issue: https://resharper-support.jetbrains.com/hc/en-us/community/posts/20341420667538-ReSharper-Unit-Test-VSDebugger-is-not-available

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

79386793

Date: 2025-01-25 13:31:07
Score: 2.5
Natty:
Report link

I guess my example can be boiled down to this:

class A1
{
    public void F1<T>(T t) where T : struct { throw new NotImplementedException(); }
    public void F1<T>(T t) where T : class { throw new NotImplementedException(); }

}

and the core question would be why doesn't compiler treat generic for structs and generic for class as different param types. I guess there is no logical explanation, it just doesn't. or am I missing something?

Reasons:
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Aliq Qim

79386792

Date: 2025-01-25 13:29:06
Score: 0.5
Natty:
Report link

Edit: it is not fully working fine ...

I found an article which shows a way of doing what I need, albeit the code is a bit verbose and uses the data-theme attribute instead of a CSS class, but it works as a charm:

@import "tailwindcss";

@theme {
  --color-foreground: var(--theme-color-foreground);
  --color-background: var(--theme-color-background);
}

@layer base {
  [data-theme="light"] {
    --theme-color-foreground: hsl(0 0% 8%);
    --theme-color-background: hsl(0 0% 98%);
  }

  [data-theme="dark"] {
    --theme-color-foreground: hsl(0 0% 98%);
    --theme-color-background: hsl(0 0% 3.9%);
  }
}

I am open for better solutions!

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Jaime02

79386786

Date: 2025-01-25 13:25:04
Score: 9.5 🚩
Natty: 4.5
Report link

Has anyone figured this out? I have exact same issue.

Reasons:
  • RegEx Blacklisted phrase (3): Has anyone figured
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): I have exact same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: wise990

79386767

Date: 2025-01-25 13:14:02
Score: 1
Natty:
Report link

You can choose any git repository known to magit with the universal argument to magit-status, e.g. C-u M-x magit-status.

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

79386765

Date: 2025-01-25 13:10:01
Score: 0.5
Natty:
Report link

create a new branch. Copy the json file to name it, terraform.tfstate to the same directory as the main.tf file.

Use the code below to initialize the project.

PROJECT_ID="*<gitlab-project-id>*"
TF_USERNAME="*<gitlab-username>*"
TF_PASSWORD="*<gitlab-personal-access-token>*"
TF_ADDRESS="https://gitlab.domain/api/v4/projects/${PROJECT_ID}/terraform/state/**old-state-name**"

terraform init \
  -backend-config=address=${TF_ADDRESS} \
  -backend-config=lock_address=${TF_ADDRESS}/lock \
  -backend-config=unlock_address=${TF_ADDRESS}/lock \
  -backend-config=username=${TF_USERNAME} \
  -backend-config=password=${TF_PASSWORD} \
  -backend-config=lock_method=POST \
  -backend-config=unlock_method=DELETE \
  -backend-config=retry_wait_min=5

At the end, it'll ask you if you want to copy the state to the new back end, type 'yes'.

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

79386761

Date: 2025-01-25 13:09:01
Score: 2.5
Natty:
Report link

GoogleServicesJson is an available item name that from the Xamarin.GooglePlayservices.Basement Nuget Package.

try after install this package

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Rapsys Info Tech

79386759

Date: 2025-01-25 13:06:01
Score: 0.5
Natty:
Report link

While the keyCode attribute has been deprecated, the code attribute behaves similarly. The key attribute may help in the given usecase, as it will give you the character according to the keyboard layout.

In https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode the reason for the weired behavior is found. It is that browsers map non-symbol characters to some other values.

Specifically look at the table keyCode values of each browser's keydown event caused by printable keys in standard position (punctuations in US layout), where it is documented that a backslash can either map to code 220 or 221 depending on your browser, keyboard layout and operating system.

As this behavior seems exceedingly confusing, i would suggest just using the key attribute.

    function test(e) {
       e = e || window.e;
       var keyCode = e.which || e.code;
       
       alert(keyCode +' -> '+ e.key);
    }

If you are using a US-keyboard layout, pressing backslash should produce "220 -> \"

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

79386757

Date: 2025-01-25 13:06:01
Score: 0.5
Natty:
Report link

make sure, you have no spaces in the path of your project. If you have spaces and need them, try to change the expo configuration

{"expo":{
  ...
    "web": {
      ...
        "output": "single"

instead of "output": "static". After the change expo needs to be restarted

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

79386746

Date: 2025-01-25 13:00:59
Score: 2.5
Natty:
Report link

For me, it is located here:

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

79386745

Date: 2025-01-25 12:58:59
Score: 1
Natty:
Report link

That's works:

select
    e.id,
    e.name,
    rights #> cast("right" as text[]) as allow
from
    emodels e,
    lateral (select 'media' as subfolder) subfolder,
    lateral (select '{library,'||(subfolder::text)||'}' as "right") "right"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: vbulash

79386744

Date: 2025-01-25 12:57:58
Score: 1
Natty:
Report link

A HTML-only approach could work in your case, as well.
Assumptions:

  1. the code showcased in the question is not inside a eventHandler
  2. you want the HTML to handle video source at page load

The best reference is here: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source#using_the_media_attribute_with_video

Note: Avoid parsing markup through JS as it is considered insecure.

Reasons:
  • Whitelisted phrase (-1): in your case
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Webber Delver

79386741

Date: 2025-01-25 12:55:58
Score: 0.5
Natty:
Report link

Append method will only insert the source element as text node, you will need insertAdjacentHTML instead.

mainVideo.insertAdjacentHTML( 'beforeend', "<source type='video/mp4' src='' />")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Chop

79386740

Date: 2025-01-25 12:54:57
Score: 0.5
Natty:
Report link

None of above commands working for me :( PS C:\Users> sudo -H pip install jupyter sudo : The term 'sudo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

PS C:\Users> install jupyter install : The term 'install' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

PS C:\Users> pip install jupyter pip : The term 'pip' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Sirisha A

79386738

Date: 2025-01-25 12:54:57
Score: 2
Natty:
Report link

The issue you're encountering is likely due to the primary key constraint on the Roles entity. In your Roles entity, the userId field is defined as the primary key, this means that each userId can only have one entry in the roles table, which is why only one role is being inserted. To allow multiple roles for a single user, you need to define a composite primary key that includes both the userId and another field.

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Prayugo Dwi Setiyoko

79386737

Date: 2025-01-25 12:50:57
Score: 2
Natty:
Report link

Flask is not intended for production, instead you should use something like FastAPI when deploying for production. The deployment process depends on what kind of setup your company has. If your company uses Kubernetes a typical scenario would be to have you code in a git repo where you create a docker image, and then reference that image in you Kubernetes app deployment file.

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

79386734

Date: 2025-01-25 12:48:56
Score: 1
Natty:
Report link

Update: After spending multiple days on it I found a solution. By adding min-w-max it suddenly worked and the boxes kept the width and the scroll was like it was expected.

 <div class="w-4/5 ml-[25%]">
        <div class="overflow-sroll">
            <table class="table-fixed overflow-sroll min-w-max">
                <thead>

The margin on the right however does not work in any way (guessing the min-w-max class does it) but I do not mind anymore.

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

79386733

Date: 2025-01-25 12:48:56
Score: 1
Natty:
Report link

Try adding the --quiet flag. For reason unbeknownst to me, this seems to work.

gcloud auth configure-docker us-docker.pkg.dev --quiet

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

79386729

Date: 2025-01-25 12:44:56
Score: 0.5
Natty:
Report link

You can point out to specific dirs/configs like:

ExecStart=/usr/bin/snap run redis-stack-server /etc/redis/redis.conf
WorkingDirectory=/var/lib/redis-stack

But I still have some problems with restarting process... looks like it is not killed properly.

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

79386722

Date: 2025-01-25 12:40:54
Score: 1
Natty:
Report link

If you are importing from another python file, it could be interfering with the module music-tag, if so try to rename the file.

Also please try to verify the download files by using

pip install music-tag

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