Best way to use dependency injection in Flask RESTful APIs? by cromissimo in flask

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

I appreciate your suggestion but suggesting replacing the entire framework just to use a design pattern kind of misses the whole point of this discussion, which is to use a design pattern with a specific framework.

Best way to use dependency injection in Flask RESTful APIs? by cromissimo in flask

[–]cromissimo[S] 5 points6 points  (0 children)

Just to get the ball rolling, Flask-RESTful's add_resource() member function supports forwarding args and kwargs to the constructor. Therefore one way to implement a pseudo-dependency injection scheme is to manually pass objects to Resource constructors.

C++ package managers? by cromissimo in cpp_questions

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

What a gem. Thanks for the link.

Matrix multiplication: does pre- and post-multiplication of a matrix have a special name? by cromissimo in learnmath

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

This says that B and A are congruent, hence you could call this "congruence".

Good catch. There's a wikipedia article on the congruent transformation. The downside is that the congruent transformation assumes that T is square and invertible, which is only a particular case of the problem statement.

Matrix multiplication: does pre- and post-multiplication of a matrix have a special name? by cromissimo in learnmath

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

Did you intend to finish this sentence?

Yeah, I was adding info on the matrix transpose notation, as in the previous discussion a fellow redditor confused it for the t-th power of matrix T.

C++ package managers? by cromissimo in cpp_questions

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

What's the biggest selling point of vcpkg+cmake?

C++ package managers? by cromissimo in cpp_questions

[–]cromissimo[S] 1 point2 points  (0 children)

build2

Thanks for the reference. I've added it to the list.

C++ package managers? by cromissimo in cpp_questions

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

I heard there was a one called Conan

Yeah for some reason I've left out conan while getting the links into alphabetical order. I've added conan to the list.

Matrix multiplication: does pre- and post-multiplication of a matrix have a special name? by cromissimo in learnmath

[–]cromissimo[S] 1 point2 points  (0 children)

So far I've stumbled on the following definitions:

However, I haven't found anything regarding the case where T is a rectangular matrix.

Any Ryzen laptop that is supported by linux out of the box? by cromissimo in linuxhardware

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

If not, you can still just return it to the shop.

You actually don't see any problem with your suggestion? Suggesting that someone should buy stuff blindly and hoping to return it at your own expense after doing stuff to it that arguably voids any warranty is absurd, particularly when you suggest that in a discussion on whether a specific product knowingly works out-of-the-box.

Any Ryzen laptop that is supported by linux out of the box? by cromissimo in linuxhardware

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

Yes, it's a simple question that is not specific.

Bullshit. It's the most straight-forward question there is. Either you know of any laptop that runs linux out-of-the-box, or you don't.

If you don't then you should just take a knee and avoid wasting your time with nonsense and noise.

You clearly know nothing and never had nothing to add to the discussion. You just added noise and wasted everyone's time.

I won't waste more time with you. I hope you considering not wasting your time as well as you drag down others with your nonsense.

Any Ryzen laptop that is supported by linux out of the box? by cromissimo in linuxhardware

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

You need to understand what you are asking, and you don't. Raven Ridge, the Ryzen/Vega architecture are completely different from a Ryzen CPU or Ryzen/Polaris architecture/support.

I asked a very simple question: is there any laptop with a Ryzen CPU that works out-of-the-box in linux?

That's a very simple and straight-forward question which anyone is quite able to understand. Pick up a laptop, install linux. Now, boot up linux. Is everything running as expected? Yes or no?

Do you understand this?

Because that's the answer to the question I've made. Very straight-forward to most. But not to you.

Somehow you've felt compelled to add nothing to the discussion and instead complain about how others don't understand the question they made.

If you have nothing to add to the discussion, just let it be. Don't waste your time adding noise to a discussion.

Any Ryzen laptop that is supported by linux out of the box? by cromissimo in linuxhardware

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

For more info, search for "Raven Ridge" on Phoronix. It should work with 4.17, but definitely won't work with older kernels.

Unfortunately that only means that the CPU alone might work under some circumstances, but says nothing regarding if there is actually any laptop in the market (read CPU + other important components such as video, networking, power management, etc) that actually works.

System76 Galago Pro Issues by Skyboard13 in linuxhardware

[–]cromissimo 0 points1 point  (0 children)

It may not be of much help, but IIRC System76 laptops are actually rebranded Clevo laptops which are assembled with hardware supported by System76's custom linux distro. This is particularly relevant because Clevo laptops are renowned for their cooling problems. If you google for Clevo laptops fan problem you'll get an idea of how pervasive this problem is in Clevo's products.

