Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
0 answers
65 views

I am building a Google Keep-style notes app in Python using tkinter. Notes appear on screen while the app is running, but when I close and reopen it they are gone. The JSON file is either not being ...
keanisidore deguzman's user avatar
Advice
0 votes
2 replies
52 views

Greetings all you Win32 kernel devs, I would like to receive some recommendations as to how my driver can simply keep a "flag" that I can set/retrieve persistent after my driver is unloaded. ...
WayOfTheWright's user avatar
Best practices
0 votes
0 replies
63 views

For this setup, let's assume that here are no libraries to use (public/private/paid or otherwise) and so this task has to be completed without them. Also, let's assume that all communication between ...
osswmi's user avatar
  • 43
1 vote
0 answers
95 views

I have severe UI hang issues whenever my sync worker is running. The app experiences: Screen navigation freezes Scroll lag and stuttering Unresponsive UI during data synchronization The root cause is ...
Hassan Riaz's user avatar
0 votes
0 answers
51 views

I’m facing an OAuth2 token persistence issue in a Node.js backend. Scenario I have a Node.js backend that integrates with APIs using OAuth2. I wrote a token manager that: Stores the access token + ...
Ayyappan's user avatar
0 votes
1 answer
78 views

I'm trying to force the storing of a Redis snapshot on permanent memory by the command save. The instance of Redis is configured to use RDB persistence with the configuration: appendonly no save 30 1 ...
User051209's user avatar
  • 2,708
0 votes
0 answers
36 views

I'm working with Spring Data JPA and Hibernate, and I have an entity that uses a composite primary key via @EmbeddedId. Here’s the structure: @Embeddable public class CurrencyId { private String ...
Sebuhi Huseynov's user avatar
0 votes
0 answers
95 views

I’m migrating from IdentityServer4 to OpenIddict. Previously, I had functionality that associated refresh tokens with sign-in sessions. This was done so that refresh tokens could be revoked if the ...
Anton Koposov's user avatar
0 votes
0 answers
43 views

