« first day (2497 days earlier)      last day (2454 days later) » 

3:04 AM
Is this the part of the day when stack overflow is sorta dead?
 
@AndrasDeak at the time that I asked, I just got off work and waiting for a friend at the coffee shop in Barnes & Noble. He showed up, so I just now got your reply.
@OneRaynyDay Many people who frequent this room are online during work hours in the United States.
 
@Code-Apprentice haha, I'm still at work and I'm working in NY :P
this stupid docker bug is driving me insane: stackoverflow.com/questions/45725947/…
 
3:23 AM
give up and go home
 
3:35 AM
I'm going to be away from work for 2 days(thursday friday), so I kind of really want to get this to work
I might even sleep at the office maybe
 
3:55 AM
sounds fun
 
gossip girl accent sleep-overrrrrr~
 
 
2 hours later…
5:32 AM
Hey Guys, Someone have experiance on Iron Python ?
 
6:03 AM
Yearling x 4 :)
cbg
 
6:14 AM
argh
 
argh cbg
 
I just want to get banned from SO
I am becoming Martin James Jr.
 
Martin who?
 
6:51 AM
@AnttiHaapala . I have successfully upgraded dajngo 1.6 to 1.8. Server running fine. But when run makmaigration command nothing happens. it gives "No changes detected". Previously im used South. I have followed doc from official website and stackoverflow yet no luck. any idea?
 
@SaravananN If there are no existing migrations for the app you want to create migrations for, you must specify the app name - python manage.py makemigrations app_name
 
@AshishNitinPatil ok then what about auth,session....some built in models??
@AshishNitinPatil.. I just upgraded to 1.8
 
Those migrations are already there, they will run once you do manage.py migrate
 
no..i deleted old migration files..
@AshishNitinPatil im following this doc docs.djangoproject.com/en/1.8/topics/migrations/… thats y deleted old migration files.
 
But those are built-in apps, you can't delete migrations for those (of course you can, but you likely haven't)
If those apps are included in your settings, then the migrations for those would be run.
 
7:04 AM
no i didnt deleted builtin models migrations only custom apps.
Yes...included in settings file...
 
Then the migrations might already have been run / are unnecessary (existing tables?)
Go to the shell and check?
Import the models from the built-ins and see if Class.objects.first() gives any errors.
Or better yet, you could check the db shell and see if tables exist
Or even better, just run showmigrations
 
morning
 
Thank you some apps have migrations files. but not all.. how can i do makemigration for all apps?
 
All custom apps you mean?
 
all are builtin and thirdpart lib
apps created by me
 
7:11 AM
cbg
 
I am not sure how to do it for all at once, but you can do it one by one like I mentioned above
 
ok..
 
python manage.py makemigrations app_name
 
okie.
 
Unsure about 1.8 but my 1.10 let's me give multiple app_name(s) to the command
positional arguments:
  app_label             Specify the app label(s) to create migrations for.
 
7:18 AM
ok
@AshishNitinPatil when migrate got "django.db.migrations.graph.CircularDependencyError"
is it with FK?
 
It has likely to do with migration dependencies and not FK in particular
But I could be wrong, you should check if there are any circular imports
 
7:41 AM
cbg-ning
 
8:05 AM
Ah, [python*] gives us 854,775 questions tagged. I suppose we need to retag about 50k questions lol
 
Cabbage
 
re-cbg PM2Ring
 
@AshishNitinPatil I guess I shouldn't be surprised. I mostly just look at the generic [python] tag, but occasionally I accidentally look at [python-3.x] and it's annoying to see all those questions that don't have the generic tag. A few people watch [python-3.x] and add the generic tag to questions that are worth keeping, though.
 
You can / should put [python*] in the search bar.
For now, it gives me this (automatically)
[python] or [python-2.7] or [python-3.x] or [python-requests] or [python-imaging-library] or [python-3.4] or [python-3.5] or [python-import] or [python-sphinx] or [python-2.x] or [python-multiprocessing] or [python-multithreading] or [python-2.6] or [python-3.3] or [python-unittest] or [python-3.6] or [python-asyncio] or [python-idle] or [python-module] or [python-decorators]
 
