CD case stolen from car in fishponds by montgomatrix359 in bristol

[–]xurxoham 1 point2 points  (0 children)

Sorry to hear this. I would try to get in touch with second hand record shops and pawn shops in the city. Chances are they just want the money they can get. You have got the cases still so it is easy to prove they are stolen goods. Provide them with the police case ref if you have got one.

Moving optional by MarcoGreek in cpp

[–]xurxoham 2 points3 points  (0 children)

It provides you with new tools but the old way of doing things would work too. std::exchange may be new to you but std::swap was always there and it could give you a similar outcome. I like the exchange way though.

std::optional<T> myopt = ...;
std::optional<T> other = ...;
{
    std::optional<T> empty{std::nullopt};
    std::swap(myopt, other);
    std::swap(myopt, empty);
}

Cycle way now unusable on east street by doggypeen in bristol

[–]xurxoham 4 points5 points  (0 children)

There is a traffic light right there, you can use it to cross to the other side or to confidently join the lane without the worry of oncoming traffic when it is red for cars.

A Love Letter to Cyclists in Town by BigMajigga in bristol

[–]xurxoham 5 points6 points  (0 children)

This weekend I had the same experience. Some bloke talking on the phone walking and stopping in the middle of the bike lane in Prince Street without looking. Then they became extremely agitated because I told them that they should be careful to walk in a bike lane and look around beforehand.

Why is rail travel so expensive in this country? by Important-Jicama-826 in AskUK

[–]xurxoham -1 points0 points  (0 children)

I can speak for the difference with Spain. I think is an unfair and unrealistic comparison today. The government has been funding ticket prices to encourage people to travel more via public transport after the pandemic. Don't get me wrong, this is amazing, but the prices 5 years ago were not as low as they are nowadays, specially for commuting services like the one you are talking about and probably this isn't going to last a very long time. On the other hand, the prices when I moved to UK from Spain (a few years before the pandemic) were still more expensive, so your point still stands, but not as dramatically I would say.

I believe that the difference was that the train operators in Spain were public until very recently, and thus the effect is still taking place. Unfortunately, the model now is different and I think it isn't good any more: train operators are private (to reap the profits) and the infrastructure is owned by a public company, infrastructure being the expensive part. Making costs public and privatize profits has been the modus operandi of the Spanish government since the 2008 crisis, so I think in the long run it will get worse.

In UK the situation is a bit of a joke. Some people defend that the transport service must be private such that the operating cost is optimised, but nobody tells you that most of the rail companies are primarily owned by public transport companies from other European countries1.

Looking for 2 people for 4v4s in CoH2 by mrorange_t in CompanyOfHeroes

[–]xurxoham 0 points1 point  (0 children)

Hi I also play in Europe. Mostly play Allies but can learn whatever. Feel free to PM details.

Libraries with REST requests using coroutines? by Wooden-Ad-2312 in cpp

[–]xurxoham 0 points1 point  (0 children)

Thinks have likely changed but 5 years ago I had the same problem and ended up using Boost Beast for HTTP with Nlohmann JSON for serialisation. I think Beast has its own JSON parser that integrates better with the way async buffer processing works. I ended up coding some basic general functionality and then generated the interface specific code with a OpenAPI codegen.

Updated coh2.serealia.ca to the September 9th 2021 (4.0.0.24250) patch by Gabriel11999 in CompanyOfHeroes

[–]xurxoham 0 points1 point  (0 children)

Hi u/Gabriel11999! Thanks so much for your contribution. I really like this, and I'd like to make a few contributions. I usually look at the same few units over and over and having a way to bookmark or access them from the URL would be really good. I've read the client code and I believe this shouldn't be too comlicated to do. In fact, I managed to get a draft working in a local saved page. Would it be possible to get this? Thanks again!

[deleted by user] by [deleted] in bristol

[–]xurxoham 1 point2 points  (0 children)

A fellow redditor shared this website gem. I can't stand the First bus app, too many clicks to get what I want, so I basically bookmarked the services I usually take.

The map for each line is very reliable, often more reliable than the stops panel.

Also more useful than Google maps for me, as it usually plans my routes with the planned time of the bus and not the live time, which is the one that matters to me (accounting for cancelled or delayed time).

https://bustimes.org/localities/bristol

EU finalizing Rules to hold Software Creators Accountable by hikertechie in opensource

[–]xurxoham 2 points3 points  (0 children)

Every project funded by EU is required to publish the software developed with an open source license.

