HNHacker News
TopNewBestAskShowJobs

frob

3,233 karma · joined February 1, 2013

submissionscomments
frob··on A stochastic method to generate the Sierpinski triangle
I believe this is also the algorithm included in the TI-83 (plus) manual: https://www.manualowl.com/m/Texas%20Instruments/TI-83-Plus/M...

I remember sitting on the floor of our living room programming this in character by character on that TI keyboard. It's the first BASIC program I ever wrote. Everything before that was js and html.

frob··on Microsoft forked MIT licensed repo and changed the copyright [fixed]
Bots don't steal licenses; people who program bots steal licenses.

It's the latter action that's being addressed here.

frob··on Ask HN: Working with large code base for the first time
- Search for unique-looking strings from whatever view you're trying to modify to find the associated html/js file.

- Pull up the commit history for the file to see what other files were modified along with it the last few times. This will give you dependencies and linkages.

- Make your change and then ask your ide/command line to find all typing/lint errors in your project which will help you find other dependencies you may have missed.

- If you get stuck, reach out to the authors or reviewers of previous PRs. (Hint: you may want to include them as reviewers. They'll give good feedback and you'll engender good will by keeping them in the loop when you touch their corner of the codebase)

- Write a few solid unit tests. Maybe even clean up the testing code a little bit while you're there.

- Write a concise but informative description of your changes in your PR. If you made two or more logical changes, split your PR and stack them. Your teammates will appreciate the shorter PRs and you will get feedback more quickly.

- Land the PR in a timely manner and keep an eye on it until it hits prod.

- Once in prod, test it yourself and keep an eye on the logs for a day or three.

- Bonus: put all changes behind feature flags to do slow rollouts and so you can quickly revert without waiting for a deploy. Make a task to remind yourself to remove the dead code behind the flag in month or so when you're pretty sure it's stable.

frob··on Former Facebook staffers launch Integrity Institute
FB branded Onavo as a free VPN to protect your privacy. Instead, it routed all of your traffic through FB-owned machines so that they could profile your connections and get an idea of how much you were using other apps.
frob··on ‘Impossible’ particle discovery adds key piece to the strong force puzzle
Happy to do it! Thanks for asking insightful questions. :)
frob··on ‘Impossible’ particle discovery adds key piece to the strong force puzzle
As in most things with particle physics, it's a combination of both. Theory predicts a wide band and then experimentalists come in with the best estimate they can make. Some theories are excluded and other are refined. There are another round of predictions and when the experiments get powerful enough, they can challenge or support some predictions.

Some of the best data for branching ratios comes from e+e- (electon-positron) colliders such as LEP (literally, the Large Electron-Positron collider). In these colliders, we can fine-tune the energy to produce massive amounts of particles we care about. From that, we can see how they decay. Mostly, Upsilons decay into massive sprays of hadrons and leptons (called jets in particle physics). These can come from decaying Tau particles (the much much heavier cousins of muons and electons) or from quarks/hadrons decaying over and over and over again into things like Kaons, pions, muons, electrons, photons, and other lightish particles. In the relatively clean environment of a e+e- collider, we can reconstruct these jets and determine which may have come from Upsilons. Combining this with a whole bunch of other measurements (and some theory) lets us determine the branching ratio (how often a particle decays into certain things).

