Better HN
topnewbestaskshowjobs
Log inSign up

croshan

383 karma · joined Nov 25, 2017 (9y ago) · 102 submissions

blog.cyrusroshan.com
Submissions

comment 5mo ago · link · parent

Nearly all my hackathon projects were hardware, back in college.

A couple examples (both from HackPrinceton, which had the best EE labs):

* https://blog.cyrusroshan.com/post/electronic-banjo (crowd favorite)

* https://blog.cyrusroshan.com/post/spin-to-win (a "moonshot" idea)

There's something nice about holding your work in your hands. Tangible work is also both easy to explain, and hard to fake. So going the hardware route felt fun, fulfilling, and scored well.

Good times.

comment 1y ago · link · parent

This works if you're on call for your systems. In many situations (ranging from small startups to big tech), you're also on-call for the systems of sister teams.

Not that there aren't other ways to fix that. But fixing the erroring service isn't practical in all cases.

comment 1y ago · link · parent

It's quite easy, actually. We did this at work, recently.

Bun is two things. Most commonly, it's known for its Node-competitor runtime, which is of course a very invasive change. But it can also be used purely as a package manager, with Node as your runtime: https://bun.sh/docs/cli/install

As a package manager, it's much more efficient, and I would recommend switching over. Haven't used pnpm, though--we came from yarn (v2, and I've used v1 in past).

We still use Node for our runtime, but package install time has dropped significantly.

This is especially felt when switching branches on dev machines where one package in the workspace has changed, causing yarn to retry all packages (even though yarn.lock exists), where bun only downloads the new package.

comment 1y ago · link · parent

A bit aggressive. No, wouldn't connecting to a slow 3g tower affect ping times to all global servers proportionately?

The proposal has other flaws, but phone to tower latency isn't one.

comment 2y ago · link · parent

An interpretation that makes sense to me: humans are non-deterministic black boxes already at the core of complex systems. So in that sense, replacing a human with AI is not unreasonable.

I’d disagree, though: humans are still easier to predict and understand (and trust) than AI, typically.

comment 2y ago · link · parent

In general, the way a walled garden wins is by providing everything its villagers need inside.

And Apple’s products seem to create walled gardens in order to prioritize [first creative, then economic] control.

Based on the demographic that a significant portion of their marketing seems targeted towards (artists and creative types), I think your theory sounds likely.

comment 2y ago · link · parent

This sounds depressing. I’m sorry that you had that experience.

It’s a frustrating position to be in, and you can feel quite helpless.

In my experience, it’s less about “do only what’s asked”, and rather “say no”.

I.e. explain “I can do X, but if I do that then Y will suffer, and Y is a priority”. (Y being another company priority, or even your own mental health). Stated in these terms, it’s easier to negotiate your time with your coworkers.

comment 2y ago · link · parent

Go bootstraps itself (Go is compiled by Go) but Gofmt does not format itself (an even simpler job).

comment 2y ago · link · parent

Nice find. I think you're right.

FWIW, I don't think the code style in [2] is less simple (slightly more readable, to use `if (X) {} else {}` rather than `if (!X) {} else {}`, for example).

So to me, this reads as the author of [1] is just overcorrecting by adding process, when some test cases or code review would've been more helpful in preventing whatever incident [2] caused.

comment 2y ago · link · parent

Stay tuned! We’re building this out soon. :)

11.

Men's waistbands have risen and fallen through history(news.bbc.co.uk ↗)

2 points · by croshan · 2y ago · discuss

12.

How I made my water filtering bowls and started Pratt ceramics(prattceramics.com ↗)

2 points · by croshan · 2y ago · discuss

13.

I got shocked in the bathtub so you don't have to(knoxnews.com ↗)

1 points · by croshan · 2y ago · discuss

14.

Basal Metabolic Rate(en.wikipedia.org ↗)

1 points · by croshan · 2y ago · discuss

15.

Query your Gmail account by hand using IMAP(blog.cyrusroshan.com ↗)

4 points · by croshan · 2y ago · discuss

16.

Building a Network Stack for Our Browser Extension(jam.dev ↗)

5 points · by croshan · 2y ago · discuss

comment 3y ago · link · parent

real users have more CPU than a literal toaster (or smart air fryer, or IP camera, or many other common botnet devices)

comment 3y ago · link · parent

Exactly. I know if medication were to be developed, checking "are GDF15 levels significantly lowered" would be part of the trials.

But how often does the medication development process check the result we care about: "does this medication then go on to reduce the chance of dementia?"

19.

My first 5 weeks switching from Engineering to Product Management(blog.cyrusroshan.com ↗)

8 points · by croshan · 3y ago · discuss

comment 3y ago · link · parent

Posting a Wikipedia link without commentary or context is essentially a text meme. It doesn’t invite discussion.

What are you trying to say?

(Not that I disagree with your point, but it’s unclear.)

comment 3y ago · link · parent

You’re both right—a better world emerges, when we each look towards ourselves to solve the problems we see.

comment 3y ago · link · parent

Using JavaScript is also “basically free”.

There’s no problem with either listed approach, GP just seems to consider a method without page reloads as adhering to a harder constraint.

comment 3y ago · link · parent

> How would you alternatively design a system that calls emergency services in a crash?

If you want to prevent false positives—then, same as you’ve described, but only enable when either:

- phone is connected to Carplay via USB or bluetooth

- phone is connected to a bluetooth device known to be an auto (inferred by manufacturer ID, and configurable in bluetooth settings)

- GPS data for the last 5 minutes indicate you’re driving

And display an indicator on lockscreen that shows this feature is enabled.

Of course, consider that the downside of false positives don’t affect consumers or manufacturers—rather, they affect public utilities. Then, it’s easy to understand why this happens.

comment 3y ago · link · parent

I tried it out, was enjoyable to play a few puzzles. My feedback is a) that the ring sound (when you win a puzzle) was too loud, so I ended up muting the tab, and b) that the logo looks like "BraiMax", and doesn't stylistically fit with the rest of the site theme.

comment 4y ago · link · parent

Why does the multi-armed bandit problem imply Tiktok's algorithms are better?

comment 4y ago · link · parent

I imagine planning the construction of a factory is harder than writing a product spec for your average software feature. Not sure that order requests speed up the process.

comment 4y ago · link · parent

Your logon cookies should be set serverside, with the Secure and HttpOnly flags set, entirely unaccessible by javascript. So they'll last 6 months.

When I see cookies set by javascript, their primary purpose seems to be user tracking, not auth.

comment 4y ago · link · parent

A little bit about how it works (from their docs)[0]:

> AutoAnimate is fundamentally a single function — autoAnimate — that accepts a parent element. Automatic animations will be applied to the parent element and its immediate children. Animations are specifically triggered when one of three events occurs:

> A child is added in the DOM.

> A child is removed in the DOM.

> A child is moved in the DOM.

[0]: https://auto-animate.formkit.com/

1234