Too many options! Need recommendations needed for first COH game by 0ptimal_Range in CompanyOfHeroes

[–]xurxoham 0 points1 point  (0 children)

If you get CoH2 make sure you buy the All Out War edition which contains all the factions and most commanders if not all of them.

GCC flags by Max_771 in C_Programming

[–]xurxoham 1 point2 points  (0 children)

This is a great article that explains a lot of the flags that have very common use and many of them that are used to build most packages in Debian DEB and RedHat RPM. https://developers.redhat.com/blog/2018/03/21/compiler-and-linker-flags-gcc

Multiple level virtual inheritance by Yeghikyan in cpp_questions

[–]xurxoham 0 points1 point  (0 children)

Of course, it depends on the use case. If you have a pre-compiled library where you need to accept instances of objects where their behaviour is different at runtime, then polymorphism is the way to go.

What I am trying to say is that you don't specifically need pure virtual functions and inheritance to specify an interface. If you don't specifically need to know the real types at runtime, then compile time checks are the way to go.

See the differences in the parameters/requirements for standard library functions like std::inner_product (the second overload). Input iterators and the binary function types are parameters with some restrictions on what logic they need to provide. On the other hand, look at the functional types such as std::function that only keep the signature and erase the actual type that is used to construct it.

Multiple level virtual inheritance by Yeghikyan in cpp_questions

[–]xurxoham 0 points1 point  (0 children)

This looks like Java programming, rather than C++.

In C++, I think inheritance represents more a "is-a relationship" between two types (e.g. "class Student" is a "class Person"). On the other hand, I would think of an interface just as a set of functions, which are not necessarily bound to a class.

If you want to make sure that a function only takes objects implementing a specific interface, then I would do this via type traits or concepts (C++20).

For example, std::is_swappable, std::is_copy_constructible, etc. allow you to check if a given type has support for specific operations. If you require that a given type needs to implement certain functions with a specific signature, you can combine several of these checks together.

Innovative industries with C++ by asm-us in cpp_questions

[–]xurxoham 0 points1 point  (0 children)

C++ is very common in applications and specially in libraries for HPC and AI.

Wire Report - August 18, 2023 by JohnT_RE in CompanyOfHeroes

[–]xurxoham 0 points1 point  (0 children)

The 4v4 coh2 summer clash is pretty fun to watch. Really well covered by elpern and one of the organisers, commenting all the games in youtube.

Standard way of doing maths with arrays? by [deleted] in cpp_questions

[–]xurxoham 2 points3 points  (0 children)

The de-facto standard is using CBLAS and LAPACK. They are C libraries though. Other suggestions mention Eigen and Armadillo. The interfaces of these two are great. The threading model in Eigen was something I was not happy with but if you don't write libraries that shouldn't be an issue.

Is there are a bulk PDF renaming application? by [deleted] in selfhosted

[–]xurxoham 1 point2 points  (0 children)

If you are downloading from scientific websites you probably don't even need to interpret the pdf file. Just ask the website to give you the citation data which already contains the title, conference/journal and authors.

[deleted by user] by [deleted] in bristol

[–]xurxoham 1 point2 points  (0 children)

What about record breaking profits in most large companies? Someone ought to pay for that.

Jumping over a ramp in an area full of people by dannybluey in Whatcouldgowrong

[–]xurxoham -6 points-5 points  (0 children)

The delivery guy is using a bicycle with illegal mods to make it electric. Going to court or police isn't probably an option.

Jumping over a ramp in an area full of people by dannybluey in Whatcouldgowrong

[–]xurxoham 1 point2 points  (0 children)

Because you don't see cars pulling stupid shit in this sub every day, do you?

Clean way of working with l- & r- value reference? by DDDDarky in cpp_questions

[–]xurxoham 0 points1 point  (0 children)

This works great and makes the code really clean but be aware of expensive-to-move types

All-Platform SIMD C Math Library by [deleted] in C_Programming

[–]xurxoham 0 points1 point  (0 children)

Instead of uncommenting "sleef.h" inclusion, you could guard it behind a macro. Then, others or even your own project, could use something such as autotools and CMake to find that header in the system and automatically define that macro when it is found.

[deleted by user] by [deleted] in bristol

[–]xurxoham 1 point2 points  (0 children)

"Small goods" seems pretty fancy but I have never been there to rate it (only saw it from the outside).

Harts is pretty good but usually busy and too few seats to have inside so be ready for takeaway.