« first day (2144 days earlier)      last day (2804 days later) » 

3:04 PM
An acquaintance of mine has been reading too many pseudoscience books and now I have to convince him that the Earth's pole isn't going to catastrophically shift fifty degrees on the day of the next solar eclipse, just because Edgar Cayce said it would
I know with complete certainty that our conversation is going to begin with me saying "I read the Wikipedia article on the Cataclysmic Pole Shift Hypothesis, and..." and him replying "the fact that it has a Wikipedia article only strengthens my convictions!"
 
if you create a virtual env, and then you use source <venv>/bin/activate, when you use which python or python --version, it refers to the virtual env, yeah?
 
And possibly "I read that article too and it says ' two geologically rapid phases of true polar wander may have occurred. In each of these, the magnetic poles of the Earth shifted by ~55°', so you can't reasonably tell me that it's never going to happen again"
Then we'll bicker about whether "geologically rapid" can mean "within the span of a single solar eclipse"
 
user559633
@corvid yes. which python returns the first match of token python in path, python --version is calling the matching token first returned by path and passing it an arg
 
user6568562
Well, since fifty degrees should annihilate most attributes of earth, wouldn't change a thing if he donated all his belongings around Feb 20th
 
huh then that's strange. It can't find the module enum, which should be added in 3.4, so when I use python --version I get 3.5.2
 
user6568562
3:09 PM
Even better, my birthday is Feb 11th
 
I would leave him to his fantasies, but if this trend continues, I predict that within the next decade he'll spend his life savings buying healing crystals so he can resurrect dead Lemuria.
 
user559633
@corvid import enum barfs?
 
yeah, my basic code is:
 
This will inconvenience me.
 
import enum
from app import db

class State(enum.Enum):
  Massachusetts = "Massachusetts"
# throws: ImportError: No module named enum
 
user559633
3:10 PM
@Kevin pro solution: be the one selling the healing crystals, yoga magazines, homeopathic solutions, magnetic bracelets, vitamins, etc
 
user6568562
@Kevin That's coupling, for ya
 
If you convince him, I need to introduce you to my mother. She's been involved with that sort of woo for around a decade now.
She has SO MANY crystals.
 
DSM
@Kevin: well, I'm #teamatlantis, so if there's anything I can do to prevent #lemuriarising, I'm here to help.
 
user559633
wait are we no longer by policy #teamjacob?
 
user559633
you guys, you need to tell me these things
 
DSM
3:14 PM
@corvid: so python -c 'import sys; print(sys.version); import enumsays 3.5.2 and then raises?
 
@DSM I think it might have to do with virtualenvwrapper being broken. I tried python3 -m venv app && cd ~/Code/Projects/flask && pip install -e . then it seemed to work completely fine... not sure what the deal is.
 
DSM
Ah, can't speak to that. I never use venvw.
 
user559633
Yeah, i use this highly elaborate wrapper:
 
