« first day (2175 days earlier)      last day (2776 days later) » 

3:00 PM
or google "+="
!!google +=
 
haha yeah that's why I just came here to ask real quick searching was becoming a problem.
Thanks for the help!
 
 
@Luggage, I think I found a basic solution without using ref, what do you think of it?
Basically, just define a parent function called onMove, call it on componentDidMount and the onDrag callback to constantly maintain the client rect in the parent
 
that popped up in my email
 
want me to share my spam, too? :)
 
3:08 PM
sure
lol the relevance I guess was from our linux discussion yesterday
sorry got sidetracked lol
but yeah that's part of the problem with the community imo
always in flux
 
lol, "it's not dying because microsoft just started using it"
^ that's why it's dying
 
Ubuntu: Re-branding Debian since 1998
i am annoyed that 'ubuntu on windows' is 14.04, though
 
Hey guys I just imported a json into mongoDB
{ "_id" : ObjectId("57ecd3ee7c4cf5ab7b8c59b3"), "x" : NumberLong("1462137390603"), "y" : 75 }
{ "_id" : ObjectId("57ecd3ee7c4cf5ab7b8c59b4"), "x" : NumberLong("1462138388603"), "y" : 76 }
{ "_id" : ObjectId("57ecd3ee7c4cf5ab7b8c59b5"), "x" : NumberLong("1462139389603"), "y" : 77 }
{ "_id" : ObjectId("57ecd3ee7c4cf5ab7b8c59b6"), "x" : NumberLong("1462140390603"), "y" : 77 }
{ "_id" : ObjectId("57ecd3ee7c4cf5ab7b8c59b7"), "over_score" : 72.4375 }
I am confused how to make mongoose schema for this one
 
I'm not sure you could even make a useful mongoose schema for that.
 
i see three optional properties.
 
3:15 PM
1 message moved to Trash can
@GandalftheWhite Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
okay bot
var scores_Schema = new Schema
({
	x : {type: Long},
    y : {type: 'Number'},
    over_score : {type: 'Number'}
});
will this work guys?
 
should
all properties are optional by default
 
and for that numberlong thing, I installed mongoose-long
as suggested on the Internet
 
numberwang
 
install postgres. :)
j/k, carry on.
 
3:17 PM
:)
 
i just don't see how that structure could be useful, unless you have a separate collection for each set of data.. just seems weird.
 
It is an assignment Kevin
it's not I am going to use it
:)
like*
 
I definitely don't want to do your homework.
 
how does youtube autochange resolution on slow network?
 
I'd do your homework
for money
 
3:19 PM
video resolution*
 
they just send "less" data in the stream and zoom in from the client
or do you mean, how does it know it has to change resolution?
 
that question too* lol
i wonder if they go based on buffering ...
like if it's buffering for more than a few seconds, drop the resolution
 
it sees whether the client can keep up with the amount of data the server is sending
 
More like, i fit can't buffer enough, it knows it's not fast enough
ohh, you mean pause to buffer.
 
not really, if you notice, sometimes it just drops the resolution without buffering
 
3:22 PM
yea, that's a sure sign that it's not fast enough
 
and that
 
well, it buffers all the time, it shuldn't have to stop, though
 
it's pretty easy to test the bandwidth of a client from the server
 
Magnets.
 
3:25 PM
and lasers
 
@towc don't forget the cats.
 
they come whether you want it or not
 
The cluster near cameras and internet connections.
 
and lasers
 
Your productivity is their natural prey.
 
3:33 PM
and lasers
I feel like I can just answer with that to anything you say :P
 
hey guys, have any of you used long before with mongoose ?
I did this
var scores_Schema = new Schema
({
	x : {type: Long},
    y : {type: 'Number'},
    over_score : {type: 'Number'}
});
This throws and error
what shall I do?
 
is Long defined?
 
telling us the error might be a start if you expect help, but otherwise, no idea. I don't Mongo.
or was that a secret. ohhh.. I love playing guess the error message
Stack Overflow!
 
Can you have a look at that git link
I don't get it
 
@Luggage that is totally a thing that needs to happen
 
3:37 PM
what the user is trying to show
I have searched already folks
the only solution was before using the number long
the suggestion was to parse it before entering it into db
I had to change it therefore
 
@GandalftheWhite try 'Long' instead of Long?
 
"This throws and error" is useless to us if you don't give us the error...
 
You have to guess.
 
the link shows: var partSchema = new Schema({ long: SchemaTypes.Long });
 
$1 to the winner.
 
3:39 PM
which differs from yours
 
oh woops
 
damn, I should have guessed "TypeError".
 
I say ReferenceError
and lasers
 
throw new NotEnoughLasersException();
 
!!learn 0 <>false
 
