Click here to Skip to main content
14,177,045 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life. Technical discussions are encouraged, but click here to ask your programming questions.

The Lounge is rated PG. If you're about to post something you wouldn't want your kid sister to read then don't post it. No flame wars, no abusive conduct, no programming questions and please don't post ads.
 
GeneralRe: 44 inch Space 1999 Eagle collectors? Pin
Mike Hankey17-May-19 3:05
professionalMike Hankey17-May-19 3:05 
GeneralRe: 44 inch Space 1999 Eagle collectors? Pin
CodeWraith17-May-19 3:41
memberCodeWraith17-May-19 3:41 
GeneralRe: 44 inch Space 1999 Eagle collectors? Pin
Mike Hankey17-May-19 4:23
professionalMike Hankey17-May-19 4:23 
GeneralRe: 44 inch Space 1999 Eagle collectors? Pin
CodeWraith17-May-19 8:16
memberCodeWraith17-May-19 8:16 
GeneralRe: 44 inch Space 1999 Eagle collectors? Pin
Mike Hankey17-May-19 8:23
professionalMike Hankey17-May-19 8:23 
GeneralRe: 44 inch Space 1999 Eagle collectors? Pin
CodeWraith17-May-19 8:36
memberCodeWraith17-May-19 8:36 
GeneralRe: 44 inch Space 1999 Eagle collectors? Pin
Mike Hankey17-May-19 8:44
professionalMike Hankey17-May-19 8:44 
GeneralFriday Afternoon Puzzle Pin
harold aptroot17-May-19 1:45
memberharold aptroot17-May-19 1:45 
An other puzzle, easier than last time.

The encoded message is 0x74736f6c20756f59, it has been encoded with
static ulong encode(string msg)
{
    ulong x = BitConverter.ToUInt64(Encoding.ASCII.GetBytes(msg), 0);
    x = foo(x, 0x000000003a229013, 32);
    x = foo(x, 0x00002fb000009e23, 16);
    x = foo(x, 0x00c10061005400c2, 8);
    x = foo(x, 0x0e0e05070b020902, 4);
    x = foo(x, 0x1002200011133031, 2);
    x = foo(x, 0x1114544041540141, 1);
    x = foo(x, 0x2100022031313022, 2);
    x = foo(x, 0x0c0d08070f070506, 4);
    x = foo(x, 0x002c004c001b001f, 8);
    x = foo(x, 0x00001d670000fc2f, 16);
    x = foo(x, 0x000000001cf1aa86, 32);
    return x;
}

static ulong foo(ulong x, ulong m, int k)
{
    ulong t = ((x >> k) ^ x) & m;
    x = (x ^ t) ^ (t << k);
    return x;
}
The message again consists of two words and some punctuation. Actually this time, the encoded message does too.
GeneralRe: Friday Afternoon Puzzle Pin
megaadam17-May-19 2:17
professionalmegaadam17-May-19 2:17 
QuestionProgramming Question of the Week? Pin
megaadam16-May-19 23:16
professionalmegaadam16-May-19 23:16 
AnswerRe: Programming Question of the Week? Pin
lw@zi 17-May-19 1:50
professional lw@zi 17-May-19 1:50 
GeneralRe: Programming Question of the Week? Pin
megaadam17-May-19 2:14
professionalmegaadam17-May-19 2:14 
GeneralWSO CCC OTD 2019-05-17 Pin
OriginalGriff16-May-19 21:52
protectorOriginalGriff16-May-19 21:52 
GeneralRe: WSO CCC OTD 2019-05-17 Pin
pkfox16-May-19 22:28
professionalpkfox16-May-19 22:28 
GeneralRe: WSO CCC OTD 2019-05-17 - we have a winner! Pin
OriginalGriff16-May-19 22:40
protectorOriginalGriff16-May-19 22:40 
GeneralRe: WSO CCC OTD 2019-05-17 - we have a winner! Pin
pkfox16-May-19 22:48
professionalpkfox16-May-19 22:48 
GeneralRe: WSO CCC OTD 2019-05-17 - we have a winner! Pin
OriginalGriff16-May-19 22:56
protectorOriginalGriff16-May-19 22:56 
GeneralRe: WSO CCC OTD 2019-05-17 - we have a winner! Pin
pkfox17-May-19 0:33
professionalpkfox17-May-19 0:33 
GeneralRe: WSO CCC OTD 2019-05-17 - we have a winner! Pin
OriginalGriff17-May-19 0:49
protectorOriginalGriff17-May-19 0:49 
QuestionHow to implement bitbliting in C#?? Pin
shreebhavya16-May-19 18:07
membershreebhavya16-May-19 18:07 
AnswerRe: How to implement bitbliting in C#?? Pin
GKP199216-May-19 18:18
professionalGKP199216-May-19 18:18 
GeneralRe: How to implement bitbliting in C#?? Pin
Richard MacCutchan16-May-19 22:05
protectorRichard MacCutchan16-May-19 22:05 
AnswerRe: How to implement bitbliting in C#?? Pin
#realJSOP16-May-19 23:23
mve#realJSOP16-May-19 23:23 
GeneralRe: How to implement bitbliting in C#?? Pin
megaadam16-May-19 23:51
professionalmegaadam16-May-19 23:51 
PraiseRe: How to implement bitbliting in C#?? Pin
GKP199217-May-19 2:07
professionalGKP199217-May-19 2:07 

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.


Advertise | Privacy | Cookies | Terms of Service
Web05 | 2.8.190526.1 | Last Updated 26 May 2019
Copyright © CodeProject, 1999-2019
All Rights Reserved.
Layout: fixed | fluid