79240368

Date: 2024-11-30 19:46:46
Score: 3.5
Natty:
Report link

Similar problem. Exporting from 2022 to Excel. On the wizard I tell it to export to X:\MyFolder\MyFile.XLS but when I select the datasource qryExportThis it gives a destination of 'qryExportThis'. I have to overwrite the destination with the path and name of the Excel file. On the Edit Settings popup screen it comes up with the Create Destination table option only. It is still assuming that I am exporting to a table. It has forgotten about Excel. Roughly translated: it is broken. I cannot (so far) run the DTSX file I have created. I have to do the export manually each time.

Reasons:
  • Blacklisted phrase (1): I have to do
  • Blacklisted phrase (0.5): I cannot
  • RegEx Blacklisted phrase (1): Similar problem
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: TimF

79240363

Date: 2024-11-30 19:43:45
Score: 1
Natty:
Report link

see this link: https://livewire.laravel.com/docs/navigate#dont-rely-on-domcontentloaded

you should use livewire:navigated instead of DOMContentLoaded

the DOMContentLoaded only triggered once after page hard refresh. but when you navigate between pages using wire:navigate, the DOMContentLoaded is not triggering anymore, instead you can use livewire:navigated event. it's triggered in both page hard refresh (like DOMContentLoaded) and after navigating between pages

Reasons:
  • Blacklisted phrase (1): this link
  • Whitelisted phrase (-1.5): you can use
  • RegEx Blacklisted phrase (1): see this link
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: llBestBoyll

79240358

Date: 2024-11-30 19:41:44
Score: 0.5
Natty:
Report link

I got this message when apperently I already had a folder named "venv" in my directory, after removing it it soleved the problem. But also just creating one manualy worked:

rm -rd venv
python3.11 -m virtualenv venv
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Matan Dobrushin

79240347

Date: 2024-11-30 19:33:42
Score: 5.5
Natty:
Report link

I am also having same issues. I do not think ChatGoogleGenerativeAI works with tool calling. I think it is hallucinating, hence no content even though it calls the tools

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): I am also having same issue
  • Single line (0.5):
  • Low reputation (1):
Posted by: Davidsonity

79240344

Date: 2024-11-30 19:31:41
Score: 1.5
Natty:
Report link

Very dumb mistake in my part

use Livewire\Component;
- use livewire\Attributes\On;
+ use Livewire\Attributes\On;

no errors were being thrown, so I have to figure that out.

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

79240342

Date: 2024-11-30 19:28:40
Score: 1.5
Natty:
Report link

you can use the following to copy a map Map map1 = {}; map1.addAll(map2);

Reasons:
  • Whitelisted phrase (-1.5): you can use
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: UappE Mall

79240325

Date: 2024-11-30 19:16:37
Score: 0.5
Natty:
Report link

You are missing the name attribute in the <input> element.

You should add the following line :

<input type="file" id="file" name="file">
Reasons:
  • Low length (1):
  • Has code block (-0.5):
Posted by: AVTUNEY

79240320

Date: 2024-11-30 19:09:36
Score: 2
Natty:
Report link

In my case, after trying many of the above solutions, I found an import that ended in .R

import android.os.Build.VERSION_CODES.R

Deleting it solved the problem. Somewhat similar to SmokeyTBear's answer above.

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

79240319

Date: 2024-11-30 19:09:36
Score: 1
Natty:
Report link

In my case: Upgrading room with the latest version "2.6.1" works.

configuration:

def room_version = "2.6.1"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
kapt "androidx.room:room-compiler:$room_version"
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohd Sufiyan

79240316

Date: 2024-11-30 19:08:36
Score: 1
Natty:
Report link

Simple solution: Browse your unsecure site from a Private Window. it will work in any browser.

Reasons:
  • Whitelisted phrase (-2): solution:
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Fran Navas

79240308

Date: 2024-11-30 19:01:35
Score: 0.5
Natty:
Report link

To truncate one string to a shorter one I had to use:

let truncated_string = original_string.chars().take(16).collect:<String>();

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

79240300

Date: 2024-11-30 18:57:34
Score: 0.5
Natty:
Report link

