« first day (2113 days earlier)      last day (2835 days later) » 

8:01 PM
@BrianJ .ToString("o")
 
tried this
esc.OutageStartISO = esc.OutageStart.Value.ToString("yyyy-MM-dd HH':'mm':'ss");
maybe o better
 
still not ISO
but keep guessing. No one on the internet knows
not google, not the moment docs
 
                esc.OutageStartISO = esc.OutageStart.Value.ToString("o");
 
good... now delete the rest of your code. it's all wrong.
you convert the moment out to two different string formats and back
 
ok
 
so
var outageStart_UTC = moment.utc('@Model.Escalation.OutageStartISO').format("DD-MM-YYYY HH:mm");
where OutageStartISO is
esc.OutageStart.Value.ToString("o");
 
passed in from c# side
 
> TIFU by pissing on a toddler.
This should be good
 
looks correct so far? @Luggage
 
8:08 PM
@Luggage was it saying that objects that are inside of objects are a circular reference? Or I must have broke it
 
1 message moved to Trash can
@BrianJ 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
 
@BrianJ Stop outputing th string in a non-standard format! I'm done
 
1 message moved to Trash can
@BrianJ 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 fucking give you an eample and you keep posting the same broken code
 
I wonder if zlago counts as valid JS variables
 
8:10 PM
@ndugger only if it's the SAME object.
to prevent infinite loops
 
It's not. I must have broken it
 
the same object with a different path.
 
@Luggage my bad
long day
 
@CapricaSix cowsay fixed-font
 
@Incognito yes
typically
JS variables may have unicode names
 
8:11 PM
!!cowsay fixed-font
 
 ___________
