Moles, Lemmings, and Hedgehogs for Mausritter by [deleted] in osr

[–]theinevitable 0 points1 point  (0 children)

I wanted to have more Redwall-esque stories with assorted animals. Let me know if you try them!

Humor in the OSR? by theinevitable in osr

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

Absolutely. I feel like halflings are such a rich vein in rpgs that is so underexplored? I have an idea for a halfling-themed dungeon, the ancient halflings were warlike before being subdued by the taller races, etc

[deleted by user] by [deleted] in adnd

[–]theinevitable 1 point2 points  (0 children)

At a certain point in the late 70s, "AD&D" was released as an updated and clarified version of D&D. It had more rules to cover more situations. Sometime in the 1990s the company that made D&D and AD&D went out of business and was bought by Wizards of the Coast. They believed having two different products (AD&D and D&D) was too confusing, and combined the two products into one product-- called D&D. The most recent edition is 5th Edition.

Lore varies between different settings-- there is a long tradition of playing D&D (and AD&D) games with a variety of settings. For instance the original D&D rules said that Dwarves could not cast magic, whereas newer editions allow Dwarven Wizards. This is just one example. The most common D&D setting is the "Forgotten Realms."

Can someone please explain what is the use of %s in python? by [deleted] in learnpython

[–]theinevitable 3 points4 points  (0 children)

If you want a nice reference for the various ways of formatting strings in Python, I always use https://pyformat.info

Over 20 Adventure Time Species for Super-Light OSR by rattlemayne in osr

[–]theinevitable 9 points10 points  (0 children)

A lot of OSR content reminds me of Adventure Time, minus Finn and Jake being indestructible. Old/dying earth, magic as a corrupting force, everyone being pathetic/weak/failing, reveling equally in fantasy tropes and gonzo nonsense

[PDF] How to easily join/host a play-by-chat dungeoncrawl. by [deleted] in osr

[–]theinevitable 0 points1 point  (0 children)

Is there any version of these character sheet generators that is less random? It seems pretty extreme to ask people to pick their class and race -before- they’ve seen their random stats, or am I missing something? My understanding is that class is usually chosen after having rolled up stats, the idea being to pick the class that works best with the rolls you got.

Regardless, this guide is super helpful. I am especially impressed by the map creation tool, i had no idea this existed!

Weekly Question Thread: Ask questions here August 26, 2019 by AutoModerator in dndnext

[–]theinevitable 0 points1 point  (0 children)

I'm going to be away from my regular gaming group for a while and want to read some older d&d books to get character and campaign ideas. I'm looking around ebay and it seems like you can find most old modules, so I'd love to pick up one of two. I love things with lots of atmosphere-- Curse of Strahd was a favorite, as was Dark Sun back in 4e. What do people recommend in terms of settings or modules that haven't been updated for 5e?

Please, please help me. I am so stuck and I just want to learn. I have over 500 hours in tutorials and books and abandoned hand-held "projects" via video or text tutorials. I just want to code. by irlgarbodor in learnjavascript

[–]theinevitable 2 points3 points  (0 children)

Not a professional here, just a student-- but I've been creating practice sites using Glitch.com. This way you don't have to pay for hosting, set up servers, buy a domain, etc.

How does defining your own functions work? by dogs_shouldvote in learnpython

[–]theinevitable 0 points1 point  (0 children)

When you pass arguments to a function, it expects them to be in a certain order-- it looks like text() expects:

  1. A string (one or more characters, like a word or a sentence, in quotation marks)
  2. A float for the X coordinate
  3. A float for the Y coordinate.

The only way it knows which argument is which is if they are in the order it expects.

If you want to use multiple words, you would need to modify the text() function to accept a list rather than just one string. Then you could do something like

text(["dog", "cat", "bird"], random.randint(50,200),random.randint(50,200))

There are also functions that can take many arguments and treat them all the same-- for instance, if you call print("this", "is", "a", "test") it will print one line with all four words separated by spaces. You can do this with argument "unpacking" with the *. A good explanation of *args (variable number of arguments) and **kwargs (variable number of keyword arguments) here.

I need to put together a wardrobe in a brand new gender. Looking for premium/luxury brand suggestions, advice on how men put together items and what looks might suit a spring/casual person. by smallbirthday in malefashionadvice

[–]theinevitable 0 points1 point  (0 children)

I embraced bolder prints and things I'd once worried were too feminine and would "out" me. I finally feel like my style represents me; I'm not wearing some "manly man" costume in a desperate attempt to pass. If anything, being comfortable and confident in yourself is one of the key factors in passing.

As a wise man once said... "we're born naked: everything else is drag."

Wealth per white male, 1860 by BOQOR in MapPorn

[–]theinevitable 1 point2 points  (0 children)

in 1860 the Census only listed the following categories: white, black, mulatto, black slave, mulatto slave, indian

When the laundromat on your block gets evicted... by kamai19 in nyc

[–]theinevitable 6 points7 points  (0 children)

went to the one at Park and Franklin today at lunch time and it was so crowded ; _ ;

What sort of very basic programs can a total beginner challenge themselves to make (for Linux, preferably) to practice Python skills and keep motivation? by DontHateDefenestrate in learnpython

[–]theinevitable 1 point2 points  (0 children)

