« first day (2697 days earlier)      last day (2476 days later) » 

12:00
@MadaraUchiha Thank you a lot!
12:45
I did not know that Cache-Control: no-transform would disable compression :(
uhmmm is "headstrong" an insult?
I thought it was a compliment, but then I checked urban dictionary
@towc it usually means "stubborn" afaik
can be seen both ways though I think
@towc In an urban environment, everything that requires looking it up is an insult
probably depends on context
12:47
@towc Not usually
I mean yes
it's usually an insult
yay conflicting answers
oh
not usually a compliment
yay I've been insulted
you asked for it
yay I've been answered to
12:52
is headstrong not used as alternative for stubborn ?
@KarelG almost
stubborn means refusing to accept fact or some idea
headstrong is just very willful
you can be headstrong and not stubborn or vice versa
headstrong means you can destroy walls with your head?
!!urban headstrong
@Neoares No definition found for stronghead
@Neoares Headstrong A person, man or woman, who possesses inherent qualities of an unrelenting or unwaivering ideology, often baseless and of strong conviction.
> A person, man or woman
what about helicopter!
12:58
today I used gimp for the first time
well, watched my boss using it
but in my computer
Ash
Ash
LOL @Neil
Any help on this question would be appreciated!
https://stackoverflow.com/questions/49110992/using-map-to-generate-elements-with-refs
ref should be a function
I don't think "key" is a function
ref={(input) => { this.textInput = input; }}
like that
@Neoares Was is a good experience?
I don't know how to feel
so someone calls towc being headstrong. Is it due of his vue-mania ?
13:01
we added 50% transparency to a png
"we" ? Did you hold his mousehand ?
oh btw I had samsung S9 in my hands in the Mobile World Congress
it gets warm AF
That's a feature
like, I spent 2-3 minutes doing basically nothing, still got super warm
13:02
That's how they let you know that the battery is about to explode
it got used by others ?
@OliverSalzburg yeah you can turn your mobile into an oven
@OliverSalzburg oh that's a good feedback
still, those phone cases are sealed in that way that water should not enter. But they forget to add a means to sink head away
it's a warning system
it gets hot before it explodes, so you know
smart ;)
@KarelG it was cold when I got it
well not cold but... you know... normal
but I wasn't using anything
just blocking and unblocking, moving through the menu
Ash
Ash
13:04
lol hello
Ash
Ash
thanks for the help! I tried that but no luck, still same output :o
try this
nah don't try it
Ash
Ash
lol ok
the problem is that refs are used to store the element somewhere
so maybe you define an array of those elements
and then do the following:
ref={(el) => {this.my_array.push(el)}}
so my_array will contain all your refs
or even better
make an object instead of an array
Ash
Ash
13:07
ah right.
thats what I'm trying to do by using the state. (as mentioned) im making a simple chrome dinosaur type game, and just need to put a ref on the obstacles, to do the collision detection
ref={(el) => {this.my_object[key] = el}}
no, don't use state :P
if you set the state it will re-render again
most likely
Ash
Ash
oh right
not always
yeah not always
I just think it's not a good practise
Ash
Ash
is there a way you could display it in -
https://codepen.io/ashconnolly/pen/oEVPBy
Not sure im following
13:09
actually, using refs is not a good practise
Ash
Ash
oh right
(sorry being shoted acorss the office, 2 ticks)
@Neoares I wouldn't go that far, using them should be taken into consideration whether or not you need them
they are not bad practise tho. just easily overused (like context)
@Ash add this.my_spans = {}; in your constructor
and your function's ref to ref={(el) => {this.my_spans[key] = el}}
actually you got an answer that tells you to do the same
hai rlemon
I had a question for you this morning ... but I forgot it.
13:18
@Neoares refs are a backdoor cc @rlemon
Sometimes, you deal with non-react components, canvas rendered charts, d3, jQuery widgets, etc
Then you need a direct reference to a DOM element to make things work.
refs are your way to interop with 3rd party libraries that are not React aware
That's the biggest (and realistically, only) usecase for refs, and it's legit.
@rlemon see if you can find what part of the world they're over
the big part
seems down under
I come from a land down under. Where women glow and men plunder
seems New-Zealand
the top of the land mass at the left side reminds me to that.
booo
I wanted formatting
use one star for cursive
it is slightly different here than in SO comments
looks like a giant space laser. maybe it's pointed at finland and thats' why it doesn't exist anymore
@rlemon another example of globe-alist lies
13:26
definitely New Zealand, yeah
@KarelG underscores work too
ok TIL
@rlemon that looks so fake
@Neoares most space pics do
it's because you're used to pictures on earth
13:32
woohoo. There was a webpage that loads after 11.4 seconds. Had to optimize everything from DB to templating. Now it needs ~350 ms
// feels satisfied
I would love to cut my hair with power tools
@rlemon yeah it's like you can crop the foreground so easy
like if it was a chroma
@rlemon What's the point?
@OliverSalzburg to look fabulous
13:33
So you can feel brawn at the salon
the point is to get the job done quickly with a tool that can be multifunctional = double win of money
win win
and if you fuck up their haircut, they won't be alive to complain about it
but you may need to clean shit on the floor sometimes
@KarelG jesus
while your page is loading, please enjoy a coffee break and return shortly
13:36
11.4s?
@Neil fixed
Yeah, now it's fixed
lul that noob spent time redoing mongodb and templates lul
he doesn't know the wey
Reminds me that I should cut my hair already
you?
you do not have hair
does anyone in here use Dazn and a RasPi?
13:43
I spent 3 hours trying to get my rpi zero w to install some shit from npm
fucking hate rpis sometimes
maaan, capturing component resizes in react well is so annoying
I thought I had it
then suddently nope
@KamilSolecki You listen to onresize and setState
It's not that hard, but it's bad practice.
Use CSS media queries and responsive design whenever possible.
@KamilSolecki what's the usecase?
@KarelG Usually, yes. Which is the state I'm going for. But other people in my life don't like the skinhead look :(
@KarelG It's Wellington NZ
13:49
thing is, I am using three.js, and camera needs aspect ratio -> which is derived component's width and height.

Ive had like milion iterations of capture approaches, but none of them works when another element in the wrapping flexbox changes size, making my three.js canvas to resize
@ssube @Loktar @Luggage @hilli_micha @FélixGagnon-Grenier @KendallFrey lost PLA casting i.redd.it/36rxx4wycvj01.jpg
looks pretty good
whoa.. nice
what metal is that? does it burn the PLA or how does that work?
the title said lost PLA
so I'd assume it's like lost foam casting, and the aluminium burns away the PLA
also assume it's aluminium
looks too light to be lead
and casting steel is not easy
Microsoft Teams really ties a lot of shit together. So far, I'm quite fond of it
14:02
I imagine.. how would you even get the steel to act? I mean it's metal
In case anyone is pondering evaluation :P
@Neil method acting
I bet they take a huge cut too
ok, this one works properly github.com/wnr/element-resize-detector
now I gotta dive and see how they do it
14:06
OMG I didn't realise it was the same dude
@KendallFrey @SterlingArcher youtube.com/watch?v=fhmeYoJZeOw
kills me every time
@KamilSolecki That looks like a lot of code for something that shouldn't require a lot of code
I thought so as well, that's why I want to know what magic is behind it being the only thing that worked for me so far
Just put a button into you UI and label it Click here after resizing browser window
I wish it was just window
Then it would be easy
14:09
why not resize event
@Neoares Because it's not only window resize that can resize it
> //Shamelessly stolen from gist.github.com/padolsey/527683
lol
@KamilSolecki so you're not looking for window resize
I wonder why elements don't have onresize event
@KamilSolecki soon....
@Neoares they took it away for some reason
@rlemon yes pls
guys can someone help with a quick typescript problem?
declare type Proxy = {
  type: 'proxy',
  url: string,
  height: number,
  width: number,
};

declare type SpritesDerivative = {
  type: 'sprites',
  url: string;
}

declare type Sources = Proxy | Sprites;
// in my main file
const { height: assetHeight = height, width: assetWidth = width } = keyBy(derivatives, 'type').proxy;
Says "Type 'Sources' has no property 'width' and no string index signature."
@KamilSolecki developers.google.com/web/updates/2016/04/intersectionobserver I'm also quite excited about this
@corvid That's because it doesn't
@rlemon ooh, thats pretty neat
14:14
@KendallFrey I got a new steak rub. maple bacon. made a delicious steak last night
@corvid string;
That seems wrong
but fuck is that maple strong. my skin smells like maple today
14:14
So does your use of trailing comma
@OliverSalzburg Actually ; is normal in type definitions. Weirdly.
That's fucked up
At least be consistent then :P
TLDR; a lottery scratch card got cancelled because lots of British people were unable to determine the highest of two negative numbers
I wonder how much worse it would have been in murica
@KarelG to be fair, these were British people who regularly buy lottery scratch cards
14:21
I already thought the people were stupid for buying lottery tickets in the first place
This does not make it worse
@KarelG lol fucking retards
> The 23-year-old, who said she had left school without a maths GCSE, said: "On one of my cards it said I had to find temperatures lower than -8. The numbers I uncovered were -6 and -7 so I thought I had won, and so did the woman in the shop. But when she scanned the card the machine said I hadn't.
She obviously deserves money for being misled like that
golf score logic
And public attention
absolutely
I think Dr. Phil has an opening next week
14:23
its like that woman who wouldnt get out of the uber car
@KendallFrey Given the relatively famous phone conversation about how 0.01 cents !== 0.01 dollars, I'd say not much better.
@MadaraUchiha oh do link me
@BenFortune is that why girls in London run around in mini skirts in the coldest weather?
-20 degrees? oh, what a lovely day
14:24
@KendallFrey dude was quoted 0.002 cents per kilobyte, and they billed him 0.002 dollars per kilobyte
@GNi33 That's to fish a Saudi
That's the conversation with their support to try and resolve it.
@KamilSolecki holy shit
there was that guy who thought that you could resolve poverity in american by dividing 250 billion amongst the 250 million americans and each american would have a million
something like that, I don't recall exactly the numbers
@GNi33 I'd just drive away with her inside I wouldnt give a fuck
14:27
@Neil Every single day, someone in German news does not understand the difference between the English billion and the German billion
Dude Uber sux, I tried that for 2 weeks. You have to have deduct (commercial auto insurance + gas + time spent waiting). It's hard to make money.
> Do you recognize that there's a difference between 0.002 dollars and 0.002 cents
0. ... 0 0 2 dollars... and 0.0 0 2 cents...
Yes, do you recognize that there's a difference between those two numbers?
.................... no
@KamilSolecki I'd probably get really mad with that woman as well
"I'm asking you in a very educated manner... where am I?"
but his constant screaming probably didn't help :D
He also mentioned she was like that through the whole ride
so I assume he was insanely pissed by then
what is with this new generation? they have this sense of entitlement that everyone is supposed to guarantee something to them
14:28
yep
I'm starting to sound like my dad, oh dear :(
I mean, its as if she was trying to provoke him to hit her or throw her out physically
Maybe he should have made her disappear. That could have saved him from being put on YouTube as well
I hate this language
@Neil oh that one was painful
14:30
@HéctorÁlvarez English?
I don't know why, but the damn script file is not up to date
@OliverSalzburg spanish
Ash
Ash
@Neoares Thanks mate! really appreciation the help!
I did try it but it doesn't seem to have worked https://codepen.io/ashconnolly/pen/KQLJOy?editors=0011
I've been getting an error for a wrong datepicker overload
and I dived into the source files to see the version that's working there is not the one that I just saved
so I closed my browser, debugged the project again, and the source file is still outdated
@MadaraUchiha who charges by kilobytes?
@GNi33 The land of the free
14:32
I double checked it's saved
then there was the one of the girlfriend who when asked if you go 60 miles per hour for an hour how far do you go, honestly had no idea
and I've removed the cache
@Neil the british one?
because that one's fake
The one I'm thinking was american
@HéctorÁlvarez Which mean you're looking at the wrong file
14:33
but that could have been fake too as far as I know
This explains the general approach
I gotta say, that thing sure is convoluted
@MadaraUchiha No I'm not, I just closed everything and opened it again, and it's now updated
just some cache bullshit
@HéctorÁlvarez In that case: shouldiblamecaching.com
@MadaraUchiha oh god this is just terrible
I now understand why some people are proponents of eugenics
@KendallFrey I know, the original version with all the calls is like an hour and a half of this bullshit
It's astounding
14:37
I had to stop about 4 min in
I want to hear that, but I don't have earbuds
turn on captions
I can't have a youtube video fullscreen for half an hour while working
with some Verizon BS
> thats 000.2, but is it cents or dollars
> Well its per kilobyte
hi somebody can help me?
14:43
@TobiasK 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.
@HéctorÁlvarez sounds like a shitty workplace
youtube is a must while working
1 message moved to Trash can
1 message moved to Trash can
stop doing that
seems invalid object ...
post code and text on their own .
and format the code
Hi want to search in this array of objects. This Objects can have childrean with array of objects. These is really difficult to find a logic to find a object. I tried it with.
 let obj =  DATA.children.find(o => o.size === 4461)
This looks only in the first layer. I want to look in the whole object.
Have somebody an idea? Maybe there is an easy solution?
Example Object:
let DATA = {
"name": "flare",
"children": [{
"name": "analytics",
"children": [{
"name": "cluster",
"children": [{
"name": "AgglomerativeCluster",
"size": 3938
}, {
"name": "CommunityStructure",
"size": 3812
}, {
"name": "HierarchicalCluster",
"size": 6714
}, {
"name": "MergeEdge",
"size": 743
}]
}, {
"name": "graph",
"children": [{
"name": "BetweennessCentrality",
"size": 3534
}, {
"name": "LinkDistance",
"size": 5731
}, {
"name": "MaxFlowMinCut",
"size": 7840
}, {
"name": "ShortestPaths",
"size": 5914
close enough
14:46
React users - do you use Typescript ?
So how do you type safe ?
I think in this room tho, the majority of React peeps use TS
@RoyiNamir same way I have forever with JS
I don't
oh god he's going to metric units
this is not gonna fly
14:48
@KendallFrey lol
9
Q: JavaScript recursive search in JSON object

DropoutI am trying to return a specific node in a JSON object structure which looks like this { "id":"0", "children":[ { "id":"1", "children":[...] }, { "id":"2", "children":[...] } ] } So it's a tree-like chi...

@RoyiNamir yes
^ While programming ? , using webstorm/vs code ? or do you use it as a plugin ?
agh my blood pressure
nooo i need to know if he won

« first day (2697 days earlier)      last day (2476 days later) »