frob··on ‘Impossible’ particle discovery adds key piece to the strong force puzzle
Truly, you never really know which pair of particles came from a specific decay, and which come from some other processes and just happen to line up with the mass/energy you're looking at. Fortunately, for most particles, the combinatorial background signal follows a smooth curve around the energies you're looking at, so you can fit a curve to that background signal and then attribute the rest of the signal to the particle production. For an example, see the main plot on the Upsilon page in Wikipedia (https://en.wikipedia.org/wiki/Upsilon_meson). You can see there is a linear decline (in log space) of the background signal but then there's another peak around 9.5 GeV which is the additional signal from the Upsilon decay.

The point is, we cannot tell which pair of electrons/muons come from the decay of a specific particle, but we can tell how many extra occurred beyond what we would expect from all other known processes.

frob··on ‘Impossible’ particle discovery adds key piece to the strong force puzzle
I've been a software engineer for the better part of a decade now. My areas of focus during that time have been NLP, messaging, teaching, politics, and now data analysis and processing around criminal justice.
frob··on ‘Impossible’ particle discovery adds key piece to the strong force puzzle
The answer is you don't measure the particle directly, but instead measure its byproducts. I spent my graduate career studying the Upsilon meson, which is a particle dominated by two valence bottom quarks. The Upsilon exists for a similar amount of time and there is no way we can measure it directly. However, about 3% of the time, it will decay to a pair of highly energetic electrons and another 3% of the time, it will decay to a pair of muons. These extremely energetic leptons (think 99%+ the speed of light) are something we can detect as they come screaming out of the collision. (side note: an electron weighs ~ 511 keV in particle physics units. The Upsilon meson weighs at least 9.46 GeV depending on the state. That means each electron has at least 4.73 GeV of kinetic energy with a mass of 511 keV, or ~9000x more kinetic energy than its energy in mass). We have ways of measuring their energy, so we can reconstruct the mass of the original particle via $E=mc^2$ plus some kinetics.
frob··on Show HN: Optimule, a free vehicle routing platform built with Open Route Service
Quick feedback: the text of the main button on the page to sign up is too long on mobile. It wraps the button itself around (not just the text inside the button) and partially renders over itself on mobile, making it hard to read.
frob··on The Complete GraphQL Security Guide
> If we search the same source for the birth of GraphQL, we can see, it's Sep 2014, around 7 years old.

GraphQL is a little older than that. It was initially developed at Facebook in 2012. It says as much on the graphQL website right on the main page: https://graphql.org

frob··on Ask HN: What's the most life-changing blog post you've ever read?
https://journal.neilgaiman.com/2017/05/the-neil-story-with-a...

It's a story of two Neils dealing with imposter syndrome. Every time I start feeling like I'm just the guy who goes where others point and I didn't actually accomplish anything, I go back and read this. To every new engineer I've worked with who has struggled with self-doubt, I have sent this. I cannot overstate how calming and centering this post has been to me.

frob··on France issues moratorium on prion research after fatal brain disease strikes
It's so that they can figure out why the process wasn't being followed and how it can be improved. Nothing is perfect and accidents are a great catalyst for reexamining your procedures.

What could change to make it more likely that the process would be followed? Could we put signs all around places with prion research? Could we implement a buddy system whenever we work with prions? Do metal gloves need to be hung in visible place throughout the lab? Do we keep containers of bleach accessible for when someone pricks their finger? Do we have enough of them and are they visible enough?

frob··on Several states ban the sale of high end desktop computers over power consumption
Two things to note:

1) This is due to power consumption while idle, not overall power consumption. Nor is it a new regulation. [1]

2) This isn't just California. These same regulations apply in Colorado, Hawaii, Washington, Oregon, and Vermont.

[1] https://www.reuters.com/article/us-california-energy-compute...

frob··on Ask HN: Does anyone use keyboard/mouse extra buttons for coding?
I use a vertical mouse and I've mapped the extra buttons on it to allow for easier navigation without using the keyboard. It has two buttons near the thumb rest. I've mapped one to be shift so I can hold it to make the scroll wheel scroll horizontally and I've mapped the other to be enter. Clicking the scroll wheel is mapped to ctrl+v. These have made one-handed terminal and design navigation much more efficient.
frob··on Show HN: I built an app to create repeatable checklists to help with ADHD
I've had an on-again-off-again relationship with Habitica. Having other party members really helps with motivation. However, I fell off once our party lead stepped back and quests stopped.

I did use it while ignoring the game part for a bit. It was still useful, but I did just end up forgetting it later.

