« first day (3083 days earlier)      last day (1859 days later) » 

12:11 AM
I wish I had parents...
cue batman backstory sequence
 
When defining a custom property for an object using Object.defineProperty, is it possible to invoke a different property's setter method?
 
@DemCodeLines that's a good question, have you tried it?
 
Yes and it didn't work, but I'm not sure why.
 
@DemCodeLines how did you call the setter?
with this?
 
    const A = {
    	_a: 123,
    	get a () {
      		return this._a;
      	},
      	set a (v) {
      		console.log('here');
    		this._a = 456;
      	}
    }
    Object.defineProperty(A, 'a', {
    	value: 666
    });
so you wanna log 'here'?
 
12:25 AM
It's slightly more complex than that. Here is what I have:
Object.defineProperty(HTMLIFrameElement.prototype, "custom", {
    set: function(val) {
        console.log("run");
        this.setAttribute("src", val);
    }
});
I have an iframe in the html: <iframe custom="placeToGo.html"></iframe>
I also have a MutationObserver that is supposed to detect when that iframe gets added to the HTML and execute the setter for the iframe.
So ideally, as soon as this iframe element gets added and detected by MutationObserver, it would invoke the setter for iframe, which in turn should set the src attribute on that iframe to whatever custom is and continue from there (e.g. render the page etc.)
However, I can see that it sets the src attribute of the element, but it doesn't continue the next steps (get the document, render and show it in the frame). So I end up with a blank frame.
 
user1596138
@DemCodeLines So in the end you have <iframe src={theCorrectSource}/> but it doesn't render the right page?
 
user1596138
Just trying to understand where he issue is
 
The issue is that everything happens other than the page actually appearing
 
user1596138
I'm just trying to help you
 
user1596138
Did I understand correctly that the iframe IS updated in the intended way, but the iframe doesn't load?
 
12:39 AM
Once all the code is executed and I look at the HTML, I see <iframe custom="placeToGo.html" src="placeToGo.html"></iframe>, but the content in that frame never loads
 
user1596138
hmm.
 
By updated, you mean it's src attribute right?
 
user1596138
Wait are you trying to reset every iframe instance at once or something?
 
user1596138
What is with modifying HTMLIFrameElement
 
@Jhawins the example I shared is oversimplified, but it’s similar to that in that I define a custom attribute on iframe element and setting the value for that custom attribute will result in another attribute also getting set
 
 
1 hour later…
2:20 AM
Why do some API's claim to be "by developers, for developers"? Its a fucking API who else is using it besides "developers". lol
 
@JBis greasy business people? (not my idea, but what I think that might imply)
it's not like business is the only reason why we're able to do what we love or anything lol
 
user1596138
2:51 AM
@JBis lmao
 
user1596138
> By AI, for AI
 
user1596138
Wait for it
 
Have you seen altered carbon?
 
user1596138
I have. I really liked that show
 
user1596138
My girl and I watched all of it on Amazon
 
2:52 AM
I imagine the future to be very similar to the scenes with the AI hotel guy
and his buddies
Why not netflix?
 
user1596138
I thought it was on Amazon? Maybe it was Netflix. Can't be both
 
Yeah netflix original I think
 
user1596138
Yea I see now. Good show tho
 
It's probably one of the more accurate futuristic sci-fi's out there
 
user1596138
I ate a whole medium pizza and 10 wings. Lemme tell you hwat I'm ready for some battle royale
 
2:54 AM
Have you seen Electric Dreams on Prime?
 
user1596138
Where is the Rust Battle Royale??
 
it existed b4 forknife
 
user1596138
BR existed before fortnite too lol
 
user1596138
Fortnite was supposed to be some weird zombie shooter
 
Honestly the battle royale in rust kind of sucks
 
user1596138
2:55 AM
I tried the new BF5 Battle Royale today.... Got my ass whooped. Tough game
 
Do you want to roll a Rust server with me lol?
 
user1596138
@DavidKamer Wait rust actually has BR?
 
I'm seriously going to start a rust server, not BR though. But yes, it has it and free for alls
 
user1596138
Like single life, last man standing?
 
yeah, all kinds of whacky stuff.
 
