Click here to Skip to main content
15,892,674 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Some people will never understand Pin
Kirill Illenseer12-Dec-16 21:23
Kirill Illenseer12-Dec-16 21:23 
GeneralRe: Some people will never understand Pin
Ygnaiih7-Dec-16 0:32
professionalYgnaiih7-Dec-16 0:32 
GeneralRe: Some people will never understand Pin
den2k887-Dec-16 0:40
professionalden2k887-Dec-16 0:40 
GeneralRe: Some people will never understand Pin
MikeTheFid7-Dec-16 4:37
MikeTheFid7-Dec-16 4:37 
GeneralHPOTD (hexadecimal pattern of the day) Pin
CDP18025-Dec-16 23:29
CDP18025-Dec-16 23:29 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff5-Dec-16 23:42
mveOriginalGriff5-Dec-16 23:42 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18025-Dec-16 23:49
CDP18025-Dec-16 23:49 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff5-Dec-16 23:55
mveOriginalGriff5-Dec-16 23:55 
I wrote a quick program to do it:
              **                
          **********            
      ****  **  **  ****        
    ******    **    ******      
  **                      **    
**                          **  
**                          **  
**                          **  

**            **            **  
**          ******          **  
  **    **************    **    
    **********  **********      
          **********              

Space invaders? Arms down for the first, arms up for the second?
C#
    Console.WriteLine(ToBits(0x01, 0x00));
    Console.WriteLine(ToBits(0x07, 0xC0));
    Console.WriteLine(ToBits(0x1A, 0xB0));
    Console.WriteLine(ToBits(0x39, 0x38));
    Console.WriteLine(ToBits(0x40, 0x04));
    Console.WriteLine(ToBits(0x80, 0x02));
    Console.WriteLine(ToBits(0x80, 0x02));
    Console.WriteLine(ToBits(0x80, 0x02));
    Console.WriteLine();
    Console.WriteLine(ToBits(0x81, 0x02));
    Console.WriteLine(ToBits(0x83, 0x82));
    Console.WriteLine(ToBits(0x4F, 0xE4));
    Console.WriteLine(ToBits(0x3E, 0xF8));
    Console.WriteLine(ToBits(0x07, 0xC0));
    }
private string ToBits(int a, int b)
    {
    StringBuilder sb = new StringBuilder(32);
    GetBits(sb, a);
    GetBits(sb, b);
    return sb.ToString();
    }

private void GetBits(StringBuilder sb, int a)
    {
    for (int i = 0; i < 8; i++)
        {
        sb.Append((a & 0x80) == 0 ? "  " : "**");
        a <<= 1;
        }
    }

Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:14
CDP18026-Dec-16 0:14 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 0:23
mveOriginalGriff6-Dec-16 0:23 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:27
CDP18026-Dec-16 0:27 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 0:45
mveOriginalGriff6-Dec-16 0:45 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 1:14
CDP18026-Dec-16 1:14 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 1:38
mveOriginalGriff6-Dec-16 1:38 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 2:34
CDP18026-Dec-16 2:34 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
Mark Parity5-Dec-16 23:51
Mark Parity5-Dec-16 23:51 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:02
CDP18026-Dec-16 0:02 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
F-ES Sitecore5-Dec-16 23:57
professionalF-ES Sitecore5-Dec-16 23:57 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:17
CDP18026-Dec-16 0:17 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
Roger Wright6-Dec-16 6:36
professionalRoger Wright6-Dec-16 6:36 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
Worried Brown Eyes6-Dec-16 0:18
Worried Brown Eyes6-Dec-16 0:18 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:22
CDP18026-Dec-16 0:22 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 0:26
mveOriginalGriff6-Dec-16 0:26 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
CDP18026-Dec-16 0:38
CDP18026-Dec-16 0:38 
GeneralRe: HPOTD (hexadecimal pattern of the day) Pin
OriginalGriff6-Dec-16 0:48
mveOriginalGriff6-Dec-16 0:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.