« first day (2306 days earlier)      last day (2656 days later) » 

12:59 AM
Explaining about Clebsch--Gordan coefficients in e-mail, perfect ending for a day:D
rhubarb
 
 
1 hour later…
2:05 AM
@AndrasDeak It's got an upvoted, accepted answer, so it's undeletable.
 
cbg .+
 
 
2 hours later…
3:56 AM
cbg!
Does anybody know if Django web server for development (runserver command) allows redirection? I want to redirect image files to some custom path. I didn't find any useful information about this at the moment :/
 
5:04 AM
Cabbage :-)
 
5:22 AM
morning cbg
 
6:01 AM
cbg
re.findall(r'(\w)+', 'Helloob') --> ['b'] Whats the explanation of this?
Keep matching single chars and capture the last one?
 
Each char gets captured, but each capture overwrites the previous one. I think. :)
 
6:18 AM
I think re module allows max 100 capture groups. The other day someone was doing pattern = ''.join(list_of_tuples) and got error of capture group size overflow.
 
Note that if we use a non-capturing group we get the whole string:
>>> re.findall(r'(?:\w)+', 'Helloob')
['Helloob']
And if we use search instead of findall:
>>> re.search(r'(\w)+', 'Helloob').group(0,1)
('Helloob', 'b')
So my theory above seems to be correct. ;)
 
Yep. :) I was thinking like if the first character matched is 'H' should it search for more 'H's' instead of '\w's'
 
Hi All,
I need help.
I have to write a script in python that will do following actions
I have a xlsx/csv file in which there are 300 cities listed in one column
1. I have to make all pairs between them and also with help of google api I have to add their distance and travel time in the second column

my file is like this:
SOURCE
Agra
Delhi
Jaipur

and output be like
SOURCE DESTINATION DISTANCE TIME_TRAVEL
Agra Delhi 212 10
Agra Jaipur x dist. x time
 
6:34 AM
@MYGz No, but you can do that sort of thing using a backreference, eg
>>> [m.group(0,1) for m in re.finditer(r'(\w)\1+', 'abbcccdeeee')]
[('bb', 'b'), ('ccc', 'c'), ('eeee', 'e')]
 
It will sort the list but I have to make all possible combination
 
6:45 AM
@MYGz: Here's a silly application of backref matching:
>>> p = re.compile(r'^1?$|^(11+?)\1+$')
>>> [i for i in range(100)if not p.search('1'*i)]
[2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97]
 
I see. pm2ring series? :D
 
You can read about it here: stackoverflow.com/a/2795112/4014959 Basically, if the string of 1's can be broken up into a whole number of equal-sized groups it will match, so only strings of 1's of prime length will fail to match.
 
cbg
 
@ShubhamSrivastava Like this:
cities = ['Agra', 'Delhi', 'Jaipur',]
for src in cities:
    for dest in cities:
        d = get_dist(src, dest)
        t = get_time(src, dest)
        print(src, dest, d, t)
Writing get_dist and get_time is left as an exercise for the reader. ;)
 
@PM2Ring Thanks :)
 
7:02 AM
@ShubhamSrivastava Your question is pretty broad. And I've never used the Google API. So try writing this and if you get stuck, you can ask for help here. But you'll have to ask a specific question, and post a mcve that focuses on your problem.
 
Ah it's primes. I didn't take a close look.
 
Yes, it's the primes under 100. I forget that not everybody recognizes them instantly. ;)
Q:What's better than a PNG of code? A:Two PNGs of code! :) stackoverflow.com/questions/42083097/…
 
It's a cool hack. It will be good to have a canonical for prime generation and validation, it comes up often.
heh. What language is that.
 
Not sure. At first I thought it was Vietnamese, but there aren't any accented letters.
Google translate detects it as Vietnamese. I guess the OP is using a computer without proper font / Unicode support for their language, which doesn't sound like fun. Or maybe they just don't know how to configure their editor / IDE.
 
