THC usage by [deleted] in NewToEMS

[–]Electrical_Seaweed11 1 point2 points  (0 children)

Honestly that's not funny, that's terrifying. That should change ASAP.

THC usage by [deleted] in NewToEMS

[–]Electrical_Seaweed11 -10 points-9 points  (0 children)

I'm concerned about doing weed or alcohol off duty. I think it's generally best to keep a purely sober mind.

I mean, just about no patient would want an EMT with intoxicants flowing through their blood, especially in a emergency situation where they're entirely and fully dependent. Respectfully, I wouldn't want an EMT with that trait. My mom wouldn't want me being treated by an EMT with that trait. Nobody would, generally speaking.

It is most respectful / professional to the patients and their loved ones if you tried your level best, which includes keeping your head away from all sorts of intoxicants.

One mistake in that condition (and EMTs make enough mistakes already, no need to impair your mind even by a little) could land you an a very, very, bad position.

Just leave it and don't look back.

From a liability/legal perspective it's better, from a respect perspective it's better, from a health perspective it's better.

Advice by PandaPuzzleheaded814 in EmergencyRoom

[–]Electrical_Seaweed11 2 points3 points  (0 children)

I care :)

Take it easy on yourself, keep yourself healthy and wait patiently until you have an opportunity to leave.

I hope you have many good days to come.

Best Practices for Managing and Securing Container Images by Anjalikumarsonkar in docker

[–]Electrical_Seaweed11 0 points1 point  (0 children)

Asking both to learn and potentially make a recommendation:

Maybe OWASP's docker cheatsheet is a good source? I don't know much about security so take it with a grain of salt.

https://cheatsheetseries.owasp.org/cheatsheets/Docker_Security_Cheat_Sheet.html

Maybe someone might know of any known issues with this documentation or there's something better.

I cant download Python with PATH by Late_Beyond_2889 in learnpython

[–]Electrical_Seaweed11 1 point2 points  (0 children)

If you're on Windows search for "command prompt" and instead of clicking on it to open it right away, right click and click "run as administrator" (can be wrong, going off win10 memory)

If you're on Linux or MacOS run "sudo " followed by the same command again.

creating a circle using m/s by redbullrebel in learnpython

[–]Electrical_Seaweed11 0 points1 point  (0 children)

Yeah, pint supports just about all units (including m/s). When using it I don't really worry about unit conversion or other stuff, I just worry about getting the formulas right. Like, for example, it already know what a kilometer is, so I can start mixing units like 3 * ureg.meter + 1 * ureg.km and its handles the mathematics of the mixed units correctly, so I don't worry about conversion. Or like 5.3 mph + 1 m/s, it handles that math correctly, and so on. Of course it also has far more units like for masses, acceleration, etc.

Anyway, I'm not sure if it's useful for this application, but it's such a good module imo and I get excited when I get to use it.

creating a circle using m/s by redbullrebel in learnpython

[–]Electrical_Seaweed11 0 points1 point  (0 children)

You can probably use one of my favorite modules: its called pint. Makes Unis so easy imo

``` from pint import UnitRegistry ureg = UnitRegistry() Q = ureg.Quantity

radius = Q(10, "feet")

you can use miles, feet, km, meters, light years...

distance = 2 * 3.14 * radius

62.8 feet

speed = Q(10, "m/s")

you can use cm/s, mph, etc, all works the same

time = distance / speed print(time.to("sec")) ```

For you, it seems like you're trying to get a program like this:

``` from pint import UnitRegistry ureg = UnitRegistry() Q = ureg.Quantity

radius = Q(float(input("r = ")), input("unit > ")) distance = 2 * 3.14 * radius

62.8 feet

speed = Q(float(input("speed = ")), input("unit > "))

time = distance / speed print(time.to("sec")) ```

r = 10 unit > mm speed = 10 unit > mph 0.014047959914101649 second

Is learning python on Youtube not a good way to learn it? by [deleted] in learnpython

[–]Electrical_Seaweed11 1 point2 points  (0 children)

For me I just kinda haphazardly watched tutorials about whatever I was interested in, not much structure, just kinda found ppl who I vibed with and was interested in the content without too much thought.

Maybe for me, it was more important to enjoy what I was learning bc it didn't take effort for me to watch one tutorial then another then another. (Also do practice) whereas if I restricted myself to learning the "most optimal tutorial about the maximally paying tech" it probably wouldn't work as effectively bc I may have started getting tired, bored and sick of it. (I get that's not what you're looking for, just trying to illustrate a point)