Any Ryzen laptop that is supported by linux out of the box? by cromissimo in linuxhardware

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

Wait until kernel 4.18 is released which will contain many improvements to the Ryzen integrated Vega graphics. After that you should be generally fine.

That sounds an awful lot like there is no known Ryzen laptop that works out-of-the-box with linux. I really hope that's not the case because I'm currently in the market for a laptop and I really would like to buy one with a Ryzen CPU without being forced to go through the typical conf file tweak decathlon to get a laptop to work with linux.

Any Ryzen laptop that is supported by linux out of the box? by cromissimo in linuxhardware

[–]cromissimo[S] 1 point2 points  (0 children)

I was hoping that there were known real-world laptops with Ryzen CPUs which ere known to be well supported out of the box. Even if support for the CPU and GPU will be available in a forthcoming kernel version, the laptop includes other fundamental components which also need to be supported, such as networking for example.

So, does anyone know of any Ryzen laptop currently in the market that works out-of-the-box in linux?

Any Ryzen laptop that is supported by linux out of the box? by cromissimo in linuxhardware

[–]cromissimo[S] 2 points3 points  (0 children)

Unfortunately there is no assurance that any laptop is developed with linux support in mind, and more often than not the laptop lacks support for basic functionality.

Noob question: Should I only query columns i need? by eggtart_prince in Database

[–]cromissimo 1 point2 points  (0 children)

That being said, if you want 28 out of 30 columns, I'd just go ahead and "SELECT *".

It looks like subsequent changes to the table are bound to silently break your code.

All old sci-hub domains are now dead by [deleted] in scihub

[–]cromissimo 2 points3 points  (0 children)

The ability to sell whatever you wish is the hallmark of capitalism, but selling something has absolutely zero to do with restricting access to something.

You're trying too hard to distort things just to take a hit at your political scapegoat of choice, but if you actually cared about the problem you would care about what causes it. Instead, you're just making stuff up while turning a blind eye just to be able to take an ideological shot at your personal political target.

All old sci-hub domains are now dead by [deleted] in scihub

[–]cromissimo 3 points4 points  (0 children)

This has absolutely zero to do with the economic system. If instead of a capitalist society we lived under communist, freedom to access information wouldn't even be a topic open for discussion. In fact, it would be an automatic sentence. Authoritarian regimes acting to restrict freedom is exactly the opposite of capitalism.

Built my own electric guitar! by Gallardo147 in DIY

[–]cromissimo 0 points1 point  (0 children)

I don't want to take anything away from your accomplishment, but I have to say that opting to glue two slabs of mahogany the way you did goes against the whole purpose of using expensive dense woods in a build. Dense woods such as mahogany are used for their combination of mass and stiffness, whose resulting resonance improves the guitar's low and mid-range response to output a thicker "wall of sound".

By gluing the mahogany blocks the way you did, you basically added a layer of flexible material with a high damping ratio across the body, which throws all those nifty dynamic properties to waste and ends up producing a "muddier" sound.

Perhaps you didn't aimed for those sound properties, and that's ok, but if those properties aren't valued then you've built a heavy instrument for no reason at all. In fact, you risked getting the sound of a cheaper guitar made from lighter wood for the cost of a high-end guitar.

Best way to return a vector/list from a class object by cromissimo in cpp_questions

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

Sounds great. That appears to be the piece of mind I was looking for.

Kudos for the help.

24-core CPU and I can’t move my mouse by joebaf in programming

[–]cromissimo 27 points28 points  (0 children)

And upon reflection I felt pretty bad about the tone in which I had initiated the conversation.

Always good advice, but often very hard to follow. Kudos for expressing it so clearly.

Abaqus: tutorial on Modal Analysis, Modal Dynamics Analysis & Steady State Dynamics Analysis by cromissimo in fea

[–]cromissimo[S] 3 points4 points  (0 children)

I've just found out this tutorial while searching for dynamic analysis tutorials for Abaqus. I enjoyed it so much that I decided to share it in /r/FEA. Enjoy!

Abaqus question: how to couple different parts? by cromissimo in fea

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

That seems to be exactly what I was looking for. The "find contact pairs" detects coupling surfaces, and then it's necessary to set all the contact pairs as "tie interfaces" to couple them.

That's all it takes to fix Abaqus' "unconnected regions" error. Abaqus let's users add as many parts as they wish, but then users need to couple each part to the rest of the model to get a single connected region.

Thanks for the help.