« first day (2678 days earlier)      last day (2271 days later) » 

12:03 PM
the thing is... wtf are you doing xD
why are you creating a new video in your drawImage function
instead of getting your current one
 
user1928251
ok so i will have to remove create ELement video no?
 
yes
I'd say you need to create an event handler for your video that listens to "loadeddata"
then there you get your video
and then you get the frame (this part I don't know how)
 
user1928251
so no clue or update my code?
 
user1928251
if you wont thats fine i will figure it out somehow
 
I told you how
get the video, add an event listener that listens to loadeddata, and get the first frame there
 
12:08 PM
Hello, i have a question about cors, how do i add more than one origin in Allow control origin?
 
@John By adding it
 
user1928251
ok @Neoares thanks for help you're a life saver have a nice day sir
 
Headers reproduce asexually. You have to help them using the manual way
 
'Access-Control-Allow-Origin' = 'http://localhost:4200, null';
 
null is not a good origin
 
12:10 PM
@OliverSalzburg This is how i write the header?
 
Seriously
 
Yes it's good when it's a file
 
Have you even googled?
 
Yes and i don't find on google
 
A google search for access control allow origin multiple gave me the answer on the first result....
 
12:11 PM
@AndreiClaudiu by the way, "loadeddata" event is not working for me, for some reason
 
Yes i found this too but it doesn't tell what you have to put in the header, that's some php stuff
i want to know how the header looks like with multiple origins
and that i can't find
 
@John Comma-separated list is fine
Unless I'm mistaken
Which is highly unlikely because I'm a pro
 
When i enter a come the browser compares the origin the the whole list and it includes, in my case localhsot AND null so it's different
 
@John Usually, if you want to allow different origins, you supply the header dynamically in the response
And then you only supply a single value, matching the Host header of the request
 
> Sounds like the recommended way to do it is to have your server read the Origin header from the client, compare that to the list of domains you'd like to allow, and if it matches, echo the value of the Origin header back to the client as the Access-Control-Allow-Origin header in the response.
How is that "PHP stuff"
Don't just look for copy-pastable snippets
 
12:14 PM
Oh yeah that seems ok, thanks
 
Actually read the answer that got over 600 upvotes.
 
I don't understand php, never learned, so it doesn't speak to me
 
@John Nothing in that sentence says PHP/
 
but i can read the request and set dynamicly that could work, thanks guys
 
Madara is drawing his hammer
 
12:16 PM
*puts on transparent plastic raincoat*
 
@Neoares Like, on a canvas?
 
@Neoares Nah, just a bit pissed over something that has nothing to do with it.
 
I translated "desenfundar" from spanish and got "draw"
 
I'm kinda tired of covering for someone else's thoughtlessness every version...
 
unsheathe, maybe? @OliverSalzburg
 
12:18 PM
@John stackoverflow.com/a/32481816/6707985 Also done here indeed
 
o/
 
@MadaraUchiha SO life, episode 37634
 
Does anyone here know if there are any credible certificates for TypeScript? I couldn't find a MS version
 
Do we have some VueJS expert here? I have a issue between sharing/passing data with 2 components.
 
user1928251
thats ok man @Neoares
 
12:23 PM
user image
7
 
lol
 
We had a discussion today for like 40 minutes about why I think it's important to store timestamps with timezones in the database, and not "assume" that all dates come from the server in UTC...
 
this morning I was thinking about that
the wednesday frog with valentine's day stuff
and immediately thought about u, @rlemon <3
I know you were not going to disappoint me
 
Questionable whether that was a compliment or rudeness, lol
 
compliment
he's the gimpmastah
 
12:24 PM
"Was thinking about the frog and immediately thought about you" :D
 
oh well
ambiguous
 
@MadaraUchiha where I work they did one better; store most times with UTC timestamp even though the values are not
 
> most
 
jstz.determine().name();
 
@Jonathan But then you can fix that on the data level without involving the client or the front-facing servers
At least
 
12:29 PM
is there any alternative for the above
 
@Sudheer I was applying Google Autocomplete and finding places withen a city provided. I'm not able to restrict autocomplete results to a particular city. Currently I have a temp solution but I need a permanent one.. dealkare.com/services/refrigerator-repair-in-noida.html
 
i need to detect usertimezone on internet explorer
 
Anything involving the word "most" when talking about databases gives me anxiety
"The id is usually an integer"
oh god
 
@Cereal When two out of 3 people in the data team aren't even fulltime devs...
 
Such is development. Just don't tell any of the clients
 
@Neoares Good word :D
@Sajeetharan Yes
 
@MadaraUchiha that's ultra safe for work
 
@OliverSalzburg what is it
 
1 message moved to Trash can
@Jarede Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
Either that is currently not a bot or Caprica is capable of more than I remembered :D
 
12:42 PM
Only in this room
 
you'd be surprised
 
If i have a mixin in a seperate file, and you want to use it on your object, how do you generally go about it?
 
xDDDDDD
> gives up in formatting
 
doing a const mixin = require('./mixin')? in the object
 
@OliverSalzburg you there?
 
12:45 PM
he's doing yoga
 
@Sajeetharan You could wrap that code in a new function and then call the new function instead
 
@OliverSalzburg which one you are talking about
 
how does he write while doing yoga?
 
timezone?
 
AWESOME
 
12:51 PM
@Neoares The current pose is the "procrastinating developer"
Well, I'm actually waiting for a build. So it's fine
 
@OliverSalzburg please tell me know
 
@Sajeetharan What?
 
You could wrap that code in a new function and then call the new function instead
which one you are fering to
 
How much code did you post?
 
only this
jstz.determine().name();
 
12:58 PM
Right. So why the confusion?
 
it does not work with some browsers
 
@Sajeetharan What doesn't work?
 
jstz library
so i m asking is there any different library
 
Well, it's not what you have been asking so far
 
1:01 PM
might be wrong
 
> Can someone recommend an alternative to jstz?
That's how you ask for an alternative to a library
 
ok :)
 
