HNHacker News
TopNewBestAskShowJobs

jffry

3,559 karma · joined June 26, 2013

Are you a bot scraping this profile hoping for an email address? Please direct your spam to abuse@ic3.gov

If you are a human and you wish to contact me, the sha1 hash of my email address is 9aae0f6d01421dde3d5085fa1a24adff6c9e344f. I look forward to hearing from you soon.

Hi'); DROP TABLE emails;--

<script>alert('Hi!')</script>

submissionscomments
jffry··on OpenAI: Model Spec
Yeah the tokens are more akin to JS Symbol.

If you're parsing untrusted user inputs into tokens, you can make sure your tokenizer will never produce the actual numbers corresponding to those tokens.

A simplified example: I can `.charCodeAt` a string all I want but I'll never get a negative number, so I can safely use -1 to mean something special in the transformed sequence of "tokens".

jffry··on Group buys up large tracts of land in Romania to create 'European Yellowstone'
It's a direct quote from somebody who donated to the project, found in the first paragraph of the article:

> The aim is to create “the European Yellowstone,” as the largest donor of the initiative described it

jffry··on Things I don't know about AI
The relative scale still stands - Microsoft's net income in October, November, and December 2023 was over $21 billion, according to https://www.microsoft.com/en-us/Investor/earnings/FY-2024-Q2
jffry··on There's a Reason McDonald's Coke Tastes Better Than All Others
That seems less relevant than:

> McDonald's sets their machines for a syrup-to-water ratio that accounts for melting ice. Which means there's a little more syrup than most other fast-food restaurants.

Also you can see the article is clearly just an inflation of this primary source: https://www.mcdonalds.com/us/en-us/faq/why-does-coca-cola-ta...

jffry··on Cool URIs can be ugly (2023)
1998 [1] although the "URI working group" was active in 1994 describing URNs [2] and URLs [3]. There were also URCs [4] which never took off [5]

[1] https://www.rfc-editor.org/rfc/rfc2396

[2] https://www.rfc-editor.org/rfc/rfc1737

[3] https://www.rfc-editor.org/rfc/rfc1737

[4] https://en.wikipedia.org/wiki/Uniform_Resource_Characteristi...

[5] https://en.wikipedia.org/wiki/Uniform_Resource_Name#URIs,_UR...

jffry··on A search engine in 80 lines of Python
That's explained in the article, which serves as the documentation for the code within the article. The link for BM25 goes to some of the math, and a little more searching the internet about BM25 parameters can lead you to some relevant articles on how to choose them.
jffry··on RustPython
Hello world in pure Rust: 400832 bytes

Hello world w/ rustpython interpreting Python[1]: 15459264 bytes

(Rust 1.75.0; rustpython 0.3.0; MacOS / Apple Silicon)

[1] https://github.com/RustPython/RustPython/blob/main/examples/...

jffry··on How to Replace Your CPAP in Only 666 Days
Yeah companies directly running insurance is a thing: https://en.wikipedia.org/wiki/Self-funded_health_care
jffry··on Ask HN: Is Apple's R1 a Discrete GPU?
Nothing about end-to-end latency of the R1 tells you anything about how pipelined it might be. It very well could have multiple frames in-flight at the same time in different stages of processing.
jffry··on Another Roman dodecahedron has been unearthed in England
https://duckduckgo.com/?t=ffab&q=+is+CE+the+same+as+AD%3F+&i...
jffry··on Fake chips, I got stung
When editing an album in Google Photos, there's controls at the top right (on desktop browser at least) that let you insert text or maps inbetween photos
jffry··on Normal Operating Sounds
In this case for heating, efficiency is how much of the energy input gets converted into heat in the space you're heating.

So for a resistive electric heater, you're dissipating all of the energy as heat (minor quibbles about electromagnetic radiation or status LEDs aside). The same is true for your computer.

Burning hydrocarbons have two main sources of energy loss: incomplete combustion, and energy carried away by exhaust gases. Obviously furnace design influences both of these - the US federal minimum is 78%, but high-end furnaces with all the tricks can get over 90% per https://www.energy.gov/energysaver/furnaces-and-boilers

Heat pumps are the third major category, and they are more than 100% efficient because they are using their energy to steal a larger amount of thermal energy from the outdoors air and move it to inside your home (and much of the electric energy they consume is eventually discharged as heat inside your home as well).

jffry··on Normal Operating Sounds
Yeah as long as it doesn't escape your room, the photons will end up slightly warming _something_ when they get absorbed.
jffry··on Normal Operating Sounds
Where does the energy "used on computing" go? The power consumption of a CPU is dissipated as heat.
jffry··on Sorry doubters, Starship had a remarkably successful flight
> wouldn't it otherwise just burn-up or explode on failure?

There's eventually a point the rocket is high enough and moving fast enough that if it broke up or went off course it would burn up on re-entry.

Before that point, though, it's better to be able to destroy the rocket at a chosen time before it can go so far off course that it poses a threat to things on the ground outside of the cleared launch corridor.

Edited to add: You can read about the flight termination system from the Apollo missions (known as PDF for Propellant Dispersal System) starting on page 33 of this PDF: https://ntrs.nasa.gov/api/citations/20090015395/downloads/20...

jffry··on Razor 1911
VP I assume is vice president?

