« first day (2085 days earlier)      last day (2868 days later) » 

5:00 PM
oh no, opening a port
 
or just ngrok?
 
damn popstate, ruining my day.
 
FUCKING AWESOME STUFF @NDUGGER nickdugger.com fantabelous resume!
 
all my navigation is perfect except for trying to 'cancel' a back button press.
 
@ssube you want to help me with something, opinion really. You the car guy right?
 
@Luggage browser?
 
5:12 PM
yea
 
I mean which browser, have you tried testing it with other browsers?
 
i am testing on chrome, but I think its the same in IE
 
@ndugger really?
 
really what?
 
it's nothing wrong.. just that when they click the back button, I don't have a way to "cancel and return the url to what is was" since I don't know if they want backward or forward
or maybe I do.. I'll look up popstate docs
 
5:15 PM
@ssube You there?
 
Plese don't abuse the user ping feature
 
@Tarson buy cars based on appearance.
 
Finally , work week is over
 
@Luggage that how you ended up with a cockster?
 
I'm happy with my cockster, ty.
paid off, ages well.
 
5:21 PM
Where to find freelance work?
 
everywhere. everyone needs software.
 
I'm pretty sure I could earn more doing freelance work than working at my current position :D
 
well, except for being miserable the whole time
 
huh? I find it the other way around. I am happier doing freelance
 
5:23 PM
I just want that sweet sweet money
 
though.. i have one long-term client and am not constantly selling myself..
 
Is there a canonical way to change the title of the page in React? Do I dispatch some kind of "CHANGE_TITLE" event when a componentWillMount?
 
I make less than a full-time job, but only bill like 10 hours per week and am happier
 
@Luggage that's a good gig. Changing every 3-6 months is not.
 
yea. i can see that.
 
5:24 PM
I earn 3 euros per hour , I'm pretty sure theres some freelance work that pays better :D
 
picking up coins off the street pays better
stealing chocolate from children pays better
 
if that is the rate in your area, then that is the rate. though.. if you can get remote work..
mind if I ask where that is?
 
Yeah , I'm testing my luck with trying to find remote work. Some freelance remote websites require you to be from the USA though :/
I'm from Croatia
 
@Paran0a fuck you then
for the 2-1 against spain
:3
 
l2p noobs
 
5:27 PM
hahaha, the old spain would've raped you
 
like they did to the americas?
 
yeah yeaaah
 
too soon?
 
That portugal match though , broke my heart
and they're still playing like that :D
 
Well github.com is offline. SHIT!!!
 
5:34 PM
@Luggage Yeah but I'm upgrading the styling
Well anyways help me choose I have a Black C300: DTM lip spoiler jl-motoring.com/ProductDetails.asp?ProductCode=MBTS0408 or AMG Style: jl-motoring.com/ProductDetails.asp?ProductCode=MBTS0403
 
meh. I outgrew gluing plastic to my car
 
@Luggage Carbon Fiber
 
That may have sounded condescending, but I don't mean it that way.
 
I'm not putting a GT Wing on my car, not that gay lol.
 
I like the splitter in that first link, but I still feel it screams "I did this to my Honda Civic, too".
 
5:39 PM
@Luggage I got that same rear diffuser as well, I think so too but being that it's genuine CarbonFiber Honda civic drivers don't have that, they have 3M CarbonFiber
 
it's actually a fairly tasteful spoiler, but I just kinda decided "no more" a while ago..
 
@Luggage I think I'm sticking with DTM I feel like the smaller lip with the black paint its not even worth.
@Luggage Thank you for helping
 
@Luggage did you find a solution to this? i wanted the same functionality last year and i just set a uuid to each state. kept a history array of the uuid of all viewed states, removing the uuid if the user went back, etc.
perhaps you found a bit more of an elegant solution
 
well.. my issue is that when the user click an internal link, i can ask "do you want to save changes" and then abort, never changing the url
but if they click back, all i get is the new state. I can still ask if they want to save changes, but it's just mkes everythign more complicated.
I just wish that is popstate is being called, i could abort it.
 
oo okay
well is it some kind of modal window that asks "do you want to save changes?"
as imo, i wouldn't consider that a history state
 
5:43 PM
i have a nice clean window.history.state object.. but I can't tell if they are there because they clicked back or forward, so i don't know how to 'undo' the history navigation
 
@Luggage don't consider modal windows or dialog boxes or prompts etc. as a history state
 
they aren't.
 
oh
so maybe i misread
 
the modal is just asking the user if they want to cancel or continue a state change
 
and if they click back
during the prompt
 
