« first day (1957 days earlier)      last day (3216 days later) » 

user559633
14:00
@Kevin maybe they're thinking globally
user559633
Is there anything in Canada worth seeing above Montana, North Dakota, Minnesota?
To be clear some more, this was a card game. I assume there's an online version of The Resistance, but that's not what we were using.
Morning cabbage.
user559633
Cbg
i'm getting server 500 error with debug = False in django even with ALLOWED_HOSTS = ['*']. thoughts?
14:01
Alternatively, you were joking in implying we were all on laptops in the same room quietly playing an online game. Which is indeed a humorous scenario.
@Kevin Oh even awesomer! :) I have a few games of similar nature. Recently played Star Craft The board game...a bit too long, but really fun.
@clickhere No, because we're not mind readers and you've not supplied any code.
user559633
@poke it does bother me though that some of my comments were deleted.
You've asked so many questions here and been told about MCVEs and such so many times. Please start listening to us or you'll just be kicked.
Reminds me of Civilization the Board Game, which I have played three times but could never finish due to scheduling conflicts.
14:03
My last StarCraft game took 6 hours
Game of Thrones is similar and much shorter.
:-O facebook reactions here
@tristan Wow mine too, making this whole discussion completely out of context.
What is MCVE?
user559633
@poke Yeah, that's bullshit.
Especially so since my first comment was the one with the most important message. I highly disagree with this action @BoltClock
user559633
14:06
Flagged his comment.
@idjaw but is very much imbalanced
It’s actually a bit offending considering that he left this comment in:
@poke: To be fair, it is called [cv-pls] ;) — BoltClock ♦ 1 hour ago
@clickhere, haha, good one.
But not the comment he was referring to…
user559633
If someone still has that thread open or a screenshot with the deleted comments, I'd like to see it so I can open a meta post.
14:07
@GLaDOS I agree, 100%. But still fun :P
@Jon You around by chance?
Dominion is probably my favorite
That game is fantastic! yes.
I haven't been able to find anything as replayable as dominion.
Two games that I have been recently playing because they are awesome short games that you can play while drinking with not much thought are Machi Koro and Boss Monster
14:08
Haven't heard of them
I'll tell my friends about them
Seeing deleted comments is the only reason I personally would be interested in mod tools…
user559633
Same. Especially when a mod can shape the discussion to fit his/her preferred narrative. I find it offensive.
@tristan Key West is nice (don't miss Hemingway's house) but the drive down would be a pisser. Nice to get to the end/start of Route 1, though
I hope he was joking because replying to "please pay attention to all of our messages asking for MCVEs" with "What's an MCVE? I haven't been paying attention" is not a good indication of a fruitful future
14:14
@Kevin No more humorous than a sprint at PyCon, where everyone is on the same IRC channel. Funny indeed to see a roomful of silent people typing away all crack up laughing at someone's joke at the same time. Looks like telepathy!
user559633
StackOverflow needs a competitor.
I'm pretty attentive. I'm unfamiliar with the acronym but familiar with the concept. As far as I can remember, it's the first time I've seen that acronym.
Ok, humorous in a Big Bang Theory sort of way.
user559633
@holdenweb Yeah -- the drive isn't particularly nice, but it would be cool to say that the journey started in the north and included the very southern tip of Florida.
@clickhere it's OK to ask questions, but you should remember that this room isn't your only resource. The first Google hit for MCVE would have answered your question without bothering the good burghers of SOPython. One less chance to piss off helpful souls like them
I generally try not to bug them with minor issues, reserving my questions for when I'm like REALLY stuck. Of course most of the time they're no help then, but they try ... ;-)
Joking, chaps, just trying to keep it light while still getting a serious point across, I hope
14:21
for what it's worth.. I did google to try to find out what MCVEs were but I googled for "MCVEs" which yields nothing. Since I was unfamiliar with the acronym I didn't know whether or not the s was a part of the acronym, I assumed it was.
@clickhere And yet you asked the question "What is MCVE?"
Ok, that reassures me partially. The core of my frustration was that you seemingly didn't attempt to google an unfamiliar acronym, which would indicate that you'd have a lot of developing to do before any truly productive teaching moments could happen.
@tristan *sigh*
user559633
I think I'm done with SO.
14:24
If you really did some good-faith research before asking, then the road ahead is a lot less rocky :-)
This seems like a good time to put some pants on and go to work. See you all later
I hope this doesn't sound too patronizing. I do that a lot because I'm so much better than everyone else.
putting pants on?
That's wasn't the original intent of my message, but yeah, that too. I'm the best at putting pants on.
None of that "one leg at a time" nonsense.
....I was just about to ask if you did one leg at a time..
high five
14:28
@poke wassup?
@Jon Can you make me a screenshot of the whole (deleted) comment thread on this answer?
@poke technically yes - but realistically no - sorry
Can a nested dictionary be created from multiple variables? ie: mydict[json['var']['info']][variable] = "foo" , end result [{'info':{'variable':foo}}]. I'm thinking that it's now allowed since you are trying to combine an iterable object with a static object, I could be wrong.
whoops *not allowed
IIRC there is a way to do that, using defaultdict.
Let me see if I can put together a demo...
14:34
@JonClements Meh. Did I miss anything?
@SudoGaron Can you provide a data sample, and how you want it to look like?
Wow a lot of those comments have now been deleted.
@JonClements CBG jon!
Yay for meta.
from collections import defaultdict
nested_dict = lambda: defaultdict(nested_dict)
d = nested_dict()
d["info"]["variable"] = "foo"
print d
#result: defaultdict(<function <lambda> at 0x0000000002A11BA8>, {'info': defaultdict(<function <lambda> at 0x0000000002A11BA8>, {'variable': 'foo'})})
14:36
@InbarRose sure let me get some test data for you.
@Ffisegydd Yeah, I made it clear that there was an either or situation: Either keep all, or delete them all so nothing is out of context. It’s much better the way it is now.
The repr is a little ugly but the data structure is identical to {"info": {"variable": "foo"}} for practical purposes
@poke Your logic is infallible, though I'd have personally preferred that nothing be deleted.
Absolutely. I am very disappointed that comments were deleted.
and by very disappointed I actually mean I was in range when it happened.
yo @JonClements - how's life in leafy Kent?
14:42
JSON: [{'project_slug': 'test', 'project_id': 19855, 'date': '2016-02-11', 'task_name': None, 'iteration_name': 'test', 'notes': '', 'user_id': 81946, 'story_id': 392435, 'iteration_id': 76693, 'story_name': 'test', 'user': {'id': 81946, 'last_name': 'test', 'first_name': 'user1', 'email': 'test', 'username': 'test'}, 'project_name': 'Development', 'id': 38231, 'minutes_spent': 240}]

