« first day (3450 days earlier)      last day (1501 days later) » 
00:00 - 21:0021:00 - 00:00

12:22 AM
My crystal ball is extra clear tonight
Also make sure my_stor wasn't overwritten with a scalar float in your real code. — Andras Deak 13 mins ago
type(my_stor) Out[36]: numpy.ndarrayrocky 7 mins ago
I hope you printed type(my_stor) right before the error happens, and not somewhere else in your code... — Andras Deak 5 mins ago
@AndrasDeak <class 'numpy.int64'> this is the type for my_stor before the error. — rocky 1 min ago
good thing I had already hammered it before I left the first comment
now at 21 comments and OP still hasn't responded with a facepalm
 
@wim My dream is to repcap from 200 downvoted answers being self-deleted. :)
 
12:37 AM
@PM2Ring hey! Are you doing alright?
 
@wim Me neither, since I started writing C in 1980. But I am sympathetic to newbies who've never used C. IIRC, % formatting is faster than the format function & method, but a little slower than f-strings.
@AndrasDeak Yeah. I was a little worried 10 days ago because I had a slightly high temperature, but I think I'm ok. I've been mostly self-isolating, but since I'm virtually a hermit that's pretty normal for me anyway. :) But I've almost run out of food, so now I'm out shopping... after I have a pizza for lunch.
 
but since I'm virtually a hermit that's pretty normal for me - we should start a club... although that'd kinda defeat the point :p
 
12:55 AM
Is it normal to use Typing and TypedDict to help parse json?
 
Umm.. how does that help parse json?
 
@PM2Ring take care!
 
yaknow, cuz some json implies dicts that have types and I'm wondering if it makes sense to say a function returns e.g. INDEX_TYPE = Dict[str, Dict[str, List[DirEntry]]] where DirEntry is a TypedDict defined a little earlier in the module
 
wim
no I would say that's not normal
 
Seems a bit too much work for no real benefit to me...
 
wim
12:59 AM
sounds like you want to write Go in Python
 
I'm writing my own scraper for edgar because I don't like the APIs the other edgar packages came up with...
 
wim
I love how you can just json.loads in Python. In Go you gotta define all these structs and crap before you can even "unmarshal" a json blob
 
Here's my DirEntry:
DirEntry = TypedDict('DirEntry', {
    "last-modified": datetime, #  "09/09/2014 10:04:13 PM",
    "name": str, # filename
    "type": str, # file or dir
    "href": str, # like name but for dirs ends in /
    "size": str, # "582 KB"
    })
Since INDEX_TYPE is going to be repetitive (apparently) I want to factor out the types, but then I lose the lazy evaluation of annotations, so I need that at the bottom
I think this could be useful to keep the arbitrary PYthon objects straight.
 
Are you using scrapy as a base?
 
requests right now
 
1:05 AM
okay... cos that'll do a lot of the work for you and has the concept of an Item with a definition that affects how it interprets/validates and what-not to actually write results out
 
ok
BTW still streaming live... :P
 
Almost dozing off I'm afraid - didn't realise it was just after 1am :p
So what page are you starting at on edgar and what ya doing?
 
I'm not sure yet. I'm hoping to get a million rows of data to run linear regressions on with R though.
 
Don't they just do a yearly complete dump or something?
 
Maybe, I figure I need to know the structure of the data better - that's one reason that I'm rolling my own solution
I hope mypy will be able to figure it out, I guess if it can't I'll just de-factor the INDEX_TYPE
 
1:13 AM
have fun! rbrb for now folks
 
1:24 AM
package/scraping.py:43: error: Invalid type "package.scraping.DirEntry"
:/
 
1:41 AM
holy cabbage... the accepted answer!!!1111
 
wim
I wonder what is the longest "train" of duplicates on SO. This one has like 6 ... Variables declared outside function [duplicate]
 
wim
2:05 AM
this upvoted comment is wrong, yeah?
(obligatory "don't answer in the comments")
 
2:22 AM
C.B.G
 
wim
what's C.B.G ?
 
2:41 AM
cbg in new clothes
 
wim
3:22 AM
Are there any ansi escape codes sequences in stdlib? I've just been hardcoding them, but it's not very readable
 
wim
4:02 AM
colorama is not stdlib
 
