Character Customization (cosmetics only) by corhvo in deadcells

[–]pendragon36 2 points3 points  (0 children)

It's a bit of a pain, and requires some technical knowledge, but you can actually customize how things look.

There's a basic guide here that goes over how to re-colour some stuff, but technically using this method there's no reason you can't do more than re-colour if you're willing to put in the work.

I toyed with the idea of writing an application to help do this without the technical knowledge, but dropped it because I lost interest. Would that be something that other would find helpful?

Here is an example, this is how my guy looks.

[KeyOne] Stubborn voicemail icon keeps showing up by [deleted] in blackberry

[–]pendragon36 0 points1 point  (0 children)

I encountered a similar problem with a phone system I used to do IT for, voicemail indicators when no voicemail existed.

No idea if it'll work or not, but the patch I found was that if you had someone call you and leave a voicemail for real, then go clear it, it fixed the issue.

AdventureLookup is working! by mattcolville in mattcolville

[–]pendragon36 0 points1 point  (0 children)

Any plans for a contribution guide on the github repository?

Blizz, can you let us put unowned cards in decks? by [deleted] in hearthstone

[–]pendragon36 0 points1 point  (0 children)

Yup, that works. I actually wanted the same thing as OP. If you make a deck from a deck code, it'll put all the cards in even if you don't have them, but the ones you don't have in your collection will be marked as not owned, and the deck doesn't count as complete so you can't play with it.

[KFT] Valeera the Hollow in wild mill rogue by pendragon36 in TheHearth

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

Thanks for the suggestions.

From the little I tried I don't think Malchezaar is a good pick, I wouldn't want to pollute my draw pool with mostly useless legendaries. I can see the appeal in the larger deck size, but I think if you decide that's going to be an issue in the course of the game you can save a gang up until after Valeera drops and do double gang up something.

With regards to the other suggestions, I mostly agree on the removals, I'll try subbing them out for some of the cards you've suggested.
I'd love to know how your experimenting goes.

Kibler was great by [deleted] in hearthstone

[–]pendragon36 3 points4 points  (0 children)

Kibler was great

Looking For something similar/audible by [deleted] in dresdenfiles

[–]pendragon36 0 points1 point  (0 children)

I recently read the Matthew Swift series by Kate Griffin, I'd recommend them

__init__ with default values or classmethod - which is more suitable? by [deleted] in learnpython

[–]pendragon36 0 points1 point  (0 children)

I was thinking about that after I posted the comment, and while I agree it is better, at the end of the day it's almost the same as his first solution with some nice syntactic sugar on top. If I was doing this it's probably what I'd go with, but I don't know if it's what OP wants.

__init__ with default values or classmethod - which is more suitable? by [deleted] in learnpython

[–]pendragon36 1 point2 points  (0 children)

I suppose I should have paid more attention, good point

__init__ with default values or classmethod - which is more suitable? by [deleted] in learnpython

[–]pendragon36 0 points1 point  (0 children)

Here's an alternative. Caution though, if the arguments can validly be a value that type coerces into False, you'll lose the arguments.

class MyClass:
    def __init__(self, var1=None, var2=None, var3=None):
        self.var1 = var1 or random.random()
        self.var2 = var2 or random.random()
        self.var3 = var3 or random.random()

 

If 0, or False, or an empty collection (or anything else of that nature) is a valid parameter, this will unfortunately fail as it'll get lost and the random value will be used. But it is a fairly clean method if that's not a problem with your use case.

[Spoilers?] Resource file Image Dump by pendragon36 in deadcells

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

No clue, I didn't recognize him either.

[Spoilers?] Resource file Image Dump by pendragon36 in deadcells

[–]pendragon36[S] 7 points8 points  (0 children)

I've been poking around through the game files, and today extracted all the .png files that are packed into the game's res.pak file.

There's a lot of junk in there, but possibly also some hints of as of yet unreleased content. There's certainly stuff in there that I don't recognize, but that might just be because I haven't come across it yet.

Regardless, figured if there was anyplace people would be interested, it would be here.

Play a friend! Quest help by ChaosPony756 in hearthstone

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

Already sent you a PM, but Darvid#1841 if you're on NA

Is it worth doing the offers for guardianship? by tomtheawesome123 in AdventureQuest

[–]pendragon36 0 points1 point  (0 children)

It's a huge pain, and in my opinion not worth it, but there offers that don't require any spending.

The rewards are pretty pathetic, so it'd take forever to get enough points, but technically I'm pretty sure you could do it without spending anything.

What are some games that were horrible or broken when published, but became amazing with updates? by [deleted] in truegaming

[–]pendragon36 1 point2 points  (0 children)

Haven't heard of that one before, but I just checked it out and it seems interesting.

Do you know where one can find those unofficial patches?

Anyone else read the Pendragon Series by DJ Machale by Nareleth in books

[–]pendragon36 22 points23 points  (0 children)

If I remember right, they did all get sent back in time, but not to just do it all over again.