Wow! I didn't know that. Thanks!
 
8:14 AM
I have edited 2 questions and added the missing in last 5 mins alone
latest / new questions
 
@AshishNitinPatil amazing trick. Thanks!
 
One of the cute things you get at 10k rep is "Edit tags inline": an extra button appears when you hover near the end of the tag list, and clicking that button lets you quickly edit the tags without going through the whole process of editing the question.
 
Yeah, I know. Can't commit myself to that 10k run yet.
But I'll get there in this lifetime :-p
@AndyK I gambled, and the SO devs didn't disappoint :)
They actually surprised me by giving an explicit query though
 
@AshishNitinPatil insane
@AshishNitinPatil run 5k then
 
Yep, doing my bit. And some bytes in-between.
 
8:21 AM
@AshishNitinPatil :) I admit that it's getting harder to score rep these days, due to the low ratio of good questions worth answering.
 
Yeah, and adding to that, I don't necessarily answer the ones that would attract high votes, I got my Unsung Hero badge quite early on.
I mean, low popularity topics.
@AndyK Oh, forgot that this was somewhere in the back of my mind twitter.com/NormalHumanSE/status/897074521286606849
So, subconsciously tried something that I was already told...
 
@AshishNitinPatil I can relate to that: Unsung Hero was my first gold badge (not that I have many of those).
 
@PM2Ring Oh nice
btw, I am ahead of you in the badge deparment :-p
Can't wait to tweet - "Finally finished my first 5k". And reply with the SO profile instead of me sweating on a sunny day.
 
8:37 AM
What even is this diff
Was there no better way to highlight those differences?
 
Diffing is hard. Even git messes it up at times.
 
Yeah, but I can't comprehend how that even happened. The first two lines are literally the same, so why would you even think of highlighting (part of) them?
 
@AshishNitinPatil So you are! But only by 4 bronze... And I only need 3 more points on questions to get the tag badge. ;)
rbrb
 
@AshishNitinPatil lol
@PM2Ring bye!
 
@Rawing git thought the first line on left side is formed by editing the 1st and 3rd line on the right
i guess because this makes the diff a bit shorter than removing the 3rd and 4th line
 
8:47 AM
Makes sense I guess. Still, I'm a lot less impressed by diffs than I was an hour ago.
 
> Hello stackoverflow my old friend
 
yeah. auto diffs without semantic analyzing is hard.
 
@PM2Ring Also, I matched up today because of the new yearling badge :) Good luck on the bronze.
 
9:28 AM
Cabbage!
@Metaphox But diff tools actually work in removing/adding lines, not in changing lines. So the diff for this is actually removing 1 line and adding 3, instead of just adding two.
 
Cabbage
 
user3047181
anybody know how to type an asyncio event loop? I'd rather not use just (loop: Any), i'm too civilized
 
@BhargavRao \o
 
10:40 AM
@MeltyButter if that helps, event loops are subclasses of asyncio.AbstractEventLoop
 
@poke there's a difference between 'how diff tool apply change', which is line-based, and 'how git calculates diff (to decide which lines should be add/removed)', which can happen on character level.
i.e. foo = bar changed to foo = baz, the diff is r -> z, but the whole line will be removed.
 
I believe that's exacty what poke meant
cbg
 
11:38 AM
yep... well i was trying to say how the difference might be decided (or highlighted as it is in the screencap), rather than what will be in the patch
 
Morning cbg
 
cbg
 
cbg
 
11:48 AM
cbg
 
cbg
 
cbg
 
cbg
 
12:04 PM
cbg
 
cbg
 
cbg
 
cbg
 
@Rawing Well, when there aren't enough flags in the mod queue to give BR his "flat fix" - he gets a bit tetchy... :)
 
12:07 PM
Oh wait, now he did
 
Now you did
 
Now, someone should move the (removed) messages to the rotating knives.
 
quick, slice that non-salad garbage
I should have known better :|
 
We ended at 13.
 
12:15 PM
Anyone with historic records?
 