4:34 AM
@wim On *nix, there's curses, but I've never used it. I normally just hard-code them as constants, eg stackoverflow.com/a/50581693/4014959
 
5:17 AM
@wim Cuddly Bear Giant ;)
 
Crazy Badger Guy
 
6:00 AM
what's the shortest way to convert int as 1234 to 12.34 and 123 to 01.23 ?
 
6:44 AM
@αԋɱҽԃαмєяιcαη zfill?
Wait, no, that'll append, not prepend
No, I was right the first time. Convert to a string, zfill it and then split it
 
7:01 AM
it can happen
thanks @roganjosh
I've seen that user multiple times posting long images without any prior knowledge, even what he mentioned to the OP will not works. stackoverflow.com/a/60881167/7658985
 
7:33 AM
cbg guys
 
7:58 AM
@wim It's wrong, but I too have been victim to vote-lock-in. :/
The entire Q seems like one big XY problem, though.
 
8:38 AM
@AaronHall is there a reason why you don't use class syntax? I find it much more comfortable to use than having to write the assignment name and namespace dict explicitly.
 
8:57 AM
@αԋɱҽԃαмєяιcαη divide by 100, format with something like 05.2f
 
@αԋɱҽԃαмєяιcαη You want to divide by 100, then format as %02.2f . [f'{x/100:02.2f}' for x in [1234, 123]] or ['%02.2f' % (x/100) for x in [1234, 123]] nearly do it. Just don't get the leading zero-padding on '01.23'
 
What about 05.2?
 
Ah thanks MisterMiyagi: [f'{x/100:05.2f}' for x in [1234, 123]] or ['%05.2f' % (x/100) for x in [1234, 123]]
 
Miyagi says you're welcome
 
@AndrasDeak Oh right that was you. Thought it was MM.
 
9:12 AM
I am always disappointed in myself for being unable to get to a docs page that explains these formatting properly. :(
did find this though, but then i read the introduction page, thought i'd share this snippet.
> Everything here is intended for Python 2.7.X. The reason is simple - this is the version I personally use and its specification is frozen (no new features will be added), so the content is bound to be up to date for good. Moreover, Python 3.X is not catching up - there’s like seven or eight people using it worldwide.
Looks like someone predicted wrong. :)
 
@ParitoshSingh I'm pretty sure that wasn't even close to true when it was written with 2.7
So more like sour grapes
 
@AndrasDeak thanks! Looks like i actually did get to the right page, but failed to recognize it for what it was.
Im not sure whether thats a good thing or a bad thing though.
And yeah, probably the OP was resistant to change. can't blame them, many are.
 
And I needed Martijn's help to find f-string docs last time
Feb 10 at 19:37, by Martijn Pieters
@AndrasDeak I learned, several times over, that all string literal info is in the lexical analysis section: https://docs.python.org/3/reference/lexical_analysis.html#f-strings
 
oh. gotta keep that in mind
 
9:48 AM
cbg
 
it fails on [10,5,15,null,null,6,20]
which to me looks like a correct bst?
 
10:07 AM
A Google search for python format mini-language brings up the Python 3 & 2 docs pages for me as the top hits, and a good looking SO answer a few items further down.
 
@Permian That's just an array of numbers with null, how does this translate to a BST?
 
@Permian Also, where do you define null ? That's not a Python built-in, like None.
 
Hi @PM2Ring, long time
 
And your if root: is redundant. Execution can only reach that line if the if not root: test fails.
Hi @Devesh
 
Glad that this room is more functional than ever, given the current scenario
 
10:19 AM
One way to interpret list t as a binary tree is to set t[0] as the root, and then the children of t[i] are t[2*i+1] and t[2*i+2]. But @Permian needs to mention that... :)
 
hello
 
It's not a perfect room, but it does ok. ;)
 
@PM2Ring I think I have seen this while representing a binary heap, when thought of as a binary tree, and represented as an array
 
Greetings, Todd.
 
hey
 
10:24 AM
@DeveshKumarSingh Yep. docs.python.org/3/library/heapq.html As those docs say, the indexing is slightly messy, since we use 0-based indices, whereas CS textbooks use 1-based for stuff like this.
IIRC, xkcd 163 is relevant. ;)
 
user10984358
do you remember all xkcd's or just this one? O_0
 
@TheNamesAlc I remember a few, but that's one of my favourites. Also, 163 is a strange kind of prime number.
 
