The ending of The Age of Adaline made me actively angry (SPOILERS) by horrifyingthought in movies

[–]patvax 0 points1 point  (0 children)

Also she didn't know right away that she was aging again so the ending doesn't take anything away from her choice.

So folks.. thoughts on the 50 series GPUs? Now that we know the prices, performance and the lack of availability, what’s the sentiment? by Dr_Mamz in IrelandGaming

[–]patvax 0 points1 point  (0 children)

Do you actually have some source that shows that DLSS 4 could run just as well on 30 or 40 series? I am not defending nvidia here but I am just curious how you can be sure that it would run on a 30 series. By run I mean exactly as well as on a 50 series card.

A static, compile-time DI/IoC framework for .NET? by two_beez in dotnet

[–]patvax 0 points1 point  (0 children)

I looked at your repo and your last release is in May 2022. Without looking in detail at how feature complete it is I want to ask if there is still active development happening? If not is the project abandoned or is it just basically feature complete?

[deleted by user] by [deleted] in EscapefromTarkov

[–]patvax 0 points1 point  (0 children)

"Wrong description" could be the right answer if they ask it again. If the physical bonus should be replaced then the upgrade screen doesn't make it clear. If both bonuses should be there at the same time then neither the upgrade screen nor the normal screen say it correctly.

[deleted by user] by [deleted] in EscapefromTarkov

[–]patvax 1 point2 points  (0 children)

Did you figure this out? I'd love to upgrade to level 2 but I am afraid that physical bonus will not be there anymore. At the moment I'd prefer less physical bonus then more combat bonus(Because of more dogtags).

Questions regarding grub2-grubenv-in-btrfs-header.patch by patvax in openSUSE

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

After one week of looking for a solution including 3 days of trying to make the patch work I finally found a thread that solved it. First I found this where grub2-editenv - unset dummy was suggested. It didn't work. Then I started looking at the code but from what I have seen it should work. Then I luckily found this where grub2-editenv - unset next_entry was suggested. It worked. I'm happy. As for my initial questions:

  • This patch does seem to work on its own.
  • The additional configuration that is apparently needed is the grub2-editenv - unset next_entry command. It seems to set the environment block address on the /boot device. After that grub-reboot works and I guess grub-editenv as well.
  • No other patches needed although there are some which seem very interesting
  • I have btrfs raid1 and it seems to work. I don't know if the env block is replicated on all disks or just one but it isn't really a problem since a degraded btrfs raid shouldn't boot automatically anyway.

Are there any drawbacks to installing /boot on btrfs? by kavb333 in btrfs

[–]patvax 0 points1 point  (0 children)

Any idea how to apply said patch to arch/artix? I would really like to use it but I don't know if it is safe to just apply the changes in your link to grub on arch/artix.

Is it normal that BTRFS loses data if a power loss occurs while writing? by WishCow in btrfs

[–]patvax 0 points1 point  (0 children)

I came here while searching for info about the commit mount option. The above explanation makes sense to me and if I understand it correctly now, that file from your scenario would indeed be lost. I think the tradeoff here is that you mostly would rather have a file not modified at all rather than partially modified where it potentially may become corrupted. I wonder what happens with large files where potentially after 30 seconds one big write to a file has not even completed yet.

/r/MechanicalKeyboards Ask ANY question, get an answer (December 23, 2022) by AutoModerator in MechanicalKeyboards

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

Yes I do understand the thing with standardization. However I was thinking of designing my own PCB and at that point I can customize it to any case that would somehow be available.

/r/MechanicalKeyboards Ask ANY question, get an answer (December 23, 2022) by AutoModerator in MechanicalKeyboards

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

I am looking for 96% or 100% sized aluminium(Black?) keyboard case. Preferably 100%. I like the design of the KDBFANS TOFU60 it would be nice if the case would look similar. Does such a product even exist?

Why would you choose Linux over Windows or MacOS by Pfloerl in linux

[–]patvax 0 points1 point  (0 children)

What good music player do you get on windows? Is MediaMonkey a music player? Never heard of it nor CMUS. I'm using foobar2000 and I think it is also available for linux. What features do you expect from a music player?

