HNHacker News
TopNewBestAskShowJobs

trynewideas

4,549 karma · joined March 28, 2016

submissionscomments
trynewideas··on Allergic to Sesame? Food Labels Now Must List Sesame as an Allergen
Well, good news. In response to this new rule, lots of foods that have never had sesame in them are adding sesame to them, because it's easier to intentionally add sesame to everything than try to identify what might be contaminated with it and remove it.

Sucks if you do actually have a sesame allergy, though.

https://reason.com/2022/12/23/why-is-sesame-suddenly-in-ever...

trynewideas··on I_suck_and_my_tests_are_order_dependent
All through GitHub.

1. From https://github.com/rails/rails/blob/6ffb29d24e05abbd9ffe3ea9..., click "Blame" on the header bar over the file contents.

2. Scroll down to the line and click on the commit in the left column.

3. Scroll down to the part of the commit that removed the line from its previous location, in activesupport/lib/active_support/test_case.rb.

4. Click the three-dots menu in that file's header bar and select "View file".

5. Click "History" in the header bar of the contributors, above the file contents.

6. I guessed here that it was introduced in commit 281f488 based on its message: "Use the method provided by minitest to make tests order dependent". Clicking through to it confirms that. There's also a comment here that identified the problem which led to, and provided context for, the change in 6ffb29d.

The OP is from minitest's documentation, so to find the introduction in minitest, it's basically the same process.

1. Go to https://github.com/minitest/minitest.

2. Search the repo for the method name. Even just "i_suck" will match the commit.

3. Select the oldest commit in the results. That's a4553e2.

trynewideas··on I_suck_and_my_tests_are_order_dependent
You didn't follow the blame further.

First, the flag is provided by minitest. That commit is an implementation of the flag in Rails.

Second, 6ffb29d moved it to prevent Rails's test framework from setting it _by default_. 281f488[1] actually added it to Rails.

minitest/minitest#a4553e2[2] appears to have added the docstring and test case to minitest.

1: https://github.com/rails/rails/commit/281f488fffc176084bf77c...

2: https://github.com/minitest/minitest/commit/a4553e2e127072c9...

trynewideas··on Meta has uncovered the Quest 3 leaker
> I was never trained on ethics in journalism, so the idea that giving an information provider a cut of the revenue generated by said information felt like a reasonable thing to do

lmfao

trynewideas··on Atlassian says recent data leak stems from third-party vendor hack
brb, getting my security team to endorse closing offices and going remote work-only because it reduces our online attack surface
trynewideas··on Atlassian says recent data leak stems from third-party vendor hack
Envoy, specifically, a startup that manages physical workplace access (ie. "Empower employees to reserve a desk in the workplace"), all with redundant storage of potentially sensitive employee information, like names, phone numbers, ID documents, legal agreements, physical access badge data and photos, etc.

Kind of surprised we haven't heard more about hacks among the proliferation of underbaked startups that backfill basic workplace and HR services.

trynewideas··on Ask HN: Best examples of software documentation that you've come across?
Arch Linux: https://wiki.archlinux.org/

There are great examples of top-down authored docs in this thread, but Arch's docs manage to be comprehensive while being largely community contributed. Odds are if I have a question about any Linux distribution, I can find an answer for it in Arch's docs. As a result, they also often have considerable localization.

trynewideas··on Ask HN: Best examples of software documentation that you've come across?
You won't find many common threads there. No tool (yet) designs an effective information architecture, consistent style, audience awareness, or comprehensive topic coverage. Those all have to come from the contributors.

Aside from providing a front end for viewing and maybe editing, docs publishing tools mostly help make that content more accessible, provide some search and versioning functionality, ease some maintenance tasks, provide static publishing options like PDFs, and handle asset management. Maybe you get luxurious and have an authoring/reviewing/publishing workflow from a headless CMS, but most shops these days just try to bend a software issue-tracking system into doing that.

trynewideas··on Ask HN: Any Sugestions for Proceures Documentation?
The tools to author it aren't that important, frankly. Ask your audience what they're most comfortable using and try to meet them there.

If the stakeholders are technical, you have more options. If they aren't, I hope you like Google Docs or Word, because if you give them anything other than that or a PDF, they'll probably complain. At worst, yeah, write it in a long Markdown text file and use tools like pandoc to transform that into other formats as needed.

If you do need a website and you're not generating enterprise-scale amounts of content (and it sounds like you're not) try things that let you avoid needing build steps and infrastructure if at all possible, so you can iterate and deploy changes with as little friction as you can.