user10984358
why is that so? not well versed with numbers :)
 
I don't fully understand that article, but the fact that exp(pi*sqrt(163)) is so close to an integer is pretty impressive.
 
user10984358
there is a lot of math in that link, ninth Heegner number in the 9 Heegner numbers is my takeaway
 
10:35 AM
Yes, it's the largest Heegner number. There can't be any others. I don't understand why that is the case.
 
The article has pretty deep maths
 
user10984358
I would like to ask why but I dont really know anything that is stated there :/
 
And there is a numberphile video: youtube.com/watch?v=DRxAVA6gYMM
 
user10984358
I have his vids being recommended in my feed, will try this
 
OTOH, there are other non-Heegner numbers where exp(pi*sqrt(n)) is almost an integer. Like n=25
But yeah, that's pretty deep stuff. I reckon you'd need to spend several years intensively studying the relevant areas of number theory to understand it properly.
 
10:47 AM
When I saw john conway and ramanujam's name in the article, I knew it would be pretty deep :)
 
user10984358
watched the whole, that guy did a good job at explaining it, knowing that are there only 9 numbers I would expect the 9th number to be huge but 163 is where it ends is sure something
 
11:52 AM
dupe this of Test if any column of a pandas DataFrame satisfies a condition, just replace with df[columns].eq(0).all()
 
@MisterMiyagi because of this line: "last-modified": datetime, # "09/09/2014 10:04:13 PM",
 
^^ it's close enough to a dupe.
 
I could translate the - to an underscore, but I'd rather make as few changes as I can to the actual data.
Doing it just to use class definition syntax seems like the tail wagging the dog...
Putting the cart in front of the horse
 
What is the OP even trying to do here? It doesn't really strike me as polymorphism, it looks like some hang-up from some other language shoved into python
 
12:15 PM
@roganjosh I think he wants 4 subclasses with an abstract interface called execute
ExecutorPrintAndRun, ExecutorRun, ExecutorPrint, and ExecutorNoOp
Would that be doing his homework for him?
 
I had a feeling that an interface was involved. I don't think this approach is correct?
 
Define "correct"
 
Idiomatic and understandable
 
I'll give him an answer and we'll see
 
12:40 PM
@roganjosh it's always debatable... but I answered him
 
@AaronHall so I see :) I'm not sure I'm keen on the approach but I'm probably not the best to judge on OOP
 
1:03 PM
is there an obvious reason why my reversing the list in python doesnt work?
 
probably yes
list_r[::-1] will in fact reverse the list. Please prove how it doesn't.
 
I notice you have a comment there that says "Do not return anything, modify nums in-place instead.". But [::-1] does not modify in place. It creates a new list and leaves the old one unchanged.
Use my_list.reverse() to reverse a list in place.
 
Just don't return my_list.reverse()
 
Going by the comment, you shouldn't have any return statements at all
 
@Kevin how would i know this?
 
1:06 PM
Experimentation, perhaps
 
this is the sort of thing tutorials dont tell you
probably is you cant do it again! list_r = list_r.reverse()
 
Indeed. It's more or less impossible to become an expert programmer just from reading tutorials. Eventually you need to get your hands dirty.
 
exactly
 
@Permian I'd be surprised if they didn't
 
It is written: The master has failed more times than the beginner has even tried.
 
1:10 PM
docs.python.org/3/tutorial/datastructures.html#more-on-lists mentions .reverse and has an example showing it's in-place
 
@Kevin where is this written?
 
I dunno. In some sacred text somewhere.
 
It's more subtle to realize that [...] always creates a new list
 
Nobody has ever asked me to provide a citation for my pseudo-mystical aphorisms before
 
because we know It Is Known
 
1:12 PM
[nods]
Having poked around the language reference for a bit, I don't see any explicit guarantee that a slice returns a new object. We know that it does when used on a list, but this isn't true in general for all types.
For example, I notice that x = (1,2,3); y = x[:]; print(x is y) shows that tuples are happy to return a reference to themselves where possible
Normally I don't consider the tutorial an authoritative source, but since the conversation started with "this is the kind of thing you won't find in a tutorial", I'll make an exception
@Permian You may have already discovered this, but almost all modifying-in-place methods will evaluate to None, so you shouldn't use them in an assignment statement. Just list_r.reverse() by itself is sufficient.
 