3:41 PM
@towc That didn't make much sense. Maybe you meant: 3, i, d, y, !, ^, π, ?
@MadsHjorth 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.
@towc Command 0 learned
1 message moved to Trash can
@MadsHjorth 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
 
!!learn 1 <>true
 
@towc Command 1 learned
 
!!1
 
true
 
@MadsHjorth you have some invalid syntax to deal with first. Like a missing ) after your getElementById
 
3:44 PM
@Luggage thanks, did you find other mistakes?
 
not that I could tell with that snippet.
 
Dubs get to say what I put on my slide in 30 minutes in front of ~50 people
 
but I have NO idea about the php part, or how hideDiv() is being called..
@BenjaminGruenbaum topic?
 
@BenjaminGruenbaum cats and lasers
php jokes
 
> "Everyone place your wallet in the bag I am about to pass around. Anyone talking or seen on a cell phone will be shot."
 
3:46 PM
Yo, happy birthday @BenFortune nice having you around!
 
xkcd slides that change too rapidly for the jokes to be finished to be read. Who knows them will laugh anyway. Pick those out and give them a cookie
 
@Loktar happy birthday dude! nice vid
 
hey
 
@BenjaminGruenbaum "test is doubt", especially nice when talking about software quality
 
@BenjaminGruenbaum some sort of code snippet to make this look ultra-simple and a return to straightforward imperative code, like:
// why do this
this.setState({ selectedItems: this.state.selectedItems.concat([ newItem ]) });
// when you can do this?
this.selectedItems.push(newItem);
meh.
 
Done guys
sorted it out
 
@FlorianMargaine thanks, the Friday song cracked me up
since I make a point to play it around the kids too
they will grow up and be like "Now that I'm an adult I can safely say my dad was fucking weird"
> May his soul rest in piece
 
My logic here is that for every input in a row with the class "it-datepicker" assign it the corresponding date value from the model list. But when testing it assigns the first value only in the list to every input of type "it-datepicker" in that table. Instead of the corresponding values matching their index in the list.
any idea what's wrong with my logic in this case?
 
