HNHacker News
TopNewBestAskShowJobs

diablerouge

137 karma · joined April 9, 2018

submissionscomments
diablerouge··on Help Message for Shell Scripts
This seems like a neat sed trick, but I'm not sure that it's useful for this particular case?

When I write a shell script, I often write a help function if it's not a totally trivial script, but there's no need for this cryptic sed expression, right? You can just call `echo` a few times and do it the obvious way. That works better for maintainability and if you put it at the top of the file then it's immediately visible when opening or using `head` on it.

Neat trick though - sed is super useful for all kinds of things. I had a co-worker who bound a keybinding to a sed one-liner that would automagically reconfigure some files that needed to be changed regularly. I ended up using that trick to allow for changing my terminal console colorscheme with a single command.

diablerouge··on Haskell for a New Decade [pdf]
Generics, no? Philip Wadler, one of the designers of Haskell, was involved with the introduction of generics to Java.
diablerouge··on ‘Duty to intervene’: How some US cities are telling cops to police each other
It must be down to accountability. People will break all the rules in the book if consequences are never meted out.
diablerouge··on Windows package manager does not permit opting out of telemetry
Ah, but the point was about using "their dominance in web search to undercut competing browser vendors".

In this case, ~90% of web searches go through Google[0]. So they are using the fact that they are the number one web search engine to convince users to switch to Google Chrome.

[0]: https://www.statista.com/statistics/216573/worldwide-market-...

diablerouge··on U of Chicago projected to be the first U.S. university to cost $100k per year
Hmmm, I'd beg to differ.

I lived at home, with my parents, and went to a state school and paid in-state tuition. Found online PDFs of all my textbooks, and I'm still just barely scraping in at under 40,000. This is from 2016 to 2020 (finishing up my last few courses over the next 6 months.) And the administration is still considering (aka going to pass) an 11% tuition increase, after a 9% increase just 2 years ago.

It's even worse for people who don't live near a university and need to live on campus, pay for meal plans, etc.

diablerouge··on IKEA Will Be Entirely Meat-Free This Christmas
> The overwhelming majority of deforestation is done for crops, not pasture

I'm not so sure this is true. Maybe in the United States. But most of the deforestation happening in the Amazon (which is a major component of climate change) is for meat and leather production.

Relevant quote from Wikipedia: "The cattle sector of the Brazilian Amazon, incentivized by the international beef and leather trades,[1] has been responsible for about 80% of all deforestation in the region,[2][3] or about 14% of the world's total annual deforestation, making it the world's largest single driver of deforestation.[4]" https://en.wikipedia.org/wiki/Deforestation_of_the_Amazon_ra...

