« first day (2326 days earlier)      last day (2623 days later) » 

3:00 PM
0
Q: Create Thumbnails on Amazon S3 Bucket with Lambda function

PomeGranateI have two buckets on S3. campaignfotos and campaignfotosresized. The Permissions for those two looks like this: Created the ThumbnailCreatorRole ( I think I'm missing here something): I have created a Lambda function an used the Code from here changed the file name form "CreateThumbnail....

 
WSL: Windows Subsystem for Linux.. Also called "Ubuntu on Windows" since they package ubuntu with it, and then even worse, called "Bash on Ubuntu on Windows".
 
Forgot I had it installed
 
I just installed it yesterday
 
The next windows update, the "creators" update, improves the terminal emulation and, i think, mouse support in the terminal
still a shitty terminal, but a decent default is important to not drive people away from commandline.
 
3:02 PM
Think I already have that, didn't notice much other than being able to ctrl+c/v
 
I don't think the creators update is out, yet.
or it's in beta or release candidate.
 
My cmd is overwritten by cmder anyway
 
> Another notable feature is the ability to run Ubuntu desktop. This is not yet an official part of the platform, and does require installation of a separate Windows X server (we used VcXsrv), but on a well specified PC it works well.
 
awesome
 
I'd love to see a performant x server (or whatever that new thing is) built into windows linux subsystem.
(assuming there is some optimization that allows)
 
user1596138
3:06 PM
@Shmiddty An overlay shows up that says "Cannot take screenshot" lol
 
@Jhawins Shmiddty is afk: cancer
 
Wayland.. is that the X replacement that is 'coming soon'?
 
mobaXterm works apparently
Someone got hopper working natively
 
'natively'?
 
oh, vcxserv
 
user2620028
3:11 PM
i would assume natively meant that they didnt have to do anything to it...
 
reverse engineering ?
 
gotcha.. yea, once you have an x server, most things should run
 
How do I test a page for acessibility? I would run it with voice over. But I don't know how to use the damn thing.
I honestly feel sorry for people with disability... the web is terrible if you can't see the screen :(
 
they don't know that
 
user2620028
thats not the only thing that is terrible without being able to see
 
3:16 PM
that's true... but we're not helping as web dev.
 
Let's just solve blindness instead.
Easier.
 
@Luggage looks cool, it has the same issues ours had though
 
That a git repo makes a poor shared database?
 
user2620028
@Luggage i think solving blindness is likely easier than than making the web accessible :/
 
3:19 PM
Nothing, everything's ok in terms of accessibility... the only complains while testing some codePen's was the lang attribute in HTML...
which is supposed to happen. You can tamper with the head attributes much in codePen AFAIK
 
lol. buying filters for a fish tank of mine. 1 pack = $12. 3 packs = $69? ... 6 packs = $124
jesus get your pricing in order..
 
@MadaraUchiha, on your presentation thing, can you explain what T is? I see it all the time, but I never know if it has any significance
 
What are some linux exclusive apps I can try with this?
 
cowsay
 
xeyes
 
3:24 PM
eh, what happens if you buy 3 packs ? Would it default to the 3 pack item ?
I recall a webstore doing that automatically for you
 
Oh shit, it works
 
@KarelG nope. Amazon. just bought 6 for $72
 
xeyes is basically the "hello world" for X.
 
better than 124 :P
 
Only works in the window boundaries though, sort of expected
 
3:26 PM
in real x it works everywhere.
 
It works everywhere unless I move it haha
 
ohh well, knowing the mouse position when it's outside your window is not normally needed.
 
does anyone know of any way to convert scss styles into inline styles during transpilation?
 
inline on the elements?
 
3:30 PM
yeah that's the idea, I am not sure if it's possible given rules like @media
 
Unless this is for email, I'm strongly opposed.
 
How does the scope attribute work?
 
inlining gets you nothing.
 
do I need to define it for every entry in a table or just the headers?
 
and if this is react, you can't just inline against static html, you have to have it add a style attributes in your code..
well, you can inline the resulting html, but that implies static html, not an active react page.
All that said.. I use a module, 'juice' to inline css in my emails (they need it sometimes)
 
3:35 PM
Ah okay, I am trying to make a "patterns" library and trying to figure out the best ways to do it
 
probably not inline. have you looked at css modules?
 
That's just { loader: 'css-loader', options: { modules: true } }?
 
// yes, then you can use it like:
import styles from './foo.scss'; // if style-loader is used, still injects the <style> tag.

render() {
    return <div className={styles.someClass} />;
}
What it gets you, is styles that never 'leak' or collide.
since it mangles classnames.
 
okay, what about if you wanted to purposefully override the styles, or combine styles?
 
You still do that the same way.. All it's doing is mangling classNames.
 
3:37 PM
// like this:
import styles from './foo.scss';
render(extraClassName = '') {
  return <div className={`${styles.someClass} ${extraClassName}`} />
}
 
unless I misunderstand. example?
ohh, right, yes. That's still the same.
 
I don't think that that necessarily makes the extraClassName take priority over the previous, if that makes sense
 
It only has priority based on normal CSS rules (specificity). I'm not sure if the order of the class list matters..
 
I don't think the "cascading" rules work then, and logically, they wouldn't. Looking for some sort of solution to that problem
 
// css is mangled
.someClass { ... }  ->  .someClass_abc123 { ...}
// the imported style, has a map
styles = {
    "someClass": "someClass_abc123"
}
^ all css modules are doing, mangling names.
nothing else changes.
 
3:40 PM
 
all cascading follows normal rules.
 
Amazon knows me so well.
 
@Luggage supposedly, if you import two classnames, they do not have the same name so the cascade will not apply because they are not the same rule, right?
 
what cascade are you talking about?
I don't follow the original problem.
 
i.e., I import foo from 'foo.scss', then import bar from 'bar.scss'. They both have a rule on .blue. Wouldn't they have different classNames at the key for blue?
 
3:42 PM
Oh woo, amazon finally has a prime now web version, so I don't have to use their shitty app
 
yea, but css modules will prevent the two blues from getting confused. As if it automatically makes one "blue1" and the other "blue2" so you can use either or both and know what you are getting.
<div className={foo.blue} /> // you KNOW this is the right .blue with css modules.
 
oh der that's a dumb mistake on my part, you're right... but how do you ensure blue2 comes after blue1 in the cascade?
 
does order of classnames matter in html/css normally?
//plan html/css
<div class="blue1 blue2"></div>
 
not necessarily, but the order in the css would, .blue1 { color: red } .blue2 { color: blue } would be completely different that .blue2: { color: blue } .blue1 { color: red }, no?
 
just lost time when playing something
 
3:47 PM
this say that the order in the class="" attribute does NOT matter: stackoverflow.com/a/1321722/956900
 
the css selector selects by specification
 
Soo.. you'd need to make .blue2 more specific or always import it later to make sure it overrides.
 
or ... define it after
 
I don't know if there are any tricks to make it more specific.. besides just slapping !important on everything (ew)
// normalStyles.scss
.blue1 {}
// extraStyles.scss
.overrideStyles {
    .blue2 { ... }
}
<div className={extraStyles.overrideStyles}>
    <div className={ normalStyles.blue1 + ' ' + extraStyles.blue2 } />
</div>
That would make it more specific, but.. problematic.
the .overrideStyles could just be used once on your app root element.. but still, ugly. Seems like there must be a better way.
 
there is, just specify it more
 
3:59 PM
What do you mean?
 
use div.blue instead of .blue
 
ohh, right.
 
the first one takes higher priority due of specification rules
 
Hopefully that class is only ever applied to divs.
 
4:00 PM
> watching this video in 3 tabs simultaneously brought me closer to god.
 
Isn't it interesting to think about how much corporations have influenced society over the last 100 years?
They've been systematically individualizing people. I wonder why?
 
?
 
use your words
 
😕
 
I see your avatar is aptly chosen
 
4:04 PM
Ah I wish there was something a bit cleaner for overriding "default" styles :\
 
That's a photo.
I really look like a cartoon
 
balloon heady ?
 
@corvid just @import extra.scss in your main stylesheet after the default styles.
 
@corvid if you merge css with ... let's say gulp or something, then the rules are being overriden me thinks
 
do an image search for Stevens-Johnson Syndrome
 
4:05 PM
what about ... no. (i've heard of that)
 
it's pretty gnarly
 
there are more worse diseases/syndromes :P
 
I'm sure
 
It's the type. In the example: function identity<T>(arg: T): T { it's just saying that identity() returns ths same type as you give it as the first argument.
 
How close would you say you are with your immediate family? Your extended family?
 
4:10 PM
Is T just a "generic" interface? I feel like this T is always randomly introduced but T alone has no meaning
 
T is a placeholder for a type. It can be anything. function identity<T> is saying "we care about one type here, and we'll call it 'T'". Then it's used again in the arguments and return type.
<T> makes the function generic, but it's not necessarily on an interface (could be)
 
Throw back Monday?
 
@Shmiddty stop trying to systematically individualize me
 
@Luggage it's too late for that. You live by yourself, yes?
 
4:19 PM
him and his 12 cats
 
now 13.
oops, 14
 
must smell great
 
14?!
Are you serious @Luggage
or just messing around
 
you need a lot of cats to befriend his 16 dogs
 
I mean about all the cats period
we have 2 and most days I wish we had 0 :p
 
4:29 PM
Just joking. The joke was that I had 13, then suddenly 14.
cats beget cats.
 
well technically I have 3
 
user1596138
My mom has at least 9 lol but they aren't allowed in the house
 
user1596138
Possum and mouse deterrent lol
 
user2620028
@Jhawins just switched to this tab and read this and thought you were talking about children
 
user1596138
@HatterisMad I was lol
 
user2620028
4:40 PM
they don't teach birth control in indiana schools?
 
A valid question.
 
abstinence-only!
and shotgun-wedding
 
user1596138
@HatterisMad They teach that in school?
 
user2620028
@Jhawins in other states yeah
 
they do
 
4:44 PM
They should.
 
not to your parents they didn't
 
they started in like grade 7 for us
 
Sure, ideally parents would, but that doesn't always happen.
 
they started by pulling all the kids into the gym and put on a video of a live birth. no one was told what was about to go down.
 
user2620028
hahahahaha
 
4:46 PM
pretty sure that was more effective than the lesson on std's and birth control
 
std::s?
 
user2620028
right?! i would be scarred for a while
 
user1596138
My parents told me. But I don't know if that counts as school or just parenting
 
user1596138
Since I was homeschooled.
 
user2620028
oh right i forgot about that
 
4:47 PM
what leads a parent to homeschool children btw?
 
user1596138
And it was more like "Why is that goat giving the other goat a piggy back ride" and getting a weird answer that set you down the track to big discoveries...
 
isn't it more expensive?
 
user2620028
uhhh, i think usually it is a religion and control thing
 
user1596138
Definitely not either.
 
user2620028
really?
 
4:48 PM
says the religious guy under control
 
user2620028
care to explain?
 
user1596138
Yeah. I don't see how 70% of school is beneficial for my children
 
@HatterisMad not always
 
you have kids? :D
 
4:48 PM
well depends on how you look at control I guess?
 
user1596138
They need to spend 20% of the time... It's daycare
 
user2620028
the social experience is the most valuable thing i think
 
^
 
there are kids taken out of school who are bullied, ect. and opt for homeschool
 
user2620028
@Loktar the control of getting to decide what happens in your childs life and what information they are presented to
 
4:49 PM
I did homeschool because I got to chill at home
 
user1596138
I got to work full time from 6th grade on. And did all my school. And now I make closer to 6 figures than to 50K. I think it was a wonderful advantage that I was homeschooled
 
it was my choice ;)
 
something tells me J wouldn't be bullied
 
10th/11th/12th.
 
They devoted like 1 class period to sex-ed in Biology class for me
 
user1596138
4:49 PM
I never sat in a class room.
 
> Jason do you want to stay home instead of going to school?
> Fuck yes please.
 
user1596138
Ever. Other than philosophical classes
 
I went to public school and I turned out just fine.... :looks at own avatar: nvm.
 
then I proceeded to go to school for just computer classes.
 
loki gives you >$75/mo? 0.o
 
4:50 PM
and stayed most days helping with computer issues :)
 
