« first day (2447 days earlier)      last day (2503 days later) » 

3:06 PM
declare module 'immutable' {
    // allow spread operator to be used for args
    interface Map<K, V> {
        setIn(...args: any[]): Map<K, V>;
    }
}
@MadaraUchiha :)
 
ew
 
aah my rep is now a palindrome
 
 
@KarelG take that
 
I wish I could kick feeds
 
3:12 PM
We can adjust it, but xkcd once per day isn't that intrusive.
 
user1596138
@ndugger What happens if you send the kick POST with Feeds ID
 
I like feeds
 
user1596138
Lmao -2
 
I wish feeds could kick ndugger
What's G()? I'm trying to understand the joke
 
So I'm currently using regular expressions to validate something like a serial number. These are made with user defined templates where they could specify: I want the word "Dog" followed by a counter that will increment every time I generate a new number (Dog1 Dog2 Dog3...). That's fine, use /Dog\d/... But they can also specify: Increment the number by 8, so that makes invalid (Dog1 Dog2...) and only should allow (Dog8 Dog16...) I believe I should be using something different, but what?
I have been looking into "parsing grammars" and I think that's what I need, but I'm really confused by what they are actually used for. Most of the examples are like 4 + (2*4) and then it's calculated to be 12.
 
3:14 PM
@Jhoverit I don't think it errors, but seeings how feeds isn't actually in any rooms it doesn't matter
pretty sure we've tried it before
 
eh lol
> I'm in the process of creating a paint-by-number game for my Master's thesis. At this point, I'm still just trying to figure out the very basic programming for it.
how did he reach the master classes then ? ._.
 
$$
 
you can buy out your bachelor degree ?
 
@SvenTheSurfer I think the simplest is a mix of regex (for the main format) and code (to check the number ranges)
Regex for "dog followed by 1-10 digits", then just check that they are a multiple of 8 in code.
but.. there was a parser in js that ssube always talks about.. lemme try to remember..
peg.js ?
 
you can outsource homework/projects.
people do it all the time
 
3:21 PM
outsource homework?
is that even legal?
 
if you don't get caught
 
same with murder
 
> legal if you don't get caught
best kind of legal
 
@Luggage Yeah I saw that. the one example they have generates like 600 lines of JavaScript code and I'll be generating possibly up to hundreds of different "templates". There are other problems I'm running into with regex, but I think you might be right with having to do some basic patterns with regex and then the specifics again with code.
 
3:23 PM
@Vap0r you either don't realize how offensive that is, or you're just a dick
 
@towc Given those two options, I choose the latter
 
he knows how offensive it is. Both of you just ignore each other.
 
@towc @Vap0r I think it's hilarious
 
But would like to put in a request for a better third option if possible
 
what do you suggest?
 
3:24 PM
admitting that he's right
 
@ndugger your job is to de escalate.
 
That'd be nice :) But no, the better third option would be for you to go an check the context. I'm not guaranteeing you'll like it, but check out what I said afterwards.
 
@Luggage fair enough
 
just to clarify: what he's saying is similar to "you're getting quite good grades in PE, and that's clearly because once 2 years ago you had a 200m run"
 
It was definitely inflammatory, but not just for the sake of pissing ya off
 
3:26 PM
Drop it now, both of you, please.
 
hmmm... is it a bad idea to subclass MobX classes? I want to subclass AuthenticationStore on every authenticated resource, which exposes actions like makeAuthenticatedRequest
 
Ok
 
@observable
class PostsStore extends AuthenticationStore {
  @observable posts = [];
  async requestsPosts() {
    this.posts = await this.makeAuthenticatedRequest('/posts');
  }
}
 
did you mean to use "@observer" for the class decorator? (instead of observa ble)
 
I think he actually wants that to be observable too
and is wondering if that's a good idea
they'd be observed from an external class
 
3:31 PM
if that's mobx, then it makes no sense.
 
yeah
 
if it's whatever library you are thinking of, towc, then you might be right
 
oy
 
Sorry, but you are looking for a reason it might be used in some strange case. until @corvid speaks up and tell us why he posted that, I think pointing out something that looks different than the normal use is more likely to be useful.
 
that's my interpretation of what he wrote beforehand
but sure
it was a friendly "oy" :)
 
3:34 PM
7 mins ago, by corvid
hmmm... is it a bad idea to subclass MobX classes? I want to subclass AuthenticationStore on every authenticated resource, which exposes actions like makeAuthenticatedRequest
 
well, we'll see if he actually has a question or just likes posting code :)
 