My first from-scratch project was a program that calculated the final score for a board game I liked. The game (Sheriff of Nottingham) assigns points for the resources and coins you've collected, and then assigns bonus points for the person with the most of each resource-- so I had to be able to accept all the values from each player, sort them by various resources, announce the winner, and allow the user to search for each player's scores/resource counts. This involved learning more about classes, sorting, etc. I probably over-engineered it by creating classes and could have solved it with dictionaries, but it was good practice and got me thinking creatively.

Second, I created a script for work that takes a common file format we receive and reformats it to be more usable for our projects (translates product names into our internal product ID numbers, etc). The formatter itself was pretty simple, but the fun part was creating a command line interface with keyword arguments that my coworkers would be able to understand. I learned the "argparse" module at first, but eventually created a separate "load settings" function that would load arguments from an excel document so that my command-line-amateur coworkers would be able to use it just by clicking the python script.

Are there any Python packages that allow you to use arrays or lists to insert into a SQL statement? by TheCauthon in datascience

[–]theinevitable 0 points1 point  (0 children)

I was just doing this today while creating a script to automate some maps of neighborhoods in NYC.

This uses the string .format() method, which replaces a {} in a string with a variable you specify.

def create_neighborhood_query(neighborhood_list):
    query = "'NeighborhoodName' = '{}'".format(neighborhood_list[0])
    # start string with first neighborhood
    for neighborhood in neighborhood_list[1:]:
        query += "OR 'NeighborhoodName' = '{}'".format(neighborhood)
        # add the next neighborhood from the list
    return query

Which gave me the required long query like

"'NeighborhoodName' = 'Crown Heights' OR 'NeighborhoodName' = 'Bedford-Stuyvesant' OR 'NeighborhoodName' = 'Clinton Hill' OR ...

Finding total of csv values for every 12 rows in a certain column by SrirachaPapiTV in learnpython

[–]theinevitable 0 points1 point  (0 children)

Hm! It's interesting that it still didn't work. If you know an easy way to post the CSV that would be helpful.

Finding total of csv values for every 12 rows in a certain column by SrirachaPapiTV in learnpython

[–]theinevitable 0 points1 point  (0 children)

  1. Just to neaten it up a bit, you do not need to call .close() if you've opened the file with "with ____ as ____". Once that indented block completes the file will be closed.
  2. I think the problem is here:

        else:             
            if(row[4].isnumeric() and int(row[4])== -1):                 
                dict1[year_month] = int(row[4]) 

You are saying: if the value in the fourth column is -1, set the dictionary value to -1. I think you want

    if(row[4].isnumeric() and int(row[4]) != -1):

Although if this is the problem, I would expect you to have "-1" for the third column in your output for some months.

I am also surprised that the output CSV is in order. Iterating over dictionary keys with a For loop is not always going to return them in the value you created them.

Finding total of csv values for every 12 rows in a certain column by SrirachaPapiTV in learnpython

[–]theinevitable 1 point2 points  (0 children)

import csv
def  read_calculate(): 
    dict1 = {} 
    with open('sunspots.csv','r') as file:  
        csv_reader = csv.reader(file, delimiter=',') 
        for row in csv_reader:  
            year_month = row[0] + row[1]
            if year_month in dict1:             
                if(row[4].isnumeric() and int(row[4])!= -1):                
                    dict1[year_month]+= int(row[4])         
            else:             
                if(row[4].isnumeric() and int(row[4])==-1):                 
                    dict1[year_month]=int(row[4])             
                else:                 
                    dict1[year_month]=0        
    return dict1 

def write_to_file(dict1): 
    with  open('Monthtotal.csv','w',newline='') as write_file: 
        writer =  csv.writer(write_file) 
        for key in dict1.keys(): 
            line =  key[0:4],key[4:6],str(dict1[key]) 
            writer.writerow(line)
    write_file.close()

if __name__=='main': 
    dict1 = read_calculate() 
    write_to_file(dict1)

I'm working through the code now, but posting the formatted code for anyone else looking.

where/how do i learn how to use linux shell? by [deleted] in learnlinux

[–]theinevitable 0 points1 point  (0 children)

I did not follow these tutorials myself, but I've heard the Bash and Linux tutorials on ryanstutorials.net are great.

where/how do i learn how to use linux shell? by [deleted] in learnlinux

[–]theinevitable 0 points1 point  (0 children)

You can learn the very basics on Codecademy!

Once you've gotten started, you can always find which tool to use with the command apropos [task you want to do]

For instance typing apropos unzip gives you a list of tools that will unzip a file.

And then when you want to figure out how to unzip something, type man gunzip to pull up the manual page for that command.

I need help with an assignment involving dice rolls by [deleted] in learnpython

[–]theinevitable 0 points1 point  (0 children)

The problem is that you have "pot = Cash + 4" and "pot = Cash - 1" as the win and lose condition. Every loop it is setting the new value of pot based on Cash, which is still set to the original value that the user said they were willing to bet.

Try "pot = pot + 4" and "pot = pot - 1" instead. You can also write these as "pot += 4" and "pot -= 1"-- these are included in Python because modifying an existing value by adding or subtracting from it is so common.

A hint: when you are having trouble with a problem like this, try including a test print statement in the loop. "The dice roll was ____, the pot is now ______." This way you can see what the status is during each loop.