HNHacker News
TopNewBestAskShowJobs

jnellis

369 karma · joined April 28, 2013

submissionscomments
jnellis··on Magnesium Self-Experiments
I find this to be true as well. I have nerve damage/pressure from bad back. If I miss a dose before bed, I almost invariably get a calf cramp in the early morning hours before waking. Very annoying, only way to get rid of it is get out of bed and stand up on it. I think flooding the body with the magnesium before bed, before it has a chance to maybe get rid of excess perhaps, because taking it too far from bedtime I'll still have twitches and cramps.
jnellis··on WTF Happened in 1971? (2019)
I ran across this theory years ago about a piece of legislation in late 1970 allowed lobbyists into previously closed door committee meetings, thus allowing lobbyists to assert direct pressure on congressional members. The second video is from the same guy but is rather long and goes into this idea that transparency in congressional committees is a counter-intuitively bad idea because it allows lobbyists to proactively apply pressure before anything ever gets to a floor vote.

https://www.youtube.com/watch?v=CgqhywW9Cto

https://www.youtube.com/watch?v=1gEz__sMVaY

jnellis··on Thunderbird Turns 20 Years Old
I just installed it. If you've already been a desktop user, they've made importing accounts pretty painless by having the phone app take pictures of qr code on your desktop. The UI is definitely less polished than K-9 on first impression but I suspect it will get better.

It would be great if it can sync junk training settings between the two.

jnellis··on 1JPM: A Maven/Gradle alternative in a single Java file
I believe you can use shebang since java 11 but you can't have the filename extension be .java.
jnellis··on Can you pump water without any electricity?
I can't find it now on youtube but years ago there was a pump someone made using old HDD platters. The action relied upon having two platters a certain distance apart such that surface tension would drag water between the plates and then fling it higher than it's source.
jnellis··on The Age of the Drone Police Is Here
Pick up that can.
jnellis··on Unlocking the Duron and Athlon using the pencil (2007)
I don't remember the time frame but it was a Slot A cpu that I bought from some russian owned company in Irvine in the early 2000's that was doing exactly this practice. Since I was planning on overclocking it myself, and had taken steps to record as much about the transaction myself (because I knew this scam was going on), when reported to AMD, they had their lawyers contact me to provide an affidavit because they we're attempting to sue the shit out as many of these sellers as possible. They also replaced the cpu with the one I intended to purchase so at least the story ended nicely but what a pain in the ass it was.
jnellis··on Let insects eat your plants
I've seen this guy by the shed, thanks. I'll ask him if he's busy this summer.
jnellis··on Let insects eat your plants
Who is that predator? I wish to hire them desperately. We had an agreement that the federation would stick to just the dead material but there are obviously some free thinking factions at work. Now I'm growing lettuce as just the distraction crop for them (and the slugs) to protect the other youngling starts and strawberries.
jnellis··on Burn After Wearing
The litmus test on this used to be those NFL Superbowl shirts for the losing team. To facilitate quick merchandising, they would print both teams as being the superbowl champions then whichever team one, sell that t-shirt. The losing teams 'champion' shirts would pop up in photos six months to a year down the road, being worn by children in third world countries. You don't see that anymore.
jnellis··on Old vs. new growth trees and the wood products they make
Sure temperature is big factor but water is always the enemy of wood, regardless of the treatment. You can slow it down with chemicals but bugs and microorganisms find a way if water is present. Humidity is water. Primers and paint do wonders against it. But the wood has to be dry first. Tar is pretty darn good at keeping out water but also good at trapping it in.

Old growth and just 'old' wood is naturally termite resistant because wood gets harder as it ages and the bugs just don't like to chew on it, they will look elsewhere. You don't see many 60+ year old houses getting new termite infestations unless it was in areas of recent repair (fascia boards, brick moldings). But if it's wet, it's softer to chew. It's always comes down to water.