7:51 AM
cbj
Pears Asparagus
i was installing some packages on my server
i was having hashlib error so insatlled it with easy_install ..pip is not installing it
now em getting errors
from httplib import *
File "/usr/lib/python2.7/httplib.py", line 80, in <module>
import mimetools
File "/usr/lib/python2.7/mimetools.py", line 6, in <module>
import tempfile
File "/usr/lib/python2.7/tempfile.py", line 35, in <module>
from random import Random as _Random
File "/usr/lib/python2.7/random.py", line 49, in <module>
import hashlib as _hashlib
File "build/bdist.linux-x86_64/egg/hashlib.py", line 115, in <module>
"""
TypeError: 'frozenset' object is not callable
anything i install with pip now em getting the same error
 
8:07 AM
@SohaibAsif Why are you installing hashlib? It's a standard module.
 
i dint know that after before installing hashlib with easy install
so now em stuck
nothing is installing with
and it took me 2 days to install all the packages on the server now em getting this issue
and i got only one hour to solve this otherwise have to setup new server which is a pain in ass
 
8:23 AM
It sounds like you've damaged your system's Python installation. I suppose you could un-install it & re-install it with apt-get / synaptic, but I've never tried to do that, and it may not be safe to do so. Hopefully, someone else can give you some advice.
Here's some more arithmetic fun with regex: calculating sqrt(2).
import re
s = '1 1'
pat = re.compile(r'(\d+) (\d+)')
for _ in range(9):
    s = pat.sub(r'\1\2\2 \1\2', s)
    p, q = s.split()
    r = len(p) / len(q)
    print(r, r*r)
#output
1.5 2.25
1.4 1.9599999999999997
1.4166666666666667 2.0069444444444446
1.4137931034482758 1.998810939357907
1.4142857142857144 2.000204081632653
1.4142011834319526 1.999964987220335
1.4142156862745099 2.000006007304883
1.4142131979695431 1.9999989693112423
1.4142136248948696 2.0000001768382867
 
> i was having hashlib error so insatlled it with easy_install ..pip is not installing it
hashlib is part of the standard library, you should not be able to install it with easy_install.
If python -c 'import hashlib; print(hashlib) points to a path in site-packages, then uninstall that again.
 
what is cv-pls ? when i click on it, it takes me to page with 0 question tagged!
 
8:57 AM
File "/usr/lib/python2.7/tempfile.py", line 35, in <module>
from random import Random as _Random
File "/usr/lib/python2.7/random.py", line 49, in <module>
import hashlib as _hashlib
File "build/bdist.linux-x86_64/egg/hashlib.py", line 115, in <module>
"""
 
Morning.
 
9:13 AM
@PM2Ring Does it really work that way? This question is just a dupe, many upvotes on Q and accepted A, but there's one delvote and I see a del link (not in the mood to try deleting it myself)
is there an additional filter that hinders a delvote going through in this case?
 
9:26 AM
@Naveen I think BR may have pinged the wrong person with that link (sopython.com/wiki/cv-pls)
cbg('all', snotty=True)
 
@IntrepidBrit not so intrepid now, eh? Cbg, hope you get better!
 
More like LethargicBrit.
 
recbg
 
welcome back
 
smell of fresh garlic @MartijnPieters
 
9:29 AM
cbg
 
@PM2Ring hmm? :D
@PM2Ring use a better algorithm, AnttiPatterns Human Language Recognition detects that as... vietnamese.
 
@AnttiHaapala Hey, I did say that I thought it was Vietnamese.
 
lol at the msgs... "what do you want to wear?" "shirt", "jeans", "coat"
 
@IntrepidBrit feel better. my house is like a plague pit at the moment, I was glad to get out today :D
 
Cabbage!
 
9:32 AM
@AndrasDeak Weird. But maybe the rules for dupes are different. They don't get auto-deleted because we want good dupes to be used as portals.
 
cheers withnail & andras. Everyone else, I find your lack of sympathy ... disturbing.
 
Cgb
 
@MYGz vietnamese
 
@AndrasDeak However, that comparing 2 list indexes question doesn't have a delete link.
 
@PM2Ring maybe needs 2 days?
 
9:36 AM
@BhargavRao I guess you meant to ping Naveen with that...
 
the program asks for weather and suggests clothes to wear based on that information and such things, looks like a RPG or sth :D
 
@AnttiHaapala I see.
 
@PM2Ring Did I ping you? :P
 
@BhargavRao Yes. It confused me for a moment. :)
 
