Search Results

Search found 5 results on 1 pages for 'ramblingwood'.

Page 1/1 | 1 

  • Windows: redirect stdout and stderror to nothing

    - by Ramblingwood
    I have a command I am running produces a ton of output, I want to silence the output without writing to a file. I have used the following to send all output to a file, but again I don't want any file output: command > out.txt 2>&1 I have used command > /bin/null on my CentOS box before, but I can't find a similar thing for windows.

    Read the article

  • Can't display at full resolution on an external monitor from my MacBook.

    - by Ramblingwood
    I have a 24" Asus V246H and a new MacBook ($999 one). I am trying to display to display to my Asus at 1080p via VGA. So I boot up with the lid closed and the external monitor plugged in. Everything boots up fine, but the resolution is really low. So I go in and change the resolution to be 1920x1080. My monitor then has a blue box on it that says "OUT OF RANGE". Lower resolutions like 1024x768 work, but 1680x1050 doesn't. If I try mirroring my displays, the entire external monitor AND the entire laptop screen is completely garbled. I can make out some colors, but it is completely unusable. I am suspecting that it simply won't work via VGA, but I don't want to buy another adapter, and my PC is using the DVI port. Any solutions?

    Read the article

  • Separating null byte separated UNICODE C string.

    - by Ramblingwood
    First off, this is NOT a duplicate of: http://stackoverflow.com/questions/1911053/turn-a-c-string-with-null-bytes-into-a-char-array , because the given answer doesn't work when the char *'s are Unicode. I think the problem is that because I am trying to use Unicode and thus wchar_t instead of char, the length of each character is different and thus, this doesn't work (it does in non-unicode): char *Buffer; // your null-separated strings char *Current; // Pointer to the current string // [...] for (Current = Buffer; *Current; Current += strlen(Current) + 1) printf("GetOpenFileName returned: %s\n", Current); Does anyone have a similar solution that works on Unicode strings? I have been banging my head on the this for over 4 hours now. C doesn't agree with me.

    Read the article

  • Create a triangle out of stars using only recursion

    - by Ramblingwood
    I need to to write a method that is called like printTriangle(5);. We need to create an iterative method and a recursive method (without ANY iteration). The output needs to look like this: * ** *** **** ***** This code works with the iterative but I can't adapt it to be recursive. public void printTriangle (int count) { int line = 1; while(line <= count) { for(int x = 1; x <= line; x++) { System.out.print("*"); } System.out.print("\n"); line++; } } I should not that you cannot use any class level variables or any external methods. Thanks.

    Read the article

1