« first day (2754 days earlier)      last day (2190 days later) » 

5:00 PM
@MadaraUchiha btw I like you as a moderator.
You should stay moderator
 
"Bobby, give us a sentence starting with I"
"K. I is..."
"No Bobby, always say 'I am'"
"K. I *am* the 10th letter of the alphabet."
@Vap0r Appreciate it
 
I want you to use your mod abilities so that every question has a cute cat picture tied to it
That will make me happy and address the issue of SO being welcoming
 
@DenysSéguret no pressure
 
I'm allergic to cats
and pictures of them make my tummy rumble
 
and it will keep Vap0r out, that's a win win
 
5:03 PM
@Mosho smile with the biggest smile you can and give him the look you'd give a special child whenever he talks about Kaballah - talk very slowly. In my experience it's the best way to get people to stop
 
@Vap0r We don't want to be welcome to you anyway
 
HAMMERTIME!
 
I mean he's not wrong
 
2.9
 
@BenjaminGruenbaum well, he's family
 
5:03 PM
 
I can just tell him to stop
 
@Mosho like it? :D
 
@SomeGuy I'm feeling less and less welcome by the minute
 
2.9 + 123
 
@Mosho that would not be welcoming to your uncle though :D
 
5:03 PM
@SterlingArcher noice
though I kinda stopped listening to them
 
I'm gonna wear it to the parkway drive concert on saturday
 
metalhead
 
@BenjaminGruenbaum apart from letting him stay at my mansion
 
Stranded, Flying Whales, and The Heaviest Matter In The Universe might be my most played spotify songs
 
kabbalah is a lot harder to argue with than religious people
 
5:04 PM
Oracle runied javascript. IMB ruined loopback.
 
which is already pretty impossible to argue with
 
@Mosho the mosho-mansion
 
The Beatles are morons, there aren't 8 days in a week
what goobers
 
@hilli_micha that's why your weak is week because it has one less day
 
!!unwelcoming_entitled_brat
 
5:06 PM
Jan 23 '14 at 10:40, by Miszy
Seriously, we would all be more than happy to help you if you weren't such pain in the ass kid.
 
@hilli_micha how can you know?
 
@BenjaminGruenbaum sweet unadulterated irony.
 
@SterlingArcher oh, I taught the bot this as a kind reminder, and also since his username is now his full name.
 
@BenjaminGruenbaum my calculator told me
 
This way when people look for Michał Miszczyszyn from Poland in chat, they can see his willingfully entered public chat history
@hilli_micha that's Google's calculator, not yours
 
5:07 PM
@BenjaminGruenbaum that would be way better. Every week is 8 days, every month is 4 weeks. 11 months a year, and then 14 make-up days
 
I think the French had 10 days a week at one point after the revolution
 
@BenjaminGruenbaum play stupid games, win stupid prizes 😀
 
I had a feeling that was directed to me (miszy's message)
 
Hard to play the victim card with hypocritical evidence sported right in your face
 
@BenjaminGruenbaum no thanks Japan would try to argue for only 2 weekend days out of those 10
@SterlingArcher maybe for you
 
5:08 PM
@towc nope, I dug like 20 messages - but I just wanted to keep one as a reminder :)
 
@towc it's from 2014
you weren't even born yet
 
So in 2 years when I try to remember that incident that's all I remember and have left :D
 
@Mosho fair point
 
@BenjaminGruenbaum The North Korean Juche calendar has 14 days in a week,
 
@hilli_micha it does :O? For real? I can totally believe that
 
5:09 PM
@hilli_micha they just changed their timekeeping by 30 minutes to be in line with South Korea
I reddit somewhere
 
hi all. i have a title of a button or a link or whatever. let's say the title is href="Lorem Ipsum Dorem"

is there any way in javascript to replace only the last word in the string for the title?

i ask because i have four items with title tags, and i need to change only certain part of the title but leave other elements of the title tag in place.

my solution was:
$modalActionMenu.find('.media-rename').attr('title','Rename '+retval.data);
$modalActionMenu.find('.media-remove').attr('title','Delete '+retval.data);
 