5:45 PM
that's also a problem.
 
heh
 
otherwise, my back button handling is perfect.
 
well then i do not fully understand, sorry
 
only "canceling" is a problem.
 
"but if they click back, all i get is the new state"
 
5:46 PM
yea, ok
 
can you elaborate here?
 
well.. i get new state. either the url or whatever. I kno how to turn that into the requested page, but my code say "hey.. the current page is dirty, let's ask them if they want to save, discard changes or abort"
SPA, of course.
"OK, they aborted.. but I don't know how I got here. Did they click back?"
 
okay
 
Most navigation happens by me using .pushState, then updating the view, so I can just abart and choose not to call pushState
 
well my solution to that problem is to assign uuid to each state, remove the current from the uuid history stack if the user went back. so the uuid history stack only contains uuids from states from, well, the history
 
5:50 PM
I don't see how that changes anything..
 
so if the current uuid isn't in the history stack, it's new. if it does exist, the user navigated back
idk either, it's just a solution to the "how can i tell if the user went back or forward" problem
 
ok, well.. maybe.
right.. then to undo, if I call history.go(x), I'll need to know to ignor the next popstate
 
@Luggage keep the last op on your redux state equivalent and use that to know?
 
so.. yes.. that could work. I already have a system that all pages have a state object like : { routeName: 'xxxx', args: { ...} } so adding an id to that should be simple.
No redux.
the uuid array just replaces the fact that I can't get a list of all the history entries and tell where I am, which I think should be available in an SPA
the history entries for my domain only, of course.
 
Hi guys
 
5:56 PM
@bitten so any time i get a new uuid (or no uuid), I know to discard all the items on the array after the last known current id?
and replace them all with the new one?
 
@Luggage yes. if the uuid exists in the state, then just remove all the ones ahead of it
 
well, there is still a forward history
I think I only want to remove when I get a NEW entry and I am not at the latest.
I'll have to play around with it.. but I get your general idea, even if we don't agree on the specifics
 
well the idea is that if the uuid doesn't exist on the stack, it's a state that has arrived by the user going forward or it's a new state
 
right.
 
i only wanted to know if the user was going back, hence this solution
 
5:59 PM
I wnt to know where I ws in relation to where I am.
e.g. Was I 3 ahead in the history?
So that I can, hopefully, undo a state change without discarding everything in between.
 
oo okay, perhaps my solution does not fit
 
no, your idea works, I just altered it.
 
are you going to find the state's position on the stack? and if you know the length of the stack, then you know where you are at
 
yea, exactly. I want to know my position on the stack before and after a popstate so that I can choose to undo, if I desire
 
well, godspeed ^^
it's a shame this stuff isn't native to the history state
felt like a big hole was missing when i was working with it
 
6:04 PM
It is. If I could simply cancel any popstate...
it's all my own app, so canceling isn't some security risk..
I'm not asking to cancel navigating away (though I do that too in beforeunload for the same reasons)
 
Holy shit, Taiwan just accidentally launched a missile and took down a chinese fishing boat, killing the ship's captain.
And then there's a gunfight in Bengledesh, for fuck's sakes.
 
!!popcorn
 
@Trasiva "Accidentally"
 
@Luggage No shit Bangladesh has seen a boost in radical islamists too. Just the other day a branch of Al-Qaeda killed a priest that was picking flowers.
 
6:09 PM
Cue WW3
 
@Luggage well i'm sure there's a workaround.. somewhere
i can't imagine it being elegant
 
@BenFortune No, I'll bet it was an accident. The missile didn't even detonate.
 
or just campaign to add it to the specification
okay too much
@Trasiva how did it kill the captain if it didn't detonate?
 