Tools like Docsify[1] can take a pile of Markdown files and serve a site out of them, client- or server-side, without a static build step. Depending on the org, you can get away with GitHub's default rendering of Markdown in a repo. Most static site builds for stuff your scale are overengineered instances of premature optimization.

Past those initial hurdles, the format and tools challenges are all in maintenance. How can you:

- most easily keep the content up to date

- delegate updates as the staff grows or changes

- proactively distribute updates ASAP to the people who'd most benefit from receiving them

That's going to depend a lot more on who'll contribute updates, what their technical proficiency's like, and how they prefer to communicate. It might be a shared git repo and RSS or Slack notifications if they're comfortable with those things, and it might be a Google Doc and email if they're like most non-technical stakeholders.

1: https://docsify.js.org

trynewideas··on Framework Laptop Review (Intel 12th G. Laptop) with Linux: The Definitive Review
Mine's confirmed disabled, so I'm stumped:

    $ sudo cat /sys/kernel/debug/dri/1/i915_edp_psr_status
    Sink support: yes [0x03]
    PSR mode: disabled
    PSR sink not reliable: no
I'd raise a proper support request[1] with Framework then, who are generally more responsive and thorough with these kinds of problems than most laptop tech support (they put me down this path to start with).

1: https://framework.kustomer.help/contact/support-request-ryon...

trynewideas··on Second suretor of SBF's bond, for $500k, is Larry Kramer
Take with a grain of salt: https://news.yahoo.com/just-learned-names-2-people-185945980...

> "Joe Bankman and Barbara Fried have been close friends of my wife and I since the mid-1990s," Kramer wrote in an email. "During the past two years, while my family faced a harrowing battle with cancer, they have been the truest of friends – bringing food, providing moral support, and frequently stepping in at moment's notice to help. In turn, we have sought to support them as they face their own crisis."

> He also said he had no business interest in the $500,000 he contributed towards Bankman-Fried's bond.

> "My actions are in my personal capacity, and I have no business dealings or interest in this matter other than to help our loyal and steadfast friends," Kramer wrote. "Nor do I have any comment or position regarding the substance of the legal matter itself, which is what the trial will be for."

trynewideas··on Second suretor of SBF's bond, for $500k, is Larry Kramer
https://archive.ph/Pqr04