@AnttiHaapala Perhaps you could help him? :D
 
9:38 AM
helped already
 
@AndrasDeak stackoverflow.com/help/privileges/trusted-user Ah. I can vote to delete immediately if it has a score o<= -3 Otherwise I have to wait 2 days, like 10k+ users.
 
How did you google translate an image? Or you typed the strings in search bar :D?
 
@MYGz Antti speaks Vietnamese
 
Oh. How come? Worked in Vietnam?
 
Why do you find it surprising that a Finn speaks Vietnamese? :D
 
9:47 AM
off to google maps
 
@AnttiHaapala are u here?
 
build/bdist.linux-x86_64/egg/hashlib.py
import hashlib as _hashlib
 
@PM2Ring Well, from google maps it's very surprising :D
@PM2Ring Even Demographics don't make that so obvious as well :).
 
I think I ought to let Antti explain why he speaks Vietnamese...
I feel sorry for this guy, especially after I originally gave him a wrong test for his Unicode problem. But I don't know PyCharm, or Windows, so I don't know what to suggest. stackoverflow.com/questions/42083890/…
 
10:03 AM
ah close votes, melon :)
 
@PM2Ring \o/
and as for your last question: suggest using linux :P
 
@Naveen Indeed. You don't have the rep yet to close-vote (or even to down-vote), But if you see questions that need to be closed you are welcome to mention them here with the [tag:cv-pls] tag, as long as you conform to the rules that Bhargav linked.
@AndrasDeak Strangely, many Windows users aren't happy with that suggestion. ;)
 
@PM2Ring sure
 
@Antti Ievan polkka has been stuck in my head for days (I love it). Do you have any other folk-ish Finnish music out there?
 
someone linked a question here few days back, question was so confusing, its like 2+2=fish ? it was funny to read the comments below on that question , those are all school kids? i guess
 
10:15 AM
@AndrasDeak Not exactly Finnish folk music, but you may find it entertaining for its dark humour:
Jan 18 '16 at 14:33, by PM 2Ring
Slightly scary Finnish blues singer Ina Forsman: What Have I Done
 
@AndrasDeak you might enjoy Hummani Hei.
 
@PM2Ring Thanks:) I guess blues is still not my cup of tea
 
Not exactly folk-music, but old anyway
 
Haha, yeah, I can see that:D
thank you
 
Oh and the name is actually "Juokse sinä humma", but the catchy part is that hummani hei thing :P
 
10:23 AM
:)
titles are arbitrary
 
Now, imagine a large crowd of drunk people singing that
 
haha:D
 
10:42 AM
@Antti Hungarian-made electric bus, apparently it's normal for it to spew sooty smoke during operation, as the heating system runs with an oil stove. On an electric bus. *sigh*
 
LOL
How very Magyar :D
 
unmistakably so
 
@AndrasDeak :D:D:D
 
@Withnail +1
 
10:53 AM
wow:D
 
@AndrasDeak that's our current "victator"
at least our PM isn't completely useless, he's just in the wrong office.
 
with a little luck his ass will explode
that oil system doesn't look very reassuring to me
 
A house we looked at when I was a kid had oil burning heating. Enormous tanks out the back, the previous owner thought it would be a good idea because the house was about 5m from one of the biggest refinieries in the UK
irregardless of actual facts/supply of oil :)
 
@AndrasDeak and yes, Ievan Polkka's lyrics are from 1930s and the melody itself is traditional and much older
 
yeah, I read that
 
11:25 AM
cbg
ast.literal_eval("2 + 3") --> malformed string?
 
I can't decide whether this is clever & Pythonic, or just weird. :) stackoverflow.com/questions/42087455/…
@MYGz Huh?
>>> import ast
>>> ast.literal_eval("2 + 3")
5
 
w00t
 
\o/ post 1k AT LAST
7
 
Yay!
 
ast.literal_eval("2 + 3") works because of some odd special case that is necessary for imaginary numbers.
 
11:29 AM
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/ast.py", line 80, in literal_eval
    return _convert(node_or_string)
  File "/usr/lib/python2.7/ast.py", line 79, in _convert
    raise ValueError('malformed string')
ValueError: malformed string
 