user1596138
2:56 AM
Sounds terrible lol.
 
user1596138
I thought of running one but honestly... The community is pretty small
 
I don't know how much of it is still there, but back when I was starting out there was a bunch
 
user1596138
Like there are 3-4 200 pop servers, then a bunch of <50
 
user1596138
1-2K player base
 
you have ones with primitive weapons and ones w/o and stuff like that
@Jhawins did you get that from somewhere or your own numbers?
it shot up to 80k one weekend recently iirc
 
user1596138
2:57 AM
When does S1 wipe? I have a base and workbench and furnace but honestly not thinking it's worth it to get back on at this point
 
no idea
 
user1596138
@DavidKamer Rust main menu browser.
 
hmm, yeah the player base goes up and down. I'd more be starting my own server to have my own place in the rust world lol. I don't care if it becomes the most popular server or anything ridiculous like that
 
user1596138
I thought about making some massive course on one or something
 
user1596138
Challenge server
 
2:59 AM
not about monetary gains or clout or whatever
that could be fun
look for the staging branch rust servers, they have the weird stuff
 
user1596138
Yea it's not hard I ran a local one last week
 
this is the one I'll follow for a DO instance or something like that: rustafied.com/how-to-host-a-rust-server-in-linux
 
user1596138
Nothing special. Just seeing what options you get
 
user1596138
It must be pretty resource intensive. Judging by 9/10 servers being garbage half the time
 
@DavidKamer I think Black Mirror is pretty realistic of both now and future. Not necessarily literally but in the meanings behind many episodes.
 
user1596138
3:03 AM
@JBis You've gotta be way more specific than that :P
 
user1596138
Black Mirror goes every which direction
 
@JBis it definitely points out some things in the nearer future
BUT SERIOUSLY: Who has watched electric dreams?
 
user1596138
Isn;t that supposed to be Black Mirror 0.5
 
@DavidKamer Yeah meant to watch that. But cant get through my current shows cause of distractions. Lol. Been watching a single Breaking Bad episode for week.
 
user1596138
Black Window, a nice ripoff ;P
 
3:06 AM
if you watch anything watch the episode "KAO" or "Kill All Others"
not sure what the title is
I've seen it like 3 times and I usually refrain from rewatching shows.
tbf I did rewatch a few black mirror episodes but usually after drinking lol
 
@Jhawins USS Callister is prob my favorite. I could see something similar near future. Debate of ethics of artificial life.
The National Anthem could happen today
 
I like the wii fit episode lmao
"if wii fit became society"
 
@DavidKamer 15 Mil merits?
 
user1596138
The National Anthem was disgusting and unnecessary, definitely wildly outside what might happen in the real world ever :P
 
@JBis yeah I think so
that was my first favorite
 
user1596138
3:11 AM
It was one of their far reaches for a "shock show" vibe
 
Either of you like Banderdash?
or whatever it was called, the new one that was interactive
 
@DavidKamer Yes, not under the title of Black Mirror.
@DavidKamer Great episode. 2nd fav maybe.
 
@JBis ... it's "Black Mirror: Banderdash" or something like that
Black Mirror: Bandersnatch
from google lol
 
@Jhawins I disagree. Yes disgusting (obv) but not unnecessary. I was interested and on the edge of my seat the entire time. And the ending just makes it 10x for fucked up.
 
I think they had to separate it out for software reasons
 
user1596138
3:13 AM
Meh. I have a different opinion. I wish I never saw it and don't see any resemblance to how the real world functions
 
@DavidKamer I mean I liked it but I dont think it should have been released as a Black Mirror thing. Completely separate IMO.
 
user1596138
But the ratings say most people were into it
 
my least favorite was Metalhead...
 
@Jhawins You can't see a politician being blackmailed/forced into doing something publicly humiliating?
 
user1596138
Into something like that? Nope. Not even remotely possible.
 
3:14 AM
I said, maybe not literally but same idea.
 
@JBis yeah that one was kind of lame. Like if 4chan went full terrorist lmao
 
PS some politician did fuck a pig apparently in real life
 