@Trasiva Oh :(
 
talk about standing in the wrong place at the wrong time rite
 
6:10 PM
well, it's not like someone has to push detonate right as it hits, right?
 
@bitten It still tore through the fucking ship. Probably hit him.
 
that might be becasue the missle didn't encounter the type of surface it was designed for
 
@Luggage is that a thing with missiles?
if so TIL
 
@Luggage No, but most modern ballistic missiles require require arming prior to launch, plus most of them have a 'minimum safe distance' before detonation.
 
it was meant to trigger near a big piece of metal, not boat captains
 
6:11 PM
@Luggage it's a shame that the guy died, but this made me laugh
 
but the missle can be armed to launch but not explode? that's just drone delivery of explosives to your enemy
 
if(collision.material == "fleshy") // nu uh
 
@Luggage Still safer than a missile accidentally hitting say, the launch hatch and then blowing up the entire base it was in.
 
well, yea, i get minimum safe distance.. are you saying this boat was right in front of the launch point
 
How the hell do you "accidentally" launch a missile though, surely there are protocols to follow just to launch one?
Not just some exposed button
 
6:13 PM
pointing at boats for fun?
training gone bad?
 
Multiple people will have had to get coords, get authorization, prime for launch etc
 
It's Taiwan, we don't know what exactly went down, probably never will.
 
f all that. when you need to fire a missle, you don't want to wait for paperwork
 
Needless to say, someone's going to end up mopping the floors the rest of his life.
 
it's not a nuclear warhead
 
6:15 PM
Waiting for some "we were hacked because our launch platform was connected to the internet"
 
@BenFortune see, you say that, but it's china
 
wasn't it Taiwan?
 
It was, yea.
 
s/Taiwan/"I'm not China, I swear"/
 
I was watching Vice the other day and they were showing them launch a missle that was designed for aircraft from a metal cart.
in Libya.
 
6:18 PM
complete with rich kids and their british accents?
 
no.. libyans screaming Alluha Akbar
but close.
 
> So, I'm over in this country now, and it's so strange, it's all sand instead of rain, there's no ferris wheel, in fact there's no thames at all, but my parents did pay for me to come over, and look over there, some of those people are dressed funny and I'm not sure what they're saying, but they probably want to help me. I'm so startled. -- Vice reporters everywhere
 
Just seen an advert for a reality tv show called "Rich kids of Instagram"...
 
if you are talking about Vice, I think they are the opposite of the naive image you prtray
 
6:20 PM
No, it's literally rich kids showing off on Instagram
 
you may disagree with their often liberal views, but they do investigative journalism more than most things you can find on TV.
 
@Luggage every one of their specials I've seen has been some early-20s kid ham fistedly munging their way through a super touchy issue in a foreign country without any knowledge of the culture or situation.
@Luggage they're not liberal enough
 
which is still more informative than most things on TV..
 
> This Cutting Edge film explores the jet-set world of the young and super rich, who share their luxury lifestyle and the lavish trappings on social media, from Kazakhstan to California
why
 
6:21 PM
they're generic country club conservatives
 
@littlepootis My thoughts
Okay, starting a new personal project. What's everyone's to-go-to boilerplate for Node/React/Webpack?
 
your alternatives are 24 hour trump channels or vice.
didn't you have a react/webpakc boilerplate, ssube?
 
Sort of, I can probably adapt it. github.com/ssube/web-template
I fancy something new too, Hapi maybe
 
@Luggage it's sort of old now
but yeah
@Luggage I read a combo of CNN, BBC, and Al Jazeera personally. Seems to cover most of the factual bases.
 
yea.. shame al jazeera isn't here anymore
the channel, i mean.
 
6:29 PM
they're a nice non-NATO source of news
 
hi
 
@corvid dont even need it for VR
the RX480 is $200 and works for VR
 
everyone should get the 1080
 
Hey guys -- this isn't strictly a JS question but that happens to be what I'm writing in. Im trying to write an algo to randomly place 100 circles, evenly distributed, without overlapping. My current attempt just hangs the browser (infinite loop somewhere?) so I need something better. Question here if you wanna take a look at it. Thanks! stackoverflow.com/questions/38151767/…
 
6:44 PM
@Prefix there are algorithms for that
look into how voronoi diagrams are done
 
@ssube awesome -- didnt know the name of what I needed to search for. :)
 
@ndugger I looked at it but I do worry about dx12 perf
waiting until Vega is released later this year before making a decision
I'm building my new PC around Nov anyway so I have some time to wait it out
 
@Loktar Why do you think AMD is better for DX12? My test yesterday with DX12 on worked perfectly smoothly
 
> Report: Total War: WARHAMMER runs 27% slower in DX12 on NVIDIA’s hardware
because of issues like that
Async compute is supported on the HW level for AMD cards
 
Is that the only title?
 
6:47 PM
there are only a few DX12 games out right now
that's my main concern really since DX12 is the future and I'll probably stick with whatever card for 2 years
 
I'll run my benchmark when I get home on Rise of the Tomb Raider and see if I get more or less FPS with DX12 on/off
I'm curious
 
@Prefix Here's a pretty good article about randomly placing circles that I read a few years back.
 
@ndugger yeah curious as well
 
Also, in that article, they didn't use a 1080 or 1070
 
you know... you could probably run super sampled as well
yeah they used a 980ti
 
6:49 PM
they used a 980Ti
So maybe 10series got magically better? lol
 
