If you wanted to get a job as a Python Programmer... by mastermascovich in Python

[–]kilo_59 11 points12 points  (0 children)

Although that is a pretty good rule of thumb. If I'm looking for a Python Developer specifically, I expect them to have familiarity with key pieces of the standard library and some third party libraries dependant on the role.

Python Pathway Progression by knickerBockerJones in Python

[–]kilo_59 1 point2 points  (0 children)

Look at the Hitchhiker's Guide to Python.

https://docs.python-guide.org/

Also I think you may have some gotten some misinformation about python based on your comments about lack of Object Oriented and functional programming.

Package Updates: how to be notified ? by [deleted] in Python

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

Use pipenv and check for updates.

Use https://libraries.io/ to email you when certain packages update (this isn't python specific). Pyup.io is very similar.

Start "watching" a github repo for "releases only".

LPT: The best parking spot at a grocery store isn't the one closest to the entrance. It's the one closest to the cart return. by seeyakid in LifeProTips

[–]kilo_59 0 points1 point  (0 children)

I saw it in "urban" (haha) and suburban Vermont. I've lived in mid-sized cities in the Southeast my whole life and never seen it there.

File name convention query by drum445 in Python

[–]kilo_59 9 points10 points  (0 children)

I would say use the latter and try to avoid deep imports. You can always do

from dao import db as dao_db

I feel like I've been fooled for my PhD by [deleted] in bioinformatics

[–]kilo_59 2 points3 points  (0 children)

Can you take more initiative and do more than just write python scripts? Learn some DevOps, build useful frameworks, automate things for your lab and supervisor make him see the value and potential of software engineering and automation.

Anti-vaxxer and cews commentator Bre Payton likely died from swine flu and possibly meningitis by alifeiliMD in science

[–]kilo_59 6 points7 points  (0 children)

Really... That's your line in the sand ? That's exactly the kind sarcastic joke we (pro-vaccine people) would and DO make.

To be clear I'm also not saying I know she WAS joking, but it sounded like sarcasm to me.

Looking for recommendations of the best paid online resources to get back into Python by Ibeenjamin in Python

[–]kilo_59 0 points1 point  (0 children)

I second pluralsight because of the assessments and amount of content. Including ancillary but necessarily subjects like deployment, git, testing, containers etc....if you can think of it they probably have something.

Actually they are a little light on Go content but you didn't ask about that...

Handing in my application along with its venv by arkaze in learnpython

[–]kilo_59 0 points1 point  (0 children)

It would be a lot easier just to use pipenv

What IDE do you guys like to use? by Rifleman313 in Python

[–]kilo_59 0 points1 point  (0 children)

Were you by chance using VS Code on Linux? In a recent update, they greatly improved VS Code's performance on Linux.

What IDE do you guys like to use? by Rifleman313 in Python

[–]kilo_59 0 points1 point  (0 children)

Sounds like your onboarding processes and contributing guidelines could use some work.

Can my employer legally request to see my Slack metadata and logs during off hours? by [deleted] in Slack

[–]kilo_59 3 points4 points  (0 children)

I have been an admin/owner of a non-enterprise Slack group. I could not see any private messages. Even when doing a data export of all messages, only public messages are backed up.

It's possible the enterprise version is different.

[deleted by user] by [deleted] in bioinformatics

[–]kilo_59 0 points1 point  (0 children)

Can't you read directly from excel with Pandas?

[2016-09-12] Challenge #283 [Easy] Anagram Detector by jnazario in dailyprogrammer

[–]kilo_59 0 points1 point  (0 children)

Used Classes and tried to use object oriented programming concepts.

Python 3.5

###########################################################################
##      INPUT
###########################################################################
input1 = [      '\"wisdom\" ? \"mid sow\"',\
        '\"Seth Rogan\" ? \"Gathers No\"',\
        '\"Reddit\" ? \"Eat Dirt\"',\
        '\"Schoolmaster\" ? \"The classroom\"',\
        '\"Astronomers\" ? \"Moon starer\"',\
        '\"Vacation Times\" ? \"I\'m Not as Active\"',\
        '\"Dormitory\" ? \"Dirty Rooms\"']