> “I had a friend who said, ‘You don’t want to be seen with (Sam Bankman-Fried's parents),’” said Larry Kramer, a former dean of the law school and a close friend of the Bankman-Fried family. “I don’t see how this doesn’t bankrupt them.”

Bankman-Fried's parents were both Stanford Law professors.

http://archive.today/FDEIc

> A spokeswoman for Mr. Bankman and Ms. Fried wouldn’t comment on whether they are giving their son legal advice. Their friends, some of them legal scholars themselves, have said Mr. Bankman-Fried’s frequent media appearances are a mistake that could put him deeper in legal jeopardy.

> “They want him to protect himself, and he won’t,” said Larry Kramer, a former dean at Stanford Law and longtime family friend. “They’ve decided, ‘We’re not going to fight with our son.’

...

> Friends and colleagues said Mr. Bankman, who is also a clinical psychologist by training, abhors conflict. When discussions at the Bankman-Frieds’ Sunday dinner parties turned contentious, Mr. Bankman on occasion would step out of the room, friends said.

> “Joe likes people and wants people to be comfortable,” Mr. Kramer said.

trynewideas··on Framework Laptop Review (Intel 12th G. Laptop) with Linux: The Definitive Review
You can try setting `i915.enable_psr=0` at boot (the "add i915.enable_psr=0 into your kernel boot parameters" part of the comment I linked to and posted) or set the enable_psr parameter on the i915 kernel module.

The Fedora docs cover setting module parameters.[1] This is how setting the kernel module parameter manifests on my system:

    $ sudo grep -iR i915.enable_psr /etc/modprobe.d
    /etc/modprobe.d/i915.conf:options i915 enable_psr=0

    $ sudo cat /etc/modprobe.d/i915.conf 
    options i915 enable_psr=0
Assuming you use the default GRUB 2 boot loader, the Fedora docs also cover setting the kernel boot parameters.[2]

1: https://docs.fedoraproject.org/en-US/fedora/latest/system-ad...

2: https://docs.fedoraproject.org/en-US/fedora/latest/system-ad...

trynewideas··on Gamebert: A Game Boy Emulator
> There’s also a lot of community-written documentation, which is both amazing and kind of crummy. It’s extensive and detailed, but also near-impossible for a newcomer to parse.

...

> My big methodological breakthrough came when I joined the Emulator Developer Discord. The helpful denizens of the #gameboy channel pointed me to a GitHub repo of logfiles, in which a kind person with a working emulator had run Blargg’s ROMs and logged the state of their emulator after each instruction.

This is depressingly familiar. The stuff you can find is either horrifically out of date or not written for someone new. The stuff that could help someone new is sequestered in a community outside the reach of any search engine. If you don't already know about, can't find, or can't interact with the community, lol git gud.

trynewideas··on Sen. Dianne Feinstein (D-CA) to retire at end of term
Democrats here aren't especially well known for doing anything that helps their party, tactically or strategically.
trynewideas··on Sen. Dianne Feinstein (D-CA) to retire at end of term
https://archive.ph/NK9pm

Feinstein is a longtime tech industry villain on the "catastrophically ignorant" track,[1][2] especially around encryption.[3][4] I'll especially remember her brushing off kids who lobbied her on the Green New Deal:[5]

> “I’ve gotten elected, I just ran,” she added. “I was elected by almost a million-vote plurality. And I know what I’m doing. So you know, maybe people should listen a little bit.”

The SF Chronicle ran a story in April about her progressing cognitive problems. She's 88.[6]

The race to replace her was already competitive before she'd even announced her retirement.[7]

1: https://www.politico.com/story/2012/06/feinstein-im-no-techn...

2: https://www.aclu.org/news/national-security/sen-feinstein-sh...

3: https://www.techdirt.com/2016/04/08/burr-feinstein-release-t...

4: https://www.theverge.com/interface/2020/3/12/21174815/earn-i...

5: https://thehill.com/homenews/senate/431238-kids-confront-fei...

6: https://www.sfchronicle.com/politics/article/dianne-feinstei...

7: https://www.latimes.com/politics/story/2023-01-20/california...

trynewideas··on Framework Laptop Review (Intel 12th G. Laptop) with Linux: The Definitive Review
The GPU issue isn't limited to Framework; see https://gitlab.freedesktop.org/drm/intel/-/issues/6679

Panel Self Refresh (PSR) seems to be at least the most common cause:

> @kelnos, have you tried without psr? E.g. add i915.enable_psr=0 into your kernel boot parameters or disable it via debugfs (as a root):

    echo 1 > /sys/kernel/debug/dri/0/i915_edp_psr_debug # yes it's '1'
> You can check that psr got really disabled by:

    sudo cat /sys/kernel/debug/dri/0/i915_edp_psr_status
    Sink support: yes [0x03]
    PSR mode: disabled
    PSR sink not reliable: no
I'm on a Framework 12th Gen running Fedora 37, kernel 6.1.9, with no freezes for several weeks after having loads of them under both GNOME and KDE on Ubuntu and pop_OS.
trynewideas··on Incident: United B772 at Kahului on Dec 18th 2022, pilots filed safety report
Searching Twitter for tweets with both airport codes SFO and OGG (the Maui airport code) on those dates: nothing

https://twitter.com/search?q=%22ogg%22%20%22sfo%22%20since%3...

For all messages @united with 1722 on those dates: nothing mentioning this incident

https://twitter.com/search?q=%40united%201722%20since%3A2022...

For all messages @united with SFO on those dates: nothing mentioning this incident

https://twitter.com/search?q=%40united%20sfo%20since%3A2022-...

For all messages @united with OGG on those dates: nothing mentioning this incident

https://twitter.com/search?q=%40united%20ogg%20since%3A2022-...

For all messages with the words maui flight on or around those dates: lots of messages about bad weather, turbulence injuries on a Honolulu-bound flight, delays and cancellations, a lot of complaints about sitting on the tarmac for 30-90 minutes waiting for a gate on Alaska Air flights to Maui, and the Hawaii Life Flight helicopter disappearance, but not this incident

https://twitter.com/search?q=maui%20flight%20since%3A2022-12...

trynewideas··on Ohio train derailment: environmental disaster quietly unfolding
> What I haven't seen is any actual reporting. You know, talking to an expert, someone who has any actual knowledge about what steps are being taken, what the threat is, what steps should be taken but aren't, etc.

https://www.wkbn.com/news/local-news/east-palestine-train-de...

> “I think it was not in the best interest of human health and welfare and the environment to simply cover it up and keep going without at least a preliminary evaluation to determine if the level of vinyl chloride that was present in the soil was going to create a potential contamination threat to surface or groundwater,” said Dr. Julie Weatherington-Rice who has a Ph.D. in soil science and has been working for Bennett & Williams Environmental Consultants since 1986.

> Weatherington-Rice said it’s possible vinyl chloride can travel through the ground as rain and precipitation move through the soil. It then has the potential to reach groundwater and eventually hit well fields.

> “It’s not a question of whether it’s going to be an issue, it will be an issue, the question is how bad of an issue is it gonna be, where is it gonna go, and how long is it gonna take to get there, and what’s gonna happen when it gets there,” Weatherington-Rice said.

https://www.wkbn.com/news/local-news/east-palestine-train-de...

> “We basically nuked a town with chemicals so we could get a railroad open,” said Sil Caggiano, a hazardous materials specialist.

> Caggiano says ethylhexyl acrylate is especially worrisome. He says it’s a carcinogen and contact with it can cause burning and irritation in the skin and eyes. Breathing it in can irritate the nose and throat and cause coughing and shortness of breath.

> Isobutylene is also known to cause dizziness and drowsiness when inhaled.

> “I was surprised when they quickly told the people they can go back home, but then said if they feel like they want their homes tested they can have them tested. I would’ve far rather they did all the testing,” Caggiano said.

> Caggiano says it’s possible some of these chemicals could still be present in homes and on objects until you clean them thoroughly.

> “There’s a lot of what ifs, and we’re going to be looking at this thing 5, 10, 15, 20 years down the line and wondering, ‘Gee, cancer clusters could pop up, you know, well water could go bad,” Caggiano said.

https://www.nbcnews.com/health/health-news/residents-ohio-tr...

> Andrew Whelton, a professor of environmental and ecological engineering at Purdue University, said it's possible the burn created additional compounds the EPA might not be testing for.

> "When they combusted the materials, they created other chemicals. The question is what did they create?" he said.

trynewideas··on Coffee won’t give you extra energy, just borrow a bit that you’ll pay for later
Previously: https://news.ycombinator.com/item?id=34572794
trynewideas··on Pepper spray your officers
Feds in Portland were effectively tear gassing themselves at the courthouse for two solid months, and the only thing they changed about their usage over that time was to deploy so much more that they were firing and throwing expired munitions that didn't explode and instead got lodged in storm drains and school playgrounds.

The empathy has to be there already before the exposure. It won't just spontaneously show up after.

trynewideas··on Run Your Own Television Network in the Browser with Channel Two
Having worked with public access TV scheduling and playout software, this is perversely fun to try. Don't forget to fill out your FCC Form 2100 Schedule H, kids!
trynewideas··on FOSDEM 2023 Transcribed by Whisper
Every use of "fuck":

> So, you can see my Firefox is in Italian, but you can see that it automatically detected that the page is in French and it is suggesting me to translate it to Italian. I will change it to English. Oh, fuck.

> The reason for that is because there is so many ways to extend or to define an architecture, and there is some really fucked up things that can be done in so many architectures

> We don't measure RSS because it measures anything useful we measure it because it's really fucking easy to measure.

> There were a few customers that didn't respond, but at some point you just have to decide to. Don't give a fuck.

> Computational storage, what the fuck's that?

> like on MacOs you can have a recovery key, on Windows you can have a recovery key, and this is what we should do here as well, right, like use TPMs absolutely, and then hide entropy recovery keys that things are fucked up, things are fucked up

> we get money, we invest in open source, and then we have the problem that what we do in open source could be reused by non-European companies. And thinking, oh, my God. Oh, that's so fucking wrong. Why do you do that?

> So, you know, if Monty is not screaming at me saying you are fucking moron, Peter, that is not how it is, then probably I am not doing my job properly.

> I'm going to wail and gnash my teeth and hope it doesn't happen in practice because at the moment, you know, something like EDK2, to be clear, by the way, I don't give a fuck about non-free firmwares

> Is there anybody here who doesn't know what a kubelet is? Okay. The kubelet, oh, you fuck, anyway.

> So for now we're targeting your own CA so you can just say fuck it, I will enroll my own keys to the firmware.

> So one of the idea is to start to come to a more predictable fashion, which is one major API break and API break every year around December, January, so we're in February, and we fuck this year.

> It's really not sure whether we are going to be able to do that because you're transpiling assembly. Like, what the fuck are you talking about?

> your problem was where you called, in this case, pop on an empty stack, and not the completely pointless unwrap in there, because you want to know where you're fucked up and not here, obviously.

> So if it is, then say, say like, this is fucking wrong, Peter, you know, so I can fix my slides when I talk next time, I have the wrong stuff, right?

trynewideas··on Star Trek Full-Scale USS Enterprise Almost Built in Las Vegas in '92
> THIS – this is different. If this doesn’t work – if this is not a success – it’s there, forever … I don’t want to be the guy that approved this and then it’s a flop and sitting out there in Vegas forever.

Disney's Galactic Starcruiser flop makes him sound less wrong than the article tries to make him sound.

trynewideas··on Ask HN: Ergonomic Keyboard for Small Hands
A company called Perixx makes ergonomic-layout keyboards in a variety of sizes: https://perixx.com/collections/keyboards
trynewideas··on Simple Physics-based Flight Simulation with C++
One of the citations is brihernandez/SimpleWings; Hernandez is better known as indie dev Why485, creator of Tiny Combat Arena, a throwback flight sim to the A-10 Cuba era. (Of course the reborn MicroProse picked it up.) https://store.steampowered.com/app/1347550/Tiny_Combat_Arena...

Why's GitHub repo is full of useful things for game devs, especially Unity but also C++. https://github.com/brihernandez/Ergo is maybe most relevant to this post for being a C++ implementation of a basic 3D space shooter engine built on raylib.

trynewideas··on Algorithms for converting binary to decimal floating-point numbers (2021)
cf. Microsoft's attempt to contribute MSVCS's Ryu float to_chars implementation to LLVM, with review comments from Ulf Adams: https://reviews.llvm.org/D70631
trynewideas··on I had ChatGPT write a Decemberists song and recorded it
> It empowers all the non-experts in these many domains to touch things they never could have before.

Nothing stops anyone from writing a mediocre song. Hell, it's one of the easiest things in creation to do. Hum a melody, make some words fit. Write it down, make up your own notation for the melody if you want; you don't even have to perform it. Congratulations! You're in the same field as Colin Meloy.

ChatGPT isn't even doing this much. It's read all the tabs and lyrics of every song within its reach until 2021, and then spits out an average response based on average similar requests. It's a songwriter in the same way a 7-year-old telling you a story about an alligator who ate a city is an author.

trynewideas··on I had ChatGPT write a Decemberists song and recorded it
> We need to teach this thing how to love

Have you considered that maybe we don't

trynewideas··on QGIS is the mapping software you didn't know you needed
"Most obvious" is still pretty subjective, though. It depends on how you wind up looking for a GIS tool.

- A lot of people come to it wanting to edit or annotate existing city/street maps with geometry, like you're describing.

- My first encounters with it were trying to plot points on a map to build a heat map, in a data analysis context, and I was coming from Google Earth/KML.

- The next time, I wanted to georeference raster maps to make more accurate vector data, and I was coming from Inkscape and Illustrator.

- Another popular use case is to work with topographical and height data, which is another workflow with mostly another interface in QGIS.

- And all of these can have very different output goals - slippy maps with raster or vector tiles, topo maps, 3D renderings and prints, GeoJSON and PostGIS data.

The "most obvious" app for each of those use cases would each be different, with different interfaces. And I can see where that would be good for beginners, or for limited use cases, but at some point each of those use cases intersects with another. Drawing bike lanes on a map quickly means working with topo data. Georeferencing a new base map eventually hits plotting POIs and drawing things like political borders as geometry. Outputting a heat map from data you plot in QGIS can work, but then you need to plug it into a database at some point so the data can be updated in a shared or automated context.

IMO what would be more useful for QGIS is a ground-up, no-assumptions review of its UI similar to what Blender did in 2.8/3.0. Find where they can consolidate redundant or conflicting tools and interfaces, redesign their mouse/keyboard interactions and tool palettes around how users intuit they should work, and provide alternate modes for the more complex workflows that existing users are accustomed to. Blender's redesign proved pretty well that an esoteric UI can be streamlined and modernized without sacrificing power user workflows.

But I don't know if the QGIS UI community is as large, organized, or focused on modern UI design as Blender's, which was a rather unique case in FLOSS. And it'd be difficult to divorce QGIS's GIS data-editing engine from its interface as a whole to build standalone tools with smaller UIs focused on tasks instead of toolboxes.

Plugins might be able to do this, which could be an interesting approach. Instead of adding features like plugins tend to do, one could ship a "flavor" of QGIS with pre-installed and -configured plugins that provide narrower, task-focused interfaces around existing features.

← PreviousPage 2 of 32Next →