Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.

Questions tagged [error-detection]

Filter by
Sorted by
Tagged with
7 votes
2 answers
360 views

The GPT (GUID Partition Table) is the most accepted modern standard for partitioning of a data storage device. Its unit for the offset and size of a partition is so-called sector*. Is it a well-...
Incnis Mrsi's user avatar
-3 votes
3 answers
100 views

On a platform with ECC memory, you can assure the compiled binary is 100% legit with EDAC daemon. (single-bit error will be corrected automatically, and multi-bit error will be logged so you can just ...
hurryman2212's user avatar
0 votes
0 answers
661 views

I have a couple of doubts regarding the quality of my code. I'm working on a helper function (for KoaJS) where I'm validating a Firebase ID token. If it is valid, I return the decoded token; otherwise ...
Guswiri Salpia's user avatar
1 vote
1 answer
165 views

I need to transfer only 5 byte message over the noizy line and I'd like not to make the message much longer with the data protection redundancy. Let's say I suppose that one extra byte should be ...
Roman Matveev's user avatar
55 votes
11 answers
11k views

Let me explain what I mean. I have made a complex, highly polished over years PHP framework/library for my own use. I very aggressively log the smallest notice and immediately deal with it as soon as ...
user379490's user avatar
1 vote
1 answer
1k views

I am trying to process some serial data (sent over UART). Its coming from a radio controlled receiver, is 27 bytes long. The last 2 bytes of this are a 16bit CRC check according to the spec. The ...
James Hounslow's user avatar
1 vote
1 answer
133 views

That is quite specific circumstances I've come across, and I somewhat struggle to find proper way how to approach this. I'm given a class written in swift-language, which has a control property, like ...
Aleksandr Medvedev's user avatar
1 vote
2 answers
209 views

I'm developing JS and PHP scripts and selling them on various marketplaces. But I need to track/monitor errors on my scripts. Usually, I use Sentry for own web apps, but I'm not sure if it's okay to ...
Eray's user avatar
  • 336
-1 votes
2 answers
113 views

I recently applied for a position as a software developer. As a part of the recruitment process, I was given an assignment that involves reading data from a file. The thing is that the example file ...
Lehonti's user avatar
  • 19
1 vote
1 answer
2k views

I am trying to reverse engineer a checksum or CRC wherein an 8 bit number* gets converted to a 5 bit number for error checking. I have an incomplete list of data values and checksums, and need to ...
DrWizard's user avatar
2 votes
1 answer
389 views

I just started learning about hamming codes and they're pretty awesome. I was just wondering though, are the check bits able to detect error in the check bits, as in, if one of the check bits is ...
richard davies's user avatar
-1 votes
1 answer
54 views

BACKGROUND: I've been developing in PHP for two years - self taught, and beyond the most basic editing, really just a year and a half - but my experience is limited to a small number of environments. ...
Carl Elder's user avatar
-1 votes
1 answer
101 views

I've got an idea, but I wonder whether somebody else already has named it. I'm writing code to control a machine with actuators, motors, etc., and software will be responsible for preventing ...
Solomon Slow's user avatar
  • 1,231
20 votes
3 answers
8k views

For example, when you submit a Register form, you have to check in the Domain Model (WriteModel in CQRS) that it is in a valid state (example, email address syntax, age, etc). Then you create a ...
JorgeeFG's user avatar
  • 697
2 votes
1 answer
258 views

Here's a rough translation of a tweet by @xharaken. "Space rays hit computers and mess up the bits in the memory" "hardware bugs mess up the bits in the memory" such things almost never happen, but ...
hello all's user avatar
  • 358
5 votes
4 answers
6k views

When calling some function in a Python application, the function often calls functions deeper down which again call functions deeper down, etc. It is easy to unknowlingly pass a bad value to the top-...
cmeeren's user avatar
  • 339
5 votes
5 answers
727 views

I could write an endless amount of debugging code to handle the various components of input for a function, check that the correct data types are used, make sure things are decendants of the proper ...
J.Todd's user avatar
  • 3,833
0 votes
0 answers
109 views

I've been going through the GNU GSL design document and came across this interesting line in the Test suites section: N.B. Don't bother to test for null pointers -- it's sufficient for the library ...
jigglypuff's user avatar
6 votes
5 answers
16k views

So it's well known that C does not have any array bounds checking when accessing memory. Nowadays, if you call myArray[7] when you initialised it as int myArray[3], your program will get a segfault ...
Chris Watts's user avatar
2 votes
2 answers
476 views

On slide 19 in a presentation Margaret Hamilton describes three primitive control structures. My goal is to reduce the probability of errors in my code by working with this "design framework". I am ...
noumenal's user avatar
  • 167
0 votes
2 answers
191 views

For comparison, for a runtime fatal error, it is often that the cause of the error is way before the error crashes a program. For a logic error, it doesn't crash a program. It happens when the state ...
Tim's user avatar
  • 5,555
1 vote
3 answers
623 views

I had this crazy initialisation -- documentList = new ArrayList<Map<String,Integer>>(); which I intended to store a new map everytime in a loop but unfortunately put itself inside the ...
Shashank Sabniveesu's user avatar
19 votes
5 answers
5k views

I'd like to know if it's possible to detect the delete error commented below at compile time? Especially, I'd like to hear about g++ compiler. ClassTypeA *abc_ptr = new ClassTypeA[100]; abc_ptr[10]....
SebGR's user avatar
  • 381
4 votes
1 answer
390 views

Rarst and I were debating offline about the use of the '@' error suppression operator in PHP, specifically for use to test for existence of "optional" array keys, i.e. array keys that are being used ...
MikeSchinkel's user avatar
29 votes
9 answers
25k views

I'm doing some data transmission from a dsPIC to a PC and I'm doing an 8-bit CRC to every block of 512 bytes to make sure there are no errors. With my CRC code enabled I get about 33KB/s, without it I ...
FigBug's user avatar
  • 2,379