Been sitting just below for ages.
...funny... i dont... feel any different... mutates oh there we go.
 
@MYGz Yeah. But it works in Python3.
 
congo! You will feel the difference at 2K with instant edits :)
 
I still think the biggest change is 3000, with the ability to close-vote. Although I still remember how pleased I was when I finally had enough rep to post comments. :)
 
@MYGz Yeah, second operand needs to be an imaginary part in Py2
 
11:33 AM
which makes sense
1+2j is a literal, 3+5 is not
 
How do I make it work then in py2? not possible? eval() is evil, people abuse if you use it.
 
@MYGz I’m glad you asked!
17
A: ValueError: malformed string when using ast.literal_eval

pokeThe reason this doesn’t work on Python 2 lies in its implementation of literal_eval. For some odd reasons, the only actual number evaluation literal_eval supports is addition and subtraction where the right operand is a complex number. This was changed in Python 3 so that it supports any kind of...

 
Very Blue Peter poke, "Here's one I prepared earlier!"
 
Hey @poke You use PyCharm & Windows. Do you have any hints for this guy? I feel bad about the first dumb comment I posted... stackoverflow.com/questions/42083890/…
 
I don’t use PyCharm
 
11:41 AM
Ah, sorry.
Welcome @JibinMathew Please read our room rules. You may not link your fresh questions from SO here, you need to wait a day or two.
 
@PM2Ring biggest change is 20k with instadel!
 
11:56 AM
@AnttiHaapala I must admit it is nice. But it's only instant if the question is <= -3. Otherwise, there's still the 2 day wait.
I guess the ability to delete answers is nice too, although I rarely need to use it. A critical but diplomatic comment generally seems to do the trick of getting the author to self-delete. ;)
@AnttiHaapala Any thoughts on chat.stackoverflow.com/transcript/message/35525828#35525828 ? Maybe some neat trick with a metaclass?
 
diplomacy doesn't feel as good :D
 
said every Finn ever?:D
 
@AnttiHaapala 100k because mug
 
by the way, what is up with sopy merch?
 
@poke mod because diamond! :D
 
12:03 PM
@AndrasDeak @IljaEverilä might deny in public but privately agree with me :P
stack overflow surely has the crappiest rewards of any.
 
OP says system should not block the Python main thread. Meaning when the program finishes system should stay out of the way and keep the program running: stackoverflow.com/questions/42088120/… Different perspective! :D
 
12:22 PM
@MYGz Maybe he needs to post a better example. That code only has a main thread. And if his file runs out of data the read will block until data becomes available. What does he expect it to do?
 
I think "tail -f file" would do what he wants to do? If he just wants to print it.
 
12:46 PM
Newbie surprisingly uses while... else. Or maybe that was just an accident. :D stackoverflow.com/questions/42089905/…
 
inb4 somebody "fixes their indentation"
 
12:58 PM
Oh. The kid with 220 just deleted their answer. I hope mine didn't intimidate them. It's slightly annoying that you can't comment on deleted answers to open questions.
 
unless you're a mod:P
you can try writing a comment on the question, in case they linger...
NewNavBarGate is in progress
ignoring concerns about contrast, making the top bar sticky, oh I love this
 
I guess I could... but instead I just looked for one of their recent good answers and upvoted it. :)
 
yeah, that works:)
 
@AndrasDeak I guess making the top bar sticky is ok, it's not very big, and it is kinda handy. And it's already semi-sticky in the mobile view: it becomes sticky if you've clicked on the inbox or rep widgets.
 
1:13 PM
I refuse to acknowledge any handiness it might have
we have a home button and a scrollbar for a reason
people who don't use it find it way more intrusive than the people who would miss it if it wasn't there
especially since I don't like it:P
it's great to go on meta and pretend that the company cares about community feedback:D
The stickiness of the nav bar makes that +140% nav clicks less surprising. If you shove a bunch of buttons in someone's face, they're bound to start using them. That doesn't imply that it's necessarily a good thing to shove them into their face.
 
I'd prefer it to remain un-sticky, but I won't be too upset if it does become sticky. OTOH, why don't they just make it configurable...?
 