In which case I would reply: No, I don't
 
ok :)
 
But I don't know if it has the features you're looking for
 
1:02 PM
Does it get the timezone from the browser/OS?
 
Since I would really advice to not do that.
 
@Jonathan from OS
 
> Moment Timezone uses the Internationalization API (Intl.DateTimeFormat().resolvedOptions().timeZone) in supported browsers to determine the user's time zone.
 
Don't do that
 
1:03 PM
@OliverSalzburg Intl.DateTimeFormat().resolvedOptions().timeZone
again this does not work with latest browser
 
I've dealt with a ton of bugs in the past years where people had a mismatch with their timezone settings and our application
 
Jeeze you guys...
Click the effin link
 
it is not pretty to trust the client settings
 
> On other browsers, time zone detection is rather tricky to get right, as there is little information provided by those browsers. For those, it will use Date#getTimezoneOffset and Date#toString on a handful of moments around the current year to gather as much information about the browser environment as possible. It then compares that information with all the time zone data loaded and returns the closest match. In case of ties, the time zone with the city with largest population is returned.
 
@OliverSalzburg man u sukz at customer support i report u for no help
u no gimme solved code
did we save the "thanks for helping me to solve the problem instead of just giving me the solution" sentence?
 
1:06 PM
Thanks Obama
 
what
 
Have you never tanked Obama
 
Picture of a single atom, rad - qz.com/1205279/…
 
no, but I did wonder what @BenFortune would look like without ears
 
You do it and I'm gone
 
1:12 PM
do what?
 
@hilli_micha I expected something like upload.wikimedia.org/wikipedia/commons/d/d4/…
 
@OliverSalzburg Let's not talk about that god-awful CPU.
 
@rlemon Cut off his ears
 
@OliverSalzburg I said did wonder
those were gone ages ago
 
Good. People with glasses are somewhat attached to their ears, you know
 
1:14 PM
@KamilSolecki no, I've never tanked him
 
Ben lost his ears in that freak snorkling accident ssube mentioned a few days ago
 
I tanked Argus in Heroic mode
but never Obama
didn't know he was a raid boss
 
fine, @BenFortune's no fun so I put his ears back
but just his ears..
 
cya
 
he left... :B
 
1:21 PM
he'll be back
 
Why is ben being such a stiff?
 
idk, I put his ears back
 
they always come back
 
Like kim kardashian
 
1:33 PM
@rlemon you know he would
 
Wouldn't he die from hat overdose?
 
on his home planet all they eat is hats
so jokes on us right
 
I don't think Elon Musk is an alien like..some other tech billionaire we know..
 
@ndugger Because I'm having a tough time right now, and when I tell someone I don't want them to do something I expect them to respect my wishes
 
1:42 PM
@BenFortune sorry dude, I thought it was all in good fun. I won't edit your pictures anymore
 
