I have a Windows forms application that I wont a console extension. I cant find a way to add a new console and also if there is a way how would i call it?
Is there a way to show the console in a Windows application?  I want to do something like this:  static class Program {     [STAThread]     static void Main(string[] args) {         bool consoleMode = Boolean.Parse(args[0]);          if (consoleMode) {             Console.WriteLine("consolemode started");             // ...         } else {             Application.EnableVisualStyles();             Application.SetCompatibleTextRenderingDefault(false);             Application.Run(new Form1());         }     } }
Installing 2 versions of Ubuntu on same hard drive? I am doing some challenges. This is one them. I am trying to brute-force 4 digit pin with the password to get my desired answer. After connecting to the port It prompts me to enter the password then space then 4 digit pin. I tried to brute-force the pin using the script:  #!/bin/bash   nc localhost 30002   sleep 2    for i in {0000..9999};       if [[ $(echo 'UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i' &lt;/dev/stdin) = ^Wrong*]];                         then          continue       echo '[+] Pincode Cracked! Pincode = $i'       fi   done  but it seems that this doesn't input the pass and pin to stdin, before i tried doing something like this -&gt; if [[ $(echo 'UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i') = ^Wrong* ]]; What am I doing wrong here? UPDATE: Okay, so after researching around. I wrote this: for i in {0000..9999} do     if [ (echo &quot;UoMYTrfrBFHyQXmg6gzctqAwOmw1IohZ $i&quot; | nc localhost 30002 | grep -o Wrong) == &quot;Wrong&quot; ]    then       sleep 0.1       continue    fi    echo &quot;- - - - - - - - - - - - - - - - - - - - - - - - [$i]&quot; done  This might even work but as you can see it opens new connections in the loop which makes it really slow and exhaust the system. How to install and configure Wine? I am looking for a step by step instruction to guide me in the ways of installing, configuring and debugging many of the issues new users have when dealing with Wine in Ubuntu.  What is the recommended way of installing Wine, some of the key issues that it has and how to solve them?  If I have a specific problem with an App in Wine, how do I go about solving it? What are the recommended steps to ensure that I can fix a problem related to an app I wish to use? Remote Desktop Session Black after Minimize PROBLEM: When I minimize a remote desktop session and restore it, the remote desktop screen shows up black. This only happens when connecting to a particular computer.   DETAILS: If I start clicking around in the black area, portions of the screen will start redrawing and showing up correctly. For example, if I leave a window open in the remote session and click where that window is located on the remote computer, then that window--and only that window--will redraw, and sometimes a portion of that window won't redraw (usually the toolbar).  And to clarify--the window only has to be minimized momentarily, so it doesn't seem to be a timeout issue. Clicking or typing in the remote session still causes the remote computer to respond appropriately. Disconnecting from the session and reconnecting restores the whole screen image, as does clicking all over the place in the black image (causing each section to redraw).  CONFIGURATION: This problem only happens for me when connecting to a particular computer (a W2K Server box configured to allow remote administration) and only with certain client computers. I've tried 7 different client computers with various versions of Remote Desktop (the OSes were: Win2K, Server 2003, Server 2008, Windows 7 RC, 3 XP) and two of them exhibit the problem (one is one of the XP boxes and the other is Windows 7). Those same computers can RDP to other computers without problem.  RESOLUTION ATTEMPTS: I have tried the following:   Disable the LOCAL screen saver as mentioned on  Turned off bitmap caching in the client, as mentioned on many forums. Updated to version 6.1 of the remote desktop client Using mRemote (I doubted this would work since it uses MS's code for connecting to RDP servers) Turning off all video acceleration.   QUESTION: Any ideas on what is causing this? Proof Verification: Converse of Intermediate Value Theorem A function $f$ is increasing on $A$ if $f(x)\leq f(y)$ for all $x&lt;y$ in $A$. Show that the Intermediate Value Theorem does have a converse if we assume $f$ is increasing on $[a,b]$.  The converse of IVT along with the additional hypothesis would look like this: Lef $f:[a,b] \rightarrow \mathbb{R}$ be an increasing function on $[a,b]$ which satisfies: if $L$ is a real number such that $f(a)&lt;L&lt;f(b)$ (or $f(a)&gt;L&gt;f(b)$), then there exists a point $c\in (a,b)$ where $f(c)=L.$ If the preceding conditions are met, then $f$ is continuous on $[a,b]$.  The proof (if it's correct) I'm going to show is only for the $c \in (a,b)$, but I think for end points ($a$ or $b$), the method should be similar.  We want to show that given $c \in (a,b)$, for all $\epsilon&gt;0$, there exists a $\delta&gt;0$ such that $|x-c|&lt;\delta \implies |f(x)-f(c)|&lt;\epsilon$.  Since $f$ is increasing, we know that $f(a)\leq f(c)$. If $f(c)-\epsilon&lt;f(a)$, then set $x_1=a$, if $f(c)-\epsilon\geq f(a)$, then we know by hypothesis that a $x_1&lt;c$ exists such that $f(x_1)=f(c)-\epsilon.$ In either case, we have for $x \in (x_1,c]$ $$ f(c)-\epsilon \leq f(x_1) \leq f(x) \leq f(c) .$$  In a similar way, since we know that $f(c)\leq f(b)$, we can deduce that a $x_2&gt;c$ exists such that, for $x \in [c,x_2)$ $$f(c)\leq f(x)\leq f(x_2)\leq f(c)+\epsilon .$$  Pick $\delta = \min \{c-x_1,x_2-c \}$, we then have $$|x-c|&lt;\delta \implies |f(x)-f(c)|&lt;\epsilon .$$  Is this correct? In the proof that I saw, they originally used $\frac{\epsilon}{2}$, instead of just $\epsilon$, but I think this one works just as well, what do you guys think? Multiple servers acting like a single one with all the hardware? by now I have 10 servers for hpc, power computing oriented. My users need to launch several processes using qmake. The users are used to work with ubuntu 9.10, and the software from the repositories is switable for them.  I've deployed ubuntu 9.10 to all 10 servers (pxe rocks).  By now we work with parallel-ssh and cluster-ssh, which allows as to launch the same process to all servers. With this tools this tools the servers remain as independent but with the same software and the same launched command.  Now we would like to go to next step and see all the servers as a single one with all the resources from the other 9 as if was its resources.   The difference would be substantial in time to process and also time to design the command to launch.  Any advice on wich software to use will be very useful?  Thanks I have a particular situation here, In March of 1997 I travelled to the US as a tourist and lived there illegally for almost 9 years. I was never arrested, or had any trouble with the law, I was never deported. I paid my taxed (had a TFN) had a job, bank account bought a house, etc. About 9 years ago I decided to leave as I was tired of living like that, not able to be legal, in fear of deportation and loosing everything. I also got married (to a person in the exact situation as me) we were able to legally migrate to Australia and now we are Australian citizens. We never returned our I-94s and in 2005 left through Mexico (walked through the border) so there are no records of us ever leaving. We have lived here in Australia for over 9 years.  OK so my question is... We have been thinking we would like to visit our friends and family back in the US now that we have a little girl. Is there any chance they won't let us in because they know we overstayed? We would be travelling with our Australian passports. We  that there's a difference in meaning between try used with the infinitive and  try used with the gerund:     I tried sending her flowers. (Meaning: An experiment: I sent her flowers to see what will happen).   I tried to send her flowers. (Meaning: I tried to go through the procedure necessary to send flowers to her. The procedure might have been difficult.)   (per Michael Swan's PEU, Unit 299.6)   Will the same distinction hold if we use trying:     A man is trying setting up a password on his computer. (Is he experimenting, wanting to see what will happen?)   A man is trying to set up a password on his computer. (Is he trying to go through all the necessary steps, probably difficult, of setting up a password?) How can I remove the BOM from XmlTextWriter using C#? With a firmware password set on a Retina MacBook Pro, what are recovery options? I am considering setting a firmware password on my Retina MacBook Pro for security reasons. If I do this and later lose the password (or other such extenuating circumstances), how can the data be recovered? Is it even possible? Why can in-class initializers only use = or {}? Consequences of overstaying Schengen visa for 6 months Imputing missing observation in multivariate time series Not every open set in $\mathbb{R}^n$, for $n\geq2$, is a disjoint union of countable open balls. I know that every open set in $\mathbb{R}$ can be decomposed as the union of countably many disjoint open intervals and I'm trying to show that this property no longer holds in higher dimensions. For this I'm trying to show that there is no countable, pairwise disjoint open balls whose union is the open square $(0, 1)^2 ⊂ \mathbb{R}^2$. I know that it is because of the corners, but I don't know how to write this in mathematical terms. Thanks for any help. Using Fermats prime numbers to prove that there is infinitely many prime numbers I know when evaluated it gives one but I can't figure out how to prove it.  Can anyone help? I believe it requires L'Hopitals rule and taking a natural log but i cannot figure out the exact math. It's my understanding that a z-score can only be calculated and accurately used for data sets that are normally distributed.  Since "perfect" normal distribution almost never occurs in real-world data (where "perfect" normal distribution is defined as 1. The mean, median, and mode all equal the same number, 2. the distribution is perfectly symmetrical between all standard deviations on both sides of the mean, and 3. the distribution is asymptotic), how "close" can the distribution be to perfectly normal for the z-score to still be a valid statistical measure?  If the answer is it has to be a perfectly normal distribution, then my question is why is the z-score so important since it would seldom be a valid measure on real-world data? Are the review queues planned for the iOS app? Understanding Bash's Read-a-File Command Substitution I am trying to understand how exactly Bash treats the following line:  $(&lt; "$FILE")   According to the Bash man page, this is equivalent to:  $(cat "$FILE")   and I can follow the line of reasoning for this second line. Bash performs variable expansion on $FILE, enters command substitution, passes the value of $FILE to cat, cat outputs the contents of $FILE to standard output, command substitution finishes by replacing the entire line with the standard output resulting from the command inside, and Bash attempts to execute it like a simple command.  However, for the first line I mentioned above, I understand it as: Bash performs variable substitution on $FILE, Bash opens $FILE for reading on standard input, somehow standard input is copied to standard output, command substitution finishes, and Bash attempts to execute the resulting standard output.  Can someone please explain to me how the contents of $FILE goes from stdin to stdout? Hi i want to put this simbol "%" in the tick labels only in the x axis how can i do?