Click here to Skip to main content
15,879,535 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: ConvertToReadableNumber Pin
Eddy Vluggen9-Aug-12 1:06
professionalEddy Vluggen9-Aug-12 1:06 
GeneralRe: ConvertToReadableNumber Pin
Pete O'Hanlon9-Aug-12 1:47
mvePete O'Hanlon9-Aug-12 1:47 
JokeRe: ConvertToReadableNumber Pin
dan!sh 9-Aug-12 2:04
professional dan!sh 9-Aug-12 2:04 
GeneralRe: ConvertToReadableNumber Pin
all_in_flames13-Aug-12 5:24
professionalall_in_flames13-Aug-12 5:24 
GeneralRe: ConvertToReadableNumber Pin
JeremyBob13-Aug-12 3:17
JeremyBob13-Aug-12 3:17 
GeneralRe: ConvertToReadableNumber Pin
Wenff13-Aug-12 3:27
professionalWenff13-Aug-12 3:27 
GeneralRe: ConvertToReadableNumber Pin
Sasha Laurel13-Aug-12 5:14
Sasha Laurel13-Aug-12 5:14 
GeneralSecurity - You're doing it wrong! PinPopular
Andrei Straut8-Aug-12 3:56
Andrei Straut8-Aug-12 3:56 
So, I got an interesting link from one of our suppliers. At the end of it there's a feed containing product prices and stocks, which need to be parsed and inserted into our ERP.
The link was the following (username and password changed to protect the innocent):

https://services.it4profit.com/product/ro/705/ProductList.xml?USERNAME=[username]&PASSWORD=[password]

I know that (usually) no data (including the GET parameters) is sent before the SSL connection is established, and from an outside point-of-view, the only visible information is the server and the port. Now, what we're receiving isn't that private anyway (we're talking about some product prices that are customized per-company, within certain limits).

But I really don't wanna know how many sites are out there that do the same thing. And if someone opens something like that from a browser, it sticks within the history. Also, not to mention the server logs.

Some people just need to be smacked over their heads every once in a while.
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.

GeneralRe: Security - You're doing it wrong! Pin
Brisingr Aerowing8-Aug-12 15:15
professionalBrisingr Aerowing8-Aug-12 15:15 
JokeRe: Security - You're doing it wrong! Pin
Bernhard Hiller8-Aug-12 21:42
Bernhard Hiller8-Aug-12 21:42 
JokeRe: Security - You're doing it wrong! Pin
Andrei Straut8-Aug-12 23:05
Andrei Straut8-Aug-12 23:05 
GeneralRe: Security - You're doing it wrong! Pin
Bernhard Hiller9-Aug-12 0:49
Bernhard Hiller9-Aug-12 0:49 
GeneralRe: Security - You're doing it wrong! Pin
Andrei Straut9-Aug-12 1:15
Andrei Straut9-Aug-12 1:15 
GeneralRe: Security - You're doing it wrong! Pin
ekolis30-Aug-12 13:09
ekolis30-Aug-12 13:09 
GeneralRe: Security - You're doing it wrong! Pin
Brisingr Aerowing10-Aug-12 15:01
professionalBrisingr Aerowing10-Aug-12 15:01 
GeneralMicrosoft.Sharepoint.dll Pin
leppie7-Aug-12 3:22
leppie7-Aug-12 3:22 
GeneralRe: Microsoft.Sharepoint.dll Pin
PIEBALDconsult7-Aug-12 3:44
mvePIEBALDconsult7-Aug-12 3:44 
GeneralRe: Microsoft.Sharepoint.dll Pin
Kevin Drzycimski7-Aug-12 19:03
Kevin Drzycimski7-Aug-12 19:03 
GeneralRe: Microsoft.Sharepoint.dll Pin
leppie7-Aug-12 19:46
leppie7-Aug-12 19:46 
GeneralRe: Microsoft.Sharepoint.dll Pin
Eddy Vluggen9-Aug-12 1:09
professionalEddy Vluggen9-Aug-12 1:09 
GeneralRe: Microsoft.Sharepoint.dll Pin
leppie9-Aug-12 3:29
leppie9-Aug-12 3:29 
GeneralThe worst way to name a variable PinPopular
DaintyB3-Aug-12 21:03
DaintyB3-Aug-12 21:03 
GeneralRe: The worst way to name a variable Pin
PIEBALDconsult4-Aug-12 8:29
mvePIEBALDconsult4-Aug-12 8:29 
GeneralRe: The worst way to name a variable Pin
AspDotNetDev4-Aug-12 21:03
protectorAspDotNetDev4-Aug-12 21:03 
GeneralRe: The worst way to name a variable Pin
Andrei Straut6-Aug-12 2:37
Andrei Straut6-Aug-12 2:37 

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.