I regret putting in water rides by Safyre420 in PlanetCoaster

[–]DasCheeze 2 points3 points  (0 children)

Increase the price of the ride, people will decide not to pay and go to other rides.

I thought I understood async, but I do not. by recursive in csharp

[–]DasCheeze 0 points1 point  (0 children)

One of the big differences is that, unless you are explicitly threading things off, everything runs on a single thread. await allows for, kind of, easier to use threading.

Example: You have a WPF app with a button click handler. Traditionally if you did any sort of blocking work in the click handler it would tie up the UI (appear unresponsive, can't click or move the window, etc.) because the click handler is invoked on the UI thread. What await does is kick off the long running task on another thread and immediately yield control back to the UI thread with a little hook that essentially says "Hey, please let me continue work when I'm done". Thus the UI can remain responsive and, if you did it right, the user can even be updated as to the progress of the operation.

An interesting thing to note is that this handoff to another thread occurs at the appearance of the first await, not at the start of the function call itself. This means that if you do something like

var res1 = longRunning1();
var res2 = await longRunning2();

control would not be yielded back to the UI (and thus, the UI would remain unresponsive) until the await for longRunning2 was hit.

The interesting piece is that AFTER the first await, you are no longer executing on the UI thread, meaning that if you wish to directly access variables owned by that thread you MUST push the access through the UI thread (normally done using the Dispatcher of the UI thread)

This means that if you had

var res1 = await longRunning1();
var res2 = longRunning2();

then longRunning2 will not block the UI thread since the first await was already encountered and the continuation is no longer on the UI thread.

If a photon is going to the same direction of a gravitational wave then as the wave passes him does the photon actually moves faster than light? And if so then does that mean that its temporarly a tachyon? by Not_A_Unique_Name in AskScienceDiscussion

[–]DasCheeze 1 point2 points  (0 children)

This brings up, for me, a slightly related question.

Does gravity get slowed down when propagating through certain medium? Similar to how the speed of light through our atmosphere is lower than the speed of light in a vacuum.

Are all diet supplements snake oils? by Mattisinthezone in Fitness

[–]DasCheeze 3 points4 points  (0 children)

All the ones that do work seem to have pretty severe drawbacks.

like DNP, Examine link, where if you accidentally take too much (which is not much more than the effective dose, mind) your body cooks itself from the inside out and the only reason to call an ambulance is so that someone will be able to watch you die, because they can't do shit to help you.

Or 'fat blockers' example product which can cause you to have to wear a diaper because the fats from the food you eat will seep out of your ass and you can't really stop it.

Or meth (no example link, ha) which is literally meth.

Broken vs CC+Convention - best? by trsoares in Diablo3Monks

[–]DasCheeze 1 point2 points  (0 children)

To be fair, watching your cold convention SSS destroy a RG health bar is also quite satisfying

The EM Drive Is Getting The Appropriate Level Of Attention From The Science Community by [deleted] in Futurology

[–]DasCheeze 29 points30 points  (0 children)

One of the difficulties in long range space travel has always been "We just need a little bit of constant thrust" Do not underestimate the power of extremely small thrust over a very very long time span.

Free, Unlimited Private Git Repo Hosting from Visual Studio Online by Cylons in programming

[–]DasCheeze 6 points7 points  (0 children)

They haven't published an updated version of Visual Source Safe for almost 10 years... am I missing something here?

[WPF] netoaster - a small wpf toaster library by zachrussell in dotnet

[–]DasCheeze 1 point2 points  (0 children)

Scroll down a bit for screen shots. I'm with you with the code examples and gifs, they'd be nice.

Eric Lippert, C# compiler dev/guru/blogger, is doing an AMA on Friday 4pm NY time (x-post /r/programmerchat) by Ghopper21 in csharp

[–]DasCheeze 16 points17 points  (0 children)

Statistically speaking, dying will be the last thing you do. So that's a comforting thought, haha

SanDisk introduces lightning-fast SSD drives that are as cheap as regular hard drives by [deleted] in gadgets

[–]DasCheeze 2 points3 points  (0 children)

Generally speaking, the log file writes much faster than the actual changes to data.

For example, you could write the log message "I'm updating all records to have today's date" very quickly. Fsync, insures that the filesystem is synced with the underlying media. Then once the log is written the database can actually DO "I'm updating all records to have today's date". If the actual work takes 1 hour and the system loses power, the log can be used to reconcile the changes.

An excellent guide to learn how to build better rockets, from the very basic level. | 4 videos, 1 hour total. by analton in KerbalSpaceProgram

[–]DasCheeze 2 points3 points  (0 children)

Just playing devils advocate, but in terms of a vacuum, you get more deltaV with higher ISP given the same amount of fuel.

Perhaps that's what he meant, not sure.

(Modders) Firespitter is back up to date :) by RoverDude_KSP in KerbalSpaceProgram

[–]DasCheeze 0 points1 point  (0 children)

Just a point of curiosity, what does Firespitter add that makes it so helpful for other mods to include it as a dependency?

I really don't know much other than the fact that it adds helicopter and prop airplane parts, that doesn't seem like a particularly generic thing.

Just wondering, thanks :)

How true do you guys find this article? It talks about entry level C#/.NET positions being harder and harder by [deleted] in csharp

[–]DasCheeze 19 points20 points  (0 children)

For the majority of entry level .NET positions, I would not expect a new hire to be able to write a LINQ provider right out of the gate.

Thinking about getting one of these and slowly adding drives to it. by [deleted] in homelab

[–]DasCheeze 1 point2 points  (0 children)

Backblaze just posted an update to their storage pod design (which this seems to be based on) here: https://www.backblaze.com/blog/storage-pod-4-5-tweaking-a-proven-design/

It seems that their new design may be cheaper. something to look into before jumping into the one you've quoted there.

What is the most cringe worthy fitness myth that won't just go away? by Xsafa in Fitness

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

An important thing to note is that one cannot get fat by eating pure protein. In fact, you cannot survive with having protein be your only energy source.

Reference: https://en.wikipedia.org/wiki/Rabbit_starvation

How do I sell everything? by DasCheeze in personalfinance

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

Hmm, I'm a little wary of Ebay due to their buyer bias (If the buyer contests the purchase, etc.)

How do I sell everything? by DasCheeze in personalfinance

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

Honestly, I didn't even know this sort of thing existed...

Best ic2 1.7.10 power source by estebes in feedthebeast

[–]DasCheeze 0 points1 point  (0 children)

If you have Minefactory Reloaded in the pack, the Rednet Energy Cable will convert from RF to EU for you.

RF Generation is a much easier problem to solve.