user1596138
@JBis Eh. I don't think it has ever happened in recorded history at any level has it? Now I'm curious
 
user1596138
Like through the same scenario of black mail etc
 
user1596138
Publicized humiliation, by choice
 
3:16 AM
Shut Up and Dance probably already happens
Nosedive is a near reality in China at this point
The Waldo Moment.... That was a good one....
 
Nosedive, great idea awful execution
 
@JBis why?
 
I feel like many of the episodes can be turned into mini series
 
user1596138
I liked The One Where Ross Got High
 
@DavidKamer Ending was stupid. It was like they didn't know how to end.
 
user1596138
3:18 AM
!!afk games
 
@JBis eh, maybe. What do you think should have happened?
 
idk I dont remember enough
 
She goes nuts, gets thrown in jail after holding a knife on someone, and a guy who is in jail with her dressed in a suit starts yelling the same obscenities at her and they smile as the insult each other (unlike what they can do when not in jail)
 
@DavidKamer scary as fuck. Again, basic idea very realistic.
@DavidKamer Yeah thats just stupid.
 
yeah, but I like how most episodes don't end with a giant change in society. My generation (and maybe the two before it) are constantly chasing delusions of grandeur and it's a nice reality check to have shows that don't perpetuate this farce.
 
3:21 AM
the lack of hope is what makes it great
 
I'm just waiting for outward to unlock on my PS4
first game I've preordered in ages
 
3:36 AM
Is { prop: !0 } somehow more efficient than { prop: true }?
Seems Google's Closure compiler prefers to use the first one
 
3:55 AM
I hope not, maybe saving characters?
probably if you send 2 extra chars over a million times it might be better to send something nonsensical like !0.
 
user1596138
4:23 AM
@DemCodeLines It's only to save characters. A company like google doesn't even send semi-colons if it can avoid it, bandwidth on large scales costs money
 
user1596138
I guess David said that heh
 
4:38 AM
@Jhawins I think we should send a petition to google saying that it kills the environment by adding CPU cycles to a bunch of user's computers and that it the bandwidth difference wouldn't do that... at minimum they'd have to prove me wrong and I'd be interested to see that math lol
^joke btw, please no one send a petition and then blame me
 
user1596138
Bro if I ran a server-side business I'd pass everything I could onto client CPU cycles...
 
user1596138
Good strat.
 
@Jhawins you sound like someone who believes in "blockchain technology" aka using everyone else's computer and taking all the profit.
 
user1596138
That's taking it pretty far but.... Yea
 
user1596138
#Capitalism
 
4:40 AM
I'm not against blockchain at all, and honestly I see no difference between having a server doing the computational work and my device doing it except that as the server's scale up the overhead massively scales up
 
user1596138
I miss FM39.426
 
user1596138

JamExchange FM39.426

Featuring DJ Caprica. Room player: gist.github.com/CS1000/4553...
 
if everyone's going to have their PC on anyway, it makes no sense to avoid using the CPU's on them.
@Jhawins just sharing music?
 
user1596138
Yep
 
Here's one of my new favorite bands/groups:
 
user1596138
4:42 AM
We used to have so much traffic we needed to send some niche stuff elsewhere ;P
 
user1596138
/headset on
 
user1596138
I'm listening to GDS Robbery lmao. My taste has been weird this month
 
user1596138
Did I tell you I have an infrasonic sound system setup in my house? haha
 
I grew up listening to the Clash/Bob Marley and other classics, but these girls are so good imo
@Jhawins I don't even know what this means lmao
 
user1596138
4:44 AM
Means I put out frequencies so low you can only feel them, not hear them
 
@Jhawins I thought it was a wacky brand name because I thought that was unlikely to be a real thing
 
user1596138
@DavidKamer That's not bad... Nice clean sound. My younger brother just got back from a sound engineering university in Ohio, he's super into stuff like this
 
@Jhawins yeah, they're fairly obscure for some reason.
here's one of my favorites. It's how I found them tbh. It was on a Rick and Morty episode and I was like "whoa, who's that" and was very pleasantly surprised by who I found.
 
user1596138
@DavidKamer Yea I've got a set of these crutchfield.com/S-GeGc4XbaZ7w/p_714R28PG/… and a SVS PB-2000 in a ~500sq/ft listening room lmao
 