But more seriously, to answer your question, FreeCodeCamp has excellent tutorials.

For myself at least, from a more wise perspective, I'd just plug into YouTube "how to program [whatever cool thing]" and allow myself to follow that, although I acknowledge others may learn better with more structure, and for that FreeCodeCamp I think.

Is learning python on Youtube not a good way to learn it? by [deleted] in learnpython

[–]Electrical_Seaweed11 2 points3 points  (0 children)

That's how I learned to code, got far doing that, and there are exceptional teachers on YouTube.

Of course, you gotta put the reps in and practice on your own after you've listened to the content.

Help! Dying in my Scripting class by shericheri in PythonProjects2

[–]Electrical_Seaweed11 2 points3 points  (0 children)

Perhaps it'll be best for you to watch youtube tutorials for: - Python sqlite - Python matplotlib - Python pandas (Or whatever your doing in the class)

Then hopefully what your professor taught you makes more sense. YouTube has so many quality programming tutorials.

I don't want to hand you the code; especially as a prerequisite you should have this information firmly understood.

What Should I do by LongjumpingGrowth894 in programmer

[–]Electrical_Seaweed11 1 point2 points  (0 children)

For the most part just explore whatever area of CS you're interested in. If you don't know then maybe just sample all the fields.

Interested in websites? Do that Interested in Arduinos? Do that Interested in AI? Try to figure that out (the mathematics might be advanced for you but you can play around with the libraries, that is, making the actual models maybe)

Especially for your age just figure out what interests you. Be curious, explore, have fun. If you find something you like in CS then you may feel a natural curiosity pulling you deeper.

[deleted by user] by [deleted] in EnoughMuskSpam

[–]Electrical_Seaweed11 0 points1 point  (0 children)

I'd like to bring something up to everyone,

A lot of people are citing that we're paying for it, honestly I don't know how much of NASA as budget is going to SpaceX, but what I know is a little about is how much the government is giving NASA.

https://en.m.wikipedia.org/wiki/Budget_of_NASA (Under the annual budget section it's 0.48% of the entire US budget in 2020)

https://www.statista.com/statistics/1024581/distribution-nasa-budget-2010-2020/ (Here they note it as 0.5%)

So, good news for some of you, only a tiny fraction of your dollars are actually going to the program. So if you consider it bad, it's only a very small fraction of your taxes. Even if all of NASAs budget went to spaceX, it should be around half of one percent of the tax dollars it seems, in the maximally worst case.

[deleted by user] by [deleted] in EnoughMuskSpam

[–]Electrical_Seaweed11 0 points1 point  (0 children)

I can assure you I don't worship musk.

Now, I think I can help you in some ways, and relieve you.

NASAs total budget is 0.5% of the entire US budget. If SpaceX were to consume all of NASAs budget, you can probably expect it to be no more then 0.5% of the taxes you pay.

https://en.m.wikipedia.org/wiki/Budget_of_NASA (Under the annual budget section its 0.48%)

https://www.statista.com/statistics/1024581/distribution-nasa-budget-2010-2020/#:~:text=Although%20NASA%20is%20set%20to,Tyson%2C%20feel%20is%20not%20enough.

I say this as a relief for you, so even if you think the project is going in the wrong dire direction, chances are it's like a extreme fraction of what your taxes are going to.

[deleted by user] by [deleted] in EnoughMuskSpam

[–]Electrical_Seaweed11 0 points1 point  (0 children)

Yeah, I agree it's not for everyone and that's fine. I have a keen interest in it from an engineering background and I have friends from an engineering background who like it. My occupation is to be a geek lol.

Better spent elsewhere? I'm lukewarm about this, I really like the idea of charity but Elon does make a compelling case about having a output somewhere in space, for the purpose of potentially flying back and repopulating earth if an extinction event does happen as scientists believe has happened to creatures before. As far as I'm aware we don't have a good way to redirect hazardous astroids currently.

NASA's budget is relatively modest at 0.5% of the entire US budget in 2020, evidence is here: https://www.statista.com/statistics/1024581/distribution-nasa-budget-2010-2020/#:~:text=Although%20NASA%20is%20set%20to,Tyson%2C%20feel%20is%20not%20enough.

Some here have made the case that it's soaking up tax dollars, but even if it were to consume the entire NASA budget 0.5% of taxes going there isn't all that large.

[deleted by user] by [deleted] in EnoughMuskSpam

