« first day (2592 days earlier)      last day (2362 days later) » 

9:00 PM
or itertools
 
I haven't heard of that one
 
I'll have to keep an eye out for question in room 6 now
 
I wonder what the jQuery equivalent to 'just use jQuery' is
 
@SterlingArcher $(document).ready
 
9:01 PM
jquery-ui
 
oh i made myself sad
 
$($)
 
They never teach you in school that scare pranks at a dentist's office could result in an absolute bloody disaster. R.I.P. little Timmy.
 
who is jeffcrush
i thought i was the one who crushed
 
@SterlingArcher idk and I also dk how he only has 49 followers
 
9:07 PM
I have this mental block against let. idk why
it's bad tho
I just wrote an ugly ternary instead of using let
 
why would you ... 😎 let ... yourself do that
YYYYYEEEEAAAAHHHHHH
 
    const blah = condition ?
      ( await Foo() ) :
      ( await Bar() );
 
@SterlingArcher Do you const antly have to make bad jokes?
 
haha bad typo
 
@Loktar that's it, you can have full custody now
lemon out
 
9:08 PM
LOL
 
haha
 
what in ternaryation
 
hey, could be worse
could be nested
 
@rlemon const blah = await (condition ? Foo : Bar)();
 
@rlemon const blah = await something(condition)
 
9:09 PM
@KendallFrey yea, I noticed that once I typed it in here.
 
async function something(condition) {
  if (condition) {
    return await Foo();
  }
  return await Bar();
}
 
so, plugging a mixed reality headset into a computer without the mixed reality update == bad news
 
const blah = await newsOfYourWifes(condition); // dire
 
@ssube Did you summon Satan?
 
and there are better ways to clean it up. it's not about that tho, it's about me rather using a ternary and const than let and swapping refs
 
9:10 PM
@KendallFrey oh
@ssube did you seizure
 
lol a mod edited that message it wasn't me
 
@MadaraUchiha pretty much. Things started flickering, screens vanished, my feet started getting awful warm.
 
just in case, bye
 
@SterlingArcher not quite
 
9:15 PM
my team leader said "hey, so we have a half day wednesday, so basically come in for lunch with us and go home"
I love this place
@MadaraUchiha @JonClements can I start using these? That's amazing
Kind of rude, but amazing
 
I think it's the direct continuation of the "What Stack Overflow is not" meta post
Don't remember what the verdict about those were.
 
Maybe you don't think like is not, but is be
 
I could answer that question too
but, it'd be long winded and that's a lot of typing
I did it with tshirts
 
hey guys yet another question about "transactions"
12
A: How to handle async concurrent requests correctly?

sgress454 Update As several commenters have noted, the code below doesn't work when connection pooling is enabled. At the time that this was originally posted, not all of the adapters pooled by default, but at this point it should be assumed that they do, so that each individual method call (.quer...

 
OHHHHHHHHHHHHH I WANT THAT SHIIIIIIIIIIRT
 
9:20 PM
lol
 
is it possible to update another table in the callback of the "COMMIT" ?
who is that on the shirt?
 
@SterlingArcher Of course you want @Loktar on your chest
 
Not just him big guy ;D
 
lmao
 
I replaced mongodb with postgres and the startup time is like 4 times longer!
crazy
 
9:30 PM
make sure your server doesn't crash often
 
mongodb is pretty meh for like 90% of use cases
 
meh means? good enough? or what does meh mean?
 
Suboptimal and not extensible enough
 
who can give a look at this "small" snippet of transactions?
 
homie you know the chat rules just post and if anybody is interested/knows they'll respond
 
9:36 PM
first I check the user, if he has coins>0 than I set his coins = 0 and try to write a record in the bitcointransaction table
@SterlingArcher I was writing.. but slow hehe sorry
 
oh honey you need promises
 
using a fiddle is useless if the code isn't executable.
 
that's some nasty callback hell
 
should use something like gist.github if it's just a code dump and not a functional example
 
9:38 PM
jsfiddle has small stupid panes
 
@KendallFrey jfc no article needed lol 10/10
 
!!s/an/enis/
 
!!undo
 
damn me too
 
don't flag bait cap
 
9:42 PM
I was about to flag her for making fun of me
 
!!ban Vap0r
 
@rlemon Vap0r added to mindjail.
 
and that's that.
 
lol
No how will I use all the useful features now?!
 
9:43 PM
-1
Q: What is a general term for automation frameworks like grunt and bower

Chris HalcrowIs there a recognised term for automation frameworks like Grunt and Bower. Like maybe 'web pre-processing frameworks'?

jfc
 
ok created a gist - true jsfiddle for backendcode is meh
 
How come when I parse this date

var d = new Date("2017-11-11");
it gives me this
Fri Nov 10 2017 19:00:00 GMT-0500 (Eastern Standard Time)
 
@erotavlas your browser is in EST
 