Thanks
 
@rlemon His voice always throws me off, he doesn't sound like I would expect him to.
 
same :b, his voice is too light
 
He looks like he'd have a slightly deeper voice.
@SaitamaSama Was that a pun? If so, Canada would be proud.
 
@rlemon you can always edit my pictures, bb
Brb, gotta go to work
 
1:52 PM
@Loktar @Luggage @KendallFrey @hilli_micha @FélixGagnon-Grenier @ssube i.imgur.com/ni6cXAa.png nice
 
UPS is in the meme business now? The apex of society is near.
 
And that in a "Promoted" one. I think that would have been the first ad I liked on twitter
 
My favorite ad is that one ad with the two girls in college who've decoded the wine industry and now the wine industry HATES them.
 
@rlemon Can you spare a couple of minutes give me the short version of the order of execution for the extension?
 
what you mean?
like.. rundown on how it works?
 
1:56 PM
What gets fired first, what calls what?
Aside from manifest, is there a dependency graph?
 
it's horribly done, but it works so I haven't changed it.
 
Bill Gates 2020
That is all.
 
script.js has a list of all of the files that need to be loaded and in what order. then injector fn loops over it and injects the files to the page if you have them selected in your options.
then the main bulk of the 'work' is done in the observer.js file
 
So the manifest only specifies the files it can serve, and does not necessarily serves them or makes them available?
They are all explicitly called from script.js?
 
Please! @realDonaldTrump has no real wealth/smarts/brains! I have BILLIONS more $, plus REAL BRAINS, not phony like prez. #BillGates2020 https://twitter.com/realDonaldTrump/status/870709271477932032
 
2:00 PM
manifest says what is available for the extension to access
and I guess injects some of the code mirror stuff
can't remember why
content_scripts injects script.js which then pulls in the scripts you need which are exposed via web_accessible_resources
 
I see
 
building an extension? or just modifying dark theme?
 
I think one of the first things I'll attempt is to consistentify the build a bit, if you don't mind
@rlemon Mosifying dark theme
I want to take a swing at the upload image from blob: urls thingy
 
the build, if I really can call it that, packs everything for chrome webstore
 
And writing the build is an excellent way of getting the entire structure of the project
 
2:03 PM
make it material design as well, if you will. kthxbye
 
@rlemon Plus some scss thingy, yeah
 
yea
 
I'll try to webpackify it, make all the scripts under js/ bundled into one file, that should make the dependency graph much clearer (i.e. allow for actual import statements)
 
the image upload is mostly standalone tho
@MadaraUchiha grouping the scripts together would break the options flow
 
@rlemon Oh? What do you mean?
 
2:05 PM
scripts get injected based on your options
that can be changed, but just grouping them would break that
other changes would need to be made
 
room topic changed to JavaScript: Topic: JavaScript, ECMAScript. Read this: javascriptroom.github.io/rules. Before asking inform yourself on the XY problem goo.gl/taIqf | devdocs.io Documentationâ„¢ Helps. Room meta discussions: github.com/JavaScriptRoom/culture. How to format code in chat: sopython.com/wiki/… [3d-printing] [ecmascript] [ecmascript-6] [javascript] [nodejs]
 
@rlemon Oh, that's fine, Webpack supports async imports
Thanks for the heads up though, I'll read the code.
 
sorry
 
@KendallFrey I was beginning to wonder how long [do-you-know-the-way] would remain as a tag lol
 
you noticed, dammit
 
2:08 PM
I noticed after the whole situation happened like "Huh, that's just gonna stay? k"
 
so when a process has reached like 4 hours of CPU time..
should I be rebooting or something?
 
not like a regular one that should be eating away cpu time tho
it's one of my chrome processes. 4+hours, and they're taking a lot of memory
but I can't figure out what tab it is
 
Exit the chrome process
@rlemon How come? What does task manager indicate
 
@rlemon Chrome has its own process manager
Hit SHIFT+ESC
 
2:14 PM
yea I forgot about that
 
In Firefox I sometimes have 3 Tabs but like 6-8 processes ._.
 
@OliverSalzburg htop doesn't indicate much
 
@rlemon I don't reboot every 4.1 hours when using VS
 
@geisterfurz007 Makes sense though
GPU process, plugins, etc.
 
@rlemon Yeah, I meant the Chrome Task Manager
 
2:15 PM
Good point @MadaraUchiha I often underestimate how much stuff is going on :D
 
