« first day (2218 days earlier)      last day (2722 days later) » 

user1596138
6:00 PM
I had to put the door up like 8 inches and roll underneath and pry it back into place before I could open it without scraping the shit out of the Challenger lol
 
@ssube that's actually pretty neat how inconspicuous it is
 
Hi, has someone experience debugging javascript in visual studio code in launch.json I added this code below but the javascript code which is referenced in index.html isn't executing.
   {
            "name": "Launch index.html Firefox",
            "type": "firefox",
            "request": "launch",
            "file": "${workspaceRoot}/index.html"
        }
 
heh, you think that's inconspicuous, most retail stores have them in the light fixtures
 
@Jhawins if you find one that's motion triggered then storage space isn't really an issue
 
fuck, I saw one last week but can't find the article
ah, here it is, review on a brand new one with the names of existing competitors: arstechnica.com/gadgets/2016/11/…
 
6:05 PM
I'm just gonna leave this here...
which version of express are you using? — Kalman 3 hours ago
 
@ssube the next thing you'll tell me is that there are microphones out in the fields
(i think that's a 1984 reference but i can't remember it exactly)
 
oh wrong link
0
Q: How parse JSON properties from request body in express server?

Brian JI've set up a node server that passes requests to a utility class. So far the POST request is hit but the mapping to the body property values are undefined. Bodyparser is also used in the post method to assist in the Json parse. I stepped into the request and see that the body is populated and s...

 
Is there a good way to pass a function with parameters already put in without calling it?
 
@bitten never got around to reading that book before I gave up reading
I think I have a copy, though
 
@ssube well if you ever read again, i would recommend it
i didn't think it was ground breaking but it's a good book
 
6:07 PM
Not since the accident. The doctors told me I would never read again.
The concentration of uggs and jello shots in my blood had reached critical levels and permanently destroyed the wording center of my brain.
since then, I just can't even
 
couldn't tell you, slack is busy freezing this computer
 
@rlemon KendallFrey is afk: for the weekend
 
6:17 PM
@ssube ever used express server?
 
yeah, a bunch. Not heavily in prod, but in general, yes.
 
@SterlingArcher Bro, where is it?
 
Ok so have you ever had a req.body.propertyname return undefined?
even though you had imported BodyParser
 
only when the parser wasn't functioning properly, usually thanks to bad incoming ContentType headers
but I imagine it depends on the parser?
 
hmm
I posted the data using Postman and set header to type Json
as in the imcoming object was just formatted like this
{
    "Email":"brian@gmail.com",
    "Dashboard_Name":"my dash 4"

}
and tried to assign the req with
 
6:22 PM
 
do you have anything on req.body?
 
exports.SaveUserProfile = function(req, res) {


        req.app.use(bodyParser.json());
        req.app.use(bodyParser.urlencoded({ extended: true }));

        var request = new sql.Request(sql.globalConnection);
        var p_email = req.body.Email;
        var p_dashboardName = req.body.Dashboard_Name;


    };
yeah I logged request body and got all the expected property and value pairings.
logged req.body I mean
matching the property names in the assignment above
 
@Trasiva I mean, sure, but a lot of those talking points are the extreme cases.
 
what's the problem, then? I'm confused
 
@rlemon I just more laughed because it was a sassy post. From Canada.
 
6:23 PM
process is probably closer to 5 years now, and it isn't like we stop you at the border. you can still get here.
 
The problem is that for example req.body.Email; is undefined when I assign
although in the body that value is present
 
@towc I LOVE YOU BRO
 
@BrianJ it's undefined for var p_email but shows up when you console log the whole body?
 
yep
so a gist of the body before the assignment would show:
body: { '{\n\t"Email":"brian@gmail.com",\n\t"Dashboard_Name":"my dash 4",\n\t''},
 
@Zirak have you abducted an 11yo who's found their way to your computer?
sorry, another
 
6:25 PM
@BrianJ that sounds impossible. Do you have an example that can repro the issue?
 
anyway, I love the kid too :)
 
@towc TROUSERS
 
various
 
