Click here to Skip to main content
15,921,837 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.

 
JokeRe: help pls Pin
Anthony Mushrow11-Nov-07 10:38
professionalAnthony Mushrow11-Nov-07 10:38 
GeneralRe: help pls Pin
Luc Pattyn11-Nov-07 10:42
sitebuilderLuc Pattyn11-Nov-07 10:42 
GeneralRe: help pls Pin
Pete O'Hanlon11-Nov-07 23:23
mvePete O'Hanlon11-Nov-07 23:23 
GeneralRe: help pls Pin
BadKarma13-Nov-07 1:56
BadKarma13-Nov-07 1:56 
GeneralRe: help pls Pin
Ri Qen-Sin13-Nov-07 1:16
Ri Qen-Sin13-Nov-07 1:16 
JokeRe: help pls Pin
Vasudevan Deepak Kumar14-Nov-07 1:30
Vasudevan Deepak Kumar14-Nov-07 1:30 
GeneralRe: help pls Pin
Justin Perez14-Nov-07 4:27
Justin Perez14-Nov-07 4:27 
AnswerRe: here's how to use quantum crypto in VB Pin
NimitySSJ29-Nov-07 20:34
NimitySSJ29-Nov-07 20:34 
Although I also have a hard time taking this seriously, here goes a shot at a serious answer. Quantum Cryptography usually signifies two things, as far as current tech allows: (1) generating truly random numbers, via Quant. Phys.; (2) sending keys securely, by using quantum physics to recognize a tap on the line. MagiQ sells VPN hardware that does both of these things. Their RNG alone creates up to 100 unpredictable keys a second.

So, what do you need to do? Get some of that hardware. Write VB wrappers around all pertinent API functions. Generate keys with the Quantum RNG, and use them with a good encryption algorithm, like AES. If you are transmitting data, send it using Public Key cryptography, with at least the private keys generated from the quantum hardware. You can do the key-exchange part over quantum hardware, to detect taps. Operator should be notified if line is breached regularly. Just be sure to ask MagiQ (or the other unknown one) for technical documentation, to be sure this would work. Oh yeah, if you build a VB Quantum CryptoAPI, I will be expecting a free copy. Smile | :)

-Nick P.
QuestionWhat's the best way to do conditional compile? Pin
crewchill8-Nov-07 8:04
crewchill8-Nov-07 8:04 
AnswerRe: What's the best way to do conditional compile? Pin
Pete O'Hanlon8-Nov-07 9:19
mvePete O'Hanlon8-Nov-07 9:19 
AnswerRe: What's the best way to do conditional compile? Pin
KarstenK9-Nov-07 3:13
mveKarstenK9-Nov-07 3:13 
AnswerRe: What's the best way to do conditional compile? Pin
Saksida Bojan9-Nov-07 7:04
Saksida Bojan9-Nov-07 7:04 
AnswerRe: What's the best way to do conditional compile? Pin
Mike Dimmick12-Nov-07 5:21
Mike Dimmick12-Nov-07 5:21 
AnswerRe: What's the best way to do conditional compile? Pin
earl the dead cat12-Nov-07 7:39
earl the dead cat12-Nov-07 7:39 
GeneralRe: What's the best way to do conditional compile? Pin
crewchill12-Nov-07 7:55
crewchill12-Nov-07 7:55 
AnswerRe: What's the best way to do conditional compile? Pin
Philip Laureano14-Nov-07 4:38
Philip Laureano14-Nov-07 4:38 
AnswerRe: by avoiding it... Pin
NimitySSJ29-Nov-07 20:40
NimitySSJ29-Nov-07 20:40 
QuestionHow to code complicated actuarial formulas in C#?! Pin
k3n3dy7-Nov-07 10:07
k3n3dy7-Nov-07 10:07 
AnswerRe: How to code complicated actuarial formulas in C#?! Pin
Pete O'Hanlon7-Nov-07 11:17
mvePete O'Hanlon7-Nov-07 11:17 
GeneralRe: How to code complicated actuarial formulas in C#?! Pin
_Damian S_7-Nov-07 12:04
professional_Damian S_7-Nov-07 12:04 
GeneralRe: How to code complicated actuarial formulas in C#?! Pin
jg_8-Nov-07 4:24
jg_8-Nov-07 4:24 
JokeRe: How to code complicated actuarial formulas in C#?! Pin
Vasudevan Deepak Kumar8-Nov-07 21:30
Vasudevan Deepak Kumar8-Nov-07 21:30 
GeneralRe: How to code complicated actuarial formulas in C#?! Pin
jg_9-Nov-07 1:49
jg_9-Nov-07 1:49 
AnswerRe: How to code complicated actuarial formulas in C#?! Pin
_Damian S_7-Nov-07 12:03
professional_Damian S_7-Nov-07 12:03 
AnswerRe: How to code complicated actuarial formulas in C#?! Pin
KarstenK8-Nov-07 1:06
mveKarstenK8-Nov-07 1:06 

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.