damn it loki you really do have money
 
philosophy is the most important class
 
user1596138
Also if you have a lot of kids homeschool is dirt cheap... Buy the coursework once and give it to the next kid down
 
You did well because programming is something anyone with the right brain can get into w/out a degree. This is a bad example.
 
user1596138
And you can just fudge transcripts etc lmfao
 
4:51 PM
@Luggage there are plenty of examples like that
I mean I could have went for gender studies and been poor I suppose.
 
also, do sons of programmers ever not become programmers?
 
you don't need no fancy degree to work with wood
 
 
wood loves everyone
 
user1596138
Almost every complete moron I have met -you know those people that are just batshit retarded- has a high school diploma.... So I wouldn't be too worried about how your HS is administered hahaha
 
4:51 PM
I went to college and the military just fine without a diploma.
 
why would you need a diploma to get in the military?
 
user1596138
^ Technically I don't have one. A physical one. I can buy a meaningless piece of paper for $65 whenever I want tho, I submitted my transcripts through a state recognized homeschool association
 
@towc it's a requirement
 
I am saying nothing about your parents, but most are not good enough in math, physics, history and writing to teach all of those classes. At least not at a high school level.
 
but, they saw I had college credits
 
4:52 PM
most people aren't.
 
user1596138
@Luggage Lmao as if a person needs to teach any of that....
 
