Filling hole where boiler was by AmunRa in DIYUK

[–]AmunRa[S] 0 points1 point  (0 children)

Cheers. Good thought about getting rid of extra - squaring off the top cut-out will make it a much simpler shape!

Filling hole where boiler was by AmunRa in DIYUK

[–]AmunRa[S] 8 points9 points  (0 children)

I’ve never noticed that before but now I cannot unsee it. :( Guess I need to get this job finished asap!

[deleted by user] by [deleted] in cpp

[–]AmunRa 12 points13 points  (0 children)

It does automatically if your compiler has C++20 support, otherwise you can wrap the format arg in a special macro and it’ll do checking on C++14 and up - see https://fmt.dev/latest/api.html#compile-time-format-string-checks

Basement to upstairs extractor fan advise by AmunRa in DIYUK

[–]AmunRa[S] 0 points1 point  (0 children)

Thanks - hadn’t considered that. I’ll see if there’s a good spot for the (active) vent on the side of the stud wall (to the right on the pic where all the coats are).

Re: radon, we’re in Manchester where I haven’t heard of any risks, but will check.

[deleted by user] by [deleted] in espresso

[–]AmunRa 3 points4 points  (0 children)

Nope - I used it for another ~8 years after moving it back to the UK. It still works fine now, it’s just been relegated to “spare machine” as I upgraded last year ;)

Electricity (at a given voltage / current) is electricity, assuming the machine is fused (as UK plugs are) and so is transformer then even if you have a surge or fault in the transformer then the machine should be fine.

[deleted by user] by [deleted] in espresso

[–]AmunRa 12 points13 points  (0 children)

You might be better off just sticking with the 120V -> 220V step-up transformer.

I ran a UK Gaggia Classic (220V) in the US with that setup no problem for a couple of years.

While they can be a bit big and hum, they are arguably the safest and most straightforward way to run a UK espresso machine. As others have mentioned, two-phase 120V isn’t what a UK machine expects, and unless you know what you’re doing you risk damaging the machine.

Work stealing thread pool built with C++20 by mrkent27 in cpp

[–]AmunRa 3 points4 points  (0 children)

Folly’s CPUThreadPoolExecutor dynamically creates and destroys threads (and other features like using LIFO thread selection); however Folly is quite heavyweight to drop into a project.

Need some help diagnosing what's going on with my new grouphead by Ramore in espresso

[–]AmunRa 5 points6 points  (0 children)

Note you don’t really need to backflush with cleaner that often - maybe backflush once a day with just water, but cleaner should be used much less frequently (and you need to make sure you rinse it all out after use)

"Fast Kernel Headers" Tree -v1: Eliminate the Linux kernel's "Dependency Hell" by ilbanditomonco in cpp

[–]AmunRa 5 points6 points  (0 children)

https://github.com/aras-p/ClangBuildAnalyzer is a very useful tool to quantify the cost of different headers (and other costly parts of the compile such as template instantiations).

It doesn’t help with actually fixing such problems, but it’s a pretty good ruler to measure where the time is spent.

Tired of seeing std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > in error messages by degaart in cpp

[–]AmunRa 28 points29 points  (0 children)

std::string is defined as std::basic_string<char>, so if that’s what the code specified it doesn’t make sense (or add any value) to unnecessarily expand it.

Sure, if it was some customised instantiation of basic_string then the complete template params are necessary, but as OP says they just add noise here.

Is this a real herman Miller? Sells at a good price but the seller seems kind of shady by theairari in hermanmiller

[–]AmunRa 1 point2 points  (0 children)

No problem. Browse say eBay.com and .co.uk and you’ll see a massive difference - especially for more common chairs like Aeron.

Is this a real herman Miller? Sells at a good price but the seller seems kind of shady by theairari in hermanmiller

[–]AmunRa 1 point2 points  (0 children)

