console

Windows GUI + Console Output, Linux-style

↘锁芯ラ 提交于 2019-12-29 07:27:07
问题 I have a GUI application, which I am developing cross-platform for Linux and Windows. On Linux, everything works smoothly. However, I've run into a hitch on Windows. I would like to be able to log certain messages to the console with a GUI app on Windows, Linux-style. What I mean by Linux-style is, if the program is opened from a console, the output will go to the console, but if the program is opened, for example, through the start menu, the user will never see console output. Apparently,

Looking for an efficient Java Swing based console

隐身守侯 提交于 2019-12-29 06:24:13
问题 I'm looking for a highly efficient Swing Java component which I can just plug into my application UI. I already tried using the classes within Swing such as JTextArea with no avail; they simply aren't high-performance enough and have any crippling drawbacks. Additionally, it'd be nice if it had standard console features such as scroll-lock, clear console, colours, and so on. Edit: Forgot to say, this console will have a lot of debug information streaming into it, and it needs to be fully

Jenkins: console output characters

血红的双手。 提交于 2019-12-29 05:47:36
问题 Does anyone know how to beat such chars in Jenkins console output log? Seems there is a problem with UTF-8. 回答1: The issue here is that the characters are not being output as UTF-8 to your console. I think the solution is to tell jenkins when you invoke it to write output as UTF-8. See this solution for a similar problem UTF-8 char encoding does not work on console (Linux) Something like java -Dfile.encoding=UTF-8 jenkins.war might do the trick 回答2: In Jenkins ver. 2.46.2, I just got this to

Console is undefined error in IE9

南楼画角 提交于 2019-12-29 05:07:25
问题 I have a graphics page which shows SVG graphics. I am using Raphael graphics framework. The page displays properly in Firefox, Also if the F12 developer tools is set 'on' in IE9 it works fine. The map show partial data (its a node link diagram and it shows only one child node out of 12 nodes) in IE9 if the F12 developer mode is set off and application is started with browser cache cleared (simulating a general user). Update: I kept the Debugger on and Shows me the error "Console is undefined"

How to tell if there is a console

痴心易碎 提交于 2019-12-29 04:35:09
问题 Ive some library code that is used by both console and wpf apps. In the library code, there are some Console.Read() calls. I only want to do those input reads if the app is a console app not if its a GUI app - how to tell in dll if the app has a console? 回答1: Work for me (using native method) First, declare: [DllImport("kernel32.dll")] static extern IntPtr GetConsoleWindow(); After, check with elegance... hahaha...: if (GetConsoleWindow() != IntPtr.Zero) { Console.Write("has console"); } 回答2:

Viewing the console log in iOS7

两盒软妹~` 提交于 2019-12-29 04:14:46
问题 Prior to iOS7, if I wanted to view the output log of an app running on an iOS device, I would use one of: https://itunes.apple.com/au/app/system-console/id431158981?mt=8 https://itunes.apple.com/au/app/console/id317676250?mt=8 However, since upgrading to iOS7, both of these don't seem to be recording the log output of any app on my phone. Would this be due to a new setting on my phone? Or has iOS7 changed the way in which logging is handled such that these two apps are now broken? 回答1: We're

Viewing the console log in iOS7

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-29 04:14:11
问题 Prior to iOS7, if I wanted to view the output log of an app running on an iOS device, I would use one of: https://itunes.apple.com/au/app/system-console/id431158981?mt=8 https://itunes.apple.com/au/app/console/id317676250?mt=8 However, since upgrading to iOS7, both of these don't seem to be recording the log output of any app on my phone. Would this be due to a new setting on my phone? Or has iOS7 changed the way in which logging is handled such that these two apps are now broken? 回答1: We're

Is it possible to mix .cs (C#) and .fs (F#) files in a single Visual Studio Windows Console Project? (.NET)

让人想犯罪 __ 提交于 2019-12-29 04:09:27
问题 How to do it? Is it possible to call a function from one F# code into C# without using a separated dll file or project? 回答1: You can't include two different languages in the same project, but you can merge them using ilmerge. To do this, put both projects in the same solution and reference the F# module as you would any dll. As part of your deployment script, run ilmerge to combine the exe file and dll file into a single exe file. See this Code Project article that details how to use ilmerge

How to use Console.WriteLine in ASP.Net MVC 3

蹲街弑〆低调 提交于 2019-12-29 03:17:07
问题 I want to Use Console.writeline in my Asp.net MVC 3 Project. i don't know how to do it. i also try using System.Diagnostics.Debug.WriteLine() method but it also doesn't work. can any one suggest a solution for this 回答1: Debug.WriteLine("My debug string here"); should do the trick. Check that your application is in debug not release: If nothing is coming out on your debug window, right click your project. Select properties. On the left of the opened tab, click Build. There is a check-box

How do I use command line arguments in my C# console app?

核能气质少年 提交于 2019-12-28 17:55:49
问题 I am writing a url shortener app and I would like to also create a console app with C# to push the URLs to a WCF service which I have also created. WCF app will shorten the url on this URI; http://example.com/shorten/http://exaple.com so what I want is just that. My console exe file will be sitting inside c:\dev folder and on Windows command line, I would like to do this; c:\dev>myapp -throw http://example.com with this method I would like to talk to that service. there is no problem on