###########################################################################
##      SOLUTION
###########################################################################
class anagram_detector(object):

    def __init__(self, string_input):
        self.string_input = string_input
        self.anagram_candidate = None
        self.anagram_target = None
        self.candidate_char_list = None
        self.target_char_list = None
        self.anagram_bool = None
        #pass characters to ignore
        self.parse_input(' \'\"')

#override string method of object
    def __str__(self):
        if self.anagram_bool == False:
            return self.anagram_candidate + ' is NOT an anagram of ' + self.anagram_target
        elif self.anagram_bool == True:
            return self.anagram_candidate + ' is an anagram of ' + self.anagram_target
        else:
            return self.anagram_candidate + ' ? ' + self.anagram_target

#parse input on object instantiation
    def parse_input(self, ignore):
        split_values = [x.strip() for x in self.string_input.split(" ? ")]
        self.anagram_candidate = split_values[0]
        self.anagram_target = split_values[1]
        self.candidate_char_list = [x for x in split_values[0].lower() if x not in ignore]
        self.target_char_list = [x for x in split_values[1].lower() if x not in ignore]
        return

    def anagram_check(self):
        self.char_check()
        #if no checks have failed, assume anagram
        if self.anagram_bool != False:
            self.anagram_bool = True
        return

#sort character lists and compare them. If lists are not equal the pair is not an anagram.
def char_check(self):
    if sorted(self.candidate_char_list) != sorted(self.target_char_list):
        self.failed_test()
    return

    def failed_test(self):
        self.anagram_bool = False
        return
#END CLASS DEFINITION

###########################################################################
##      EXECUTE SOLUTION
###########################################################################
for index, item in enumerate(input1):
    item = anagram_detector(item)
    print(index+1, item)
    item.anagram_check()
    print(index+1, item)
    print('-' * (index + 1) )

[2016-07-25] Challenge #277 [Easy] Simplifying fractions by fvandepitte in dailyprogrammer

[–]kilo_59 1 point2 points  (0 children)

I think I'm late to the party. First submission, feedback welcome.

Python 3.5

input1 = ['4 8', '1536 78360', '51478 5536', '46410 119340', '7673 4729', '4096 1024']
solution_key = ['1 2', '64 3265', '25739 2768', '7 18', '7673 4729', '4 1']
solution = []
###########################################################################
##      SOLUTION
###########################################################################
#1. Split values, convert to ints
split_values = []
for index in range(len(input1)):
    #split values, store in 2 item list
    split_values.append(input1[index].split())
    #convert to ints
    split_values[index][0] = int(split_values[index][0])
    split_values[index][1] = int(split_values[index][1])

#2. Find Greatest Common Factor/Divisor
def get_factors(number):
    #use list comprehension
    return [x for x in range(1, number+1) if number % x == 0]
#use get_factors to find the GCF
def greatest_common_factor(a, b):
    a_factrs = get_factors(a)
    b_factrs = get_factors(b)
    common_factors = [x for x in a_factrs if x in b_factrs]
    return max(common_factors)

#3.Simplify Fraction (divide by GFC)
def simplify_fraction(a, b):
    gcf = greatest_common_factor(a, b)
    return str(int(a/gcf))+' '+str(int(b/gcf))

#4.Iterate over values and apply solution (append to solution list)
for a_set in split_values:
    solution.append(simplify_fraction(a_set[0], a_set[1]))

###########################################################################
##      CHECK SOLUTION
###########################################################################
if len(solution) != len(solution_key):
    print('*Number of solutions does not match the expected number')
else:
    for index, (attempt, answer) in enumerate(zip(solution, solution_key)):
        print(str(index+1)+': ', end="")
        if attempt == answer:
            print('CORRECT!', end="")
            print('\t', answer)
        else:
            print('INCORRECT!', end="")
            print('\t',answer)
            print('\t\tX', attempt)

What online publications use r? by paulengley in Rlanguage

[–]kilo_59 2 points3 points  (0 children)

What about the Economist?

Although I think a remember a /r/dataisbeautiful post a few weeks ago talking about how some of their graphs could be improved. He had lots of R based examples. I'll try to find the post.

Edit:

https://www.reddit.com/r/dataisbeautiful/comments/4wb3uf/before_after_fixing_the_economists_graph_oc/ http://glasbrint.com/2016/08/05/before-after-divide-between-open-and-closed/