The Democratic People's Republic of Korea calendar, DPRK calendar, or Juche calendar (Korean pronunciation: [tɕutɕʰe]), named after the Juche ideology, is the system of year-numbering used in the Democratic People's Republic of Korea. == History == The calendar borrows elements from two historical calendars used in Korea, the traditional system of Korean era names and the Gregorian calendar in which years are tied to the birth of Jesus. In contrast to these two, the Juche calendar begins with the birth of the leader, Kim Il-sung. The decree on the Juche calendar was adopted on 8 July 1997, on the...
sweet
 
@HollerTrain well, in general you have two modus operandi: app and website, in an app there is typically some render method that builds the DOM and something that does smart diffing that reacts to declarative changes. Frameworks like Angular, React and Vue do this (as well as a few others). On the other hand websites work the other way around - the server builds the DOM and the client just manipulates it. When doing the latter (which it appears you are) you have to touch the DOM.
 
so @BenjaminGruenbaum strictly from a frontend standpoint, i can't change just one portion of text in a title tag with jquery?
 
let element = Array.from(response.result.Event).find(x => moment(x.startDateTime).isBetween(beginDateTime , endDateTime, null, '[)'));
 
5:12 PM
I still recommend splitting parts out to a "render" method. I did a tutorial series in the room some years ago which I won't be able to find. Some general comments would be to cache the references to the elements and set them all in a function - there is no magic way.
 
Why is the from needed.
Why not response.result.Event.find(x => moment(x.startDateTime).isBetween(beginDateTime , endDateTime, null, '[)'));
 
@ggb667 response.result.Event is probably a NodeList which is iterable but not an array so it wouldn't have a .find method - that was just a guess on my end
 
@ggb667 depends, is response.result.Event an array?
 
ok thanks. i did not think so, but wanted validation
 
I think its an array.
 
5:13 PM
@HollerTrain you can, you can grab its old value with attr and replace that, but I recommend always replacing text and not elements to avoid XSS and other fun stuff.
 
@KendallFrey Does JavaScript support this calendar or do I need a dependency?
 
So defensive transformation.
 
If it's not, Array.from converts it to an array. It's the same as [...response.result.Event].find()
@ggb667 can you confirm? If it's an array there's no need to coerce it
 
@BenjaminGruenbaum the value from attr is "Lorem Ipsum Dorem" and i want to replace only "Dorem"
 
@HollerTrain Another thing you can try is outputting the text on the backend and having the client set the value and build the template, but what you're doing is absolutely fine - it doesn't scale but it doesn't need to since it only runs on one page.
 
5:15 PM
@DavidKamer If you want a page to run in DPRK you have to use KimScript. It's what all north korean browsers run
 
@HollerTrain I wouldn't do .text(element.text().replace('Dorem', _whatever_) I'd instead keep the text ahead of time in a template and build it with Dorem or _whatever_.
 
Well there is this code... response.result.Event[0].eventId
Surely Event is an array right?
 
@KendallFrey I bet it's like CoffeeScript
 
it can be other things that implement Iterable as well
 
@ggb667 not only arrays use bracket index notation
 
5:16 PM
@ggb667 it's "array like", it might be an array or it might be a NodeList, you can check using Array.isArray on it or by inspecting it in the element.
 
Grrrr.
 
The console will tell you what Iterable type it is
 
@Ikari bracket notation would mean the old iteration protocol (indexer and length) and not iterable (Symbol.iterator with next/throw/return)
 
I can't run this crap in debug.
 
@KendallFrey It's like jquery with vba syntax
 
5:16 PM
I can't get to there with the real code.
 
@ggb667 that's probably the problem you should fix first.
 
I would need to fire the vendors.
And my bosses.
 
@BenjaminGruenbaum yeah.
 
I made an MVCE of that problem I'm having
If you click and drag the box, it moves
if you do it again, it restarts from 0,0
and I cannot figure out why
 
