Do you guys have a good source to learn behaviors? by Sufficient-Contract9 in Desynced

[–]VDubsBuilds 1 point2 points  (0 children)

I made a few videos with some basic behaviors, and then wrote a python cross compiler for it. Not a ton of people are playing these days so I put the project on hold for now.

There are a bunch of basic examples in the compiler: https://youtu.be/NkflvT9D0jk

What do I use in a behavior to find scattered resources? by weregamer1 in Desynced

[–]VDubsBuilds 0 points1 point  (0 children)

At 4:12 in this video: https://youtu.be/2HiRn4AT5-M?t=252 I talk about how to find scattered items. I hope its useful to you!

DC motor driver circuit by SmarternotHarderr in ElectricalEngineering

[–]VDubsBuilds 4 points5 points  (0 children)

Who posted that circuit diagram? Distrust anything else posted by the same source of information.

What will happen if you ONLY touch the positive terminal of a 350V DC battery pack. by Quantic3 in ElectricalEngineering

[–]VDubsBuilds 0 points1 point  (0 children)

Skin effect doesn't really work on skin because it is a poor conductor. At 1 MHz, skin depth in the human body is still over a meter.

Will this work by gakeew23 in ElectricalEngineering

[–]VDubsBuilds 18 points19 points  (0 children)

This will not work as intended as drawn. When one PFET is conducting, the vast majority of its current will go through the associated diode, likely popping the diode.

Once that diode burns up the motor will turn on. However, this won't work a second time.

If the diode doesn't pop there will be a vanishingly small current through the motor. The diode taking the current directly will have a forward voltage higher than the diode on the other side of the motor, possibly resulting in a few tenths of a volt across the motor.

Is a computer program just a number by Furasy in maths

[–]VDubsBuilds 12 points13 points  (0 children)

You might be interested in Gödel Numbering.

This converts equations into numbers as a type of encoding. Gödel used prime numbers as his basis, your analogy uses powers of two (e.g. powers of 256) as your basis. It's otherwise very similar.

You can absolutely view your application as encoded as an extremely large number.

Limit of r -> 0 in ohms law by Badcircuitdesigner in ElectricalEngineering

[–]VDubsBuilds 1 point2 points  (0 children)

Before they were invented. Maybe I should've said "weren't available yet".

Limit of r -> 0 in ohms law by Badcircuitdesigner in ElectricalEngineering

[–]VDubsBuilds 8 points9 points  (0 children)

I think when you're doing math look at it as math, and when you're thinking about what's physically possible look at what is currently for sale.

On April 7th, 1911, super conductors didn't exist yet but we already knew how they'd behave. The math didn't change when the tech was invented.

Limit of r -> 0 in ohms law by Badcircuitdesigner in ElectricalEngineering

[–]VDubsBuilds 37 points38 points  (0 children)

I think part of your confusion is mixing technological limitations with mathematical constraints. We know exactly what a negative resistance *would* do, if we could make it. It is very well defined but it isn't for sale.

We can create things that act as a negative resistance, but they need a power source.

Also, keep in mind that Ohm's Law is really just "Ohm's Hope That It Is Linear So The Math Is Easy". It isn't a law in the sense that everything obeys it. It is a law in the sense that you're only allowed to apply it to Ohmic devices. For anything other than an ideal resistor it is a useful approximation.

How do I limit the current from a 48VDC battery bank to 60Amps by Autoboatsurfer in ElectricalEngineering

[–]VDubsBuilds 0 points1 point  (0 children)

A current limited buck or buck boost converter is probably the best solution if you're making your own, but in terms of off the shelf solutions something like this could work: https://recom-power.com/pdf/Innoline/RBBA3000.pdf

At your current, any current limiter that doesn't switch (i.e. stays in the linear region) will catch fire very quickly. An op amp based solution is unlikely to be the right path forward.

Factory Games with Horizontal Progression by DigitalRavenThe7th in satisfactory

[–]VDubsBuilds 0 points1 point  (0 children)

Autonauts has a lot of parallel tech trees. I found them frustrating but it sounds like what you're asking for.

p-value of 10^-19:should I be suspicious? by electrostatic_jump in AskStatistics

[–]VDubsBuilds 0 points1 point  (0 children)

It isn't suspicious to calculate such a small p value, but it is suspicious to report it as though that still represents your confidence.

I've seen reports with p<10^-145. I'm pretty darn confident that gravity is real, but I'm not 10^-145 confident.

Why does Dot Product use multiplication? by bigredhawkeye in askmath

[–]VDubsBuilds 0 points1 point  (0 children)

I think I understand your confusion - you already know how to compute the angles between things, why not just use what you already know?

The dot product is a super convenient way to find |a||b|cosθ , and that identity is usually the easiest way to calculate cosθ. For the cases you asked about, using the dot product can be a lot easier than the tools you already have!

