HNHacker News
TopNewBestAskShowJobs

samschooler

1,336 karma · joined November 5, 2017

React (+Native), Astrophysics, Sustainability, Privacy, Decentralization, Internet Freedom.

samschooler.com

[ my public key: https://keybase.io/samschooler; my proof: https://keybase.io/samschooler/sigs/n5RbGnCXCLyrLp01MFYw11ZzI4z6qG4RvYnRVQ7yI4Y ]

submissionscomments
samschooler··on How we built the v0 iOS app
Sweet, didn't know about expo-apple-targets. I think that answers both. By share sheet I meant external, so a safari -> share sheet -> v0.dev -> your custom share view external to the app. But I'm sure it's the same flow with expo-apple-targets.
samschooler··on How to Attend Meetings
Could this be handled with an agenda? I'm thinking being candid about the meeting length. "Although I feel like this may take 30 minutes, scheduling a 15 minute buffer for Q&A, we may end early"
samschooler··on How we built the v0 iOS app
This is an incredible write up and touches on a bunch of headaches I'm sure we've all hit with RN, so thanks.

I'm interested in how you're dealing with the live activity and share sheet. I always drop down to native code, but am wondering if you built those with RN as well?

samschooler··on A looming 'insect apocalypse' could endanger global food supplies
So if you read the book: this is from a chapter talking about humans introducing phosphorus fertilizers to the soil has long term impacts on the types of species living in an area. Generally moving in the direction of more aggressive plants that can take advantage of the phosphorus. Many endemic species can’t, therefore are crowded out by faster growing species. The key phrase from your quote is: “neutrophilous and nitrogen-demanding species”. The phosphorus helps in the nitrogen fixation.
samschooler··on A looming 'insect apocalypse' could endanger global food supplies
There was a study done. I’m not sure exactly the study, but it’s from a book called Natures Ghosts. It talks about a Roman farm from around 0AD. The farm plot was clear cut, while the forest around it was never touched, including up to this day. The scientists cataloged the plant and animal species from both the farm plot and the untouched forest. Even though the farm plot had massive trees, and hasn’t been disturbed for 2000 years, the difference in species was massive. On the ancient farm plot: many parasitic species/invasive, off the plot: more prominence of delicate or unique species; just a few hundred meters apart. This is what “different forest” is.

Edit: found the study https://pubmed.ncbi.nlm.nih.gov/17601136/

samschooler··on Eliminating Cold Starts 2: shard and conquer
I would say Cloudflare "eliminated cold starts" in the context of bringing the server online, not in the form of rendering + caching the SSR page.
samschooler··on "Remove mentions of XSLT from the html spec"
The idea of building something like PDF.js makes a lot of sense. I think the core crux of it though is the polyfill should be in the browser, not something that a site maintainer has to manually implement.
samschooler··on Starbucks in Korea asks customers to stop bringing in printers/desktop computers
There is a photo in the Korea Herald article linked in op's article. https://www.koreaherald.com/article/10550038
samschooler··on OpenAI's ChatGPT Agent casually clicks through "I am not a robot" verification
Lucky you :)

https://antcpt.com/eng/download/mozilla-firefox.html

samschooler··on Epanet-JS
I love the idea of a SimCity type game with a ton of details. Having the level of detail of simulating a water distribution system is some dwarf fortress type detail. Make sure to also add a permitting office, building permit system, and HOAs that protest your building permits.
samschooler··on Show HN: Free local security checks for AI coding in VSCode, Cursor and Windsurf
quick nit: clicking on your logo on https://www.codacy.com/get-ide-extension goes to: https://www.codacy.com/home which 404s
samschooler··on Domains I Love
I'm working on a personal project (which is very much not done) which is at the domain https://invit.ing/

It's for creating little invites for small events. Each event gets a https://invit.ing/ short link. No plans to make it profitable, just fun to build :)

samschooler··on Tarpit ideas: What they are and how to avoid them (2023) [video]
And for completeness, here is a video from 2022: https://youtube.com/watch?v=Th8JoIan4dg&t=195s
samschooler··on Tj-actions/changed-files GitHub Action Compromised – used by over 23K repos
https://gist.github.com/gmatuz/7186f583df5f28196cc1f402af3bf...

This gist is pretty much the exact code, from the base64 encoded stuff. Looks like who ever put this in at least neafed the shell script.

samschooler··on Can we communally deprecate git checkout?
Merge = Smooshes two branches together into one. It keeps all the commits from both branches and creates a new "merge commit" to combine them. Doesn't mess with the commit history.

Rebase = Takes all the commits from one branch and sticks them on top of another branch, like stacking them in front. It rewrites the commit history to make everything look like one straight line.