user559633
ve () {
        if [ -f env/bin/activate ]
        then
                source env/bin/activate
        elif [ -f bin/activate ]
        then
                source bin/activate
        elif [ -f ~/.virtualenvs/${PWD##*/}/bin/activate ]
        then
                source ~/.virtualenvs/${PWD##*/}/bin/activate
        else
                echo "${PWD##*/}"
                echo "No virtualenv 'activate' file found"
        fi
}
 
user559633
psychic debugging: you had a project of the same name (test?) in a directory that your wrapper hit before the one you expected
 
3:22 PM
Starting the betting pool on how many people will comment on mySQL using python: Select case sensitive fields using BINARY produces syntax error saying "you can't have two string literals one after the other" not knowing that "foo" "bar" is perfectly valid Python syntax
 
user559633
where do i open a bug report on the non-avatar'd among us having different gravatars?
 
class City(db.Model):
    __tablename__ = 'cities'
    id = db.Column(db.Integer, primary_key=True)
    name = db.Column(db.String)
    state = db.Column(db.Enum(States))
    latitude = db.Column(db.Float)
    longitude = db.Column(db.Float)
 
There's already a post on Meta about the gravatar problem, apparently.
 
DSM
Problem or feature?
 
Why would the enum throw a SyntaxError: invalid syntax?
 
3:24 PM
The last thing I head about it was "something something variations based on geological location something something" which I understood meant "we know why this is happening but can't be bothered to fix it right now"
 
@tristan why should we have the same gravatar?
 
user559633
@corvid because the Enum, as represented by your ORM, manifested in db is invalid in syntax according its rules?
 
@corvid most likely something above that line has a syntax error
 
user559633
@khajvah because on common names, unless you're using a user script, or have memorized the user's id, it's hard to tell who people are when the images associated with their identity changes?
 
To be clear, the problem is that one person has different gravatars as perceived by different people. The problem is not that multiple people have different gravatars from one another.
 
user559633
3:26 PM
I like how we're shadow writing disposable code for a job interview. The system works!
 
@tristan nvm didn't get what you wrote. I thought you were about different people having different avis
 
user559633
@khajvah Oh, weird, no.
 
user559633
There's someone else that uses a Commander Keen avatar on SO and when I come across him/her, my brain gets all warm and tense.
 
this is the whole file... it does give a slightly weird traceback here: sa.Column('state', sa.Enum(<enum 'States'>), nullable=True)
 
@Kevin It's worse than that. Last night, I saw 2 different avatars here for the one user. The small ones were red, the large ones were yellowish.
 
DSM
3:34 PM
Aside: I don't like all that duplication in the enum. Have a list of states and then build the enum from that instead..
 
I just had a look at the transcript, and they're all yellow now. chat.stackoverflow.com/transcript/message/32530838#32530838 But the full-sized one is red: chat.stackoverflow.com/users/4014825/inthuson
 
3:46 PM
@Kevin The gravitar issue sounds like a thought experiment about qualia.
 
Quick MRO question. Am I correct in saying that if a subclass doesn't have a method, it checks its base classes in order of inheritance? So if A defines foo and B subclasses A and overrides foo. Will C, which inherits from B but doesn't define foo, call B's foo?
 
@MorganThrapp in order of the MRO, yes.
 
Okay, just making sure. I'm seeing some weirdness and I wanted to make sure.
 
For straight inheritance (C -> B -> A) the MRO is the same.
 
That would be what I would assume. Good.
 
3:48 PM
You can see the MRO directly: ClassObj.__mro__.
 
Oh, awesome.
 
@corvid are you using SQLAlchemy 1.1 beta? Support for Python Enums wasn't added until then.
 
@davidism Yeah I switched it around to a series of relationships were state has many cities, and user has one city
 
4:22 PM
stackoverflow.com/questions/39210596/… Needs MCVE, which OP won't provide because "The program is confidential"
 
@Kevin Gone
 
I choose to believe that OP decided he didn't need a multithreaded program after all, and thus no longer needs to worry about race conditions.
"Thank goodness Kevin showed me the way and the light, that I might not use threading in the hopes of getting better execution times", he thinks
 
4:36 PM
Re-re-cbg
 
Re: Fwd: Cbg
 
If you checked snopes before forwarding, you'd know that cbg isn't real.
6
Tangentially related. I'm now 70% sure that my acquaintance is only pretending to believe in pseudoscience because it's a sure-fire way to engage in conversation with me. Who taught the normies how to nerd snipe?
 
Someone has asked me to look into Scala. I don't like the cut of its jib.
 
@Kevin Big Bang?
 
Quite possibly.
 
4:42 PM
my wife is still surprised that I don't really like that show
 
stackoverflow.com/q/39209603 mcve / 3 possible dupes / probably just go with unclear
 
user6568562
@JGreenwell That's one dumb show I grew to dislike
 
holy cow ...my mind was just blown ... I just learned about Emmet shortcuts and that they are natively supported in most ides (including pycharm)
 
patiently waiting for docs.emmet.io/cheat-sheet to load so I can find out what Emmet shortcuts are...
There we go... None of these look like key combinations.
Think I'm going to regret answering Prime code not working. Count down to the OP commenting "that works great! Now I have problems X, Y, and Z..."
 
4:58 PM
I got an Application Error while deploying heroku app.Please help me to solve it..
 
Try turning it off and on again.
 
Did you mean turn off app?
 
ul>li.nav-class#nav-id-$*20 <hit tab> (inside your ide (at least pycharm works for sure)
lorem10 <hit tab>
! <hit tab>
 
I don't know anything about Heroku, I was just hoping that "it" would be obvious from context
 
(oh yeah you need to be in an .html doc)
 
5:01 PM
@Andrea he is kidding. Your error message is too broad
to actually be helpful
 
recbg
 
div>h1{Some Title}+p{a paragraph}+p{another paragraph}^ul>(li>a#link-$)*5 <hit tab>
 
Interesting. Well, Notepad++ doesn't do that. I kind of wish it did though.
 
ok i am done ... but still mind blown
notepad++ does do it (with a plugin)
 
@Andrea I got the same error while deploying heroku app
 
5:05 PM
the github editor does it ... I think there is a plugin for VS ... etc ... i had no idea that this existed and am just blown away (too bad i dont do very much html :P)
 
Those shortcuts almost make me want to do HTML.
 
sock?:P
 
Think of how efficiently I'll be able to do the things I don't do.
 
Thank you, it now runs without errors, but it does not work :s if i type in 8, it type test 1 through 4 and writes that 8 is a prime number, which it obviously is not, as it should get eliminated at the first test right ? can you help further ? — Yannick Stulens 49 secs ago
Called it.
 
"can you help further ?"
can you do all the needful things for me?
 
5:07 PM
@Kevin have fun with it for the rest of the day
 
@MorganThrapp lol i know ... oh well im sure ill be able to use them in some pet project
 
I have been meaning to build something in Flask, just so I can say I know it for the job hunt.
 
@MorganThrapp Only takes 6 lines ;)
 
@WayneWerner Heheh. Somehow I suspect employers want at least 8 lines.
Maybe even 9, but that's pushing it.
 
I love job postings that require a "BS, MS or PhD degree" .... cause that's so helpful
 
5:12 PM
Hmm, has Python 3.x always returned a float for division of integer arguments?
>>> 8/2
4.0
 
@JGreenwell wonder when we get this
 
I feel like I never noticed this until today.
 
@Kevin slap
 
My mental model was "returns an integer if an exact integer solution exists, float otherwise"
 
5:13 PM
@Nishu did you have any solution for this Application error
 
ummm you may want to revisit any code you have written that has division :P
oh i see
 
@Kevin I am going to slap you with this herring, after which you must cut down the mightiest tree in the forest --- using the same herring.
 
As far as I know, it has always been that way.
 
@AnttiHaapala on SO of course
 
nm as long as you knew it would return a float at least when appropriate
 
DSM
5:14 PM
@Kevin: that was one of the Big Changes.
 
@Kevin it was the first change that was known to be in Python 3.
it was decided in 2001.
 
I remember the Big Change of "1/3 now returns something very close to a third, rather than zero", but not the Big Change of "3/1 now returns 3.0 rather than 3"
 
DSM
It's the Same Change.
 
counterpoint: nuh uh.
 
@Andrea I didn't get any solution
 
5:16 PM
@Kevin it too is discussed in pep 238
 
tfw your programming peer is ignorant of a decade old language feature:
 
 Semantics of True Division

    True division for ints and longs will convert the arguments to
    float and then apply a float division.  That is, even 2/1 will
    return a float (2.0), not an int.  For floats and complex, it will
    be the same as classic division.
 
 
I enjoy NLP but my internal alarms always sounds when people/companies want me to build systems that monitor communications
 
funny there are no junior developer jobs in SO careers
 
5:19 PM
@khajvah why would there be?
 
so noobs like me can find jobs obviously
 
if you announced junior-level jobs SO-wide... then all 1-rep n00bs would apply.
 
there are "junior-level" jobs but doesn't seem to be a way to sort by that
 
@khajvah you're a senior alredy :P
 
Looks like the other answerer is willing to play the X-Y-Z problem with OP. I am free!
 
5:20 PM
which is the best for deploying python-django apps? I'm new to python
 
DSM
You can seldom go wrong taking a hard pass on prime questions.
 
@Andrea ? :D
 
@AnttiHaapala I am mid level at most
 
I'd want to be a junior
 
I don't want to be there when OP discovers that you can't determine the primeness of an arbitrary integer just by checking if it's divisible by 2,3,5 and 7
 
5:21 PM
I've not really used SO Jobs until just last week - still updating everything - but I'm not really impressed with what I've seen
 
that feeling when you can ask someone else "how to do this" and then just say "uhhuh"
 
DSM
There comes a time in every man's life when he realizes 121 is composite.
 
@AnttiHaapala that's a romantic wish which you will regret after seeing the salaries
 
Almost 99.999...9% of primes fail to be detected in this way.
 
half the salary, quarter the headache
 
5:22 PM
@JGreenwell I like that you can search by language/tech, which isn't something I've seen on other job sites. Other than that, yeah. Not impressed.
 
I like the tags search
 
Or hang on, is this a type I error, or a type II error... Who the heck decided on these terrible names.
 
yup ^
 
@AnttiHaapala I am leading a project while having <2 years of actual company experience
 
@Kevin what do you mean?
 
5:23 PM
false positives
 
that method finds 100 % of the primes
 
imagine my headache
 
Do you have a different site that you like better, @JGreenwell? I'm looking myself.
 
but I still find the same - ill-defined and spammy job posts I find everywhere else (like ones that are remote and want you to, basically, build an application for them as part of application process)
 
5:24 PM
Ok, yeah, I was turned around. It correctly identifies all primes as prime. But it incorrectly identifies very many composites as prime, too
 
@MorganThrapp I like higeredjobs but that might not work for you ;) - actually it could though as colleges need developers too - mostly I just google "data scientist", "analyst", and "software developer" in the area I live and see what comes up
 
@Kevin fermat's primality test is a good start
 
I prefer Kevin's Primality Test: "does it look primey?" Works on 100% of numbers between 0 and 30.
 
@JGreenwell Hahaha, that works.
 
5:28 PM
half the job sites are just a link to apply on the company website anyway so just cutting out middleman
 
True.
I've been liking Glassdoor, but there's no way to search by technology.
 
@Kevin
def heuristic_isprime(n):
    if n < 2:
        return False

    for w in [2, 3, 5, 7, 11, 13, 17, 19, 23, 29]:
        if w == n:
            return True

        if pow(w, n - 1, n) != 1:
            return False

    return True

for i in range(10000):
    if heuristic_isprime(i):
        print("This probably is a prime:", i)
 
I use glassdoor and LinkedIn too (the second cause there are a few local employers here that are partnered with them) and my college's career site and any advisers I can bug or professors I impressed or etc
 
Probabilistic algorithms give me the willies. God does not play dice with the universe. Therefore, Fermat's primality test was invented by the devil.
 
@JGreenwell I should really spend more time on keeping my LinkedIn up to date.
 
5:38 PM
physics
 
DSM
Teamwork!
 
Bollywood physics is so bad it's so good it's bad
 
I'd love to
 
hard to find that entry job here and playing the "let me have my presentations and post my lectures online" with colleges (so as to show experience)
@khajvah No worse than spiderman grabs
 
user559633
@khajvah no one wants to hire a "junior" unless it's code for "qualified, but we can pay them like crap"
 
user559633
@Andrea deploying how? like, to a server that you have to manage?
 
@khajvah the problem is in your head, you should learn to lie like an American :d
see also the Brillant Paula bean
 
> asked Aug 26 at 0:00
 
user559633
@AnttiHaapala In my experience, Americans aren't particularly bad about bullshitting on their qualifications.
 
5:44 PM
aww...that one doesn't exist on wayback
 
@tristan idk, I only have experience with Finns and Americans :(
 
user559633
Maybe pick an easier target for when you just want to shit on a country.
 
user559633
Or better yet, just don't.
 
Why? Who said it had to be true? After all, all Americans are gun-loving freedom-jocks.
 
@AnttiHaapala lol. nice
I actually wonder what will happen if I completely lie about all my previous experience
 
5:46 PM
@JGreenwell PlebView
 
they don't contact previous emplyers anyways
 
user559633
@Ffisegydd No shit. BRB going to watch a sport of driving a car using only left turns while racist and obese or something
 
DSM
Oh, don't be so sure. In general, at least - I can't speak for your potential employers in particular.
 
granted I also run into a number of job postings which are just completely inaccurate - like saying need Python, C#, and little ASP.Net experience but then its all some JS framework
 
I still get emails for civil engineering work because I worked in it 5-6 years ago, and my CV/profile/whatever states that I work in data. Recruiters are useless.
 
5:47 PM
@tristan not enough miniguns
 
@JGreenwell I once saw a CTO position with salary offer of $100k
 
I can't help joking about Americans because it makes tristan so touchy :D
sorry to other Americans in here :P
 
user559633
Stupid America. Our education and healthcare systems are so poor that I don't even understand this satire I'm writing and I can't afford glasses to see the blurry text on the screen. I'd criticize it, but we didn't think it a primary concern to protect the people from the government or allow them to speak ill of it.
 
@Antti yeah for someone who bases his entire relationship with the room on snark, it's funny to see him get uppity when people knock 'MURICA.
 
I agree that all this snark against the USA is offensive. I suggest nuking everybody else.
 
user559633
5:49 PM
I doubt that I'm the reason you do it. I think because you feel it easy to criticize America because the rest of the world is our underdog and you don't find it contentious or xenophobic to try to knock my country.
 
it's 'murica <- need the apostrophe :P
 
@tristan Mr. Putin disagrees
 
user559633
I'd be annoyed, but I just got back from the gun show (both lifting and buying guns without a background check)
 
^ which is fine if by that you mean "gym" ;P
 
We better change the topic, we're running out of stereotypes to mention
 
user559633
5:51 PM
@JGreenwell alternatively, a lifted truck
 
user559633
@khajvah About which part? Putin is a very smart man with access to GDP data.
 
he Putin a lot of effort into forming his opinion
 
Finland is such a bad country that it is a joke by itself <3
 
hmm....Glassdoor does look interesting @MorganThrapp. As compared to other sites at least
 
@JGreenwell Yeah, it's mildly less completely terrible than other job sites I've tried.
 
user559633
5:54 PM
IDK, I have nothing but good impressions of Finland, and to a larger extent, Scandinavia.
 
@AnttiHaapala I would love to move to finland
 
you ever see a good answer that you still want to downvote cause it basically just does the person's work for them?
 
@JGreenwell the python string to list of numbers question?
 
@tristan cold.
 
@JGreenwell I do that often, if the question is blatantly lazy
 
5:56 PM
bad food, it is all true.
 
I just got back +3 from Antti's peer pressure post:P
 
Finnish summer. Cold but fortunately short.
 
Whiny locals.
 
user559633
I love the idea of living in a place that's always temperate, but unfortunately, and I've tracked this data, I work better when it's near or below freezing outside.
 
Do you wish it wouldn't finnish so soon?
 
5:57 PM
Finnish winter. Even colder. Unfortunately, it is not particularly short.
 
(First time someone has made a /finish/finnish/ joke to you I'm guessing)
 
user559633
@Ffisegydd Yes, but I doubt people are finnished
 
@Ffisegydd have you finnished yet?
 
@AnttiHaapala do you also have long lasting nights/days?
 
we should race the Finish vs Hungry jokes
 
5:58 PM
 
user559633
Is there a Hungary for Turkey political party?
 
@khajvah the important question is: do you have Reindeer? (and the answer is yes)
@tristan no, but there should be
 
I was hungary but then I found loads of greece on my turkey and it put me right off.
 
@tristan
 
@khajvah well, in the northernmost municipality there's this joke about a girl going to see her bf... "don't worry, I will come back before the sun sets"
 
5:59 PM
good job, boys
 

« first day (2144 days earlier)      last day (2804 days later) »