@rlemon I see, most of the code is injected directly into the page, and is not strictly part of the extension code.
 
somehow mobx dev tools was running at a small constant CPU use, and like a gig of memory
@MadaraUchiha correct
but has to be exposed in the manifest
 
Interesting, I'll tinker with it a bit more.
 
@MadaraUchiha Thanks a lot, you made me close runescape on Firefox
 
dude he was pking in the wildy with his phat too. wow, sorry bro.
 
2:18 PM
> Wow, I didn't know ALT+F4 improves your ping!
 
2:30 PM
@rlemon Wait, giphy wasn't a builtin command?
 
haha I came here just for this.
 
@KendallFrey nope
 
in C#, 1 min ago, by Caprica Six
@KendallFrey Command giphy forgotten.
 
you bastard
2
 
lol it sucks though
 
2:31 PM
rightgif is wronggif
 
43 mph
what an oddly sane speed
 
I want to drive a Subaru WRX STI on the surface of Mars while vaping, is that so much to ask?
 
Definitely not.
 
@hilli_micha yes, you should be naruto running
 
@hilli_micha I was looking at subaru.com/vehicles/wrx/index.html and thought "Why do they put a BMW on their website?"
They should have copied the front more closely though
 
2:45 PM
@OliverSalzburg Damn, you're right. From that shot, it looks a lot like a BMW
Without the front to distinguish it, it's very convincing
 
the back, near the top, is similar. Not sure about the rest
you have to bounce them off something to get a big dent in the side like that thing
 
@KendallFrey this is a sandwich
 
> fuck, I wanted the top plane
 
lol
3d modeling jokes. I like it
 
@KendallFrey I'd vote for Bill Gates for president to be honest, but he's not running and I don't live in the US
I think he'd make a good president :D
 
2:54 PM
he would make a scary good president
 
Plus he probably has more real power doing what he does now anyway
 
if he could corral the classic MS folks, imagine what he could do to washington
 
President answers to congress and senate, he controls a fund with a shitton of money and gets to only work on stuff he cares about
 
balmer is worth 10 senators
 
2:55 PM
nice
 
"My first act as president, all computers will have IE installed on them immediately and every citizen will be given an IE promotional shirt from the 90s we couldn't get rid of."
 
can we make my juicebox a meme please
thanks.
 
let me make a template
 
i'm surprised your juice doesn't come in bags
 
2:56 PM
4kb is still enough memory for government systems, with all their DOS programs
 
lol, I just got a gold badge for downvoting shitty jquery questions
 
@hilli_micha Juice... bags?
 
@hilli_micha it does
 
@BenjaminGruenbaum most fluids in Canada come in bags, like milk
 
2:56 PM
 
OH DUDE, I forgot about Crapi-Sun
 
@rlemon Oh, we have those, but only for grape juice
 
capri sun comes in all the fruit-like flavors
 
fun fact, taps in canada don't work unless you put a bag under them to collect the water
it's a design feature
 
@ssube In Israel milk used to come in bags 20 years ago but now it comes in cartons - you can still get it in a bag if you really want but it's not that much cheaper and carton degrades better than plastic so most people get the cartons
Although I think people just do it out of convenience
@rlemon really? How does that look like?
 
2:58 PM
cartons are also a lot easier to transport and store
 
recycle the bags
 
In Israel taps have to (as in, most people did it and it's free but not everyone did it) have a water saving device
A faucet aerator (or tap aerator) is often found at the tip of modern indoor water faucets. Aerators can be simply screwed onto the faucet head, creating a non-splashing stream and often delivering a mixture of water and air. == Function == An aerator serves the following purposes: Prevent splashing Shaping the water stream coming out of the faucet spout, to produce a straight and evenly pressured stream. Water conservation and reduction in energy costs Reducing faucet noise To increase the perceived water pressure (often used in homes with low water pressure); sometimes described as a pressure...
 
In Florida, our tap water has so much chlorine that you can smell it.
Its..disgusting
 
my tap water has too much florida in it
 
@BenjaminGruenbaum I think those are standard now
 
2:59 PM
Israel has a history of not having enough water. There used to be ads on TV asking people to conserve water.
 
I've never seen a household faucet that didn't have one, other than the laundry/garage sink
 
@ssube bags are cheaper to ship
 
Israel lives next to the ocean; just drink that
 
@ndugger that's literally what we do
 

« first day (2678 days earlier)      last day (2271 days later) »