error-checking Questions
7
Solved
I have some large data sets that I am automating and distributing. I want to eliminate the little green triangles that warn the user about numbers stored as text. I have used the following code but...
Morpheus asked 17/4, 2015 at 19:57
5
Solved
Looking through the answers and comments on CUDA questions, and in the CUDA tag wiki, I see it is often suggested that the return status of every API call should checked for errors. The API documen...
Brownnose asked 26/12, 2012 at 9:35
4
Solved
Everywhere I look, the "way" to "wrap" errors in Go is to use fmt.Errof with the %w verb
https://go.dev/blog/go1.13-errors
However, fmt.Errorf does not recursively wrap errors. ...
Tso asked 28/3, 2022 at 17:16
4
Solved
A right array
Let's assume we have an array with an N length, made of capital
letters A, B, and C. We call the array 'a right array' if between
every two C letters which come one after anoth...
Nutt asked 2/3, 2019 at 18:44
4
Solved
How can I do it by NSIS 2.46?
I know this is probably a dumb question, but how the heck do I create an empty directory and check for errors?
I do so:
ClearErrors
CreateDirectory $R1
${If} ${Erro...
Bimah asked 27/1, 2015 at 11:30
1
Solved
I'm trying to decide which one of these two options would be the best:
subroutine sqtrace( Msize, Matrix, Value )
integer, intent(in) :: Msize
real*8, intent(in) :: Matrix(Msize, Msize)
real*8,...
Equinox asked 20/12, 2017 at 20:19
1
Solved
Using the unwieldy and ponderous but full-featured Excel Interop, background error checking can be toggled off like so:
Excel.Application excelApp = new Excel.Application();
excelApp.ErrorChecking...
Subbase asked 26/12, 2016 at 18:27
3
Solved
I need to check that an int[] contains only certain values (in this case 0s & 1s) and throw an exception if it doesn't.
Is there a more efficient way to do it than either of the following solu...
Stephanestephani asked 18/11, 2015 at 18:47
1
I'm wondering how to go about adding error checking in Prolog.
For instance I have a program that will find how long a list is:
listlen([],0).
listlen([_|T],N) :-
listlen(T,X),
N is X+1.
How ...
Territorialism asked 13/11, 2015 at 3:2
5
Solved
Is there a built in Gray code datatype anywhere in the .NET framework? Or conversion utility between Gray and binary? I could do it myself, but if the wheel has already been invented...
Tragic asked 6/11, 2009 at 22:54
5
Solved
What algorithm to use to calculate a check digit for a list of digits?
The length of the list is between 8 and 12 digits.
see also:
How to generate a verification code/number?
Woodyard asked 8/7, 2009 at 21:53
1
I don't see a standard way of checking if all Options are provided in a String[] input to
apache's CLI library . That is - my options are all REUIRED at the command line, otherwise, i want an exce...
Lecialecithin asked 21/12, 2011 at 22:15
1
Solved
I have an svn server that I checkout the repository in my computer.
The main repositiry has about 2k files
3rd party
generic code classes
custom classes
I have made changes to lots of files (m...
Ardis asked 21/11, 2011 at 13:44
1
Solved
Xcode looked at this line and did not complain. Project built, code crashed at runtime.
NSString *randomName = [NSString stringWithFormat:@"%@, %@, %@",
[randomAjectiveList objectAtIndex:ajectiv...
Klepht asked 4/7, 2011 at 21:50
2
Solved
While reviewing Visual C++ codebase I found a following strange thing. A run-time assert (which is check the condition and throw an exception if the condition is violated) was used in a case when t...
Degree asked 7/9, 2010 at 13:59
4
Solved
I'm writing a simple program that has a couple of functions that look like these:
float foo (float* m,size_t n){
float result;
//do some calculations, for example a sum
return result / n;
}
...
Selfjustifying asked 7/9, 2010 at 4:15
5
What error checking do you do? What error checking is actually necessary? Do we really need to check if a file has saved successfully? Shouldn't it always work if it's tested and works ok from day ...
Archoplasm asked 5/4, 2010 at 18:25
9
Solved
I'm working on an application where users have to make a call and type a verification number with the keypad of their phone.
I would like to be able to detect if the number they type is correct or...
Hirsutism asked 5/9, 2008 at 16:28
1
© 2022 - 2024 — McMap. All rights reserved.