output

How to open gnuplots in full screen and a particular size?

二次信任 提交于 2019-11-30 08:06:35
问题 I am plotting graphs in gnuplot and would like to open them in full screen and a particular size. Previously, I have been outputting graphs in multiplot mode and updating them using reread; so, when I maximise it manually, the plots fill the screen after a few iterations. Now, I also want to save the output as a file. When I open that file, it is in the same small size as the original multiplot output. However, when I maximise it, the plots don't increase in size to fill the screen. I have 2

Output the console text of a Jenkins job that my Job is running

筅森魡賤 提交于 2019-11-30 05:42:39
问题 I tried looking here and here and here. I am using the dsl flow. And I would like to be able to see the console log printed out of the job i'm building within the job I'm running. I tried looking around for examples and I couldn't seem to find what I was looking for. I apologize if this question is not using the correct terminology or that it's been asked in different ways. I just want to find the answer of how to do this. A = build("Main Suites", SUITE: "qa_smoketests", OS: "mac") below I

Clearing only part of the console output

笑着哭i 提交于 2019-11-30 05:29:18
What I want to do: The cursor is initially blinking on the top left corner of the screen: 160 characters remaining _ When I press 'i': 159 characters remaining i When I press 'a': 158 characters remaining ia When I press 'm': 157 characters remaining iam and so on. What needs to be done(According to me): Need to clear the only the first three characters of the screen. Update the newly pressed key on the screen What I have tried: I tried to clear the whole screen and write everything that was there previously back on it. Why I am not happy with what I did: Because it gives a jerky appearance.

Omit unneeded namespaces from the output

大憨熊 提交于 2019-11-30 04:50:55
问题 My XSLT is outputiung some tags with xmlns:x="http://something" attribute... How to avoid this redundant attribute? The output XML never use, neither in a the x:tag , nor in an x:attribute . EXAMPLE OF XML: <root><p>Hello</p><p>world</p></root> EXAMPLE OF XSL: <xsl:transform version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink"> <xsl:output encoding="UTF-8" method="xml" version="1.0" indent="no"/> <xsl:template match="root"><foo> <xsl:for

Don't display pushd/popd stack across several bash scripts (quiet pushd/popd)

不打扰是莪最后的温柔 提交于 2019-11-30 04:08:48
Each time I use pushd or popd, it print the stack to standard output. How not to do so? I don't want to do pushd > /dev/null each time because I have a lot of scripts calling each other. Maybe a nice override will do it, but I'll need to override these builtins only in my scripts, and then restore the correct behavior. You could add pushd () { command pushd "$@" > /dev/null } popd () { command popd "$@" > /dev/null } to the top of each script. This is probably the minimum amount of work it will take to solve your problem. In your .profile file (what ever it is called in your system) add: pushd

android ant Compile failed; see the compiler error

99封情书 提交于 2019-11-30 04:04:16
android ant 打包遇到 Compile failed; see the compiler error output for details. 1.把jdk换成jdk1.7 就能看到中文的错误信息,不然有的地方是乱码都看不懂。。。 2.如果遇到 错误: 非法字符: \65279( 在eclipse 中修改提示有非法字符的java文件的编码为:ISO-8859-1 就 看到java文件的开头有些乱码 ,删除即可 .修改完之后,把文件的编码改回utf-8 保存)其他问题就看错误信息修改吧 没错误了 用ant打包即可 来源: oschina 链接: https://my.oschina.net/u/267558/blog/209034

Difference between JspWriter and PrintWriter in Java EE?

╄→гoц情女王★ 提交于 2019-11-30 03:57:55
For all you "duplicate" fanatics, there is a similar question on SO right here . The difference is that I paint a vivid example that I can not understand the output of. The documentation for JspWriter and PrintWriter says there are two differences: 1. JspWriter can throw exceptions, PrintWriter should not do so. 2. JspWriter uses a PrintWriter behind the scene, but since by default JSP pages are buffered, the PrintWriter won't be created until the buffer is flushed - whatever that mean in the context of a JSP page. I'm not sure I've understood this last part. Consider this JSP page: <%@page

How to increase the ipython qtconsole scrollback buffer limit

你说的曾经没有我的故事 提交于 2019-11-30 03:57:12
When I load ipython with any one of: ipython qtconsole ipython qtconsole --pylab ipython qtconsole --pylab inline The output buffer only holds the last 500 lines. To see this run: for x in range(0, 501): ...: print x Is there a configuration option for this? I've tried adjusting --cache-size but this does not seem to make a difference. Quickly: ipython qtconsole --IPythonWidget.buffer_size=1000 Or you can set it permanently by adding: c.IPythonWidget.buffer_size=1000 in your ipython config file. For discovering this sort of thing, a helpful trick is: ipython qtconsole --help-all | grep PATTERN

C# creating XML output file without <?xml version=“1.0” encoding=“utf-8”?>

和自甴很熟 提交于 2019-11-30 02:54:56
问题 I'm new to C# development so maybe a very simple question here. I'm trying to get an output which starts as this: <ns0:NamespaceEnvelope xmlns:ns0="http://url.to.NamespaceEnvelope/v1.0"> But am getting this: <?xml version="1.0" encoding="utf-8"?> <ns0> This is my source: XmlWriterSettings settings = new XmlWriterSettings(); settings.Indent = true; settings.IndentChars = " "; settings.NewLineChars = "\r\n"; settings.NewLineHandling = NewLineHandling.Replace; using (XmlWriter writer = XmlWriter

set ipython's default scientific notation threshold

∥☆過路亽.° 提交于 2019-11-30 02:47:12
问题 How can I modify the point at which python decides to print in scientific notation? E.g. I'd like everything > 1e4 or < 1e-4 to be printed in scientific notation. Good: In [11]: 5e20 Out[11]: 5e+20 Bad: In [12]: 5e10 Out[12]: 50000000000.0 回答1: In IPython you can use %precision %.4g this will print floating point values who's absolute value is < 1e-4 or >= 1e4 in scientific notation. You can find more information about the %precision command in the IPython API Docs. For string formatting