« first day (2479 days earlier)      last day (2694 days later) » 
00:00 - 15:0015:00 - 00:00

Ah, I know that one
Check this Regex Cheat Sheet@HassanAlthaf
@towc atan and sqrt are really not expensive
I'm not entirely sure if you're joking
Is there any good tutorial on REGEX?
I still kinda don't get it.
15:05
but my world has been turned over many times over recently
Wanna learn a bit of regex. :D
Which part?
The \b and the two groups
@towc in chrome, Math.atan can run thousands of times and not exceed a frame
The regex website has too complicated words for me to digest. :D
15:08
I highly doubt math operation are what's causing a slowdown
rationale_for_es3_1_static_object_methodsaug26.pdf is dead @MadaraUchiha
I mean, fair enough
in my limited experience as an animation hobbyist, I remember trying to avoid atan as much as possible because it felt like it was slowing things down a lot. But might have been something else
Bergi is wrong though there @MadaraUchiha
\B - Not a word boundary, see here.
Hi guys,i shocked today when i saw that jquery ajax with application/x-www-form-urlencoded content responseis array with 6 lenght and when use application/json array lenght is 7, the correct one is 7 why application/x-www-form-urlencoded has data losss?
15:11
@MehdiRostami Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
(?= - about 3 min intro. from YouTube.
(?! - this is the negative version of (?=
@BenjaminGruenbaum What do you want me to do about it?
15:30
@MadaraUchiha fix it
Fucking mac copy pasting after cut
friggin mime types
HTML5 canvas is fun. :D
@HassanAlthaf very useful for regex too
is the person in the picture even indian?
15:43
not that I'm racist or anything (I'm so racist), but the nose is not nearly big enough
Mosho (don't want to ping you because you're probably doing something productive), you were right, atan and sqrt aren't causing any issues :)
@Mosho
I'm fine with pinging him
damn you :P
I mean, I guess if he doesn't want to be disturbed, he won't leave the chat open
@Mosho @Mosho @Mosho - he's not a baby - he's a grown man and can handle himself and mute stuff :P
15:48
stahp
omg I just rediscovered the mute button
HAMMAHTIME!
Lol I'm ignoring towc for science. Let's see how this goes.
but but but but but but but but
I... need to confess something
littlepootis, dear
we haven't known each other for long
but since we've met, our stories took an interesting twist
I don't know where I'm going with this
kept on writing hoping to come up with something good, but didn't happen
16:05
rick and morty night yesterday turned out to be a marathon
and they were selling special drinks with names like "portal fluid"
then I got a reminder that beer was still cheaper than water
today was wasted due to just being tired
got 2hrs of work in, still, which was good
Did I ignore everybody?
nope
changed the room topic to "JavaScript :: towc's LiveJournal
16:27
Import { Browserhistory as history } from 'towc';
17:04
What does Caprica mean by hammahtime
she is a bot. Its a stop; hammertime variation
halt
HAMMERZEIT!
@CapricaSix There's no space between "Please" and "don't" in your welcome message
@Abhi she is a bot, you can't talk to her :D Also, we are aware.
yeah but i think it's sometime run by a human
17:08
very rarely.
its hosted by rlemon
right..
that typo was fixed in 2016 by littlepootis github.com/Zirak/SO-ChatBot/commit/…
not sure why it's still there.
maybe lemon didnt pull that in
17:39
@Luggage it's now in a config.
well, in memory
I keep forgetting to change it
!!backup
@rlemon Donna Noble has left The Library. Donna Noble has been saved.
ctrl + f "welcomeMessage"
New youtube is good.
anyone watching/watched Olympus?
nope
17:42
netflix is worth the money just because of skip recap/intro
the cg is very obvious, but the show has still sucked me in
I fixed my girlfriends microphone
guess how?
I got my bert and ernie beside my bonsai now
I think it makes it look better
ignore the cup ring
Hollys sister doesn't know what a coaster is
:/
@rlemon have you finished American gods?
nahh
gave up on it like 4 eps in
might go back
when there is nothing else.
17:54
I did. overall, I'd give it a 7/10
Olympus so far is keeping my interest. I'm 7 eps in
due to weird logic wtf moments mainly
also, its overflowing with sex, not just that ep you mentioned. Without a particular reason
last two eps of Olympus have had like 25 sex scenes combined.
I'm hoping it's only because of the particular plot point right now.
I'm not against sex in tv, just don't put it in when it doesn't add to the plot
im not against sex in movies either. I'm against anything that is totally random and without reason, incl. sex.
ew, sex
18:11
wut? American gods was great
I mean, if not the plots, at least the effects
I didn't really watch it for the plot
18:29
obligatory "The book was better"
19:06
woo. i'm losing coolant. the first time it was low was december, and now it's low again\
@FarhadBagherlo Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
19:54
I know the article is kinda sad... but... littlethings.com/google-earth-deceased-mom/…
> Denise was shocked that the photos had managed to capture her mother doing one of the things she did every single day: gardening.
are you serious?
20:10
> mundane things
> shock
also shit article
> Do you believe Beryl wanted her daughter to see those photos?
summs it up.
higher power mumbo jumbo
20:25
@RoniqueRicketts Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
20:43
Is there any way to avoid allocations with XMLHttpRequest or fetch where you can reuse your own buffers instead of allocating new ones on each response?
looks possible
21:31
Heh, it's my 6th SO anniversary today
congrats
does anyone know how to do a shorthand if statement, i thought it was this
(x ==2) ? console.log("hi")
You're looking for &&
But it's worth noting that it's not recommended to use that notation unless you have a good reason.
instead of the question mark?
i just have a bunch of repeating if statments and wanted it to look abit more tidy
@RachelDockter Code?
owner = assignTerritoryOwner(owner, colorLeft);

if (owner == 'void')
{
  break;
}

owner = assignTerritoryOwner(owner, colorRight);

if (owner == 'void')
{
  break;
}

owner = assignTerritoryOwner(owner, colorDown);

if (owner == 'void')
{
  break;
}

owner = assignTerritoryOwner(owner, colorUp);

if (owner == 'void')
{
  break;
}
21:35
1 message moved to Trash can
@RachelDockter 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
i clicked format dammit
i just want a 1 liner for a simple if statment
Yeah, you wouldn't be able to do it with break
break is a statement, not an expression, the && trick only works with expressions
oh really, bah im stuck with messy code then
1 message moved from Trash can
you should probably consider refactoring your code. lots of if statements are usually a sign of bad data handling. you can also use switch statements
21:38
if i was in a for loop and then went in a function and used break. Will it break out of the loop?
What's the code trying to do?
if so that would make it very easy
No, the break must be present in the body of the loop
its checking the surrounding checkers and seeing which player it belongs to, for example. It checks colour left which is white, the variable owner is now white. It then checks right, the colour is black. as the 2 colours are conflicting, it will set the owner to void and break
thats why i have to check if its void every time
hi @david im still working on GO from months ago lol
What's the goal?
21:42
for that bit of code? or overall
This bit
Determine which player owns a square on the board?
Ah, I see, you're coding Go
which player owns an area on the board. So if i made a circle, im checking every square inside that circle
But counting an area is a bit more complicated than that
You can have a large area with lots of empty squares
ive already counted the area, im just trying to make the code look a little neater
Well if (owner === 'void') break; is a one lner
21:45
yeh im gonna have to use that
heres what ive done so far in terms of counting the territorys
its probably the hardest thing ive ever programmed
Neat
I'd love to see the code once you're done, if you're willing to share it.
thanks :) sure i dont mind sharing. Its only for a university project so im not gonna make any money off it or anything
it looks a mess now in terms of the html elements but ill clear that up after the functionality is done
22:03
hi @RachelDockter, how is it coming along?
very good, ive done the hardest part, still a long way to go though
Hmm, why are you using the string 'void' instead of something like null or undefined?
If you used one of those you could just put lots of if (!owner) { break; } statements
erm there was actually a reason when i was doing it earlier, im gonna see if i can change it
that would be alot more tidier
would u be able to take a look at this pastebin quick please. I have 2 ways of doing the same thing but the 2nd one is messing everything up although i tried it make it have the exact same outcome
you're using both 'void' and 'none', is there a difference? javascript will treat them as different
22:11
yes, void means its not a territory and has no owner. none means its still up for grabs for example the edge of a board can be used as anyones border
if i can ill change void to null if i manage to get this working
no in that case keep it separate
that sounds like an okay reason
yeh null and none would still be seperate
but its just for some reason if i put it in a function, it messes everything up
in the pastebin
yeah reading your function it looks like it should still work
i can't see any difference
idk if i value 2 hours of time fixing it, or just having it look a little messy
user7613413
hi
22:19
hi @TheBeast
user7613413
whats up @RachelDockter
just fixing bugs
and dying inside
user7613413
need help
user7613413
i have no more projects left
user7613413
i am a webdevolper
22:23
sure, if u can spot the different in functionality between these 2 functions, it will make my day - pastebin.com/H1P5Xufi
user7613413
i make on advage 2.3 million a year
i doubt it but ok lol
user7613413
no seriously
are u a web dev for the us government or something lol
no web dev gets paid that much
user7613413
i own my own buisnesses
user7613413
22:26
i have 6 different
thats pretty cool
user7613413
i have my own work crew
user7613413
300 people in all my businesses
sounds like alot of hassle
user7613413
user7613413
22:31
yeah it is
am i blind or did nothing change
user7613413
most of my money comes from my cattle
user7613413
i also own a ranch
user7613413
i have workers
user7613413
nothing changed
user7613413
22:33
that is a program my developers wrote a long time ago
well it doesnt look very useful if nothing changed lol
user7613413
lol
omg ive figured it out
in the first bit, if it went passed all the if's. the owner wouldnt change. but in the function, if it went passed all the if's. It would return undefined
im a genius
ohh nice
thanks :D
aw its american only
hey guys,
@Scarass Welcome to the JavaScript chat! Please review the room rules. Pleasedon'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.
hi scarass
hey @david im not sure how well u know the technical bits of GO, but would u know who gets what territory in this case? - gyazo.com/8069ebbc44d850b731c1b2ffc83edfe9
sorry if im bothering u :P
Hey guys,

I just got this crazy idea that somehow, because of something you can't use bootstrap in react app? That's not ture,r right?
And I think I might have heard that somewhere...
But, that's not the case right? I mean bootstrap is just a lot of CSS classes. All that you need to do is put any CSS class you want in className property in component; and include bootstrap in html file?
23:02
@RachelDockter Yeah I'm not sure, i know only the absolute basics
ah ok no worries
It's possible that you can't actually tell yet
so it's all undefined
yeh thats what i hate about GO. alot of the results seem to be dictated by human judgment and not like a formula i can program
@MadaraUchiha grats
@Scarass as far as i know, yeah. bootstrap is css, should be able to be applied to anything. whether the react components have the right html markup for bootstrap to make them pretty is another thing
23:13
"whether the react components have the right html markup for bootstrap to make them pretty is another thing" -> I didn't think that matters. Because React components are transpiled into html at the end, right? So I guess it should be the same?
no, I mean I use react-select for my select box controls. But the HTML created is a text input with a hidden list of options and the js and css does the magic of making it look like a select box
that control may not work with bootstrap, it might conflict with the style of the control
but on the whole, I would say bootstrap would work with most react compontent
I dont' get it... Are you saying that some react components have some style automatically?
no, they dont
You can use bootstrap with react
I havent used the newer bootstraps, my last experience with it was version 2
23:20
there is also react-bootstrap as well
but you control your react markup so it doesn't matter
i just know some things we used had to be tweaked to ensure the correct classes were applied to the correct elements
<myThing className='allthebootstrapclasses'/>
i didnt want to say a definite yes, but it seems like loktar has answered for you :)
okay, thanks, I still don't get it, but ok if it should work
a select2 tag box had extra <div> wrappers around the <input> elements. So bootstrap's selector was looking for <div class="form-control"><input type="text"> but select2 was rendering <div class="form-control"><div class="select2-control"><input type="text"> so the css didn't get applied. I had to tweak it to work :)
23:27
@Loktar bootstrap has lots of js components too
yea
@RachelDockter sorry dude but i think you make wrong @david as it notif me instead of correct david
oh oops lol
is there really lots though? I mean there are some, but meh I assumed they were talking about styling mostly anyway as in @hsimah example
23:30
well, I guess lots is overstating it
also I need to turn pings off when in pubg holy shit
I almost had a heart attack when I got pinged
was in a tense situation in a house and then PING!
lol
whats a pubg
if you tag @david it will tag all the people called david on the entire site :P
@Loktar PIINNGG
@Loktar oh this is that game that stonemountain64 plays in those ridiculous videos
23:49
o/
A burger restaurant named Holy Cow
what has the world come to :P
could be worse...could be an indian temple
00:00 - 15:0015:00 - 00:00

« first day (2479 days earlier)      last day (2694 days later) »