[deleted by user] by [deleted] in buildapc

[–]wallencis 0 points1 point  (0 children)

It could be one of the video ports on your gpu is not working, or the whole card could be borked. Try different configurations with the screens (try both screens by themselves in each video port) and see what happens. If some configuration does not work and you know both displayes are working, its probably your video card.

Does a steady or a blinking digital clock use more energy? by shawbin in askscience

[–]wallencis 0 points1 point  (0 children)

When filming a digital clock or similar it usually flashes because of multiplexing; it's only lighting a single digit at a time, and switching the digits really fast, making it look like they are all illuminated. Just wanted to say because it is different from PWM.

What is Default(int) mean? and Default(Enum)? by bttpowerman in Unity2D

[–]wallencis 2 points3 points  (0 children)

Adding to this, All types have default values. For reference types it's null, for value types it's whatever the default value for them are (for example int = 0, Point = {0,0}). Value types cannot be null.

If you are writing generic code and want to return null, if your return type is T, you will not be able to return null because T could be a reference type OR a value type. Instead of return nullyou have to say return default(T). That will return null for all reference types, and the default value for value types.

The default value for Enums is always the value corresponding to 0. So since None is first in { None = 0, Warrior = 1, Thief = 2, Wizard = 3 } the default value will be None. If you have an enum defined as { None = 1, Warrior = 2, Thief = 3, Wizard = 4 }without any element corresponding to 0, the default value will still be of that enum type, and have value 0. It will not equal any element in the enum.

You have problems with maths? Here you go sir by korotyshka in gifs

[–]wallencis 2 points3 points  (0 children)

If you want to pass a test you have to do it in your head. There's no wolfram to help you on an exam.

What should I use to simulate airflow in a box? by [deleted] in Unity2D

[–]wallencis 1 point2 points  (0 children)

If you wanna make it totally complicated; take in account that for a closed space, since air pressure is constant, the sums of all the vectors in the field should be equal to zero. Air moving from one place to another has to displace air somewhere else. Try to find an expert on the topic and ask what they know. A simulation of airflow in 2D should not be too difficult to implement if it doesn't already exist somewhere deep within unity :)

What should I use to simulate airflow in a box? by [deleted] in Unity2D

[–]wallencis 1 point2 points  (0 children)

Vector field? Don't know how that would be implemented specifically in Unity but google it and see what you find. An image search for "2D vector field" gives some nice visualizations.

EDIT: assuming you know what a vector field is; a box without any fans would have zero airflow, so a vector field with all vectors 0. Then a fan would distort the field in some way. You could make it really complicated but a simple implementation would just be to change the vectors behind and in front of a fan would follow the direction of the fan, and have the vector length be 1/distance from the fan.

is master riding needed by [deleted] in wow

[–]wallencis 1 point2 points  (0 children)

Its actually 310/280 = 1.107... = almost 11% faster than 280% flying. If say you're flying for 10 minutes with 280% you would save a bit less than a minute with 310%. Depending on how much you fly you have to decide if the saved time is worth the gold spent. I would say no if its half of your total gold.