@ggb667 that sounds like something that would be really bad for developer happiness. I would genuinely try to convince my boss and vendors that it's worth taking the time to figure this out.
 
5:17 PM
Hi, I just wondered if anyone was able to clear up a few things for me regarding my question about a MEAN stack live-score app that I want to create.
 
@Olehi 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.
 
@ggb667 Also, you can debug JavaScript in production - unfortunately it's pretty common and the tooling is pretty good. I recommend Google's own series on the dev tools.
 
I have a question listed here: stackoverflow.com/questions/50119707/…
 
handleMouseUp(e) {
    this.state = "done";
    this.lastMousePosition = { x: 0, y: 0 };
}
 
@Olehi have you already started using MEAN?
 
5:19 PM
Node.js and loopback. There are 3 systems, one of which has no inventory in test to test with. We have to go through a gigaumarole with the vendor to get test data put in and then we have to make that match the second system and THEN we can test. I could NOCK it all.
 
Mean: It's not a bad stack, but it's not what I'd use for a new project - it's a personal preference.
 
@Cereal I just had to solve this problem, let me switch branches to look at code. I know you need to
 
@BenjaminGruenbaum It's the only thing I'm familiar with for now
 
@Cereal that ^ maybe?
 
@ggb667 I'm not telling you how to solve that, but it's all fixable and I recommend you optimize for debuggability because writing code in a new language (or new library/framework) without being able to inspect what's happening is bad developer expeirence IMO
@Olehi Reading your question - Don't bother with socket.io, it'll be learning too many things at once IMO - do it with REST HTTP calls
 
5:20 PM
Anyone here ever dabbled with quantum computing?
 
Sadly, its not my code. I was just asked to help fix a production issue.
 
@Ikari No, that was me brainstorming how to fix it
 
I'd set it all on fire and start over.
 
@BenjaminGruenbaum Would that be sufficient for multiple concurrent users?
 
@Olehi Your question is way too broad @Olehi and contains several topics. I think you're making your life very hard by trying to accomplish a lot in one go. Node.js servers ( the N in MEAN) was built to scale to 10 thousand concurrent users on a single server. You'll be fine with simple HTTP calls rather than websockets.
 
5:22 PM
They basterdized loopback and are using it to access XML datasources, and all the variable names are getting magically transformed from ThisIsMyVariableID to thisIsMyVariableId.
 
I've made CRUD MEAN stack applications before, just never anything with information coming from an external API in real-time
 
@ggb667 let me guess, you don't have 100% test coverage :D?
 
HA HA HA
 
@Olehi I'd start forwarding it directly to the client. That is, not put it in mongo - but just process it and forward it directly - or even make the calls from Angular to begin with.
 
I have wait let me check.
10.69%
 
5:24 PM
That's better than 0, that's something :D
 
@Cereal when you handleMouseUp you need to store the last xy in local space on top of everything else
@Ikari I guess I should have read the chat
 
:42352393 I see okay. I'm working with a few constraints as well: - Viewers should be able to see scores without needing to authenticate onto the system.
Data within the system is updated via RESTful requests to a third-party API at somedomain.com/api/v3.2.
API requests to somedomain.com must carry an authentication token.
The application carries data for 20 sports. Each user can see scores for up to six sports that are identified via an unencrypted cookie on their local device.
The application uses a Node JS server, MongoDB database and a full stack JavaScript implementation.
Also, what would be the significance of using mongodb in this case? Is there much need if the data will be sent to the client directly from the third party api?
 
That all sounds reasonable, just break these down into small parts and do them one after the other.
 
Unless I have misunderstood
 
@Olehi caching, but I would not use MongoDB for that, in fact I'd rarely use mongo in general - I'd likely use Redis and just for caching most likely.
@Olehi the only thing you perhaps misunderstand is the "seriousness" of the people who wrote MEAN, Lior just wrote something that worked for him - you don't have to use all of MEAN or any of MEAN - use whatever makes sense and works for you.
!!afk class
 
5:29 PM
That makes sense
Thanks
 
