« first day (3979 days earlier)      last day (1194 days later) » 

02:41
 
6 hours later…
08:15
Good morning
@JBis How to find out who made a command? Cap would tell us who made a specific command via ||info commandName. More concretely: ||facepalm has a new link, I couldn't find the command in the github repo, can't ||forget to re-||learn it either and can't find out who made it.
||man facepalm
facepalm: "User-taught command: http://www.eteignezvotreordinateur.com/wp-content/uploads/2014/01/FACEPALM.png" Creator: SteamFire
08:40
Hi All
Im facing one issue about handling calls that takes longer time in sending responses in nodejs
from my nodejs service, I'm calling one more service, which processes a lot of data and returns the response. But it takes around 2 minutes to receive the response. But this 2 minutes time is not always same. Sometime it takes 3 minutes, sometimes 1.5 minutes like that
what I'm trying to do is, If the nodejs service don't recieve the response in under 2 mints, it should return some response back to the client
Can anyone suggest what approach I can follow for this
09:09
@BenFortune Ahh nice
@SteamFire fix yo shit
09:33
slightly off topic does some one know how these vertical lines are called in the workbench settings of the vs code editor ?
something with "block" or similar I think
block scope indicators or something?
10:25
indent guides
@JLewis Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
Hey all,
I'm trying to get my head around rtk-query with redux. I can't figure out if you need a middleman server like apollo still, or can hit the store endpoint (mongo/firestore etc.) directly. I've not had much luck with my googling, and wondered if anyone had experience with this before I try and build a whole PoC. Thanks!
10:51
hmm is the short sha8 key for a git commit always the first 8 characters of the long sha key?
git rev-parse --short LONGKEY
11:41
@paul23 Not necessarily. If there is a collision in the first 8 characters, then Git will give you 9 characters. Or as many as to there not being a collision (but I've only seen it add 1 so far).
I prefer to always use the long hash. I've had occasions where I have a list of short hashes for one reason or another but after some time that list is no longer safe to use because the short hash now collides with another one.
Git throws an error that it's ambiguous which thing you are referring to. You can give it 9 or 10 or however many characters of the hash to uniquely identify it but I find the full hash is just what you need anyway.
 
1 hour later…
12:44
o.o been a while I have been here
too busy lately :S
@VLAZ you've won a lottery
13:05
@KarelG I wish... collisions in 8 characters are far more likely than the lottery. The general recommendation from the Git book itself is 8-10 characters to uniquely identify a commit. That's out of 40 total. I just cut out the middleman by using the full hash. I'd rather not grab 40 then cut down to 10 or something. Mostly because it's harder to extract this from Git.
not in git
well, if you operate in a specific branch
if a collision has been occurred, then
1. you have luck
2. or your repo contains too many blobs, of which is seen as "opaque" (secondary) data
@VLAZ Hmm chance on collision when you have around 1000 commits is still around 0.2% wolframalpha.com/input/?i=1+-+e%5E%28-1000%5E2+%2F+%282+*+16%5E7%29%29
ugh
https://www.wolframalpha.com/input/?i=1+-+e%5E%28-1000%5E2+%2F+%282+*+16%5E7%29%29
he's correct though, winning a lottery has a lower chance rate
I was just using a saying, it's just rare to have a collision in git
13:27
Can someone please help me with stackoverflow.com/questions/69078789/…
Woah and with 8k commits it's like 13%
Fortunately I don't use explicit commit hashes very often
13:48
@paul23 We had a lot more than 1000 commits... There were probably at least 1000 a year if not more. And the repo was 5 years old. I can't remember how much time passed between me getting the hash list (or why...) and when I found there was a collision. Might have been a month or more which very well might have added another 1000 commits (it was quite busy for a while).
Hey, how would you normally handle entity relationship in an Amgular app. I have a model where one entity can references other entities. In this case I don't want the user to delete a referenced entity.
Do you..
A) Allow deleting foreign key entities, and just handle that when the parent entity is loaded. Like displaying a message this view contians a resource that was deleted.
B) Prevent the user from deleting any entity with an fk relationship. By using a selector which checks for this link, then disables the delete button on that entity.
Using the NgRx package for context, which provides selectors
14:17
hi
in the one example we have, it's a cascade, but with good user notification of what will happen when they click go
 
1 hour later…
15:18
Ok you when you delete an entity, it also updates the parent entity by removing the reference FK?
not sure i understand
our case is mix of many:many and one:many
one:many for categories, many:many for products. for categories, deleting a category delets all child categories (one:many) and then "unlinks" all products of those categories (many:many) leaving the products themselves existing
well, that order is wrong, but that's the picture
unlink, then delete
15:51
Hi All, How to render the pdf content returned by server in this format

```%PDF-1.3
%Äåòåë§ó ÐÄÆ
3 0 obj
<< /Filter /FlateDecode /Length 83 >>
stream
x+TT(T0B3C#sK#…¢T…p…<ý€Ô¢äԂ’ÒÄ…¢L°¬®¡™¡ž¡‘…P‡±…™ž©™‰ ™œË¥ï™k¨à’4/‹öš
endstream
endobj
1 0 obj
<< /Type /Page /Parent 2 0 R /Resources 4 0 R /Contents 3 0 R /MediaBox [0 0 612 792]
>>
endobj
4 0 obj
<< /ProcSet [ /PDF /ImageB /ImageC /ImageI ] /XObject << /Im1

```
@Arun Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
Ok @KevinB thats a good approach also
can someone help on this ? stackoverflow.com/questions/69074787/…
Thanks @KevinB your suggestion worked for deploying multiple apps using pm2
you're looking for something like create react app
yeoman is one way of doing that kind of thing
I have no experience with such tools, as i build out my projects/stacks manually
16:10
8 hours ago, by Ben Fortune
||man facepalm
@duhaime @Cerbrus feel free to make a PR for the format message, bit busy rn
@KevinB That's correct! , do you have a sample link?
16:27
@JBis i'm using react-pdf github.com/wojtekmaj/react-pdf
16:52
@JBis where's the repo that controls the bot?
17:07
Oh... so you have a project, and you want to turn it into a template you can use to start future projects @faceturn?
just make it a repository.
git clone, done
 
1 hour later…
18:34
🚽
 
1 hour later…
19:56
@JBis thank you! I sent a PR

« first day (3979 days earlier)      last day (1194 days later) »