Click here to Skip to main content

Welcome to the Lounge

   

For lazing about and discussing anything in a software developer's life that takes your fancy except programming questions.

Technical discussions are encouraged, but click here to ask your programming question.

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: XKCDOTD PinmentorKeith Barrow11-Aug-14 9:20 
GeneralRe: XKCDOTD PinmemberPIEBALDconsult11-Aug-14 9:40 
JokeRe: XKCDOTD PinprofessionalRajesh_Francis11-Aug-14 3:10 
GeneralRe: XKCDOTD PinprotectorOriginalGriff11-Aug-14 3:24 
GeneralRe: XKCDOTD PinmemberBrady Kelly11-Aug-14 4:34 
GeneralRe: XKCDOTD PinprofessionalRajesh_Francis11-Aug-14 23:42 
GeneralRe: XKCDOTD PinmemberPIEBALDconsult11-Aug-14 8:09 
GeneralThe Magician's String, what you see is not what you get. [modified] PinprofessionalNicolas Dorier10-Aug-14 11:31 
static void Main(string[] args)
{
	String str1 = "http://toto.com/";
	String str2 = "http://toto.com‏/";
	bool eq = str1 == str2;
	Console.WriteLine(eq); //print false

 
	str1 = "http://toto.com/";
	str2 = "http://toto.com/";
	eq = str1 == str2;
	Console.WriteLine(eq); //print true
}

See for yourself, but copy the code, do not retype it. Smile | :)
I lost hair on this one, bug on an actual project for one customer.
But it is a nice trick to do to one of your collegue if his computer is unlocked... Also works in configuration files. Wink | ;)
This is pure evil though.

modified 10-Aug-14 17:09pm.

GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalJohnny J.10-Aug-14 20:41 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalNicolas Dorier11-Aug-14 0:26 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalArgonia10-Aug-14 23:37 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalAgent__00710-Aug-14 23:41 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalArgonia10-Aug-14 23:48 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalNicolas Dorier11-Aug-14 0:53 
GeneralRe: The Magician's String, what you see is not what you get. Pinmemberharold aptroot11-Aug-14 0:25 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalNicolas Dorier11-Aug-14 0:34 
GeneralRe: The Magician's String, what you see is not what you get. Pinmemberharold aptroot11-Aug-14 0:44 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalKaren Mitchelle11-Aug-14 1:00 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalNicolas Dorier11-Aug-14 1:14 
GeneralRe: The Magician's String, what you see is not what you get. PinmemberFueled By Caffeine11-Aug-14 0:49 
GeneralRe: The Magician's String, what you see is not what you get. PinprofessionalNicolas Dorier11-Aug-14 0:54 
GeneralFigured I should start earning my keep PinmemberHomerTheGreat10-Aug-14 11:30 
JokeRe: Figured I should start earning my keep PinprofessionalJohnny J.10-Aug-14 20:53 
GeneralFresh 427 Update PinmemberJohn Simmons / outlaw programmer10-Aug-14 9:01 
GeneralRe: Fresh 427 Update PinprofessionalMike Hankey10-Aug-14 12:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    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 | Mobile
Web03 | 2.8.150414.1 | Last Updated 18 Apr 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid