« first day (2239 days earlier)      last day (2710 days later) » 

8:00 PM
yeeeessss. Sort of
 
something something PM censorship?
 
in tornado I could just do f = gen.coroutine(f) and it worked fine
 
@enderland I mean, you have to await <thing> AFAIK
 
@WayneWerner yeah, but you can only await a func that was declared with async
 
8:01 PM
Ah ha, it's ctrl+alt+drag. I'm glad this conversation inspired me to try every combination of modifier keys.
 
I guess I can pull that out of my decorator potential since it's easier
 
(instead of return/yield)
 
@AndrasDeak ^Number 3: Our neighbors: In which country is the prime minister accused of censorship having sent a dozen email to the national radio & tv company.
and... "must be D"... "no wait..."
 
Haha:D Oh right, that's Swedish, not Finnish
Turkey isn't even a neighbour, right?
even though my geography is rusty:P
 
"I wonder what happens if I do a block select and then narrow the window?", thought Kevin.
 
8:02 PM
@AnttiHaapala latvia?
 
@enderland Right. Though I guess in theory you could just wrap an await function call
 
Ah, I see. It makes exactly half of the zen of python into a jagged mess. Logical.
 
@Kevin until I clicked in to see the image I thought that was a horribly deeply nested if/if/if.. statement
 
@AndrasDeak hehe :D
@AndrasDeak stupid me
Lettland is Latvia
 
FWIW they're all the same to me, but they're not my almostneighbours:D
 
8:04 PM
def not_awaitable(thing):
    time.sleep(100)

async def awaitable(thing):
    return not_awaitable(thing)

async def waiting_on_others():
    await awaitable(42)
I have no clue if that makes any kind of sense
 
TIL Lettland in Swedish
 
Hmm, I can't replicate the behavior, trying again... I'll just have to live with the fact that cmd has bizarre inexplicable behavior.
 
@AndrasDeak remember, I don't use google translate for swedish
 
me neither
 
but I might be correct that it's not super broken ;)
 
8:05 PM
Litauen is Lithuania in Swedish, TIL again
surprisingly different from Finnish
 
I've spent way too much time reading crappy documentation trying to get tornado to work in another framework which uses geneve
t
 
@AndrasDeak do you know that we call Sweden Ruotsi, which is etymologically connected to Russia / Kievan Rus and so on, while we call Russia Venäjä
 
@Antti what are them (Latvia/Lithuania) in Finnish?
no, I didn't know that either:)
 
they have no current meaning, but some theory claims that Ru~ something is the Finnish name for swedes and when the Swedes moved in to the current Russia and mixed and settled there, then that name stuck :P
@AndrasDeak Latvia and Liettua
Though older word for Latvia is Lätinmaa IIRC which explains the Lettland
 
@AnttiHaapala we call them Lettország and Litvánia :)
 
8:11 PM
well that explains why you guessed right and I wrong :D
 
neat. PyCharm update has full support for 3.6
 
@idjaw :P
 
I started using Sublime text lately
it's cool
 
@AndrasDeak now they give the highest state honours to the PM <3
 
8:22 PM
well-deserved
 
@AnttiHaapala love the Pycharm :D
love it!
 
@idjaw I hate it
 
@AnttiHaapala have you tried sublime?
 
@AnttiHaapala The Grinch Who Stole Python
 
8:24 PM
I'd hate it even more
 
no
it's very good
and really fast too
 
Antti wrote his own IDE
 
you don't quite get it. I want an IDE.
 
@AnttiHaapala You did advocate Eclipse right?
once
 
JetXXXXX / IDEA whatever might be a good IDE in general
PyCharm just isn't particularly good IDE when compared against Java IDEs say
 
8:25 PM
well, you install a few plugins and it almost becomes an ide
 
"almost"
 
:D
 
what do you use Antti
 
pycharm
obviously
 
if PyCharm isn't IDE enough to me then sublime almost even doesn't end to begin satisfy me.
@idjaw PyCharm
why else would I hate it?
 
8:26 PM
well it could have broken your hate threshold until you used something else
 
I don't like pycharm because it's slow
 
I don't hate MacOSX, I never have to use it. Windows I do hate because I need to use it sometimes.
 
I wanted to switch to Emacs but it was too much trouble
 
slow isn't a problem (yes it always consumes 3 out of 4 cores or something stupid like that)
the problem is that nothing Python specific ever works in it
Automatic imports work... 56 % of the time
navigation works 37 % of the time
type inference works 89 % of the time
 
wayne u here? i finish reading your git posting but i got confused a bit. what happen says i work on a branch and you also work on a branch, say the original "tree" contain a function, both of our function that we just wrote, uses that original function, and both of us "changed it slightly", when we merge back how does git know which "change" should it take?
 
8:28 PM
spellchecker works 5 %
 
@AnttiHaapala It's hard to make something usable for Python
 
@MooingRawr it doens't!
 
@MooingRawr at a certain point you're going to end up with a merge conflict, and you have to then coordinate accordingly with which change has to stay
 
@khajvah then I go to see the bug tracker, and these bugs were fixed already. In version 3.
 
either it is obvious what change stays, or you have to discuss with the other developer how you need to accommodate for bot your code changes
 
8:29 PM
oh okie then i think i understand git.....
 
... what I see is a regression...
 
but i dont understand how ppl make "folders" in a repo....
 
@AnttiHaapala ...
 
@MooingRawr in Git there are no folders...
it explicitly doesn't store directories
it just stores files with / in their name
 
A blueprint isn't an app. Pass your app. That's why the function's called init_app. — davidism 30 mins ago
 
8:37 PM
@AnttiHaapala thanks
 
Trying to think of an insanely clever solution to AoC2.1 and flailing.
 
i ended up doing a messy lambda solution
Why is AoC making the easter bunny the evil thing
 
@Ffisegydd why do you need insanely clever?
@Ffisegydd did you solve it yet?
 
Santa and the Easter Bunny being mortal enemies is a fairly standard trope. Sluggy Freelance did it, Robot Chicken did it... OK, these examples aren't making headlines, but there's precedent.
 
@AnttiHaapala I've not actually tried yet, busy sorting some other things out
 
8:50 PM
@Ffisegydd now they give points for being fast: better do it fast than clever
 
Since the only reason to do a coding challenge is to impress your peers, obviously the most insanely clever solution is the best solution and vice versa
Judging by fastest solution is biased in favor of time zones that don't release the problem at midnight
 
@Kevin as if 7am was any better
or 5AM...
 
If only there was a way to do a "elapsed time since first opening the problem" leaderboard that couldn't be trivially defeated by sockpuppets
 
@Kevin the problem ofc is that... then the first ones on the list are those who copied the solution from Github...
 
@AnttiHaapala Good point, it's the people farther west than EST that have the advantage.
DSM ಠ_ಠ
 
8:54 PM
Indians too :P
@Kevin stop speaking Canada!
 
what's happening now
Canada where now
 
That's cultural drift for ya, eh.
 
@idjaw silence!
 
o.o
 
anyone can think of a nice one liner for this?
    val = {}
    table = []
    data = open(filename)
    for line in data:
        line = line.replace(',','.')
        table += [line.strip().split()]
    for x, value in enumerate(table):
        if x != 0:
            val[table[x][5]] = (float(table[x][6]), float(table[x][7]))
    return val
 
9:09 PM
living on the edge much? not closing the file ?
u could do it with like a few list comprehension o.o
 
How so
hmm
 
@BlueMonday no.
@BlueMonday a oneliner wouldn't be nice
 
I need sleep
 
unnatural oneliners suck
and are tryhard
 
9:15 PM
I guess
 
Could someone refer me some useful advanced tuts for general Python programming?
 
:|
 
I like codewars
 
I am too slow
there is also codefight
it had nice problems but I haven't looked at all problems
 
9:20 PM
@idjaw I asked about tuts from which you used to learn in past
 
I, for one, was born Pythonist
 
DSM
Painfully long Friday, with five changes of clothes so far thanks to numerous meetings. Am I a dev or a model?!
 
you're a dev model!
or...a model dev?
which one is it!!!!
 
I'm just a view controller dev :(
 
You are a view
quite a view
 
DSM
9:22 PM
The fact that I'm currently engaged in a fight not to have my picture taken for some kind of town hall meeting (?) suggests I'm not a dev model.
 
