« first day (3086 days earlier)      last day (2087 days later) » 

13:00
Hi, I want to implement geo fencing
do anybody knows about it
What a cute site you got yourself there Vickey
user8444404
@SebastianAlexanderBNielsen please help me to find where i missed <div> tag.....
13:45
Can someone check me on this? When you pass data into a Web Worker with postMessage(), does it create a copy of the data, or is it a reference to the original data?
It's cloned. I see it.
It's passed as a string, isn't it?
I guess not. I think of it as passing JSON, because it's fairly similar
What would be the best way to remove duplicate imports using webpack? F.e. i've got few classes in separted files that all include same dependencies. how to tell webpack to only include them once in compress ?
@Traxstar if they're the same version, it will be included once
for sure ? @Neil
if they're not the same version, they should be included more than once :P
@Traxstar Actually no, but I'd think so
13:58
think so to but dont seems like
14:29
good morning
14:43
is there any type of annotation in jsdoc for commenting test cases ?
15:25
user1596138
16:13
weak
posted on March 29, 2019 by CommitStrip

17:00
weaker
sometimes I feel like these must be poorly translated or something
the punchline is so badly delivered
user1596138
Right??
> Quick, let's get to the office, looks like there's a small problem in production!
ok
Does anyone know how could I set an image's width auto?
To clarify what I mean, I want an image to be responsive at a certain height without stretching the image

#CSS #JS #Question
user1596138
If you only specify one (width OR height) it retains the aspect ratio by default
user1596138
What did you try that's causing you trouble?
17:05
.size-contain {
display: inline-block;
position: relative;
overflow: hidden;
max-width: 100%;
width: auto;
}
What I did.
But the problem is: It stretches the height for example when I set it to 500px
+ Not all of the images, Just some of them that have a longer width
17:53
Hmm in react if I have a component that encapsulates smaller components. Those smaller components operate on data, one of the things that might occur is that the data is "invalid" - at which point the subcomponent show an error.
Now I want to also show in the larger overal component a message if "any" subcomponent has an error. However the checks are actually computationally intensive, so is it possible to let data from the subcomponent bubble to the container?
Or would I have to rewrite the components to do all checks in the containing component?
user1596138
@paul23 are you familiar with Error Boundaries? reactjs.org/docs/error-boundaries.html
user1596138
Not necessarily what you need tho
Not familiar but the errors aren't javascript errors: just that the data is incomplete or not "right" yet (ie user hasn't finished writing his email).
user1596138
I'm sure you have some concept of global state or data stores in the app
user1596138
I would subscribe to a store using the components you wish to react to errors with, push errors into the store from components that should report them
17:57
Yeah, but storing the error is a violation of single source of truth: as the error is a direct calculation from the actual state (model in store).
user1596138
Then maybe you should be doing the calculation in the store rather than the component
user1596138
We don't have nearly enough information to make a proper architectural decision here tho
Well it's mainly a problem between: (A) single source of truth, so I do not wish to "save" the result of the validation test, otherwise the validation test stored value might run out of sync with the atual data. (B) validation test are computationally intensive, so I do wish to calculate these as few times as possible for each re-render. (C) logically the validation belongs to the component that actually renders the model, not the component that decides which model to render.

