|
I'm so sorry... I just couldn't stop.
Giraffes are not real.
|
|
|
|
|
ok, now where's my mind bleach?
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
|
|
|
|
|
Here you go![^]
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
Thanks!
I'm brazilian and english (well, human languages in general) aren't my best skill, so, sorry by my english. (if you want we can speak in C# or VB.Net =p)
|
|
|
|
|
You're welcome!
I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image.
Stephen Hawking
|
|
|
|
|
You need to understand that a thing like this,
string DocumentName = string.Format("Application - [{0}] - {1:yyyyMMdd}", Person.RegistrationNo, DateTime.Now);
was not easy to understand and it could trick less experienced developers!!!
Cheers!!!
|
|
|
|
|
Joke? That's far easier to read than what was originally posted.
|
|
|
|
|
Well it is flagged as a joke, also I hope my tone was sarcastic enough.
Cheers
|
|
|
|
|
Okay, just checking 
|
|
|
|
|
I would think this is how it's supposed to be done.
string Daternator()
{
DateTime dt = DateTime.Now;
string result = "";
for (int i = 0; i < 3; i++)
{
if (i == 0)
result += dt.Year.ToString() + ", ";
else if (i == 1)
result += dt.Month.ToString() + ", ";
else if (i == 2)
result += dt.Day.ToString() + ", ";
}
result = result.Remove(result.LastIndexOf(" "), 1);
result = result.Remove(result.LastIndexOf(","), 1);
Start:
MatchCollection mc = Regex.Matches(result, @"\b(\d)\b");
foreach (Match m in mc)
{
if (m.Success)
{
result = result.Insert(m.Index, "0");
goto Start;
}
}
return string.Format("Application - [{0}] - " + result, this.Person.RegistrationNo.ToString());
}
modified 21-Oct-12 5:28am.
|
|
|
|
|
|
LiveFreeCodeHard wrote: CodeHard
Your name starts making sense now. 
|
|
|
|
|
And I thought the WTF was a "maximum" function which takes a string and an int, until I saw the comment...
|
|
|
|
|
Hey all, here's an interlude to the regularly scheduled 'weird, wide world of windows'
my $olddatemails = `ls -t Mailed20??????`;
my $datemailed = "";
$datemailed = $1 if ($olddatemails =~ /(20\d\d\d\d\d\d)/s);
die if ($datemailed eq "");
...
$newdate = $datemailed;
while ($parse =~ s/Mailed(20\d\d)(\d\d)(\d\d).*?\n//s)
{
$newdate = $1 . $2 . $3;
}
`mv "Mailed$datemailed" "Mailed$newdate"` if ($datemailed lt $newdate);
How many tautologies and inconsistencies can you count??? 
|
|
|
|
|
First of all, what programming language is that?
|
|
|
|
|
Really? That's almost as depressing as the fact that the jackass who authored this atrocity is in effect my superior..
(also, Perl)
|
|
|
|
|
bulg wrote: the jackass who authored this atrocity is in effect my superior
Your superior or your supervisor?
bulg wrote: Perl
Remind me to never use Perl.
|
|
|
|
|
He's "in" with the owners, but not technically my boss.
AspDotNetDev wrote: Remind me to never use Perl.
So true!
|
|
|
|
|
I used to use perl a lot ... I think I just threw up a little in my mouth.
|
|
|
|
|
Is this for real??
I hope I have not become rusty on my Perl skills, as I am unable to comprehend how this ever works out
--> Getting information off the Internet is like taking a drink from a fire hydrant.
--> In three words I can sum up everything I've learned about life: it goes on.
|
|
|
|
|
|
Confirmation.asp?order=179000[^]
Lost interest after this.
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
nils illegitimus carborundum
me, me, me
|
|
|
|
|
|
Okay what's wrong with that? It uses HTTPS and that should be good enough for everybody. 
|
|
|
|
|
So were 512k some decades ago.
Also, look 2 threads below (incidentally, one that I've started). It mentions exactly this problem.
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.
|
|
|
|