Click here to Skip to main content
15,896,915 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: Ain't it the truth Pin
Mike Hankey17-Dec-17 6:52
mveMike Hankey17-Dec-17 6:52 
GeneralRe: Ain't it the truth Pin
kmoorevs17-Dec-17 7:02
kmoorevs17-Dec-17 7:02 
GeneralThe 2017 winners are out Pin
Jörgen Andersson17-Dec-17 4:47
professionalJörgen Andersson17-Dec-17 4:47 
GeneralRe: The 2017 winners are out Pin
Mike Hankey17-Dec-17 4:58
mveMike Hankey17-Dec-17 4:58 
GeneralRe: The 2017 winners are out Pin
Jörgen Andersson17-Dec-17 5:15
professionalJörgen Andersson17-Dec-17 5:15 
GeneralThe new 'naughty' and 'nice' lists... Pin
Daniel Pfeffer16-Dec-17 23:42
professionalDaniel Pfeffer16-Dec-17 23:42 
GeneralWhen I grow up... Pin
Kornfeld Eliyahu Peter16-Dec-17 22:49
professionalKornfeld Eliyahu Peter16-Dec-17 22:49 
GeneralRe: When I grow up... Pin
Marc Clifton17-Dec-17 2:55
mvaMarc Clifton17-Dec-17 2:55 
When I grow up, there will be a thing called the Internet and a company called Google where I can look up the answer to everything and anything.

When I grow up, I will be a software developer and there will a be site called Stack Overflow where I can ask "how do I convert, in Python, a 6 character hex string representing an RGB color to separate r, g, b integers" and 10 different ways will magically appear because someone else who didn't know the answer had the cojones to ask such a silly question in a public forum.

Python (one way): red = int("0x" + bkColor[0:2], 0)

C# (one way): int red = int.Parse(bkColor.Substring(0, 2), NumberStyles.HexNumber);

There, I spared you a google search. Wink | ;)

Bonus SO answer: verify that a string is all hex digits (C#): bool isHex = Regex.IsMatch(src, @"\A\b[0-9a-fA-F]+\b\Z")
Latest Article - Class-less Coding - Minimalist C# and Why F# and Function Programming Has Some Advantages

Learning to code with python is like learning to swim with those little arm floaties. It gives you undeserved confidence and will eventually drown you. - DangerBunny

Artificial intelligence is the only remedy for natural stupidity. - CDP1802

GeneralRe: When I grow up... Pin
CodeWraith17-Dec-17 3:42
CodeWraith17-Dec-17 3:42 
GeneralRe: When I grow up... Pin
PIEBALDconsult17-Dec-17 10:24
mvePIEBALDconsult17-Dec-17 10:24 
JokeRe: When I grow up... Pin
Richard Deeming18-Dec-17 3:23
mveRichard Deeming18-Dec-17 3:23 
GeneralRe: When I grow up... Pin
Ron Anders17-Dec-17 4:19
Ron Anders17-Dec-17 4:19 
GeneralMessage Removed Pin
16-Dec-17 19:18
professionalJeremy Falcon16-Dec-17 19:18 
General'hello Dalai' => Appiness ? Pin
BillWoodruff15-Dec-17 11:33
professionalBillWoodruff15-Dec-17 11:33 
GeneralRe: 'hello Dalai' => Appiness ? Pin
Mike Hankey15-Dec-17 15:01
mveMike Hankey15-Dec-17 15:01 
GeneralRe: 'hello Dalai' => Appiness ? Pin
OriginalGriff15-Dec-17 20:36
mveOriginalGriff15-Dec-17 20:36 
GeneralRe: 'hello Dalai' => Appiness ? Pin
Mike Hankey15-Dec-17 20:53
mveMike Hankey15-Dec-17 20:53 
GeneralRe: 'hello Dalai' => Appiness ? Pin
OriginalGriff15-Dec-17 21:07
mveOriginalGriff15-Dec-17 21:07 
GeneralRe: 'hello Dalai' => Appiness ? Pin
DRHuff15-Dec-17 15:26
DRHuff15-Dec-17 15:26 
GeneralRe: 'hello Dalai' => Appiness ? Pin
JustWatchLittle 15-Dec-17 16:23
professionalJustWatchLittle 15-Dec-17 16:23 
GeneralRe: 'hello Dalai' => Appiness ? Pin
lopatir15-Dec-17 17:28
lopatir15-Dec-17 17:28 
GeneralRe: 'hello Dalai' => Appiness ? Pin
Richard Andrew x6416-Dec-17 3:07
professionalRichard Andrew x6416-Dec-17 3:07 
GeneralRe: 'hello Dalai' => Appiness ? Pin
BillWoodruff16-Dec-17 4:49
professionalBillWoodruff16-Dec-17 4:49 
GeneralRe: 'hello Dalai' => Appiness ? Pin
Daniel Pfeffer16-Dec-17 5:01
professionalDaniel Pfeffer16-Dec-17 5:01 
GeneralThe sky is falling...the sky is falling Pin
Mike Hankey15-Dec-17 7:35
mveMike Hankey15-Dec-17 7:35 

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.