And (D) the component that decides which models to render should however display this value as "preface" to the act
i.imgur.com/xeDAzFj.png <in this image the "pay" buttons hold the validation, they are disabled if some validation fails.. -- However "Pay all", which is part of the parent container, needs to be disabled if a single button is disabled.
18:56
solution is to use Vue
IME it works a lot better with that kind of thing
the entire event system is gorgeous
of course it sounds like it's way too late for you to do that but just for future reference, the event system is what I miss the most when I'm working with React
pfffft
you got something to contribute
> I use Vue just so I can tell people I use Vue
whatever
I know that no one here likes Vue
It's not something I'd brag about to this crowd
This is fantastic anyway
I considered vue when picking tooling back in september
19:08
i was just trolling
ultimately chose for react as the advantages of vue weren't clear enough to warrant the smaller community
I think it's worthwhile to have some experience with Vue. It's definitely not a silver bullet but I think it's worth being familiar with.
just like coldfusion
coldfusion isn't a silver bullet?
@forresthopkinsa do you know Vue?
19:11
@DavidKamer sure
it doesn't take a lot of time to learn
Does it come with a router, etc or is it like react that way?
@forresthopkinsa To be honest, I am not really in favour of learning such toolsets "until the time comes". There's more than anyone can learn, and learning specific frameworks is worse than learning general tools for programming.
@DavidKamer there's an official library for it
what's up ya'll
so this is the code i have created to deal with extracting out pieces of information from a json object
@rlemon your advice, as always, lead me to a good place.
Any feedback or is this a good way to the task.
var a = {
    "data": [{
        "id": 1,
        "street": "streetnumber1",
        "address": "streetaddress1",
        "zipcode": "zipcode1",
        "carOptions": {"vehicles1": { "suv": {"color": "blue", "price": "500"},
                                      "truck": {"color": "black", "price": "1000"} } }
    },{
        "id": 2,
        "street": "streetnumber2",
        "address": "streetaddress2",
        "zipcode": "zipcode2",
        "carOptions": {"vehicles2": { "car": {"color": "yellow", "price": "600"},
@paul23 Well I'm not suggesting learning everything but I think React, Angular, and Vue is a pretty excellent tool belt
19:15
Angular for everything IMHO
I need a patreon. if it works for youtube, should work for SO right? 😉
@forresthopkinsa And just 4 years ago you would've said "jquery and extjs".
@paul23 Absolutely would've. And the tools will be different in another four years too.
The biggest proble with react is that the base-components tend to get monolithic/too large, since you have to constantly lift states up if you want to show some "detail" in a related component elsewhere.
But we're in 2019 right now so I would get to know 2019 tools
19:16
@forresthopkinsa In 4 years I most certainly don't have time to learn multiple frameworks.
huh? You can learn Vue in a side project in a couple weeks
@rlemon i just don't know if I like the Object.values()[0] shouldn't it be obvious
you need what's in the array
In my spare time I rather learn things I actually like like deep learning techniques and data analysis.
i like to learn new POE builds
Angular definitely takes longer but Vue has a very flat learning curve
19:17
@KevinB How's the new league?
the league mechanics are kinda.. meh
I do frontend just because I "have to" for my job, it's not the end of the road that I wish to achieve.
angular takes longer but everything is provided in the framework and material is king boss IMHO
the latest update made it a lot more rewarding
I haven't played in about a year
19:17
and easier to use
just throws it over the edge of total neeed
but the underlying crafting mechanic it added... it's like playing the lottery
Oh I think I heard about that
no implicits?
the chance at getting an item with implicits worth crafting on is so low that you basically just don't do it unless you have 3 items with full T1 rolls
@KevinB ... Well it's an online game, those always become lotteries
mmos are just lotteries with chat and some graphics added to it.
19:19
the exception to that is things like + skills
you can make a bow with three various +skills implicits for example
or a 1h weap with a +1 to all socketed gems implicit and two other useful ones
like ias or dmg
@paul23 hey, that's your call, man. I'm just saying that I think it's worthwhile to stay up to date with tools.
but, again, that requires having fracturered items with those stats at T1 rolls
anything lower than T1 will give you lower implicits that noone wants
sounds shit, i'll wait for the next one
@forresthopkinsa As you said: it only takes a few weeks: so I'll do it when the time comes.
19:21
i'm really enjoying the league tho, because i tried a new build and am loving it
mass summoner, i use specters phantasms in a 6l plus a +5 HoA crawler for clearing, and skeletons buffed by the crawler causing maim, me causing bleed/poison, etc for bosses
i spread EE bleed and poison using CWCH charged dash with ball lightning + gmp
curse on hit ring with proj weakness
This was one of my all time favourite builds
It was so overpowered to the point it should be considered broken
also, it's my first summoner build ever
i did CoC once, was tornado shot. never done it since, always looks so expensive
i prefer to play mostly SSF, so i avoid things i can't obtain on my own
Any CoC build is fun tbh, or was until they nerfed it into the ground
They added a new quiver that casts shit when you attack
it has 3 sockets
and casts the skills in it
I just use it to get 9 sockets on weapon swap for levelin stuff
@paul23 That's fine, I'm just more talking about knowing your options so you can choose the best tool for the job before you start
19:26
I used to run into random groups and CoC frost wall
shit was hilarious
they changed a lot with CoC and CWCH last league
like, reduced cooldown on the effect
19:47
Opinion on Dart/Flutter?
terrible names
regex help needs. trying for a number (decimals too) between -100 and 100 (inclusive).
here's what i have: /^(-)?(([1-9][0-9]?$|^100)(.[0-9]+)?)$/
I wouldn't do it with regex
just convert to numeric and use that (and the exception when converting fails too)
have you tried using a tool like this: regexr.com ?
@DavidKamer using it for a project soon
I'll let you know how it goes
19:54
it's weird that everyone is down on dart but up on flutter
it's a whole thing I never really knew about until today. Fullstack dart development is a thing apparently...
kinda weird
yeah, you can even transcompile it into JS lol. It's also a backend language
It might be a sleeping giant tbh
It's old already
@paul23 yeah, but so is Python
and it really picked up steam in more recent years
and it's really old
yes, but no one's going to claim that python will "replace" javascript - it has already found its niche.
19:58
wait, who claimed it would "replace" javascript?
Dart is doing what typescript also does.
"sleeping giant" seems to imply that: especially considering the main compilation target of dart is javascript.
no, it's more than that from what I understand
i don't think flutter is JS under the hood
And I don't think the web server is JS under the hood
nothing can replace javascript
except jquery
I agree that nothing can replace JavaScript
but if you have something that can compile into literally every target platform, that's something to take notice of
ehhh
I don't think Dart can do anything that Kotlin can't
20:00
ik it isn't that simple
and there are a dozen things that Kotlin can do that Dart can't
@forresthopkinsa you can create webapps with kotlin?
"sure" lol
Kotlin can target JVM, JS, or Native
20:01
You shouldn't think of it like that: what you need to think about is: what does the dart language bring to the table that allows for better programming
fair enough. Isn't Kotlin that language that is maintained in Russia?
so you could compile it into JS or you could compile it into WASM lmao
yeah it was created by Jetbrains
if you're not familiar with jetbrains, they're the biggest IDE company in the world
@paul23 my argument is a part of that more broader argument
yeah, I know what it is, just don't use it or install it on my computer
they make Intellij, Pycharm, PHPstorm, Webstorm, CLion, GoLand, ReSharper, Rider... list goes on and on
okie
yeah, I don't use any of those
20:03
@forresthopkinsa shut up and take my money!
I wouldn't advise anyone in the US to use any software designed in Russia or China at this point lol.
Maybe China
that's compeletely ridiculous
I use their tools since they give the same IDE (looks) with full support for 4 languages I mainly use
20:04
It's like using Red Star OS lmao
whatever
Kotlin is open-source
user1596138
@DavidKamer But all of my l33t hax0r scripts are from china
"l33t"
python (pycharm), javascript (webstorm), java (intelij) and c# (resharper).
user1596138
YEET
20:05
It removes a lot of the learning curve of finding and learning how things are called.
@paul23 I use all of those myself. Although I haven't done much Python lately and I only use ReSharper inside of Rider
@forresthopkinsa I'm not judging "the Russians", I just know there's a clear pattern of cyber security threats and what places are out of the reach of the rest of the world's justice systems
Well I don't use java anymore, last time was android studio (which is just intellij with a google stamp on it)
user1596138
I bet 007 would have an opinion on this
@DavidKamer Kotlin is an international project that was started by an incredibly reputable and pretty much universally-adored company that just happens to have their HQ office in St Petersburg
20:07
I always wonder why people from the US feel offended when you say you don't use their stuff since it isn't free, and based upon slavery by money. yet they use similar arguments for closing borders.
user1596138
@paul23 Never heard anyone say anything like that lol
@forresthopkinsa yeah, maybe I'm being overly cautious. But that was my reasoning on why I avoided learning it back when I first heard of it.
@paul23 yeah I don't know what you're talking about man
@paul23 well, communism is illegal here
so that argument rarely comes up
@DavidKamer look at the source yourself
20:09
@DavidKamer It, uh... is?
How the fuck did they outlaw communism
user1596138
hmm
@KendallFrey yeah lol, never been enforced in court but it's illegal
user1596138
🚽
@DavidKamer Source?
not sure how they're going to hide spyware in an open-source project that's being closely watched by pretty much everbody
20:10
Well I asked if there exist a free os for mobile phones, which isn't build or influenced by capitalistic companies from the united states.
two seconds
and it was closed for "opinionated" on stackexchange.
The Communist Control Act (68 Stat. 775, 50 U.S.C. 841-844) is a piece of United States federal legislation, signed into law by President Dwight Eisenhower on 24 August 1954, which outlaws the Communist Party of the United States and criminalizes membership in, or support for the Party or "Communist-action" organizations and defines evidence to be considered by a jury in determining participation in the activities, planning, actions, objectives, or purposes of such organizations. == Background == Created during the period of the Second Red Scare (1946–1954), the Act was one of many bills drafted...
still alive
that's why no US congress person is full blown communist
they're "socialist"
@paul23 how do you objectively judge if a project is "influenced" by capitalism
but that's just a guess
user1596138
20:11
@paul23 SOunds like you made an opinionated post
1) WTF
2) That's doesn't outlaw communism
@DavidKamer what in the world? you're crazy man
> which outlaws the Communist Party of the United States
@forresthopkinsa By having a single penny spent in the US.
@KendallFrey eh, it's a grey area intentionally
20:11
@paul23 LOL okay yeah sounds like a question that should be closed
user1596138
@paul23 lmfao
user1596138
Haters gonna hate
@forresthopkinsa Why, I just wish to support any country that goes against the US.
@paul23 Well that's just plain racist
technically communism calls for the murder of millions of people and theft, so it's kind of like inciting violence lol. I'm partly trolling btw
20:12
> Without a clear indication of the author's intent, it is difficult or impossible to tell the difference between an expression of sincere extremism and a parody of extremism.
user1596138
If I said that about your country...
user1596138
Wow
Poe's Law
just like people ask similar question for "technology not controlled by the chinese" - which got several answers and was upvoted many times.
@forresthopkinsa hey, I admit that's just a guess, not claiming it's a real thing
user1596138
20:13
@paul23 Because there's a valid argument about Chinese software practices... I.e. The Great Firewall?
I made almost the exact same post but replaced "chinese" with US.
user1596138
Government censorship and control. Things that are obviously bad lol
@DavidKamer Communism does, or authoritarian communist governments do?
@Jhawins Bad by western standards.
@DavidKamer communism is not socialism
20:14
Remember they are not everyone's standards.
@Jhawins "control" is a very vague term
user1596138
Bad by everyone in the world's standards including their own people.
@KendallFrey the call to communism by it's definition requires the theft and destruction of the rich, doesn't it?
user1596138
@KendallFrey True.
@paul23 where are you from
20:14
I'd much rather the government be in control than a rebellion or something
@DavidKamer Which "call to communism"?
Even though I greatly am against laws that invade privacy (that's why I'm nowadays hate hte US, they favour companies over protecting of civilian privacy).
@forresthopkinsa The netherlands.
fascinating
user1596138
This is the first time I've encountered someone proclaiming their hate for a country.. Any country honestly
So that's why I wish to make sure my money goes to countries that try to undermine the US, isntead of help them.
LOL
this is too good to be satire
20:15
@KendallFrey the process that marxist ideology does. iirc it's written down in Marx's works as capitilism -> socialism -> collapse -> murder and such -> communism
user1596138
You know this is a google indexed chat right?
Well I wasn't against it, it's just that constantly they invade privacy with each and every new administration they invade privacy further.
user1596138
These are not statements you want attached to yourself.
I am who I am.
quick someone initiate a wayback machine archive
user1596138
20:16
SOmeday you will ask us for asylum and they will see these lol
@Jhawins really, even for the US? I encounter it all the time lmao
I dislike countries not people btw.
@Jhawins oh if things go the way they're going he automatically be given the keys to every major city for saying he hates America lmao
user1596138
@paul23 Well, enjoy your USA based chat on USA based stackexchange LOL
half of the officials in any given city weren't even born in the US at this point (exaggeration, but yeah)
*major city
20:18
yikes
...
hide your power levels man
edge lord eXtreme
user1596138
I'm not going to get into this one
Nothing like controlling an entire city when you have a back up plan to leave
user1596138
20:19
I thought Batman had the keys to the city?
And you call me discriminatory?
hey, I love every race
but I'll quit, no point in trying to convince people.
being from another country doesn't make you a protected class. I can go to any country and I would never expect to be treated like a native
@DavidKamer Once you havea passport and am a citizen you should be.
20:20
It's not nationalism for India to treat me like a non-Indian when I visit
Otherwise you have different classes in society.
which quite frankly : is discrimination, the very definition in the bad way of it.
@paul23 well yeah, but if you're the president you have to renounce other citizenships
communism intensifies
@DavidKamer Of course, I'm of the opinion you should renounce it once you get your new citizenship - otherwise you shouldn't be given it.
user1596138
This conversation is probably pretty unwelcoming should any new users stop in.. If not intimidating heh
20:21
being a political leader has certain qualities that are exceptional to average citizens, that's all I"m saying. Not calling for any action based on that, just drawing attention to that fact
a wise man once said:
big oof
I mean China doesn't even allow dual citizenship anymore... I'm not saying that's a good idea at all, and it is in fact bad
do you disagree with that?
!!s/:/: The game/
user1596138
!!Caprica doesnt exist anymore
gnah
20:22
@paul23 classes are different than ethinicities and cultures
user1596138
Days since Caprica last spoke: 2
she's dead
till monday
user1596138
Rlemon is dead
user1596138
Right? Not the bot code
20:23
Lemon has been busy with networking stuff today
Cap got caught up
bot is dead and we killed her
murderers
user1596138
Can we rename the bot in memory of 007 lol
but 007 will be back
Caprica 7
20:24
Caprica Bond?
user1596138
Caprica 007
it's settled then
lol, I just reread that entire conversation, it was a big oof
user1596138
Are we going with Caprica Bond 00 Seven?
I think we should name it Born
oops, Bourne
or whatever it is lol
that series is so long winded
20:27
Caprica Bourne Again
user1596138
!!I am batman now
user1596138
Oh wait ignores self..
cool i added my json to the typecode project
let fetchedJson = fetch('https://my-json-server.typicode.com/xtianus79/sample-json/carData')
  .then(response => response.json())
  .then((json) => {
    // console.log(json)
    return json
})

var extractData = async () => {

    let jsonToExtract = await fetchedJson;

    console.log('blue', jsonToExtract);


    for (const [key, value] of Object.entries(jsonToExtract)) {
        console.log(Object.values(value.carOptions)[0]);
        console.log(Object.keys(value.carOptions)[0]);

        let red = Object.values(value.carOptions)[0];
I think someone should just manually do Cap's work
21:33
I dunno, losing the game would be much, much less effective if it were an actual human doing us.
hey
what are some interesting rest feeds or services?
asking for a friend
star wars api
actually starting a side project and want to test out something with react-native and rest
or swapi
good for playing around with lol
Came across this the other day, looks like a fun API
21:43
oh wow this I like ^
also swapi is fun
like that too
thanks for suggestions now to decide what to use
22:43
hey
22:57
@KendallFrey indeed, it's worse to discriminate against classes

« first day (3086 days earlier)      last day (2087 days later) »