In my case, I had a Capacity Reservation in place (presumably I'd unwittingly clicked on the wrong box when launching it) .... once I changed it to 'None' I was able to change the instance type to anything (and not being locked to t2.micro).

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

79240286

Date: 2024-11-30 18:47:31
Score: 1
Natty:
Report link

When this question was posted MAMP did not support MySQL 8.

There is support for MySQL 8 now and with Mamp PRO I was able to get things configured properly directly in MAMP.

First MAMP Pro Settings > Server > MySQL tab. I selected the following settings: enter image description here

Then to open my local DB I go to the MAMP Pro Databases tab, highlight a database, and then click "Open In" and choose my desired DB program.

enter image description here

Reasons:
  • Probably link only (1):
  • No code block (0.5):
  • Starts with a question (0.5): When this
  • High reputation (-1):
Posted by: Dan

79240282

Date: 2024-11-30 18:46:31
Score: 1.5
Natty:
Report link

add data-navigate-once to all your javascript on the page

<script data-navigate-once src="{{ url('/') }}/assets/js/app.js"></script>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Muhammed Yakubu

79240276

Date: 2024-11-30 18:42:30
Score: 0.5
Natty:
Report link

For B::foo to override A::foo, it must have the exact same method signature as defined in the Java Language Specification. This means the parameter type must be Building, not Skyscraper. If B::foo uses Skyscraper as the parameter type, it's actually creating a new overloaded method rather than overriding A::foo. When the code calls building.foo(skyscraper), the compile-time type of 'building' is Building, so it looks for foo(Building), and since B::foo(Skyscraper) is a different method signature, it doesn't override A::foo(Building). Therefore, A::foo gets called.

This is different from what you might expect because method overriding requires exact signature matching, while method overloading (which is what happens if you use Skyscraper in B::foo) is resolved at compile-time based on the static types. The runtime type of the object doesn't matter for overloaded methods - only for overridden methods. That's why none of the given options are correct - using any type other than Building in B::foo would result in method overloading rather than overriding, and A::foo would still be called.

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

79240275

Date: 2024-11-30 18:41:29
Score: 1.5
Natty:
Report link

AWS ECS, by default, uses the default bridge network when selecting "bridge" for the network settings on an ECS Task Definition. Per Docker Docs, "User-defined bridges provide automatic DNS resolution between containers. Containers on the default bridge network can only access each other by IP addresses, unless you use the --link option, which is considered legacy. On a user-defined bridge network, containers can resolve each other by name or alias."

When defining a network in a dockercompose.yml, specifying "bridge" specifies a user-defined bridge network, which is why DNS Resolution resolved between my local containers.

Unfortunately and from the information I was able to gather, AWS does not currently support for the user-defined bridge networking option. Switching to awsvpc is likely to best move at the moment.

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

79240262

Date: 2024-11-30 18:33:27
Score: 1.5
Natty:
Report link

Endpoint URL Format for Cloud Function should be in proper format and also @ somethingsomething already mentioned authentication might be turned on for the function, in which case you'll need to configure that for the push subscription as well (and confirm that the pubsub agent SA has rights to trigger the function) .

Reasons:
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sourav Dutta

79240256

Date: 2024-11-30 18:31:27
Score: 1.5
Natty:
Report link

I've fixed with :

pip uninstall opencv-python opencv-python-headless

then

pip install opencv-python
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohamed Amin Naimi

79240254

Date: 2024-11-30 18:30:26
Score: 13 🚩
Natty: 4.5
Report link

did u fix it? i have the same issue

Reasons:
  • Blacklisted phrase (1): i have the same issue
  • RegEx Blacklisted phrase (3): did u fix it
  • RegEx Blacklisted phrase (1.5): fix it?
  • Low length (2):
  • No code block (0.5):
  • Me too answer (2.5): i have the same issue
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): did
  • Low reputation (1):
Posted by: milad Nicolas

79240253

Date: 2024-11-30 18:30:25
Score: 3
Natty:
Report link

As in the comments, the issue was on cookie management. Moreover, I discovered the problem was on the default user agent in another case. Specifying it would fix the issue.

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

79240233

Date: 2024-11-30 18:19:23
Score: 2
Natty:
Report link

I solve problem with delete finalizator in manifest in k8s claster directly.

kubectl edit application grafana -n cd
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Алексей Телепин

79240229

Date: 2024-11-30 18:17:22
Score: 2.5
Natty:
Report link

I have created a simple C++ wrapper around these environment variable functions for POSIX aiming for a thread-safety in the first place: safe-env.

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

79240225

Date: 2024-11-30 18:13:22
Score: 2.5
Natty:
Report link

Alternatively, try Python 3.12.1 and tensorflow 2.18.0

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

79240220

Date: 2024-11-30 18:13:22
Score: 1.5
Natty:
Report link

I know this is an old question but I landed here for the same reason. This is working for me. Note that I only wanted to capture the last line of ffmpeg output to a textbox. I'm using this to convert .ts files to .mp4. It's very quick because it copies to a new file while encoding. Very fast. Takes only a couple of minutes for a 6GB file...

Here's an example in action: https://www.youtube.com/watch?v=45iBOx8eFcs

Cheers everyone

Using process As New Process()

argConvert = "-i " &
    """D:\" & VODFileName & ".ts""" &
    " -c:v copy -c:a copy  " &
    """D:\" & VODFileName & ".mp4"""

process.StartInfo.FileName = "ffmpeg.exe"
process.StartInfo.Arguments = argConvert
process.StartInfo.UseShellExecute = False
process.StartInfo.RedirectStandardError = True
process.StartInfo.CreateNoWindow = True

process.Start()

Dim reader As StreamReader = process.StandardError
Dim output As String = ""

While Not process.StandardError.EndOfStream
    output = process.StandardError.ReadLine()
    Label1.Text = output
    Application.DoEvents()
End While

Label1.Text = "Done"
Label1.Refresh()

End Using

Reasons:
  • Blacklisted phrase (1): Cheers
  • Blacklisted phrase (1): youtube.com
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Dom

79240214

Date: 2024-11-30 18:11:21
Score: 1
Natty:
Report link

I missed the docs on Wix's website. This is very simply done using the following code:

<BootstrapperApplication>
    <bal:WixInternalUIBootstrapperApplication LogoFile="..\Resources\LogoFile.bmp" />
</BootstrapperApplication>
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Mike

79240211

Date: 2024-11-30 18:08:20
Score: 2.5
Natty:
Report link

My issue was that I was using Image.asset instead of Image.file to retrieve user uploaded images. It turns out you have to use the latter for dynamically uploaded images. https://api.flutter.dev/flutter/widgets/Image-class.html

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

79240207

Date: 2024-11-30 18:07:20
Score: 1
Natty:
Report link

The data_vars attribute of a dataset is a dictionry mapping data variable names to data variables.

for var_name, var in dset.data_vars.items():
    print(type(var_name)) # type: str
    print(type(var)) # type:xarray.DataArray
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Janukan Sivajeyan

79240198

Date: 2024-11-30 18:02:18
Score: 4
Natty:
Report link

I face the same issue and what I do is that I added android:windowSoftInputMode="adjust resize in the activity section of the AndroidManifest.xml

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Me too answer (2.5): I face the same issue
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Abdulfattah

79240184

Date: 2024-11-30 17:52:15
Score: 2.5
Natty:
Report link

Use can use record oriented processors like to update the record try update records.to merge the records use merge record try to configure the bin age correlation attributes etc to handle .Then partition record,split record,convert records, validate records are record oriented processors

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

79240181

Date: 2024-11-30 17:51:15
Score: 2
Natty:
Report link

i use this code working fine:

from moviepy import VideoFileClip
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: YULIANG WANG

79240175

Date: 2024-11-30 17:49:14
Score: 1
Natty:
Report link