Umm... should set up a script, so every time someone posts a message, it edits it to "cbg"...
 
Hover to show message...
 
cbg chain!!!!!
 
you missed the salad train...
 
12:30 PM
@AshishNitinPatil I was eating ... -_-'
 
Ah sad, you could have chipped in some of it
 
Can someone confirm whether it is the numpy library that uses fortran behind the scenes?
 
scipy rather?
numpy is c AFAIK
 
I would not expect any prominent third party Python library to use any language other than Python and/or C
 
@AshishNitinPatil next time ;)
 
12:33 PM
oops, no wildcards there
 
I think FORTRAN is *.for (and it is correctly spelled in all caps)
 
Is pip even capable of installing executable files?
 
@PaulMcG nope, .f or .f90
at least that's what it should be
 
Well, it's been a while since I touched FORTRAN - first programming language we were taught in college. Our first homework was a Runge-Kutta integrator, forget this "Hello, World" stuff
 
12:38 PM
great...
 
Ok, so scipy has FORTRAN files. Does this mean that pip can install executables? I certainly didn't have a FORTRAN compiler just sitting around in my %PATH% before hand.
 
So how does that get built then?
 
like .c files do?
gcc/gfortran
 
morning everyone
 
12:39 PM
@PaulMcG you'll be happy to hear that the official name is Fortran ;)
 
> SciPy uses a variety of methods to generate “wrappers” around these algorithms so that they can be used in Python. Some wrappers were generated by hand coding them in C. The rest were generated using either SWIG or f2py.
 
the shouting one is fortran 77 (ancient stuff)
 
Is nothing sacred?
 
oh, you meant "how can it be loaded directly into python"
 
I live in a parallel universe where FORTRAN is all caps and javascript is all lowercase
 
12:42 PM
sorry Paul, I meant to ping Kevin with that message
 
@PaulMcG as I said, fortran 77
but most people use shouty fortran (I can't stand that) oh you meant the name
 
@LandonZeKepitelOfGreytBritn What Andras said (and he knows heaps more about Numpy than I do). OTOH, Numpy does have some Fortran-friendly features, like support for Fortran's convention for the way multidimensional arrays are stored in memory.
 
There's something more recent? Abomination!
 
Let's compromise and call it ꜰᴏʀᴛʀᴀɴ
 
12:43 PM
@PaulMcG such as fortran 2008:P
 
@AndrasDeak I can do SHOUTY_STYLE_IN_PYTHON_TOO - I just like to whisper the keywords :)
bbiab
 
I'll submit a pep soon for changing *.py to .PYTHON4 in 4.0
4
 
I am asked to get all that python (sh*t) towork on Android: github.com/cmusatyalab/openface
how doable does that look to you guys?
I mean...
 
looks like fun
 
12:45 PM
it combines python, scipy (and thus fortran), lua scripts and some C++ (for dlib?)
 
sounds like a great project for someone else to do
 
You are cursing the purpose of this room :|
 
I once tried to write the simplest of android apps with kivy+python, and I failed. This is not to say that the tools were inadequate, especially since I had never written anything android.
 
@AndrasDeak exactly! I started learning python 2 weeks ago or so, just in order to be able to write some basic software using this opensource library.
now this.
 
From the Fortran 90 standard - Note that the name of this language, Fortran, differs from that in FORTRAN 77 in that only the first letter is
capitalized. Both FORTRAN 77 and FORTRAN 66 used only capital letters in the official name of the language, but
Fortran 90 does not continue this tradition.
 
12:47 PM
When you say sh*t, do you mean "Python is sh*t", or "sh*t! This Python-related task seems difficult"
 
I would assume the latter
 
I eat, drink, sleep, and sh*t Python
5
 
because we all know python is the best
 
The meaning of the parenthesized term is ambiguous as it can be interpreted either as a clarification on the previous word, or an interjection displaying the reaction to the premise of the entire sentence
 
@excaza lemme post that to the matlab room
 
12:48 PM
I am not ashamed
 
I can just call my MATLAB from Python
 
bleh
 