user1596138
4 8" woofers, 2 tractrix horns and a PB-2000 xD
 
4:48 AM
lol "priorities"
 
user1596138
@DavidKamer WHoa wait... This is starting off with For The Damaged Coda??
 
you're probably the one review
 
user1596138
THis is Rick n Morty, Evil Morty's theme
 
wait, Do You Feel It?
 
user1596138
Hmm wait...
 
4:48 AM
I don't think that one is
Here's one:
 
user1596138
No but this song is Rick and Morty too
 
user1596138
This is when Rick gets captured or whatever
 
This is where that song was featured:
 
user1596138
This scene
 
user1596138
Yea I knew it was Rick and Morty one way or another :P
 
user1596138
@DavidKamer If you had a more free living accomodation I'm sure you'd have such priorities :P. Sound is life. You should see what I've put into my car audio systems..
 
user1596138
I've got a good 20+ hours into my truck lol
 
yeah, I think that's how they make money off their music tbh... They dont' have huge social media influence and all the other garbage that comes a long with average musician business life.
@Jhawins I save and reinvest all of my money lol
 
user1596138
I'm also into Low-Fi.... I would describe this song as "An elegant cacophony" lol
 
user1596138
 
I can dig it
 
user1596138
I also play piano so some of the quiet keys in the song I really dig
 
user1596138
Who says the room is dead after midnight? Not us
 
Here's some music I like to listen to to get in a "flow" state however cliche that is lmao:
@Jhawins I learned piano and sheet music as a kid but can't remember any of it lol
 
user1596138
I dig. Do you use Play Music or?
 
4:55 AM
Spotify.
I have a family subscription
 
user1596138
Ah. I pay for a Family Plan on Play... And 4 other people use it.
 
user1596138
All fam ofc
 
I'm basically the only one who uses it so sort of a waste.
 
user1596138
heh. We all get YouTube Red out of it too, it's a decent deal IMHO
 
I signed up for it to get a free google home....
It's funny bc google is the one that pushed me to get spotify lmao
This is another one that I really like. Makes me feel energetic when I'm struggling to stay focused.
I might actually be a bigger Tycho fan but the name Com Truise is just too awesome lmao
The top comment: "I like how this music accompany your mood, rather than strongly impose some emotions. You can be sad, melancholic, or happy and full of excitement. Walking down a crowded city street, or chilling in your comfy chair at home - it will just go perfectly every time. Love it." lol
 
user1596138
5:01 AM
@DavidKamer Yea I know this band
 
I went through an ambient phase after going through a classical phase
 
user1596138
Omaha was a trap phase lol
 
user1596138
The entire thing lmao
 
in 2014/15 (I think) I was going through this type of music phase:
 
user1596138
I'm still in that one
 
user1596138
5:03 AM
Ehh, not really that far tho
 
user1596138
More like Post Malone/Russ/Juice WRLD
 
were you in FW area back when this song came out?
 
user1596138
Road trip mode is all bets off tho. That 10 hour drive goes through every genre of music imaginable
 
user1596138
@DavidKamer Idk I'm bad with timelines on music. I moved in 2015 and came back in 18
 
user1596138
Same day
 
5:05 AM
yeah, that video is definitely nsfw
well the song too
@Jhawins any old Kanye?
 
user1596138
I don't leave the videos up, aint got screen for that
 
user1596138
@DavidKamer NO.
 
user1596138
I fuckin adore Smashmouth lol that's why you were killing me singing Why Can't We Be Friends to those guys the other day on S1
 
Not even Mercy? lmao, I had that memorized at one point
 
user1596138
Only physical album I ever bought, Astro Lounge
 
user1596138
omfg I have seen this lol
 
I've turned this into a meme with my brother
he's ridiculously libertarian and feels the need to post about it all the time, so when he says something stupid I always post "Who will put out the fires?" or "Who will pave the roads?" with this underneath
 
user1596138
omg
 
not even that I necessarily disagree with him, he just posts about it ALL the time.
 