It's true, I wrote an app using the MEN stack (no angular) because it was preferable to me
I think my prefered stack now is postgres, react, node + express/hapijs
 
@SterlingArcher giggity
 
So, ideally. To get a live score for an soccer match for example, the user would have to select soccer, then the match. How would the information go from there? The chosen sport & match would be sent to the 'router', then a request will be made to the third party API? Then the result would be displayed on-screen? Am I correct in assuming that's how that should work?
 
Figured it out. It wasn't the last mouse position that was the problem, it was that I was setting the position tot he difference between the last and current cursor position instead of adding the difference
 
@SterlingArcher in short: "PR? Neh"
> after members have raised concerns regarding it
 
5:36 PM
huh?
 
@BenjaminGruenbaum is that how you're supposed to vote?
 
@towc BenjaminGruenbaum is afk: class
 
I know you have really good intentions and put a lot of effort into this. This surprised me, I might learn something
 
uhm... odd question
 
literally seemed like a bandwagon reason
 
5:37 PM
does anyone now a good tool or way to remove a screen lock pin from an Android phone?
 
@GNi33 for everything?
 
asking for a friend?
 
I know the pin, it's my phone, but I dropped it so the screen isn't doing much anymore
 
no idea.
 
you'd probably have to root it
 
5:38 PM
if you have it rooted
 
not rooted, no
 
you can use adb to flash it
 
the whole point is to protect your phone.. but maybe there is another way to enter the pin. ydo you have a USB keyboard and an OTG adapter?
or is the phone usb-c?
 
but even then, when you turin it on, it might ask for the pin before it's properly booted, so rooting might not make a difference
 
I could still use it by voice but I'll have to get past the screen lock for that
yeah, I'll probably have to get an OTG adapter
 
5:39 PM
actually, that reminds me, I have a bluetooth keyboard I sometime use on the phone. Maybe you can get one of those too
 
you probably need to unlock to pair a new bluetooth device
but not usb
 
yeah, and bluetooth is turned off by default
 
oh wait, you can't access the phone at all now?
or it's on, but if it powers off, it's game over for you?
 
i know usb keyboards work with android.. but who knows if the lockscreen is special in some way..
 
it's on yeah, I can still activate the screen, but the glass is done for
 
5:41 PM
how would you install a hypothetical app to do it anyway?
 
not an emergency, as I can access most of the really important features over the laptop as well
 
MikeTheLiar I don't get the joke
 
@towc I think I left USB debugging on, but I'm not sure
 
well, try that first
otherwise, no reason to look for it
 
you can't use adb to install an app unless you have the lock opened
I think
 
5:44 PM
there are some tools that promise to do that, but they look a little fishy
 
someone please explain the joke
 
o/
@William intersectional left is screwing science up
not sure what they have against bottom right, but eh
 
thxs
 
... I guess I'll have to be careful though, apparently Twitter mobs are close by, these days
 
A K
pixel, rem, or em? which one is current standard?
 
5:55 PM
instant popcron.gif
lol, popcron
y'know. like a cron job that pops. runs away.
 
@AK different uses for different units
(why am I answering this in the JS room)
 
@AK feel free to continue that discussion over in the html css and design chat room chat.stackoverflow.com/rooms/29074/html-css-webdesign
 
6:11 PM
@FélixGagnon-Grenier what did I walk in on lol
 
You a twitter mob? ;)
 
what's a twatter mob?
*twitter
isn't twitter mostly bots?
 
humans are just soggy bots
2
 
bio-mechanical roobmas
 
@KendallFrey Kurt Vonnegut liked to call the human brain something like wet soggy dog food
Has anyone ever done something like this? hackernoon.com/…
 
6:24 PM
have y'all read Yvette's meta post
 
yeah, we have
 
I can't read
 
Tim
Possibly, can you link it? I read one by her which was heavily downvoted, is there a new one?
 
thoughts? besides the fact that it was a little overemotional?
 
Tim
thanks :)
 
6:25 PM
np
 
i'd rather keep thoughts in the meta post itself personally
 
