Questions tagged [suppress]

173 questions
7
votes
1 answer

R: suppressMessages from Rprintf in C++

I am writing an R-package with some C++ code running lengthy calculations. Inside the C++ code, I am using Rprintf() to output information. I tried suppressing the output from R with suppressMessages(), but this doesn't work, the messages still…
chakalakka
  • 464
  • 2
  • 9
6
votes
1 answer

How to selectively suppress markup validation in Visual Studio?

Sometimes I find it useful to be able to suppress certain markup validation warnings within files that contain HTML (ASPX, etc.). Is there an equivalent of #pragma warning disable\restore for HTML?
Saeb Amini
  • 23,054
  • 9
  • 78
  • 76
6
votes
1 answer

How to @suppress multiple warnings with Closure Compiler?

It's possible to suppress warnings on a per-file basis with Google's Closure Compiler via the @suppress annotation. However, it doesn't seem to be possible to suppress multiple warnings at the same time--for example the globalThis and checkVars…
6
votes
2 answers

How to suppress proxychains message

Note: this question is about proxychains not proxychains-ng. By default, proxychains output some message like the below. How can suppress this message? ProxyChains-3.1 (http://proxychains.sf.net)
Benjamin Du
  • 1,391
  • 1
  • 17
  • 25
6
votes
2 answers

Ifort suppress unused variable warning, leave all others intact

i use ifort and gfortran to compile my Fortran program. However i also use a coworkers source and he has got a lot of unused variables. How can i suppress these for the compile, seeing as they are not really an error? However i dont want to…
tarrasch
  • 2,630
  • 8
  • 37
  • 61
6
votes
2 answers

How to suppress and verify private static method calls?

I am currently stumbling in JUnit testing and need some help. So I got this class with static methods which will refactor some objects. For simplification's sake I have made a small example. This is my Factory class: class Factory { public…
Malvin
  • 859
  • 2
  • 11
  • 19
5
votes
0 answers

Kafka Streams (Suppress): Closing a TimeWindow by timeout

I have the following piece of code to aggregate data hourly based on event time KStream, SomeUserDefinedClass> windowedResults = inputStream .groupByKey(Grouped.with(Serdes.String(), new…
E Yeoh
  • 51
  • 1
  • 3
5
votes
1 answer

How to suppress lint on specific line/string in resources xml files?

On Android, I would like to suppress lint on a specific string value or specific line on a string.xml or other resources files. Suppress this String Don\'t…
Calvin Park
  • 1,144
  • 1
  • 12
  • 21
5
votes
4 answers

Getting Quiet Make to echo command lines on error

I have a Makefile building many C files with long long command lines and we've cleaned up the output by having rules such as: .c${MT}.doj: @echo "Compiling $<";\ $(COMPILER) $(COPTS) -c -o $@ $< Now this is great as the @…
Dave Gibson
4
votes
2 answers

Suppress output from popen()

Is there a way to suppress the output from popen() without losing the Wait(). Test 1: FILE * stream = NULL; char buffer [120]; stream = popen ("ffmpeg -y -i test.amr -ar 16000 test.wav -v quiet", "r"); while (fgets (buffer, sizeof(buffer),…
user548266
4
votes
3 answers

suppress a singleton constructor in java with powermock

I'm trying to unit-test some classes that make use of a Singleton class whose constructor does some things I can't (and shouldn't) do from the unit-test environment. My ideal scenario would be to end up with the constructor completely suppressed and…
4
votes
1 answer

Letting a Window believe it is still in focus although it is not

I have to deal with a nasty MS Windows application that quits doing its job as soon as it loses focus. My question is, how can I trick this application somehow to believe that it is still in focus, although it really is not? My thoughts are: Is it…
Xcessity
  • 529
  • 6
  • 12
4
votes
3 answers

How to suppress windows command output?

I'm moving thousands of files through the command line and it prints all the file names to the console. Is there a way to ignore the output so it can go faster? Something like piping to /dev/null in Linux. Thanks
John K
  • 859
  • 1
  • 8
  • 16
3
votes
1 answer

Is there a context that ignores multiple errors and continues execution without jumping?

with suppress(ValueError): while test_condition: biglist.remove(222) # element that doesn't exist, raises error. but we dont care abt this error. # LINE-A: more remove kind of calls where we are dont care abt ValueError(s)…
2020
  • 2,821
  • 2
  • 23
  • 40
3
votes
1 answer

Crystal Reports, Suppressing a details based on condition

I have a report that has 7 details sections. One of the details is a disclaimer that prints on the back of the letter. What I need is to have that disclaimer print only on 3 of the six remaining details sections. The six remaining details print…
Matthew
  • 33
  • 1
  • 1
  • 3
1
2
3
11 12