|
Keith Barrow wrote: There may have been a small amount of sarcasm in that statement.
If that is the case, then I must be the first person to witness sarchasm[^] with my own sarcasm 
|
|
|
|
|
int daysToExpire = Int32.MaxValue;
try {
DateTime expiryDate = GetExpiryDate();
daysToExpire = expiryDate - DateTime.Today;
}
catch {
}
MessageBox.Show(string.Format("This license will expire in {0} days.", daysToExpire));
|
|
|
|
|
Use your MSDN account to get a product code, enter that instead of renewing the license. End of problem.
We can program with only 1's, but if all you've got are zeros, you've got nothing.
|
|
|
|
|
|
Just received this from our IT support:
Quote: Rob keeps loosing connection to the exchange server.
I can run a continuous ping to this server whilst this is happening so therefore I wish to run an Office repair.
I have lost connection - Rob please reboot and call me when you have a moment, thanks,
Phil.
Because the best way to contact someone without email is to, um, send them an email!
(I'd fixed the problem myself by this time).
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Working overtime one weekend my team leader needed to access information on another team member's email account while he was on holiday. She had his password changed so she coukld get into his mail, then sent him an email with the new password!
=========================================================
I'm an optoholic - my glass is always half full of vodka.
=========================================================
|
|
|
|
|
pure genius. I wonder how she got to be your boss
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
That's why she's a boss. To keep her away from serious business 
|
|
|
|
|
|
I think you aren't familiar with IT bosses 
|
|
|
|
|
Watch out you're next for management.
Peter Wasser
Art is making something out of nothing and selling it.
Frank Zappa
|
|
|
|
|
I will gladly deny. I am not that kind of person to lead others. I prefer solitary work.
Microsoft ... the only place where VARIANT_TRUE != true
|
|
|
|
|
I had an issue with my Enterprise IM and created a support ticket. When nobody from support contacted me for over 24 hours, I walked down to the floor where the support guys were located only to be told by one of them "I did not find you online since yesterday, I had been waiting for a confirmation from you through IM".
It was one of those "God, I do not want to live in this World..." moments 
|
|
|
|
|
I know you don't get these very often, so please enjoy . And hi to everyone - forums look great these days.
my $select = "";
my (@fields) = ("field1", "field2", "field3", "field4", "field5", "field6", "field7", "field8", "field9", "field10", "field11", "field12", "field13", "field14", "field15", "field16", "field17", "field18");
foreach my $f (@fields)
{
$select .= "$f,";
}
chop $select;
For those unfamiliar, @name= array variable, $name = scalar variable. 'chop' is interpreted as a function call with the intentional side effect of removing the last character from the scalar you pass it.
As a bonus, plaintext strings surrounded by double quotes must be parsed by the interpreter (this is Perl) and variable names within them are replaced with values.
|
|
|
|
|
That is, he creates one big string containing the values of $field1 to $field18 separated by a comma?
|
|
|
|
|
Not quite...
the "$f," only interpolates the value of the f scalar... so the result is the single string:
'field1,field2,field3,field4,field5,field6,field7,field8,field9,field10,field11,field12,field13,field14,field15,field16,field17,field18'
Seriously pointless!
|
|
|
|
|
He made a perfect example of code reuse! Spared 17 times the $ sign!!!
I'm not questioning your powers of observation; I'm merely remarking upon the paradox of asking a masked man who he is. (V)
|
|
|
|
|
I was half expecting a musical reference...
|
|
|
|
|
A musical reference, and no code[^]?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
SELECT ISNULL(NULL,'') as [Email]
There's something oddly zen-like about it 
|
|
|
|
|
Getting information off the Internet is like taking a drink from a fire hydrant.
- Mitchell Kapor
|
|
|
|
|
Maybe someone wanted to make sure that a mapping framework (like .net EntityFramework) made a nullable string out of it 
|
|
|
|
|
Ed Bouras wrote: zen-like Yes: [Email] will always be an empty string, not null (except when ISNULL evaluates NULL as something different from NULL). String.Empty and NULL is an enormous difference for MS SQLServer and most (or all?) object-oriented programming languages. But not for zen-lacking Oracle.
|
|
|
|
|
Bernhard Hiller wrote: String.Empty and NULL is an enormous difference
Yes, obviously.
And I wish XML would recognize that too.
This space intentionally left blank.
|
|
|
|
|