Quantcast
Channel: Recent Questions - Stack Overflow
Browsing all 12111 articles
Browse latest View live
↧

Tensorflow doesn't detect GPU when running jupiter notebook

Everything was ok until i executed a cell with "!pip install.." in it. Up until that point, I was running my notebook without any problems, and my GPU was being detected.Currently, I have Python...

View Article


Deleting item of sorted data in a ForEach

I have a ForEach that I use to display some info, sorted on it's date attribute:My view looks like:ForEach(records.sorted(by: < ), id: \.self) { record in Text("\(record.date") } .onDelete(perform:...

View Article


How to run indefinite loop in the background, asyncio, Python?

I'm trying to modify application for conversational agent from this github. I want to implement interruption of text-to-speech model by user.The idea is following:There is the class TextToSpeech with...

View Article

Why does Firefox throw an XML format error when Chrome does not?

Firefox throws a format error on my XML string whereas Chrome parses it without a problem.I pass a string of XML (in variable 'doc') thus:var xmlDoc = parseXML(doc);This works in Chrome, but causes a...

View Article

Can't delete by id from mongoDB in nextjs app

0I'm making an app in nextjs to practice, and I am having a hard time getting single data to delete from the database using the findByIdAndDelete function.CastError: Cast to ObjectId failed for value...

View Article


Why is my custom.rc file not executing frida-server while it is being executed?

I am trying to run frida-server on boot on LDplayer Android 9. For this I found this postI have used the INIT method and created a custom.rc file: #/etc/init/custom.rc# execute the binary when boot is...

View Article

Call service in .NET with authentication

I have a service written in .NET using VB.NET which returns a datatable. To make it safer, I added some users to web.config:<!-- <authentication mode="Windows" /> --><authentication...

View Article

AttributeError: 'Guild' object has no attribute 'icon_url'

guild = bot.get_guild(guild_id)thumbnail = guild.icon_url if guild.icon_url else NoneError:thumbnail = guild.icon_url if guild.icon_url else None ^^^^^^^^^^^^^^AttributeError: 'Guild' object has no...

View Article


Read functions saves data into the database rather than reading it and loging me

I am fairly new to PHP and I'm doing a simple login and sign up form for a social website I am making. Im coding on VS studio code and using different files such as .html , .css and .php. Im still...

View Article


How to change Filament Placeholder content on LIVE?

I am using Filament 3.2. How to update Placeholder content on live?Select::make('authors') ->relationship('authors', 'name') ->live() ->afterStateUpdated(function (string $operation, $state,...

View Article

Understanding: redirect_to @object (typically used within Rails create-action)

From the Ruby on Rails Guides-Tutorial:def create @article = Article.new(title: "...", body: "...") if @article.save redirect_to @article # How does this work? else render :new, status:...

View Article

How to write a permanent redirection url with syntax error

I need your help.I have a syntax error with a space between the "-" and "auberge", in an old url (still indexed) and I don't know how to write the permanent redirect.I'd like to redirect this old page...

View Article

Vector in a HashMap

I know how to use, StringI know how to use, VectorBut I am facing issue to use HashMap#[derive(Serialize)] pub struct TestStructs { pub ttStrngg: String, pub ttVctorr: Vector<String>, pub...

View Article


What do to, when pyinstaller sys._MEIPASS does not work?

Here is an example, which in fact works, and so it does not actually illustrate my problem, but just to set a basis for discussion:mkdir C:/test/testpyinstcd C:/test/testpyinstHere I have...

View Article

Consistently getting timeout errors in scrapy playwright

Been trying to implement a Yelp Scraper to scrape reviews of restaurants but am constantly getting download and timeout errors. I feed the base url page and find the number of reviews to calculate how...

View Article


i'm trying to make a small python program which can add/sub/mult/div two numbers

a = print("[1]ADD")b = print("[2]Subtract")c = print("[3]Multiply")d = print("[4]Divide")ip1 = int(input("Enter your choice :"))x = int(input("enter 1st numer :"))y = int(input("enter 2nd numer :"))z1...

View Article

Recursion calculating Legendre Polynom not working (segmentation fault) [C++]

I made a function in C++ that calculates the N-th Legendre polynomial and its derivative based on recursive formulas. It returns either zeros, bogus numbers or the "segmentation fault" error. I can't...

View Article


Image may be NSFW.
Clik here to view.

why get the same id when insert some record into pgsql and return the primary...

when I insert 1000 records into pgsql, and return the primary key, but it will return the same id for some records

View Article

Dimensionality reduction and precomputed distance matrix

I have a question about dimensionality reduction. I want to understand how methods like MDS and t-SNE work. In particular, I'd like to understand the difference when I precompute the distance matrix or...

View Article

Parsing structured log from a container by google cloud ops agent

I have an application running inside a gcp container, outputting log that looks like this: {"severity":"INFO","message":"Http request...

View Article
Browsing all 12111 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>