user1596138
$3/can haha
 
9:44 PM
srsly who buys this?
 
@erotavlas all dates are stored as UTC*, but the date object will display according to your timezone
 
The Orange Cans are waaaay better!
 
what if the date I prsed was already in EST?
 
user1596138
Idk was just in my suggestions
 
@erotavlas it wasn't, since it doesn't have a timezone
 
9:46 PM
but it was, we just didn't care about timezone
the application is only in one timezone
 
How can timezones be real if the earth is flat dummy
 
@SterlingArcher uhh
 
oh wait he's not a regular ignore me, trolling.
 
ik this is the javascript room but can someone help me with jquery
2
 
@Brogrammer Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
9:48 PM
so basically my jquery code is supposed to only allow numbers 0-50
 
@ssube so basically if I didn't specify a timezone, then it assumes its in GMT?
 
but anything i type in gets validated as right
 
@Brogrammer can you show some code, homie?
 
@erotavlas it should. The spec goes into more detail about what formats are acceptable and how it works.
 
9:49 PM
ty bromigo
 
this code is in my javascript file
 
1 message moved to Trash can
@Brogrammer Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq. For posting large code blocks, use a paste site like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
 
$("#myform").validate({
  rules: {
    field: {
      required: true,
      number: true,
      digits: true,
      range : [0, 50]
    }
  }
});
 
Hmm, syntax seems right.
Anything in your console?
 
Why do we even need timezones, why can't everyone just use the Universal Time, like who care if 12noon occurs in the middle of the night in some areas
 
9:51 PM
use vue
or angular 2
@erotavlas how am I supposed to have lunch at noon?
 
user1596138
@erotavlas inorite
 
@erotavlas Because humans suck
 
maybe there is something wrong with my html file
 
I'd be hungry
 
Daylight savings needs to die
 
9:52 PM
@SterlingArcher this is my html file code
 
user1596138
@SterlingArcher I got a new gun an I'm like. "Oh I'll just shoot after work tomo"
 
@Brogrammer a little tip, let HTML do it for you. input has a property called range which will let you do that
 
user1596138
Fucking nope bc it's fucking pitch black at 530
 
I love you all, good night
 
ik but our prof wants us to use jquery
 
user1596138
9:52 PM
I live in the dark
 
I don't mind daylight savings, means the sun is up when i leave, so my windows aren't frosted over
:p
 
and use the valdiation plugin method
 
user1596138
I get up right before work and get home at dark
 
user1596138
@KevinB Insulated garages heh
 
@Brogrammer tell your professor to teach you native JS, html, and good practices :P
 
9:53 PM
he hates javascript lol
 
you wouldn't have lunch at noon you would have lunch at midnight
problem solved
 
user1596138
LOL he hates JS but loves JS
 
user1596138
Your professor is a sham..
 
@Brogrammer so, I'm not fully jQuaware, but does field actually have to be field or does that mean placeholder for an input name?
 
ok guys Solved.
sails.models.user.query("COMMIT", function (err) {});

The "COMMIT" has to be the very last thing which should be called in the transaction chain
 
9:55 PM
i think its a placeholder
 
@Suisse welcome to transactions
 
yeah, field is supposed to be the field name
 
Now I really really really have to learn about promises
 
@Brogrammer so the code you posted, is has field, replace it with the input name
Also tell your teacher to come chat with us
I have words for him
ITS A BRODOWN
 
which line
in which file
 
9:56 PM
...
 
you said the code you posted is has field
replace it with the input name
 
Every input needs it's own validation rule, so for every HTML element that has that range constriction, it needs to be tethered to the validation rule
 
user1596138
@SterlingArcher html5
 
i thought my code does that
that it accounts for all inputs
 
9:57 PM
@Jhoverit already suggested it but professor JS doesn't like good practices apparently
 
i created a form
with the id myform
 
@SterlingArcher I got a spray tan because I wanted to play a game!
 
i don't like good practices either
only the best
 
@Brogrammer no, I don't think so jqueryvalidation.org/range-method see how the field is the input name attribute?
 
so the jquery would look at all the elements inputs
 
9:58 PM
@jAndy you looked silly lol shredded, but silly
 
user1596138
@SterlingArcher oh.... Uh. You told him type=range?
 
part of the show, you don't stand a chance in that heavy light on stage without being really dark'ish @SterlingArcher
 
@Jhoverit si, his professor wants it done in validator
 
user1596138
That gets you a slider lol
 
@Brogrammer codepen.io/prasanthmj/pen/lvKoG check this out
 
user1596138
9:59 PM
He wanted a input you can type in no?
 
user1596138
It's type=number with a min/max
 
input pattern=""
use regexp :D
 
@jAndy is it permanent lol or like a legit spray tan?
 
@Jhoverit nahh, too straight forward.
 

« first day (2592 days earlier)      last day (2362 days later) »