user1596138
Roads are weird like. There is only one legal/safe way to move from one location to another and that's IF a public road exists
 
user1596138
5:08 AM
If not you get shot
 
he'd probably say "if roads didn't exist we'd have flying cars already"
 
user1596138
lmao...
 
user1596138
It'd be like Rust. "Is that our neighbor? I dunno just shoot him and check after"
 
I'm like "no... have you ever driven through Chicago? that's what it would be like"
Here's one of my odd favorites: youtu.be/t7SvtikTkrM
oh, and that isn't what it might sound like, I was referring to the toll roads
lol, you have to stop and pay a toll like every mile
not the shooting part, that's an entirely other topic that some people probably find to sensitive to talk about in public at this point
 
user1596138
@DavidKamer Lol couldn't help but jump to Paper Planes during the startupp
 
5:13 AM
@Jhawins I love MIA, but she's a little cra cra these days from what I've seen
I hate it when performers get overly political unless it's something out of the standard set of predefined opinions
it's like:
 
5:34 AM
hello guys
 
@AppleCiderYummy Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
hello
is there a way to run a background task in javascript without opening the browser?
but the app is running on a port
is it possible?
 
user1596138
Could you explain a little more verbosely what you mean? I don't think I get it
 
user1596138
Node?
 
Because I want to create a background task where it checks if it is last day of the month. Then if it is last day of month, it will trigger a method that sends report to the recipeient
So that method should be running even if the actuall ui is not open in the browser
but of course it runs on a specific port
is there a way to run that method even the app is not open in a browser?
@Jhawins
 
user1596138
5:47 AM
Ah I see now. I wish I knew how to answer this but I don't. The room is a lot more active in a few hours, be sure to check back
 
like a background task since the app is running on a port, it means it is running
thank you
 
6:03 AM
@AppleCiderYummy at face value I would suggest service workers
HOWEVER I don't know if they're specifically capable of what you're trying to do
 
6:16 AM
1 message moved to Trash can
@user7747472 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
 
Hello, How can I use a toastr from inside a static method in angular app.
Here is my Code
```
import { ToastrService } from 'ngx-toastr';
export default class Helpers {
static toastr: ToastrService;
static handleHTTPErrors(error) {
this.toastr.info('Hello world');
}
}
```
But this is throwing error saying
Cannot read property 'info' of undefined
Can any one please help me. Thanks you
I did hit ctrl+k
 
user1596138
@DavidKamer ServiceWorkers don't ever outlive a window and it sounds like he wants something akin to a cron to me
 
@user7747472 maybe you need to do import ToastrService from 'ngx-toastr'; or something else wrong with your import
try logging ToastrService to see if it is also undefined
I got this confused with service workers for some reason
 
@DavidKamer yes I have imported ToastrService on the top. I am using the same way in other places of the project but only causing issue in this static method
 
@user7747472 is it typescript?
 
6:25 AM
yes
 
what happens if you declare it like that w/o static?
bc I think it doesn't have anything to do with static (but I've never used static with TS) and everything to do with the lack of a constructor assigning toastr to the instance. Maybe static circumvents that somehow though...
@user7747472 why not static toastr = new ToastrService();
 
ic
let me give it a try
 
also (maybe the only issue if) it has to be accessed via Grid not this
so it has to be Grid.toastr.info('Hello world');
bc Grid is the replacement for this in a static context
 
just came across this
entertaining
 
@DavidKamer static static toastr = new ToastrService(); giving error Error:(7, 20) TS2554: Expected 5 arguments, but got 0.
 
user1596138
6:32 AM
@forresthopkinsa Surely you saw the author?
 
of course lol
 
@forresthopkinsa this is proof of interference in the election, we need to start an investigation
 
on it
why are you guys online so late
 
user1596138
lmao
 
user1596138
@forresthopkinsa I don't have a job
 
6:33 AM
that's as good a reason as any
 
@user7747472 alright, change it back to what you have in the other places in your project or what you put here or with just an equal sign and then change this to Grid
sorry not Grid lmao
the name of your class
 
user1596138
Why are you online so late?
 
working on personal project and came upon that Meta question by a link of a link
 