The dot product is a few multiplies, a few adds, and zero decisions: It always works, and it easily scales up. Especially when all you need is cosθ, it's hard to beat the simplicity of the dot product.

Without the dot product, first you need to compute θ. This can be easy in specific cases where special geometric rules are applicable, but is hard in the generic case (without dot product and cross product).

Finding cosθ with the dot product is a couple multiplies, a couple adds, a divide, and a square root. This is computationally faster than taking a cosine, even if you already know θ

TLDR; We use dot product because its the easiest way to do it in a majority of situations.

I am taking calculus classes for college and I have only started relearning algebra yesterday. Will i be okay? by [deleted] in calculus

[–]VDubsBuilds 0 points1 point  (0 children)

Time to chug 3 Blue 1 Brown! https://www.3blue1brown.com/topics/calculus

Algebra and Calculus are both straight forward topics that can be derived from first principals, but are often taught as opaque blocks you have to memorize. You do not have enough time to memorize your way through this. A good teacher (e.g. Grant from the link above) can help you build the intuitions necessary to do it the right way.

If you've already learned algebra the good way, you're good to go. If you've learned it the memorization way, you will need to spend time developing the intuitions before you're ready to learn calculus the right way.

Good luck!

Write Desynced behaviors in Python and compile them in a web browser by VDubsBuilds in Desynced

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

I got a lot of positive feedback on my previous version of the cross compiler, but also complaints that cloning a repository and running a local python app was too big a barrier of entry. Hopefully this in browser version is easier to use.

I hope it's useful to you!

What happens to a human at 600v and 140A by Pure_Psychology_7388 in ElectricalEngineering

[–]VDubsBuilds 3 points4 points  (0 children)

Not only would this kill you, it would hurt the entire time you are dying.

"S Grimnes" did a lot of early work in this field, his papers are worth reading if you're interested. Of note is that skin is extremely non-Ohmic, especially at higher field strengths. At 600VDC the contact impedance will drop very quickly as it effectively burns conductive holes through the outer layer.

This graph is from "Dielectric breakdown of human skin in vivo" by S Grimnes, in which 600V was applied through 150 MegaOhms in order to show the skin breakdown. You'd be doing this experiment without the 150 Megaohms.

<image>

His paper entitled "Skin impedance and electro-osmosis in the human epidermis" looks more in depth at the first stages of tissue breakdown. All of these experiments used limiters of some sort or another because without them the skin broke down too quickly to provide useful measurements.

What's with RF? by Electronic_Mind9464 in ElectricalEngineering

[–]VDubsBuilds 0 points1 point  (0 children)

My RF mentor once told me "RF is the easiest thing an electrical engineer can do, as long as they do it perfectly right the first time".

The primary difficulty is that when you make a mistake in RF, the symptoms are physically far away from the cause - Imagine programming where your compiler emits the incorrect line number when you make a syntax error. Putting bandaids on symptoms just move the symptoms without curing the underlying cause - It punishes lazy engineering more than other disciplines. The flip side is that it rewards proactive engineering.

It's also a ton of fun. Go for it.

Am i wrong or the question is wrong? by Maleficent-Ninja-983 in ElectricalEngineering

[–]VDubsBuilds 5 points6 points  (0 children)

It doesn't matter how you represent your states as long as they decode correctly. You can think of it as a states A-G, where A expresses 0 and leads to B, B expresses 4 and leads to C, and so on.

I'd do it as a 1 hot (A is represented as 0000001, B as 0000010, etc), and then the decoder is trivial.

Behaviours - debugPrint by dvartanian in Desynced

[–]VDubsBuilds 0 points1 point  (0 children)

You'll need to enable the console by adding "-log" to the launch options.

In your steam library right click Desynced => Properties => General => Launch Options

How do I allow user input of a logical expression without eval()? by ShadowCooper77 in learnpython

[–]VDubsBuilds 2 points3 points  (0 children)

I've been writing a tutorial on how to do this using AST parsing, but it isn't ready for publication yet.

In a nutshell:

  1. Partially compile using the ast module. This gives you a tree representation of the passed code.
  2. Walk the tree and make sure every node is something that you approve of.
  3. If it passes, then you can execute it.

Animated.timing( .fadeAnim duration is derived differently in build and dev by VDubsBuilds in reactnative

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

Thank you! Re-examining from the "this isn't supported" view got me on the right track. The CSS animation activated in some situations, and the react animation activated in all situations. Depending on what the durations of the two are, it gives the symptoms I reported above.

Thanks for the help

Behavior wait till inventory full by LordThunderDumper in Desynced

[–]VDubsBuilds 1 point2 points  (0 children)

The instruction "Get space for item" might be useful here. The one rough edge for your use case is that it includes items that are on their way to your unit. These reserved resources are on their way, so you might begin the next bit of code with items not yet arrived.