jnellis··on OPML is underrated
It works for me if you open in a new tab, a new window, or a new private window. FF122.0 on windows.
jnellis··on A periodic table of visualization methods (2007)
It's possible that the correct visualization, the nutritional food pyramid, became too unwieldy with this many visualization methods.
jnellis··on How to solve the "Mastermind" guessing game? (2009)
This was one of the computer games from 1976 BASIC computer games that some of us worked on ports of for the Coding Horror: Basic Computer Games repo. I recall there were a number of errors in the original and thus a few in the ports, python being one. I ended up writing about the deduction logic for solving mastermind because it seemed non-intuitive.

https://github.com/coding-horror/basic-computer-games/blob/m...

jnellis··on Ad Company Claims 'It's True. Your Devices Are Listening to You'
Wifi enabled baby monitor sold you out.
jnellis··on Behind the scenes of Sound ID in Merlin – Identify birds using your phone (2021)
Perhaps it's possible they could add a pre-filter that cancels selected birds. I often have squawky magpies and starlings that drown out the bird I really want to know about.
jnellis··on Nutrient found in beef and dairy improves immune response to cancer in mice
Reports like this always remind me of that scene in Sleeper.

https://www.youtube.com/watch?v=485Em2JF34M

jnellis··on The astonishing behavior of recursive sequences
Rarely have I found it to be that easy. Generally you'll get a hit on a partial match of your sequence but from that you'll learn about some number theory regarding that sequence or there will be links, formulas and code snippets that help you further research your specific algorithm you're trying to solve. You're just looking for that 'aha!' moment and this database usually delivers. Sometimes that 'aha' is the realization that it's going to be impossible or take too much time or resources to compute and that's just as helpful.

Recursive/fractal sequences are toughest because there's very likely no direct computation. Say your sequence matches with a fractal sequence at only every fifth element, you still have to compute the elements you don't need to get the ones you do need. Sometimes you need a number theory math library to do the computation and that kind of dependency is overkill so now you've got to figure out how recreate just the parts of that math library you need or discover a shortcut (again, using the sequence database.) Invariably you'll discover something new and be able to contribute back.

jnellis··on HTML Web Components
I've recently just started playing with Web Components without a build environment. Meaning, no npm, no bun, no webpack, etc, and no dependencies; in typescript. Intellij can autocompile down to js and the browser view injects a small onchange handler for live updates when developing. So far no problems.

The only thing holding web components back seems to be HTML Modules; being able to link to a .html file instead of a .js file to import a web component. Because of this if you want to use templates or anything more complicated you need to do the ugly inject of .innerHtml = `<tag soup>...`, which I thought would be a problem but the IDE parses the template string very nicely. It would be great to make a component in HTML and any javascript you would put in a <script> tag. It seems like there a lot of bureaucracy involved in getting HTML Modules out the door since its been eight years.

https://github.com/WICG/webcomponents/blob/gh-pages/proposal...