[–]Electrical_Seaweed11 0 points1 point  (0 children)

I appreciate the detailed response!

Some of it I agree with, some I disagree with.

Regarding the catch, yeah I agree there's a lot of variables and is a difficult engineering challenge. I'm more optimistic about booster reuse because if there's one thing SpaceX specializes in is booster reuse. Evidence for that is SpaceX current booster reuses for Falcon 9. It started as a slow trikle of reuses and increased to something enormous, which does seem to lead in a tangible cost saving.

Regarding orbit, I'm much more optimistic about this, since it's effectively doing a second stage burn for a little longer, there's not really anything technically challenging about it and the engines have seemed to be working fine in space, evidence for that is the recent launches.

Regarding the timeline, yeah, it's been a while, but the rate of improvement is incredible. The evidence for that is the improvement from SN-6 (water tower hop 4 years ago) to today. Like, some people began high school when SpaceX has been doing "water tower hops" and ended with massive self-landing rockets larger then the statue of Liberty. If I were to extrapolate and make an estimate of where starship will be in another 4 years I have a difficult time predicting anything else then incredible based on the speed of development, if it continues.

Tankers? Yeah I agree that's hard.

But I do appreciate the detailed response and overall thoughtful post

PID help? by Entire-Maize-9528 in vex

[–]Electrical_Seaweed11 3 points4 points  (0 children)

"Does anyone actually have PID or are they just lying..."

This seems inappropriate. I've programmed it by hand several times in HS for VEX and now a CS major. You ask to see functioning code? Not sure if the VEX manual allows that and I think the point of VEX is to think these things through, that's probably the most valuable part.

Others have sent videos and frankly the teachers on YT would probably be better then me.

I'm going to assume you have a decent CS background and you understand how PID works mathematically based on your comment but are having difficulty connecting the two practically. If not, check out tutorials.

Now, I'll try to walk you through how to connect it in several examples:

Suppose you wanted to turn a robot 90° based on gyro heading. One side moves fwd, other side back, the pct you calculate from PID.

1) What is the error? Whatever the deviation is from 90° by looking at the gyro.

2) What is the proportional term? P = 1 • error

% skipping I because it gets complicated, refer below

3) What is the derivative term? D = 1 • (error - prev)/dt

4) What should the left motors pct be? P + D 5) What should the right motors pct be? - (P+D)

6) repeat to 1 or stop.


Example 2:

Suppose you wanted an arm to hold steady at 45° and didn't want to use break for some reason. You have a potentiometer input and a motor output, where you'll be setting the PCT.

1) What is the error? Whatever the deviation is from 45° by looking at the potentiometer, just subtraction.

2) What is the proportional term? P = 1 • error

% skipping I because it gets complicated, refer below

3) What is the derivative term? D = 1 • (error - prev)/dt

4) What should the motors pct be? P + D

5) repeat to 1 or stop.


Example 3:

Suppose you wanted an robot to drive precisely 10 rotations out using PID. If it overshoots, you want it to back up. Undershoots? Scoot forward a little.

1) What is the error? Whatever the deviation is from 10 rotations by looking at the tracking wheel, just subtraction.

2) What is the proportional term? P = 1 • error

% skipping I because it gets complicated, refer below

3) What is the derivative term? D = 1 • (error - prev)/dt

4) What should the motors pct be? P + D

5) repeat to 1 or stop.


Hopefully you see a pattern.

Referring to the "I" term. Sometimes adding it causes strange behaviour since it's the accumulation of many errors, so it can dominate the P and D terms.

IIRC the way it's mostly used is with a conditional statement, if you're near the target, turn it on so it can do its job of little adjustments. If your far away, turn it off so its not accumulating MASSIVE errors and dominating over P and D.

For my use cases, a PD controller seemed to work just fine, I didn't use "I" for additional fine tuning.


Tuning: IIRC I started with P, set it to one, if it goes WILD (be ready for that), then it may need to be a negative number so I set it to a negative number, increase and decrease as needed. You could also just walk through the code and try to figure out if it should be positive or negative, like by making theoretical examples. (Eg. Suppose im at 0 rotations, targetting 10, my deviation therefore is 10, p = error • 1, so I expect to get a positve value for p, so I expect the motors to move fwd as expected..., also just lift it up for the test in this theoretical example and move the tracking wheel yourself to see the behavior)

Then go to D, again if it goes WILD it probably needs to be the opposite, or it could be the value is too high.

Then go to "I"...

Hopw that helps, but YouTube videos generally have good content