@Kevin i had not found this out
good to know
 
1:39 PM
@AaronHall My bad. I'm spoiled by mainly using NamedTuple that way.
 
2:01 PM
@Kevin the docs note that list.copy is equivalent to list[:] which is the only candidate that might not return a copy. Since it does, every slice on a list should return a copy.
Homework exercise: prove that any slice of the empty list must return a copy.
 
@Permian Is this another one?
 
yes one more
i keep outputting just []
it wont append
 
@Permian time to debug it, don't you think?
 
list_slice calls list_new_prealloc unconditionally. I'm not prepared to say that this proves all slices return a copy, because it doesn't appear to handle slices with a non-one step.
 
2:09 PM
@Permian If you didn't keep asking here all the time to have your code debugged you'd have learned by now how to do it.
 
ok ok
i have tried btw
ill try some more
 
ctrl-f for "slice" in the list source reveals 150 matches, so it may take me some time to trace the code path for stepped slicing
 
@Kevin they have to, since everything but [:] has different content. It cannot be represented by the initial object without mutating it.
 
@MisterMiyagi wellactually [0:something_at_least_len] is the total
semantically trivial, programmatically extra cases
 
[1][0:1:23] evaluates to [1]. I recognize that this is a contrived example.
 
2:11 PM
also [-something_at_least_len_minus_one:] and friends
 
@AndrasDeak since [:] already returns a copy, and [0:something_at_least_len] can at most fall back to the same behaviour, the latter must return a copy as well.
 
don't know
 
@Permian I recommend not mutating any inputs (e.g. lists, dicts, ...) in recursive functions. return the result and explicitly aggregate it.
 
Ah, I think list_subscript handles three argument slice, and it also calls list_new_prealloc.
Not unconditionally, but in every case where it doesn't delegate to list_slice or crash
 
@MisterMiyagi not sure what this means
 
2:14 PM
don't mix list.append and recursion
 
@MisterMiyagi why not?
 
@Permian if you ever find yourself not being able to argue about your own code: try interpreting it on paper. But you have to pay attention.
 
because it is likely to get very confusing even for simple cases
 
Mar 15 at 15:13, by Andras Deak
when in doubt find a small example with only a few items and lay out execution on paper
 
@AndrasDeak ok
i do do this
 
2:15 PM
OK
 
but it doesnt always fix the problem when my problems are hard
 
your problems aren't that hard
 
like i just find a case where it happens to work
@AndrasDeak they are
 
You asked why it doesn't work, so you must have a failing case.
 
In my own code, I avoid mutation in recursive functions wherever possible. That said... Passing a list into a recursive function so you can collect a series of result values is something I see relatively often in other people's code.
I file it under "acceptable, if you know what you're doing"
 
2:18 PM
the latter part of that sentence doesn't lend itself to asking for help ;)
 
True.
 
file it under "we don't do that here"
 
fun fact: my code has gotten significantly better after I stopped writing code for myself, but for the poor guy having to debug it.
 
aren't those the same person?
 
the immediately positive upside is that the poor guy having to debug my code is usually future me, these days.
 
2:21 PM
No man crosses the same river writes the same code twice
 
@Aran-Fey after my cats have shed all their fur and grew a new pelt, are they still the same cats?
 
Does anyone know nginx well here?
 
I didn't know it was pronounced "engine X" until a month ago. So no.
 
Hmm, my phrasing there might as well have been "can anyone nginx good?". But does anyone have a reasonable knowledge of it?
 
2:24 PM
I thought it was "nuh-[hard G]inux"
 
@MisterMiyagi Yes. But more importantly, if you apply that advice to Permian, future Permian is only like 1 minute older
 
comedy option: ng as in "nguyen" + inux
 
@Kevin I thought it was en-jinx
 
@AndrasDeak consider thee +1'eth
 
(but I also knew about engine X; call it en-jinx anyway)
(and by "call" I mean "read in my head")
 
2:26 PM
with enough mumbling, that probably sounds the same anyways
 
It's "engine X" in my head
 
Batman!
 
If you create something and call it abcde then the onus is on you to inform everyone if it's pronounced as absidy. Same thing with nginx.
 
I think I figured that nginx was part of the Linux/Unix family
 