Well, yeah, that would be best. But SO isn't exactly known for customizable interfaces, is it?
I don't know any UI design thingies, nor front-end in general, so I could understand if it was too hard to maintain/design two versions of the page that works on all sorts of devices
although switching stickiness doesn't sound like rocket surgery
 
oh xkcd what-if. So good
 
@AndrasDeak Not as such. And the current interface has a few flaws if you don't have a large screen size. I can't go bigger than 1024x768 on this old monitor. So all I see of the star board is half of the top line, unless I go full-screen.
@WayneWerner I used to follow what-if religiously, but for some reason I lost interest for a while, and then the thought of catching up on the main what-if site and the related forum threads got a bit intimidating.
 
1:30 PM
What's the last what-if you saw? I have a series of several webcomics that I follow. I check for what-if updates after I read xkcd
ever since Google pulled the plug on Reader (jerk faces) I read a lot less :P
man - stackoverflow.com/q/42091015/344286 is amazingly bad
 
No idea. It was probably more than a year ago. I guess I could do a search, and try to find the last what-if thread I posted in on the forum.
 
Aside from the obvious syntax error
 
@WayneWerner I switched to liferea and it's fine
@PM2Ring there have been month-long hiatuses in what-if, helping your catching-up cause
 
@AndrasDeak Really? Wow. I thought he'd be keen to keep it regular, after doing the What-If book.
 
1:36 PM
Now I come to think of it, I stopped checking What-If regularly not long after the book came out.
 
it's especially flaky [or appropriate other word here]nowadays
Sun Bug
June 21, 2016

Flood Death Valley
October 18, 2016

Hide the Atmosphere
January 30, 2016
the last 3 ^
 
I guess I should make an effort to catch up. After all, it's not a monumental (and insane) task like reading the entire "Time" thread. :)
 
ah, OTT is hopeless
 
I just read the Hide the Atmosphere one, and I did read Flood Death Valley.
 
1:39 PM
Has anyone seen the TED talk about putting all of Google's data centers on punch cards?
 
And there's something slightly disturbing about the hard-core OTTers. :)
 
"slightly"
 
@Code-Apprentice No, but there was an xkcd comic thread that discussed putting all of Wikipedia on punch cards.
 
user6845426
Hi all :)
 
hello
 
1:41 PM
@PM2Ring IIRC, the TED talk described how he guesstimated to make a what-if
 
@AndrasDeak Newsbeuter is what I had been using
@Code-Apprentice I wonder how much space that would take up. It would definitely be a remarkably archivable storage solution
pretty much the only thing you'd have to worry about is bugs.
 
@WayneWerner literal moths eating the cards?
 
Silverfish. And cockroaches, I guess.
 
@WayneWerner IIRC, he compared it to the New York skyline.
@MYGz yup, that's the comic I'm thinking of. There's an accompanying ted talk.
 
@MYGz Ah, right. Maybe that's what I was thinking of. :) FWIW, I made a couple of posts to the forum thread for that one. forums.xkcd.com/…
 
At the end: "If people had wheels and could fly, How would we differentiate them from airplanes?"
 
AssertionError: expected 6 faces, got 1352
Oops.
It's surprisingly hard to find the faces of a polyhedron given its vertices and edges
 
user6845426
Does anyone know what Δ means in calculus? xD
 
delta
 
1:58 PM
That's a delta, isn't it? Usually means "difference between..."
Like "Δpos" means "difference between starting and ending position" aka distance
 
user6845426
Cheers guys. I'm just starting a project trying to make a neural network and some of the function equations look a bit daunting... Maybe I should refresh on my math first.
 
@Kevin I assume you mean you want to find the equations of the face planes, not just the number of faces given the numbers of edges & vertices. :)
 
Ideally I want a list of sets of edges, where edges are represented as pairs of indices into the vertex list
 
Oh. Do you only have the vertices? That's going to be a little tricky, and there generally won't be a unique solution, unless you can assume the poly is convex.
 
Right now I'm just trying to find the faces of an axis-aligned cube, and I'd be satisfied with something that works on just the platonic solids
 
2:10 PM
If it's guaranteed to be convex, this'll help: en.wikipedia.org/wiki/Convex_hull
 
So we can make a number of assumptions about convexity and such
 
An axis-aligned cube shouldn't be too hard.
 
