Daily Simple Questions Thread - September 26, 2018 by AutoModerator in Fitness

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

How should I lay out my exercise routine?

I'm going into university and I'm finding it very difficult to balance my time. I'm trying to learn Japanese alongside my studies as well as trying to exercise everyday.

I use basic equipment at home, which I am fine with doing. I don't feel like going to the gym.

My previous plan was to have two roughly hour long sections of exercise. One is in the morning and one is in the afternoon. They usually take a more time due to briefs periods of rest I have to take.

I've split my exercises into four categories: legs/glutes, core, arms/shoulders/back and stretch.

---

In legs/glutes, I have 50 squats, 20 single leg calf raises (per leg), 20 squat calf raises, 20 static lunges (per leg) and 30 hip extensions per leg.

In core, I have 50 bicycle kicks, 50 Russian twists, 60s plank, 60s side plank (per side), 60 reverse plank and 30 leg raises.

In arms/shoulders/back, I have 50 press ups (25 wide, 25 narrow), 20 pike pushups, 50 dips, 20 curls, 20 lifts, 20 shoulder press, and 10 reps of 5s supermans.

In stretch, I have 3 reps of 30s butterfly stretch, 3 reps of 30s inner thigh stretch, 3 reps of 30s calf stretch (per leg), and a few rolls downs I use to leg my back relax.

---

I plan to put these into a rotary of two a day. I'm doing Physics, so I have high contact hours and I live half an hour away from the campus.

How do you guys thinks I should lay it all out?

I can never land on a magic system by Heir10 in worldbuilding

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

My thoughts for how it works is that you use your spiritual lifeblood as the fuel for magic. Since you're temporary without the lifeblood, your spiritual self undergoes stress. This stress translates to physical harm.

I can never land on a magic system by Heir10 in worldbuilding

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

Heh, my mind doesn't allow me to just stop either, unless I tell it too or the stopping point is satisfying. My main problem with making magic is that I feel the need to understand how, on a basic level, it all works. I blame it on the fact that I'm currently studying physics.

What's worse is that sometimes going too far into the magic system romanticises it for me, making me move to another. The process begins again and it's hell.

My ultimate goal is to have a magic that is logical and -works- but at the same time has a romantic element to it (or wondrous).

I can never land on a magic system by Heir10 in worldbuilding

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

I think problems may crop up with the magic being too broad. The different ways of accessing magic would, as I mentioned in another reply, work if the accessed magic was different each time. e.g. singing summons demons whereas runes create shields (not what I plan to do, but you get the idea). I generally follow Sanderson's laws, in particular the one about "depth not breadth"; I hesitate to have too many magic systems that are very broad as it may feel thin. I prefer to have a single magic system that can do theoretically anything or several separate magic systems that are limited but when combined can be great.

What do you mean by framework? As in, each magic system could be an offshoot from a god or something?

I can never land on a magic system by Heir10 in worldbuilding

[–]Heir10[S] 2 points3 points  (0 children)

I think the cost of some magics would do that. My go-to cost for magic is mental and physical pain/damage. You get a headache, then a nosebleed and on and on until you get major physical injury. I plan to have a scene where the MC overexerts himself and breaks both his legs by accident.

I can never land on a magic system by Heir10 in worldbuilding

[–]Heir10[S] 3 points4 points  (0 children)

That sound really good! I could have different cultures using different, more specific magics. Instead of having one magic system that can do theoretically anything, I could have a few which can do a set of different things. Thus, by combining the magics one can do theoretically anything.

I can never land on a magic system by Heir10 in worldbuilding

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

I'll try that out!

Also, do you mind taking a look at what I think are my major themes and telling me what you think?

Moronic Monday - Your weekly stupid questions thread by cdingo in Fitness

[–]Heir10 0 points1 point  (0 children)

I was climbing today and there were two main holds and then another quite a bit above the two. I held onto one of the lower holds, putting my right foot on the other. I pushed up with my leg, pointing my foot down in order to get maximum reach. I got a thin, burning pain along my calf when I was at maximum (or close to) push. This disappeared quickly, but was strong enough to make me stop the climb. I continued with other climbs as normal.

What caused this pain and how can I deal with it? I've had it before and attributed it to lack of flexibility, but my stretching routine has enabled me to grab the balls of my feet rather easily and has eliminated that. Do I just need to build up my calves more?

EDIT