model dev
definitely
@dannyxn those references I linked are solid. For myself, I learned at work, and then worked on my own projects and looked things up that I was trying to solve and read docs.
 
@dannyxn btw, I read the official docs like a cool person
 
@DSM What...what do you do in meetings?
Am I doing meetings wrong by not changing after every one?
 
All Canadians are automatically enrolled as models. Because so many are hockey players and they get their teeth all knocked out. They try to preserve the few that are photogenic.
Look at this poor guy
toothless sob. But he is one hell of a hockey player
 
that beard is magical...
 
9:26 PM
@Ffisegydd you are not doing enough
 
and it helps that burns is a solid player
my part 1 solution for AoC day 1 doesnt work with day 2 T.T im sad
 
DSM
@Ffisegydd: today had the widest range of expected dress codes I've ever had in my life. Pretty much everyone laughed at me when they heard the details, and to be honest I don't blame them.
 
 
DSM
Heck with it, I'm going home, and maybe get around to today's AoC. In sneakers, jeans, an untucked plaid shirt, and a sports coat which has seen better days. #comfy
Rhubarb for all!
 
cheers @DSM
 
9:53 PM
do I want DSM to explain the dress code requirements or should I just continue imagining them? I'm hoping for wetsuit-under-a-tux. Field science support on a team that has both won an award and scheduled an ocean campaign.
 
that feeling when you just want to scrap months of work... :/
 
10:22 PM
*scrape
 
are we having a bonfire?
are we burning things and purging it and destroying
killing 'em all?
fire fire fire?
 
10:41 PM
I'm trying to use the request, and request-oauthlib modules for a script. Pip seems to install request fine, but when running `pip install request-oauthlib` I get the following error:

`Could not find a version that satisfies the requirement request-oauthlib (from versions: )
No matching distribution found for request-oauthlib`
 
seems like you are installing it wrong @AlexBollbach ^^
 
Anyone know what algorithm scipy.linalg.logm is using?
 
yeah the tutorial had a typo, thanks got it
 
+1
 
@MikeVandenberg how about the references in the docs?
that Higham dude might know
 
10:48 PM
Name contains "ham". Definitely trustworthy.
 
hmm that first reference seems to be the same used in matlab's implementation too. The issue is of course, that I'm looking to implement my own version in OpenCL so I don't get the luxury of built-ins
I'll take a look through that
as an aside, that project you helped me out with a while back is going exceptionally well Andras. Getting closer and closer to taking real data, using the software, and publishing
 
Awesome, glad to hear that:)
 
The proof of concept for the small scale application got to about 130x speedup and now we are working with the fully monty. Prospectively, it looks like 5-6 orders of magnitude speedup
figuring out this logarithm step would get us an additional order of magnitude. Currently the algorithm throws a matrix back to the CPU to perform it using scipy then throws it back to the GPU to finish in each iteration. These transfers take up like 95% of the runtime
 
yeah, that won't do
how special are your matrices?
 
I don't believe special at all. I have no reason to assume that they are diagonalizable or symmetric or anything. They are a collection of traces of a larger matrix. Essentially, we start with a large N^4 x N^4 matrix and construct a N^2 x N^2 matrix where each element of the latter is a trace of a N^2 x N^2 submatrix of the former
Perhaps the only notable quality is that the elements on the main diagonal are real whereas all other elements should be complex
 
10:58 PM
and your big one is a general matrix?
 
I'm treating it as if it is. Unfortunately, I disagree with my "supervisor" a bit. He seems to think that the large matrix should be symmetric as in the past, I suspect otherwise
 
I guess you can always assert that:P
I only suspect that diagonalizing is the most efficient solution for symmetric matrices
well, if it's complex symmetric, that doesn't help you much, does it?
 
I should say that my supervisor believes that the physical constraints on the system suggest that we should get a symmetric result, I think the constraints imply something else. So I was hoping to do the calculations without use of an assumption
but if being symmetric makes this loads easier, then I could just bite the bullet
and pray he's right =P
 
well, physical constraints are BS when it comes to experiments, there is always noise
unless there are mathematical constraints, such as the parity of a Fourier transform
 
