« first day (2698 days earlier)      last day (2474 days later) » 

13:00
Should be easy to verify though, wouldn't it?
refresh tokens should only sent out away in one action: for refreshing access token
@OliverSalzburg no, I was done, but I realized the client_id was not what I assumed
so I read the spec, and came up with the refresh thing
I remember you were occupied with that topic recently
yes
but didn't read the spec by that time :P
What wrapper are you using btw?
13:01
google's python one
the official one they have in their docs
hmm been rethinking
it could be that they send the renewal token together with the access code to verify if both are coupled before renewing access token
But even then, I do not like this approach and seems a weak link to the OAuth2.0 chain to me
Just because you provide both keys to the library, doesn't imply that they are carried to the same server in every request
As I said, this should be fairly easy to verify
But it should also be kinda obvious. Why would you send a refresh token to the resource server? It doesn't know what to do with it
And it's not the server that would refresh your access token anyway
I see
13:07
But I actually know a lot less about the lib than you do :D
And we're not using these token schemes ourselves
actually in the logger I saw sometihng like "token rejected, generating a new one: 1/2"
so it makes sense
you know what makes sense?
The access token is like a temporary grant that Google (if that is the OAuth provider) hands out to you, so that you can give it to the service you're using. If the grant is expired, you need to refresh it (with your provider)
a cashier
buh-dum-tsh
@OliverSalzburg yes, that's also why the refresh token is optional
13:10
@rlemon Peanut butter
Yeah, sounds pretty good :)
maybe you want to set token expiration for one day, or 50 uses
another generic question
let's say you have something implemented somewhere
and you have to do 2 things
good start
I said yep, what a concept
I could use a little fuel myself
And we could all use a little change
move the thing to another place
and fix the thing
what do you do first
13:11
give it to the intern
UGH, why does TSLint want a comma here?:
function Sizeable<TOriginalProps extends {}>(
    Component: React.ComponentClass<TOriginalProps>,
    ): React.ComponentClass<TOriginalProps & InjectedProps> {
tell them it's a trivial issue, which might be good for them to learn
problem solved
@Neoares That should probably not be answered that generically
@KamilSolecki trailing commas are useful in general
I know xDDD
13:12
If the fix reduces the memory footprint, fix before move
That would be one way to look at it :D
@KendallFrey I wouldnt expect it there though (I might be really wrong)
no, I'll do both things before pushing anyway
@KamilSolecki minimal keystrokes required if you want to add another parameter. And minimal git-diff
so memory footprint is not an issue here
it's just a matter of... convenience
meh I'll roll a dice
!!afk lunch :D
@towc yeah I guess you are right.
I somehow didn't realize I can in fact have more parameters :P
brainlag again
13:15
@KendallFrey beautiful
@Neoares ah it is optional
@KarelG Neoares is afk: lunch :D
ok then it would make sense.
but even then .......... do not send refresh tokens to the service endpoints
13:27
I always have a problem with this and can never decide:
    function sizeable<TOriginalProps extends {}>(
        Component: React.ComponentClass<TOriginalProps>,
        ): React.ComponentClass<TOriginalProps & InjectedProps> {
        type ResultProps = TOriginalProps & InjectedProps;
        ....
}

    function sizeable<TOriginalProps extends {}>(
        Component: React.ComponentClass<TOriginalProps>,
        ): React.ComponentClass<TOriginalProps & InjectedProps> {
        	type ResultProps = TOriginalProps & InjectedProps;
    		...
    }

    Indent in such scenario, or not?
I think the indent makes it more immediately apparent in this situation
Space-indent for the args, tab-indent for the body
It would be much better with { on its own line
Spice it up
@KendallFrey No
13:37
That never looks good. Move the character to where it belongs and just use an empty line if you love it so much
function sizeable<TOriginalProps extends {}>(
    Component: React.ComponentClass<TOriginalProps>,
): React.ComponentClass<TOriginalProps & InjectedProps>
{
    type ResultProps = TOriginalProps & InjectedProps;
    ....
}
clearly demarcated blocks
@OliverSalzburg it belongs in line with the }
@KendallFrey Why?
easier to see imo
Good enough
K&R is still better though. Just because ;P
That's actually the best argument I've heard so far in favour of it.
13:42
The best argument is that I am saying it
@KendallFrey maybe noobish question, what are those < ... > sections? Framework specific syntax?
generic type parameters
Simply put though, it conserves vertical space instead of wasting it continuously on single letters whose purpose is completely negated by proper block indentation
@IanC typescript
@OliverSalzburg I've never felt the need to conserve vertical space
13:44
Ooh, thanks!
Ive seem those before and was wondering what it was
@OliverSalzburg btw do you also put } at the end of a line?
@KendallFrey I see that :D
oh my
@KendallFrey That wouldn't be true K&R, so no. The reason for that is that the function body should be directly below the function declaration, not one line below it. No such concerns exist at the end of the function
I typed application.properties into my url bar to search
Turns out that's a website
13:49
@OliverSalzburg Well that's a different argument, I was only going by what you said :P
Having the } on the last block line also complicates editing, something you'd want to avoid
@Cereal HIER ENTSTEHT IN KÜRZE
this is aggressive german
I'm being yelled at by a webpage
@KamilSolecki this is normal german
it's supposed to be aggressive
13:55
Page was created 3 years ago. It's all lies
they don't even say anything :(
they don't need to, you can see the rage in their eyes
dat guy on the left tho
#erotic-headers {
	position: absolute;
	top: 450px;
}
@Cereal nice
oh. my. god.
I sat there for solid 20 minutes figuring why I cant use this.state
and why am I getting a weird uncallable error
and I was doing this.state({ ... });
Im having many brainfarts today.
14:02
setState* ftfy :P
@hilli_micha youtube.com/watch?v=73wJ1L1zBYw this is stereotypical :P
@SaitamaSama setState elsewhere, but I'll init my state with this.state = { ... };
oh damn, look at this: ')}"`)
@BadgerCat not sure, but you might like this: youtube.com/watch?v=QoQId6dAp84
I have this in my code. Damn
14:03
@KamilSolecki well, yeah, in the constructor of the component
I don't even think I need to refactor/clean it, which is weird
everyone can use a little refactor in their life
it's the end of an expression which calls a function whose last parameter is a single-quote string wrapped by double quotes (for display) within a template string that is the last parameter of another function
sounds busy'
14:06
log(`something something: "${something('something')}"`);
@rlemon 🎶 A little bit or refactor in my life 🎶
it's actually really not busy, that's why I'm surprised
Ricky Martin dance ensues
it just looks horrible if you focus on that bit
I could have the expression stored outside of the template string, but meh
the name would be somethingString which is awful, or somethingSpaceSeparatedString which is just annoying
14:09
log(`info: added user "${name}" with privileges "${privileges.join(' ')}"`);
adding quotes to the log doesn't really make it more readable tho, does it?
added user Jordan vs added user "Jordan"
tbh, the quotes make it look awkward
@rlemon the names will usually have at least 1 space in them
my opinion stays the same
info: added user "Matei Copot" with privileges "add-user remove-user read-list"
yea, for me the quotes don't add anything
14:10
@rlemon would be harder to parse later on
also, names can be lowercase
info: added user user with privileges and atomic bombs with privileges wut
compared to
info: added user "user with privileges and atomic bombs" with privileges "wut"
you'd actually get ambiguity if you were trying to parse the log file
which might be no biggie, but meh
idk, it's not a big deal. I just don't see a need for the quotes. and if you're trying to clean up the original line, removing the double quotes would help slightly.
omg I just wrote some super clever code using React, self pats
dumb question; do programming jobs generally have flexible hours?
yes?
but that depends more of the company itself
^ To both
14:18
here, people is free to come whenever they want. Only expectation is that they do work 8 hours per workday as contracted
you can work 6 hours on a given day. Then just work a bit longer the next day ...
morn
really? Hm... could you work like 8-2 then 4-7 for example?
It pretty much depends on who is in charge. For me, I have full reign and can work whenever I want to. It just happens that working ~8 hours Mon-Fri with an odd couple of hours here and there works best for me.
I only expect the balance being positive each month.
people are in our cowork from ~8:30am to ~7:30pm
14:20
I used to work 4 days a week, 10 hours a day and have Fri, Saturday, Sunday off.
@corvid yes, that is possible
is that common?
I cannot speak of that because I did not have been in many companies
in one company, they all come between 8:30 and 9:30. In another, people can come at 1pm and the boss doesn't bat an eye
I think it depends on the size of the company.. the bigger the company, the more rigid the schedule becomes. This is a purely anecdotal assessment.
14:21
well, tbf the boss of that company doesn't show up often
^++ that
what is defined as a big company?
and neither do some of the employees
working remotely is also accepted here
@milleniumbug you alive?
14:22
@corvid the presence of at least 2 company dogs
Really? I thought remote work is considered extremely negative...
@corvid The company used in the film "Big" with Tom Hanks
I work exclusively remotely.
@corvid in corporations, sure
in smaller companies, they actually don't want to spend money on offices
@Wietlol he is iirc, he often visits Maid Cafe :B
14:23
hmm
(the chatroom)
To put it this way, if you want to work remotely, you can find a place that allows you to do that.
s/chat/hentai/
@rlemon vi sucks because vim is the superior editor, right?
But working remotely isn't all sunshine.. Sometimes I miss the office environment. Hell, that simple drive to and from work is a very very good decompression/transition from work to home.
14:24
pretty much
@towc And amongst companies where people can come at 1pm and the boss doesn't bat an eye, you have companies with awful management and companies with excellent management
@rlemon thx bby
ed is the god of all editors!
@towc is a small company like, 10 people or something? Most companies I worked at are 20-50 people and have incredibly strict rules on hours
> drive to work ... decompression
> lives in Orlando
does not compute
14:25
I enjoy driving.
@corvid I've experienced the opposite
I've been at a single company that went from "in-office strict hours" to most of IT working remote.
small companies are stricter about hours because less bodies to fill seats.
the large companies I've worked at all had flex hours
Orlando traffic isn't bad at all unless you're on I-4 right now with the stupid 'I-4 Ultimate Project' even then, it's less traffic and more just the horrible quality of roads.. If you want really awful Traffic in the South, go to Atlanta.
@corvid the 1pm one has 12 programming employees
14:26
@towc better to rephrase that because that is not true
@hilli_micha ehhhh.
Disney traffic > Orlando traffic
company size doesn't really say anything about how strict they are
@KarelG doesn't fit all companies
lots of starting IT companies have a physical office with employers going to there
14:26
There's that junction that goes off towards UCF, downtown, and the other way goes to the outlet malls
Whatever that is, it's hell
though something could be said for smaller companies being less willing to let programmers connect remotely
but it does fit pretty much all the companies I've looked at
@KarelG having an office legitimizes the business.
they're pretty much common place
also a reason
for all sizes
14:27
Because you get tourist traffic, old retiree traffic, college kid traffic, and city traffic
and tbf I live in a cowork, so ofc I see a lot of companies that don't have their own offices
@towc those are not the common case
most companies you would (want to) work for have offices
well, it's not rare either
yeah, I'm realizing I have a bias
@rlemon towc's experiences are our experiences plz learn
14:27
Maybe the thinking is still somewhat backwards in Italy still, but I have yet to see a job where they allowed me to work from home
or anyone for that matter
@Vap0r Just off the turnpike?
probably trust issues? :P
then you get companies like X-team, with (I think) 80+ employees, the huge majority of which working remotely
I work for Tribridge which is majority WFH (work from home)
@Neil wait, you work from italy? A company from italy and you're remote? How is it
14:29
There's a junction that goes to the malls just off the turnpike near Consolate Dr
the only programming companies I remember from italy had offices
remote isn't considered good there. Again, from what I remember
@towc You misread then
I have yet to see a job where they allowed me to work from home, unfortunately :)
The only road around here that bums me out is Orange Blossom Trail, but even then, it's a minor annoyance. I've yet to encounter anything here that matches the hell that is Atlanta
@Neil or maybe I read well and you didn't cover all common interpretations of your sentence
14:30
fucking hell... I have to add a new part to another part and I need to find 3mm somewhere :/
@towc I can't see another interpretation, honestly
@hilli_micha atlanta is easily solved by driving with a severe distaste for both humanity and life and limb
That and a sun pass :)
I felt like I hacked traffic
Going 70-80 for miles and miles while the traffic next to me was stopped
on the other hand, both factors that I'm towc and that I'm tired will contribute to a distortion of what's "common"
I mean, you're not wrong, but it makes it a little stressful because you genuinely do have to drive like you're ready to kill someone in Atlanta. lol
@Luggage do you have a creality cr-10?
14:32
yes
who doesn't?
@hilli_micha hahahaha
@hilli_micha I suppose you've been to the Varsity?
@rlemon uhhh...
What'll ya have what'll ya have what'll ya have!? :)
14:32
I am trying to print a callibration cube and it's got a lip at the bottom. And the height is diminished.
I've been all around Atlanta, we have family who lives there. But I haven't been to the Varsity in years because it's not all that special imo
I fell asleep at work yesterday
best place for a greasy burger
pics? bed temp?
@jmb.mage settings/slicer
14:33
@towc do you work now?
@Neil varsity?
fan speed
I understand it was better once upon a time
print speed
@jmb.mage that's known as an elephant's foot. I solve that (in cura) by reducing the first layer expansion
someone got me angry and I needed to chill down so I went on a hammock to chillax and I napped for a couple hours
14:33
@Vap0r The Varsity is a famous burger joint in Atlanta
@Vap0r well, the hackerspace is my job now