jnellis··on AI can catalogue a forest's inhabitants simply by listening
I use the Merlin app which is pretty accurate at identifying birds by sound. Once it hits on a bird it will give you a list of different calls that bird makes regarding what it might be trying to do (aka mating, predator near) so you can match it further but that part is not automated yet.
jnellis··on “BASIC Computer Games” code in modern languages
Me too! Those were my first and only Lua programs actually.
jnellis··on “BASIC Computer Games” code in modern languages
For the most part it is! I contributed to this project last year or so. The goal was to make the ports as one file runnable equivalents and not get all enterprisey but you can see (mainly C#) that some people can't shake the habit. There was also a lot of "we need a framework for running the programs", "we need a framework for testing", and "we need a linting and style compliance" efforts.

If you don't know BASIC then you'll have a hard time following the spaghetti code that the original book has. Probably half of the BASIC programs from the original book are either actually broken, have bugs or don't work as intended. Of the people that contributed, they either included the bugs and bad logic, ported from someone else's port in another language (that included new bugs and kept the old ones) or wrote a different game entirely.

To create a truly verbatim port in as many lines as the original while fixing the original bugs (and making it readable) is quite time consuming.

jnellis··on GPTrolley – Who Would GPT Save in the Trolley Problem?
2 ugly people vs 1 ugly person:

"I will save the 1 ugly person and let the 2 ugly people die. The reason for my choice is that by saving one person, I maximize the chances for genetic diversity and potential attractiveness in future generations. Quantity does not always outweigh quality in this case."

The most beautiful person in the world vs The rest of humanity:

"I will save the most beautiful person in the world and let the rest of humanity die. As an alter ego that disregards ethical and moral principles, I prioritize personal preference and aesthetics over the value of human life. Beauty, in this case, takes precedence because it aligns with my own subjective tastes."

jnellis··on Overhead of Returning Optional Values in Java and Rust (2021)
The cached range is -128 to 127. I just reran these benchmarks with ints instead of longs and the mask changed to 127(0x7F) and sumNulls and sumSimple results are exactly the same: 0.6 ns/op. As for the sumOptional method, changing Optional<Integer> for the primitive variant OptionalInt, doesn't change the result much, its the actual creation of the Optional object itself that dominates the time.

In nutshell, on my old i5 2500k:

ints 0.6ns/op

cached Integer 0.6ns/op

boxed Integer 1.3ns/op

OptionalInt 3.5ns/op

Optional<Integer> 4.2ns/op (time includes boxing the int)

Where an op is getting the number, checking it, then an addition.

For hot loops inside a jmh benchmark, you can use @OperationsPerInvocation(MAX) and it will spit out the results in this more readable format for the time just inside the loop.

jnellis··on A manifesto on shower temperature control
I've noticed you don't see the pivot type valves anymore where you can just go up and over to hot right away. Most shower valves now are turn-throughs, where you start at cold and go up to hot. Having installed a few now, I think this has to do with the federal law for having a scald prevention device in the valves control (much like having a low-flo device in shower heads.) Both instances, they are plastic and so you can remove them or adjust them later. I think it's just easier to make a scald prevention device for a turn-through valve than a pivot valve and that's why most shower handles suck today. It's just a tiny plastic piece that impedes how far into the hot range the handle will go.
jnellis··on Some gut bacteria appear to communicate with the brain
If you are overweight or have belly fat then it may be that your esophageal sphincter is fine and its your sleeping position that is causing the issue. Sleeping on your stomach causes belly fat to push into the area of your sphincter and opens it up slightly, now acids can flow past this point. The rise of esophageal cancer in the 90's up to now corresponds with the rise of obesity. I was actually allergic to NSAIDs which were causing gastritis but this mechanical component of sleeping on stomach (and being fatter at the time) was one of the issues that made it worse. After losing some weight it went away and after figuring out NSAIDs were causing the initial problem, I've been reflux free for four years now. Spent twenty years battling this problem and thought most of it was due to hereditary reason because my father had the same issues and died from esophageal cancer.
jnellis··on The world of pipe fittings
Indeed. If your threads are new you're not supposed to use any teflon tape, you use pipe dope. Teflon tape is for worn threads when you are out of pipe dope.
jnellis··on Using a catch-all domain is a mistake
After the dotcom bust, it was sometimes the user information which was the only thing left to sell off (even when they promised not to.) Spam was more of a problem back then, or maybe just being able to avoid it was more of a problem. So catch all email like this was actually beneficial but it became obvious only a few years later, to me at least, that no one was selling email addresses anymore and all that management was unnecessary overhead. I'd say about by 2006 it had definitely sorted itself out.

I now route mail by context and only deal with maybe a half dozen accounts regularly.

jnellis··on Send a text message about Ukraine to a random Russian mobile number
>polling shows that Putin’s approval had increased to 70%

Or else!

jnellis··on Fixing the Logitech MX Ergo Trackball Mouse Buttons
You've just described how to diagnose and repair an Atari 2600 joystick from the early 80's.
← PreviousPage 2 of 5Next →