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

App and Schema Version Management in SwiftData Migration

I have couple of questions regarding app and schema version management related to SwiftData migration.For instance, it's common for the schema to change from V1 to V2 when updating an app from V1 to V2...

View Article


How can I control my led strip on my windows via bluetooth?

please help me, i wangt to connect my led strip but idk he said my device didnt not foundimport timeimport asyncioimport logging # Don't forget to add this lineimport trionesControl.trionesControl as...

View Article


AMPL not running

`# Define the set of boxesset BOXES := 1..8;reset; # Clears all previous AMPL definitionsset TRUCKS := 1..2;param Volume :=1 302 603 704 205 106 107 508 50;param Priority :=1 2 # Box 1 has priority 2...

View Article

Loop and graph with the results of simulation are not working

proc import datafile= '/home/u62192016/FINA 6271- MSF 2022/Assets.xlsx'dbms=xlsx out=original_data replace;run;data pd_table;length RatingNum $3. PD1-PD5 8.;input RatingNum $ PD1-PD5;datalines;1 0.0000...

View Article

E0507 lifetime may not live long enough

Goal: Create a function that returns an iterator for all combinations according to nCr.For example, let n = 5 and let c = 3. The iterator should yield slices containing the following data.0 1 20 1 30 1...

View Article


Running Two Event Loops In One File

I have created a web app, that has two event loops. One for the actual web app(which I made using the Quart microframework), and one for the Discord bot.Because I'm running two event loops, I have made...

View Article

Where is the bug in this Canvas implementation of Conway's Game of Life?

The issue seems to be with the removeCell function which works sometimes but not most of the time.You can try to use this by clicking on the canvas to draw a couple active cells and then switching to...

View Article

Docker - EACCES: permission denied, mkdir '/usr/src/app/dist'

I have a dockerized NestJS application.Dockerfile#################### BUILD FOR LOCAL DEVELOPMENT###################FROM node:18-alpine As development# Create app directoryWORKDIR /usr/src/app# Set to...

View Article


Pytorch does not update weight after optimizer.step()

I'm coding Neural Network with Pytorch but i have a prolem. Pytorch does not update weight after optimizer.step().This is my code:Neuralnetwork.pyimport torchclass NeuralNetwork(torch.nn.Module): def...

View Article


PUT method is not supported for route vehiculos/7676729/edit. Supported...

I'm trying to understand PHP Laravel but can't figure out how to make this put operation.Basically I have my db created with artisan and the table for vehiculos is simple.Schema::create('vehiculos',...

View Article

How to test which version of TLS my .NET client is using?

I support a .NET site which (amongst many, MANY, other things) talks to remote APIs from supplier systems.We want to upgrade to support TLS 1.2We're hoping to do so as per this question: Are there .NET...

View Article

Are shell scripts sensitive to encoding and line endings?

I am making an NW.js app on macOS, and want to run the app in dev modeby double-clicking on an icon.In the first step, I'm trying to make my shell script work.Using VS Code on Windows (I wanted to gain...

View Article

A Confusing difference in Memory usage with recursion and loop

I have crated a very simple selection sort code with c and python both (to confirm the cause)the idea was very simple, and that was to find the difference in Runtime and Memory usage to find the better...

View Article


how to declare value as none the redeclare it then use it for an if statement...

My question is pretty simple how do how to declare value as none the redeclare it then use it for an if statement in python?global commandcommand = Nonedef user_commands(): def take_command(): try:...

View Article

I can't get Visual Studio community 2022 to create a setup.exe program

Several months ago, for a Visual Basic desktop app, I used Visual Studio Community 2022 version (17.8.3) to create a setup.exe program.I've just tried to re-create the setup.exe file, and I did not...

View Article


Create an async function that returns type according to a boolean param

I was trying to create an asynchronous function in TypeScript with proper types return. The function would have a boolean parameter that determines the return type of the function. I searched on the...

View Article

How to get the foreign key value into href attribute of a hyperlink element...

I have data table showing list of vehicles from the Vehicle model with Driver column. When user clicking on the Driver column value, I want to redirect the user to driver detail page url...

View Article


How to Decrypt and Use Encrypted Response in Ktor HTTP Client

I'm working on an Android application where I need to encrypt the request body before sending it to the server and then decrypt the response received from the server. I'm using Ktor's HTTP client for...

View Article

How can I stop the entity repeating itself in my JSON hibernate return?

I have this relationship between Aluno and Frequencia. One Aluno has multiple Frequencia's, and multiple Frequencia's can correspond to the same Aluno.Based on this, I created the following...

View Article

UseContext (tsx) not updating

I'm trying to set a user from the login to have a profile page later, but for some reason, the context is not working.This is my code:The App.tsx right now:I've tried using useMemo but that doesn't...

View Article
Browsing all 12111 articles
Browse latest View live


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