I mean is being able to get that software to run on Android more of a: Android dev task, build/compilation expert or python expert task?
 
an android development task would be an android dev task
 
12:50 PM
I think you'd need to be an expert just to know the answer to that question
 
Would be quite cool if Bryan Craston in his Breaking Bad chem suit is advertising for MATLAB
 
I would also hazard a guess that there are plenty of acceptable Java facial recognition suites
 
@AshishNitinPatil so many people call it mathlab...one step away from methlab
 
Making Math
 
@LandonZeKepitelOfGreytBritn first you need an android dev to get the skeleton of an app, and then the android dev needs to know whether it's possible and how to call those underlying libraries in different languages
I don't think it's even close to being trivial, and it might need more than one expert
 
12:57 PM
Lazy solution: make the Android app communicate with a remote server that runs this library.
It may eat up your data plan and not work in tunnels, but it's better than nothing
 
any recommendation for task scheduling code. Which can start,restart processes, given a dependency between processes. P1 needs to run before P2,etc
 
@AndrasDeak thought so...
 
jjj
@pythonRcpp Im not sure if this is what you mean, but there is this thing called airflow
Its pretty neat imo (pythonhosted.org/airflow)
 
99% of the unit tests passed https://vine.co/v/eIdgjl9Xh1b
 
Another question opened by COLDSPEED, was previously closed as a dupe of this
Opinions?
 
1:12 PM
can a mod talk to him to teach him how to be better
every chunk of responsibility he received he did a bad job at
 
There was a meta post about a similar situation, let me see...
 
@vaultah it has coldspeed in the question so whatever it is, close it
 
Oh wait, posted the same link twice
 
yup, was about to ask
@vaultah I'd explicitly ask him in comments there why he unhammered it
> I do not understand why it is marked as duplicate, since I asked about theoretical reason...
even better: tell him to find a suitable dupe instead
reopening blatant dupes for the sake of opening them is just bad
tell him I sent you :P
 
dupe stackoverflow.com/questions/45736150/… target in comments already
nvm, closed already
 
1:19 PM
by coldspeed :P
FWIW I'm glad he started closing stuff too rather than answering every blatant dupe
@vaultah he's sometimes open to educational nudging, so you should try explaining this to him
 
cbg \o
 
cbg
 
I agree with the OP's assessment that that's a terrible dupe target.
 
that's OK, but it's still a blatant dupe
so if you bother with unhammering, bother with rehammering
you don't even need to do that, you can just edit the dupe suggestion list
perhaps that should be told to coldspeed too ^ cc @vaultah
 
Yeah, I'm still trying to find that Meta Q/A though. Since this isn't the first time, I'd rather quietly escalate that to mods (if possible)
 
1:23 PM
Invite him over, teach him.
 
@vaultah I don't think there's much they can do
you need to reform him
he was a worse repwfarmer than he is now until I pressured him a few times, so he's not hopeless
and he was here before, so BR's suggestion might work too
 
How about this as a dupe target?
 
"My question is not a dupe of that, because I want to understand it, not teach it to freshmen."
 
It's worse, IMO
 
and it might be bad form to dupe with a post with a historical lock
 
1:28 PM
all the good floating point accuracy questions are closed for some reason or other :/
 
because they're the equivalent of "how do I print a string in python?"
just google it
 
there's this and this
 
the latter one is my go-to "why does my equality test not work for floats" dupe target
 
Oct 18 '16 at 12:59, by Bhargav Rao
> This is not a dupe because the target adds 4 numbers and not 5. My question is different.
 
It's a question about number inaccuracy, so who cares if it's 4 or 5? They're roughly equivalent :p
 
1:31 PM
Nooo, that's not how it works.
 
25% error is too much
 
Exactly.
 
and this is coming from a physicist ;)
 
I'm still gonna try though. Not gonna leave it open like that.
 
well yeah
 
1:35 PM
I'm parsing XML with regex today and none of you can stop me
 
We don't need to, the universe will
 
Are we using "parsing" and "extracting some values" interchangeably again today?
 
@Rawing what's that pet peeve of yours about?:)
 