@Luggage yeah most teachers aren't either honestly. However I think there are a few thoughts when it comes to homeschool
 
@towc you need a college diploma to be a garbage man here
 
user1596138
Textbooks and coursework do the entire job.
 
I think we do need to teach that.
 
4:52 PM
it's not usually a mom sitting there being a "teacher"
 
user1596138
@Loktar Bahaha yeah this
 
My father is the smartest person I know; it apparently wasn't genetic
 
plenty now just let you go online even and take classes
 
A good teacher makes all the difference in your interest level. Just a book alone doesn't.
 
and you can get 1on1 help with a teacher.
 
user1596138
4:53 PM
@Luggage The knowledge comes from the curriculum, not the person administering it
 
well, tbf now they can give kids a playlist on youtube of things to learn, point them to a few forums, and gg eezy peezy
 
Now I need to refactor BEM CSS to Suite... or suit ... or whatever... I have no idea what I'm doing!
CSS is my kryptonyte
 
Sure, anyone can teach themselves, but if you want to improve education level of evryone, you need to get some people interested and keep them interested.
 
user1596138
Parents only need to be able to help with 1on1 issues. Or you can pay for that
 
the universe is a deterministic state machine. Free will is an illusion
 
4:54 PM
honestly its no different than going to online college classes
 
