Better HN
topnewbestaskshowjobs
Log inSign up

yakubin

4,510 karma · joined Sep 13, 2020 (6y ago) · 1,484 submissions

Submissions

comment 2y ago · link · parent

Action which I find much more useful than Back is Up. I’m always annoyed when someone hands me their Android to do something and I need to go through 10 screens hitting Back instead of Up. I almost never want Back. I want Up. This is also reflected in my use of Finder on Mac e.g. where I often hit Cmd+Up, but never Cmd+Left.

comment 2y ago · link · parent

> We can already do that at leisure, but most would not care to go a whole day (let alone every day) trudging around by necessity.

We can do that at best 2/7 days a week. In reality, modern life forces us to dedicate even less time to that.

I've done that many times. The feeling at the end of the day is always unlike any other. Wouldn't swap those experiences for anything else.

> You seem to be framing the search for food as a low-stakes endeavor.

Have you ever picked mushrooms? Do you know how little time it takes to get enough mushrooms for weeks to come? And then how much meat there is in a deer?

I agree that the risk of being murdered is higher. Although I think you overestimate the frequency of encounters. There weren't a lot of people back then on Earth. I also don't think this decreases happiness all that much. The slow senseless willowing away in an office everyday seems like a much less happy existence, even if it's a longer one.

comment 2y ago · link · parent

Yes?

Spend a day endlessly walking (roaming), searching in the forest for berries, mushrooms etc., doing hand-to-hand combat, hunting...

Spend a day in front of a computer.

Which one do you think will end in a feeling of happiness?

comment 2y ago · link · parent

A similar warning could be enabled in GCC using the flag -Wsign-compare.

comment 2y ago · link · parent

In this case more important than any runtime overflow/underflow checks is the fact that the compiler will check that comparison operands are of the same type instead of inserting an implicit cast. Instead the programmer is forced to insert an explicit conversion like .try_into().unwrap(), which clearly suggests the possibility of an error. And if the error isn't handled, it will panic.

https://play.rust-lang.org/?version=stable&mode=debug&editio...

comment 2y ago · link · parent

Which is why the Rust compiler itself uses a non-cryptographic hash, which takes just 3 x86 instructions and can work on 8 bytes at a time: <https://github.com/rust-lang/rustc-hash/blob/master/src/lib....>

comment 2y ago · link · parent

Given that shutter sounds are produced, I'd guess the shutter is opened[1]:

> During this time, shutter sounds will be produced.

[1]: <https://helpguide.sony.net/ilc/2010/v1/en/contents/TP0003229...>

comment 2y ago · link · parent

Most do. Some, like Nikon Z8 and Z9, don't.

comment 2y ago · link · parent

You’re right. I misremembered. The term is “shutter life”. Same result though.

comment 2y ago · link · parent

Does it affect RAW photos or only JPEGs?

comment 2y ago · link · parent

Every photo taken shortens the life of a sensor.

comment 2y ago · link · parent

Same. And same selection of OS-es. :)

comment 2y ago · link · parent

You’ve just compared a densely populated city with a sparsely populated state that’s several times the size of the country the aforementioned city is located in. And then started talking about highways.

comment 2y ago · link · parent

You need better friends. ;)

comment 2y ago · link · parent

In my opinion, the best way to interact with ETW is through DTrace. Microsoft’s GUIs like WPA-Xperf are so buggy and unreliable that using them feels utterly futile. DTrace on Windows on the other hand is very usable.

comment 2y ago · link · parent

No. I mean getting drenched, when forecast predicted no rain. 1mm isn’t really noticeable by humans.

comment 2y ago · link · parent

Absolutely. 15 years ago I could reasonably trust forecasts regarding whether it’s going to rain in a given location 2 days in advance. Today I can’t trust forecasts about whether it’s raining currently.

comment 2y ago · link · parent

> disabling the writing of 'last accessed' timestamps

atime is the most useless filesystem feature I’ve heard of. But on most Unix-like systems it’s enabled by default and the main thing it does is turn reads into writes, degrading performance. All the while ctime isn’t a standard Unix filesystem feature. And ctime to me always seemed infinitely more useful (and cheaper!) than atime.

</rant>

comment 2y ago · link · parent

> To be fair, if something is on Mac, it is usually on Linux.

That's true only for CLI apps. My most frequently used GUI apps on Mac:

- MailMate

- Affinity Photo

- ACDSee Photo Studio

