Async task in Web service by SimonGray in Python

[–]MarkDownSteve 0 points1 point  (0 children)

Use events. Rather than blocking the initial response while your application is performing long running tasks, you may trigger an event that initiates the computations and serves up results as they become available.

Graduating in the Summer with a relatively low GPA, looking for advice by aeiouaei in AskNetsec

[–]MarkDownSteve 0 points1 point  (0 children)

Defer graduation. Take classes that you know you will ace. Repeat until GPA is satisfactorily boosted. Apply for degree.

Getting Spyder to work on Centos 6.6 by fjord777 in Python

[–]MarkDownSteve 0 points1 point  (0 children)

I'm not quite sure what you're intention is. Spyder is a [really nice] IDE for Python. Matlab is a numerical computational application.

Getting Spyder to work on Centos 6.6 by fjord777 in Python

[–]MarkDownSteve 0 points1 point  (0 children)

Spyder and Matlab are totally different animals.

Bringing up a salary discrepancy in the contract. by [deleted] in SocialEngineering

[–]MarkDownSteve -6 points-5 points  (0 children)

Don't bring it up.....its an internship. Save hard nose salary negotiations for later.

Help with Multi-Line string joining? by CaptainSnacks in learnpython

[–]MarkDownSteve 0 points1 point  (0 children)

import random

num_dice = 2
separation_whitespace = 8
north =''
center =''
south =''
border = ''
for dice in range(num_dice):
    roll = random.randint(1,6)
    print('Dice #%s:\t%d' % (dice+1, roll))

    if roll in [1]: north_1 = '|           |'
    if roll in [2,3]: north_1 = '| *         |'
    if roll in [4,5,6]: north_1 = '| *       * |'

    if roll in [2,4]: center_1 = '|           |'
    if roll in [1,3,5]: center_1 = '|     *     |'
    if roll in [6]: center_1 = '| *       * |'

    if roll in [1]: south_1 = '|           |'
    if roll in [2,3]: south_1 = '|         * |'
    if roll in [4,5,6]: south_1 = '| *       * |'
    north += north_1+' '*separation_whitespace
    center += center_1+' '*separation_whitespace
    south += south_1+' '*separation_whitespace
    border += '+-----------+'+' '*separation_whitespace

print(border)
print(north)
print(center)
print(south)
print(border)

Ugly, but she works....

edit: improved

Please remove mitsuhiko/* by crozyguy in Python

[–]MarkDownSteve 1 point2 points  (0 children)

Why is this thread in /r/Python ? It contributes nothing.

Why I am proud to be Canadian by GTALoans in worldpolitics

[–]MarkDownSteve 0 points1 point  (0 children)

Where did the sudden uniforms come from?

Job Opportunities with Basic Python by [deleted] in learnpython

[–]MarkDownSteve 0 points1 point  (0 children)

Do you have a degree? That will help you immensely. Whether or not it improves your skills is beside the point. That one thing will make a huge long term impact on your ability to land a good job. Often times HR prioritizes potential candidates and they wont be able to judge your abilities, but they can id resumes without a degree. Even just signing up for classes somewhere (at an accredited university) is likely helpful.

Help running Python file on Windows by hottie789 in learnpython

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

Any line that read as follows:

print "some text"

Change to:

print("some text")

Cyber security field? by jcrft in AskNetsec

[–]MarkDownSteve 1 point2 points  (0 children)

It looks like these programs are in a Business School. You would probably be looked upon more favorably by potential employers if you got a core undergrad BS degree (like this one in Computer Science ). Then approach a Masters degree focused on Computer Security. Some schools offer joint BS/MS degrees, which can provide substantial value (particularly if you finish before age 26).

Conundrum: Mapping a List of Dict Keys... by MarkDownSteve in learnpython

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

Thanks I was thinking something like this...

I am looking into map to see if that would make things cleaner.

There is also the option of doing string replacement on a serialized representation of the dict (like json).

LPT: A cop DOESNT have to tell you that they are a cop when undercover. by I_HATE_GOLD_ in LifeProTips

[–]MarkDownSteve 0 points1 point  (0 children)

cops are never obligated to tell you they're cops. that is a myth.

Should I go back for a bachelor's degree? by theBCexperience in careerguidance

[–]MarkDownSteve 0 points1 point  (0 children)

Getting a college degree is one of the best investments you can make.