frob··on Texans can carry handguns without a license or training starting Sept. 1
I'm curious to know which additional rights you want to be granted.
frob··on U.S. Consumer Prices Rose Strongly Again in May
I'm not even sure it's that. The stated metric is how much prices have risen since May 2020. So it is the year-over-year change, but the baseline is a very weird covid-May.
frob··on Helix: a post-modern modal text editor
Agreed! I have a keyboard full of OS-level macros and I've rebound the extra buttons on my mouse to ctrl+c, ctrl+v, and enter. If I'm leaning back and browsing through docs, I want to be able to move text around and execute commands without reaching for the keyboard.
frob··on Helix: a post-modern modal text editor
The author answers this directly on the page:

> Post-modern?!

> It's a joke. If neovim is the modern vim, then helix is post-modern.

frob··on YouTube approves ad by Belarusian gov with journalist from hijackd Ryanair plane
Think about it this way: every time Google shows that to you, it's taking a bit of PU's budget that's not being spent on a receptive audience.
frob··on TI-84 Plus CE Python Graphing Calculator
These things are anything but distraction-free. There was a MASSIVE ecosystem around TI games in my high school. I definitely spent multiple classes playing Tetris on my calculator. Or running a drug empire.
frob··on We mailed one hundred letters to test the postal service
Maybe the very NW is lucky and can use St Paul. I know that places like Madison and Plattville go to MKE and back. It seems we did indeed close the Madison sorting facility in '14 as well as other supporting regional facilities. As part of this Eau Claire moved their ops to St Paul. https://madison.com/wsj/business/u-s-postal-service-to-close...

Thanks for the info!

frob··on We mailed one hundred letters to test the postal service
I run a small side business which ships physical goods and I've been seeing similar issues with the "flat rate" priority shipping service from the USPS. These packages are supposed to be delivered to anywhere in the US in 2 to 3 days. When I drop off the box, they will label it with 2-day or 3-day. Since about mid-summer of 2020, those labels are aspirational. I've been tracking by taking to customers I know and the on-time delivery rate is well below 50%. It is not uncommon for 3-day shipments to take 7 days.

Mail issues can also be aggrevated by local policies. I know a former regional postmaster from Wisconsin. I've since learned that during the Scott Walker years, they changed the service in WI so that all mail in the entire state is sorted in Milwaukee. So if I'm up in NW WI and I send a letter to someone a town over, the mail needs to be driven all the way across the state to Milwaukee, sorted there, and then driven all the way back. He says it's making what use to be a 1-day delivery into 3+.

frob··on The Linux kernel has surpassed one million git commits
When I left, the diff number was in the 15 million range. Not all diffs are landed, but I would assume >60% are, so FB's repo is almost certainly above 10M commits
frob··on FB JavaScript SDK down
I think most of them did since the same issue would be marked on the tracker for multiple days in a row.

In reality, FB is just being highly transparent with issues and I should applaud them, but that's a lot of yellow and red.

frob··on FB JavaScript SDK down
By my count from the status page[0], the FB JS SDK has had issues for 30 of the past 90 days. That's not even one 9.

[0] https://developers.facebook.com/status/dashboard/

frob··on A brief history of Rust at Facebook
Yup!
frob··on A brief history of Rust at Facebook
I personally know this timeline to be incorrect by at least a year. I was part of a startup that got acquired by FB in early 2015. We moved our codebase into the FB monorepo pretty quickly. One of our microservices was written in Rust. It was only a few hundred lines, but it was in the repo and actively deployed on FB infra by April or so of 2015.
frob··on Tape Recovery Simulator 96K
I've been playing the demo for a few hours a week over the past month. Any game that gets me to restart on the second level not because I'm dieing but because I think to myself, "No, I can do better than this," is a winner in my book. Also, if I've derived more fun from this demo than I have from many other $30 and $60 games, so I'm already leaving towards paying for the full game.

I understand what you mean about the day job thing. I got about 60% of the way through Shenzhen before walking away. Fortunately, I'm not a chip-designer, so hopefully that horizon is farther away with Factorio.

← PreviousPage 12 of 16Next →