so prepend Helpers like Helpers.toastr.info('Hello world');
:45747405
@forresthopkinsa bc I have no life and work all the time
 
excellent
 
user1596138
6:35 AM
@forresthopkinsa Something cool?
 
not really, just playing with React and Emscripten
 
user1596138
Cool.
 
I think for my next project I'm going to make a music app in Flutter and that'll be fun
 
I think I need to use GraphQL or something catchy like that in my next project lol
 
Haven't touched it. I'm really comfortable with REST, but I know I'll have to get on that train eventually
Anyway yeah Emscripten is fun to tinker with
You can do some pretty cool stuff with it
 
6:38 AM
@forresthopkinsa hmmm... can you elaborate?
I was being sort of sarcastic lol
 
@DavidKamer I've built a lot of RESTful web services and I'm a big fan of the design philosophy
 
yep, me too.
 
GraphQL is kind of veering back into the "complicate" side of things
SOAP is too complicated so we made REST, REST is too simple so we made GraphQL
I know that's an, ahem, oversimplification, but I do think that REST is quite sufficient for almost all use cases
 
REST is only too simple if you don't know how to increase complexity when you need it
 
Sure but then the problem is that the complexity increases exponentially
I guess you could say that GraphQL is an attempt at constant complexity
with REST you start getting into query columns and pagination and it gets messy and non-standard quick
 
6:42 AM
hmm, are any of the "big players" using it in production?
 
yeah. Facebook invented it
I first came upon it trying to scrape Facebook Messenger lol
I was like, wtf is this
 
@forresthopkinsa yeah, non-standard for sure. I guess if the idea isn't to adjust the standard to your use case and document it, then reinventing a more complicated wheel might be the way to go.
 
@DavidKamer yeah I think that's the motivation
 
it's weird bc I don't often think in terms of web requests that aren't REST
 
I think part of that is that REST really tries to reflect traditional HTTP
in comparison, everything else seems like it's abusing it haha
 
6:46 AM
@forresthopkinsa that's probably why. It's found a way to confuse itself with traditional HTTP in my mental model that's for sure lol
 
hopping off. talk to y'all tomorrow
 
I bet GraphQL has created a bunch of security holes in applications
I'm going to make it a project to learn it just to prove people don't know how to use it by finding the security holes and reporting them lmao
 
7:48 AM
the problem with REST is that you can't make it fit every possible scenario
and people used to REST tend to want to make it fit anyway, with horrifying results
 
8:37 AM
dude in red pants was going to win with points in the final rounds (knocked down the other twice before)
so he started to annoy the other dude by walking around, guard down. Just to irritate him
Yet the other could punch some hits and the last punch was right on the spot: technical KO
 
8:50 AM
@Neil i understood the root cause of the Pdf not showing chinese/Japenese text

I tried to setup a docker service for the same. Installing below fonts fixed the problem:

RUN apt-get --assume-yes install libfontconfig


RUN apt-get --assume-yes install fonts-takao-mincho
RUN apt-get --assume-yes install fonts-takao
RUN apt-get --assume-yes install fonts-arphic-ukai
RUN apt-get --assume-yes install fonts-arphic-uming
RUN apt-get --assume-yes install fonts-ipafont-mincho
RUN apt-get --assume-yes install fonts-ipafont-gothic
@Neil
Yet to figure out how to install font related packages for Lambda
 
@Gauri ah ha!
Told you it was a font issue :)
 
@nei
:)
 
I was just winging it too
My instinct just told me that it was something like that
 
9:29 AM
@Neil I copied the fonts from docker container /usr/share/truetype and included it in the lambda deployment package

its working for Lambda now
 
9:42 AM
@BenFortune we had a dude here in 2013 called porizm
Mar 7 '13 at 22:06, by Porizm
@BadgerGirl never say No to me
He was a real creep lol
 
@BenjaminGruenbaum Ah, the time before kicking was a thing.
 
o.o
I liked the javascript discussion that occurred around that comment
Came a bit later on the scene: Apr 23 '14
 
sounds like a true gentleman /s
 
10:43 AM
@MadaraUchiha remember caprica muting?
 

« first day (3083 days earlier)      last day (1859 days later) »