« first day (2245 days earlier)      last day (2927 days later) » 

@rlemon Ever ran into an issue where a debounce function will cause a page to become 'unresponsive' even when it's not actively being utilized?
I'm assuming that's the issue here anyways.
@MadaraUchiha done that too... not great. Well. Not my thing.
@Trasiva no
Hrm, I'm not even 100% sure that's the issue, because the debouncing shouldn't even be getting put into a listener.
@SterlingArcher meh
I didn't like the song so much tbh
21:08
@Trasiva profile it
@rlemon LOL which one?
the ogre/troll/orc at a laptop?
no, you're the "damn Sasquatch"
I don't know anybody who uses Yahoo, but Alexa says it's #6 most popular site.
ooh lol
I know a tonne of people who use Yahoo
21:09
@rlemon I'm doing that right now. Waiting until it goes 'unresponsive' again. Which it clearly wasn't.
Yahoo's still very popular. It's also used for fantasy football.
I thought it was generally accepted that Yahoo is on its death bed.
@KendallFrey @rlemon John Glenn died :(
@AmericanSlime not even close
I just learned that 10 seconds ago
well, he was 95
everyone was expecting it
21:11
And had heart surgery in 2014
Reptiles live a long time.
inb4 Queen Elizabeth dies before the end of the month
she's ancient
can't last forever
Not possible.
She's not dying anytime soon, she refuses to have her son be king, poor guy.
The Queen will be the last human being on earth.
But she's a lizard so
They say she eats babies which is the fountain of youth.
@rlemon good god
I'd expect nothing less from a reptilian queen.
@rlemon Someone's web dev needs to be dragged outside and beaten.
21:13
really... how do you even do that?
the page freaks out and jumps around then jitters a bunch
for like 3 minutes
ahaha open the console.
lol
i guess just have 25 different contractors work on it
@rlemon I'd rather not be eye-raped, thanks
maybe more :p
eventually people stop caring
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT

good job ad-block
It's like Wikipedia, instead of asking for donations every day of the year, just throw up ads and be done with it.
The say they'll lose their independence if they run ads, whatever that means.
21:17
Dear god, my poor dev console.
I have zero problems with wiipedia asking for donations. I just wish they'd stop showing the banner once you donated
i just wish their banner didn't cover 70% of my monitor
Maybe they're betting on the idea that you may have forgotten you've donated.
It seems ridiculous to ask someone to donate after they already donated.
81 scripts!
21:19
@AmericanSlime there is no check done
no login === no reasonable way to track them === don't bother
@rlemon they could ask a cookie
yea, I'm not saying there are no solutions. I'm just looking at it from their point of view and I assume that was the thought process
Hi guys. I have created chat script. Its realtime and it makes ajax requests to php file to receive current messages every 3 seconds. On the php file, there are mysql connect and select messages from the database. IS it a good approach, if there will be 1000 users at same time chatting, will my server crashed ?
probably
@user3304007 look into the magic of webRTC
21:26
3 second interval on polling seems a little bad
I'd look into WebSockets and NodeJS
at the very least look into long polling, i think that works with php
php has websocket libs now
I'm just trying to get another convert
how does that even work in php though?
no clue, but they do have them
sounds like makeup on a pig
21:28
heh, coldfusion even supports websockets
Dammit rlemon you almost had me reading those docs to find out how it works
i caught myself, because i don't even want to know
is this commonjs module style: require(['library'], function (library) { .. })?
@Jhawins
in browser, btw
i think that's AMD?
21:29
looks like requirejs
@KevinB yeah, it is requirejs
yeah, and requirejs is AMD
okay
asynchronous module declaration or something?
@rlemon I could see him doing this.
21:30
all the examples on requirejs' site use define(['library'], library => {})
so i wondering if there is a difference?
*Asynchronous Module Definition github.com/amdjs/amdjs-api/wiki/AMD
@rlemon that is awesome
@bitten i'm not sure what you've got if it's using require instead of define
> alright kids, buckle up, daddy's going off road!
@david me neither..
oh i think require is when you use it, define is to define your module
21:33
db.speed_brackets.update({"$and":[{'trip_id': 'xx'},{'coordinates':[17.0000,62.0000]}],{'$inc': {'zero_thirty': 5}}},upsert = true)
i say that with no.. research behind my statement
why the fuck is this not working
@GandalftheWhite check around line 67
you need to define unicorns
otherwise the ghosts don't know which mushroom to take
also your object seems to be malformed
21:34
I am really irritated with this
how come ?
db.speed_brackets.update({
  "$and": [{
    'trip_id': 'xx'
  }, {
    'coordinates': [17.0000, 62.0000]
  }],
  { // the fuck is this?
    '$inc': {
      'zero_thirty': 5
    }
  }
}, upsert = true)
Hello friends, please i have a Q, someone answer me..
@SchoolforDesign 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.
answer
the title's initials are BBC. This can only mean that North Korea is planning to exterminate all life on Mars
21:36
@rlemon I don't get it
{
  key: [ array ],
  {} // you can't do this
}
@bitten oh, maybe, it has been a VERY long time since I've used it
you've got some random object floating about in there
Ok, thank you.
I have facebook APP, Develop in my host website, i want to Add javascript which send 'Messages' to my friends, BUT without showing a message pop-up or dialog box.
@rlemon that is for the and operation
21:39
@GandalftheWhite no, that is a syntax error
okay
can you just rephrase it
o_o
YOUR CODE IS INVALID JS
clear?
I am trying it on shell
21:39
ffs
it is for mongo shell
go away
Okay
Just tell me why you wrote js
well, this is the.... "javascript" room
Why the fuck would you come in here with shell code and not specify that, or assume we'd care about it?
you posted a piace of something that, looks kinda like javascript, and asked why it didn't work :p
Okay my bad
it is mongo shell's code
though i don't see what rlemon sees as invalid js there..
Run it
there is literally a syntax error
and mongo shell is js
21:45
where :
const foo = {
  bar: [],
  {}
}
how is this not a syntax error?
and takes in two values and they are within braces
i mean, i run it, but my eyes aren't seeing it
you're defining an object and trying to assign another object literal as the key
you can't do that
@rlemon starting to look like jsx ;)
21:47
I see an object, that has a key that has an array, and the array has two items that are objects,
then ah i see it
:p
what is it
you can't do const obj = { { } };
yea, pretty up the code and it is obvious right away
!!> const foo = { bar: [], {} }
21:47
@bitten "SyntaxError: invalid property id"
12 mins ago, by rlemon
db.speed_brackets.update({
  "$and": [{
    'trip_id': 'xx'
  }, {
    'coordinates': [17.0000, 62.0000]
  }],
  { // the fuck is this?
    '$inc': {
      'zero_thirty': 5
    }
  }
}, upsert = true)
the latter object isn't part of the array nor does it attempt to be part of the host object
{foo: bar,{/* <--- missing key! */ bar: foo}}
well, or the other object doesn't want to be wrapped
or it should exist in the array
there is a lot of alternatives here
yeah, i don't thinke $inc should be wrapped
that object is a filter
that's my assumption, but I'm wiping my hands of it
21:49
$inc includes a sub collection
the first 30 seconds made me annoyed
db.speed_brackets.update({"$and":[{'trip_id': 'xx'},{'coordinates':[17.0000,62.0000]}],'$inc': {'zero_thirty': 1}},upsert = true)
this is what you guys are proposing
I already tried it before btw
!!afk gym
hmm.
where's the data you are updating?
21:51
the zero_thirty is a key
all i see is db.collection.update(<query>,<options>) you're missing <update> in the middle there
and I am increment it
incrementing it
db.items.update( { "item_id": "I001" }, { $inc: { "tax%": 2 } }, { multi: true } ); - See more at: w3resource.com/mongodb/mongodb-field-update-operator-$inc.php#sthash.LcD17qWl.dpuf
like ths code
jus changing the and part within it
yeah, that belongs in the update parameter.
21:54
nothing else
you added it to the query parameter
wow, this is amazing
I wrote a thing again: codepen.io/towc/post/code-life-2
"I wrote a rather >what belongs here< blog post about how"
@KevinB I changed it before you could say anything :P
21:58
lol
oh shit, it's full of other mistakes :/
yo, sup guys and ladies
What's the SO site for people who have problems with crap like flash or third party apps
db.speed_brackets.update({"$and": [{'trip_id': 'xx'}, {'coordinates': [17.0000, 62.0000]}]},{'$inc': {'zero_thirty': 5}}, upsert = true)
this worked
the syntax was apparently wrong
mongo?
the braces
22:00
I haven't seen any other mistakes
I wonder if that is what rlemon meant
thanks @KevinB
i wonder indeed
i guess we will never know
He could have said
shift that fucking curly braces man
and I would have done it
in a second
@GandalftheWhite i don't think either of us thought that's what was needed until after i went to the docs
just knew the object wasn't valid
It was so stupid of me tbh
I just realized after visiting the docs section
22:20
!!afk Fuck this cold shit.
Asking so I don't go down a ridiculous rabbit hole - you guys ever get a massive load of node errors that are all seemingly unrelated? I'm getting stuff like no viable conversion from returned value of type and no member named 'use' in namespace 'node::Buffer'. Like just weird stuff I haven't seen before
all from an npm install...
ah, so, not node errors then
or, possibly not anyway
well I mean it looks like v8 errors
I mean it's blowing up in my face i'm having a hard time parsing any of it
`In file included from ../src/bufferutil.cc:16:
../node_modules/nan/nan.h:473:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback`
like wtf is that
yeah that's an error compiling a module
gyp
node-gyp rebuild yea
where do i even start for figuring out the why?
22:26
depends... sometimes you can read the puke and find some hints, but often all you can do is try again
lol... gyp ERR! not ok thanks node-gyp that's helpful
npm rebuild and pray
 
1 hour later…
23:50
@david :sad:
By far the best feature of es2015: {x, y}

« first day (2245 days earlier)      last day (2927 days later) »