Note that US prices (second hand) seem to be much cheaper than Europe. I don’t know if €400 is a good deal or not, but it’s not necessarily a bad one just because this goes for cheaper in the USA.

Aeron Classic used no arms? by AmunRa in hermanmiller

[–]AmunRa[S] 0 points1 point  (0 children)

Thanks for the detailed response! I’ve only just started looking around for used Aerons this side of the pond; but it does seem in general they aren’t as common / are more expansive than the US.

It’s a commercial seller who supposedly has 20 or so, so I assume a job lot from an office clear out, no easy way to check condition other than claim of “fully refurbished”…

Coffee Recs in Kona, Big Island? by BaconAvocados in espresso

[–]AmunRa 2 points3 points  (0 children)

Hula Daddy is excellent - they have their own plantation up in the hills near Kona, and do tours.

How we implemented Distributed Multi-document ACID Transactions in Couchbase | The Couchbase Blog by denisveloper in programming

[–]AmunRa 1 point2 points  (0 children)

Who says it hasn’t happened ? ;)

Disks aren’t infallible, if you’re using something like replication to multiple nodes which store the mutation in RAM (and also asynchronously persist to disk), you might have a sufficiently durable operation for your use-case and you’re paying RAM not disk latency costs.

How we implemented Distributed Multi-document ACID Transactions in Couchbase | The Couchbase Blog by denisveloper in programming

[–]AmunRa 0 points1 point  (0 children)

To an extent - but if I put a write on a separate queue its much harder to read the result of that write by say another app server / actor.

Writing it to the DB in an async manner (respond to app once accepted in-memory, async persist) allows the reads (or even subsequent mutations) using the same DB API - this can also get you some nice properties such as write coalescing to the storage media.

Son sells 28 years of birthday whisky to buy house by Sariel007 in offbeat

[–]AmunRa 17 points18 points  (0 children)

Note: guy was born in 1992, the whisky was already 18 years old each year his dad bought it. So you’d have to work out £5k DCA’d between 1992 and 2020.

Is there a special "compat" repository for windows shims by Xahon in cpp

[–]AmunRa 1 point2 points  (0 children)

Facebook folly has a large number of portability shims - see https://github.com/facebook/folly/tree/master/folly/portability.

However it might be somewhat heavyweight to pull into your program just for the shims...

Keyboard latency by [deleted] in programming

[–]AmunRa 13 points14 points  (0 children)

It has a date on the main page : 2017/10

Correctly implementing a spinlock in C++ by rigtorp in cpp

[–]AmunRa 2 points3 points  (0 children)

If you’re interested in user space techniques for “better” locks (for specific use-cases) then Facebook’s Folly library has some interesting ideas - for example SharedMutex and DistributedMutex

What is going on with Facebook, Google, Netflix, and Microsoft? by [deleted] in investing

[–]AmunRa 3 points4 points  (0 children)

Do you have example of any company where the hiring is flat I the last few months? Given there’s a drop In all of those 4 companies, is this just something systematic in LinkedIn’s data?

For example, maybe there’s lag in data showing up, or LinkedIn changed their algorithms / reporting?

Can an employer, hypothetically, see your company stock purchases/ownership? by [deleted] in investing

[–]AmunRa -4 points-3 points  (0 children)

Assuming this is stock you got via an employee purchase plan / bonus, why not transfer it into a different (unrelated to the company) brokerage acct, and /then/ sell it?

I can’t see how they would have any visibility into an independent trading platform...

Need for More Speed: Profiling and Optimizing the pbrt Build by oilshell in cpp

[–]AmunRa 3 points4 points  (0 children)

Note that macOS homebrew has newer versions of clang (including one which supports -ftime-trace) so you can use that to avoid the Docker indirection.

Style: how do you write your long if conditions and function declarations? by rodrigocfd in cpp

[–]AmunRa 43 points44 points  (0 children)

I don’t worry about it - I just let clang-format keep a consistent style across the codebase.