But anyway, I anticipate that I may need to pull down my site, expand the droplet I have, and I'll need help with Linux/nginx
 
2:28 PM
"but surely the lack of a vowel in between the N and the X should have tipped you off?", you ask. Not necessarily. It could have been created during the era where it was trendy to omit vowels from your product name. e.g. tumblr.
This is in fact the case, given that "engine" typically has two more E's than appear here. You can hardly blame me for inserting U's instead of E's.
 
it should be stylized as "N gin X" and it would work
 
There's an obvious list of people I trust but I'm not gonna call them out. I really need help on the Linux side. This suggests I'm gonna be building this app.
 
They do have a pronunciation guide, but it's a bit buried. Notably, you can't reach that page by choosing "FAQ" from the dropdown on the homepage -- that goes to a different FAQ.
 
I really wanna be the dumb backend guy. I can fix all that logic but I can barely navigate linux and that would be a stupid reason to delay progress
 
@Kevin perhaps we should ask about it more often
@roganjosh I'm sure they won't be taken aback if you tell them you need teamwork
 
2:35 PM
@Kevin weird. "en-juhn-eks" and "Engine-X" aren't exactly the same for me.
 
@AndrasDeak "they" is you guys.
 
my "they" is the people giving you the task :P
 
@MisterMiyagi Likewise. I wouldn't put a "uh" in the middle there. Alas, I don't know enough IPA to describe the regional pronunciation.
 
I've been only using linux for 10+ years but I'm an end user from many perspectives, and I don't know anything about web stuff either
@MisterMiyagi "jingks", really?
 
@AndrasDeak I wasn't being flippant. If you look at the message board, there's really no person with any deployment experience
 
2:38 PM
@roganjosh I don't mind giving some input on Linux per se, but don't do any web stuff.
 
@roganjosh I didn't say you were?
Didn't the board go up less than a week ago?
Something about Rome not being built in a day. Unfortunately the crisis is here to stay
 
Wiktionary suggests /ˈɛnd͡ʒɪn/, but I'm not sure that small caps i quite matches. Maybe halfway between that and ɘ?
 
if the question is "how do I do nginx", consider my skills on the history of the prehistoric humans yours.
 
I only know what /i/ is, that's what our i is
 
Consult en.wiktionary.org/wiki/… for a map of IPA vowelspace
 
2:42 PM
my favourite example: kifli, pronounced as /kifli/
 
@AndrasDeak the crisis is not here to stay. I could go into a rant about that. I'm asking for help to deal with the situation that we have now
 
@roganjosh sure thing. And I'm not saying you shouldn't; you're more than welcome to do so here. I just meant that if you can't find the help here you can probably also ask on the board.
although I guess that's data-oriented and you need something like infrastructure
Paul made a covid support room yesterday, might also be helpful
ah, you were there, nevermind
 
Around here "engine" has the same ending as "djinn", which I see is also transcribed with small caps I. In any case, the voice sample is right on.
I wouldn't be too surprised to hear "en-juhn" if I traveled a couple states south though
Compare to near-homophone "injun"
 
TIL "injun" and "assibilate"
 
@AndrasDeak your indifference is noted. Thanks.
 
2:49 PM
I'm starting to think there are crossed wires here :)
 
Quite possibly
 
Your quest is noble and I encourage everyone with useful domain knowledge to pitch in. Alas, I myself am a simpleton in the ways of system administration and data science, so I can only send good vibes.
 
Rather that etymologising "nginx" I'm literally just asking for help in maintaining a linux server. I can do all of the leg-work for solving the actual problem but I don't know enough to know whether I'm being DDoS'd etc
anyway, rbrb
 
Well, the etymology tangent has concluded, so now the attention of the room is undivided and hopefully directed in a constructive direction :-)
 
rbrb here too for a while
for ref.:
33 mins ago, by roganjosh
But anyway, I anticipate that I may need to pull down my site, expand the droplet I have, and I'll need help with Linux/nginx
 
3:03 PM
@Kevin I think you were mentioning you wanted a print a triangle Q the other day? :p
 
With this most recent post, maybe this triangle business will be solved once and for all.
 
@AndrasDeak for ref: I'm frustrated that we're spending days helping Permian with leetcode problems and not mounting some effort to fix a global problem that's taking lives and destroying the economy
 
Hmm, valid.
 