Sync files with gradle doesnt appear even as an option under the file menu. I am using ladybug, with flutter and the latest gradle. The is no way to sync files with gradle. And because you cannot do this, it causes alot of of issues when you are trying to build the apk.

Now if you go to settings, tools, build tools deployment. You can no longer choose a jdk for the gradle either!.

If you go to settings, appearance, toolbar and menus. You can finally see a button option for Sync files with gradle. You can choose where the buttion should appear. Apply changes. And guess what... THE BUTTON DOES NOT APPEAR.

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

79240173

Date: 2024-11-30 17:47:14
Score: 0.5
Natty:
Report link

Replace your mm with minimum_should_match then recheck it if it works.

I hope it helps!

Reasons:
  • Whitelisted phrase (-1): hope it helps
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: DevQt

79240169

Date: 2024-11-30 17:44:13
Score: 3
Natty:
Report link

pkg=your.android.pkg' perm='WRITE_SECURE_SETTINGS' abd shell dumpsys package "$pkg"

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Daniele Lo Porto

79240167

Date: 2024-11-30 17:43:12
Score: 0.5
Natty:
Report link

The solution seems quite simple: subdomain_matching has to be enabled.

app = Flask(__name__, subdomain_matching=True)

The problem IMO is that in this moment Flask documentation is not so clear about this.

In particular the documentation quotes:

SERVER_NAME "Must be set if subdomain_matching is enabled, to be able to extract the subdomain from the request."

but I couldn't find where it explicitly says that since 3.1.0 setting SERVER_NAME alone doesn't activate sudomain_matching anymore.

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

79240163

Date: 2024-11-30 17:39:12
Score: 3.5
Natty:
Report link

I think you code is correct but its needs to get some optimized. Try it

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

79240156

Date: 2024-11-30 17:36:11
Score: 2
Natty:
Report link

I understand the importance of finding a reliable solution tailored to your needs. With my expertise and dedication, I am confident in providing you with the best possible answer. Just share your email address with me, and I will promptly send you a detailed and professional response in PDF format. Rest assured, I value your time and trust, and I am committed to delivering quality work that meets your expectations.

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

79240148

Date: 2024-11-30 17:33:10
Score: 2.5
Natty:
Report link

Query using DbContextOne var apps = contextOne.App.ToList(); // Load all apps

or Query using DbContextTwo or Merge Results in Memory

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

79240146

Date: 2024-11-30 17:31:10
Score: 0.5
Natty:
Report link

This error will also occur if you forget your main function

Asleep

#include "xml.h"

XML::Document doc;

doc.load("images/punisher-2.svg");

Awake

#include "xml.h"

XML::Document doc;

int main()
{
    doc.load("images/punisher-2.svg");
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Sosukodo

79240145

Date: 2024-11-30 17:31:10
Score: 1
Natty:
Report link

To compare clusters from different years using K-Modes, you can:

  1. Compare Centroids: Calculate the similarity (e.g., Jaccard or Hamming distance) between the cluster centroids from each year.
  2. Track Cluster Changes: Compare cluster sizes and feature distributions over time to identify trends.
  3. Use Visualization: Apply dimensionality reduction (e.g., PCA) to visualize how clusters overlap across years.
  4. Cluster Consistency: Use metrics like Adjusted Rand Index (ARI) to measure stability between clusters across years.
  5. Cluster Overlap: Create a heatmap to visualize overlap between clusters across years.
Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: renad fawaz 448

79240134

Date: 2024-11-30 17:27:08
Score: 6 🚩
Natty:
Report link

I am working on simillar project with you and having exactly the same problem. I found a recently updated notification on spotify. https://developer.spotify.com/blog/2024-11-27-changes-to-the-web-api

Reasons:
  • Probably link only (1):
  • Low length (1):
  • No code block (0.5):
  • Me too answer (2.5): having exactly the same problem
  • Low reputation (1):
Posted by: 조성지

79240119

Date: 2024-11-30 17:20:06
Score: 1.5
Natty:
Report link

sqlalchemy.dialects.sqlite.insert

Construct a sqlite-specific variant Insert construct. The sqlalchemy.dialects.sqlite.insert() function creates a sqlalchemy.dialects.sqlite.Insert. The Insert construct includes additional methods Insert.on_conflict_do_update(), Insert.on_conflict_do_nothing().

from sqlalchemy.dialects.sqlite import insert

session.execute(insert(Date).values(
    [{"date": date_} for date_ in new_dates]).on_conflict_do_nothing())
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: defalt

79240106

Date: 2024-11-30 17:09:04
Score: 0.5
Natty:
Report link

Try adding a / before the path to the image. So, /img/giyim/soft-set2.webp in the db.json file.

Also, it will be easier & as a general project structure rule, you should store all your assets like fonts and images in 1 folder named assets.

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

79240064

Date: 2024-11-30 16:51:59
Score: 3
Natty:
Report link

Snapshots and time travel are not ideal for CCPA/GDPR use cases. copy-on-write would be ideal if it were performant. I am embarking on a similar iceberg journey with CCPA/GDPR and trying to get ahead of the curve on potential bottlenecks. My next step is to evaluate insert overwrite (partition) for my use cases. It will also help me in the long run from an optimization perspective.

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

79240061

Date: 2024-11-30 16:49:59
Score: 2.5
Natty:
Report link

I'm a bit late with my reply, but with react-big-calendar v1.15.0 I could get it to work by adding

import 'react-big-calendar/lib/addons/dragAndDrop/styles.css';

See https://github.com/jquense/react-big-calendar/issues/1999

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

79240059

Date: 2024-11-30 16:49:59
Score: 1.5
Natty:
Report link

To extract tables (including their structure) from PDF documents effectively, especially when dealing with non-English fonts, I recommend using VeryPDF Online Table Extractor. This tool is designed specifically for table extraction from PDFs and offers several advantages:

  1. Accurate Table Recognition: It extracts tables directly while maintaining their structure, regardless of the font or language used in the PDF.
  2. No OCR Required: Since the document is not a scan, VeryPDF Online Table Extractor works perfectly without relying on OCR.
  3. User-Friendly Interface: You can visually select the table area within the document and customize the extraction as needed.
  4. Versatile Output Options: Export the extracted table to Excel, CSV, or other formats.

You can try it with your PDF to achieve precise results without relying on coordinate-based extraction or complex transformations. This solution will also work reliably for future PDFs with varying layouts.

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

79240055

Date: 2024-11-30 16:45:58
Score: 2.5
Natty:
Report link

@tyg : Thank you for your answer. Below code worked for me.

@Database(
entities = [UserEntity::class, ShopDetailsEntity::class],
version = AppConstants.DB_VERSION,
exportSchema = false

)

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): worked for me
  • Low length (0.5):
  • Has code block (-0.5):
  • User mentioned (1): @tyg
  • Self-answer (0.5):
  • Looks like a comment (1):
  • Low reputation (0.5):
