HNHacker News
TopNewBestAskShowJobs

slayerjain

118 karma · joined August 16, 2016

submissionscomments
slayerjain··on Systems Correctness Practices at Amazon Web Services
I worked on adding golang time freezing in keploy by using the approach from the go playground which used a fixed time (2009-11-10 23:00:00 UTC) but also increments the system clock used by goroutines.
slayerjain··on Systems Correctness Practices at Amazon Web Services
similar to the integration testing component in keploy.io, which includes time freezing.

basically certain system clocks are rolled back and incremented in a deterministic manner to emulate real issues recorded from production bugs. Had lot of fun working with building this and the effect of messing with different system clocks by intercepting system calls.

https://keploy.io/docs/keploy-cloud/time-freezing/

slayerjain··on Show HN: Open-source implementation of Meta's Unit TestGen–LLM in Golang
I’m curious how well this creates new tests.

Also nice to see more Go based LLM apps

slayerjain··on Google might keep your Pixel during a repair if you're caught using non-OEM part
Straight up theft . Wow, even Apple's Terms aren't shitty enough to state that (although they'll charge you a fee). https://www.apple.com/legal/sales-support/terms/repair/gener...
slayerjain··on Ask HN: People who make $10k+/month working on AI tools, what do you do?
Telling other people that i make 10k + a month and sell Coaching /s
slayerjain··on A bunch of Windows Recall clones have already spawned
Don't you love it? Employers finally will be able to reassert the control they lost thanks to WFH.

Truly marvelous how people come together to solve the problems they're really worried about.

slayerjain··on Is it possible to turn off AI Overview in Google Search? What we know
They'll get rid of it eventually when it starts cutting into their ads revenue.

But for now, we have to suffer through someone's terrible idea to make it part of their homepage lol

slayerjain··on Electric Cars Are Suddenly Becoming Affordable
Only because they know Chinese EV will take 100% of the market if they do not come up with cheaper EV.
slayerjain··on Electric Cars Are Suddenly Becoming Affordable
Because the EV industry has reached a new maturation stage in which companies lower prices to capture market share.
slayerjain··on Instagram confirms test of 'unskippable' ads
Instagram used to be great to avoid all of the BS posts and ads from FB. Now it’s just an endless scroll or reels and I don’t even see anything from the real people I’m friends with.
slayerjain··on Instagram confirms test of 'unskippable' ads
Guess I'll go confirm my test of "deletable" apps.
slayerjain··on Root your Docker host in 10 seconds for fun and profit (2017)
Thanks to who ever upvoted my comment. Someone had downvoted me (╥﹏╥)
slayerjain··on Root your Docker host in 10 seconds for fun and profit (2017)
Not by default. But if a docker group is created and the non root user is intentionally added to docker group despite ignoring the warnings in red here - https://docs.docker.com/engine/install/linux-postinstall

then yes :)

slayerjain··on Root your Docker host in 10 seconds for fun and profit (2017)
I think this is the reason docker on linux requires appending sudo to the command by default.

Creating a docker group and adding the user to the docker group to avoid sudo is more of a convenience thing, and the implication seems to be well documented now - https://docs.docker.com/engine/install/linux-postinstall/

so if someone sacrificed convenience over security, I think the authors can't do much.

Also I think there's no such thing as secure vs non-secure product, instead its levels of security.

slayerjain··on Ask HN: Evaluating Open Source: Beyond Stars, What Do You Look For?
For a complex project it can be hard to go through the codebase. I have seen many projects where the development is active and the docs looms good but are quickly become outdated because of low usage.
slayerjain··on Ask HN: Evaluating Open Source: Beyond Stars, What Do You Look For?
> Active contributors is generally the most important metric IMO, but there are a lot of projects that break that rule too.

Just curious, can you please share some OSS projects that break the rule?

slayerjain··on Ask HN: Have you tried weight loss drugs?
What do you think about sports (say badminton) compared to treadmill or cross-trainer for cardio?