Maybe I could do something like this: create an undirected graph using the given vertices and edges. Detect all cycles of minimum length. Those cycles are isomorphic to the polyhedron's faces.
This only works for shapes whose faces all have the same number of edges, but luckily that applies to all platonic solids
 
cbg
 
Yep. And it may be simpler if you move the cube so the centre of the cube is at the origin. The centre of the cube is the mean of its vertices.
 
2:13 PM
Yeah, I've got it as such now :-)
That will help me determine the correct direction of the face normals, which I'll be doing after this
 
\o cbg from the land of freezing rain all day
 
Once you've identified the face edges you can get the normals via cross-product.
 
Yeah, I only need to decide which cross product to use, since the vertices won't necessarily be ordered
 
We making spiky polyhedra over here?
 
So I just gotta choose between N and -N
 
2:16 PM
And the minimal cycles trick will work for any convex poly, although all minimal cycles won't necessarily be the same size.
@Kevin Since we're doing regular polys, it'll be easy to find the centres of the faces (they're the means of the points comprising the face). And the normals through the face centres pass through the origin. So just make sure all your normals point away from the origin (or all point towards the origin, although it's more usual to make them point away).
@MarcusS Nah, just convex ones. But he only has the vertices, not the edges.
 
@Code-Apprentice Yeah. I learned that from Breaking Bad and storing large amounts of cash. I assume that paper is similarly tasty.
 
Well I can get the edges by finding pairs of vertices with the smallest distance.
 
@Kevin Indeed.
 
except ValueError, TypeError: --> Works in Python2, Syntax error in Pyton3?
 
2:24 PM
Yeah I'm pretty sure they changed the rules for multiple exceptions
 
@MYGz except (ValueError, TypeError) as e: I believe is what works in all the python
 
Didnt knew the opposite of CamelCase. It's snake_case?
 
yea
 
snake > camel
 
DSM
Morning the-merge-succeeded-automatically cabbage for all.
 
2:35 PM
\o DSM, you working from the safety of your home ?
 
@MYGz Pep 8 calls it lower_case_with_underscores
 
DSM
Pshaw. I was in more danger a few weeks ago when I turned my ankle.
 
I came into the office today cause we need at least one person on the team in the office everyday... turns out the people who said they weren't coming in, came in... z z z
 
I usually use camelCase to refer to the style where the first letter is lowercase, and PascalCase to refer to the style where the first letter is capitalized. But I see PEP 8 doesn't share this distinction.
 
2:41 PM
cbg everyone
 
I suppose it's because you're not supposed to ever use camelCase-with-a-small-c in Python.
So there's no point in making a distinction.
 
DSM
Which is why I really wish we'd fixed logging and the other modules which use it.
 
Oops, I should probably read more than a sentence at a time. PEP 8 calls it "mixedCase"
> mixedCase is allowed only in contexts where that's already the prevailing style (e.g. threading.py), to retain backwards compatibility.
 
after long long, very long years I had panic attack today. It was awful!
 
@Kevin I call that one StudlyCase, due to this guy
 
2:44 PM
Very sneaky, PEP 8, saying "this is a violation of the rules, unless we do it, in which case it's OK"
(yes I recognize that this is an uncharitable interpretation)
 
well, threading has undocumented (now) camelCase methods
 
@anniejcannon Oh dear. :~( A few of us here know what panic attacks are like... I hope you're feeling better now.
 
the official API is pep8'd
(aaargh, my camelCases!)
I don't believe I've ever had a panic attack, but they don't sound like fun :(
 
@PM2Ring Don't know, still feeling a little bit bad.. I have nausea now... Why it happened again....
@WayneWerner definitely disgusting feeling ever, you can trust me... I think I'm pushing a little bit hard myself about programming. Don't know, my learning process is a bit of problematic like that...
 
I'm glad that more famous people in my spheres are being more open about mental illness - like kenneth reitz.
Definitely a +1 (or more) for inclusion
 
2:52 PM
@WayneWerner :) I didn't know he has a mental illness too.
 
I'm not sure this warrants asking a question on main site (correct me if im wrong) but hopefully someone can help... I've written a reusable app for django - but whos responsibility is it to run the unit test since the app doesn't have a django configuration set up.. I presume its a mock consumer app? Docs aren't very helpful here
 
