|
I actually I changed my email ID I was using previously, so I can't modify the message now.("Modify" is based on your loginID) unfortunately Anyway your reply has it !
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
He never answers anyone who replies to him. I've taken to calling him a retard, which is not fair to retards everywhere.-Christian Graus
|
|
|
|
|
Oh, thank you
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
, the next post has something special with it. hmm where to post it ? ..thinking....
VuNic
|
|
|
|
|
Some interesting progamming messages
The function should remove all duplicate values form a string containing comma separated values.
RemoveDuplicates("a,b,c,a") => "a,b,c"
RemoveDuplicates("a,b,c,a,c,b,c") => "a,b,c"
RemoveDuplicates("a,b,c") => "a,b,c"
RemoveDuplicates("cat,dog,dog") => "cat,dog"
^
While you are waiting for a build that crashes or may be not. Here is a simple programming problem (not question). The objective is to write the following function:
string GetIntersection(string csvString1, string csvString2) { }
csvString1 and csvString2 both contain comma separated list of unique values. The values can be in any order and they don't contain commas. The objective is to return a new CSV string which contains value from both the lists.
e.g.
csvString1: cat,rat,dog,lion
csvString2: lion,elephant,mouse,tiger,rat,dog
output: lion,rat,dog^
I found this announcement[^] of a readable regular expressions library via Ayende's blog[^].
Basically, it's a .NET library that lets you type regular expressions like this:
Regex socialSecurityNumberCheck = new Regex(Pattern.With.AtBeginning .Digit.Repeat.Exactly(3) .Literal("-").Repeat.Optional .Digit.Repeat.Exactly(2) .Literal("-").Repeat.Optional .Digit.Repeat.Exactly(4) .AtEnd);
Instead of
Regex socialSecurityNumberCheck = new Regex(@"^\d{3}-?\d{2}-?\d{4}$");
^
x = NullShortcut(Foo.Bar.GetBaz().Names.Child);
if any of Foo, Foo.Bar, ... is null, x becomes null (without messing around with exceptions)
I mean, really.
^
if (3 < a < 10) {...}
or...
if (a [> 3 && < 10]) {...}
cause this if (3 < a && a < 10) {...}
gets old, quick.
^
Given two strings with characters in any order, the objective is to find whether both the strings contain same set of characters.
In other words, If A is the set of characters from the first string and B is the set of charcters from the second string, the function should return true if A equals B and false otherwise.
bool SameSetOfCharacters(string str1, string str2) {}
e.g.
SameSetOfCharacters("BACD", "AB") == false
SameSetOfCharacters("ABDADBCC", "ABCD") == true
SameSetOfCharacters("A", "AAAAA") == true
As usual the point is to have fun, and not neccessarily to find the optimal/best solution^
|
|
|
|
|
|
CP Forum tricks & tips..[Will add more]
1. If you find a *good* post beeing voted down with two 1 votes, and you just want to do some help for it, just wait. Dont vote it up. Your vote's gonna make it grey.
2. If you are arguing with someone, and the other's guy just got vote down by someone, you need to hint him you are an innocent,you didn't do it .
3. Never try to explain someone like "I tried to vote you 5 but I accidentally clicked on "spam"/"abuse". cuz it's got a confirmation dialog.;P You cannot do it accidentally.
Dario: How is "directory" in French? (I mean a file system directory).
John Simmons: "zee file holdaire thingie"
|
|
|
|
|
and my 6700th post goes to... ?
|
|
|
|
|
Toxcct this is cheating. 6700 has no significance other than it's a number called 6700. Let me see where you post your 7000th message.
Dario: How is "directory" in French? (I mean a file system directory).
John Simmons: "zee file holdaire thingie"
|
|
|
|
|
VuNic wrote: Never try to explain someone like "I tried to vote you 5 but I accidentally clicked on "spam"/"abuse". cuz it's got a confirmation dialog.;P You cannot do it accidentally.
no it not working these days on firefox
|
|
|
|
|
Oops, I think we need to keep two versions of the Tips&Tricks! One for IE & another for FF
Press: 1500 to 2,200 messages in just 6 days? How's that possible sir?
Dr.Brad :Well,I just replied to everything Graus did and then argued with Negus for a bit.
|
|
|
|
|
|
Alok & Toxcct : Both help me enough when I was starting my career.
Nishant the Guru : Fully inspired by mista guru. My Our Role model. And I Love watching his replies anywhere.
David Crow : Another Guru , But he's too perfect with his job. Dont try to play with him
My Dear country mates : I like them all,Even city mates are here
And my Lounge friends : You all are really the best. A peek at the lounge is enough to make my day . Thank you all.
|
|
|
|
|
VivekuniQ wrote: my wishes to all my friends here and the owner of this appartment!!!
Happy New Year Buddy...your DELL Plank is very Nice.. but making me fool is not that easy
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
VivekuniQ wrote: next time, it's done!.
God knows
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
T-1000 wrote: i think toxcct'll be back to the forum tomorrow. right?
dunno
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
|
|
|
|
Thanks for visiting !!!
|
|
|
|
|
hi vivek,
nice to see you at home... as i received an invitation to yours, here am i
so, how did you passed christmas ? well?
here, that's still very nice to enjoy the time of the holidays... the only thing missing is some snow ; but hey , i'm taking the plane tomorrow to the alps gonna be very nice !!
see you soon i hope, but don't worry if i don't answer quickly... don't have any constant connection to the web where i am.
see you dear,
TOXCCT >>> GEII power [toxcct][VisualCalc 2.20][VisualCalc 3.0]
|
|
|
|
|
VivekuniQ wrote: its my new FLAT in CP!!
Nice Flat, HELLO I am here for dinner! so what are you going to serve...
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|