Click here to Skip to main content
15,434,058 members

The Weird and The Wonderful

   

The Weird and The Wonderful forum is a place to post Coding Horrors, Worst Practices, and the occasional flash of brilliance.

We all come across code that simply boggles the mind. Lazy kludges, embarrassing mistakes, horrid workarounds and developers just not quite getting it. And then somedays we come across - or write - the truly sublime.

Post your Best, your worst, and your most interesting. But please - no programming questions . This forum is purely for amusement and discussions on code snippets. All actual programming questions will be removed.

 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Marco Bertschi21-Jul-15 3:23
professionalMarco Bertschi21-Jul-15 3:23 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Rob Grainger21-Jul-15 6:02
MemberRob Grainger21-Jul-15 6:02 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Brisingr Aerowing21-Jul-15 3:35
professionalBrisingr Aerowing21-Jul-15 3:35 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Marco Bertschi21-Jul-15 3:22
professionalMarco Bertschi21-Jul-15 3:22 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Brisingr Aerowing21-Jul-15 3:36
professionalBrisingr Aerowing21-Jul-15 3:36 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Nicholas Marty21-Jul-15 5:16
professionalNicholas Marty21-Jul-15 5:16 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Max Methot23-Jul-15 1:24
MemberMax Methot23-Jul-15 1:24 
GeneralRe: And you thought some of the CodeProject questions were bad... Pin
Rob Grainger21-Jul-15 6:07
MemberRob Grainger21-Jul-15 6:07 
Just in case the message gets removed from reddit again, I've decided to copy the text verbatim...

Hi fellows, I'm stuck I need to extract data, the code was send to me from the statistics department of Mexico I need to extract information from a webpage, it says is API information. I tried to copy and paste the code on Dev- C++ 4.9.9.2 and click on run but it says file not compiled, after that I save the file and still is the same. The information is about energy consumption. THANKS! <DATASET_BIINEGI xmlns="http://schemas.datacontract.org/2004/07/BIINEGI.Model" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Data> <GeneralNote/> <GeneralSource> Secretaría de Energía. Balance nacional de energía. </GeneralSource> <Serie> <Obs> <CurrentValue>9250.67</CurrentValue> <NotesPeriod i:nil="true"/> <SourcesPeriod i:nil="true"/> <TimePeriod>2010</TimePeriod> <ValueStatus/> </Obs> </Serie> </Data> <MetaData> <CreationDate>13/07/2015 10:23:56 a.m.</CreationDate> <Freq>Anual</Freq> <Indicator>13241</Indicator> <LastUpdate>2012/08/27</LastUpdate> <Name>Total</Name> <NoOfDecimals>3</NoOfDecimals> <Unit>Petajoules</Unit> <Region>Nacional</Region> </MetaData> </DATASET_BIINEGI>

I intentionally kept the delightful formatting of the original. Wink | ;-)
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.

GeneralComedy code comment misdirection Pin
Duncan Edwards Jones8-Jul-15 6:52
professionalDuncan Edwards Jones8-Jul-15 6:52 
GeneralRe: Comedy code comment misdirection Pin
Richard Deeming8-Jul-15 7:14
mveRichard Deeming8-Jul-15 7:14 
GeneralRe: Comedy code comment misdirection Pin
phil.o8-Jul-15 9:00
mvephil.o8-Jul-15 9:00 
JokeRe: Comedy code comment misdirection Pin
kmoorevs9-Jul-15 11:01
Memberkmoorevs9-Jul-15 11:01 
JokeRe: Comedy code comment misdirection Pin
Eddy Vluggen8-Jul-15 11:30
professionalEddy Vluggen8-Jul-15 11:30 
GeneralRe: Comedy code comment misdirection Pin
Duncan Edwards Jones8-Jul-15 11:43
professionalDuncan Edwards Jones8-Jul-15 11:43 
GeneralRe: Comedy code comment misdirection Pin
Sander Rossel13-Jul-15 11:49
professionalSander Rossel13-Jul-15 11:49 
GeneralRe: Comedy code comment misdirection Pin
Eddy Vluggen20-Jul-15 10:28
professionalEddy Vluggen20-Jul-15 10:28 
GeneralRe: Comedy code comment misdirection Pin
Sander Rossel21-Jul-15 8:50
professionalSander Rossel21-Jul-15 8:50 
GeneralRe: Comedy code comment misdirection Pin
Power Puff Boy27-Jul-15 3:59
MemberPower Puff Boy27-Jul-15 3:59 
Generalif...else if.. & bad casting Pin
Robin Imrie7-Jul-15 22:53
professionalRobin Imrie7-Jul-15 22:53 
GeneralRe: if...else if.. & bad casting Pin
Power Puff Boy27-Jul-15 20:48
MemberPower Puff Boy27-Jul-15 20:48 
GeneralRe: if...else if.. & bad casting Pin
Robin Imrie27-Jul-15 22:07
professionalRobin Imrie27-Jul-15 22:07 
GeneralFun with touchpads Pin
Mike Gaskey4-Jul-15 5:23
MemberMike Gaskey4-Jul-15 5:23 
GeneralRe: Fun with touchpads Pin
Afzaal Ahmad Zeeshan4-Jul-15 6:16
mveAfzaal Ahmad Zeeshan4-Jul-15 6:16 
GeneralRe: Fun with touchpads Pin
PIEBALDconsult4-Jul-15 16:47
professionalPIEBALDconsult4-Jul-15 16:47 
GeneralRe: Fun with touchpads Pin
Mike Gaskey5-Jul-15 11:22
MemberMike Gaskey5-Jul-15 11:22 

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.