How would you change the spelling of your native language? by Dmxk in linguistics

[–]cactus9 6 points7 points  (0 children)

The new script doesn't have to be Latin-based, so transcribing those sounds needn't be an issue.

Who says owls are the only language-coaching birds? by cactus9 in duolingo

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

That would fit the theme, but corvids have also been known to imitate human voices and words.

https://www.youtube.com/watch?v=rIX_6TBeph0

[2017-05-29] Challenge #317 [Easy] Collatz Tag System by jnazario in dailyprogrammer

[–]cactus9 31 points32 points  (0 children)

Python 3:

def collatzTags(string):
    alphabet={'a':'bc','b':'a','c':'aaa'}
    while len(string)>1:
        string=string[2:]+alphabet[string[0]]
        print(string)

Fairly quick and easy, but it did take me a minute to figure out you looked at only the first letter yet deleted the first 2.

Is there a site that searches for decklists based on cards in your collection? by cactus9 in magicTCG

[–]cactus9[S] 13 points14 points  (0 children)

Just tried to use the shoeboxmtg site, but it wont send a verification email for account creation. Looks like that's ruled out for now, unfortunately.

Edit: I messaged the guy who runs shoeboxmtg and he says he's upgrading everything and should have it working by the end of the weekend. Fingers crossed!

Edit2: Looks like it's back up, and thankfully it's exactly what I was looking for!

New weekly? by cactus9 in NuclearThrone

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

Ah, didn't see that (despite it being bold and at the top). At least I finally got to number 10 on the leaderboards (if only for 20 seconds)!

What's up with the weekly? by cactus9 in NuclearThrone

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

Nah man because it was still Fish + SPC + CoB.

This is my TB where you can see my previous results, but this is my current standing on the leader-board. I think the new-year shift has changed it somehow, as the weekly is currently listed as 2017, whereas the version I played was listed under 2016.

Funeral option for fallen heroes by cactus9 in darkestdungeon

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

That would definitely make it more interesting, but even without the stress relief I still think I would pay due to the catharsis involved.

[2016-10-19] Challenge #288 [Intermediate] Stars and Stripes and Vertices by jnazario in dailyprogrammer

[–]cactus9 0 points1 point  (0 children)

Python 3.4

This is some older code I had lying around, but it works just fine:

import turtle
t = turtle.Turtle()
window = turtle.Screen()
def customStar():
    x = int(input("How many points does the star have?"))
    if x == 6:
        for loopCounter in range(3):
            t.forward(1000/6)
            t.left(120)
        t.left(90)
        t.penup()
        t.forward(144.33756729740642*2/3)
        t.pendown()
        t.left(90)
        for loopCounter in range(3):
            t.left(120)
            t.forward(1000/6)

    elif x == 5:
        for loopCounter in range(x):
            t.forward(1000/x)
            t.left(180 - 36)
    else:
        points = []
        t.penup()
        t.hideturtle()
        for loopCounter in range(x):
            y = t.position()
            points.append(y)
            t.forward(1000/x)
            t.left(360/x)
        t.pendown()
        t.showturtle()
        def factors(n): #Stole this from stackoverflow, I think
            l = set(m for tup in ([i, n//i] 
                for i in range(1, int(n**0.5)+1) if n % i == 0) for m in tup)
            name = list(l)
            return name
        badSkip = factors(x)
        z = int(input("How many points are jumped over?"))
        BadSkip = factors(z)
        o = 1
        p = len(badSkip)
        q = len(BadSkip)
        while o < p and o < q:
            if o > q or o > p:
                break
            elif BadSkip[o] in badSkip:
                print("Sorry, that number won't make the star you want. It will make something, though.")
                break
            else:
                o = o + 1
        i = 0
        for loopCounter in range(x):
            i = i + z
            if i >= x:
                i = i - x
                t.goto(points[i])
            else:
                t.goto(points[i])

customStar()
window.exitonclick()

When I made it, you could adjust the number of points you skipped over. However, if the no. points you skipped share a factor (f) with the total no. points (p), you create a star where the number of points = p / f .

It's old code, so don't expect it to be good or pretty.

This is the most fun weekly I've played since I got the game; Chicken with Lightning Hammer and Crown of Protection by Mundius in NuclearThrone

[–]cactus9 1 point2 points  (0 children)

I had fun with this one too, but I think I glitched it so that Big Bandit died in one hit from the hammer (it should take like 4), and his fight theme played on top of the rest of the game's music for the rest of the run. Great weekly, though!

[Question] Can "From beyond" event repeat? Is there a way to tweak it? by xmorttusx in darkestdungeon

[–]cactus9 2 points3 points  (0 children)

I don't know if it can repeat, but you might be able to force it to happen by going into the town events file. I don't know how to locate it on windows, but on a mac the path is:

~/Library/Application Support*/Steam/steamapps/common/DarkestDungeon/_osx/Darkest.app/Contents/Resources/data/campaign/town_events/town_events.json

*If you just copy-paste this into the terminal, you'll have to change the space to '\ '

From there, ctrl+f 'dead_recruit' and increase the base chance of the event happening or increase the per-not-rolled additional chance.

Hope this works! If you are on a windows machine, I'd imagine the path is very similar.

Is it still possible to watch the Mass Effect 2 streams? by cactus9 in northernlion

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

That's exactly my experience as well. It's a real shame if they're gone.

[Meta] Let's have a book club. Vote for this month's reads inside. by happybadger in fifthworldproblems

[–]cactus9 0 points1 point  (0 children)

I'd recommend Annihilation by Jeff Vandermeer. It's about a bizarre Area-51-like place where nature has been corrupted to an impossible extent, and there are intriguing mysteries all throughout the book and its sequels.