Ugh... whoever wrote this code needs a lesson from Lucille...
from datetime import datetime - okay great... then a from something import * and then in that there's an import datetime... oh joys... and that's just the start of it
 
3:23 PM
Want to contribute your skills to aid the Covid relief effort? Visit chat.stackoverflow.com/rooms/210400/python-covid-help today!
7
Let's see if that stirs up some more traffic...
 
@roganjosh yeah, I figured
 
I don't wanna be throwing my toys out of the pram (I did that, sorry) and nobody is under any obligation to help. I will follow-through on what I suggested on the external boards... and I know they don't have the skills to help out. I will post in the new room if I need help
 
Feel free to signal boost in here once in a while to keep interest up
 
@roganjosh I suspect most regulats will be happy to help (especially if there are specifics). It just seems to me that the currently active regulars don't have the skillset you're looking for.
And you know we always go on tangents no matter what the subject...everything is part herding cats here. This is not indifference, just business as usual.
 
@AndrasDeak you have a decent skillset that I'm looking for. I actually just want someone that can use linux properly and alert me to something weird
 
3:38 PM
@roganjosh I thought it was nginx+linux
 
I can push projects to my server, but I know nothing about how to see what's happening
 
Be back again later, arriving at destination
 
@AndrasDeak nginx, yes, but just linux help would be useful for me. I'm happy to give you access to my server
 
@roganjosh feel free to give me a ping re: that as well...
 
@JonClements I'll sort that now :)
 
3:47 PM
@JonClements So can we get the tkinter site to stop using import * in examples?
 
Seconded
 
>>> dir(tkinter)[-10:]
['enum', 'getboolean', 'getdouble', 'getint', 'image_names', 'image_types', 'mainloop', 're', 'sys', 'wantobjects']
 
anyone here work with hive at all? It's distributed SQL db on hadoop, AFAIK
 
@inspectorG4dget Umm... it's nothing to do with the Zerg then!? :(
 
@JonClements I don't even get that reference :(
 
3:52 PM
heresy!
 
ahh! I am now edumacated
 
Make sure you have plenty of vespene gas
 
will I need to construct additional pylons to store this gas?
 
@inspectorG4dget pylons are always good...but you might want to consider an assimilator
and they've added a whole called utilities with:
############################### STORAGE ############################
## Some useful functions to store and load data

import pickle
def dump(obj,name):
	pickle.dump(obj,open(name+'.p',"wb"))
def load(name):
	obj=pickle.load( open( name+".p", "rb" ) )
	return obj
and that's it...
so so worth it... arhghghghggh
 
4:54 PM
48
A: Python - Extracting and Saving Video Frames

GShockedSo here was the final code that worked: import cv2 print(cv2.__version__) vidcap = cv2.VideoCapture('big_buck_bunny_720p_5mb.mp4') success,image = vidcap.read() count = 0 while success: cv2.imwrite("frame%d.jpg" % count, image) # save frame as JPEG file success,image = vidcap.read() pr...

This poster asked a question, copy pasted the answer given to him, posted it as an answer, and accepted his own "answer"
And collected the 500 karma points
 
@AndrasDeak I'm just curious. Does this mean that you view this as a tangential issue?
 
No, the tangent is the pronunciation of nginx
 
I'm not in the mood for jokes, sorry
 
5:40 PM
For those of you curious about @roganjosh 's sober mood, the medic-dispatch app he is taking on has these additional requirements, above and beyond simple dispatching/scheduling:
Must be able to pool personnel from given operational entities.
Must be able to record and bookkeep personnel capabilities in an easy / intuitive way.
Must support finding replacements and rescheduling in the case that personnel is infected.
That last line is one I've never had to deal with in my prior development work, on such a personal level.
 
6:07 PM
What are some tasks to do to practice using Jupyter Notebooks?
 
Pretend you are giving a presentation to a group on using one of the stdlib modules, like itertools (groupby is always a favorite), pathlib, difflib, collections.defaultdict, etc.
Create a github repo of several of these - GH is nice for displaying notebooks in the browser.
 
6:29 PM
GitHub doesn't render notebooks about a meager size
You should use nbviewer
I personally link nbviewer from GitHub
If you have 3-4 plots it won't render on GitHub and no one will see the content
above a certain size*
 