I'm a rebase stan, but that's just my opinion.

samschooler··on Netflix buffering issues: Boxing fans complain about Jake Paul vs. Mike Tyson
This twitter stream was the most reliable for me. Completely took Netflix out of the equation; just some dude at the event with his phone: https://x.com/i/broadcasts/1mrxmMRmXpQxy
samschooler··on The Forest Service Is Losing 2,400 Jobs–Including Most of Its Trail Workers
Often the US hires young Americans to do these jobs. It is huge for helping young people with job training and class mobility. Without these jobs it will be that much harder to find a job with no experience in the outdoor industry.
samschooler··on The Forest Service Is Losing 2,400 Jobs–Including Most of Its Trail Workers
Seasonal hiring for intermittent tasks that are best done in the summer is cheap for USFS and makes sense. They don't need to be careers.
samschooler··on Amazon reveals first color Kindle, new Kindle Scribe, and more
Looks like the base Kindle also hasn't been updated at all. Same dimensions, screen, weight and battery life. They also nixed the base Kindle Kids which was the best deal considering it was the same price as base and they'd fix it if it broke.

2022: https://www.amazon.com/dp/B09SWV3BYH

2024: https://www.amazon.com/dp/B0CNV9F72P

Kindle Kids Warranty (2 years vs 1 year): https://www.amazon.com/gp/help/customer/display.html?nodeId=...

samschooler··on I designed a Dieter Rams-inspired iPhone dock
This video is referenced in OP's post.
samschooler··on Show HN: A whiteboard that writes math equations
Made a lil script to compare the endpoint response vs the whiteboard. https://gist.github.com/samschooler/2b2831f232339a9d747934b7...

Just run: #./solve.js "What is the answer to life, the universe, everything?"

samschooler··on Show HN: A whiteboard that writes math equations
Here is the raw answer from the endpoint

./solve "what is the circumference of a square?"

Solution: I'm sorry, but there seems to be a misunderstanding in the question. Squares don't have a circumference; they have a perimeter. Circumference is a term used for circular shapes. Let me explain the difference:

1. For a square, we use the term 'perimeter' to describe the distance around its outer edge.

2. The perimeter of a square is calculated by adding up the lengths of all four sides.

\text{Perimeter of a square} = 4s

3. Where 's' is the length of one side of the square.

4. Circumference, on the other hand, is used for circular shapes like circles or ellipses.

5. The circumference of a circle is calculated using the formula:

\text{Circumference of a circle} = 2\pi r

Where 'r' is the radius of the circle.

I hope this clarifies the difference between perimeter (for squares) and circumference (for circles)!

samschooler··on Show HN: A whiteboard that writes math equations
./solve "How tall is a giraffe in ants"

Solution: I'm sorry, but this isn't a typical math problem. The height of a giraffe can't be accurately measured in ants, as ant sizes vary greatly between species. Instead, I can provide you with some interesting facts:

1. An average adult giraffe is about 16-18 feet (4.8-5.5 meters) tall.

2. The average size of an ant ranges from 0.08 to 1 inch (2-25 mm).

3. If we were to use the largest ant size for a very rough estimate, a giraffe could be about 192-216 ant lengths tall. However, this is not a standard or accurate measurement.

samschooler··on Cloud atlas of Mars reveals an atmosphere unlike our own
Interesting take! I feel like factoring that in:

- low gravity: -1 difficulty

- less traction because low gravity: +1 difficulty

- supply chain from earth: +1 difficulty

- full spacesuit in addition to supplies: +1 difficulty

So overall my pseudo math: +2 difficulty

samschooler··on Cloud atlas of Mars reveals an atmosphere unlike our own
The fourth photo is Olympus Mons, not a volcano on Mars; it is the volcano on Mars. I'm sure a lot of you know this, however reminding myself of how big this peak is is always breathtaking. A hypothetical ascent in our future would be the single largest climbing feat human kind ever could undertake in our known solar system [0].

Mt. Everest is 8,848.86 m (29,032 ft) [1].