< fixed-font >
 -----------
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
I forget how the robot works :(
YES
 
!!cowthink maybe read the docs?
 
 _____________________
( maybe read the docs? )
 ---------------------
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
!!cowthink !!cowsay I am the docs.
 
8:12 PM
 ________________________
( !!cowsay I am the docs. )
 ------------------------
        O   ^__^
         O  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||
 
how can I possibly tell?
 
see what you mean now about the formatting
I'll grab the val being passed over in c# now
 
hey, does somebody knows why [] == false : true and also ![] == false : true ?
 
@Illiax 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.
 
8:16 PM
I fixed it... just a misunderstanding of how Immutable works as I tried to rip it out on my own
put it back in for now
 
ah.
 
Also, you don't have cases for Map and Set, so I'll add those
 
ohh yea, forgot about them.
and typed arrays
 
"2016-07-28T16:15:00.0000000" this is the value got in C# now @Luggage
 
edit that to show a problem if you still have one
 
8:19 PM
ok that looks correct, but what's to say this will work when published to server? guess I'll just try now and see
will do
 
expect(new Target({injector: {getDependencies: () => []}})), well, I'm gonna need some code reviews on this sumbitch
 
@Luggage ArrayBuffer too, if that falls outside of typed arrays
 
I forget. The types supported by json will be the most-used, of course.
 
Yeah, that's true
 
I probably won't touch this until tomorrow sometime. post a gist or something if you get anywhere and I'll bring in your changes. I'll eventually make a real repo if you don't.
and if you make multiple styles, call this one "cfdump" since it's a clone of that.
 
8:26 PM
I'll have to make a real repo at this point; I have many files vs one now
will do with the style, though
 
hmm so passed in that ISO and called toLocal on it
displays the utc time not the local
 
edit the sample.
 
ok
 
actually, i need to go.
There is beer that needs drunk.
2
 
cool thanks for help
bit closer to cracking it I think
actually beer sounds good
im outy
 
8:30 PM
@BrianJ one thing you could do...if this is in Javascript, call new Date( your date );, it will convert it to browser's locale..
 
peace
ok maybe
I think maybe I'm resetting the value on the picker somewhere by mistake
 
@KendallFrey @rlemon Friends are taking a holiday to Vancouver. Any suggestions for them on the trip?
 
I don't know much about Vancouver
 
You've let me down Kendall :(
I mean, not really. That'd mean you'd have to leave your parents house.
 
In terms of Canadian stuff, find a poutine shack and get themselves some sloppy poutine.
 
8:34 PM
hmm, new Date(
"2016-07-28T16:15:00.0000000" ) returns: Thu Jul 28 2016 10:15:00 GMT-0600 (MDT)
it should work :/
 
@Trasiva I've been to places you don't even know exist.
 
yes think I'm funking it up somewhere else
let me tinker with it a bit more
or ....
 
ok, good luck
 
beer
 
lol
 
8:35 PM
@KendallFrey Your mother doesn't count, pretty sure we've all been spelunking in that cavern.
 
@Trasiva did you see the torches I left on the side wall?
 
@ssube Yea, fortunately it was so dry they were still burning.
 
damn
 
Don't feel bad Kendall, you're like the little brother I never got to abuse and mentally scar.
 
@Trasiva sooke potholes, butchart gardens, long beach
sooke potholes is a must see imo
there is a fair bit of hiking involved tho
 
8:41 PM
Oh, she loves hiking.
Her and her husband go hiking all over Oregon.
 
long beach is imo the best view of ocean on the island
 
Passed it along though, thanks Bo-whoa, that's fuckin' gorgeous.
 
there is a crapload of driftwood from logging industry
old logs
ohhh and if they really like the nature stuff Old Growth Forest - Cathedral Grove
trees that you could fit a house in
when you notice the person to the right, the scale kicks in
 
Jesus
It's all Yggdrasil up in there.
 
ok so the value when converted to local is correct 28-07-2016 17:15:00 but now it doesn't display in the DateTime picker input
 
9:06 PM
so the check if(!isNaN(outageStart_Local))
was preventing the setting of the input val
once I put $('#outageStartInput').val(outageStart_Local);
outside of the check the input filled with the correct local value
need to publish to server to check if the same expected happens there
 
@ndugger NaN also.
 
woooohooo
my nginx module can see the cache-tag response header and create one file per tag, in which I write the cache filename matching the cache key that nginx proxy cache uses for the current request
 
@KendallFrey imgur.com/a/knLpJ these pictures always are a kick in the pants for me at how low clouds actually are
 
Or how high the ISS is
 
missing things:
- add support for multiple cache keys in the same cache tag (addition, deletion, and most importantly, locking)
- refactor, it's one ugly-ass file right now.
- add the purge HTTP API. The implementation is just "delete the filenames in the tag file(s)", so that part should be fairly easy. I shall not forget about locking again, though.
 
9:37 PM
damnit.
I just thought i had a question to ask... but i solved it
 
10:24 PM
@KevinB Write a self-answered question?
 
wouldn't be that useful
ended up being an x/y problem
 
Ah
Yea, better not, then.
 
I had two models, Ticket and Post, and wanted to be able to get all tickets and posts sorted by latest post, and the ticket create date if there were no posts
which... is the wrong way to do it. instead i should simply have a modified column on ticket
wrong way within loopbackjs that is... if i were writing my own queries i could do that sort as-is
 
i haz computer
fear
me
 
@Zirak \o/
 
10:37 PM
@FlorianMargaine Hullo~
How's the offspring?
 
growing up :(
he has started walking last week
now he runs around everywhere
how are you doing? settled down for now?
 
hehe
 
one day i'll move this project from grunt to gulp
so slow
 
During my newphew's growing up I recorded all these things in my head as "achievements". Next one (if any) will get cheevos.
"Spent a week without soiling pants, 10 points"
 
10:41 PM
@FlorianMargaine Moved all bills and stuff, got internet, bought a desk, arranged most of my books, kitchen and etc.
 
@Zirak cool, the hard part is done then
the hardest part will be to find a nice pizza delivery place around though
 
One of the boxes has an old (still talking!) Buzz Lightyear toy which gets triggered randomly
 
"To infinity...*and beyond!*" five times in a row now
 
I'm jealous :(
I never had it
 
10:43 PM
It's the coolest!
 
take it and play with it
 
There's a button on its arm which shoots lasers!
 
awww I want it now :(
 
AND its legs and arms are bendy
 
how are the ducks?
 
10:44 PM
The ones in the toilet are not mine
 
and the ones on your desk?
 
Ooohhh, I still need to get an electrician or somehow do some stuff and electrocute myself. The sockets are in one side of the room, but I could only fit the desk in the exact opposite side.
 
... I don't remember their royal names.
@Zirak ouch, cables through the room?
maybe you can just do with electrical trunking?
 
So the air conditioner is plugged via an extension chord to a...I dunno how it's called, a splitter I guess? And my computer, router/modem and two monitors are plugged via another extension chord to the same splitter
So just a really long extension chord through the room, and another from the ceiling(ish)
 
10:48 PM
Problem is it's way too much load on a single outlet...whenever the conditioner does something my right monitor blinks
 
you can probably make the long extension chord go around the room?
ow.
you only have a single one in the room?
 
Two. Two very badly positioned outlets.
The one that's taking the load, and another which is juuuust out of reach of the air conditioner with the set of extension chords I have available
 
So either more extension chords (meh) or get an electrician to make another socket behind my desk.
Probably the former...
 
oh, and you can't even buy one tomorrow because every store is closed, right?
 
10:50 PM
I can probably do something if I unplug the kettle...
 
or are stores still open on Saturdays?
 
...the kitchen's also a mess
Most stores are closed Saturday, yeap
 
shucks
got a fun game to play on the left screen to relax a bit?
or a fun project in Lisp?
 
emacs fullscreen, some lisp on the left screen, chat on the right
You been working on something fun lately?
 
yeah
an nginx module
 
10:53 PM
What it do?
 
tag based cache purging
I just wrote the readme, github.com/ralt/ngx-http-tagpurge
tests are in Lisp, obviously
the code is a bit of a mess, my next step is cleaning up before moving on to the next missing features
but it was very fun
 
Waaaiiittt
 
I had to navigate quite a lot in nginx source to understand what to do and how
 
o hello
 
So according to some header, you cache some stuff. But what uses that cache?
 
10:58 PM
@Zirak no, I don't cache anything
 
What computation do you save if the header is post-proxy-upstream?
 
proxy_cache caches stuff
 
Or do you turn the cache into a key/value store, ish, with the key being the header?
 
kinda, yeah, and the point is being able to delete values depending on the key
(although the header can have multiple tags, so it's multiple keys for a single value)
 
And when to purge is decided by a 3rd party
 
11:00 PM
yeah, I'll just listen on an http endpoint for purging requests
the point is that I'm not caching anything though, just adding some metadata on top of proxy cache to manage it
the typical use case for this is most web applications. When you have eg an article, and you want to purge its cache, you have to purge its url. But also all the URLs where its teaser appears, etc.
 
ok
 
it's honestly surprising that this nginx module doesn't exist, given that varnish supports this, and most CDNs support this too
 
Havin' fun?
 
muchos
what's in your emacs?
 
I lied
 
11:06 PM
:(
 
I wanted to brag about having internet, then rotate my monitor so I can watch QI while going to bed
 
go to bed then
 
Only if we cuddle this time
 
you aren't allowed to get close to electricity on Saturdays anyway!
 
It's against the law, but I'm a bad boy
 
11:08 PM
I like bad boys.
do you play Pokemon go?
 
@FlorianMargaine Nope, not yet anyway
Are you on rlemon's team or is he called PoopHead now?
 
I'm not level 5 yet :(
 
I'll give you three guesses to which team I'm on
 
The losing one
 
11:10 PM
teams can win?
 
VALOR
 
Your team sure seems to
 
I'm on Team JavaScript
the best team
 
aka Noob Team
 
at least we don't talk funny.
theam lithp
 
11:13 PM
We must record @FlorianMargaine say "Robert"
The world needs more laughter
 
eff off
 
It's amasing
 
I'll just say it in french
 
monsieur citron?
 
tout jaune
 
11:19 PM
tre petite
 
@MadaraUchiha, do you find this cannonical answer worthy of a bounty?
 
@user4694 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.
 
@FlorianMargaine trout in june?
 
I'm assuming Caprica Six is a bot?
If not then that's the fastest reply I've ever seen! :P
 
@Zirak ftr, my best trick so far in tagpurge is this: github.com/ralt/ngx-http-tagpurge/blob/master/src/…
@rlemon "all yellow", literally translated
 
11:24 PM
yea, I took french for 9 years in school. :P It was a bad joke
 
@rlemon right, I forget you're a fake french
 
I can't speak it, but I can roughly make out what I'm reading most of the time
if it isn't too complex.
@FlorianMargaine not by choice.
 
@rlemon I took 5 years and I can't say two words right when I visit France =/
 
not dissing french as a language. but I literally never have to use it in any province but Quebec and small bits of Ontario
 
@rlemon genes are hard to fight
 
11:26 PM
so forcing it on us was a little bit annoying when you never use it in day to day life. hard to really 'stick' as a second language
 
@rlemon how surprising, you only have to speak french where most people speak french
/s
:P
 
what would have been more useful would have been German or something
 
lol
at school in France, we have 2 foreign languages to learn
in the end, most of us know none, but well
 
we are forced french from grade 1-9, then in grade 10+ you can choose to learn whatever that school can offer. depending on teachers
most common is spanish
but it isn't forced.
 
@FlorianMargaine A somewhat buggy write loop? (first write returns bytes written, second write returns -1)
 
11:34 PM
@Zirak uh?
 
@rlemon Sounds horrible
 
@Zirak first write ends up in break if all the bytes were written
 
Right, but what if the first write succeeded but not all bytes were written, and the second write failed
 
@Zirak then something is wrong?
I'm not sure what behavior you're expecting in this case
 
But you won't hit your if (n == -1) branch
 
11:36 PM
oooh
indeed
hmm
 
Well, you will, but after written_bytes + 1 loops, assuming it's all -1s
 
yay
 
thanks for that
 
k, sleepy sleepy fun time
 
11:44 PM
same
later
 
If the room catches fire because electricity, be my alibi
 
hello to yall
 

« first day (2113 days earlier)      last day (2835 days later) »