alright that's cool
 
Tim
I will say that the use of caps, italics and bold is rather extensive...
 
or at the least, not here, over on meta there's more tools and accountability
 
lol yeah @Tim
 
6:27 PM
@Zirak @FlorianMargaine queue.acm.org/detail.cfm?id=3212479
 
Does anyone know how one might go about trigging a websocket event with a hook in mongoose? Any tutorials might help. I doubt google will be able to process that idea into a result
 
mmmmh I don't have experience with Mongoose, sorry
 
like, when the hook gets called, emit to a socket?
where you define the hook, you'll need access to the socket you want to emit to
to me that sounds like it'd be no more complicated than emitting to a socket on any other event
 
That's where it is complicated and I might need middleware. I want an save hook to send an update through a websocket..
well, I might be over complicating it. I'll try it before I discuss more
 
disclaimer, i haven't built a socket server in years, and never have connected it to a mongoose hook, :p
but it does sound straightforward from the outside
 
6:31 PM
interesting thing: nginx reverse proxies handle websockets very, VERY poorly, unless you do a lot of configuration tuning
 
last thing: the trick is that I need the socket listener outside of my model on my routes and then have a hook inside of my model that communicates to my web socket. It's kind of an opposite pattern to how it is supposed to work..
 
you could have some kind of event that the hook triggers, and just have the sockets attach/detach handlers to it as needed
 
hi
 
@tdog2 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.
 
ohhi
 
user1596138
6:44 PM
@forresthopkinsa Doesn't that ping timpost too
 
user1596138
Nobody @ Tim lol
 
@Jhawins yes it does
 
user1596138
An unfortunate name lol
 
well, no, it just highlights in chat, and marks the * in the tab
doesn't result in an audible ping or an inbox notification
 
user2620028
who is tim post
 
6:46 PM
happens to me all the time with @kevin
 
user2620028
oh jesus christ
 
Tim POST more like Tim GET amirite hahaha dear god i'm so lonely
15
 
user1596138
Tim OPTIONS
 
Tim DELETE
 
user1596138
Tim HEAD lol
 
6:48 PM
LOL
 
we need an http HEADDESK verb
 
@KendallFrey 2.9
 
@Zirak up for some overwatch?
 
Maybe a bit later
 
@Zirak sum . map (0.75^) $ [1..]
 
6:56 PM
3.1
 
alright, ping me when you are down for some ^^
 
Tim PATCH
 
where's Tim PUT
come on guys, you're slacking
 
brb writing an HTTP COOK request RFC
2
 
I think we just need HTTP TIM request
 
7:01 PM
403.1 You are being watched
 
I think we need a new hypertext protocol called TIM with all the same verbs
 
HyperTim
!!myown hypertext protocol
 
@MikeTheLiar I'll make my own hypertext protocol with blackjack. And hookers. In fact, forget the hypertext protocol.
 
@KendallFrey *cooking up
@MikeTheLiar HTTTim
 
7:05 PM
@Zirak oh um yes duh
 
@William delet this
 
!!> delete this
 
@KendallFrey true
 
> Return value: true for all cases except when the property is an own non-configurable property, in which case, false is returned in non-strict mode.
 
7:08 PM
well
 
running JS in non-strict mode is so 2014
 
that's not very useful
 
get with the times
 
@ndugger The Failing NY Times?
 
7:09 PM
are the Times failing, or is NY failing
 
no ma'am
 
The (Failing NY) Times
 
!!mdn delete operator
 
look who it is
 
I guess that doesn't work anymore
 
7:10 PM
!!are you alive?
 
@Luggage Not a chance
 
mdn, google, define and a few others are broken
 
MDN was based on Google
 
I think the mdn command broke awhile back
 
Everything based on Google broke
 
7:11 PM
classic Google
 
IMDB, too
!!weather 02111
 
@MikeTheLiar Boston: 59.41F (15.23C, 288.38K), clear sky
 
lemon fixed weather
 
Oh hey it works again
 
It is important for lemons to know the environment they will be in
for proper growing
 