it should be better for sure
it's the most powerful card out right now by far
just waiting until Vega benchs to make a final decision really
 
just get the 1080. ONE OF US. ONE OF US. ONE OF US.
 
but yeah you could super sample to 1440 or even 4k on your 1080 to make it crisper, I bet your card will handle that easy
nah I hate nvidia honestly
 
I don't know how to super sample
 
6:50 PM
shitty business practices
should be in the settings of your drivers, not sure what nvidia calls it
 
I'll take a look at that also
I have leg day with my PT before I can go home and test this all out
 
omg who pinned my message <3
 
@VeronicaDeane Your message was amazing baby cakes.
 
7:15 PM
Not better than mine
2 hours ago, by ndugger
http://nickdugger.com/
 
@ndugger But your joke's old now. :(
 
your mum's old
 
@ndugger Hey, you work with ES6, right?
 
I am ES6
 
Mind doing a code review quick on a small thing I wrote in jsfiddle?
 
7:17 PM
Sure
 
that's not es6
Oh wait, my sound was muted
 
May 20 at 15:31, by Trasiva
Ugh, why isn't this working? https://jsfiddle.net/Trasiva/fu372n2k/
 
Huh...Kevin did some sleuthing.
 
I didn't even get to hear it
I just knew the fiddle from earlier
and saw that the chrome tab had the audio icon
Can't fool me
 
7:19 PM
Was it really only May when I made that?
Huh...interesting
 
feb
i didn't pick the oldest
:p
 
Lol
Wow, I've used it three times. That means I need to come up with something new for next Friday.
 
you need a way to make it less obvious with the line numbers too
needs moar html
 
Well clearly
I put that together in like 4 seconds.
 
just sayin :3
 
7:21 PM
Ohhh, timed alerts to the tune of the song.
Nah, that one would get me kicked hard.
 
switch it to a jsbin and output lyrics into the visible console
 
@Trasiva what happened at 2:58?
 
@bitten They didn't know how to turn apparently.
 