So in the same server container on Apache Tomcat 8.5 (I got a new laptop from work, this problem wasn't happening on the older desktop), I have one form that calls ajax pages and I put an output of ...
user1729354's user avatar
1 vote
1 answer
94 views

Intro to problem: I’m building a task manager app where users create custom quests, earn points, and redeem rewards. I’m using UserDefaults to persist data. While rewards and points are saving and ...
RaccoonSky's user avatar
0 votes
2 answers
96 views

I have two main tables called Movie and Actor. A Movie can have multiple actors and vice versa. So I made a join table called MovieActor. The problem is that I can't seem to find a way to remove the ...
Thuta's user avatar
  • 25
-1 votes
1 answer
130 views

I'm trying to deploy in a Azure Container Group two containers, one of keycload and the other of nginx in order to act as reverse proxy. I have a problem with the first one: keycloak. Specifically, I'...
RRM's user avatar
  • 1
1 vote
1 answer
74 views

Here, José Valim explicitly wrote that it isn't persistent. But the official documentation here (5th para.) says otherwise, it seems. I'm confused because I don't know how to check it myself yet. Can ...
al.hram's user avatar
  • 11
1 vote
0 answers
28 views

I have an @ObjectTypeConverter defined for one of my models like so: @Column(name = "ACTIVE", nullable = false) @ObjectTypeConverter(name = "shortToBooleanConverter", dataType =...
Alisa's user avatar
  • 31
0 votes
1 answer
151 views

I'm working with a PrePersistenceHook in SAP Commerce (Hybris), where I need to access the old values of a ProductModel before saving updates. My goal is to compare the old and new values of specific ...
aanssaien's user avatar
0 votes
1 answer
113 views

I need to receive data from IoT sensors and store the latest data information in Valkey. At this time, there is a logic that checks whether the key already exists, and if it does not, it logs the ...
Sehun Park's user avatar
0 votes
1 answer
223 views

I'd like to run TestContainers with Postgres module so that Postgres stores data to host's disk. I'd like that I could start and stop testcontainer and data stored to the database would be persistent ...
Juha Syrjälä's user avatar
0 votes
0 answers
26 views

Why does JPA detect changes and generate an UPDATE query without a snapshot in the persistence context when calling persist() and modifying the entity? Here’s an example: Member member = new Member(); ...
김태환's user avatar
0 votes
1 answer
60 views

I know there are several out of the box methods of saving the model. However I want to save the model as a database blob. I've seen examples where people extract 'coefs' etc from the dict of the ...
Richard's user avatar
  • 1,128
0 votes
1 answer
67 views

I wanted to ask about having the equals method on entities. Im running a setup where Im only comparing entites based on Id and thought this is best way to do things. However I realized that when ...
Holden Karl Hain's user avatar
0 votes
0 answers
46 views

I have an inheritance of type JOINED between User and RegisteredUser. I have defined a unique constraint on the derived class entity (RegisteredUser). When I create an object of the derived class and ...
Gozar-Manu Ariana's user avatar
0 votes
2 answers
115 views

I have the below hql query: @Query("SELECT es FROM EmailSubscription es " + "JOIN FETCH es.subscriber s " + "WHERE es.subscriptionTypeId = :typeId " + "...
accursed medal 36's user avatar
0 votes
0 answers
202 views

I am building a SwiftUI app that allows users to add and view images, and I need to save these images so that they persist across app launches. I am using @AppStorage to store paths to the images ...
Ashton's user avatar
  • 1
0 votes
0 answers
44 views

I have this structure: Entity1 -> Entity2 -> Entity3 Performing save for Entity1 with letting persistence to save both, parent and child. Entity 3 is already saved in DB, before ...
Djordje's user avatar
  • 74
0 votes
1 answer
292 views

Redis Version: v7.0.12 Hello. I have deployed a Redis Cluster in my Kubernetes Cluster using ot-helm/redis-operator with the following values: redisCluster: redisSecret: secretName: redis-...
Mohamed Aziz Tousli's user avatar
0 votes
2 answers
456 views

I have an Entity that uses an ElementCollection. I had troubles setting everything up but found a solution. Now I want to understand why this was required. This is my entity @Entity public class ...
Michael Von Bargen's user avatar
0 votes
0 answers
50 views

I am working on an app to keep track of scores in a grid like format. I am using Kotlin and Room Database to store everything (playerId, gameInstanceId...). The storing works perfectly fine and every ...
Christof Plieschnegger's user avatar
0 votes
1 answer
61 views

We have a standard J2EE/Struts internal web application that has been used in production for many years. We save many Java objects into HttpSession then retrieve them for one request to another. It ...
HACPS's user avatar
  • 1
0 votes
0 answers
19 views

I have an app using Firebase Auth, iOS native, and the last build dates back 3 years ago. We used to save the refresh token to avoid having the user login every time the token expired. I am porting it ...
Nissaba's user avatar
  • 981
0 votes
0 answers
52 views

I am kind of performing an upsert (update or insert) operation after fetching from an JSON API for some entities which have many to one relations. Eg: Sections contains Categories, Categories contains ...
hb_dev's user avatar
  • 1
0 votes
1 answer
2k views

I need to be able to change Zustand storage at runtime, is it possible? import { create } from 'zustand' import { persist, createJSONStorage } from 'zustand/middleware' export const useBearStore = ...
mehran's user avatar
  • 1,495
1 vote
2 answers
636 views

I'm trying to get the persistence diagram from a mask(for segmentation), and my codes are as follows: import numpy as np import gudhi as gd import matplotlib.pyplot as plt from PIL.Image import open ...
Donal Huang's user avatar
0 votes
1 answer
47 views

I've a persistent library that should store objects in a database. So var_export() should store the type, pk, and db-version only. At the reverse it should recreated the object from the database using ...
theking2's user avatar
  • 3,141
0 votes
1 answer
196 views

I'm having a problem trying to map database columns to DTO with JPA in my backend. Some column names are not accepted, I don't know why. This began to occur after the use of quarkus. When I set the ...
Bruno Colares's user avatar
0 votes
1 answer
111 views

I am attempting to analyze 3D CAD models (STP/STL) for voids and similar enclosed empty spaces. For this task, I have been using Vedo to convert STL to 3D point clouds, and was trying to run Ripser ...
tq343's user avatar
  • 95
0 votes
1 answer
127 views

This is my code trying to save data ` for (int i = 0; i < materialVersions.size(); i += BATCH_SIZE) { int endIndex = Math.min(i + BATCH_SIZE, materialVersions.size()); ...
Grigor's user avatar
  • 3
0 votes
0 answers
21 views

I am using sys.stdin.readline() to to hang the execution of a Python script, to keep it persistent. When I put this script in an inittab and it comes time to log into Linux after rebooting, hitting ...
Geremia's user avatar
  • 5,906
1 vote
0 answers
71 views

We have two Oracle tables like this: TABLE_1 ------- CODE_TABLE_1 | LIBEL_TABLE_1 ----------------------------- code_table_1.1| libel_table_1.1 code_table_1.2| libel_table_1.2 code_table_1.3| ...
medkhelifi's user avatar
  • 1,141
0 votes
2 answers
83 views

I'm writing some backend scripts in python that have to be coupled with a web interface that uses django. The web application allows to view layers that comes from different web services. As part of ...
stray_dog's user avatar
0 votes
1 answer
887 views

I'm new to coding and I'm trying to make a role-assignment bot using discord.py. The idea is to have the bot send a message that includes an embed and buttons which can be clicked to toggle a role off ...
Taiki's user avatar
  • 3
0 votes
1 answer
359 views

It seems that Spring State Machine persistence does not persist (or restore) a state machine properly if the state machine has at least four layer hierarchy. I'm using Showcase state machine example ...
alexshv's user avatar
1 vote
1 answer
1k views

I have recently upgraded to IntelliJ IDEA 2024.1. I work with the Hibernate framework and I used very often the 'Generate persistence mapping' feature from the Persistence window but it seems that ...
Jose's user avatar
  • 21
1 vote
0 answers
172 views

no way how create containers with hadoop and spark with persistence of data. Everytime shutdown containers (docker-compose "down") I lose al data inside of the hdfs file system. I tried ...
Juan Pedro Martinez's user avatar
0 votes
1 answer
38 views

For CRUD applications where each operation must perform a select operation for the database (except persist), is it necessary to check the persistence context? Is there a way to avoid searching in the ...
maxc5's user avatar
  • 9
0 votes
1 answer
333 views

I have an Entity class which has a generic type field. I want this class to be saved and read from the database. Hibernate can't just take that generic type and save/read it, which is why it asks for ...
Till's user avatar
  • 1
0 votes
0 answers
98 views

I want to be able to take a snapshot of a running javascript program, save it to a database, wait for some period of time, load back the state and continue the process execution. Is it possible?
ischenko's user avatar
0 votes
2 answers
102 views

I'd like to establish a code pattern that allows me to do something analogous to the following: # Foo has getter-only properties foo: Foo = FooRepo.get(id="foo_id") assert foo.bar == "...
pgoldste's user avatar
  • 165
1 vote
1 answer
1k views

As a newcomer to reactive quarkus/hibernate/panache, i would appreciate your feedback on how to persist entities in a loop to the database. Let's assume that at some point we have a list of ...
sygram's user avatar
  • 115
0 votes
1 answer
65 views

I have legacy code with lots of relationships in one entity in Hibernate. Currently part of them are not using(there are null values for them in DB), but EntityManager query such as refresh() can ...
Lotus's user avatar
  • 11
5 votes
1 answer
358 views

On Linux, it's well known that after: creating a new file (creat(path,..), open(new_path,O_CREAT..)), or deleting a file (unlink(path)), or renaming a file (rename(src_path,dst_path)) One should ...
qbolec's user avatar
  • 5,174

1
2 3 4 5
103