« first day (1964 days earlier)      last day (3210 days later) » 

19:01
I don't really get into work until 11pst these days, lol
@Amy I think they originally mentioned it at BUILD or in an insider newsletter.
that's why it was so broken in early builds because it was built on top of the OS as opposed to within it, at least until later builds
user47589
i see
Back to MIPS...
who's the regex master?
/^([a-zA-Z0-9_\.\-])+\@@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/
This is email validation regex but I want to know what it looks for exactly
if anyone can help me properly bind my dropdownlist i would be very appreciative: stackoverflow.com/questions/35755862/…
19:08
@KalaJ it looks for the most effective way to waste your time validating email addresses with regex
@DemCodeLines facts aside, it might still be possible to do it. There are many undocumented things in UWP still.
but you won't find a guide or tutorial anywhere
@KalaJ Well, looks like it expects two @s, that's odd
also it accepts multiple domains after the @
whatever the hell that means
wait no
whoever wrote this should be shot
wtf
Yeah I'm looking at this on regex101.com and I'm not even sure what they're trying to accomplish
looks vaguely email-like, but so messed up
honestly, the js validation is pretty bad
I want to rewrite the whole validation scheme but I'm new lol
crap, should I have mentioned this is in js?
the regex
19:15
just replace the regex with /.+@.+\..+/
simpler, and less false negatives
here's the one for phone number: var regex = /^[(]{0,1}[0-9]{3}[)]{0,1}[-\s\.]{0,1}[0-9]{3}[-\s\.]{0,1}[0-9]{4}$/;
@KalaJ regex101.com is quite useful.
Thanks Mike!
user47589
validating an email with regex is asking for trouble
yeah, isn't the regex for email like 2KB?
19:18
why is it bad?
There's got to be an existing api for it already
Should I discuss with company?
or some tool
user47589
because the email address standard is very poorly defined
2130
Q: Using a regular expression to validate an email address

acrosmanOver the years I have slowly developed a regular expression that validates MOST email addresses correctly, assuming they don't use an IP address as the server part. I use it in several PHP programs, and it works most of the time. However, from time to time I get contacted by someone that is hav...

