« first day (2746 days earlier)      last day (2201 days later) » 

3:00 PM
that is what turbo's do
 
does NO2 have more energy than plain O2?
 
injecting air
 
air !== oxygen
 
I said oxygen, not air
 
10122
A: How do I rename a local Git branch?

sirideIf you want to rename a branch while pointed to any branch, do: git branch -m <oldname> <newname> If you want to rename the current branch, you can do: git branch -m <newname> A way to remember this, is -m is for "move" (or mv), which is how you rename files.

lol, a 10k answer
how many reps is that
 
3:00 PM
no, but same principle can be used when injecting "nitro"
 
injecting O2 would not really end well, imo
 
@ssube I would guess so based on the strength of a nitrogen-nitrogen bond
@Ikari why?
 
injecting O2 would end fine
it just wouldn't be as interesting
 
too much uncontrolled combustion?
 
@KendallFrey you die
 
3:01 PM
@Ikari it's not uncontrolled when you're injecting precise amounts...
 
I guess he was referring to farts
 
@ssube oh wait NOS is N2O, not NO2
so the nitrogen bond argument is out
 
/me sees a chemistry discussion starting with bond strengths and stuff. /me flies away
 
huh, NO2 seems a lot less useful
at least for cars
 
@Ikari I was hoping it was a chemistry discussion that was ending :(
 
3:04 PM
@computed
get navbarItem() {
    return(
        <a className={'navbar-item'} key={this.id}
           onClick={this.handleClick.bind(this)}
        >
            {this.formattedName}
        </a>
    )
}
 
@ssube but it will be very useful in my factory
 
Inside a domain model - yay or nay?
 
s/domain/view/ and OK
 
always inside
 
I meant domain object
But ok
 
3:05 PM
a navbar is almost never part of a domain, unless your domain is UI, like a UI-contructing UI
is that a computed that returns a react element tree?
 
Ok, sorry for interrupting the discussion, but a question about the StackExchange API
 
@ShivenSinha 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.
 
@Luggage That was the idea
 
Here, I see a type for achievements api.stackexchange.com/docs/types/achievement
 
It was just a thought
 
3:06 PM
But, no method for accessing it
 
That's what the observer() component decorator / utility function is supposed to do for you
 
How would I retrieve the achievements from the API?
 
C++ package manager, I didn't know they come in shapes! conan.io
 
it's not WRONG to use a computed, if you need to do something different than mobx-react, though
 
It just made my map pretty.
this.store.objects.map(o => o.navbarItem)
That was the whole reason
 
3:08 PM
don't maps take a function?
 
That is a function
 
that's a function
 
you gave it the value from a getter
o.navbarItem doesn't return a function
 
x => x+1
that's a function
 
It's an arrow function
 
3:09 PM
ohh right. sorry
 
that return's the x parameter plus 1
quick maths
 
so verbose ugh
 
in my mind I read: .map(o.navbarItem)
 
your mind fooled you
 
anyway.. you can do what you are doing, but it's not a domain object if you do. I don't know what it is
it's also not idiomatic
 
3:10 PM
but it makes the map pretty!
You win some, you lose some
 
I only want to win!
 
I wasn't using domain objects at all before, so I'm just playing with them now
 
@Luggage why
an arrow function into a map is not pretty?
 
the plugin now has custom context menu \o/
 
a computed property on a 'domain' that has part of the view is the non-idiomatic part. Of course you pass functions to map() as that is what it takes.
Also, react-mobx has ways to construct views based on observables, @observer() and observer(x => ...). I doubt Cereal really outgrew those and needs to roll his own.
 
3:16 PM
mobx or redux?
 
the code looks like mobx. @computed
 
I was opening a debate
mobx vs redux, what do you prefer?
 
ah
 
:P
 
me? mobx. But I have never used redux in anger.
 
3:17 PM
> neevr uesd reduc
 
reduc, that seems like a nice library name, honestly
 
please don't make fun of my speech impediment
 
reducc is the thicc redux
 
reducc*
 
@Luggage you with
 
3:18 PM
actually
redux is more thicc than mobx
 
@KendallFrey What's !!s?
 
Has anyone here done a RHCSA exam?
 
!!s/x/derp/g
 
@KendallFrey reduderp is more thicc than mobderp (source)
 
Oh!
I was not aware that that can be targeted as well
And I should have known what it does :P
 
3:25 PM
!!s/[aeiou]/o/g 42233971
 
@KendallFrey I wos not oworo thot thot con bo torgotod os woll (source)
 
just like so
 
thot
 
be gone thot
 
whot ho sood
imho, "i" > "o"
!!s/[aeiou]/i/g 42233971
 
3:27 PM
fock yoo goys
 
no, fock yoo dodo
ond o'm not goy
 
!!s/[aeiou]/i/g 42234017
 
noob
 
@CapricaSix iz I in mindjail?
 
i think you were mindjailed
 
3:28 PM
!!ban Wietlol
 
!!> undefined
 
@Neoares The user will be thrown into mindjail in 1 more invocations
 
!!am i banned
 
@hilli_micha Input not matching /I\s(.*)/. Help: User-taught command: Definitely
 
!!am i banned
@rlemon you bastard
 
3:29 PM
pretty sure I banned you
 
I am not banned I think
 
!!s/a/u/g 42234061
 
@KendallFrey @rlemon you busturd (source)
 
lmao
 
cap should respond with you iz in mindjail
 
3:29 PM
Cap typically does.
If you try to invoke a command when banned.
 
@OliverSalzburg How soon can I expect a new build?
 
!!quote get wietlol
!!forget forget
iirc, rlemon maintains cap
 
!!ban Wietlol
 
that was the reason of the ban, actually
 
@KendallFrey Wietlol is already in mindjail.
 
3:31 PM
@KendallFrey Already done. Working on the commit
 
wot?
 
@KendallFrey she only tells to ROs? lol
 
@Wietlol Are you stuck in a loop, son?
 
Maybe it only says it once in some interval
 
im just confused
 
@OliverSalzburg I don't understand what this means
 
and were equally clueless when it happened.
 
> @Neoares The user will be thrown into mindjail in 1 more invocations
@KendallFrey Wietlol is already in mindjail.
 
¯\_(ツ)_/¯
 
@Wietlol the non-RO permissions system is fucked, ignore it
 
3:32 PM
i guess
but on a side note, how do i get out of mindjail?
 
no, we want a good system
plebs are also humans
 
@Wietlol be nice
 
I was nice, i ignored cap for quite a while
not intentionally, but still
only a few minutes ago, I tried making a conversation with cap again
 
hmm. There is no way to hijack a function without wrapping it, is there
 
get a lawyer
 
3:34 PM
I would unban you, except...
 
lawn mower?
@ssube except what?
 
Apr 20 at 14:31, by Wietlol
!!forget forget
4 mins ago, by Wietlol
!!forget forget
 
it'd be like unleashing a dog that's tugging at it's chain
 
or in this case an incredibly dank lion who promises he won't smoke all of your weed, but damn it, you know he's just gonna
 
@ssube I knew the second time she wouldnt accept it, and I wanted to trigger the "you iz in mindjail" message
since i wasnt sure if I still was
 
3:35 PM
@ssube yeah
4 mins ago, by Neoares
that was the reason of the ban, actually
 
@KendallFrey It means I wrote the commit message and then someone came to my desk and distract me with questions about work stuff
 
and other people did get responses
 
yeah, but that's why you got banned to begin with :P
 
I know
 
3:35 PM
@Wietlol I did
 
wait.. did I?
 
play stupid games
 
I thought so, but it's just Cap
you can be unbanned as soon as you stop telling her to forget things
 
@OliverSalzburg And if I prefer to wait for the extension to update?
 
ow it did
 
3:36 PM
@KendallFrey Ugh
 
@ssube as soon as she will respond to my messages, I will stop making her forget commands
 
You better have a good lawyer rep you on this one, call Jimmy McGill
 
I primisi
 
I guess we're at a stalemate, then.
 
I'll run a build at home. My workstation in the office is apparently not equipped for these tasks. Build fails
 
3:37 PM
@Luggage Its a stale then, mate.
 
@Luggage not entirely true
 
Is "stale mate" Australian for your friend who died of a spider bite last year?
 
Yes.
But they have like 100 words for "friend that died of a spider bite"
 
if you unban me, that will put cap in a state that she will respond to my messages, which will make me stop making her forget commands
 
Worst Argument of 2018 right there
 
3:40 PM
I tested cap before I tried forget
 
!!forget about dre
 
@OliverSalzburg Command about dre does not exist.
 
with quote, s and js eval... and "am i banned"
 
3:42 PM
this picture makes me happy so i wanted to share it
 
Speaking of animals
Chlamydia is a ladybug
 
you know calling ladybug to a guy in spain means "gay"?
#randomfact
 
@hilli_micha correct me if im wrong but what the hell is with its short ..beak?
 
please do not beak shame
 
I prefer ones with big beaks.
 
3:45 PM
if you continue to beak shame im taking this to github and exposing you for your beakist ways
 
@hilli_micha freaking Small Beaks Matter, seriously.
 
@KamilSolecki and when ducks get sprung they literally get sprung because their penises are giant helixes
 
can any one help me here
0
Q: How to Convert an array into Object using javascript

GajiniI had an array [{0:{title:"test1"}},{1:{message1:"message1"}},{2:{message2:"message2"}}] I want to get an Object in below format {title:"test1",message1:"message1",message2:"message2"} I am trying with below code but no luck var rv = {}; for (var i = 0; i < messageArray.length; ++i) if (...

 
@KendallFrey whoa a hella TIL
 
i'm just fascinated by duck genitalia ok
 
3:48 PM
No it's all good
 
if the title said "with jQuery" the question would be perfect
 
anyone knows an article that explains the ACTUAL diamond problem in multiple inheritance?
 
It kinda fascinating
 
> Mad Canadians
explain why you hate rubber ducks
 
3:49 PM
"actual diamond problem?" it's pretty straight forward, the wiki article covers it
 
It's just... not the real thing @hilli_micha
 
@ssube most articles I found dont even have a diamond, they just have 2 parents with a method
 
I, for one, love rubber d*cks.
 
inb4 starred out of context comment
 
the actual diamond problem involves calling the grandparent method twice
 
3:50 PM
@KendallFrey Yeah it's fun to splash with them against the water surface
 
which is what I havent found yet
 
@ssube Do you have an example of a gitlab config with staging/prod deployments?
 
!!afk someone stole my rubber d*ck, off to find it.
 
not publicly, I don't think. Usually it's a single .deploy-job: &deploy-job and a pair of jobs that implement that, but it depends on your stack.
 
Hmm okay, I've got a few but they look massively overcomplicated
 
3:52 PM
@KamilSolecki Print one.
 
@BenFortune do you have a deploy tool/script you run?
 
I don't have anything yet haha
 
usually I try to make a template and two jobs that differ on the env, branches (replace only: master with except: master), and maybe runner
 
My old deployment consisted of pushing to a git repo for dokku
 
ah, ok. what are you trying to deploy and where is it going?
 
3:54 PM
nodejs, into the kubernetes cluster
 
and you're already building a container with the app set up, you just need to deploy it?
this isn't a fully baked strategy yet, but I'm having good luck running kubectl against yaml files in the repo, from a runner within the cluster (with a service account giving it least-necessary to update)
then your two jobs differ by runner tag, you can do security per-runner (and set the prod runner to only run jobs from master), etc
 
@ssube Not yet, like I said I don't have anything yet
 
any config, secrets, env-specific stuff can be stored with the cluster def and TF (where you probably have other secrets) or generated as you push
 
I had to run a manual build step before I deployed before
 
posted on April 23, 2018 by CommitStrip

 
3:58 PM
ok, first step is getting a container, which is fairly easy
once you have that, kubectl apply -f to each env
 
0
Q: Does Angular 2 framework follow "stuctural typed" syntax?

overexchangeTypeScript allow structural typed syntax, class Person{ id: number; name: string; } class Student{ id: number; name: string; average: number; } var ob:Person = new Student(); and nominal typed syntax, class Person{ id: number; name: string; display(id: number...

 
@BenFortune source-to-container, this is a good example of what I usually use: github.com/ssube/home-dns/blob/master/.gitlab-ci.yml
 
4:17 PM
so i have an interesting problem in factorio
 
we'll be the judge of that
 
@Wietlol cap only responds to the first command after a ban. Otherwise it is spammy
 
I want to be able to pull a train with 8 fluid wagons into a loading station for some fluid, and only fill specific wagons
So for example I have a train designed to take 4 wagons of hydrogen and 4 wagons of oxygen
and I can't filter the tanks so I need to disable the loading pumps that are going into the wrong wagon
and which pumps to enable are per-train
 
can you read train color, maybe?
 
no, the only thing that could be used for that is the train ID
but that's arbitrary and can't be controlled
so the station would need different logic for every train
 
4:21 PM
no room for an extra car of items just for identification?
 
that's what I'm currently planning
 
or dip switches for train Id
 
same logic, just some configurable part to encode the train id, but forget that
you can have multiple stations in front of each other and go by which one it stops at.
 
the train id is useless if I want a generic station
It would be nice if trains had a built-in constant combinator
 
4:27 PM
make a mod
I don't know much about factorio circuits so this may be way off but: could you have 1 chest or combinator for the trainid and another for the 'config' so that you can have a 'table' of train setups?
 
you mean a lookup table?
 
yea
 
that would work, but again, it wouldn't be generic
would have to be extended every time I want to send a new train
 
so you want the train to tell the station what it needs, not have the station pre-configured for that train?
 
4:31 PM
hm.. I wonder if I should dedicate car#1 to be a logic/config car
 
the train setup is one train will gather all the resources for one block
 
@KendallFrey New version is published to the Chrome webstore
 
hasn't updated on there yet
 
Takes up to 60 minutes
So PETA published an open letter to Ubisoft for having fishing in the game
 
s/published an open letter/wrote on their livejournal/
 
4:44 PM
Either way, it's a waste of resources
 
PETA used to pay me to run ads
lol they were "Don't be a zombie, don't eat meat"
something along those lines
fucking crazy people.
but I'll take their money heh
 
Just to fuck with them, I'm gonna let all my kittens in Kittens Game die today
Nah. I'd never do that
 
lol
 
@Luggage urgh, that's scary from what I can see
 
I'm going to feed my tamagotchis meat!
 

« first day (2746 days earlier)      last day (2201 days later) »