Readit News logoReadit News
kparaju commented on 4B If Statements   andreasjhkarlsson.github.... · Posted by u/r4um
hoherd · 2 years ago
That would definitely violate his strict license:

    /* Copyright 2023. All unauthorized distribution of this source code 
       will be persecuted to the fullest extent of the law*/
And with such elegant code, who can blame him?

kparaju · 2 years ago
OpenAI see.

OpenAI ignore.

OpenAI train.

kparaju commented on 4B If Statements   andreasjhkarlsson.github.... · Posted by u/r4um
jl6 · 2 years ago
It’s true, the great thing about clean, reusable, modular code like this is that you can compose both of these packages to make a is-even-or-odd package.
kparaju commented on 4B If Statements   andreasjhkarlsson.github.... · Posted by u/r4um
cchance · 2 years ago
I mean... when you look at it like that, at least it's got the error checking integrated as well... tho the fact it pulls in is-number is fucking hysterical lol
kparaju commented on Microsoft announces new Bing and Edge browser powered by upgraded ChatGPT AI   theverge.com/2023/2/7/235... · Posted by u/anitakirkovska
codethief · 3 years ago
> Highly unlikely since Google has been playing around with their own chatGPT called LaMDA that they are now making into a product called Bard

I don't know. Obviously, we'll have to wait and see but given Google's long history of questionable product management I think Microsoft stands a fair chance here.

kparaju · 3 years ago
If Google lets LaMDA out in the open, they will see their margins shrink. Lose-lose for Google. Great move by Microsoft.
kparaju commented on 22 Discoveries of 2022   nationalgeographic.com/sc... · Posted by u/Brajeshwar
andai · 3 years ago
Any pics of the snail?
kparaju commented on The architecture behind a one-person tech startup   anthonynsimon.com/blog/on... · Posted by u/ksahin
ccmcarey · 5 years ago
Great writeup.

How do you handle database migrations when using an otherwise automated CI/CD flow with gradual deployment?

kparaju · 5 years ago
You could probably do something like (for django):

  python manage.py migrate
on pod startup. If there are no changes, it'll do nothing. If there are changes, it'll do the migration.

kparaju commented on The architecture behind a one-person tech startup   anthonynsimon.com/blog/on... · Posted by u/ksahin
lmarcos · 5 years ago
Nice read. I haven't seen any references to Ansible or similar tools. For the ones who know: given the architecture described in the article, does Ansible fit in the picture? I don't know a lot of k8s but I wonder how VMs are provisioned (e.g., how docker is installed?)
kparaju · 5 years ago
In the authors case, terraform will create the EKS (kubernetes) cluster, which then is responsible for creating the EC2 instances. The actual application containers are then created by EKS.
kparaju commented on The architecture behind a one-person tech startup   anthonynsimon.com/blog/on... · Posted by u/ksahin
kparaju · 5 years ago
Thanks for a great post! It was super detailed and I loved reading it. I had a quick question about your pg setup. You mentioned that you use EBS for your persistence storage, which is locked by zone . You can't have an EC2 instance in Zone 1 mount a storage in Zone 3. Does this cause issues with your db? Especially as you have HPA and ClusterAutoscaler, your k8s nodes could be spun up in Zone 1 for pg autoscaling but your data is in Zone 3.
kparaju commented on Suez Canal says traffic in channel resumes after stranded ship refloated   reuters.com/article/us-eg... · Posted by u/WJW
patentatt · 5 years ago
Knowing nothing about it, would it be safe to assume that the Suez Canal would always have a dredger around? Or is that not how that works?
kparaju · 5 years ago
Yeah, they have dredgers around for maintenance of the canal. This clip was from at least 6 months ago. https://youtu.be/P6st0k7KJmk

From the YouTube clip, it def seems like it's normal to see them when passing through the canal.

kparaju commented on Slack’s Outage on January 4th 2021   slack.engineering/slacks-... · Posted by u/benedikt
kparaju · 5 years ago
Some lessons I took from this retro:

- Disable autoscaling if appropriate during outage. For example if the web server is degraded, it's probably best to make sure that the backends don't autoscale down.

- Panic mode in Envoy is amazing!

- Ability to quickly scale your services is important, but that metric should also take into account how quickly the underlying infrastructure can scale. Your pods could spin up in 15 seconds but k8s nodes will not!

u/kparaju

KarmaCake day169February 19, 2012
About
kshitijparajuli.com
View Original