« first day (2173 days earlier)      last day (2770 days later) » 

4:00 PM
but the g,b are still working
 
Un1
@littlepootis lol :) I mean google polymer library
 
Ah, I get it now. That sucks.
 
that was on the shitty red laptop that I've been using for the past year
the question was: how do I call it?
third-hyper-alive pixel?
 
@towc "one of the pixel has a red channel stuck at full brightness"
 
but that doesn't sound techy
although much better than what I was saying
 
4:04 PM
it sounds like something people can actually read and understand
instead of something vague and complicated just to sound smart
 
@ssube he will learn one day.
 
afk!! cs 1.6
 
counter strike 1.6
the best version
 
hell yeah
 
4:07 PM
@ssube I mean, of course if I was in a professional environment I'd look for a simple enough language
 
@rlemon I just want him to learn before he runs out of pretend cool.
Software is not the time and place for being cool and clever. Save that for parties and your life will be so much better.
Code should be simple and work well. Do your nifty little tricks while playing beer pong so you can go home with somebody.
 
@ssube okay dr Seuss
 
@rlemon D: what have I done
 
@SterlingArcher wat
 
reasons for dumping somebody
 
I read it, I just can't believe somebody wouldn't know about Mars
even the most fundamental religious nuts I've met still acknowledge other planets
 
the singer or the candy bar?
 
windows won't let me edit my _vimrc !
Anyone knows the solution to this ?
 
4:22 PM
google "windows won't let me edit my _vimrc !"
top answer
 
google strikes again
 
@SterlingArcher the typical conversation I have with girls around me.
 
@SterlingArcher
omg
!!giphy refrain of crab
 
> bro, do you even lift?
 
4:27 PM
uh
damn those are some sweet gains
 
damn those are some sweet signs
!!afk knock knock
 
@rlemon who's there?
 
@SterlingArcher rlemon is afk: knock knock
 
@rlemon I know but who's there?
 
try asking again
 
4:37 PM
no you
 
@rlemon who's there?
@SterlingArcher challenge accepted
 
Anyone here use docker at all?
 
@BlunderCode a few of us
 
trying to use it but stuck using windows 7 im having trouble setting up two nodes/manager
 
docker clogged my VPS with temp files and I had to destroy the entire instance
 
4:39 PM
I saw those signs yesterday and rolled my eyes
 
@SterlingArcher yeah don't run it on any machines like that
 
memes are too popular, only irritates me now because I'm an old man
 
the default storage engine uses a ton of space (15-20GB minimum)
 
really
 
Yeah 10/10 did not know.
 
4:40 PM
i didnt know that
 
yeah, you need to switch over to LVM if you want it to not totally break your system
 
I had to manually delete the docker/bin temp files, and reset the entire instnace
 
it allocates a 100GB loopback device by default
 
sheesh
 
so if your disk is less than 100GB, it will happily fill your disk
 
4:40 PM
Then it couldn't allocate the right docker file so I just blew my server and started fresh. Super annoying
 
then you can't boot or tab complete, things get bad, mmmkay
 
I had a 20gb VPS
 
yeah, don't run docker without LVM on anything you want to keep
that's really good policy, though. Never keep your app data on your root partition.
or your logs
they fill up, whole machine breaks
 
lame
i cant get this crap to work
 
what are you doing?
I gotta grab lunch, but if you can write up a decent example/explanation, I'll try to help
 
4:43 PM
lmfao
 
