Better HN
topnewbestaskshowjobs
Log inSign up

jonnycomputer

5,400 karma · joined Apr 8, 2017 (9y ago) · 2,444 submissions

Submissions

comment 3y ago · link · parent

Yes, this iterative procedure is often why "useless" cats get put into it. It's a very effective way of processing regular text information.

e.g.

I need to grab some info from textfile.txt to use as arguments to a function.

cat textfile.txt

looks like its comma delimited.

cat textfile.txt | cut -d, -f 2-5

ah, its the third and fourth column i need

cat textfile.txt | cut -d, -f 3-4 | grep '123456'

perfect

cat textfile.txt | cut -d, -f 3-4 | grep 123456 | tr , ' '

myfunc $(cat textfile.txt | cut -d, -f 3-4 | grep 123456 | tr , ' ')

comment 3y ago · link · parent

Yes. I use it a great deal, but I haven't gotten used to using the linux equivalents. I guess that would be either xsel or xclip. Maybe I should create a "pbcopy" that runs one of those. I like to minimize the cognitive load when I switch between mac and linux command line environments.

comment 3y ago · link · parent

Can you elaborate on that?

comment 3y ago · link · parent

Yes, but not nearly enough by a long shot.

comment 3y ago · link · parent

I'm not personally opposed (though most of that kind of harvesting might disturb a lot of habitat, potentially introducing non-native invasives. But, it is also a fact that a lot of plant life is dependent on fire.

comment 3y ago · link · parent

Just one more obstacle to having a sensible fire regime. Sheesh.

If you do prescribed burns early in the season, the fires will be small, and not out of control (generally). That prevents worse air pollution later.

In general this differentiation between "acts of God" and "acts of Man" is a real problem. You neglect a forest until it burns down a community, and you're innocent. It was an act of God. You try to prevent that from happening by doing controlled burns, something goes wrong, and it burns down some houses; busted.

comment 3y ago · link · parent

Maybe Apple should be forced to change it's name to Bitten Apple Pretty Good Electronics Co.

368.

See China’s Abandoned EV Graveyard: Thousands of Cars Rot in Fields(insideevs.com ↗)

9 points · by jonnycomputer · 3y ago · 2 comments

comment 3y ago · link · parent

That's very practical.

I strongly suspect however, for people who are not primarily concerned with practical things perhaps, unrestrained pondering is a big driver of new discovery.

comment 3y ago · link · parent

Almost everyone I know immediately installs a third-party app to handle windows when they get their Mac. That includes me.

comment 3y ago · link · parent

I also wondered whether this could be a treatment for long covid. I don't know enough about it's etiology to say; however, like you I was downvoted without any response. Which is sad and not constructive.

comment 3y ago · link · parent

I do wonder about treatment of people who already have long covid. I don't know if long covid is just lingering damage, or is the result of continuing low-level infection

comment 3y ago · link · parent

Oh look: https://news.ycombinator.com/vote?id=36343991&how=up&auth=85...

comment 3y ago · link · parent

Big assumptions here.

comment 3y ago · link · parent

I love python. It is my go-to language for just about everything. But that also means that I feel the pain points pretty acutely. And you know what, I'm not alone.

comment 3y ago · link · parent

No, I do appreciate you taking the time to do it (I was too lazy)

comment 3y ago · link · parent

which is why I said, "Despite the work done on it"

comment 3y ago · link · parent

I'm going to admit that what I really want to see is a strong push to standardize and fully incorporate package management and distribution into python's core. Despite the work done on it, it's still a mess as far as I can see, and there is no single source of truth (that I know of) on how to do it.

For that matter, pip can't even search for packages any more, and instead directs you to browse the pypi website in a browser. Whatever the technical reasons for that, its a user interface fail. Conda can do it!!!!! (as well as just about any package management system I've ever used)

comment 3y ago · link · parent

The article says implemented in Python, but doesn't say how or where. Anyone know? Decorators?

comment 3y ago · link · parent

The brain adapts to new regimes; that's probably part of the anti-depressive effect of SSRIs, not the acute effects. For that reason, I agree that a study of connectivity over the longer-term would be more convincing.

comment 3y ago · link · parent

Anyone have experience with JetBrain's Data Spell product?

comment 3y ago · link · parent

If you are doing text, this is the answer.

comment 3y ago · link · parent

God, is this going to be what I see in my next python coding interview?

comment 3y ago · link · parent

I recommend a listen to this series

https://gwec.buzzsprout.com/1229717/11455756-hydrogen-series...

comment 3y ago · link · parent

Would be moored more or less the same way deep-sea oils rigs are. The main difficulties, as I understand it, is the unique stresses and forces of the turbine on platform stability. I can see why an image of these moving back and forth is appealing, it will almost certainly make more sense to have dedicated craft responsible for it (even if they were not fixed to the ground). The very sorts of stability you need would work against it being an efficient transport.

comment 3y ago · link · parent

I guess I have two answers.

First, it is not always most convenient or efficient to produce energy where you use it, and electricity needs to be generated relatively nearby where it is used, and transit lines can be expensive to build. For example, deep offshore wind seems to look like a more and more promising option, but you need some practical way to get that energy onshore.

Second, electricity is just not practical for some modes of transportation; notably cargo ships and airplanes. And these represent significant CO2 and other pollution emission sources.

Also, hydrogen is a chemical feedstock with plenty of uses besides as a source of energy.

comment 3y ago · link · parent

So the main benefit for me in going into the office, besides the psychological boost of being outside of the house, is that I often learn things about what is going on that I wouldn't have learned otherwise because they never rose to the level of, "we better should tell him". Instead, I'd just over-hear it, or there'd be a group on-the-fly conversation happening, and someone would mention it. Sometimes those things were rather important, and the only reason it wasn't brought to my attention by the people who knew it, was because they didn't know how important it was.

comment 3y ago · link · parent

Well, a lot of company-employee relations is about control. Or fear of loss of control. And so, with work from home, the encroachment on the privacy of the home. I guess I'd rather be spied on at work than at home.
1
121314
82