@Kevin why?
 
[insert gif here of Episode 1 Anakin starting up his podracer and shouting "it's working! It's working!" before abruptly erupting into a fireball]
@MooingRawr Because I don't want to spend more than thirty seconds on this problem.
 
1:37 PM
[insert gif here of Episode 3 Anakin - YOU UNDER ESTIMATE MY POWER! - proceeding with Obi cutting off his legs and arm.]
 
Because the problem is actually a subproblem of a subproblem of a problem
[insert gif here of that mech pilot saying "I am a genius!", followed by a panel of him in peril and shouting "On no!"]
 
Not just an XY problem but a VWXYZ nice...
 
@Kevin insert gif of "I trusted you!"
 
@Rawing Yes I am.
 
[insert gif here of Obi crying out, "YOU WERE MY BROTHER, I LOVED YOU", when seeing the aftermath of said terrible decision]
 
1:40 PM
@Kevin #lmao
 
I'm just trying to extract the tag type from any line that looks like "<??? Include="???.hbm.xml" />
 
Which I'm pretty sure is completely possible with mere regex
 
random fact, I have a mental image of someone who's in this chat as Obi..... but you will never know.
 
This new gif format is very easy on my bandwidth. I like this.
 
1:41 PM
@MartijnPieters :D AHAHAHAHAHHAHA
I can see how that could be Kevin and his superior who is asking him to do this... (if he is being asked)
 
idjaw's legoman has a pretty obiwanish beard.
 
nah idjaw's mental image for me is Burns from the Sharks (NHL)
 
I'm wise in my Lego wisdom
stay a while and listen
 
idjaw, in my head, your regular beard length is Burn's playoff beard length, but your playoff beard goes to Gandolf's level
When you skate your beard floats in the wind magnificently :D
You scream you shall not pass! -holding the blue line-
 
c:\Users\Kevin\Desktop>test.py
Scanned 94 hbms
All records are valid.
Music to my ears. Er, eyes.
Painting to my eyes?
@MooingRawr If he had his way, then it would be:
Apr 28 at 12:26, by corvid
I was going for more of this https://www.youtube.com/watch?v=eaEMSKzqGAg
 
1:57 PM
@MooingRawr Mystical like a unicorn.
 
Apr 28 at 12:30, by Kevin
@corvid Nope, you're a floating cat potato.
 
I'm adopting floating cat potato
 
I had a typo in the crontab that update the Let's Encrypt certs. But it's fixed now, sopython shouldn't give an error.
 
Warning: Do not taunt FloatingCatPotato
 
Also, cabbage, I'm back from vacation.
 
1:58 PM
Welcome
 
I'm reading some code on github for a poker hand evaluator and I found this line:

return bitrank | suit

I'm new to Python, what is this doing? is the pipe an 'or'?
 
Looks like bitwise or
 
ahhh
I think your right
Thanks @Kevin
 
More importantly, unicodesnake.sopython.com is also back up with a valid cert.
 
>>> 6 | 3
7
>>> 5 | 2
7
Given this evidence, it's either bitwise or, or an operator that discards both arguments and returns seven
 
2:02 PM
Guessing that bitrank is a value from 1 to 13 or so, and then suit will be some value 16-19, so that you can or them together and get a specific card. Because 52-cards' worth of memory is EXPENSIVE!
 
@PaulMcG yep this is it
 
Card = namedtuple("Card", "rank suit")  # where rank and suit are enums
 
@Kevin I will click it at home, hopefully I will remember :D
@davidism cbg, welcome back, hope you had a great vacation
 
@MooingRawr Saved you a click: it's a two second clip of Obiwan saying "hello there"
 
@Kevin oh which one?
 
2:10 PM
Mm I think the one where he drops dramatically down from a high place into a group of enemies, although it's hard to tell
Amusing programming related anecdote: yesterday while playing MTG Forge I had a creature which could double its power if I paid four mana. I happened to have enough mana to do this thirty-plus times, so I did. The following attack should have killed my opponent by a large margin, but instead he went from 20 life to ~1 billion. It seems I inadvertently triggered a signed integer overflow in the game logic.
One does not usually have 120 mana available during an ordinary game, so I guess the devs thought they were safe not using arbitrary precision integers for life totals and creature stats.
 