reading up more about reitz, interesting backstory
 
@Sayse Probably not worth a main question site... but I'm not sure about the answer, either :D
 
"It was really important for me to fit the 90% use case, instead of the 100% use case. Just because one person wants some feature added doesn't mean it should be there. "
 
2:57 PM
granted I'm sure most of your code can be tested independently of Django functionality
 
learning this one the hard way
 
Yeah... and something that I just read...
> NOTE: Custom groups may be added in the future. Remember, it is easier to add features in the future than it is to remove them.
 
@WayneWerner - Haha yes, theres not a single line of code in this particular case that has anything to do with django, but Pycharms handy little "run unit tests" won't do anything since its one of djangos TestCase's... I'll just hope my mock app can run it I think
 
Now that may be a worthwhile question if it doesn't have any QA already...
"I have a django app, but pycharm's "run unit tests" doesn't run my tests, how do I do that?"
complete with a MCVE, of course
 
Ah sure MCVE isn't a problem but it isn't a complete django app, just a reusable app (pip package essentially) so it doesn't have anything to stand on on its own.. I'll go flesh it out a bit before I bother to raise a question, thanks
 
3:02 PM
You might want to check how other Django extensions are tested.
 
I'd be interested in reading it once you're done - I don't use Pycharm, but it would be useful to have the knowledge stuck in the back of my mind somewhere.
 
Making MCVEs in some frameworks (can be) tough to do (e.g. Android)
 
At least in Flask, you just set up a basic application before each test. It's a couple lines in a fixture.
 
Ah that might be what I have to do, Davidism. I'll try to remember to post a link to a question on here if I do make one. I can't imagine I'm the only person to ever come across this issue.. (Off to see what others do...)
If you were curious, django's own github just makes a separate py file that you need to run which seems to be the "goto" way

https://github.com/django/django/tree/master/tests#readme
 
3:19 PM
@WayneWerner aaaawesomest title!
 
3:29 PM
@anniejcannon IKR? :)
 
3:45 PM
tasty cabbages
 
\o waddup cbg Joe
 
o/
 
damn those salamanders!!
 
not an emoji though
 
3:50 PM
is pyQt still the most used GUI library for python?
 
tkinter is probably the most used
 
user6845426
Anybody know what ≡ means (triple bar)
 
qt is probably the most powerful
@dipper depends on the context
 
@dipper in what context?
 
could mean menu
could mean hamburger
could mean super duper equal
 
3:56 PM
mmmm hamburger
 
user6845426
hamburgers <3
 
could mean the number 3...
 
user6845426
This is the equation i got: Δv≡(Δv1,Δv2)T
 
but also not far off
The hamburger button (also known as menu button, options button, and less frequently as hotdog button or pancake button) is a button typically placed in the top left or top right of a graphical user interface. It carries an icon consisting of three parallel horizontal lines (displayed as ☰) and is named for its resemblance to the layers in hamburgers, hotdogs, or pancakes. Selecting (tapping or clicking) this button results in a menu being revealed (sliding out or popping up), which distinguishes it from a menu bar, which is always on display. Use of this icon as a graphical shortcut originated...
 
pretty sure that's the super equal
 
user6845426
3:57 PM
'less frequently hotdog button or pancake button'
 
That sign is used frequently in modular arithmetic, but that (a,b) syntax doesn't fit
 
This is a list of symbols found within all branches of mathematics to express a formula or to represent a constant. When reading the list, it is important to recognize that a mathematical concept is independent of the symbol chosen to represent it. For many of the symbols below, the symbol is usually synonymous with the corresponding concept (ultimately an arbitrary choice made as a result of the cumulative history of mathematics), but in some situations a different convention may be used. For example, depending on context, the triple bar "≡" may represent congruence or a definition. Further, in...
Oh look the ≡ is even in the one box
basically it's saying "this is the same as that"
 
user6845426
Oh right. Its the identity meaning yes?
 
I'm fairly certain it's the mathematical equivalent of the is in Python
 
user6845426
@WayneWerner thanks :D
 
3:59 PM
Can't say I've ever seen it used like that in a math context, myself
 

« first day (2306 days earlier)      last day (2656 days later) »