Posted by: jesto paul

79240051

Date: 2024-11-30 16:44:58
Score: 1.5
Natty:
Report link

Was able to solve the issue. Actually was just an indentation issue on my application.yml.

The starttls should be inside the smpt like this:

mail:
 smtp:
   trust: "*"
   auth: true
   starttls:
     enabled: true
     required: true
 connectiontimeout: 5000
 timeout: 3000
 writetimeout: 5000
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Luís Casqueiro

79240049

Date: 2024-11-30 16:43:57
Score: 2
Natty:
Report link

from itertools import chain

regular_list = ["foo", ["banana", "apple"], "banana", ["peaches", "grapes"]]

flat_list = list(chain.from_iterable((item if isinstance(item, list) else [item]) for item in regular_list))

print(flat_list)

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

79240039

Date: 2024-11-30 16:40:56
Score: 2.5
Natty:
Report link

Just an update here, I found the issue in my node_modules. I had to remove my modules and run npm install, which solved it.

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

79240026

Date: 2024-11-30 16:35:55
Score: 4
Natty:
Report link

Debug -> Layout Settings -> check variable and console see image below: enter image description here

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

79240008

Date: 2024-11-30 16:26:52
Score: 4
Natty:
Report link

tensorrt-llm has an unconditional requirement on pywin32 - see https://inspector.pypi.io/project/tensorrt-llm/0.14.0/packages/1f/93/384befbf1b7a1d7e09eef4829e0dfb2dcf07a1b7f21cdfa368dc01605be0/tensorrt_llm-0.14.0.tar.gz/PKG-INFO#line.28

you should report a bug to that project

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

79240000

Date: 2024-11-30 16:23:51
Score: 3
Natty:
Report link

i get the same errors using solana-program 2.1.0 to .4 and stable solana version fetches v1.42 platform-tools wich doesn't exist ihe download is 404... have to change version so they all fit 2.1.2 is ok fetches v1.43 but gives a build error for

        warning: [email protected]: include/ring-core/target.h:64:2: error: "Unknown target CPU"
warning: [email protected]:    64 | #error "Unknown target CPU"
warning: [email protected]:       |  ^
warning: [email protected]: In file included from crypto/mem.c:58:
warning: [email protected]: In file included from crypto/internal.h:115:
warning: [email protected]: include/ring-core/check.h:27:11: and build fails
mine asks for solana-pubkey feature that is a dependency therfore cannot be used as a feature!!!

    myenvjustinlanouette@iMac-de-Justin sns-integration % cargo update
    Updating crates.io index
error: failed to select a version for `solana-pubkey`.
    ... required by package `solana-program v2.1.4`
    ... which satisfies dependency `solana-program = "^2.1.4"` of package `sns-integration v0.1.0 (/Users/justinlanouette/Metaverse-Developement/anarcrypt.sol/programs/sns-integration)`
versions that meet the requirements `=2.1.4` are: 2.1.4

the package `solana-program` depends on `solana-pubkey`, with features: `solana-sha256-hasher` but `solana-pubkey` does not have these features.
 It has an optional dependency with that name, but that dependency uses the "dep:" syntax in the features table, so it does not have an implicit feature with that name.

failed to select a version for solana-pubkey which could resolve this conflict myenvj

Reasons:
  • RegEx Blacklisted phrase (1): i get the same error
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): i get the same error
  • Low reputation (1):
Posted by: RastaDjust

79239998

Date: 2024-11-30 16:23:51
Score: 1.5
Natty:
Report link

I found the following piece of code to produce the same array as r in your example.

np.take(entry,indices,axis=0) 

It seems that stacking is not necessary with the take function.

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

79239994

Date: 2024-11-30 16:21:51
Score: 3
Natty:
Report link

Might not even need this information but just wanted to say you're an excellent person for coming back and posting your solution!

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

79239993

Date: 2024-11-30 16:21:51
Score: 1
Natty:
Report link