sounds like episode 3? when he faces general grievus, and hes like 'hello there'
 
@Kevin Sooooo... did you win that game?
 
On the other hand, roughly 20% of the game's demographic are people who seek out unusual game states just for the sake of doing so, so the devs really should have a more defensive mindset.
 
@Kevin there's a thick margin between "arbitrary precision" and "signed"
 
@Rawing Yeah. On the next turn I did the thing slightly less than thirty times, so as not to trigger another overflow.
 
2:21 PM
rbrb all, weekend is here :)
 
rbrb
 
@AndrasDeak Ideally they would be both signed and arbitrary precision. Both life totals and power/toughness values can be negative during ordinary play
 
ooh, I see
I naively thought that <=0 means dead
 
Thanks to cards such as char rumbler and phyrexian unlife
@AndrasDeak Normally yes but there are a handful of cards that lift that restriction
 
sounds like cheating
"You're dead, you lose." "Nuh-huh! Now I can have negative life! Pfffttf"
 
2:26 PM
Still my favorite card: Platinum Angel
 
A very large number of cards have abilities that alter the baseline rules of the game. Even something as simple as "this creature can't be blocked" violates the baseline rule of "creatures can be blocked".
 
I've not played Magic for.... a long time
@Kevin Priest of Titania and elves! (I am probably dating myself by that reference)
 
Priest of Titania is timelessly rad, though.
Elves is still a tier-2-ish force in Legacy. Perfectly cromulent strategy.
Although come to think of it I don't know that it plays P.o.T. all that much. Heritage Druid is the new mana generating hotness, alongside his best friend Nettle Sentinel
 
I used to have a fun elf deck (this is probably 15 years ago now?) with PoT and Llanawar elves as the basis, turn 1 llanawar elv turn 2 priest turn 3 something big
totally gimicky. but really fun when it worked :D
 
2:42 PM
Big fast mana has always been a popular strategy. These days people prefer the "Uraztron" suite of cards, which pretty reliably gives them seven mana on turn 3, with 3 additional mana each subsequent turn in the best-case.
Turn 3 Karn, Turn 4 Ulamog, Turn 5 drink the bitter tears of your enemies
 
@enderland welp I just got bamboolzed, I thought you were just out of college maybe late 20's
 
@MooingRawr well... hypothetically if I was 30, then 15 years ago I would have been 15 ;)
 
rb folks
 
I'm pretty sure I made my own elf deck at around age 13. It's still intact in my collection :'-)
 
DSM
Pointy-eared cabbage for all!
 
2:52 PM
@Kevin I traded nearly all my cards for elves and stuff like Avatar of Might
I forget what the 7/7 that let you do direct damage was, but I also had 4x of those and 4x of Rhox (sp?) which basically lead to quick games if things worked out
 
Let's see, I started right around the Onslaught expansion... That's 2002. So I was 14 or 15.
@enderland Sounds like Thorn Elemental.
 
@Kevin yeah, I just remembered that
ahh good times
 
Not an incredibly great card, but I loved the art.
 
@Kevin it was pretty good when you dropped it down on like turn 3 and then on turn 4 hit someone for 7+ damage they couldnt' touch
 
The wee little birds at the bottom are a clever way to indicate the scale
 
2:55 PM
though the rhox was better since it was more reliably possible turn 3 since iirc it only cost 6
 
I preferred dropping Kamahl, Fist of Krosa on like turn 3 and then on turn 4 hit someone for 19+ damage :-)
 
@enderland OHHHHHHHHH :D
 
I think that was after my time
 
I'm just waiting for angels to make a come back :(
 
I didn't really play much after they changed the card designs
 
2:57 PM
my angel deck is crying in my corner .....
but the next set is pirates and dinosaurs :(
 
scale birds are a common enough visual element in cards that they got their own name.
 

« first day (2497 days earlier)      last day (2454 days later) »