- NetNewsWire

- ApolloOne

- Textual

- Transmit

- iA Writer

None of them are available on Linux. Most of them are Mac-only (i.e. no Windows version either).

comment 2y ago · link · parent

Another instance of pedestrian congestion that’s really jarring to me are serial pedestrian crossings on roads with opposing traffic lanes separated by pavement, often on intersections. It may look like this: <https://maps.app.goo.gl/ErBFC2oXV21oQ9U7A>. For some reason, the traffic lights are programmed in such a way that most of the time you need to be almost running (I’d say something like 8-10 km/h) to ever have a chance of crossing both crossings in one go, even when you start walking at the beginning of the green light. Instead you’re almost always (the durations change throughout the day) guaranteed to stop before the second light and have fun breathing in the fumes from a high-traffic road. I can’t think of it as anything but hostile to pedestrians.

comment 3y ago · link · parent

It was Go. Rust has many converts from C++. But from scripting languages too. It’s a pretty heterogenous programmer-base.

comment 3y ago · link · parent

> A ton of coal will create much more co2 than ton of wood, isn't it?

Yes. But that hardly matters.

> For the same amount of energy the result should be similar amount of co2.

No. Apparently, wood is estimated to emit 30% more CO2 than coal for the same amount of energy[1].

> Coal is worse for people because burning it creates many unhealthy chemical components. Sulfur, heavy metals, etc

Is it more than when you burn wood though? I’m not knowleadgable enough to answer this question. I found one link about it[2], but currently I don’t have time to read it. In any case, the fact that it produces more CO2 than coal is a good argument against wood in my eyes. My argument is against wood, not in favour of coal. Coal is just a benchmark to measure against.

[1]: <https://ecosystems.psu.edu/research/centers/private-forests/...>

[2]: <https://www.intechopen.com/chapters/18644>

comment 3y ago · link · parent

In this instance I’ll say burn it if you want. Although it leading to a natural wildfire is highly dependent on local climate. Where I live, for most of the year it’s too cold and humid for anything like this to happen, except during maybe 2 months a year. But I appreciate that in places like California or Australia it may be different.

comment 3y ago · link · parent

there’dn’t’ve

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

comment 3y ago · link · parent

It’s going to take time for a new tree to consume the CO2 produced by burning a tree. If instead you leave a tree standing and burn coal, you will produce less CO2, so it’s going to take less time to consume it (and the older tree is going to do it faster than a young one).

Moreover, it’s not only a question of net emissions. It’s also a question of location. People burn wood and coal in their homes and that affects the air most near them the most. It is the worst near cities, where you can’t plant a new forest. Instead just think about how the local air is going to be affected if people burn there 1MWh of wood vs coal. Because trees are not going to help here, if they're planted far away.

And, when trees die naturally, they don’t emit CO2 at the speed that they do when they’re burnt. It happens much slower, so it’s not that much of a problem.

Mind you I’m not advocating for burning coal. I’m advocating against burning wood.

comment 3y ago · link · parent

> Energy output is directly related to carbon content. More energy density from coal mean more co2.

No. It means you need to burn a larger volume of wood to get the same amount of energy. And when you increase the volume, you increase the emissions. The first sentence of this quote may be true, if we are talking about absolute amounts, but then in the second sentence density is a ratio (energy to volume), which is why it’s not true.

I don’t know all that much about relative PM2.5 emissions, but a brief search shows a paper, which argues that PM2.5 emissions depend more on combustion conditions than fuel type[1].

[1]: <https://pubmed.ncbi.nlm.nih.gov/31340411/>

comment 3y ago · link · parent

CO2 doesn’t disappear from the atmosphere the moment you plant trees. In fact, burning wood is worse than burning coal here, because, for the same amount of energy provided, burning wood is going to emit more CO2 than burning coal.

comment 3y ago · link · parent

For video you typically set shutter speed to half a frame. The most common frame rate is 24FPS, so you get 1/50 shutter speed. It’s lousy for a photo, but good for video , since you want motion blur, so that the video isn’t janky. You control light through ND filters and LED/tungsten lights, not through shutter speed, since shutter speed affects motion blur and you want to make that choice independently of exposure.

120FPS is good for sports or wildlife, but those are special. For normal stuff, 24FPS is good. And even with wildlife, you’re probably not recording at 120FPS all the time, only during quick action. Otherwise you’re just wasting space on your memory card with identical frames. Battery as well.

12345
50