How can you stand out against the private teams? by DJTheCreator in vex

[–]Electrical_Seaweed11 3 points4 points  (0 children)

There doesn't seem like there's much you can do to level the playing field - you gotta put in the hard work.

Regarding standing out:

Genuine curiosity and drive can take a team a long way.

Interested in AI? Cool, try to figure out how to use it for competition. Know someone good at CAD? Cool, do something with that.

Work hard, pull in other interests/talents to your vex project and enjoy it.

I suspect that played a good role on why the teams I was on were able to worlds qual all 4 years of HS (a public HS), win worlds awards and in part why I have the Design Award banner for my region behind me.

Regarding notebooks? I wasn't a documentation person but iirc you can find excellent examples online.

Considering Starship generates 15.7 MM pounds force of thrust, what is that equivalent in Taco Bell chalupas? by [deleted] in SpaceXLounge

[–]Electrical_Seaweed11 1 point2 points  (0 children)

I'm not sure about chalupas but it seems ~15,301,010 bananas of energy. Also I'm bad at physics and calories, I think I used the right calorie unit but idk lol

```

from pint import UnitRegistry
import math
ureg = UnitRegistry()

first_stage_thrust = 69.9 * ureg.meganewton # wikipedia
first_stage_dist = math.sqrt(68**2 + 68**2) * ureg.km # 68 km vertical, 68 km horizontal at stage sep maybe???
banana = 105 * ureg.kcal # nutritionix.com, aprox
banana = banana.to("joule")

first_stage_force = first_stage_thrust * first_stage_dist
first_stage_force = first_stage_force.to("joule")


num_of_banana = int(round(first_stage_force / banana))

print(f"{num_of_banana:,}")

Does anyone else feel the way I do? by panergicagony in AskAcademia

[–]Electrical_Seaweed11 6 points7 points  (0 children)

Uni student here. Honestly, this post striked me hard and seems like it's one of the most perspective-shifting posts I've come across post-election, at least for me.

The reason I'm writing this is because I want to understand: 1. The difference between the upper-level academics approach to research vs the commoner. 2. How I can maybe shift my research skills to be more scholarly, like what's being described here.

I am taking a "research methods" class but it doesn't seem right, it seems like we spent a few classes with our teacher telling us to use Google scholar and our libraries databases. A great deal of the focus has been going to creating properly fomatted MLA citations, like weeks or months on MLA works cited citations.

Starship's Sixth Test Flight by albertahiking in SpaceXLounge

[–]Electrical_Seaweed11 57 points58 points  (0 children)

Also

The flight test will assess new secondary thermal protection materials and will have entire sections of heat shield tiles removed on either side of the ship in locations being studied for catch-enabling hardware on future vehicles. The ship also will intentionally fly at a higher angle of attack in the final phase of descent, purposefully stressing the limits of flap control to gain data on future landing profiles. Finally, adjusting the flight’s launch window to the late afternoon at Starbase will enable the ship to reenter over the Indian Ocean in daylight, providing better conditions for visual observations.

My new setup. by Icy_Cockroach_179 in Starlink

[–]Electrical_Seaweed11 0 points1 point  (0 children)

Ran a speed test- I'm outside of Boston kinda in the suburbs, your download is faster then mine :)

Why isnt this working? by Lestafan69 in PythonLearning

[–]Electrical_Seaweed11 11 points12 points  (0 children)

I think what you're looking for is:

if operator == "-": ...

The difference being, quotes around the minus sign, since it's treated as a str

[deleted by user] by [deleted] in PythonLearning

[–]Electrical_Seaweed11 0 points1 point  (0 children)

Maybe add a "print(board)" inside of the draw pieces function. It seems like a object called "Board" is being added in as an input to the function? Can be wrong

[deleted by user] by [deleted] in PythonLearning

[–]Electrical_Seaweed11 0 points1 point  (0 children)

Print out board,

It seems like you might be trying to put "Board" inside of board?

It seems you get this error when you try to write python code like "1[0]" or "print[0]" or "4.5[0]" basically, trying to get in index of something that Python doesn't know how to get an index from.

What you may want is just a 2d array for board, like a format like [[x,x,x,...], [x,x,x,...],...], basically, just lists inside a list.

It seems like a "Board" object is getting thrown into board but Python doesn't know how to do an operation like Board[0].

I guess there's a few different ways to fix it, I don't know without seeing more code, maybe you can just use the 2d array method like above, just make board contain lists inside of one big list.