If I end up burning the same amount calories? Because I find it much easier to burn calories playing badminton compared to treadmill..

slayerjain··on Ask HN: Have you tried weight loss drugs?
I think developing these habits requires real will power.

Its relatively easy getting pumped and aggressively dieting or exercising for few weeks/months, and then later slowing down and gaining back all the lost pounds.

A habit that seems to be making a difference for me is consciously chewing food 2x longer than usual. I end up eating less food and have improved bowl movements.

slayerjain··on Ask HN: Have you tried weight loss drugs?
Yes, I agree. I feel we are definitely missing out.
slayerjain··on Ask HN: Have you tried weight loss drugs?
So the weight loss drugs in the show were similar to Garcinia?

Because people seem to be losing appetite and getting addicted xD

slayerjain··on Ask HN: Have you tried weight loss drugs?
I think weight loss is more than just calories in/out. Maybe our body reacts to adapt to situations and tried to change the body shape to make it easier for itself. So I think healthy habits are more important and can depend on genetic history too.
slayerjain··on Ask HN: Have you tried weight loss drugs?
I thought it wouldn’t end well for the “rich” people - they would end up with some consequences like man-bear-pig or participating in fads like Prime energy drink.

But it wasn’t great either. Cartman never got thin, randy never got thin, women got abs - and maybe super high cravings/addiction to the drug.

That got me thinking, are they saying that this drug is legit but expensive because of the messed up healthcare system or its just a rick people fad and get them to do stupid things.

slayerjain··on Ask HN: Have you tried weight loss drugs?
No, but usually they are trying to prove a point like ‘lazy solutions have great beginnings but don’t end well’. This time it was different and I might be living under a rock but never heard of weight loss drugs.
slayerjain··on Ask HN: Is Anyone Using eBPF Beyond Observability?
Oh yeah, i guess its used in cillium for that usecase. Not sure about Envoy though.
slayerjain··on Ask HN: What's a new developer tool you recently started using?
Lima - pretty smooth way to develop on a linux vm on macOS. I connect it via SSH to VS code, and performs quite well on M1/M2 MacBooks.
slayerjain··on Don't Use Mocks
I actually agree. I think the point the author is trying to make it that fake can be reused in more places and stay relatively same as the code updates.

But I personally think that instead of spending the time to write a fake, its better to just spend the time writing actual integration test with the real dependency (eg: just run the db in docker or something)

or if you don't want to spend that time, then just record the interaction (eg: db calls) and create "throwaway stubs". Use this stubs as long as they are relevant, and then generate new ones as your code grows. Save time "writing" any mocks, and you don't tend to couple too much with your mocks :P

slayerjain··on Don't Use Mocks
You know, faking stuff in code is a really case-by-case deal. You've got libraries out there like Localstack, for instance, that do a solid job at pretending to be AWS, but finding one solution that fits all? That's tricky, because everyone's needs are a bit different.

I've actually messed around with a library that makes stubs by recording external calls to things like APIs or databases. Sure, it can get a little brittle at times, but it's kind of cool because it's using real calls to create these stubs, and you don't have to put in a ton of extra work. Like anything else, it's about weighing the pros and cons and seeing what fits best for your project.

slayerjain··on Iterating on Testing in Rust
What about httpmock or wiremock?
slayerjain··on TomTom’s new mapping platform and ecosystem
Apple Maps is also working well for me in Delhi NCR, India. Apple seems to have partnered with local mapping company called MapMyIndia. The traffic information and navigations are also quite useable and the ETAs also seem accurate.

I always check both Apple and Google Maps, but use Apple maps on my iphone because its way more battery efficient.

slayerjain··on Launch HN: Karate Labs (YC W22) – Open-Source API and UI Test Automation
@zomglings is your team looking for something more UI driven like postman or something which simplifies or abstracts who dependencies are handled?
Page 1 of 3Next →