ex-parrot.com/~pdw/Mail-RFC822-Address.html that is an email address regex
user47589
@KalaJ for example (other issues notwithstanding) that regex you posted rejects a number of valid TLDs
@KalaJ Someone really doesn't know what they're doing. I got as far as {0,1} till I WTFed
@KendallFrey Starting with an optional ( in a very sloppy way, as near as I can tell.
user47589
what the hell is the point of {0,1}
phone number parsing is really really easy, too easy for regex
just remove everything but the digits
19:22
I'm going to change the email regex, you're right, it's not correct lol
That's very naive
user47589
the best way to validate an email address? check that it contains anything before the @, then the @, and something after the @. if it has those three things, it's probably valid.
@Codeman Is that the one that is implemented in the MailMessage constructor?
@Amy I'd say worth checking for . as well
@Amy send it a confirmation email
19:24
8 mins ago, by Kendall Frey
just replace the regex with /.+@.+\..+/
user47589
maybe so @KendallFrey
I think I can use the one the dev work above but remove the extra @?
regex101 says it's valid
user47589
of course, the only way to absolutely validate an email address is to send an email to the address
@KalaJ valid, but fucking stupid
no idea
19:24
"Click here to finish your registration!"
If and only if you actually need their email address.
user47589
yeah
Because 99.9% of the time you don't actually need their email.
user47589
every time you attempt to validate an email address using regex, an angel gets covered in shit from head to toe.
@KalaJ Does it pass the test cases?
Every time you attempt to validate an email address using regex, a panini goes cold.
user47589
we need a new email address standard
19:27
I missed a few of the tests.
user47589
something to bring emails into the 21st and a half century
Every time you use {0,1} in a regex, Hitler rapes a starving African child.
user47589
Mecha-Hitler?
@Amy we need a new internet standard
seriously people get your act together
19:28
> Hitler rapes a starving African child.
wew
what's wrong with {0,1}
Here's a much better list of email test cases: isemail.info/_system/is_email/test/?all
user47589
{0,1} is the same as ?
The only thing worse than {0,1} is {1}
user47589
19:29
except its more verbose
@KendallFrey which is essentially pointless, right? I'm not very good at regex
very pointless
And {0} means "completely ignore the previous token so I typed it out for no reason at all"
user47589
hm... i wonder, are they really the same? would {0,1} have the same algorithmic complexity as using ?? would the regex engine come across {0,1} and recognize it as ??
In Javascript I have the following code:

var me = this;
Object.observe(component, function(b)
{
console.log("observer enabled: " + me.observerEnabled);
});

And somewhere in my code I change observerEnabled to false, but it is not detected at the moment that the anonymous function actually gets activated.
Anyone has an idea on what's going on?
19:32
Note: It's de facto standard to name that variable self
Ahh okay. Didn't knew that. :-)
Note: this is not the javascript chat room.
this is the panini chatroom
that is the only JS framework allowed for discussion
user47589
This is Coctothorpe chat.
I know, but you are nice people :-) (Except for Amy)
19:33
you're a cocktothroepep
@Codeman You're thinking of Jicama
user47589
I'm not nice people, you take that back.
@Codeman draws knife jicamaJS
ok, JicamaJS and PaniniJS
the room description bothers me
it should be panini.ForEach(a.Insert)
19:34
@mikeTheLiar draws bigger knife JicamaJS
draws cock-n-balls
@Failsafe it's capitalized? What the shit is that?
!!jicamajs
@mikeTheLiar That didn't make much sense. Maybe you meant: jicamajs
@KendallFrey uses Harden
It wasn't very effective
19:36
> base JicamaJS Repository
@Failsafe uses Viagra
It's super effective!
boing sound effect
@Failsafe I concede defeat
@mikeTheLiar getting sprung
If your pokemon battle lasts for 4 hours or more, call your local Pokemon Center
19:40
Get Nurse Joy to heal you
user47589
oh god
user47589
no
user47589
no pokemon
user47589
If your The Rock lasts for more than 4 hours, call your doctor
19:46
@juanvan Hey that's awesome. I've used it for a few tricks myself in the past in order to do ETL type operations in memory.
Ya made things a little faster too - could take out the Thread.Sleep() b/c the DB was locking on every insert.
Keep the thread.sleep() in there. when you have nothing to do, THEN remove it, and say you spent all week making the system that much faster.
user47589
yup yup
@juanvan jeez. did you learn you coworkers some DB design skills?
19:54
urgh, looking at this js validation stuff, I'm tempted to comment it and redo it my own way
how bad would that be?
@Codeman Fathers to be exact old vb code
@KalaJ depends on who's doing the code review. Is this going to be your first commit?
user47589
hey, that's cool. if you use Chrome, try right-clicking the Refresh button
user47589
i just discovered this by accident
user47589
hm, doesn't seem to work on every tab
19:55
yes this is going to be my first commit
:S
I worked with someone who did VB 3-6 work for 15 years, then moved to C#. I cried so hard during code reviews....
string strName = getStringNameFromMember();
While{...
}//wend
Just imagine walking in to the code review going "whoever wrote this validation is a no-good dumbo moron" and it turns out that the reviewer is the guy who wrote it in the first place
the form data is not even persisting
and I think I know why
@Amy dev console has to be open
there's no call to the controller to save the data to the db
user47589
19:56
ah ha
user47589
someone good with XML reading around?
Does nothing for me @amy
user47589
i think @mikeTheLiar is right, dev console has to be open
@Amy he is right
user47589
19:58
is that right?
empty cache is not an option in non-developer mode
i think he is right
he's probably right
FFS I'm right. I use it all the time.
hes right maybe
I'm always right. I'm just a liar.

« first day (1964 days earlier)      last day (3210 days later) »