As you can see the json will get looped through and the 'first_name' will get pulled. the static variable is set outside of JSON as whatever we can call it variable = "foo".
@holdenweb Not raining for a change - otherwise SSDD :p
I help code my program is like the fourth question I've seen this month about mobile phone troubleshooting interfaces. Who the heck is assigning this?
@JonClements For a minute there I thought you mean "single-sided, double density," but I guess I am now showing my age
Wow that chat discussion is going nowhere fast.
@Ffisegydd lol.
15:00
bbiab
Computer science is hard. I'm going back to physics.
Why is CS hard?
The words are too big.
Compared to physics?!
At least CS uses real words. Subatomic particles sound like the names of Teletubby rejects.
Physics only deals with things that exist. CS builds castles out of dreams.
7
15:10
CS builds castles out of dr - SEGMENTATION FAULT.
You can use computers to make physics simulators, therefore CS is a proper superset of physics.
On the other hand, you can use physical objects to build computers, therefore physics is a proper superset of CS.
This is a problem.
It's not a paradox unless you say the word para - oh noes.
Huh this is being very strange... stupid async :\
you mean
@corvid I don’t know
what
I get it.
15:18
yield confusion
Haha, because messages sent asynchronously can arrive in a different order than how they were sent
@Kevin No more of a problem than isinstance(object, type), isinstance(type, object), and we live with that every day
I think it's impossible to build a true Turing machine because of the infinite roll of tape. All our computers are but shadows on the wall.
The problem I have is that I update documents on hooks so it leads to a lot of very strange occurrences and artifacts
Getting isinstance(object, type) and isinstance(type, object) to work in KevinScript took quite a few nights of coding and profanity.
15:20
@holdenweb Not to mention isinstance(isinstance(object, type), object)!
(and isinstance(isinstance, object))
@tristan I’m really glad that’s over. Rhubarb you later.
user559633
Me too. Have a good one
In Loop while checking if element in a list in Python, it appears as though the list in the OP's code is internally represented as a tuple. I wonder how Python decides when to make a conversion like that.
Clearly it can only do so if you never perform any list-specific operations on the object.
append, etc
DSM
DSM
Morning cabbage.
I'd like to poke around in the source to see how the byte code gets constructed, but I haven't got a clue of where to look.
DSM
DSM
Yesterday I had one of those "everyone but me is crazy" moments. I was speaking to a colleague -- Kevin's fangirl, as it happens -- when she had to ask me to repeat myself saying "flag" a few times because she thought I was saying "flay". It turns out that I may have a Western speech quirk I hadn't noticed before.
So, question for the room: does "bag" rhyme with "vague"?
15:31
No.
Not for me, no.
It does not. Not even a bit.
DSM
DSM
Wow.
Do you say flague then? Like flay-g?
DSM
DSM
15:32
That's exactly how she described it, "flayg". Apparently it's not just me:
> On the other hand, some Prairie speech exhibits raising of /æ/ before voiced velars (/ɡ/ and /ŋ/), with an up-glide rather than an in-glide, so that bag can almost rhyme with vague.
Bag is a hard A, while vague is a soft a.
Bag is the sound a sheep makes with a "guh" on the end.
@Kevin No poking please, but it’s likely the in <constant-expression> part in the lexer.
A set is also converted into a frozenset
Consulting the IPA pronunciation chart, I'd characterize them as /bæɡ/ and /veɪg/
Yeah, I would pronounce it "bah-guh" and "vay-guh"
@Kevin Yup, that would be right.
15:35
I love our English discussions.
DSM
DSM
I mean, I knew I said y'all and most of y'all don't, but still.
It usually involves DSM walking away shaking his head.
@Ffisegydd You mean American, right? I ain't no Brit.
An extra stereotypical southern united states speaker might pronounce flag as "flayug".
15:38
@poke Thanks a lot :-)
Didn’t know dis.dis would display the bytecode after the peephole optimizer…
Also works for BUILD_LIST and BUILT_SET when followed by an "in" or "not in" test. Super neat.
@Kevin Oh look, what is this crazy thing? sopython.com/wiki/Peephole_optimisations_for_tuple,_list,_set
@Kevin /fʟeɪgɰ/
Thank you @vaultah!
15:42
Uhh, I don't remember adding/editing it...
haha
Time to register letmesopythonthatforyou.com
I googled a thing and the fourth result was a sopython wiki article. That’s a nice first for me.
well today started off as a day where I really want to do a 10th story test with a few machines.....
In python, what is the prefered way to open an ssh tunnel? Just using a subprocess?
15:45
paramiko
probably
^yup
I suggest using Jquery, it is really great and -- whoops wrong room.
pyquery
@Kevin Combined with SSH-as-a-service that would probably work.
I need to open a ssh tunnel so I can select the dom elements, jquery would work perfectly!
15:46
What is the etymology of Paramiko's name? It sounds like a fancy spice you can only get at extremely hip restaurants.
@HamZa if you were joking, funny enough it exists: pythonhosted.org/pyquery
DSM
DSM
Update: my entire office, which has no other Western Canadians, agrees that bag and vague don't rhyme. :-/
> "Paramiko" is a combination of the esperanto words for "paranoid" and "friend".
Heh, neat.
I was hoping for Japanese actually :(
15:49
bag and vague don't rhyme. I agree.
Cabbage!
DSM
DSM
@poke: oh, from "miko"? Yeah, that'd have been my thought too!
Stand up for your rights as a Western Canadian. I'm pretty sure it's a protected class.
@DSM It sounds Japanese too… ぱらみこ
See if you can get your own Western Canadian bathroom, and special cafeteria menu options.
15:51
But “parlor shrine maiden” does not really make much sense for a SSH library…
Do you guys stick at your computer screen for 24x7? Guys give your eyes a break. I was just reading what mental disorders this can have on you
@Mr.Helpy I don’t know about you, but I need sleep every once in a while.
Sounds more like a lightweight antivirus to me. All the purifying power of a shrine maiden, with a form factor you can fit in an end table in your parlor.
Parlor Shrine Maiden™
Let’s create a competing SSH library and call it like that.
15:53
Parlor Shrine Madden '16
DSM
DSM
I.. I would buy that.
If we do, can we make it Parlor Shrine Medusa?
It's like street basketball, but instead of on a street it's in people's houses and/or places of worship.
and without basketballs?
or nets
15:55
Plus, isn't Madden football?
yes. minus basketball plus American football.
DSM
DSM
If there aren't any footballs involved "Madden" is a stretch.
Y'all read too far into my "like" comparison. There are other differences besides the one I highlighted.
Is there any kind of street American football?
real life, or video game?
15:57
real
DSM
DSM
You usually say "backyard football" and "sandlot baseball". Up North we say "street hockey", too.
Once upon a time the WWE collaborated with the NFL to create the XFL. That failed miserably
@DSM Great edit.
Actually, I don't know if NFL was involved in it:
https://en.wikipedia.org/wiki/XFL
@DSM We have street hockey in NY too.
DSM
DSM
15:59
@idjaw: I just remember "He Hate Me".
@DSM haha. what a horrible horrible idea that whole thing was....I'm glad it didn't take off.
16:13
@idjaw yeah, quite cool
Yamming cargo-culters (mutter mutter): "I know it should be a bug somewhere in the code, but I can't find it as I started python like half an hour ago". stackoverflow.com/q/35607178/4014959
cargo-culters....haven't heard that one yet
DSM
DSM
Yet another example of why you shouldn't use a bare except. He's passing a string instead of an integer as the port, and the bare except is hiding the TypeError.
@idjaw They code by imitation, with no true understanding.
didn't realize that was the term given to that.
is that term commonly used for that? I need to add this to my lingo dictionary
DSM
DSM
16:25
@idjaw: reference, in particular here for metaphorical uses.
My Meta rant about cargo-culters
education += 1. Thanks.
Forgive them, @PM2Ring, for they know not what they do
Unless, of course, they do know what they're doing. In which case beat them with a big stick.
but, how do you do it through a computer Fizzy? that's the problem
16:30
Drones. In particular, drones with sticks attached.
I can see it..
We really need SOIP. Smacks Over IP.
Or hire someone local to tune them up. Similar to Wade Wilson in the new Deadpool movie.
Which, by the way, if you haven't seen, you need to.
So good.
16:32
I really want to. I have free movie passes too...I need to make this happen.
It is one of the best superhero movies I've ever seen.
@Ffisegydd Or send in Elaine Roberts: xkcd.com/343
I've been super impressed with MCU recently. That, Guardians of the Galaxy, and Avengers were all fantastic.
I also don't remember the last time I laughed so much.
My favorite easter egg was hover for spoilers
16:34
I didn't notice that.
Has anyone gone through the Netflix ones? Daredevil, Jessica Jones?
I loved them
DSM
DSM
It was funny in a very filthy kind of way, although I laughed at different places than other people did. Very Deadpooly.
I started Daredevil. Should finish it.
If you wait a bit longer, you can double binge, because season 2 is almost here
I only had a vague understanding of Deadpool before seeing the movie, but it made me want to get into comics.
DSM
DSM
16:36
And they explained where the name came from, which I appreciated, having wondered.
Yeah, that was nice.
T.J. Miller was really good in it too.
It took me some time to get used to TJ Miller
I couldn't stand him at first. But I love him now
It was filthy and offensive but not actually offensive. If that makes sense.
His antics in silicon valley are hilarious
They could have easily just gone down a super offensive route for their giggles.
16:38
Yeah, it never felt like the joke was "Here's an offensive thing! Aren't offensive things funny?".
Incidentally, yes offensive things are funny.
So I have a DB that is shared between two apps - I need to reference a table that isn't within a Django App in my Django views, is this possible?
> I need to reference a table that isn't within a Django App in my Django views
@Nexion what do you mean by "table is not in my views"
DSM
DSM
I think the "written by" credit at the opening sequence was my favourite..
Oh yeah definitely. It just set the tone for the movie
16:40
Related: consult movies.stackexchange.com/questions/48786/… for a compilation of Deadpool Easter Eggs.
related: I started watching "House of cards" series. It's so good.
@Nexion oh, do you mean you have a legacy database but have no models for it?
More specifically, there is a users table that our second non-Django app uses that I need to reference in Django (as opposed to auth_user) - but Django prefixes all of its table references with the app name that it resides in
But there isn't an app for this table
I enjoyed House of Cards, but tbh I found it started dipping in the third season. I started losing interest.
I just re-watched HoC. I only watched 1 and 2 though because 3 was bad.
I'm looking forwards to 4.
16:42
for auth_user, you need more stuff
this is for auth_user
@idjaw still on 1st
@khajvah Enjoy! :) First two seasons are fantastic
I would like to substitute out auth_user - but the app is too large by this point. It wouldn't be feasible, and the client this is for is stupid stingy about work done.
my other favorite show is Hannibal
I'm so angry about Hannibal, because it is on the wrong network. It deserves so much more, because it is such an incredible show.
But I didn't know about that method, that is extraordinarily helpful, thank you
16:44
The first 2 seasons of Hannibal were great. I got completely lost a couple episodes into season 3 and never finished it.
Same with HoC, except I finished it.
So does specifying db_table under your Model Meta subclass just point to the DB name in the Schema?
@Nexion You don't need to substitute your table. You just need a custom user model, which will work with the existign table. YOu will also need to tell django.auth where your user model is
@Nexion yeah
Does the class name need to match the db_table name ?
@Nexion no
Awesome, thank you kindly
16:48
@Nexion Take a look at this if you have trouble with user_group table
@Kevin Well, that list has destroyed the rest of my productivity for the day. :P
@idjaw It's my all time favorite. It is really really beautiful
It's about a week until HoC4. So excited.
:D
@khajvah Do I need to create a migration for these models for Django to see them?
17:02
@Ffisegydd Whoa, really? I have no idea how I didn't know that.
@Nexion no
but your app might need auth_user_groups
so you need to create that table
Well so now I have a ForeignKey from MembersUserto auth_user, but when I try MembersUser.objects.get(user=request.user) I'm not getting anything
@Nexion Well, it is impossible to debug your problem like this
Nevermind, hooking off of username instead of direct object reference and now it works.
17:07
oh nice
I guess request.user doesn't actually give you an auth_user object?
@Ffisegydd That is fantastic.
@Nexion it does
My primary language is Java, these loosely typed languages always get to me.
DSM
DSM
Which loosely typed language is that?
17:09
Python?
Maybe loosely typed is a poor descriptor
@Nexion did you put AUTH_USER_MODEL = 'myapp.MyUser' in your settings?
@Nexion read the first warning in this: docs.djangoproject.com/en/1.9/topics/auth/customizing/…
I'm not modifying auth_user
then it should work out of the box
DSM
DSM
@Nexion: pet peeve. Python is pretty strongly typed, like Java. What's a little different is that it's dynamically typed. (People go back and forth about how much coercion you're allowed to have and still be strongly typed.)
Fair enough - I guess dynamically typed is a more appropriate term.
I think its the lack of type definition that gets me
newVar = someValue as opposed to int newVar = 3
17:12
@Nexion can you dpaste your MembersUser model?
I have it working now
@Nexion You said that request.user is not returning auth_user object
It probably is and I'm just thinking of it incorrectly. I'm still really new to Django
And python for that matter
My guess is that your MembersUser model doesn't have a proper foreign key
We bought out the office that was supporting this app and they just pointed at me and said "Sucks to be you! Learn it!"
17:14
can you post that field line?
@Nexion Python is worth learning, don't worry
user = models.ForeignKey(User, blank=True, null=True)
That's what I'm coming to find. I actually am really enjoying working on this. The data model is just setup like garbage because the other office that was working on this was a bunch of clowns and didn't know what the hell they were doing.
@Nexion looks fine
my guess was wrong
Other than ForeignKey
Typo =P developing on Macbook, on chat on desktop
Good to know the brand of what you're using
Now where did I put the keys to the Audi
17:17
@RobertGrant next to my Bentley's keys
Oh yeah I hate how much Bentleys cost to service. It's like I spend all of my money on Bentley services! Well, not all of it. A bit.
nah, I just change them once a year. Doesn't have time to break.
ok, enough
Wait. You guys actually get your Bentley serviced? Peasants. I just buy a new one.
Wait, you guys don't drive Teslas?
Go save a tree somewhere else
17:21
Oh I modded mine to burn money.
It burns twice the trees.
DSM
DSM
I don't even own a car right now. #savetheearth
3
You guys use a car to move between locations? I just have the building I'm in torn down and then I build a new one in its place that's a replica of where I want to be.
I actually "own" a 14 year old Toyota corolla
which makes weird noises
Years ago when I was getting a new car, the dealer wanted me to pay for my old car because they had no use for it as a trade in.
@idjaw send old cars to our third world countries.
17:25
Is that a thing?
not sure but whatever they throw away in Europe or USA, we drive till its end
a month ago, the brakes of my friend's car completely stopped working on a freeway
and the car didn't have handbreak
Speaking of, I really to get to my car inspected. It's only overdue by 6 months, so it can't be too bad, right?
overdue?
After what @khajvah just said, I think your inspection should go fine :p. That's frightening
In the US, we're supposed to get it inspected once a year.
17:28
@MorganThrapp oh we do too, except the "inspection" means paying 10 bucks for that inspection paper
I could do that, but I really should get the thing inspected.
btw, dont you get fines for having it late?
a police officer fined me for being late just one day
Yeah, but only if you get a ticket.
Which I did the other day.
DSM
DSM
How do you invite an OP to an individual chat?
17:31
In chat? Or on a post?
Get harassed by him with enough "one more thing" questions that "consider taking this conversation to chat" comes up in the comment box.
DSM
DSM
On a post. Someone's asked a question, and I want to ask him a bunch of questions easier to do in chat than in comments.
Elliptic curves are weird.
DSM
DSM
And to add to the annoyance, the user only has 1 rep.
How do you manage to keep up with sopython chat and work at the same time without being distracted all of the time?
17:34
I don't.
Two monitors.
That's a lot of context switches during work though
@GLaDOS sochat is not the cause of procrastination.
@DSM I don't think that'll work, since they won't have enough rep to talk in Chat
I figured, every time I stop using a "source of procrastination", I find another one
17:35
on one hand people raise interesting questions here and it's educational, but then I find myself reading all day
DSM
DSM
@PM2Ring: figures. Go Teams(tm)!
Hi guys, I need a little help with regex
I've an string that can be `somename_ID01` or `somename_otherthing`
I want to remove `IDXX` from the strings that have these prefix

I was trying with `re.search(r"^(\w+)_ID?", string).group(1)` but it doesn't works as I want

can someone give me a hand?
@GEPD What is it doing wrong?
@zondo it works when the string is name_ID25 (return name) but not when it's name_name2 (it should return name_name2
DSM
DSM
17:43
@PM2Ring: thanks. I vaguely remembered the puppy's Q, but I guess I thought things had been sorted out. :-|
@DSM I was hoping that things would have been sorted out by now, but I guess the developers have higher priorities...
In that case, just say result = re.search(...) if result is None: newstring = string else: newstring = result.group(1)
you're right... I think need to sleep a little bit xD
thanks!
18:05
Hey hey
Anyone here have experience with Django?
> For example, you do not need to say “anyone here know Django?” before asking a question about Django.
@Moshe You can just ask your question. If there are any takers, someone will answer .
@vaultah I thought that question sounded familiar.
Django is so overrated
why is it so famous, I don't get it
@Antti made a small edit to one of your answers, hope you don't mind :)
18:19
cya later guys
I'm trying to sync multiple iPads with a Django app running on a server.
I have no idea where to start.
Also, I turned off the CSRF token to get my iPad app talking to Django, but it needs to be turned back on.
@khajvah It got famous when it was less bloated, and now its fame just sucks people in
Anyone else notice that recently every day there's some new random.js library that's trending for Python web front end use lol
@MattDMo ? :D
bdc
bdc
cabbage everyone
@PM2Ring approved :P @MattDMo
19:26
interesting. Adding no-path-adjustment = 1 for your nosetests will not copy your cwd to sys.path, which ultimately can break your references. I'm trying to figure out when this would be used? I outputted sys.path for both, and the only difference between disabling/enabling is that cwd was missing.
This could be because of tox however...

« first day (1957 days earlier)      last day (3216 days later) »