I hear about more meetups in Israel than exist near me. :(
 
@Loktar or they will continue the long held traditions
your grandkids will celebrate the great friday
 
4:10 PM
lol
black friday, the great friday
 
Holly just shakes her head
> not that shit again
 
Anyone here use browser-sync?
Can you tell me if I am doing something obviously wrong:
 
@jake we use browser-sync, but not through a proxy :(
 
I love it, but the rails guys I work with recently made the dev server https only, breaking all my npm/gulp tooling 😨
 
looks like you have fun coworkers
 
4:24 PM
@Loktar Eventually, Thanksgiving will become known as "the day before Black Friday". Christmas will be replaced with Rebeccamas, on June 21. Friday the 13th will be considered good luck, as Her Holiness was 13 when her career kicked off.
 
LMAO at Friday the 13th
 
your children will change their names from brown to darkbrown to be closer to rebecca
 
@jake holy crap since when do we have emoji support in the browser?
@rlemon Africans will be given demigod status around the world
 
he's only brainwashing his own kids. not the entire world
:P
 
It will spread
 
4:30 PM
@KendallFrey ctrl + cmd + space on mac
 
A lot of people hated Jesus too
 
There is also emoji support for the chrome JS console.
 
@jake How is a key combination emoji support?
 
@FlorianMargaine I'm just a JS guy in a Rails world.
👍
 
Aren't emojis just unicode?
 
4:33 PM
@SterlingArcher yeah, but a normal font can't display colour
 
I'd love to see what it looks like to those who run this room in a terminal
 
@BenjaminGruenbaum Thanks man
 
@jake who runs this room in a terminal?
@BenFortune he's giving a talk at this moment.
 
@Luggage Awal iirc
 
with what?
 
4:35 PM
I saw somebody post a guide for it before, like irc.
 
@KendallFrey it's 2016 color doesn't matter anymore
 
💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩
woohoo
 
Think he just connects to the ws endpoint and outputs it.
 
But are they web-safe colors?
 
4:36 PM
Ignore me, it's web-based
 
@Luggage shitty terminal
 
ayyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
 
@Luggage I wish I could upload images (5 more pts). Does it support .GIFs?
 
does what? this chat? yes.
 
👃🏿 inb4 dicks 👃🏿
 
4:38 PM
in Python, 51 secs ago, by Morgan Thrapp
I actually like the JS syntax for lambda better. hides.
:D
 
@SterlingArcher The mechanics of it are so nice compared to a IIFE
 
@SterlingArcher i starred it. you should too
 
👉🏻👌🏻 lol i love unicode
 
your love for boxes is not understood by many
 
use a better browser :P
 
4:41 PM
it's chrome :P
the issue is not downloading the font
which I can seriously do without
I guess I just don't care
 
what OS are you on?
 
someone needs to put one more star on ben's talk
7-13-21
@Luggage debian
I know it's as simple as a single apt-get
 
ohh right, linux. yea.. you'll get a broken form of emoticons in 2020.
 
hey, windows is the non-new-feature compliant here
cough IE cough
 
IE? Edge is the browser.
 
4:45 PM
I'm kind of glad I can choose not to install those fonts
 
also, i think edge is ahead of the others.
 
HEH
no
 
Edge is one of the best supported browsers out there
If not the best
 
towc is anti MS. he's too cool.
 
4:47 PM
how is being behind being ahead?
 
I'm still a Chrome fan, myself, but credit where it's due.
 
sure, it does look like it has better ES6 support than FF, but chrome is definitely unbeaten
and lasers
 
I think I recall edge being ahead of chrome for a while and they caught up. Not 100% certain on that.
 
would doubt it
 
I know you would. Your bias is not well hidden.
 
4:49 PM
do you remember the skewed benchmarks that MS released about edge?
 
Holy shit safari 10 is at 100%?
 
it showed edge being 125% faster than chrome in mostly everything, including canvas
which turned out to be just bullshit
they cherry picked some stuff and didn't say it
 
i'm on safari 9.. maybe 10 isn't out yet, or it's Sierra only?
I'm not familiar with that benchmark, but I know Chakra is pretty fast
 
simply that mentality is good enough to draw me away from edge, even if you can consider it only slightly worse than chrome
 
and now open source.
 
4:50 PM
> Apple released macOS Sierra today with Safari 10 preinstalled, but Mac users still running the latest versions of OS X El Capitan or OS X Yosemite can now download the all-new version of the web browser too from the Mac App Store. - Tuesday September 20, 2016
 
that answers that.
 
oh yeah, MS is having this "open source friendly" campaign
which is sort of working, but in a very corporate/enterprise way
 
They are winning over hearts and minds. .NET being open source is fantastic and another nail in the coffin of Java.
Their old "shared source" was very 'corporate'. Now they are using MIT licenses and accepting pull requests on github
 
good for them, but it's just another business tactic to try to catch up with google I think
simply catch up, not get past it
 
Hi
 
4:52 PM
why
also, I recently discovered my life has no meaning and I'm not sure I support google much longer :/
 
well their 'tactic' is releasing actual good code into the open.. so.. who cares if it's a scheme. The results are real.
 
oh no, that was just to say that google is still better and had worked like that for a long time, MS is just mimicking
 
I want help with datepicker in Angular. Can anyone help?
 
which is good on one side, but seems like a joke on the other
 
you say 'mimick', I say 'change of attitude'.
either way, i'm ok with it
 
4:54 PM
sure :P
(btw, think it's "mimic" for the noun)
 
yea..
 
Im a beginner. I implemented a bootstrap date picker in one of my demo applications. I want to disable all past dates. I dont have a clue how to do that? Any idea?
 
It's like a country changing from a monarchy to a democracy. It probably wasn't due to the goodness of the old monarch, but who cares. Progress is progress.
 
more like going from a monarchy to communism
not in the explicit sense of communism
 
I guess the analogy works with that, too..
only communism isn't generally considered good the way democracy and open source are.
 
4:58 PM
but getting from something slightly bad, to something made just to look good to the people, and will likely end up in something quite bad
 
the source is out and with a permissive license. It's not just an 'open source' sticker on a box that's a lie.
 
"you, as an individual in soviet russia, can do things, and you should improve this place, you matter exactly as much as the others. Also, you'll be starving in 2 months, and we don't actually listen to you in the grand scheme, for however much you talk"
 
They can't take the license away, only re-license a newer version, and that will be hard now that they have accepted so many contributions
I think you are being overly cynical.
They have armed the populous. Even if the intentions were bad, they have given up power.
(to continue with this type of analogy) :)
 
so have the soviets
 
Is your father RMS? :)
 
5:04 PM
"you're no longer under absolute command from a family! Also, we'll ensure you keep yourself at the minimal level of rights by spying on you"
!!google RMS
 
Richard Matthew Stallman (born March 16, 1953), often known by his initials, rms, is an American software freedom activist and programmer. He campaigns for software to be distributed in a manner such that its users receive the freedoms to use, study, distribute and modify that software. Software that ensures these freedoms is termed free software. Stallman launched the GNU Project, founded the Free Software Foundation, developed the GNU Compiler Collection and GNU Emacs, and wrote the GNU General Public License. Stallman launched the GNU Project in September 1983 to create a Unix-like computer...
 
that's so funny XD
oh, emacs
no, he's not my father
maybe my weird uncle
 
@Loktar somebody had to say it
 
That's @towc in 30 years.
start growing that beard now.
 
5:10 PM
@Loktar 0.o
yup, that's the crazy uncle
@Luggage and lasers
 
That goes without saying.
 
fair enough
the actual talk seemed interesting though
patenting the concept of a loop
reminds me of patenting relatively base mathematical concepts
like, perlin patented perlin and simplex noise, right?
 
I tried to patent the number 3.
 
or the guy who tried to patent the proof for squaring the circle
not even sure where do you draw the line
 
top, bottom, left and right.
 
5:14 PM
can't argue against that
 
@towc In soviet russia, things do individuals.
 
I mean, the concept of a light bulb must have been patented in the early years
 
yea. really any new process or machine can be patented.
 
Hi everyone. I'm writing some tests with Mocha/Chai/Sinon and need to test a situation in which window is undefined ( this is a piece of code that can execute both client and nodejs server side, where there is no window). How can I set the window to undefined in a test block?
 
heh, thinking of an early civilization scenario in which a tribe patented the wheel and humanity dies
 
5:16 PM
there were no patent laywers then
 
@Prefix Why do you need access to window?
 
that you know of
 
I was there.
 
I'm pretty sure there weren't.
 
they died after humanity decided they didn't need them after all
 
5:16 PM
@littlepootis I don't need access to window.. I need to bail out if window is not present.
 
they are now re-emerging
we've forgotten the past
 
1 message moved to Trash can
@Prefix Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
@Prefix indent with 4 spaces (CTRL-K) to format code.
 
  if (typeof window === 'undefined') {
    return false;
  }
( apologies )
 
why typeof?
and not just window?
and then === undefined
or === void(0)
 
5:18 PM
because that's a TypeError in strict mode.
 
if you're picky
oh
if( window ){}
 
Im trying to set window = undefined in a test case. but I'm not sure how to.
 
sorry, ReferenceError
 
to set it?
 
to read it if it's undeclared
 
5:19 PM
window = void(0)?
 
~ $ node
> window
ReferenceError: window is not defined
    at repl:1:1
    at sigintHandlersWrap (vm.js:22:35)
therefor typeof.
 
^ exactly
 
@towc hey, l33t h@xx0r
 
so.. is there a way for me to make window undefined in a test suite running on a client where window exists?
 
@littlepootis that's not from security :P It just actually makes more sense
how about if( this.window ){}
 
5:20 PM
you can make a local variable named window to override..
 
or put at the top of the script top = this and then use if( top.window ){}
^.^
 
Why does window need to be undefined?
Why does god need a starship?
 
I just don't want the code after that check to execute if it's being run server side.
it's an early terminator
 
@Luggage if I was god I'd need a starship
 
5:24 PM
@Luggage because laziness
 
@Prefix unless the code has a strict structure, you can't
 
bullshit.
 
strict structure?
 
a server can emulate anything from a client... the server extends a client
 
@Prefix server-side? You mean.. on Node?
 
5:25 PM
but the client can't emulate anything from a server
 
yes, it's a node server.
 
your if () return; is fine.. there might be a better way to split tests into client-only, though.
 
so if you're checking whether the code is running on a server, you can never be sure
 
not familiar with this 'testing' you speak of.
 
I know.. that's a conversation for another day though :)
 
5:26 PM
unless you know that the code won't be meddled with at all and who runs it isn't using emulators
the server can quite easily have a window variable and make it look like it's a client
unless you know there won't be a window variable if it's ran from a server
 
I'm confident that is not a situation I need to be concerned with.
 
you can always invent a way to break anything..
yea.
 
hence the strict structure
 
"what if someone changes all your code to something else? how will you stop that?"
 
lock write permissions on the files :p
 
5:28 PM
@Luggage I was referring to injecting some script beforehand while trying to still make the middle script run, or afterwards
you assume the file won't be changed, but something outside of it can
 
if someone is playing silly buggers with global variables.. fire them
problem solved.
@towc You're fired.
 
D:
I have a dog.
and lasers
 
The dog is fired, too.
 
D: who'll bring food home then?
FIRE THE LASERS
I dare you
 
@FlorianMargaine time to look for a new job: allthingsdistributed.com/2016/09/…
 
5:36 PM
Hi
 
5:50 PM
I added an A record to my DNS config: foo.mydomain.com -> 1.2.3.4
I get the proper IP if I do nslookup, but ping, ssh etc all say "Could not resolve hostname"
it finally started working.. i thought i flushed the dns cache, but maybe not
argh.. google cloud adds: luggage ALL=NOPASSWD: ALL to the end of /etc/sudoers overwriting what I have in /etc/sudoers.d/foo
 
6:05 PM
try that @Luggage
it shows dns propagation
 
it's fine. I was just being impatient
 
ah ok
 
I've moved on to sudo issues.
 
ah right, that was longer ago than I realized
just logged back in
 
docker + me === :(
 
6:46 PM
1 message moved to Trash can
@The_Outsider 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
 
Sorry, was by mistake
 

« first day (2175 days earlier)      last day (2776 days later) »