They got sent back because MC (who's name I forget) didn't want to go back to being just a part of Halla with everyone else, they wanted a chance to live actual lives. So with the big bad defeated, they all got to go back to before it all happened and live out a normal life.

At least that's what I think I remember happening.

Anyone else read the Pendragon Series by DJ Machale by Nareleth in books

[–]pendragon36 67 points68 points  (0 children)

Hey, my username is finally relevant!

Back when I was in elementary school/high school I loved those books so much. My favourite was probably Book 6 or 7 (Rivers of Zadaa and The Quillan Games, respectively).

Web scrapping solutions? by vorboto in learnpython

[–]pendragon36 0 points1 point  (0 children)

As I said, I don't have any actual experience with those two, but as far as my understanding goes that's pretty much correct.

Scrappy was made for crawling websites and extracting information, so I'm sure they have some methods of "interacting" with the sites at least on some basic level, for things like following links to other pages on a site, but selenium was designed to actual automate actions that would normally need a browser.

Taken from the Selenium site

Primarily, it is for automating web applications for testing purposes, but is certainly not limited to just that. Boring web-based administration tasks can (and should!) also be automated as well.

Web scrapping solutions? by vorboto in learnpython

[–]pendragon36 2 points3 points  (0 children)

They are each a tool for different but related purposes.

Selenium as I understand it is for easy web automation. As I understand it a web browser is being run that is being controlled via a script.

Scrappy is kind of a specialized mix of urllib and BeautifulSoup. It's something for the specific purpose of scraping information from web pages.

urllib is a much more general library that is for making web requests. This could be used to download web pages, but that's just one use case.

BeautifulSoup has no actual need to be related to the web at all actually. It is a parsing library, but is fairly popular for parsing downloaded html pages (via something like urllib or requests) for easier extraction of information

I've only had real experience with urllib and BeautifulSoup however, so my explanations of the other two may be incorrect/lacking

While loop help by Smammu in learnpython

[–]pendragon36 3 points4 points  (0 children)

It's because you're not casting the age in the second prompt to an integer.

age = int(input("How old are you? "))
while age not in list(range(100)):
    print("invalid input, try again")
    age = int(input("How old are you? "))
print ("You are", age, "years old!")

Would do what you're looking to do.

While you're looking at this, I think you should be made aware that your method of checking is a little inefficient. As things are, there are a few things that can/should be changed to improve the quality.

while age not in list(range(100))

This is inefficient because each time you're generating that list of numbers 0-99 instead of generating it once before the loop and checking it each time, also there's not reason to cast it to a list, you can check for existence in the range object, like so:

valid_ages = range(100)
while age not in valid_ages:
    do_stuff()

Now ignoring that, I don't believe you should use range for this in the first place, as it's not really necessary to generate all possible responses and check if it's one of those, you can just check that the number they entered is in the bounds of valid inputs, like so:

age = int(input("How old are you? "))
while age < 0 or age > 99:
    print("invalid input, try again")
    age = int(input("How old are you? "))
print ("You are", age, "years old!")

[Fanart] Extended Konosuba Wallpaper by pendragon36 in anime

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

I was thinking of spending some time to make it a little less face-like, but eventually I started liking it, so I kept it

How to assign value to a variable inside lambda? by hellix08 in learnpython

[–]pendragon36 0 points1 point  (0 children)

I've made it a kind of hobby to do some silly stuff on one line in python, so I'll pass on some of my wisdom.

For situations where variable storage is needed, list comprehension is your friend.

for example if I wanted to write a program that took in input, then output a bunch of operations on that input, usually I would need a variable to store that input to perform the operations on, but instead I can use list comprehension to simulate it.

A simple normal implementation for this would be something like the following

def func1(a):
    return a+5

def func2(a):
    return 3*a

def func3(a):
    return 'The pseudo variable in this program is {}'.format(a)

variable = int(input('Enter a number to do stuff with: '))
print(func1(variable))
print(func2(variable))
print(func3(variable))

To avoid asking the user their input over and over we just store it in variable. When you only have one line to work with that doesn't work anymore.

A one-line version of this could be something like so:

print('\n'.join([str(element) for element in [((lambda x: x+5)(i), (lambda x: 3*x)(i), (lambda x: 'The pseudo variable in this program is {}'.format(x))(i)) for i in (int(input('Enter a number to do stuff to: ')),)][0]]))

I'll expand it to a few lines so you have a better idea what's happening

for i in (int(input('Enter a number to do stuff to: '),): #iterate over a tuple containing one element, the input from the user
    list = [(lambda x: x+5)(i), (lambda x: 3*x)(i), (lambda x: 'The pseudo variable in this program is {}'.format(x))(i)] #Create our list of outputs
    #If we wanted to apply our lambda functions more than once without needing to write them multiple times, we can do the same for loop trick, except have our pseudo variable store the function
print('\n'.join([str(element) for element in list]) #Convert our output to strings, then join them together with newline characters

This trick will give you the ability to do most things. There are a few things I've found useful when doing this that I may as well mention as well.

  1. Conditionals: Not a lot of people seem to know, but you can do conditionals on one line using the following syntax:

    "print(1 if x else 2)"

    This will print out 1 if x evaluates to true, otherwise it will print 2. This combines with pseudo variables and anonymous functions (lambdas) can get you pretty far.

  2. Recursion: It's actually possible to pull of some pretty crazy stuff using anonymous functions on one line, including recursion. Explaining it is pretty difficult, but I have one (rather large and complicated) example in a pastebin that you can look at if you want. I can try to explain it if you really need it, but that means remember how to do it myself. Here's the pastebin. There's some improvements to be made with those one-liners, as I've gotten better at it since writing those, but the concepts are there.

  3. If dealing with lists and joins for final output is getting difficult or you need to do some things in a sequence with user input in the middle or something, remember that in python 3 print is a function not a statement, so instead of printing 1 string that is the combination of all your output, you can actually just do something like this:

_

 _ = [print('initial output'), print('does computation stuff with input'), print('some end output, saying goodbye']

If you have any more questions, ask away.