462 questions
0 votes
0 answers
13 views
Qt- tcp connection amd redundancy
I'm writing a program in qt_c++ which is connected to a tester through a tcp connection. Each side has two ips and all four lan cables (2 from each side) are connected to a switch. Ips are in same ...
0 votes
0 answers
21 views
RSTP implementation on AM4376
I am working on an AM4376-based system and have successfully implemented the Spanning Tree Protocol (STP). However, I am encountering issues when attempting to enable Rapid Spanning Tree Protocol (...
2 votes
1 answer
39 views
How to save Some Dynamic data without duplications in SQLite
I'm developing a Pomodoro App using flutter. and this is my first Flutter Project. In this case I want to save focus session data in a SQLite Database. I have the Following code in focus_provider.dart ...
-2 votes
1 answer
57 views
Does adding too much validations for user inputs is a good practice while creating REST APIs [closed]
I'm building a REST api which take some inputs like id,customer_id,firstname,lastname,contact,email,updated_time,created_time. Before processing these inputs, i have added validations to check if id ...
0 votes
1 answer
61 views
reducing redundant product from SQL cross join
I was stepping through a common SQL exercise and ran into an annoyance. Question is whether you have a better solve than mine below. The initial problem was "find all the coordinate sets on a ...
0 votes
1 answer
152 views
Need help in migrating Hapi application to v20.0.1 from v16.4.3
`I need to migrate a hapi.js application from v16.4.3 to ^20.0.1. Since there are major changes made in v17.0.0 including reply() interface upgradation. Is there any optimal way to replace return ...
1 vote
1 answer
44 views
Is the same anonimous variable calculated twice
I have an imaginary code in Javascript like this let z = 99999; if (str.lastIndexOf('_') !== -1) z = str.lastIndexOf('_'); } Will be this snip of code: str.lastIndexOf('_') be calculated twice?...
0 votes
2 answers
163 views
Does InstanceCount=1 in ServiceFabric mean 'at least one instance' or 'no more than one instance'?
Does InstanceCount=1 in ServiceFabric mean 'at least one instance' or 'no more than one instance'? From the documentation I've seen it's unclear and I have a scenario where I want at most one instance ...
-2 votes
1 answer
175 views
Find redundant stored procedures which have the same body
I have a database and there are some stored procedures with different names but the same body. How can I identify them dynamically using a T-SQL statement? I cannot use definition column of ...
1 vote
0 answers
266 views
How to achieve redundancy within my mqttnet broker?
I want to build an mqttnet broker that support high availability.I want to add the redundancy feature to my servers. I am building a mqtt broker with 2 nodes and i want to replicate messages between ...
0 votes
0 answers
631 views
Cannot connect to MySQL database after implementing NDB Cluster
I'm trying to shift from a single instance of a mysql database to using a cluster for redundancy purposes, following the steps I found from here, I thought this was the solution I needed, but I'm ...
0 votes
1 answer
55 views
Reducing Java code-duplication when iteratively applying an operation on a list until stable
I am attempting to reduce code duplication in my java code. I am not a java expert, so I might be missing something basic. The goal is to operate on a list via several operators, foo1, foo2, ..., fooN....
0 votes
1 answer
430 views
Casting to String is redundant
Why does IntelliJ tell this casting from Object to String is redundant? public class Utils { private static Map<Class, Function<Object, ?>> functions = new HashMap<>(); ...
0 votes
1 answer
83 views
Redundant storage using CRC
Lets say I have a some 32 bit words in an embedded system storage. I want to protect that data using full redundant storage. This means to store each word twice and cross-checking the data word and ...
0 votes
4 answers
3k views
Is it possible to handle multiple exceptions with one @ExceptionHandler in spring boot?
I have this code where I'm supposed to return a customized error message and error code. It works fine but the problem is that it's extremely redundant. I was wondering if it's possible to handle all ...