Questions tagged [suppress]

173 questions
177
votes
6 answers

cURL suppress response body

Is it possible instruct cURL to suppress output of response body? In my case, the response body is an HTML page, which overflows the CLI buffer, making it difficult to find the relevant information. I want to examine the other parts of the output…
BaltoStar
  • 8,165
  • 17
  • 59
  • 91
96
votes
3 answers

Is there a way to suppress "x rows affected" in SQLCMD from the command line?

Is there a way to suppress "x rows affected" in SQLCMD from the command line? I'm running an MSBuild script and don't want it clogging up my log on my build server. I'd rather not have to add "SET NOCOUNT ON" in every script, so if there's a way…
Josh Kodroff
  • 27,301
  • 27
  • 95
  • 148
28
votes
4 answers

Globally suppress c# compiler warnings

In my app I have a fair number of entities which have fields which are getting their values set via reflection. (In this case NHibernate is setting them). I'd like to get rid of the "x is never assigned to and will always have its default value 0"…
pondermatic
  • 6,453
  • 10
  • 48
  • 63
26
votes
2 answers

How do I disable Android @IntDef annotation checks in special cases?

One such case is reading an int from a Bundle and storing it into the variable restricted by @IndDef annotation: public class MainActivity extends ActionBarActivity { @IntDef({STATE_IDLE, STATE_PLAYING,…
Nicol Eye
  • 2,007
  • 1
  • 16
  • 12
21
votes
2 answers

Suppressing a function's command window output

A function I'm using has display() in it (or other things that display messages on command window), so it outputs a lot of things (x 1200) on command line when I run my code, which makes things hard to track and observe. Is there a way to suppress…
Ali
  • 251
  • 1
  • 2
  • 5
18
votes
6 answers

How to suppress SLF4J Warning about multiple bindings?

My java project has dependencies with different SLF4J versions. How do I suppress the annoying warnings? SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in…
Konrad Höffner
  • 11,100
  • 16
  • 60
  • 118
14
votes
2 answers

Kafka Stream Suppress session-windowed-aggregation

I have written this code in a Kafka stream application: KGroupedStream groupedStream = stream.groupByKey(); groupedStream.windowedBy( SessionWindows.with(Duration.ofSeconds(3)).grace(Duration.ofSeconds(3))) .aggregate(() -> {...}) …
14
votes
1 answer

C - How to suppress a sub function's output?

I want to call bar() in foo(), bar() will change some global variables' values(this is what I want), but meanwhile produce some output( I dont' want any output); void foo() { //I have tried: //system("1>&/dev/null") and of course this won't…
CDT
  • 10,165
  • 18
  • 66
  • 97
13
votes
5 answers

Disabling browser status bar text

Background Modern browsers do away with the classic status bar and instead draw a small tooltip at the bottom of their windows that displays the link target on hover/focus. An example of this (undesirable, in my case) behavior is illustrated in the…
TjB
  • 133
  • 1
  • 5
12
votes
2 answers

How to suppress all JavaScript runtime errors?

How can I suppress all JavaScript runtime error popups, from the programmers side?
Skip
  • 6,240
  • 11
  • 67
  • 117
10
votes
3 answers

docker compose - ignore build context path

I have docker-compose.yml file with build context property specified like this: version: '3' services: my-service: container_name: my-service image: my-service build: context: foo ports: - 8088:8088 # other…
k13i
  • 4,011
  • 3
  • 35
  • 63
10
votes
3 answers

Matplotlib can't suppress figure window

I'm having trouble with matplotlib insisting on displaying a figure wnidow even when I haven't called show(). The function in question is: def make_plot(df): fig, axes = plt.subplots(3, 1, figsize=(10, 6), sharex=True) …
Magic_Matt_Man
  • 2,020
  • 3
  • 16
  • 16
8
votes
3 answers

How do I suppress App Engine logging while running unit tests?

I'm using gaetestbed in my GAE app, and it's working very well. However, the useful statements that nose prints when your test is incorrect is being washed away by App Engine's logging: root: Level 9: Evaling filter expression…
Matt Norris
  • 8,596
  • 14
  • 59
  • 90
8
votes
4 answers

Suppressing browser's authentication dialog

I apologize that there is a similar question already but I'd like to ask it more broadly. Is there any way at all to determine on the client side of a web application if requesting a resource will return a 401 status code and cause the browser to…
Joe Langeway
  • 300
  • 2
  • 8
7
votes
6 answers

Suppress system("ping") output in C++

I have written a simple program that pings three sites and then reacts to whether they are reachable or not. My question is: can I suppress system("ping ")'s output? I have written my code in C++ as I know that language the best. Currently the code…
Samuel
  • 574
  • 3
  • 7
  • 22
1
2 3
11 12