user1596138
My brothers had subscriptions to Pensacola and had access to real teachers in real time. They didn't ever use it so we dropped it when I started HS
 
Yea, but at college level, you have your own motivation
kids don't have that, always.
 
@Luggage no you don't lol
 
user1596138
@Luggage I was damn interested.
 
it's all on an individual basis
 
4:54 PM
I was motivated to drop out when I was in college
 
but saying "college kids have more motivation" is not true
 
@Jhawins That's great, but "it worked for me" is not an agument for or against my point.
 
user2620028
yeah i was thoroughly demotivated before i ever got to college
 
user1596138
You need your own motivation your entire life lol... If you have to be babied and pushed around you're just gonna have a hard time anyway
 
I like the dynamic of a classroom. it's nice to have someone else put up their hand and answer with the same answer I was thinking and be told they're wrong. then I don't look like the idiot
 
4:55 PM
@Loktar when compared to 8yos, yes
 
user1596138
Public high school does nothing for the unmotivated...
 
@Luggage I'm sure you can find data to support your point, however you have multiple people with real experience telling you things :p
 
user1596138
Nothing but getcha a record.
 
I should have gone to college when I was 15, when I was still motivated to play the game
 
2-3 anecdotes doesn't beat data.
Also.. it's not like I am arguing that it shouldn't be allowed or anything.
 
4:56 PM
@Luggage no data doesn't beat imaginary data though either
 
true.
"assumed data". :)
 
feelings data
 
user2620028
@Jhawins yeah i definitely learned more on jobsites than i have ever learned in a school environment
 
alternative data
 
user1596138
It's a personal thing. I would be where I am whether I was homeschooled or not, but would've taken me longer if I was public schooled since I couldn't work full time etc all throughout
 
user1596138
4:56 PM
I would argue most of you would be where you are without it too... School didn't make us lol
 
user2620028
@Jhawins you can work full time
 
you will find quite a few studies showing homeschoolers do better in college or are more motivated.
 
user1596138
@HatterisMad No you can't?
 
it just depends really
 
user1596138
What there are 8 hours to work after you get off school?
 
4:57 PM
I am going off the assumption that MOST people that are homeschooled are done so to prevent them from learning certain topics. But yea.. anyone can teach off of book / websites, etc. It CAN work.
 
user1596138
I worked sunup to 5 and then did school for 4 hours lol
 
if I'd gone to better schools, I'd probably be a physicist
 
and public schools are always great..
 
user2620028
@Jhawins yeah man i slept at school
 
user1596138
Cause you don't need all day school lol
 
user1596138
4:58 PM
Hey also I was in a like 12K person town half amish. How good do you think my 1 school option was?
 
user1596138
Not good... Half the school is old repurposed trailers outside lmfao
 
dank
 
user2620028
i do have a question for you though hawins
 
I think it can be done poorly though
 
yea.. in some cases, homeschool may be the only good option. I won't argue with that.
 
4:59 PM
my son in northern MI goes to "homeschool"
 
user2620028
@jhawins what is your perception of the intelligence of an average american citizen
 
user1596138
@Luggage I have literally NEVER heard of that
 
but... he doesn't actually do anything
he is fucked.
 
user1596138
> to prevent them from learning certain topics
 
yea.. like evolution.
 
user1596138
4:59 PM
Literally never heard this even hinted at? Who is doing this??
 
or sex
 
@HatterisMad they're morons, like everyone else
 
@Loktar What about studies comparing the fraction of students who go on to post-secondary education? My guess is fewer homeschoolers go to college.
 
your guess
 
user1596138
Nobody is homeschooling their kids to keep them from learning about sex or evolution...
 
user1596138
4:59 PM
Ok some people are.
 

« first day (2326 days earlier)      last day (2623 days later) »