I have a gist in the question here, don't have my other laptop with me now to get the complete implementation
0
Q: How parse JSON properties from request body in express server?

Brian JI've set up a node server that passes requests to a utility class. So far the POST request is hit but the mapping to the body property values are undefined. Bodyparser is also used in the post method to assist in the Json parse. I stepped into the request and see that the body is populated and s...

 
@BrianJ and what, exactly, is the console output you get from that?
 
6:27 PM
I was thinking maybe accessing app from the req was messing up the .use for bodyparser
 
@BrianJ that's definitely not right
 
cc @ssube @BenFortune @SterlingArcher
 
I get the contents of the req from the log. But an undefined for the log of the p_ vars
 
you shouldn't set middleware in the handler
try removing that?
 
6:29 PM
ok if I set it outside the handler I won't have a hook on the req.app?
 
you should set up middleware early and only do it once
 
@Trasiva nice job dude!
 
I have it set previously in the server but thought it would be out of scope in the utility class?
oh wait app.use should be the app wide scope right.
 
@BrianJ if you set it on the express instance, it doesn't matter what callback express ends up calling, the middleware will apply based on the server or router before
 
I'll try Monday removing the second using in the handler of the utility
 
6:31 PM
@SterlingArcher Dude. Vero, Verde, Bella in dragons? gg
 
@Trasiva Someone's been playin
 
ah ok
 
What's that?
 
@Zirak vidja
 
@Zirak Summoner's War. Hands down one of the hardest fusions to complete.
 
6:31 PM
so you think that second call to use bodyparser could be messing it up?
 
confirmed: one of the 9 13yos in Awal has spread onto zirak
 
@BrianJ very likely, but I've never tried that
 
!!urban vidja
 
@Zirak vidja Video Games. The act of using controlors to work a console controlled system which provides pure enjoyment for mind and soul
 
@ssube u wut?
 
6:33 PM
but I should still be able to use the body parser in a separate utility class right?
as I've declared it in the server instance
 
@BrianJ you should really be using routers, if you want to keep various endpoints in different files and use different middleware on them
 
gripe of the day: "Hey, fix those tests that have been broken for a long time on code that has vastly changed since the tests were written without knowing what the code used to do. And thank the people who changed the code being tested for not giving a fuck."
 
trying to find a single instance and keep things modular will not work well
 
ok could look into that, one thing I'm thinking the body itself is an array within an array. Would that change the access?
 
-2
Q: Parsing JSON, return empty instead of undefined

ymdahiI'm hoping someone give provide some guidance on the below: I am fetching JSON with something like this: $.getJSON(jsonPath, function(returnedData){ ... }); The object returned will look something like this: ... "skin": { "elapsedTextColor": "#ffffff", "autoHideControls": "false", "aut...

@BrianJ how you access the data, yes. It won't change the parsing.
 
6:36 PM
so instead it would be req.body.mysecondarray.req
 
if they're arrays, it would be req.body.foo[1][2][3][4]
 