7:12 PM
!!weather 00831
 
@MikeTheLiar Carolina: 25.11C (298.26K), moderate rain, mist
 
!!weather moncton
 
@Cereal Moncton: 10C (283.15K), broken clouds
 
!!weather mordor
 
@forresthopkinsa Sorry, I couldn't get the data: city not found
 
7:12 PM
lol
 
!!weather mars
 
!!weather Orlando
 
@MikeTheLiar Mars: 11C (284.15K), clear sky
@hilli_micha Orlando: 82.39F (28C, 301.15K), broken clouds
 
> broken clouds
is this FF7?
 
7:13 PM
Cut my clouds into pieces
Precipitation, no raining
 
Dont give a fuck about the smog that I'm breathing?
 
Sure that works.
 
ambiguous sentence detected
 
If it's such a problem just breathe elsewhere
 
ohh, i see.
 
7:15 PM
I'd give it a 5/7
 
9/11 with rice
 
oh uh
 
@MikeTheLiar hey, that comment is potentially not being very welcoming
 
lol, I broke npm
oops
 
great, npm is down. David broke it.
 
Tim
7:21 PM
!!weather nottingham
 
@Tim Nottingham: 12.4C (285.55K), shower rain
 
I was screwing with websockets and got this on ws page {"code":"Internal","message":"caused by InvalidParameterType: Expected params.IfModifiedSince to be a Date object, ISO-8601 string, or a UNIX timestamp"}
is npm down for you guys?
 
looks like just that package.
 
s/OO/OC/
 
wat
 
7:25 PM
indeed
 
@DavidKamer opens fine for me
 
dang. I wanted to know how to kill a connection instead of produce infinite errors lol
 
death is infinite
 
@Luggage Did you confirm it isn't working for you?
 
I didn't try that package. npm is up, though.
 
7:31 PM
weird
Only happens on my PC and in all browsers. I broke something lol
 
My snapchat streak with this girl is up to 20 days now. We're basically living together now, right?
 
no.
 
damn
 
@ndugger you can now lick her elbow
 
@Zirak I'd ask for permission to lick your elbow, but...
 
7:42 PM
@KendallFrey It's 0o777 for you baby
 
did you just assume his age?
or..developmental status, rather?
 
Stop projecting
 
But I'm presenting a powerpoint
 
I don't project, I inject
inject the memes into my bloodstream
I need 30 more rep until I have 3333 points
!!stat
 
@ndugger You (https://stackoverflow.com/users/1408759/ndugger) have 3303 reputation, earned 0 rep today, asked 18 questions, gave 62 answers, for a q:a ratio of 9:31.
avg. rep/post: 41.28. Badges: 2g 18s 35b
 
7:45 PM
too many 3
 
</3
I pretty much only downvote, apparently
 
take that, tim poops
 
I primarily upvote and close, haha
 
I'm nailing it
 
7:53 PM
Damn, yours looks like the Holidays
 
your holidays must suck
 
yeah
 
It was xss lol
 
@ndugger not quite sure what you are saying here. do you really think that Tim dislikes downvotes?
 
user2620028
based on a brief glimpse into his twitter, i am guessing he generally dislikes himself and anything else he comes into contact with
 
7:56 PM
i usually cast a lot more votes, but lately i've been kinda avoiding SO main, sticking to meta
 
How is that working out for you?
 
good
no more revenge votes atleast
 
lol @Zirak ain't nobody got time for that
 
@FélixGagnon-Grenier yes, actually
because he said that they make him sad
 
7:58 PM
oh wait, that wasn't tim
that was the blog post author; forget that guy's name
 
Yeah, that guy
I don't like Tim either, though
 
And if memory serves, he talked about downvotes on duplicates
 
SO's leadership has some issues
 
lol, Tim is like, the awesomest chap
 
7:59 PM
He mentioned downvotes in multiple contexts, if memory serves
 
like... he's really calm, doesn't insult people, hears what less vocal people say
 

« first day (2754 days earlier)      last day (2190 days later) »