@roganjosh I know I'm not the guy to run a server for you - but if there's anything I can do to help, be it writing basic unit tests/user testing, anything, feel free to ping me. What it sounds like you're doing is very much a field I'd like to be in when I am gainfully employed programming.
 
6:45 PM
@NicolasGervais TBH the entire thread is painful to read. It's basically "how do I write a do-until loop" with a catchy topic.
 
^ done
 
Thanks
 
@NicolasGervais In his defense he included a paragraph explaining a set of steps and conditions that needed to be met. The original answer was only code without an explanation: He should have given explicit credit to the earlier answer for the code. I can understand his option of giving an answer elaborating, although I would have accepted the answer of the first poster instead.
 
One more reason to hate np.vectorize (I know, we could set otypes...) stackoverflow.com/questions/60892214/…
 
6:59 PM
another weird numpy API?
 
Vectorize is useless anyway. Misleading wrapper for a loop.
 
that is exactly the opposite of what I expected
 
i believe we now call it "subverting expectations" and for some reason consider it a good thing, if you believe movie critics in any case.
 
Hobo Coder you out there?
 
This API was brought to you by M. Night Shyamalan
 
7:10 PM
@DennisJensen yes
 
yeah, catchy slogan
 
Hmm will not let me upload a file ?
 
Hey guys!
 
Hiya!
 
7:14 PM
@AaronHall hi, never thought I'd get to interact with you on chat.
 
@DennisJensen you can post here your gist link
 
cbg
 
@AaronHall Looks like you are doing a twitch stream.
 
say hi! :)
@GamesBrainiac true
 
7:16 PM
 
I need to sign up for twitch at some point.
So might as well do it now.
 
Okay HoboCoder there you go
 
just playing with tkinter and we talked about import *
 
any questions just ask
 
@DennisJensen please don't post images of text
 
7:22 PM
@AndrasDeak are you a moderator?
 
Nope.
 
@DennisJensen thanks I will go through it
 
@HoboCoder you can check out my profile if you want to contact me directly
 
7:40 PM
@DennisJensen alright got you
 
@PaulMcG Me either, I have, however, been the replacement personnel...so thankful school is out right now, and I'm not forced to risk bringing something home to my family.
 
8:20 PM
hello cabbage heads
 
@PaulMcG Thanks for that. I apologise for being pent-up. I'm sitting on half a solution but I've not got feedback from the potential end users and it's driving me a bit nuts. I took some time time out to calm down. I'm also painfully aware of my weaknesses if I want to move fast. Thanks too, @toonarmycaptain for the offer to help
 
@roganjosh what is the tech stack you'll be using for this?
 
I'm willing to bet this would be a willing/gentle/mostly-trustworthy testing group for you.
 
Postgres as db, jsprit as a solver, OSRM for the matrix, flask for the interface
 
@PaulMcG me or roganjosh?
 
8:35 PM
@roganjosh
But we could probably spare some cycles for you too @Dodge
 
I only know django and I know that things can be built in small portable apps so this thing could be divided into its components and you (roganjosh) could delegate the construction of these pieces to volunteers. Not sure about flask
 
But jsprit requires middleware that I need to write to satisfy the criteria, plus building a front-end
Flask is easier than django :)
 
front end is the last part or do devs build that and wire everything up?
@roganjosh I'm here if needed. Give me a clear cut task and requirements and I'll be useful. I have a site on a linux server with an nginx proxy and django backend. I have no concept of how to work with others as it relates to coding though, I just build stuff to satisfy my own curiosities...
 
Would you say this is a bug?
>>> s = "\r"
>>> ast.literal_eval("""'''{}'''""".format(s))
'\n'
>>> ast.literal_eval("""{!r}""".format(s))
'\r'
 
that's interesting
 
8:48 PM
@Dodge I'm similar. My panic is 1 week down the line: "millions of medical records have been leaked due to X". Because we can't do nice things any more. That's my fear.
 
@roganjosh That's the sort of thing people are well paid to worry about. I applaud your willingness to take on these responsibilities for greater good
@PaulMcG will that ever matter, what is the difference between a carriage return and a newline
a lot apparently
>>> print('\nt\nt')

t
t
>>> print('\rt\rt')
t
 
00:00 - 21:0021:00 - 00:00

« first day (3450 days earlier)      last day (1501 days later) »