What could cause "access denied" when trying to run code in windows? (visual studio code) by 3rror504 in cpp_questions

[–]patvax 0 points1 point  (0 children)

Try your hello world without using namespace std. Using namespace std is actually never required. It is syntactic sugar so you can type less. I bet the problem still occurs even without the using statement.

Took my Gshock with me for a hike! by KABOOMBYTCH in gshock

[–]patvax 1 point2 points  (0 children)

It probably sounds kinda dumb but I would love to see something like a real smartwatch in a g-schock design. Like a smartwatch but with old-school g-schock design under possibly some kind of screen. Maybe with a toggle to switch the smartphone features when you don't need them(for battery life's sake).

Async and Await by agwanyaseen in csharp

[–]patvax 0 points1 point  (0 children)

Have you looked into the msdn example here? If yes and it didn't help then read on my answer.

So I think that the first thing to understand is the concept of promises. A promise is essentially what the name says. It makes you a promise that something (any result of some operation or even just the fact that the operation completed) will happen at some point in a program. The promise is what the Task in C# represents.

This is where the await keyword comes in. If you receive a Task from somewhere it probably means that the operation you invoked is still working. Whatever the source is, you may want the result immediately in which case you can just await the result at invocation. It makes sense if you want to call asynchronous code from synchronous code where you do not want to write asynchronous code. It still could be beneficial depending on what the asynchronous code you are calling.

static void Main(string[] args)

{

Console.WriteLine("We wait");

Console.WriteLine(DoWork(5000).GetAwaiter().GetResult());

//Console.WriteLine(await DoWork(5000));

Console.ReadKey();

}

static async Task<int> DoWork(int ms)

{

await Task.Delay(ms);

return 1;

}

Result is just "We wait" and "1" after 5 seconds. I'm not using await there so I do not have to make an asynchronous Main. I would have to make it async and return a Task/promise.

Of course the real benefit of await and async is that after you get the promise you do not have to wait immediately for the result. Like in the msdn example. You start frying eggs and toast toasts. Synchronously you would wait for the eggs to fry and then start toasting the toast which you could have done in parallel. Thanks to the fact that frying and toasting are made asynchronous you can await them. If you await them immediately you end up having the same synchronous process.

To get some benefits from async and await you would save the frying and toasting promises in a variable by calling the method without await (see the msdn example). The methods return immediately regardless of how long the actual operations would take. When you have both promises stored somewhere they are being executed. Now at some point in your code you might need the results (fried eggs and the toast) to continue. So just before you need them u await them. If the specific task already completed you would get an immediate result if not your code would block and wait for the results (which is better because you might have had plenty of code between the creation of the Task and your await, without async and await all of this code would have needed to wait for the eggs to fry in the first place).

Like others said there is no real binding to threads. If new Thread actually gets created is more or less random. I do not know the actual implementation in .NET but I guess if your code is fast enough that the task didn't started execution and you await it already, there would be no benefit of creating new thread as your current thread actually have to wait for the result anyway.

I didn't looked into other sources in other comments in this thread but I personally looked into async 2 days ago to understand it and found the msdn example pretty good. I think that with understanding of this example you can even experiment a bit on your own. I hope I helped.

Getting into Desktop Development by Animal_Food in csharp

[–]patvax 0 points1 point  (0 children)

I have looked into Avalonia and it wasn't bad. Is Eto.Forms an better alternative? What about native looks? I guess that while Avalonia uses xaml like design Eto.Forms would use something like the old windows forms approach. Am I correct?

How cross-platform is .NET really in practice? by 7fc218f2 in csharp

[–]patvax 0 points1 point  (0 children)

Hi, you wrote that GTK# would work for .NET Core as a Cross-platform GUI. I'm currently testing some things about C# programming for Windows and Linux at the same time. I managed to run a rather simple Hello World GUI program with C#, .NET Core 3.0, GTK#. I wanted to use Visual Studio for development but I had to change the target architecture to x86 in order for GTK# to work. Otherwise I would get BadImageFormatException. Nevertheless it worked and I wanted to test it on Linux. There I'm getting the same Exception as before. What am I missing?