The physical constraints show up because of our initial guess of our result. We guess that E_0 = I. The algorithm iteratively updates E but naturally imposes the physical constraints (trace preserving, positive semi-definiteness). One consequence of this guess is being symmetric. So currently, we are rolling with that guess of E_0, I think it should be something different which would likely change that consequence.
 
11:11 PM
ah, so it's a mathematical constraint for the time being
but you worry that dropping that initial assumption (which would break symmetry) would lead to a better result eventually
 
It would likely lead to a very very different result all together. Some context: the goal of the experiment is to expand the single mode project that they did in the past. The result was a matrix of size N^2xN^2 that, for lack of a better term, mapped input to output. The new project is to be able to do 2-mode. This results in a N^4 x N^4 output (an N^2xN^2 for every combination of input states).

My advisor suspects that we can't assume the N^2 x N^2 sub matrices are independent so we have to treat the N^4 x N^4 results as single entities. I feel that they can be independent so each submat
 
hello
 
@IsabelCariod cbg
@MikeVandenberg I see (sort of)
 
@AndrasDeak nope, definitely scrap. though the solution might be a lot more hacky than that
 
people here knows compressive lists?
 
11:22 PM
@MikeVandenberg depending on what you're actually doing with your matrices, your supervisor's hunch of them being interdependent doesn't sound too far-fetched
@enderland :(
 
I think I'm going to subclass the main Tornado event loop and add to it, but that's definitely going to be a next week undertaking
 
oh right, that async thing you asked earlier
 
I have this
return [re.match(rfc_3986, x) if x else "nup" for x in addresses]
 
@AndrasDeak Yeah I think we should have been able to stitch together a bunch of single mode results to "build" this N^4xN^4 giant output. He argues we can't. But that has to do with a bunch of physics I don't really understand
 
@IsabelCariod when you said "compressive list" did you mean "list comprehension"?
most people here know list comprehensions
 
11:25 PM
yes
 
what is your question?
 
returns [<_sre.SRE_Match object at 0x7fe0c11e2dd8>, None, None, None, None]
 
so all the values in addresses are truthy
though you still haven't asked the question yet, I'll wait
 
I want to return values
 
@AndrasDeak my guess is that it's not returning "nup" since addresses are a list of values, all of which will "be something" but the rematch returns None when there are no matches
 
11:27 PM
@enderland that's what I said
 
it's one
first
 
@IsabelCariod you are returning re.match(...) for each element, that's what you're seeing
 
17
Q: how do i return a string from a regex match in python

Jack DaltonI am running through lines in a text file using a python script. I want to search for an img tag within the text document and return the tag as text When i run the regex re.match(line) it returns a _sre.SRE_MATCH object. How do i get it to return a string? import sys import string import re f ...

 
if that's not what you want to return, you need to look at what re.match() actually is, and do something else with it according to your needs
 
like that, works
for links in addresses:
if re.match(rfc_3986, links):
return links
 
11:30 PM
because you're not returning re.match, you're returning links......
in the list comp you're determining what to return based on links, and returning re.match
 
i'm dumb
 
you have your logic upside down inside the list comprehension
@IsabelCariod don't be too hard on yourself, it's just a bug:)
 
wim
@AndrasDeak it should be like [sǝssǝɹppɐ uᴉ x ɹoɟ ,,dnu,, ǝslǝ x ɟᴉ (x '986Ɛ‾ɔɟɹ)ɥɔʇɐɯ˙ǝɹ]
 
is there a way to look at scipy's source code?
 
@MikeVandenberg github.com/scipy/scipy
you mean like that?
 
11:39 PM
lol yes...
Didn't think it was gonna be that simple. I remember not being able to find anything on matlab's source code
 
@wim I wanted to make a witty retort then realized that your name is essentially the same upside down
@MikeVandenberg that's open source for you
 
DSM
:O wim ~ wim, mind blown
 
a 180 degree palindrome :o
 
it's also pretty tough to wrap my head around, especially under the idea of implementing it myself
 
general and efficient linear algebra is a tough nut
 
11:51 PM
yeah it seems like it's calling a ton of its own functions, meaning I need to implement quite a few things
 

« first day (2239 days earlier)      last day (2710 days later) »