Courier is https://en.wikipedia.org/wiki/Warez_group#Courier_groups

jffry··on How to find a lost phone in a no-cell-coverage camping site?
> Not sure if there's a name for that.

Hill climbing! https://en.wikipedia.org/wiki/Hill_climbing

Basically: Go in any direction that makes the number go up. Repeat.

jffry··on It takes 12 people to use the 18k Sphere camera
> From my understanding it’s a sphere that displays things on the outside

It's got two screens! One inside and one outside.

The interior screen is 16k by 16k pixels (the 18k camera resolution affords some cropping for image stabilization etc).

The exterior screen doesn't have much in the way of specs other than area, but I'd expect it is comparably lower pixel density.

jffry··on How to Roman Republic, Part IV: The Senate
It was indeed August 2011: https://en.wikipedia.org/wiki/Rome,_Sweet_Rome

If it's been in development hell that long, I don't know how likely it is that it'll ever see the light of day.

jffry··on A bus driver killed a man, the city blamed tech
I found this report [1] from NBC Bay Area, which states that Cruise would not release the video "But NBC Bay Area was able to review a nearly 13 minute video which is purportedly the incident in question. It appears to show what the company describes, including the ambulance managing to squeeze by the stopped Cruise car."

(Reading between the lines: I'm assuming the news station was able to review footage that is not from Cruise (dashcam from a cop car? security camera?), and are being circumspect about even describing their source to protect whoever gave them access)

[1] https://www.nbcbayarea.com/news/local/cruise-pushes-back-cla...

jffry··on GitHub education pack requesting real name on public profile
This link should be visible: https://education.github.com/pack

Short answer:

- Free GitHub Pro

- A few hundred bucks of free credits on DigitalOcean, Azure, Heroku

- A few different free domain registration offers

- A few coding courses

- Some other software and SaaS at no cost

jffry··on Ex-Linus Tech Tips employee alleges mistreatment and poor conditions
"As of May 2023, it has over 100 full-time employees.[2]"

https://en.wikipedia.org/wiki/Linus_Media_Group

jffry··on Fanatics Is Building a Weird Monopoly over Sports Trading Cards
Admittedly if they advertised "FREE GNORF" I'd at least be intrigued
jffry··on Icanhazip: A simple IP address tool survived a deluge of users (2021)

  curl https://ip4.me/api/
works for me
jffry··on NASA mistakenly severs communication to Voyager 2
Voyager 2 is approximately 20 billion km from the Sun

Earth is approximately 150 million km from the Sun

Sunlight intensity falls off with the square of distance (ignoring any additional small losses from space dust / scattering from gases etc), so twice the distance = a quarter the solar flux. At the Earth it's ~1361 watts per square meter.

Voyager 2 is approximately 133 times further from the Sun than Earth is, which means it receives optimistically 1361 / (133^2) = 0.07694 watts per square meter.

I found a JPL article [1] that says the RTG onboard Voyager produces 40% less power than it did at launch, and the Wikipedia article [2] says it produced 470W at launch, which means it makes ~280W now.

Wikipedia [3] suggests the solar panels available at the time of Voyager's launch in the late 1970s could convert ~10% of incoming solar power to electricity. Modern panels bring that up to 30% but the designers of Voyager did not have access to time travel.

So at present distance Voyager would need approximately 36000 square meters of solar panel to produce the same amount of power.

[1] https://www.jpl.nasa.gov/news/a-new-plan-for-keeping-nasas-o...

[2] https://en.wikipedia.org/wiki/Voyager_2#Power

[3] https://en.wikipedia.org/wiki/Solar_panels_on_spacecraft#His...

jffry··on Debian riscv64
Sounds like they need to cross-compile enough stuff to get a bootable system in the new architecture: https://wiki.debian.org/DebianBootstrap#Cross-building
jffry··on Human Shader
It's slightly older than 3rd grade, but for Pi Day 2022, Matt Parker marshaled a couple dozen students to spend a weekend computing pi by hand: https://www.youtube.com/watch?v=dtiLxLrzjOQ
jffry··on Sweden Sans
I found a Guardian article [1] which quotes one of the people involved:

  "We started to think about how it would work with different typefaces, then started mood boards with different fonts and pictures – especially of old Swedish signs we'd seen from the 1940s and 50s," said Jesper Robinell, Söderhavet’s head of design.
[1] https://www.theguardian.com/world/2014/nov/14/sweden-sans-de...
jffry··on Dublin Airport airbrige collapsed, damaging American Airlines Boeing 787
I found a product manual [1] from one manufacturer which describes stepping on it as part of a maintenance test (bottom of page 6), so it seems like some type of switch or pressure.

The idea seems to be that if the door touches the top of the sensor, it automatically lowers the jetbridge a few inches to prevent the door from being damaged. And I guess this can happen if the plane is being loaded improperly causing it to shift.

[1] PDF, 4MB: https://www.acesincusa.com/wp-content/uploads/2020/07/Safety...

jffry··on Arduino Uno R4
According to [1], the decision to keep the spacing for compatibility reasons was a conscious one. I can see how they might want to keep the whole ecosystem of Arduino-compatible accessories/kits/etc functioning.

[1] https://electronics.stackexchange.com/a/941

← PreviousPage 3 of 31Next →