770 questions
0 votes
1 answer
67 views
Persistent Cart with Woocommerce backend?
Nextjs Frontend, WooCommerce headless backend. Trying to have a persistent cart with a signed in user, and just having a lot of difficulty in that. I've tried to create a custom plugin that adds a ...
0 votes
0 answers
65 views
How to Persist Dynamically Added Conditions in a Custom Node in Node-RED?
I’m working on a custom Node-RED node that allows users to define dynamic conditions based on two properties: name and age. Users can dynamically add conditions using a button, where each condition ...
0 votes
0 answers
42 views
VBA Outlook: Why does this assignment of a class variable work in runtime but not in step-through debug?
Can anyone explain this strange behavior of classes within each other? An object becomes Nothing for no reason I can see, and only when stepping through the code slowly. It becomes a runtime problem ...
2 votes
0 answers
76 views
Dynamic tables at runtime in Haskell Persistent
I'm trying to work out if there is a way one can have a have a runtime flag, that is able to dictate the shape of the schema. Let's say my runtime flag is Config, as you can see in my hypothetical ...
0 votes
1 answer
159 views
Error duplicate key value violates unique constraint "products_pkey" Detail: Key (product_id)=(2) already exists. Product extends AbstractEntity<Long>
Im trying to persist this entity in Db using a JPA repository: @Entity @Table(name = "products") @Getter @Setter @NoArgsConstructor @AllArgsConstructor @AttributeOverride(name = "id&...
1 vote
1 answer
41 views
flutter : use svg for persistent navbar items
List <PersistentBottomNavBarItem> _navbarItems = [ PersistentBottomNavBarItem( icon: SvgPicture.asset( 'images/sofa_home.svg', width: 22, ), ...
-1 votes
1 answer
46 views
Python InfiniteTimer Test Code on counting Failed Loop fails
I am trying to test my IP latency and using the InfiniteTimer I have just added a failCount global but when I try to increment in the tick() callback function I get an error. File "C:\Users\ken38\...
2 votes
0 answers
48 views
Persistent Background Task in iOS 2024 [duplicate]
I need to run a persistent background task, which speaks if a new message comes in to inform the user. Till now i couldn't find any "legal" way to make that happen. Apple has pretty strict ...
0 votes
1 answer
45 views
How to check if a PersistenProperty is a constrained property in groovy?
I am new to grails, and I am having a problem on how to check if a persistent property is constrained in Grails 6 : List<PersistentProperty> persistentProperties = grailsApplication....
1 vote
1 answer
93 views
Pass a Previous Value to function MATLAB
I have the following function: y(t) = alpha*y(t-1) + beta*y(t-1) + delta where alpha,beta, and delta are constants. I am assuming that y(0) = 0. I'm trying to create a MATLAB function to represent y(...
0 votes
1 answer
1k views
Discord.py button persistency confusion
I'm looking to make my buttons on an information post persistent so that they remain interactable even after my bot is restarted but I'm not entirely sure how it would work and how it would apply to ...
0 votes
0 answers
21 views
How do I connect my Java files into MySQL database? [duplicate]
There are 4 java files, DAOManager.java; Person.java; MySQLPersonDAO.java; DAOManager.java; MainDAO.java. Files are in the same folder. PersonDAO.java public interface PersonDAO { public void ...
1 vote
1 answer
58 views
Ballerina Persist with 1:N Relation
I have the following data model: type User record {| readonly string id; string name; int age; Post[] posts; |}; type Post record {| readonly string id; string title; ...
0 votes
0 answers
129 views
Hibernate PostUpdateEvent never being called
I'm trying to implement some event listeners in order to log the history of some entities in my java EE application. I followed all steps suggested by https://vladmihalcea.com/hibernate-event-...
-2 votes
1 answer
145 views
docker mysql:latest not using dedicated volume
My docker-compose.yml version: "3.1" services: www: build: context: . dockerfile: Dockerfile.lamp ports: - "${WEBSERVER_PORT}:80&...