Better HN
topnewbestaskshowjobs
Log inSign up

theodorejb

2,166 karma · joined May 15, 2014 (12y ago) · 165 submissions

Software engineer from Minnesota. I enjoy working with modern PHP, SQL, TypeScript, and Svelte.

Email: theodorejb@gmail.com Website: https://theodorejb.me

Submissions

comment 3w ago · link · parent

As well as Lake Ontario.

comment 1mo ago · link · parent

> We will support the Deno runtime for another year with monthly releases containing bug fixes and security updates. After that year we will end our development of the Deno runtime. Deno will remain open source, and we welcome others who want to continue its development.

So unless someone else picks up development, Deno will no longer be supported.

comment 3mo ago · link · parent

Design has tradeoffs, and when these are considered I doubt you'd want to trade your eyes for another organism's. The human eye is a marvel of engineering, and even today the best digital cameras we design can't capture even close to the dynamic range our eyes can see (12-15 stops vs. 20-24 stops simultaneously). After adjusting to the dark, the human eye can perceive a single photon striking the retina.

comment 3mo ago · link · parent

> Life didn't spring up fully formed, it developed in stages.

Have these stages been observed, or are they merely a speculative story? No one has ever demonstrated life arising from non-life (a violation of the Law of Biogenesis).

What is semantically incoherent about my perspective that life was clearly designed?

comment 3mo ago · link · parent

We know that intricate machines are designed by smart people; they don't just happen by luck. The idea that living things, which are far more intricately organized at every level than any machine we have made, could have arisen by some unknown series of chance steps is a fairy tale. It has never been observed, and even in the most controlled of environments it cannot be replicated. To me it's far more reasonable to conclude that life was designed by a super intelligent Creator. Just as a piano implies a piano maker (even if we haven't seen them), life implies an original Life-giver.

comment 3mo ago · link · parent

The worst situation I've encountered is after a large conference when everyone is leaving the hotel at once. An elevator quickly fills up on the way down, but then wastes time stopping at every subsequent floor with a call, even though no one else can fit inside. At each floor the elevator stops, the doors open, the waiting people see it's already packed, the doors close, and this repeats on the next 15 floors before finally reaching the bottom where everyone gets off. If the algorithm could know an elevator is completely full and only stop at its destination floors rather than every floor along the way with a call, it would be far more efficient.

comment 4mo ago · link · parent

The Big Bang is an almost infinitely malleable story, contorted to comport with almost anything we observe. But how is this useful? The predictions of this theory continually fail. The farther we look, the more we see stars, galaxies, black holes, and other structures that shouldn't exist according to this model.

What if the universe doesn't have a naturalistic origin, but was created by God? How much greater would our understanding of the world be if more scientists focused on studying present phenomena rather than trying to fit stories about the past with observed data?

comment 4mo ago · link · parent

Instead of questioning whether the Big Bang assumption is true, astrophysicists prefer to perform endless "gymnastics" to try to make the mounting contrary data fit their theory about how the universe began.

comment 5mo ago · link · parent

Only if the union is against the unethical request. In some cases the union may be for it, which makes it even harder to push back.

comment 5mo ago · link · parent

You don't need to join a union to push back against unethical feature requests.

comment 6mo ago · link · parent

I've been building PHP Handlebars, a spec-compliant implementation of Handlebars in pure PHP:

https://github.com/devtheorem/php-handlebars

I've also been developing Cropt, a zero-dependency JavaScript image cropper which works great for cropping and scaling profile images before upload:

https://devtheorem.github.io/cropt/

12.

MySQL 9.7.0 LTS(blogs.oracle.com ↗)

3 points · by theodorejb · 7mo ago · discuss

comment 7mo ago · link · parent

This can be done with curl_multi_exec(), or with $client->getAsync() in Guzzle.

https://www.php.net/manual/en/function.curl-multi-exec.php

https://docs.guzzlephp.org/en/stable/quickstart.html#concurr...

14.

The Operational Cost of Vacuuming in PostgreSQL(mariadb.org ↗)

2 points · by theodorejb · 8mo ago · discuss

comment 8mo ago · link · parent

In my petrol-powered Prius I average 52 MPG, so at the current price of gas ($2.60/gallon) I pay $0.50 to drive 10 miles - less than the listed cost to drive an electric car the same distance.

comment 9mo ago · link · parent

How would the photosensitivity and wiring to muscles come about at the same time?

comment 9mo ago · link · parent

What benefit is an eye unless there is also the capability of processing and using the information? How would both evolve simultaneously?

18.

New Era of MySQL Community Engagement(blogs.oracle.com ↗)

1 points · by theodorejb · 9mo ago · discuss

comment 11mo ago · link · parent

According to the timeline it took more than a week just for Filevine to respond saying they would review and fix the vulnerability. It was 24 days after initial disclosure when he confirmed the fix was in place.

comment 12mo ago · link · parent

My guess would be so they don't have to embed an IP address or hostname in the malware to send secrets to, which could then be blocked or taken down.

comment 1y ago · link · parent

Someone could be tricked into giving their npm credentials to the attacker (e.g. via a phishing email), and then the attacker publishes new versions of their packages with the malicious diff. Then when the infected packages are installed, npm runs the malicious preinstall script which harvests secrets from the new machine, and if these include an npm token the worm can see which packages it has access to publish, and infect them too to continue spreading.

22.

KeePassXC 2.7.11 Released(keepassxc.org ↗)

4 points · by theodorejb · 1y ago · discuss

23.

PHP 8.5 Released(php.net ↗)

16 points · by theodorejb · 1y ago · 4 comments

24.

Alchemy(joshcollinsworth.com ↗)

1 points · by theodorejb · 1y ago · discuss

comment 1y ago · link · parent

I can testify that steamed stingy nettles with gomasio (toasted sesame seeds and salt) is very delicious.

comment 1y ago · link · parent

One option to make it a little safer is to add ignore-scripts=true to a .npmrc file in your project root. Lifestyle scripts then won't run automatically. It's not as nice as Pnpm or Bun, though, since this also prevents your own postinstall scripts from running (not just those of dependencies), and there's no way to whitelist trusted packages.

comment 1y ago · link · parent

Bun also doesn't execute lifestyle scripts by default, except for a customizable whitelist of trusted dependencies:

https://bun.com/docs/guides/install/trusted

comment 1y ago · link · parent

I would expect to be able to download a package and then inspect the code before I decide to import/run any of the package files. But npm by default will run arbitrary code in the package before developers have a chance to inspect it, which can be very surprising and dangerous.
123456