but I cannot for the life of me start up a second node or manager
windows 7 :(
 
@SterlingArcher @ssube anticipation
 
.. anticipation who
 
he starts up multiple terminals and they are set to root@mgr1 / root@mgr2 and so on how do i do this in git bash?
 
hello people
i = string.length-1;
string.substring(i,i+1)
is it true or false?
 
4:57 PM
you've made no comparison
 
I mean what it will return?
string.substring(i,i+1)
 
@BlunderCode open two windows and ssh into those two machines
 
@ssube ive tried but i get the same ip for each
im lost
 
@rlemon ty
 
5:00 PM
@BlunderCode have you shelled into the two manager nodes/VMs/whatever?
 
@ssube! dont think so... I tried but couldnt find them do i have to create them?
 
@BlunderCode if you're trying to run a cluster of dockers, then yeah
 
it didnt go over creating them how do I do that?
 
depends on your platform. Spin up two VMs, two VPSes, two servers, whatever you're using.
also, if a tutorial ever tells you to be root, stop using it and find a better one
 
Alright sounds good do i just have to make sure their on the same network?
yeah mentions not to use root hes just doing to for simplicity
 
5:06 PM
that's good, better than most of pluralsight's stuff
about the network, probably? We don't manage our dockers with docker, actually
gitlab and/or kubernetes handles that for me
 
I was considereing using one of those would it make my life much easier?
 
you need to learn the underlying tech first, so no(t yet)
 
whats the most common reason you guys use vm's for?
And whats a decent one you guys recommend? windows 7....
 
I develop in one (so my laptop is the standard windows image), but our servers are exclusively on VMs (OpenStack).
I think we knock down and respin about 100 a day, which is tiny compared to Florian's scale.
 
@ndugger that sucks :(
But better to know early and not waste time
 
5:19 PM
@BadgerCat Yeah
people suck
 
Is there an efficient way to find if any node's X and Y alignment is within n pixels of a given other node, while moving?
 
distance check
 
collision detection is super easy with rectangles
 
@BadgerCat @ndugger :(
 
@corvid .getBoundingClientRect()
 
5:32 PM
aw man, I accidentally posted on the wrong site's meta
now people might think I use unix or linux
 
man.. Starbucks' coffee sucks, but their sugar tastes fantastic.
 
@Luggage that could mean so many things. Did somebody give you cocaine in the bathroom? Did you take a barrista home? Have you been eating sugar packets like a 10 year old?
 
@Luggage it's not terrible. Way better than most chain stores (cough DUNKIN DONUTS)
 
if you are talking about straight coffee, dunkin donuts is better.
as is McDonald's, often.
 
Donald Trump did nothing wrong
 
5:38 PM
Keep telling yourself that.
@ssube No, I wish (some of them) and no.
 
You know what I did last night? I poured about 2.5 shots worth of rum in a glass and just downed it. I felt much better after that.
 
caramel macchiato = sugar.
@ndugger due to the debates, or just life?
 
life
 
@Luggage well, that's not very exciting.
 
the debate was too cringey to watch more than 20 minutes
 
5:41 PM
there is this one barrista.. kinda chubby, but she's a manager and seems competent. I like competence.
 
you like the chubs
 
var checked = [].slice.call(document.querySelectorAll("input[type='checkbox']")).filter(function(item) {
	return item.checked;
}).map(function(list) {
	return list.value;
});
Not being able to use ES6 sucks :(
 
generally no, even though i'm fat, but some people pull it off better than others.
 
@SterlingArcher that's really ugly
 
no shit
 
5:42 PM
you should use Array.from and polyfill it. No reason to tell you that you can't polyfill api features
 
const checked = [...document.querySelectorAll("input[type='checkbox']")]
    .filter(item => item.checked)
    .map(list => list.value);
 
^^
 
@SterlingArcher why can't you use es6?
 
Spread it on
 
Why can't you transpile?
 
5:43 PM
Been covered. Arbitrary rules.
 
I generally prefer Array.from; more explicit when converting a non-array collection
 
@Loktar I asked my PM and he said it wasn't worth the effort for this project and our customer wouldn't like it
 
the customer better not know
 
So I'm playing nice lol
 
Customer wouldn't like that you transpile code? What the fuck is that supposed to mean?
 
5:44 PM
@SterlingArcher use webpack.
 
Dude IDK it's the government
 
j/k :)
 
dumb question... what do you do if you have to asynchronously add an element to the dom in react?
const img = new Image();
img.onload = function () {
  // does some stuff here
  // add to dom
}
img.src = this.props.image;
 
@corvid you mean do what React does?
 
use state.
er.. wait, what?
 
5:46 PM
Put it in state when it's ready, render it when it's in state
 
return <Image src={this.props.image} />
is how you do that
 
Base64 it
 
@corvid come up with less boring problems, please.
 
@SterlingArcher does the gov touch the code?
Why would you even ask your PM lol
you're the dev :p
 
'problems'
 
5:48 PM
or rather does the client touch the code
 
@Luggage The problem in its entirety is to create a canvas, draw a image/video, and draw manipulatable text within the context of the image/video
 
I'd just provide them pretty formatted transpiled code
 
@Loktar I'm on your side, but this has been discussed. Just let it go. :)
 
don't fuck around with manual elements
what is this, jquery?
React will happily cross render-context boundaries for you
 
I couldn't figure out how to get that to work in Webpack
 
Wes
5:50 PM
how do you indent long returns?
return
    foo ||
    bar ||
    qux;
is not gonna work. should i just add parens? or indent it differently?
 
well, you include it, then you use it
144
Q: What are the rules for JavaScript's automatic semicolon insertion (ASI)?

T.R.Well, first I should probably ask if this is browser dependent. I've read that if an invalid token is found, but the section of code is valid until that invalid token, a semicolon is inserted before the token if it is preceded by a line break. However, the common example cited for bugs caused by...

 
Wes
yeah indeed, but this works
return(
    foo ||
    bar ||
    qux
);
 
@wes not like that. never leave return on a line by itself.
yea, the parens are better.
 
Wes
even if followed by parens?
 
it's ugly but will work
 
5:51 PM
if the opening paren is on the same line, you are ok
 
you should really move the logic somewhere better
 
Wes
or should i indent it differently, eg
return foo ||
    bar ||
    qux;
 
still ugly, you're doing too much in the return
 
Wes
this is possibly even uglier :B
 
const ret = foo || bar || baz;
return ret;
local variables are stupid cheap or free
 
5:53 PM
@Luggage ah didn't realize
was the first I saw about it
 
Wes
@rlemon it's not about performance, writing to a var and immediately return it looks bad
 
I only use multi-line returns when it's an object.
return {
    foo: 42,
    bar: 43
};
 
looks a fuckload better than the alternative
 
@Wes not really
and if the best way still looks bad, your design is wrong somewhere else
like, why do you need to logical-OR those things together?
if that OR is business logic, should it go in its own method?
 
return [foo,bar,baz].reduce(...);
:D
 
5:56 PM
return foo
    || bar
    || qux;
// nope, don't like it
 
return foo || bar || qux;?
have we considered that one yet?
 
yea, that. if it fits on one line, then do that
 
return orifyer(foo, bar, baz) then
 
you should never do logic in a logical OR, so you should just have three var names
 
Wes
well clearly each operand is longer than that
 
5:57 PM
if you're doing function calls and whatnot, do it elsewhere
 
how much longer? a longer variable name or another expression?
 
return foo ||
       bar ||
       qux;
Definitely.
 
we're much better at refactoring actual code
 
@MadaraUchiha get out. that's not even indented a standard amount.
 
return		foo		||
			bar		||
			qux		;
 
5:58 PM
better
 
towc style
2
 
return foo || (bar || (foo || bar || (qux)))
 
Wes
SOLD
 
!!doge foo,bar,qux
 
        wow
               very foo
                           so bar
such qux
 
5:59 PM
> such qux
 
return [foo, bar, qux].find(Boolean);
 
ohh god
I can't wait till reports of thousands doing this
 
hello all
 
Howdy.
 
@rlemon some have already done it
 
6:03 PM
:D
idiots
 
anyone good with Webpack?
 
Just ask a question and stop trying to get someone to commit to helping you before you drop a pile of shit.
5
Also, welcome!
 
needs to be the new room description
 
Wes
lol
 
lol
okay
 
Wes
6:04 PM
i always enjoy apple products destruction videos
 
I don't like destruction videos because it's so wasteful.
I'm not like crying and writing my congressperson, but it bothers me
 
Wes
@Luggage as kid we once got dressed up as mummies. friends were having fun, I instead could only think what a waste all that toilet paper was
i didn't complain about it to my congressperson though.
 
same thing.. only I'm talking about $500 worth of electronics, child labor and rare earth elements
 
urgh, struggling with a "no bootable device found" on the new laptop :/
debian installed just fine twice
 
6:15 PM
should have installed Ubuntu
 
or windows
 
oh dear, I just bought some more electronics
 
had to turn off secure boot for the usb key to be booted from
 
@KendallFrey wuchaget
 
6:16 PM
which is fine
but then still get issues :/
 
@FlorianMargaine That looks really cool! Why do you need the .virtualpath directory though?
 
3W LEDs and related components
I can upgrade my stroboscope
 
Wes
@Luggage hopefully rare materials will be recycled
 
Maybe. That recycling bin is like all the way on the other side of the room, man.
 
lol
> Weather for Ontario, ON
 
6:19 PM
I haven't checked the weather in months. I only check it diligently in the winter for snow
 
@rlemon The bigger joke is the use of F
 
I have some data in excel sheet, Should I covert it to JSON format? In order to reflect it to my HTML page. I am using angularJS.
 
Maybe. Is this a one-time conversion?
 
@Loktar it's like it was made for you
AMD Gunputer
 
6:27 PM
fun fact, she was shot by the cops right after that picture.
 
@Mosho I'm drooling ergodox-ez.com
 
@KendallFrey @SterlingArcher ^^
~128,000kn
jfc
 
would it be possible to use this npm package: github.com/addyosmani/critical to create inline critical css in a multipage app?
 
@Zirak jesus I can barely type normal let alone crazy style
 
6:29 PM
with webpack*
 
@SterlingArcher It looks so...divine
 
@rolu maybe. can you tell us the original goal?
 
@Zirak but.. it looks nothing like you? ;)
 
@Zirak have I ever linked you the ultimate hacker keyboard? similar, but you can detach the little stubs and plug in a nubbins or trackball, and the firmware is FOSS
 
sorry for not being clear*
 
6:31 PM
@SterlingArcher ( Í¡° ͜ʖ Í¡°)
@ssube Linkies?
 
oh yeah I remember the led screen and the spring
It does look pretty cool
 
I've been struggling on how to fix above the fold/inline critical css on a multi-page app. I use webpack to build the multiple entry points; since the initial view is rendered on the server, I would like to use the npm package: github.com/addyosmani/critical to create the inline critical css for each pages.
 
@Zirak several reasons: having per-project docker containers, having a script to source
 
hopefully that makes sense*
 
6:34 PM
@FlorianMargaine I mean, why not virtualpath activate docker-thingy
 
it kinda makes sense, but I just make one css file and cache it, so.. not really sure about inlining or what 'critical' css is. I mean, I assume it's the minimal css so that a page look ok while loading, but that' not a concern in my architecture, so.. no idea.
 
@Zirak because then it's annoying to re-type the image name every time
@Zirak plus, I need a bash script to source
or I can't change $PATH or $PS1
 
@ssube fuck that's making me hack harder
 
@Luggage one css file causes css render blocking that's why I want to split it up. I had one entry point for the multi-app but it doesn't make sense to do so; the 1 css/js file is pretty big
 
Speaking of virtual paths, when you npm package, that's essentially making a virtual environment like python right? Where the dependencies are constrained to that project and not globals?
 
6:39 PM
@Luggage I'm attempting to create the "above the fold" css and lazy load the main page css
 
Sorry, my experience is elsewhere. single entry point SPA. all minimized and gzipped to < 1mb (all JS and css)
 
@SterlingArcher not even a little bit
 
Explain
 
well, i do use a loading animation, but i don't think that's what you wnt
i inline my loading animation css in my single .html file.
 
Because I like this virtualenv in python, because it doesn't globally pip install anything
 
6:40 PM
npm only handles packages and does a very bad job of it
virtualenvs are an environment, so they typically let you pick the runtime as well
if npm let you pick between node 4 and node 6, it would be like virtualenv
 
@FlorianMargaine okay, that makes sense
 
Do you think npm environments would be a good idea/already been done?
 
nvm?
node version manager?
 
been done, sucks
 
Yes, but encapsulated in a v.env
Really?
Why did it suck?
 
6:41 PM
they all suck
every one
 
Like a node_modules directory?
 
seems like a great way to avoid module version conflictions
 
um, srsly, because virtual environments are heavy and annoying to use
 
pyenv makes sense because by default pip installs globally, it's a hack
 
I'd rather just run all our software on a single version
 
6:41 PM
eh, i've had pretty good results out of nvm.
 
if all your dependences are in your local node_modules, then you only need to change your path to point to the node.exe of your choice.
 
@ssube but you know obviously that sometimes that's not possible
 
very useful to be able to quickly switch back to an older version of node for an older project.
 
Sometimes you simply can't get around it
@KevinB I use nvm a lot
 
@SterlingArcher yes, in which case I either run a container or refuse to build that asshole's software
 
6:42 PM
one of my projects uses freaking 0.12.9
I want to killmyself when I switch n
 
update it
don't perpetuate the out-of-date software
 
fix node-serialport
 
if you aren't part of the solution..
 
I have yet to get node serialport working on anything > 0.12
 
6:43 PM
apparently it works on 4, but I've never had any luck
 
serialports man
 
FUCK
@rlemon Are JST connectors the same sizes?
 
@BenjaminGruenbaum A hero appears!
 
Bought like 4 different ones now and they're all too big or too small
 
6:46 PM
Need 2 pins, but the ones I order never seem to specify the actual connector width
So I've been trial and erroring lol
I'd solder it straight on but there's no contact points
Other than the pins
which are stupidly close together, and my soldering skills are wank
 
take a picture
 
Think I'm just being thick
 
it's amazing how tiltshift makes everything look like a detailed model
 
got any female jumper cables?
 
6:56 PM
Aye, but they don't stay on
Too big
 
really? odd.
flip it and solder to the pads on the underside
 
No pads underneath
:D
Well, only pads for the usbs
 
3 layer board?
wouldn't expect that
 
so
virtualpath really rocks
I need to write the --help and some error reporting now...
 
6:59 PM
it's probably covered. ohh well
 

« first day (2173 days earlier)      last day (2770 days later) »