Mauna Kea (assuming you're climbing from the local bottom of the ocean is 9,330 m (30,610 ft) [2].

Olympus Mons' prominence is 21,900 m (71,850 feet 4.724 inches) [3].

Try climbing Everest, twice, where the entire mountain (and planet) is the "death zone" and your supplies have to be flown in from one planet over.

Edit: Also! For a sense of scale, the crater in the photo is 85 km (53 miles) in diameter [4]. About the distance from the Taco Bell in Half Moon Bay to the Taco Bell just east of Santa Cruz as the crow flies [5].

[0]: https://en.wikipedia.org/wiki/List_of_tallest_mountains_in_t...

[1]: https://web.archive.org/web/20201208113343/https://www.natio...

[2]: http://www.ngs.noaa.gov/cgi-bin/ds_mark.prl?PidBox=TU2314

[3]: https://tharsis.gsfc.nasa.gov/mola.summary.pdf

[4]: https://www.britannica.com/place/Olympus-Mons

[5]: https://www.gaiagps.com/map/?loc=8.6/-122.6459/37.2976&pubLi...

samschooler··on Nature’s Ghosts: The World We Lost and How to Bring it Back
We do have that. A designated "Wilderness Area" is the most strict classification. Restrictions in these areas (which cover large majorities of our national parks) are:

- No motorized vehicles

- No permanent buildings - this even means bathrooms and bear boxes many places. Stephen Mather Wilderness (North Cascades National Park) is currently doing surveys asking about if they should install more of them or add more bathrooms.

- Limited trail signage

- No "trammeling" which essentially means: don't mess with natural processes.

These Wilderness Areas are very different from Federal Recreation Areas, yet you can still "recreate" in a Wilderness area seeking solitude and nature.

https://www.fs.usda.gov/Internet/FSE_DOCUMENTS/stelprdb52701...

samschooler··on Homebound: The Long-Term Rise in Time Spent at Home Among U.S. Adults
Looking at the paper, page 564 [0] has the component graph. Looks like the key contributors are (in order of contribution):

- Work-Related Activities (~35 minutes more at home)

- Sleeping - Assumed at Home (~25 minutes more at home)

- Leisure - Not On Computer (~22 minutes more at home)

What I find interesting, is the key differences in total time spent. There seems to be generally more time spent sleeping actually (~25 more minutes), and that time comes from a decrease in socializing (-~15 minutes), and transportation (commuting, -~20 minutes).

Overall, less commuting and more sleep seems good, but a decrease in socialization is not great, a full 1 3/4 hours a week decrease.

[0]: https://sociologicalscience.com/download/vol_11/august/SocSc...

samschooler··on Google uses AI to reduce stop-and-go traffic on your route
I understand the intention here of reducing stop time at stoplights for cars, but I think this is a dangerous project.

The word pedestrian, or bicycle does not exist in this article whatsoever. Traffic lights are a flawed, but useful tool for traffic calming. If we optimize for reducing the amount of red lights cars will run into, this will fundamentally increase speeds on roads, and increased speeds, equals increase pedestrian, cycle, and car deaths.

This is all conjecture, but it seems like the key indicator that Google is providing two cities is reduction in stop time. If that is their key metric, while also not looking at other things like bicycle stop time, or pedestrian wait time; we will be optimizing for average car speed indirectly. That is a bad thing inside of cities.

samschooler··on Deno: What we got wrong about HTTP imports
This seems like a good step with import maps. Especially following web standards. I like the idea behind jsr, however I'm interested in how they will be integrating additional specifiers. I don't philosophically like having hard coded [0] strings vs smart redirect urls. I'd be interested why jsr couldn't have used standard smart semver following 301s to dynamically load packages, combined with an import map lock file.

For example:

`import { assertEquals } from "jsr:@std/assert@1";`

could be:

`import { assertEquals } from "jsr.io/std@1/assert";`

With this deno could assume https, as well as follow configs/redirects to get the correct import, then lock those correct paths using import maps (the logistics of this would need hashing out, but it doesn't seem impossible considering they do it with the "special" `jsr:` specifier).

It seems like this would maintain the same pros while avoiding the "special" specifier hard coding that exists now (seems to only be for npm: and jsr: right now; no github: for example).

[0]: https://github.com/denoland/deno/blob/8c2f1f5a55a2a9bb9e04c1...

samschooler··on Ask HN: Who wants to be hired? (July 2024)
Location: Denver, Colorado (Have worked remote for San Francisco + New York companies)

Remote: Yes

Willing to relocate: Possible, but not likely.

Technologies: React, React Native, Next.js, Node, Javascript, TypeScript, PostgresSQL, PostGIS, Git, REST APIs, GraphQL, OpenAI APIs, UI/UX, Figma, Googling.

Resume: https://samschooler.com/SamSchoolerResume.pdf

Email: hackernews.july * samschooler * com

LinkedIn: https://linkedin.com/in/samschooler

Experienced Frontend-specialized fullstack engineer. I am product + user driven. I'm looking to solve real user problems with UI/UXs that make sense. I take on product management, and love to collaborate with product and design to make sure we're building something right. Sound like I might fit your team? Drop me a line. I'm actively looking.

← PreviousPage 2 of 9Next →