The most viable alternative is using the Data Contract. It is also easy to use, a totally transparent and type-agnostic technology with good performance (due to assemblies generated on the fly using System.Reflection.Emit under the hood. Everything is explained in the documentation.

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

79239992

Date: 2024-11-30 16:20:51
Score: 0.5
Natty:
Report link

There's apparently yet another option in Text Editor/General: "Automatically surround selections when typing quotes or brackets." It works for the C# editor, tested in Visual Studio 2022 17.13 Preview 1.

Screenshot of the Visual Studio options dialog

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

79239989

Date: 2024-11-30 16:19:50
Score: 4
Natty:
Report link

Can't you just put the headers in a different frame, above the canvas that scrolls? That should keep the table headers in place while you scroll through the contents of the table.

Reasons:
  • Low length (1):
  • No code block (0.5):
  • Contains question mark (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): Can't you
  • Low reputation (1):
Posted by: Timon

79239980

Date: 2024-11-30 16:15:49
Score: 1
Natty:
Report link

I found the solution. Go to Project > Properties > General then change target platform to Latest.

Reasons:
  • Whitelisted phrase (-2): I found the solution
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: kryptoid 256

79239967

Date: 2024-11-30 16:10:48
Score: 2
Natty:
Report link

This should be a quick fix npm install --save-dev @babel/plugin-proposal-private-property-in-object

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

79239955

Date: 2024-11-30 16:05:46
Score: 1
Natty:
Report link

I have been searching for an answer for a long time. And now, after posting the question I found it.

When returning the error messages as I am doing:

return new ValidationResult(errorMessage);

The error message isn't bound to the field. To bind the error messages to the field the return should instead be:

return new ValidationResult(errorMessage, [validationContext.DisplayName]);
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Orgaard

79239948

Date: 2024-11-30 16:01:46
Score: 2.5
Natty:
Report link

Sequoia 15.1.1, Xcode 16.1. I had Apple Intelligence toggled off in System Settings. After turning it on the Predictive Code Completion Model installed without this error.

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

79239942

Date: 2024-11-30 15:59:45
Score: 2
Natty:
Report link

Replacing imeOptions setting EditorInfo.IME_ACTION_DONE with EditorInfo.IME_ACTION_NONE fixes the issue.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Ignatio Mobius

79239939

Date: 2024-11-30 15:58:44
Score: 4.5
Natty:
Report link

tu solución me ayudo mucho, dejo el código equivalente en java:

import java.util.ArrayList;
import java.util.List;

public class BoatMovements {
    /**
     * @return boolean The destination is reachable or not
     */
    public static boolean canTravelTo(boolean[][] gameMatrix, int fromRow, int fromColumn, 
                                    int toRow, int toColumn) {
        // Out of bounds
        if (toRow > gameMatrix.length - 1
            || fromRow > gameMatrix.length - 1
            || toColumn > gameMatrix[0].length - 1
            || fromColumn > gameMatrix[0].length - 1) {
            return false;
        }

        // Moving illegally
        if (
            // ... within the same column, up or down
            (fromRow != toRow && Math.abs(toRow - fromRow) > 1)
              // ... within the same row, left or once/twice (at most) right
              || (fromColumn != toColumn && ((fromColumn - toColumn) > 1 || (toColumn - fromColumn) > 2
            ))
        ) {
            return false;
        }
        
        if (fromRow == toRow) { // Moving horizontally
            List<Integer> toCheck = range(fromColumn, toColumn);
            for (int col : toCheck) {
                if (!gameMatrix[fromRow][col])
                    return false; // Path is blocked
            }
            return true;
        } else if (fromColumn == toColumn) { // Moving vertically
            List<Integer> toCheck = range(fromRow, toRow);
            for (int row : toCheck) {
                if (!gameMatrix[row][fromColumn])
                    return false; // Path is blocked
            }
            return true;
        } else {
            // Moving diagonally is not allowed
            return false;
        }
    }

    // Implementación de la función range de PHP
    private static List<Integer> range(int start, int end) {
        List<Integer> result = new ArrayList<>();
        if (start <= end) {
            for (int i = start; i <= end; i++) {
                result.add(i);
            }
        } else {
            for (int i = start; i >= end; i--) {
                result.add(i);
            }
        }
        return result;
    }

    public static void main(String[] args) {
        boolean[][] gameMatrix = {
            {false, true,  true,  false, false, false},
            {true,  true,  true,  false, false, false},
            {true,  true,  true,  true,  true,  true},
            {false, true,  true,  false, true,  true},
            {false, true,  true,  true,  false, true},
            {false, false, false, false, false, false}
        };

        System.out.println(canTravelTo(gameMatrix, 3, 2, 2, 2)); // true, Valid move
        System.out.println(canTravelTo(gameMatrix, 3, 2, 3, 4)); // false, Can't travel through land
        System.out.println(canTravelTo(gameMatrix, 3, 2, 6, 2)); // false, Out of bounds
    }
}
Reasons:
  • Blacklisted phrase (2): código
  • Blacklisted phrase (3): solución
  • Long answer (-1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Carlos Villegas

79239929

Date: 2024-11-30 15:54:43
Score: 2
Natty:
Report link

Des idées de projet : -IA et Cybersécurité : Détection de menaces avancées avec des modèles de Deep Learning -création d'une plateforme de stockage décentralisé et sécurisé pour les données sensibles -Analyse des vulnérabilités des protocoles IOT -Analyse des vulnérabilités liées aux Framework web populaires

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

79239919

Date: 2024-11-30 15:50:42
Score: 2
Natty:
Report link

man 2 times

This is generally enough to get a precise overview of each thread user/sys/idle times without much hassle.

Don't rely on the children times in the uts struct, they are only accounted when a child has exited and been waited for.

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

79239913

Date: 2024-11-30 15:47:41
Score: 1
Natty:
Report link

In your scenario, since you don't have administrator privileges to create custom event log sources and names, you are constrained by what the system already has available for logging. The Write-EventLog cmdlet requires a source to be registered before it can write to a log, and trying to use a source that doesn't exist or isn’t registered will throw the error you encountered.

Unfortunately, without administrative rights, you cannot register new event sources using New-EventLog. However, you can still write to the existing logs if you identify the logs and sources that are already available to the user.

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

79239908

Date: 2024-11-30 15:46:41
Score: 2.5
Natty:
Report link

This may happen because you have not added the identifier of the path where this file is located to the include in tsconfig.json. I also encountered this problem, and finally found out about it through a very accidental prompt. And there is no need for the require import method.

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

79239904

Date: 2024-11-30 15:45:41
Score: 2
Natty:
Report link

Spotify deprecated several API endpoints on November 27th 2024. The get-audio-features was one of those endpoints.

This in turn affected spotipy as well.

Reasons:
  • Probably link only (1):
  • Low length (1.5):
  • Has code block (-0.5):
Posted by: Oscar Schafer

79239890

Date: 2024-11-30 15:40:40
Score: 1.5
Natty:
Report link

I confirm that adding a blank hatch, as suggested by @HMH1013, works well:

ax2.contourf(da.lon, da.lat, mask, hatches=['', '.'], alpha=0)

That behaviour only started to happen in a recent version of Matplotlib for me.

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

79239889

Date: 2024-11-30 15:40:40
Score: 3.5
Natty:
Report link

Try to move the document to %USERPROFILE% (C:\Users\xxx), then run uninstall again.

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

79239881

Date: 2024-11-30 15:38:39
Score: 2
Natty:
Report link

I tested this case in detail, and experimentally found out the following:

If you marshal out a parameter that.

  1. has a meaningful type that does not allow null without an explicit Nullable wrapper that is not supported by the marshalizer (e.g. float).
  2. Declared in the marshalizable library as float* (a pointer to a memory region that may be empty)

Thus, if the marshalizable function writes null there, then in C# the value of such a variable will be 0 (since out will declare it as 0 when initializing the variable, and null will simply not be written).

As a result, we will have out float = 0 without any error on the part of dotnet, so, answering your own question, in this case you can disregard the compliance with the original documentation and use the more convenient variant with out float instead of out IntPtr, but keep in mind that in case of an error, in the place where null should be, there will be 0.

I hope I was able to explain it in a clear way, and that people who have the same question will understand me.

I would be glad if people who are more knowledgeable in the subject would complement me if I have made a mistake.

Reasons:
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): have the same question
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Eduard Gushchin

79239878

Date: 2024-11-30 15:36:39
Score: 0.5
Natty:
Report link

Based on the code provided, here's what you can focus on to resolve the events not showing up in production. Since tasks are working correctly but events aren't, and both use similar patterns, the key difference likely lies in how the events data is being handled in the frontend. First, verify that your events API endpoint is being called correctly in production by adding more detailed logging in your events route handler. Then, check that the date handling in your Event model is consistent between environments.

Here's what to implement: Add comprehensive logging in your events route to track the exact data being sent, ensure your frontend is using the correct API URL for events (similar to your tasks implementation), and verify that the date formats are being properly parsed when creating Event objects. You can also add a specific date format validation in your Event schema to ensure consistency across environments. The fact that tasks work while events don't suggests the issue is specific to the event data handling rather than a general API connectivity problem.

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

79239873

Date: 2024-11-30 15:33:38
Score: 2.5
Natty:
Report link

setting the --dpi 200 did the trick to solve the issue !!

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

79239854

Date: 2024-11-30 15:24:35
Score: 9.5 🚩
Natty: 4
Report link

Facing the same issue did you find any fix.

Reasons:
  • RegEx Blacklisted phrase (3): did you find any fix
  • Low length (1.5):
  • No code block (0.5):
  • Me too answer (2.5): Facing the same issue
  • Unregistered user (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Zog

79239849

Date: 2024-11-30 15:20:34
Score: 0.5
Natty:
Report link

The {% for %} block of flask template would iterate over every item in your data (returned by get_hidden_interests) as is, so it's your task to prepare the correct data. Judging from the meaning of total_items and total_pages you might have mistakenly pass the whole database to it, instead of only required page of it. And get_hidden_interests accepting page and per_page feels like it should do the job, so there might be errors there.

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

79239843

Date: 2024-11-30 15:18:33
Score: 2
Natty:
Report link

Steps for you:

Sort Object Keys Alphabetically (Case-Insensitive): Use Object.keys() to get all keys of an object and sort them with .sort(), using localeCompare for case-insensitive comparison. Apply this recursively for nested objects.

Preserve Original Structure; Make sure arrays remain arrays and objects remain objects. Use a recursive approach to traverse and process each element based on its type (Array.isArray() and typeof).

Remove Duplicate Objects: Serialize objects using JSON.stringify() and use a Set to store and compare them. This will help you remove duplicates while keeping the first occurrence intact.

Remove Empty Properties: Define a helper function to detect "empty" values like null, undefined, empty arrays, or objects. Use this function recursively to clean up unwanted properties from your data.

You can look-up everything to understand it here:

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Fabian Weiss

79239837

Date: 2024-11-30 15:15:32
Score: 3
Natty:
Report link

When I tried to add an ed25519 key to Jenkins to authenticate with a key, Jenkins would refuse it as an unsupported key format. This is Jenkins 2.487 with a current sshd plugin on Debian bookworm (12.8).

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Starts with a question (0.5): When I
  • Low reputation (1):
Posted by: tmlpy

79239832

Date: 2024-11-30 15:12:32
Score: 2
Natty:
Report link

After a long struggle and feedback by several very helpful testers I think that I have found a reliable way to implement a CompanionDeviceService with startObservingDevicePresence.

In regard to your question, the behavior differs wildly across different Android versions and I highly recommend to test it on several devices. However, you should in any case start coroutines to handle your communication and (if applicable) show a notifiation to act as a foreground service and only use onDeviceAppeared as a launcher and onDeviceDisappeared as a hint on when to clean up.

However, things are complicated, so allow me to use this to share all my findings.

Background

For a few months now I am working on an open source BLE remote control for Sony cameras. I implemented it as a CompanionDeviceService and rely entirely on startObservingDevicePresence to start it. At the time of writing this, Android 15 is the most recent OS and I support a minimum of Android 12 (earliest startObservingDevicePresence). I am running a public beta and am confident about it enough by now to hopefully do a "proper release" in 1-2 weeks.

So, all of the following refers to BLE and you can find the code and user feedback I refer to on github.

How onDeviceAppeared/onDeviceDisappeared behaved in my tests

I have tested my app on a Pixel 6 with Android 15, a Pixel 3 with stock Android 12 and various LineageOS 20/21 images and on a few other Android 12 devices. I also got some logs from users with Android 14 devices and a Pixel 9 Pro with Android 15.

Across these devices I have found at least 4 different patterns for the onDeviceAppeared/onDeviceDisappeared callbacks:

Takeaways

The best solution seems to be to use the "outer" onDeviceAppeared and onDeviceDisappeared events to start/stop a service, but handle actual Bluetooth disconnects and reconnects independently inbetween. I think that this is actually the intended way to use these events: As indicator for when to start or stop the service. In fact, I think that these indicate the time during which you have the priviledged state of a companion service and are very unlikely to be killed. But the very different ways the events occur on different Android version and the barely existant documentation makes it really hard to figure out what you can expect. Even worse, the additional events since late Android 14 mean that you will have to ignore some cases.

My solution

So, I ended up literally counting the onDeviceAppeared events to only react to the first onDeviceAppeared and the last onDeviceDisappeared. I initialize my Bluetooth classes and call connectGatt on the first onDeviceAppeared. I free resources and terminate the service on the last onDeviceDisappeared (although, I think that Android would kill it eventually anyway).

Inbetween I let the "autoConnect" parameter of connectGatt keep the connection alive and observe its state through onConnectionStateChange of my BluetoothGattCallback. Especially any online/offline notification for the user is based on this. I actually even remove the notification when the device disconnects, so the users sees my service vanishing immediately (even though on Android 13/14 it actually stays around for a few minutes). So far, this seems to work well enough.

Note that this is not perfect for the Android 12 case where there is no matching onDeviceDisappeared after the very first connection. If you need that, you might have to handle Android 12 separately, but otherwise this only means that your service will stick around a bit longer afer the first startObservingDevicePresence and will eventually be cleaned by the system anyway

Also note, that according to the response I got on the Android issue tracker things might become easier with Android 16 when you can directly use onDevicePresenceEvent instead, but it will be a while until enough users have Android 16 to rely on. So, readers from the future with your fancy flying cars: Is it now nice to write BLE apps for Android or do you have more yearly API changes to worry about as we have seen since Android 4?

Reasons:
  • Blacklisted phrase (1): any help
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: Sebastian Staacks

79239822

Date: 2024-11-30 15:08:31
Score: 10
Natty: 8
Report link

Do you have any fix for sqlite? Thank you.

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • RegEx Blacklisted phrase (1.5): fix for sqlite?
  • RegEx Blacklisted phrase (2.5): Do you have any
  • Low length (1.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Đorđe Petrović

79239794

Date: 2024-11-30 14:59:29
Score: 3.5
Natty:
Report link

Why not use:

Test-Path (path goes here) -ErrorAction Stop

to generate a trappable exception that you can handle? That way, you don’t have to comb through the error record for the specifics?

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Starts with a question (0.5): Why not use
  • Low reputation (1):
Posted by: Todd Seward

79239777

Date: 2024-11-30 14:51:27
Score: 2.5
Natty:
Report link
android:layout_alignWithParentIfMissing="true"
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Sunny Jha

79239774

Date: 2024-11-30 14:50:27
Score: 2.5
Natty:
Report link

Yes, you can run Google Colaboratory notebooks from VS Code using the jupyter extension or through the VS Code integration with Google Colab via the Google Colab API. This allows you to edit and run code in Colab from within your local VS Code environment.

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

79239773

Date: 2024-11-30 14:48:26
Score: 3
Natty:
Report link

The problem is solved by adding the below statement in "gradle.properties" file located in [App_name] > android > gradle.properties The statement that is added,

org.gradle.java.home=C:/Program Files/Java/jdk-17.0.x

The right side of equal sign is the location of JDK. Change the location accordingly. Thanks

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

79239768

Date: 2024-11-30 14:45:26
Score: 2
Natty:
Report link

Chromes new tab URL is:

chrome://new-tab-page
Reasons:
  • Low length (1.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Phillip Rodseth

79239753

Date: 2024-11-30 14:34:23
Score: 0.5
Natty:
Report link

At least for NextJS 14 I have found some problems using server actions as fetcher, for some reason sometimes it didn't fetch data when changing the server action. Suppose that we have an object DataSource = { getRows: async (params: GetRowsParams) => await serverAction(params.filter, params.sort, params.pagination); }

Now we put it as useSWR(params, dataSource.getRows);

If I have a client component with this hook, and use it in two or more pages with different data source objects, the data could get stale and useSWR won't fetch for the new server action. It could be for several reasons, one of them could be the ID of server actions, suppose that we have two files: users.ts and schedules.ts, if both files have 4 server actions and we make an index.ts file exporting all of these server actions, it will find an error for server actions $$ACTION_1, $$ACTION_2, $$ACTION_3, $$ACTION_4, as NextJS assign these IDs for the server actions of each file, so, if the useSWR sees them in the same way, it won't detect changes on the fetcher and hence won't fetch new data. So I recommend to make the server action a regular function and put it in a route handler, then use the fetch API.

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

79239744

Date: 2024-11-30 14:30:22
Score: 0.5
Natty:
Report link

In my case, the problem was coming up because I had two database servers running on the same machine: [1] Postgresql 14 which uses scram-sha-256 and [2] Postgresql 9.6 which uses md6. So I needed to specify the port number, and it worked!

$psql -U postgres -d dbname -p 5523  -f *path/to/file*
Reasons:
  • Blacklisted phrase (0.5): I need
  • Whitelisted phrase (-1): it worked
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Cap.Auh3b

79239733

Date: 2024-11-30 14:25:20
Score: 4
Natty:
Report link

body{background-image:url("Enter your image location");}

Reasons:
  • Low length (1.5):
  • No code block (0.5):
  • Has no white space (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Praveen Bhandari

79239725

Date: 2024-11-30 14:20:19
Score: 1
Natty:
Report link

Not all websites allow automated access

Hey @MITHU, the reason you are getting ConnectionError is because some websites simply don't allow automated access to prevent from bots. You can check that by using webiste_url/robots.txt Usually they would have something like below:

User-agent: *
Disallow: /

You can try out this working example:

import requests

url = 'https://github.com/'

headers = {
    'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8',
    'accept-language': 'en-US,en;q=0.9',
    'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36'
}

with requests.Session() as session:
    session.headers.update(headers)

    response = session.get(url)

    print("Status Code:", response.status_code)
    print("Page Snippet:", response.text[:500]) 
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • User mentioned (1): @MITHU
  • Low reputation (1):
Posted by: Pratik

79239713

Date: 2024-11-30 14:12:16
Score: 3.5
Natty:
Report link

I search and saw some solution, but they are too simple. My code is from: https://www.gradio.app/guides/creating-a-custom-chatbot-with-blocks , like below:

It is very common to get current session user in bot function, but bot function cannot get Request parameter, I don't know how to get session information in bot function. Their demo only has very simple case, does anyone know how to get request in this case? Thanks!

def add_message(history, message):
for x in message["files"]:
    history.append({"role": "user", "content": {"path": x}})
if message["text"] is not None:
    history.append({"role": "user", "content": message["text"]})
return history, gr.MultimodalTextbox(value=None, interactive=False)

def bot(history: list):
    response = "**That's cool!**"
    history.append({"role": "assistant", "content": ""})
    for character in response:
        history[-1]["content"] += character
    time.sleep(0.05)
    yield history


with gr.Blocks() as demo:
chatbot = gr.Chatbot(elem_id="chatbot", bubble_full_width=False, type="messages")

chat_input = gr.MultimodalTextbox(
    interactive=True,
    file_count="multiple",
    placeholder="Enter message or upload file...",
    show_label=False,
)

chat_msg = chat_input.submit(
    add_message, [chatbot, chat_input], [chatbot, chat_input]
)
bot_msg = chat_msg.then(bot, chatbot, chatbot, api_name="bot_response")
bot_msg.then(lambda: gr.MultimodalTextbox(interactive=True), None, [chat_input])

chatbot.like(print_like_dislike, None, None, like_user_message=True)

demo.launch()

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • RegEx Blacklisted phrase (2): does anyone know
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: peter

79239711

Date: 2024-11-30 14:11:16
Score: 2.5
Natty:
Report link

Hello my friend long time I want to tell my story and the girls you search this number can't see anything +971504347899 she in my family but my be seeker yousing my number and email and showing in my be group in I can't tel mor you can't check my friend you can see anything 😰 I want to tell she's family but I can't iwant anything because on mor time I'm telling she's mother but not believe me this brother Tel me I'm report to polic fur you my sister Claire I don't no she's give young sister one more time I don't no she's hacking my mobil sumbuy in group any time showing body in cam after download in twwit and Flickr wiki tomuc site one time challenge me in hospital open cam and one boy showing and she's using my mobile address I can't listen to voice in my mobile phone long story but my lungoch I want to speak Arabic. Anything mor time after transfer English

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • Long answer (-0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Shahriar Agnostic

79239697

Date: 2024-11-30 14:03:14
Score: 1.5
Natty:
Report link

No No Pend Nama NPM Kelas Keterangan 1 I241962 A Farhan Assidqi 10824001 1MA01 S1-Ilmu Komunikasi Pagi Depok 2 T241585 Adiendha Putri Lasyalwa 10824011 1MA01 S1-Ilmu Komunikasi Pagi Depok 3 I242166 Ahmad Fauzan Elvansyah 10824038 1MA01 S1-Ilmu Komunikasi Pagi Depok 4 I246271 Amanda Aprilia 10824086 1MA01 S1-Ilmu Komunikasi Pagi Depok 5 T242537 Annisa Dwi Kasyafani 10824123 1MA01 S1-Ilmu Komunikasi Pagi Depok

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: patricia amanda hariyanti

79239694

Date: 2024-11-30 14:00:13
Score: 2
Natty:
Report link

Actually, the link you posted in the past received a new answer in Aug 2024. This one: https://stackoverflow.com/a/78876788/9151070

The suggestion is to use --collect-datas=fake_useragent in the pyinstaller. I was facing the same issue as you and this suggestion fixed it. Example:

pyinstaller --collect-datas=fake_useragent --onefile -w my_project.py
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: NLP10

79239692

Date: 2024-11-30 13:59:13
Score: 4
Natty:
Report link

dotnet new classlib -o ApplicationName

Reasons:
  • Low length (2):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: hüseyin coban

79239660

Date: 2024-11-30 13:43:09
Score: 2.5
Natty:
Report link

Try resetting the app cache. If you are in windows you have to create a environment variable by creating going to windows registers

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

79239659

Date: 2024-11-30 13:43:09
Score: 1.5
Natty:
Report link

SSL Certificate Issues:

Check if your SSL certificate is still valid. An expired certificate will trigger this error. If the certificate is installed incorrectly or doesn't match your domain name (e.g., it’s for example.com but your site is www.example.com), you’ll get this error.

If the certificate is self-signed or from an untrusted authority, browsers may block the connection.

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

79239654

Date: 2024-11-30 13:40:08
Score: 2
Natty:
Report link

I encountered the same issue with the module pyscreeze, I tried to downgrade the Pillow package version from 11.0.0 to 10.4.0 and it worked.

Reasons:
  • Whitelisted phrase (-1): it worked
  • Low length (1):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Akash Kolge

79239640

Date: 2024-11-30 13:33:06
Score: 4
Natty:
Report link

No, they should not be globals.

Here are the globals listed by Node.js https://nodejs.org/api/globals.html

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

79239639

Date: 2024-11-30 13:33:06
Score: 3.5
Natty:
Report link

It is not best practice. I would implement this using a placeholder in the video tag.

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

79239622

Date: 2024-11-30 13:25:04
Score: 0.5
Natty:
Report link

The implementation of Interaction.GetObject changed.

.NET Framework way to use GetObject with only a Class Specified:

CATIA = GetObject(,"CATIA.APPLICATION")

.NET way to use GetObject with only a Class specified:

CATIA = GetObject("","CATIA.APPLICATION")
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Mike Meinz

79239612

Date: 2024-11-30 13:20:02
Score: 2.5
Natty:
Report link

I had Python 3.13 and got the same error when tried to install psycopg2-binary. I downgrade Python to 3.12 as per FlyingTeller recommendation and it fixed the error. Please see the answer on how to downgrade Python: https://stackoverflow.com/a/75710481/15400268

Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (0.5):
Posted by: David Izhak