@Trasiva or .. brake? :,)
and i've always wondered if something like 5:21 would be recorded on video..
i finally get to see it
(hope he's okay too)
 
7:31 PM
What do I need to know to fetch messages that include a string in a specific StackOverflow chat room?
 
@SomeGuy Yep, one of those ideas that grips you and won't let go until it's realized.
 
7:45 PM
So I ran make and this popped up
 
@littlepootis Praise be to Gaben, may he suck the wealth from our wallets forever more.
 
Hi all I cant seem to get my alert to pop up for more than a split second
 
1 message moved to Trash can
@Skullomania Please don't post unformatted code - hit Ctrl+K before sending, use up-arrow to edit messages, and see the faq.
 
$(document).ready(function () {
        $(".alert").animate({'opacity': 'toggle' });
            $(".alert").delay(30000).fadeOut(3000);
    });
hears crickets
 
user2620028
makes cricket noises
 
7:54 PM
well...that's better!
 
user2620028
just didn't want you to think you were crazy
 
user2620028
hearing cricket noises without something making them
 
we...were all just a little mad @HatterisMad
 
user2620028
im a lot mad
 
has to be...your the hatter!
 
user2620028
7:55 PM
@benjamin his last name was facial
 
user2620028
@benjamin should have offered to accept other methods of payment as well
 
@Skullomania You know the drill by now, if anyone wants to lend a hand, they will.
 
...not sure we want to know his first name...
@Trasiva i know...Im not gonna spam it
the first post was a slip up...trying to get something done before the weekend
 
Also, a mcve goes a long ways.
 
user2620028
can you put it in a fiddle where it can be reproduced?
 
user2620028
7:57 PM
yeah what trasiva said ^
 
i was thinkking of that...not sure why i didnt
 
m59
@SomeKittens You use FRP on the regular, right?
 
user2620028
@skullomania get in the habit of doing it, just doing that may lead yourself to figuring out the problem which in turn will make you a better developer
 
user2620028
at the very least it will assist someone looking to help you OR it will help you ask a better question
 
It shows that you put real effort into the solution, with the number of vamps that come here it will raise the odds of someone lending a hand. Though you have to remember most people here do have a tendency to try and avoid jQuery where possible.
 
8:00 PM
Here you go guys...i apologize for the confusion earlier
https://jsfiddle.net/euzxjm5c/
@Trasiva I understand...I never want to come off as a vampire
troll definately!
hahaha
 
Oh...it's because it's not a queued event. Delay works for animations that are queued together.
 
FK MeteorJS
it completed installing just now
and then i got and do meteor --help in a starter project directory and its installing 1.x allover again @corvid help!
 
I'll help. Don't use Meteor.
You're welcome.
 
Just tried out the Gear VR. It's definitely better than I thought it would be, but it's not something I could spend a long period of time in
 
@Trasiva aaah!
 
8:10 PM
@Luggage lol, job stuff can't bail out
 
It's completely new development but you don't have a say in what you use?
 
@m59 No, I stay away from buzzwords and try to stick to real programming
 
i want to buy the cool vr stuff....but my kids and my wife brings up this "necessities" stuff
 
@Skullomania Food is for the weak.
 
that's what I said!
 
8:13 PM
@Skullomania By the way, that toggle is an awful choice too.
 
m59
@SomeKittens rephrased: are you really good at doing things with RxJS, etc? I keep trying my hand with that stuff and failing. However, I'm trying to rewrite tap-parser and the amount of state varaibles and conditions is overwhelming.... I need to up my game.
not sure how
 
@Skullomania Check out this fix
 
Yeah, I've done a bunch with RxJS
though specifically Rx5, dunno about 4 (mostly the same)
 
@Trasiva great song choice!
 
m59
The solution to a bunch of state variable complexity, as I understand it, is functional programming, and I'm dealing with a Writable node stream, so using Observables seems like a way to go
 
8:15 PM
@m59 Take functional with a grain of salt
Debugging functional is hell.
 
m59
I wrote tests and this is my attempt to get them to pass... much more to do and it's already horrid. pastebin.com/QGp9DEu5
 
m59
My brain can't manage any more than that, but I don't know how to abstract something like that
 
yikes, that's a fiendish pile of if statements
 
m59
Exactly.
 
8:19 PM
@Skullomania It was relevant with the fadeout. Do you see -why- my solution is a better approach?
 
your first solution or your second
the first removes unnecessary code
 
The second, you're not using toggle to make it visible, and you're using vanilla JS for the timer.
 
and uses delay in the proper manner
why would I choose to use window timeout instead?
 
When you use fadeOut, it sets the the display property to none, so you can fix that by tweaking it to nothing.
Well, for one, delay actually locks out the control being faded out until it completes.
On top of which, you can do -more- within the setTimeOut as applicable, or even turn it into a function call instead of an inline function.
 
I watched the display none in the inspect element
 
8:25 PM
Keep in mind that I'm not 100% against jQuery, it certainly does have it's uses, and if you want to go that route, that's your prerogative. I just offered a cleaner, and more dynamic delay option.
 
@m59 not sure how Rx would help you here
 
I use it because its what I know more of. I can use javascript as well...I just do not know it as much as the other
here is an example of some javascript I recently did for a local business
 
m59
You have to look at the line (B) after each line (A) to see if it is the start of yamlish. If it isn't, then you can emit stuff for A. If it is yamlish, then you keep accepting lines until the line is a yamlish closing tag. When you get the closing tag, emit A. Unless it turns out that the yamlish only appeared to be yamlish but turned out to be invalid, in which case you can emit A without adding that stuff, and then emit that stuff as individual B's. And there's more stuff....
 
check out the list grid/ responsive design
 
> adb must be a politician or a UI developer as its position is relative.
heh
 
8:28 PM
more jquery
alright folks have a safe weekend
and happy 4th
 
@Skullomania I mean, you at least do understand that jQuery is a js library, right? It just handles most of the heavy lifting behind the scenes?
 
@Skullomania are you wondering about how it's done?
 
@bitten He's saying he made the page and was giving an example.
 
oo okay
 
yes
^^ what she said
 
8:30 PM
well, it's well done
 
@bitten thanks man!
 
your menu is also an example of why bootstrap menu's are a bit annoying (imo)
you can't click on the "top level" link
 
@Trasiva there are others that would argue differently
 
@bitten he is menu?
 
@ndugger lolol
 
8:31 PM
more and more people look down on jquery nowadays
 
There's a reason for that.
 
@ndugger but WHO WAS fone??
 
@bitten ET fone home?
 
Hey guy
guys*
 
8:57 PM
!!afk Hmmm, guess I should get this work done.
 
9:11 PM
aww, ethan is helping out louis :3
 
9:25 PM
Cymruuuu!!!
 
10:22 PM
@Skullomania - Oh, why? Because too many people know how to use it now?
 
@Hill 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.
 
Is Caprica Six here??? lol
Sorry
 
11:05 PM
@Hill it's a bot
good night guises
 
11:55 PM
@Hill she loves you
 

« first day (2085 days earlier)      last day (2868 days later) »