that is mobx
 
I had a question, it was two lines above
 
ohh, missed it. ty
 
Posted some (apparently not very good :( ) code
 
3:35 PM
to me that looks like a store, which would be observable, not an observer, but i'm new to mobx so whatdoino
 
yea.. that doesn't explain the @observable. that still looks wrong. subclass is "fine", though
ohh. then neither
you only need to make the properties observable.
 
probably wrong decorator yeah, I didn't test the code I wrote it as pseudocode and I am completely new to mobx
 
i could see that potentially being problematic
 
while subclassing is fine, i don't see anything that says makeAuthenticatedRequest() needs to be on an ancester class and not a loose function (in this exampe)
 
can anyone point me in a good direction. im trying to rotate a sprite in its position but i use translate and the rotate and the image rotates but not in the same position it starts moving
 
3:38 PM
if the information needed to authenticate is stored on the instance of AuthenticationStore, then... you'd have to store it in both so that requests work in both.
 
@AndréMarques make a fiddle?
also, probably a save/restore
 
ctx.beginPath();
        ctx.save();
        ctx.translate(32, 20);
        ctx.rotate(player1Car.angle * Math.PI / 180 * 1);
        ctx.drawImage(player1Car.movementSprites[player1Car.currentIndex], player1Car.x-32, player1Car.y-20);
        ctx.restore();
        ctx.closePath();
this is what i have got
 
okay close
 
i cant figure out what i have to do more
 
save
translate
draw // this and rotate might be the other way around. I can't remember
rotate
restore
try it that way
save/restore iirc will close the paths for you
so no need
 
3:40 PM
I assume there are other domain stores besides "PostsStore"?
If so, will each one manage their one authentication state?
 
also, why the weird translate?
 
!!magic
 
normally I'd
translate(car.x, car.y);
draw(car, -car.width/2, -car.length/2)
or w/e
 
(∩ ͡° ͜ʖ ͡°)⊃━☆゚. * ・ 。 ᵀᴴᴱ ᴳᴬᴹᴱ
 
actually that's likely your problem
you want to rotate around the center of translation
then draw relative to that.
 
3:42 PM
translate to center of position
rotate by wanted amount
draw with a shift of half backwards
unrotate
untranslate
 
save/restore slower than translate*2?
iirc save/restore is pretty quick.
 
I think so, but barely
actually I have no clue
 
it looks more convenient, if not faster.
 
save/restore just generates a stack of transformation matrices, so I don't see that being slower. It's just harder to read for me, and that's just a personal opinion
 
you don't have to undo translations (manually)
 
3:43 PM
so i have to translate to the car position and draw relativly to the center of the canvas
 
correct
if I interpret it the way I want too
2 mins ago, by rlemon
normally I'd
translate(car.x, car.y);
draw(car, -car.width/2, -car.length/2)
 
but i still need to save and restore
 
yes
 
and dont need paths
 
in this specific case, no
but adding in the paths inside of the save/restore wouldn't make it worse
just not needed
 
3:44 PM
ok i will try
 
!!afk 🚗 🏠 🚽
 
rlemon is apparently driving home to go poop
 
yes, actually, he likes to use his squatty potty
 
I poop in-situ
 
oh, haha. I win!
 
3:50 PM
is there a way to debug a page that's live?
scratch that, I mean edit it's javascript
and try to run that again.
 
hello, i need some help with with element not being the right size. here's a picture imgur.com/b3EAd68
 
@rlemon thanks it worked
 
@AndréMarques rlemon is afk: 🚗 🏠 🚽
 
@kenyunot Can you create a fiddle?
 
on it, good idea
 
3:55 PM
@Kramb Can you not?
I'm so sorry, bye
 
/kick
 
@AndréMarques no prob bob
 
@SterlingArcher Yes I am aware of that. I wanted to confirm from the OP that it is the same one or a variable in his program. — Prerak Sola 2 mins ago
what in the fuck
Dude thought OP overwrote localStorage
 
I don't think he did I think he was covering his ass
 
blargh, there's a ton of dependencies so it's kinda hard to get it all on jsfiddle
 
4:03 PM
we believe in you
 
Done and done
 
wash your hands
 
Did that before I touched the phone.
Priorities
 
OK so the h3 in the panel heading is not the right size
 
I wash my hands with my phone
 
4:07 PM
actually i just updated it so the icons are there
 
i.imgur.com/QS2O4HJ.mp4 lmao naval piercing pass out
 
naval piercing and navel piercing are two very different things
 
anyone in here a gardener?
in The Garden Shed on The Stack Exchange Network Chat, 3 mins ago, by rlemon
ahoy, so I've started toying with indoor growing, and I've run into a problem
my poor kale.
 
What is the avg temp of the place they are in?
 
4:16 PM
16-18c
constant really.
it's in my basement
 
Are you sure there are ZERO insects in there? Theres a lot of little bugs who like to eat the top layer of leaves.
 
positive.
 
@kenyunot where are you setting the size and what size do you want it to be?
 
well i never set the size, i want the size to just extend to the size of the text
i don't know what is going on, but if you go in inspect element and toggle the padding, it will fix itself
 
Are you testing the nitrogen level lemon?
 
4:18 PM
I've tested it with my fishtank testing kit, so I know it is high.
too high for fish, but that would almost always be the case if you're adding nutrients.
 
HAPPY TAU DAY EVERYBODY :D
 
user1596138
@rlemon I don't know about Kale... But that looks like nutritional deficiency
 
I think..
 
Yellowing leaves can be caused from pests, low-nitrogen levels, or low temperatures
 
user1596138
Chop up some bananas and mix them into the soil
 
user1596138
4:18 PM
They need their potassium
 
@Jhoverit that's what I'm thinking. but leaves need nitrogen, and I know the water doesns't lack that.
the other two p's are for roots and fruit.
I don't have anything to test for them sadly.
@Kramb see, I was thinking maybe the nitrogen levels are too high
 
user1596138
What's your medium
 
clay for the roots, and rubber mulch for the top layer
the roots touch the clay level, which is where the waterline sits
 
user1596138
Like normal clay? Not like vermiculite or something
 
the gardening porous stuff.
 
user1596138
4:20 PM
But it's store bought
 
yes
 
user1596138
Might look into what's in it
 
Light, sandy soils and very heavy clay soils will “negatively”* affect the flavor of kale
 
4:21 PM
this, a bit of lava rock (not much, just whatever I had) a bit of gravel for the bottom level.
rubber mulch over the top layer
grew some awesome bok choy
 
@SterlingArcher is that real?
 
kale is hurting.
 
Get you some dried blood and mix it in the soil
 
again, no soil.
 
user1596138
Things like vermiculite cause potassium deficiency which looks just like those purple spots
 
4:21 PM
this is an indoor hydroponics/aquaponics setup
 
@towc doubt it lol
 
@Jhoverit I'll get some 4/4/4 fert and add it
see what happens.
 
@ndugger
 
user1596138
So yea I would look into whether you actually have the nutrients you need, the artificial soil may be something that not only lacks a mineral but basically destroys it (like vermiculite )
 
user1596138
Try growing in pure fertilizer :joy:
 
4:23 PM
Ah: "Some leafy vegetables, which includes kale is nitrogen sensitive and easily get leaf tip burn when nitrogen levels are too high. You'll need nitrogen, but not in excess."
 
^ bingo
the nitrogen spike was so high I had to remove the fish
black gill was setting in
 
Where can I get large amounts of Ammonium Nitrate?
And Potassium Nitrate?
 
user1596138
@Vap0r Amazon
 
user1596138
@Vap0r Amazon
 
urine
 
user1596138
4:24 PM
I bought 15lb of KNo3 at a time on amazon
 
user1596138
Smoke bombs and sugar rockets
 
Yeah I was interested in the smoke bombs
 
user1596138
@Vap0r Or you can buy stump remover at your local hardware store that's pure KNo3, but it's a lot pricier
 
@rlemon funny you mention urine, you can decrease nitrogen levels with ammonia
 
Knew about the stump remover wasn't able to find it at Home Depot
Will try Amazon thanks @Jhoverit
 
user1596138
4:25 PM
i.imgur.com/gmS5tOk.jpg cooking smoke bombs 7 years ago lol
 
user1596138
I fucked up and lit the pan. The bottom melted out
 
lmao that's pretty funny
 
@Kramb in small doses, urine is great for the garden
(outdoor, no clue about closed systems)
 
!!afk going to go eat some kobe burgers
 
I have nothing but youtube to prove this accurate. but the dude telling it has given me good advice before
small doses === heavily diluted.
!!afk 🚗 🏢
 
4:41 PM
I was just assigned a ticket to "get clarification" on my tool (which is 99% done) on what "validation really means to the customer".
The customer has seen this tool in action approximately 10 times, and hasn't said a peep other than "we love it"
what in fuck is going on
 

« first day (2447 days earlier)      last day (2503 days later) »