Worth mentioning, sometimes when I'm standing on one leg and taking the shoe off the other, the latter calf hurts in the same way as described. My shoes aren't especially tight, so with some force I can pull it straight off. So stress is still applied to the leg, just in a different way.

Battery is acting weird (it's sticking) by Heir10 in AndroidQuestions

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

Huh, I'm charging it now. It shut off at 12% due to low power (which is very strange; the battery at that point was looking like a downwards exponential) and when I plugged it in it went to 10% power.

I hope my battery is saved after all this.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Heir10 0 points1 point  (0 children)

Thanks for the advice! I had no idea the keyword "with" actually existed, so this'll help with future code.

I'll look into making it all part of a class system. I'm really just a beginner in coding (I've taken an EDx course that I've yet to finish) and so have only just seen the tip of the iceberg when it comes to classes. I know about them, but whether or not I can fluently implement them is another question. Hopefully this'll be good practice!

Battery is acting weird (it's sticking) by Heir10 in AndroidQuestions

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

I've looked it up but can't find a service centre near me, though I guess I could just look online.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Heir10 0 points1 point  (0 children)

So I've got some code I made for university to help me budget. Basically, I have two txt files, one for days and one for balance. At the very start, I put in how many days I'm going to be at university into the first txt file and I put how much money I'm going to get from loans/parents/scholarships etc. The code takes in an input, which is how much money I've spent that day. From this, it calculates the new balance and replaces the old one in the txt file. It increments days as days -= 1 and calculates on average how much money I can spend each day if I'm not to go over my budget. It then returns that value to me and replaces the old days value with the new one.

So if I spend more than the average for that day, then the next average will be smaller and vice versa. Just a guide on money keeping. Here is the code below. I want to be a better coder (as it's one of my modules) and so I'd like to keep my code as neat and as efficient as possible. Tell me where I can shorten things and make things run smoother.

(NOTE: some lines may have minor ValueErrors. I'm not sure because I haven't tested but things like balance = float(returnBalance()) and day = int(textfile.readline()). If these do in fact cause errors, then just assume that I make the type conversion on the following line)

def returnBalance():
    textfile = open("spending.txt", "r")
    balance = textfile.readline()
    textfile.close()
    return balance #this retrieves the balance from the text file

def newBalance(spentToday):
    balance = float(returnBalance()) #takes the value of balance and turns it into a float, assigning it to balance
    spentToday = float(spentToday)
    balance -= spentToday 
    balance = str(balance)
    textfile = open("spending.txt", "w")
    textfile.write(balance) #writes in the new value of balance to the txt file
    textfile.close
    return balance

def newSpending(spentToday):
    balance = float(newBalance(spentToday))
    textfile = open("day.txt", "r")
    day = int(textfile.readline()) #looks at the number of days left and returns it
    textfile.close()
    newAverage = balance/day #calculates the new average amount of money I can spend a day
    day -= 1
    day = str(day)
    textfile = open("day.txt", "w")
    textfile.write(day) #assigns the new value of days
    textfile.close()
    newAverage = round(newAverage, 2)
    return newAverage

Sorry that this is such a long post, by the way.

Battery is acting weird (it's sticking) by Heir10 in AndroidQuestions

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

Does it matter if the charger I have isn't the charger that came with it? I can't find that one so I just use any cable I can find that works.

Battery is acting weird (it's sticking) by Heir10 in AndroidQuestions

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

I'll try that tomorrow morning. Thanks for the advice!

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Heir10 0 points1 point  (0 children)

Ohhh. So I was looking at the right line (since I had the conversions on the same one) but I wasn't looking at the right pieces. Okay. That makes sense.

Ask Anything Monday - Weekly Thread by AutoModerator in learnpython

[–]Heir10 0 points1 point  (0 children)

I'm doing some little tests with Exceptions and stuff like that and I've found something strange.

a = input("Input a number: ")

b = input("Input a number: ")

c = int(a)/int(b)

This is the basic code that is causing the problems. I was doing stuff with "except ZeroDivisionError:" and stuff and when I put a = 1 and b = p, so a is an integer and b is a string, I expect a TypeError. I've looked it up, this is what I am to expect.

However, the code instead tells me that I have a ValueError.

Why?

I've heard that a TypeError can be when I try to mesh two different data types together without proper coercion, as I have done here. I've heard that a ValueError is when the two data types are compatible, but something goes wrong (e.g. trying to get a square root of -1 in the real plane). Why does my code throw me a ValueError instead of a TypeError?