the body def is like { '{\n\t"Email":"brian@gmail.com",\n\t"Dashboard_Name":"my dash 4",\n\t''},..
anyways thanks for the tips I'll have to take another look at this Monday
ok if I ping you 7am utc Monday morning? :P
jk
 
ping me whenever, I don't get them :D
 
I don't think it will be an endpoint issue as I already use a GET in the same utility
off the main server app instance that depends on a number of libs in there
anyways I think I can parse the body manually if worst comes to worst
although not ideal
 
@Loktar You're smart. In the near future I plan on obtaining a PS4, possibly a PS4 pro. Now, my monitors aren't the bestest fanciest, the fancier one is a ~4.5 year old [Dell U2312HM](http://www.dell.com/ed/business/p/dell-u2312h/pd), which is great and all, but probably won't be enough to match what the ps4 can offer.
Two questions, por favour:
1. What monitor? It'll be capped at 60hz since that's what consoles seem to be capped at, so I'll be looking for an IPS monitor. Question is...the resolution. 1080? Go higher to 4k?
p.s. hi
 
@rlemon Hah! That's actually kinda cool.
 
@Zirak if you don't care about 4k get a PS4 not the pro (get the slim). Right now no graphics card can give you 60fps at ultra on 4k the closest that can is the Titan which is $1200, next lowest is the 1080 at around thre $600-$700 range, then the 1070 which is a great 1440 card at around $400-500 range
I don't have many monitor recommendations honestly I just know what I use but it's not IPS it's TN and I got it for the high refresh rates, but you're right the consoles max is 60hz
 
@PomeGranate don't use async: false >.<
 
I imagine any modern IPS monitor is going to be fine though, especially if you're just looking at the 60hz range
 
@Loktar The GPU doesn't have to support 60fps-ultra-4k-godlike, ideally the monitor should because that's what the ps4 offers, tbh I'm not so sure anymore why I mentioned GPUs here
 
6:47 PM
well in fairness the PS4 pro isn't actually running content at 4k natively
it does it at 1440 and upscales to 4k
so there is a bit of misleading advertising.. sort of
it runs the menu and stuff at 4k natively
 
Mine's probably fine, gtx 750
@Loktar yeah I know
 
idk I almost went out and bought a pro yesterday
was kind of wrestling with the idea to hook it to my 1440 monitor
but decided against it for now since i have a regular PS4. Also another thing that's huge I guess is HDR
but no monitors support that
well huge for the PS Pro and televisions
 
I did wonder about the pro vs. slim, but it seems like the pro would be a better choice since it's just a better system, and there's the innate FOMO of "what if the neighbours die and include me in their inheritance and their ultra-shiny-spanking-new TV which they only use to listen to the radio"
 
but.. I mean there is only a $100 diff between the ps4 and the ps4pro...
yeah exactly, if you want to be PS4 "future proof" then it's smart to go that route regardless
I need to find out if it will just run at 1440 natively if I hook it to a 1440 monitor
that would be pretty cool
like if it cut out the upscaling and stuff
 
Interesting
 
6:51 PM
if it does that wouldnt be a bad option for you to even look at
1440 is pretty easy for modern gpus to push
and you can get some high refresh ones like 144hz ones for reasonable prices
heh but on the flip side 4k monitors aren't crazy expensive either
I just didnt go that route because I enjoy the high refresh on PC
 
Spacebars is weird, and I don't like that {{#each}} doesn't have object support, so you have to write a template helper to convert objects to array like things
Template.registerHelper('arrayify',function(obj){
    var result = [];
    for (var key in obj) result.push({name:key,value:obj[key]});
    return result;
});
 
@SterlingArcher don't do that
why are you passing raw objects to a template and trying to iterate them?
 
Because I can't find a way to make a pretty array?
 
yeah not seeing anything to suggest ps4pro supports 1440 :/
 
I'm sorting this by country, and each country has sorted by year, and each year has a list of books
So my JSON looks like..
 
6:55 PM
sounds like it might just run it at 1080 if you hook it up to anything less than 4k
 
@SterlingArcher make an array of countries, each with an array of years, each with an array of books?
then just nest three normal eaches
 
Wouldn't that get messy and involve accessing each array index?
waaaaait a minute
 
@Loktar hrn, that's another part of the problem - I never saw a 144hz monitor, and I'm a bit worried that it'll be a can't-go-back moment just like IPS was
 
it's better than iterating over objects
 
6:58 PM
@Loktar aw, that's a shame
 
@Zirak or you won't be able to tell at all, like me
 
Iunno this worked pretty nicely
!!afk vape
 
@Loktar oh yeah, I can't find a 144hz and IPS monitor
Well, I can, but they're muchos dineros
 
yeah they are pricey heh
there are some ASUS ones
like the 500-600 range
 
7:05 PM
 
@Loktar @rlemon late happy Friday, it's a bank holiday in France :)
 
Bank holiday here too!
 
@ivarni get a better cert
 
Happy Friday man
 
wtf holiday is it?
everybody here is still here
 
7:06 PM
@FlorianMargaine good to see you RO again
@ssube veterans day? :P
 
@SterlingArcher yeah, I'm so gonna kick you
 
@ssube That's a fault on my end?
 
@FlorianMargaine lmao go nuts
 
he said he's gonna kick you and you tell him to go for the nuts?
 
@ivarni no
 
7:07 PM
(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value)(intermediate value).bind is not a function(…)
 
oh god you made @FlorianMargaine RO again
 
interesting
 
@PeeHaa we debated it, seeings how he uses PHP
but decided it was okay
 
@SterlingArcher bah, stupid holidays I have to work for.
 
@ssube So how does "get a better cert" work? It's an AWS paid webmail service
 
7:07 PM
@rlemon Ouch
 
@rlemon you might have to kick me soon, on those grounds. I might go work for a PHP shop.
 
Welcome to the dark side
 
but, will you be writing php
 
fuck no, the PHP part of your career is like going to LA and selling your body until you get cast in a good show
 
triggered
 
7:08 PM
well past that
 
@ssube I don't care about the good shows. I just like selling my body :-)
 
@PeeHaa if that's what you're into, who am I to keep you off the needle?
I'm willing to be around PHP and risk the diseases in exchange for working at a <100 person shop again and being remote most of the time.
 
Exactly
 
plus a company with a real business plan
 
7:10 PM
@ssube Why do you want to go for a smaller shop?
 
scheduling >>> wellness
 
@ssube "Let's make money and not pay our staff a lot of money so we can keep more money"
 
@PeeHaa lack of bloat. This place has a middle manager just to manage the other middle managers.
 
ugh
 
we spend more time trying to come up with hacks so we can fix things without upsetting the developers or criticizing their precious code (because when we do, management comes and yells at us)
 
7:12 PM
Yeah that sounds like a shitty position
 
plus the whole firing-people-because-they-won't-join-group-meditation stuff that's been going on upstairs, that department is a shitshow
@PeeHaa oh, it is, especially when those same devs refuse to use redis because the virtual network latency "will probably be too high"
yknow, that <5ns latency
 
hehehehe
 
why wouldn't you want to join group meditation though
 
@Meredith cause the person in charge made it a psuedo-religious thing
 
the "group" part of course
 
7:13 PM
right? a circle jerk of tears and heavy breathing at work? love that
 
this is a team that refuses to use one of their desks because of "bad vibes" and had somebody try to cleanse the spirits
 
I'd love to meditate with my coworkers
 
it's a circle jerk of insanity
 
esp if it becomes a weird religious thing
 
@ssube That's not really happening right?
Right?
 
7:14 PM
take a bunch of early 20 something hipsters with natural medicine degrees and put them in a room
bad things happen
 
I'd love to "meditate" aka take a nap, with co-workers
 
@PeeHaa no, it is
 
"bad things"
 
they are deadly serious about it up there
 
That sounds great
 
7:14 PM
Holy fuck :P
 
@Meredith it's not
 
Do you also have free kombucha at work
 
@ssube sounds like a free nap man
 
they refuse to use a desk because they think it's fucking hainted
 
Is it hainted?
 
7:15 PM
@rlemon nah, it's super creepy yoga with ancient sumerian incantations to summon various devils
 
sorry i was late, i was just meditating on the subway and missed my stop.. you know, it happens
 
@Meredith not that I'm aware of
 
For I am a sinner in the hands of an angry compiler. PHP, full of errors, blessed are you among server languages. Pray for me now while I install 3,000 modules, amen.
 
and I live near a graveyard, so I know about haints
 
TIL "haint" isn't a typo
 
7:16 PM
Obvi
 
@rlemon yeah i was wondering the same too
a variation?
 
@SterlingArcher it's dialectal
 
Used in a sentence: I hain't gonna use that PHP bossman.
 
only in the US
 
@rlemon it's not widely used, until South Park
 
7:16 PM
Verb: haint ‎(third-person singular simple present haints, present participle hainting, simple past and past participle hainted)
  1. (US, dialectal) Alternative form of haunt
  2. 1988, Randy Russell, Janet Barnett, Dead Dan's Shadow on the Wall, in Mountain Ghost Stories and Curious Tales of Western North Carolina, page 5,
  3. Looking from juror to juror and seeking out the smug faces of the witnesses who'd testified against him, he repeated his threat. "Those who say I kilt anybody are liars," he proclaimed. "And each of you will be hainted every day for the rest of your life. Then the devil will have ye."
  4. 2003, Winson Hudson, Derrick Bell, Constance Curry, Mississippi Harmony: Memoirs of a Freedom Fighter, page 17,
  5. After he killed him, Ed came back and he didn't have no head and he hainted [haunted] Ole Master until he died himself — getting in his way all the time — Ole Ed would be right there with him.
(2 more not shown…)
Noun: haint ‎(plural haints)
  1. (US, dialectal) Ghost.
  2. 1960, Harper Lee, To Kill a Mockingbird, J. B. Lippincott Co., p. 254.
  3. "Ain't you scared of haints?"
  4. 2005, "The Four-Legged Haint" by Eulie Rowan, in The Seven Wonders of Sassafras Springs, Simon and Schuster, p. 106:
  5. It didn't take long for word to spread that there was a "haint" in the graveyard. A haint is what the old-timers called a ghost.
(2 more not shown…)
 
I just like it better than haunt
 
is it american?
 
It's how rednecks say haunt
 
@bitten it's a tacky botched version of a real word
 
@bitten yes
 
7:17 PM
@rlemon wtf, the chat one-boxes wikitionary?
 
it's from the Carolinas or WV
 
@ssube so.. American.. teheee
 
Why the fuck am I still scraping wikitionary, then!?
 
i've never heard that, and i live around quite a few rednecks, so must not be this kind of redneck :p
 
okay harper lee used it, it's cool
 
7:18 PM
> Mountain Ghost Stories and Curious Tales of Western North Carolina
> an this one time when me poppy went n dun gone down the hill there, he done seent a haint an it gave im a real fright it did uh huh
 
mmmmhmm you tellum seanbob
 
but i had a really good experience with my first job but recently i've just been meeting strange folk so i emphasis ssube
 
I sometimes regret growing up near Appalachia 😛
when I moved to MN I was amazed to hear they have cabins that are in good repair and people go visit without getting ax murdered!
 
"node is over complicating what we need", "gulp is too verbose"
 
West VA scares me ever since I saw Wrong Turn
 
7:21 PM
still not as scary as WV
 
@ssube aw but it sounds really pretty
omg i just googled it, "Appalachia: The big white ghetto"
okay then..
 
lol yep
 
one of the first results
haha
 
Fuck a lvl 40 lushen just defended against my entire team
 
it's pretty, if you just look at the part west of the coastal single-city that is forming and east of the rednecks in the hills
 
7:22 PM
Like.. 2 rounds and he killed them all
 
but that's about a 3 mile wide slice of land
 
@ssube lol
the next one, "Third-World America: 5 Insane Realities Of Appalachia"
wat
 
this article? cracked.com/…
 
@BenFortune BUG!
 
yeah
 
7:23 PM
so far, that's accurate
 
so moonshine was your breast milk?
 
no fuck you hide
 
@BenFortune don't play it, just collapse then uncollapse
with "auto-pause" option enabled
 
@bitten oh, I grew up in Frederick and just (20 minutes) outside of Baltimore, the two biggest cities in MD.
 
7:23 PM
you don't check if the video is playing, you just play it
we need a flag in there
 
so no, I'm fairly civilized and didn't have moonshine until high school
 
I had moonshine and everclear in college and I got so drunk I spilled a gallon of milk, and sharpied the underside of a nice dinner table until I passed out
Not a fun night
 
I've tried 151 a few times
Not until after college
It's basically suicide
 
Welcome to my 21st birthday lol
 
when i hide the video, then unhid it, it started playing even though I didn't start it initially
 
7:26 PM
@Meredith that's just normal mixing liquor
anything under 160 is for casual drinking
 
I'm such a lightweight though
 
luckily we can just drive 30 minutes over to the WI border and get good everclear, the 190ish stuff
my roommate made a bunch of apple pie with that at the beginning of the year and it was tasty
 
What
 
@KevinB that's the bug I just bitched about
 
I drank a pint of it one night and my face turned bright red, first time that's happened
 
7:27 PM
who are you? Neal?
 
You had a pint of everclear?
 
i mis-interpted what you were saying
 
I would die immediately if I drank a pint of everclear
 
@ssube heh. oo so you live near bethesda
also frederick has a nice canal
 
@bitten close. My dad responded to an alarm at BethSoft's offices when I was very young.
I mean, I live in MN now, but grew up out there.
 
7:29 PM
aw jealous
 
What? I thought you were out west, you'r near DC?
oh
 
@ssube so you can make it to MI in like 3.5 hours?
 
been in the cities since May of 11, was essentially in DC before that
@rlemon I have to drive slow across WI, but maybe?
 
@ssube oh that's a bit further away
but that does mean you live near Fargo
 
@ssube I got to beta test Brink...too bad they didn't listen and it turned out just as awful as the beta play.
 
7:30 PM
I say we all crash @Loktar's house one day
 
all of my American geography comes from games and films >.>
 
don't tell him, just get a bunch of regulars and start peeking in his windows
 
Making docs is such a PITA
 
@rlemon lol
 
Loktar's place or Mpls would be the most central place, almost certainly
 
7:31 PM
that would be unsettling
 
we're lucky to have a big airport and cheap ($150) tickets from most of the country
 
@Loktar look up from your pc, duggers sitting on your lawn eating a jar of pickles.
 
write your code such that docs can be mostly automated
 
Minnesota is really cold
 
@Meredith only 9 months of the year
@rlemon I can picture that
not sure how I feel about it
 
7:36 PM
This office area I'm in is colf af
 
good thing it isn't cold.
that could be uncomfortable.
 
oh man i just discovered multiple desktops on OSX
now I don't have to swipe between chrome windows like a casual. this is cool I'm going to split my work screens and shit into 1 and my personal into the other
 
i thought that feature on windows10 would be cool too... till i realized that would mean duplicating discord/jschat etc in both
otherwise you'd have to swap back and forth to see them
 
It seems to be smart about google hangout chats. It's persisting both my chats in both my desktops, which is good
 
I find switching desktops to be an almost doorway level of disruption
like when you walk through a door and forget everything you were doing
 
7:49 PM
I have the js chat in a side panel in my browser so I don't have to switch desktops to see it
 
I find the opposite. I use multiple workspaces to makes sure I can three-finger swipe between just the few apps I care about
 
But it doesn't work as well with slack
 
terminal/chrome/atom
 
I just have a monitor for terminal/atom and one for chrome
 
Slack is in my work desktop
 
7:51 PM
I just alt+shift+arrow between workspaces rather than alt+tabbing and find it vastly superior
 
yeah i run multi-monitor everywhere, 2 currently. Chat/browsing always goes on second
 
My usual setup is simple. Sublime text with 4 split windows on 1 monitor, hangouts, browser, and spotify tiled in my second
 
since a workspace might have tiled windows rather than just alt+tabbing between fullscreen windows
 
two monitors, one with fullscreen term/editor, the other split between outlook/chrome/slack/etc
 
and it's deterministic where I land
 
7:51 PM
But now I have a second primary computer so I need to refactor my setup
I have 4 screens on my desk now
stackoverflow.com/a/40555186/774078 TIL you can inject CSS into the snippet "console"
 
Nina == Ninja
 
Hi.
 
@SterlingArcher you can inject it anywhere you want using RoboGist
 
God dammit ROb
IS IT CALLED ROBoGist BECAUSE YOUR NAME IS ROB I SWEAR TO GOD
 
Is this normal? jsfiddle.net/u8mrrzmp Same regex.match() returns true, then false, then true etc.
 
7:56 PM
Rob 'o Gist
omg
I hate everything about your puns, intentional or not
 
not intentional, but I'll take it
 
you're disgusting
i love you
 
what is wrong with the regex?
 
regular expressions have states
 
ok. What does this mean?
 
7:58 PM
google "regular expression + state"
 

« first day (2218 days earlier)      last day (2722 days later) »