3D Printing

all stuff related to 3D printing
cough
@towc gratz!
I've never had a strong opinion about it.. if I'm around and I'm hungry, I'll go there, but I won't go out of my way.
@jmb.mage also, how much is the height off by?
14:34
towc, are you being paid ?
besides a stay
@Neil neat I'll have to check it out.
It's sort of a pain to get to
@Vap0r not really. A part of me really wants to leave. This and slovakia. But in the rare case you'll want to hear about that, we'll need to go somewhere else :P
Maybe I won't then. Atlanta scares me
you see it clearly off the main road through atlanta, but not so easy to turn off of
14:34
@Vap0r You can see it from I-75
@towc life is about change. Making sure the changes are for the good is tough but vital. Other than that no not particularly I've got some work to tend to
Atlanta has a lot of good food places imho
@KarelG I really just need the people around me to be happy again. I have money. The hackerspace is kinda broke and it would get the depressed angry people even more depressed and angry if I asked for money now. So no, but their possible happiness is my salary
though if I'm comparing, I'd say Chicago is the best
@Neil I tried navigating w/ no GPS or maps from Florida to my parent's in North Carolina and ended up doing a loop around Atlanta, +60-70 minutes time-sink and +10 frustration
14:37
The 'perimeter' (I-285) around Atlanta is a sick joke
there are 4 people who are very very active in managing the hackerspace. 2 of them might break up any minute now, because she discovered she might be into the third person, who decided to banish himself from the hackerspace just today, to avoid conflict with the guy. The 4th is me
Getting into DC is similar, there's a minimum of 8 lanes of beltway to cross.
@Vap0r That's happened to me before, not specifically in Atlanta
but I completely understand that frustration
@ssube Oh yeah..DC, Ashley told me DC beats Atlanta by a mile when it comes to awful traffic. I haven't been to DC, but she's frequented both.
virtually every street around Atlanta is a Peachtree drive or Peachtree road or Jackson street
14:38
It's bad, but probably not as well-known as Atlanta's traffic.
They love their association with peaches
oh you: you should see Brussels Ring R0
Though South Carolina produces more peaches than Georgia annually
everybody, even out here in the undeveloped wasteland, knows you bring 3 extra bumpers and 4 hubcaps to Atlanta
@rlemon hey man a while back I asked you for help about my best friends sister and pursuing a relationship with her. You gave me some good advice and it ended up working out great. Just wanted to say thanks
14:39
as spare parts, for barter, w/e
rlemon, the love guru
I always get a laugh in Atlanta because the speed limit is 55, but that is NEVER adhered to
@hilli_micha yeah, the only ones going 55 are the old couple who don't know how to drive
!!afk a bit of work
you can do whatever the number is on the sign, after the I-
14:41
@hilli_micha Are there places where the speed limit is adhered to?
@KendallFrey Yeah but in Atlanta, speed limit is 55, but people travel at 75-80
@Vap0r did you get both is the question
@KamilSolecki Vap0r is afk: a bit of work
I can't even have headphones on because I need to listen to the doorbell :/
@KamilSolecki not sure what you mean by get both
14:45
@towc pi-enabled doorbell with desktop notifications
well, we're trying:
But right now my best friend isn't talking to me. But that's his fault and he'll come around
@rlemon these moving shapes could make for some interesting prints
those are unfortunately renders, not real motion sculptures, but most of them seem possible
@KendallFrey you may also be entertained
So, uh, I've seen some issues about it, but none of them mentioned this specific case.
@MadaraUchiha dont you think that render() in react should by default return React.ReactNode?
14:47
@Vap0r \o/
a guy who's organizing the PyCon SK hacked something together with hardware
@Neil love doctor*
still need a sensor to get notifications from the phone
@KamilSolecki Today, probably. Before React 16, you couldn't have returned a number or a string like you can today.
You had to return a single JSX element, which is why the default return type is JSX.Element
which will likely be a photoresistor on the keyboard, because it lights up when someone calls
14:48
why fuck around like that
splice a wire off the led that lights up
use that signal directly.
@ssube possible but extremely difficult
we don't want to make the phone unusable
that wouldn't make it unusable
just don't go all axe murderer on it
it's got proprietary hardware mods, probably costed a couple hundred euros
it's a load-bearing LED
14:49
only when it's on
!!rimshot
by unusable I mean not pretty much exactly like it was before
we didn't even solder the contacts. That wasn't because of laziness/incompetence
@KendallFrey yeah, plenty of them would be impossible or impossible to print, but I think the pendulum-like ones should be possible with precise parts
well, after assembling the robot arm
I realised I can't point the head down
it stays level
cat-laser-toy-fail.
cc @Luggage :(
14:51
add an axis
print a 45-deg wedge?
@MadaraUchiha yeah. I stumbled on that for the first time today as I was making a HOC and it wouldn't let me decorate my component until I made the decorated components render method return as React.ReactNode
As that is the default for React.ComponentClass
@Luggage thought about it, but then I need a servo I don't have
@ssube The problem is that most of them are extremely chaotic, so everything would have to be almost literally on rails
@KamilSolecki You can use React.Children.only(this.props.children) to wrap this.props.children if you know it's going to be one element
If you don't (or you explicitly want to accept more than one element) you can wrap with <React.Fragment>
14:53
now usable as <>
@towc Yeah, but I like the explicitness of <Fragment> or <React.Fragment>
meh, fair
@MadaraUchiha oh, neat. thanks.
I think I'll sign up to one of those hugging/cuddling services
14:54
Note that React.Children.only() will throw in runtime if this.props.children will be more than one element
So be careful.
it's a HOC, hence it will always be one component that is wrapped.
@towc Gym teachers?
@Luggage American students, ruining every teen dream of a romance with a hot teacher, with lawsuits
@Luggage nice
@KamilSolecki uhm, not every teen
or maybe I just didn't have a hot teacher
@KamilSolecki <MyHoc><Comp1 /><Comp2 /></MyHoc>
Not unheard of
Unless we're talking about a decorator
14:59
Yes, a decorator.
Ah, alright, then React.Children.only should work fine
sweet, danke.

« first day (2698 days earlier)      last day (2474 days later) »