diablerouge··on Baking a Better Loaf of Bread
I purchased a large package of instant dry yeast and keep it in the fridge, in a mason jar. It lasts essentially indefinitely (I've had it for _years_.)

Part of the reason it's hard to use chemical leaveners in breads is that they only provide so much lift. A yeasted bread can go through multiple proofings and risings.

diablerouge··on The long history of parents complaining about their kids’ homework
I've definitely had classes where the homework was optional. In my case it has been higher-level math courses, where there are regular quizzes to verify that you know the material.
diablerouge··on Open offices are a dead end
As someone who started out working in an open office and now works someplace with half-cubes, I honestly prefer the open office.

The ability for an open office to foster pair-programming and intense collaboration was a real benefit, though it certainly doesn't suit everyone.

On the other hand, the half-cubes have all the same problems with regard to distractions, but are also major hindrances to working together in my experience. Developers are farther away, the space feels a little claustrophobic, and there are comparatively few good pairing stations.

diablerouge··on Men Arrested at Courthouse Say They Were Sent to Test Its Security
That varies by state and circumstance.

In some states it's legal to own them, but if you are caught using them or being somewhere you shouldn't be while carrying them it can be tacked onto your charges.

Other states it's totally illegal to own or carry them.

diablerouge··on Mozilla’s Manifest v3 FAQ
I think that's an important thing to remember - we can always fork it and move on if they choose to remove the blocking webrequest API.

However, how long that fork can persist, remain secure and retain feature parity is an open question. Should Mozilla cave and the community fork be unpopular, Google will definitely have a monopoly on the browser space.

diablerouge··on Caviar was a free bar snack
Right back at ya' from the same link: "Some doubt still remains on whether the reduced amounts of pesticides used actually invoke a lower negative environmental effect, since there is also a shift in the types of pesticides used, and different pesticides have different environmental effects."

Again, read the monarch butterfly example, where higher rates of Roundup usage has killed milkweed all over, reducing habitat/food for the butterflies.

diablerouge··on Caviar was a free bar snack
I think you may be incorrect about GMOs actually being more sustainable, as they have a pretty major effect on biodiversity by encouraging higher use of pesticides and insecticides[0]. A great example is the effect they have had on the population of monarch butterflies, mentioned in the linked source.

[0] https://en.m.wikipedia.org/wiki/Genetically_modified_food_co...

diablerouge··on Doc Martens’s vegan boot business is thriving
No one is talking about farming. We're talking about factory meat production and slaughterhouses.
diablerouge··on The best way to tour a city is through its grocery store
I'm not in a position to do much traveling right now, but I get my kicks visiting small foreign markets here in the United States. Some things you can't get anywhere else, and it's always fun to see what things are considered Staples for different cultures. For example, I have found that the Russian markets have the best pickles and bread, and the Vietnamese markets have an awesome deli and really good produce, and there's a Caribbean market near my house that carries Ting, which is my favorite grapefruit soda.
diablerouge··on Better That 10 Innocent Men Be Murdered
I think the author is overestimating the deterrence factor of the justice system. American prisons have a much lower quality of life for their inhabitants than many other countries, and yet we also have much higher crime rates than those countries with less horrible prisons.

I think the author is also overestimating the number of calculating criminals who evaluate carefully how likely they are to end up in prison. Crime is often just an emotional response, rather than a pre-meditated action.

diablerouge··on Treat Facebook Like Big Tobacco
That ignores the fact that the percentage of the population who smokes has dropped drastically from when measures were put in place.

Yeah, those warnings don't stop addicts, but they totally changed the public discourse about smoking, and societal attitudes toward the habit. I don't see a reason why that wouldn't work for other harmful behaviors like social media addiction.

diablerouge··on The Parker “51” (2018)
Crazy to see Richard Binder here. He's one of the big fish in the fountain pen community (though now mostly retired as a restoration expert.)

For anyone who is interested in seeing what these are like, I can heartily recommend the Wing Sung 601 - it's a very respectable $15 Chinese homage to the P51. You'll need some bottled ink as well. I use Parker Quink plain black (<$10 on Amazon).

eBay link: https://www.ebay.com/itm/Wing-Sung-601-Steel-Cap-Vacumatic-F...

diablerouge··on Yorimitsu and Shuten-Dôji: The drunken demon of Kyoto
The answer is in the quotes from Batman's Wikipedia page[1] second paragraph in the linked section.

Edit: The article is apparently correct re: the origin of Burce Wayne's name.

[1. https://en.wikipedia.org/wiki/Batman#Creation ]

diablerouge··on SIGIL, a New Doom Campaign by John Romero
Most musicians live off the money they make touring and performing. It's rare that a musician makes enough money off of record sales alone.
diablerouge··on I Used to Be Homeless
I think you're underestimating the real estate market. A significant reason new developments cost so much is that the land they are built upon costs so much.

For example, in Portland Oregon, where I live, most new developments are being built on expensive real estate in central areas. As a result the apartments built there, even if they aren't particularly nice, end up going for high amounts. This is due to non-physical assets, like location and proximity to public transportation.

Your solution would give free reign to developers to cut costs and still rent the housing out for exorbitant amounts because the housing market in SF is already so ridiculous. It would take a lot more than 1 square mile to significantly affect the market.

diablerouge··on The Curse of the Honeycrisp Apple
I used to work at a grocery store, and actually don't feel the way OP does. Honeycrisp are fairly different, in my opinion. A fair bit tarter, and they have an almost fluffy light crisp texture. They even have a different cellular structure than your average apple, IIRC.

Though I agree that more apple varieties would be good, OP is underplaying the differences between the widely available apples. Growing conditions have a great effect in flavor and texture as well.

diablerouge··on The Missing Computer Skills of High School Students
Note that Linux often has GNU Midnight Commander, a clone of Norton Commander (Far is also a clone of NC.) So, whenever you're in Linux and wishing you had Far, check out MC!
diablerouge··on Metamolds: Creating ideal 3D printed silicone molds faster and cheaper
Your parent comment is talking about DLP/SLA printers. Though you are technically correct about FDM being a resin printer, it's not the way hobbyists talk about it.
diablerouge··on How Millennials Killed Mayonnaise
This comes across as a slightly cringeful explanation of a phenomenon that I'm not really sure is a problem. The author's constant referencing of trendy ingredients comes across as an attempt to sound up-to-date with trends in cuisine, without actually knowing what those trends are.

Also, the article is factually incorrect - aoli is not mayonnaise, it's an emulsion made of garlic and olive oil; no egg should be involved in its production.

Finally, it appears that the author has it out for millennials in general [1].

https://www.phillymag.com/news/2016/01/08/boomers-millennial...

diablerouge··on Middle-Class Families Increasingly Look to Community Colleges
Also you'd have to control for major. MIT produces a lot of people working in technical fields with a higher average income. Cal State awards a broader range of degrees.
← PreviousPage 2 of 2