« first day (3336 days earlier)      last day (1835 days later) » 

00:41
learning vim keybindings basically ruins your life
01:14
cbg
So painful to write docstrings on my ready for release module :(
You are close to a release date so congratulations
@Dodge Thanks for you support :)
@Dodge Maybe shouldn't say painful, but for sure not the funnest thing you can do :P
01:30
Docs are everything and your users will thank you in the end
01:46
Do you ever feel like, as a regular in the Python chat room, that you get asked the same questions over and over?
No one has ever asked me that question (I'm selfishly assuming that was directed at me :P)
02:02
I wonder why when some people post animated gifs in chat the gif itself pops up, I'm assuming they are using Imgur or something but does not work for me
02:15
cbg
@Dodge I do get asked the same questions over and over, but I don't think my regularity in Room 6 is the leading factor there.
By the way, room, still waiting for those Room 6 shirts ;)
@toonarmycaptain It was @AaronHall who was asking (just FYI) :) I don't get asked many questions and, really, why would I. Low rep users like myself aren't who people "come here to see" anyway. I'm mostly here for the benefits of immersion language learning
@Dodge (I read the line above yours lol :p)
I was just reflecting on my life lol.
How art thou?
I'm good. Just need to get my time-slowing-down device finished and things would be near perfect, You?
@Dodge I'll take two.
I'm good, trying my hand at Advent of Code, and remembering that translating computation of spatial stuff into code is something I don't seem to have much of an aptitude for.
02:34
@toonarmycaptain Ah man, it's not easy. No doubt about it. Some people are naturals and it shows. I do feel as though it's something that gets better with practice as well, like most things. (That's what I tell myself anyway)
02:47
Is there any better way to do this? [(line.strip().split('^_')+[None]*3)[:3] for line in f]
(i.e. I want 3 items in each list)
@Dodge I believe if you just link directly to a .gif it pops up
Yes, it does
"https://media.giphy.com/media/YoVsM8W2wRa12/giphy.gif" for example
@KieranMoynihan I tried that and it did not work for something hosted on Imgur I finally realized there is and upload button next to send which worked in the sandbox.
But it is grayed out in this room, hmmm
03:05
I've caved for today. I got the first answer for part 1, but my solution failed on 2 of 3 of the examples, depending on how I fiddled with it :s.
So I've settled for taking another implementation, and translating it from a functional to a class implementation, figuring out how it's working as I go.
I didn't see or submit an answer until I got one from my adapted implementation though (ie I didn't use the found code, I adapted until it worked), if that counts less as cheating...?
@toonarmycaptain If you learned something, it's not cheating.
@Dodge It helps a lot if you've done the previous years' puzzles. There are often things like 'navigate this grid', 'implement this vm', etc, and sometimes the input parsing is a mini-puzzle of its own.
I've also learned plenty of cool tricks (and not just for python) by browsing the solution megathread on reddit. My favorite is probably using imaginary numbers for grid problems, because moving one space is just an add, and turning left/right is just a multiply.
The majority of work I do is at my day job, where I'm in a nurse's clinic in a k12 school, constantly interrupted, or at home either with kids and noise around (so I don't often do that) or late at night. So while admitting I'm not great at it, I'm sure I'd be doing better with a couple of hours straight uninterrupted.
Or not.
@JoelHarmon I should look at this, although it's been...awhile, since I used imaginary numbers.
Finally got that to work
I think you just have to keep following the image links until you get to the base image source (the actual .gif file location)
@KieranMoynihan I think my files may have been too large as well. I am making animations for fun with matplotlib but wanted to be able to ask a question about them at some point which requires me to be able to upload something, which I can now do!
@JoelHarmon That trick with the imaginary number sounds really cool, I'll definitely have to learn more about that
wim
wim
03:29
you mean complex numbers (real and imaginary components). "imaginary numbers" means just the y-axis
@JoelHarmon Well today I was reminded about how you call the baseclass' init when you subclass (because I subclassed the class from my first part in my second).
@wim I suppose technically you're "using imaginary numbers", even if you're intrinsically pairing them with real components. :)
@wim You talking to me? Sure. I guess I conflate the terms in my mind lol
@toonarmycaptain One of these days I might get really stupid, and come up with a convoluted way to use metaclass definitions to solve a problem by dynamically creating new classes.
wim
wim
unfortunately the complex type in python is backed by floats
03:34
@JoelHarmon And I learned a bit about defaultdict, and sys.maxsize, neither of which I'd actually used before.
wim
wim
when the 2d grid problems in AoC almost always call for an integer complex type
Which is fine until you hit a large enough number. I don't recall that happening, but it may have on other puzzle inputs.
wim
wim
it works fine, it's just a bit inelegant always having to convert back to integer at the end
no idea why you'd need sys.maxsize in AoC. kind of useless for a language with bigint by default.
@JoelHarmon Unless I'm confused, you might be able to do that if you need to do some sort of tree, representing the nodes as classes?
@wim From what I could tell it was being used as a arbitrary 'maximal' placeholder, since the solution required you to find the minimum.
wim
wim
not very good
03:38
@toonarmycaptain That's one possibility, sure! You could also do stupid and pointlessly over-clever things like assigning each newly defined class with an incremented serial number, and abuse those classes as integers.
wim
wim
sys.maxsize + 1 is bigger :P
and 100**100 is shorter to type
Or you could get really "clever", and mix in some lambda calculus style: the depth of your inheritance tree is the number the class represents.
@wim Honestly, I think I just held down the '9' key for a second or two.
yep: lo = 999999999999999999
03:53
@Dodge I was trying a similar approach to you today, dunno where I was messing it up though.
@toonarmycaptain Oh did you check my github (should be a warning label on that thing)? Yeah I can always come up with the crappy approach that takes three days to finish and has the grace of a fish out of water. I initially converted all my ordered pairs because I thought tuple comparison with set intersection wasn't working right. I fixed it though.
@Dodge I did not some a long if/elif that made me want to turn it into a switch, but that might involve a bunch of undesired functions...and considering I don't see a single function...
@kevin
how do I give pip permissions?
Yours is approximately a third of my linecount too lol.
@wim I have a feature request for aocd. Would be nice to be able to pull the stats on each answer. Something like:
from aocd.models import Puzzle
puzzle = Puzzle(year=2019, day=3)
puzzle.answer_a_stats
04:02
I'd like to be able to pull the question text as well as the input. Save me from cutting and pasting anything, or creating any files :)
wim
wim
@Dodge hmm, what would the result look like?
      --------Part 1--------   --------Part 2--------
Day       Time   Rank  Score       Time   Rank  Score
  3   12:26:36  14252      0   12:41:16  11568      0
wim
wim
oh, your personal stats?
I thought you had meant these numbers adventofcode.com/2019/stats
I was thinking I could plot my performance after several years to see what that looks like, but the global stats would be interesting as well
wim
wim
sounds good
I will return it in a dict though, not a string
04:11
yeah, right after I pasted that I was like "that's not very useful for analysis"
wim
wim
hmm, what the page look like when you haven't solved a puzzle? I don't know because I solved all puzzles ...
the stats page?
wim
wim
no the leaderboard/self page
just goes to the last day I got right which was day 12 for 2018
04:29
Well apparently I only got to day 3 last year. Hopefully I can get through at least one more this year.
I have code that makes use of regex. Pylint gives escape error - so is it safe to add a r prior to the "?
wim
wim
got any puzzle where you only solved part 1 but not part 2 yet?
or is it a breaking change?
wim
wim
@variable breaking change
How is that?
wim
wim
04:32
well it changes the meaning of the regex
Well, depends on what symbols were used inside the regex too. in python, all regex patterns should ideally be written with the r from the get-go.
That's the best way to ensure a backslash actually does what you intended it to do in "regex-speak" so to speak.
So i'd say, make the changes and get that r flag there. Make sure something doesn't break.
Consider writing tests first.
04:55
Any ideas on that ascii for AoC?
wim
wim
hmmm, orbital trajectories mayb e
ah maybe
with [ . ] being earth, targetted by the box around it
could explain the glowing . on the outer ring being a planet shining brighter than the stars
wim
wim
dang unihedron beat me by 7 seconds
@ParitoshSingh Hi. So it is only backslash that I need to really check. For example - '\s' is ok to be chagned to r'\s'
05:16
yeah, i don't think there should be anything else you'd need to worry about
I should have regexed this one.
Im starting to see the lure of this thing. It's kinda fun. Super fun with a group of friends i imagine.
Quick question I have a time stamp in my data but having issues dealing with it example: 1573574457342 anyone able to point me in the direction of a library I can use
wim
wim
05:25
use datetime.fromtimestamp
Cool thanks
Can someone help me with link to see all the special characters in python please
Im trying to understand escape is python and escape in regex
import re

x = re.findall("\\\e", r"hi there. (this is \e a)")
print(x)
Output is: ['\\e']
Please can someone help me understand this?
05:44
how's your google-fu?
Not getting the right terms to look for
The trick is to "Get close" and then read the links that come up for further clues
I searched for "what characters does r flag change python" and have already found my way to the page you're after after following through a couple SO posts
wim
wim
search "valid escape sequences python"
I'm getting robbed here, all of my checked numbers meet criteria but my answer s not being accepted
I suspect you made the same mistake i did
should 112233 meet all criteria?
05:52
cbg guys o/
138241-674034 = 1924 for part A, right? I'm not looking for an answer but just need to know if there is a bug in AOC (happened before)
one sec
@Dodge your answer is wrong
Do you want to know the correct value or leave it at that?
Oh no I will get it, just need to know if I'm on a wild goose chase
Thank you
No worries
05:57
@ParitoshSingh 112233 meets criteria, by the way, right?
Yep it does
Youre not making the mistake i did then. :)
Which means i do actually now know exactly what mistake you made xD
And of course this qualifies as well: 444789
is there as better canonical than stackoverflow.com/questions/4700912/python-regex-not-working for "use r'...' around regular expressions"?
@Dodge aye, it does
wim
wim
06:13
I don't know what it will do if only part 1 was solved. Crash, probably.
@wim that looks good, what am I looking at there? Do I need to do anything?
I'm assuming it'll just throw an index out of bounds error when you try to reference vals[4], [5], [6] for part 2
wim
wim
not really, just looking if the output format (nested dict of timedelta and ints) is what you wanted. I tried to add dodge-ttu as a PR reviewer but it didn't work for some reason
this output specifically
Actually... Nope, because it does have vals, they'll just all be '-'. Meaning _parse_duration() will probably throw an error
That is weird, hmm. Yeah that is pretty much exactly what I had in mind.
wim
wim
06:20
@KieranMoynihan can you send me a screenshot pls?
I'm sorry :(
Didn't want to wait any longer to submit part 2
wim
wim
hah ok
It just had a hyphen in each field for part 2
though admittedly it could've been an em dash
or and en dash
wim
wim
hmm, should puzzle.my_stats["b"] just return None then or should it be an error in the first place
Personally I would have each key in result["b"] have a value of None, but still have the keys exist
06:24
Okay let me ask a noob question. So you have made an update to aocd, and If I pip uninstall and reinstall I will not have access to the new features yet. So do I need to clone an build from source? How did Kieran test it already?
result["b"] = {
    "time": None,
    "rank": None,
    "score": None
}
But that's just me.
wim
wim
he didn't test it, he's just using the "wet" interpreter
I just look at the code, then guess
which means I'm probably wrong but ¯\_(ツ)_/¯
wim
wim
to get the new features I have to merge and make a release
if you're happy with the code like it is I can do that now
whats wet here?
wim
wim
06:27
wet. like it would be if you cut someones brain open.
wim's aocd is making me
wim, ah, thanks for that info. the workflow stuff is still largely a mystery to me
ah gotcha, i assumed it was going to be an acronym
wim
wim
meh, I'll just make a release now - can always iterate later when I find out what the personal stats page looks like halfway thru tomorrow.
give me a moment...
alright, tagged and released - if you do pip install "advent-of-code-data>0.8.3" you should see the new feature, let me know if it works...
06:33
hi, is it possible to get the X and Y text area info in PIL? I want to out a different color around the text but i cant find any way to get this info
>>> from aocd.models import Puzzle
>>> puzzle = Puzzle(year=2019, day=3)
>>> puzzle.my_stats
{'a': {'time': datetime.timedelta(0, 44796), 'rank': 14252, 'score': 0}, 'b': {'time': datetime.timedelta(0, 45676), 'rank': 11568, 'score': 0}}
And day 4 throws ValueError: not enough values to unpack (expected 1, got 0) because I have not gotten the correct answer yet, yamming poorly worded constraints
wim
wim
if it's not too much trouble, a screenshot of the page would help
oh wait you didn't solve 1 yet either. sorry, nevermind
no but nearly there lol
What is the point of using raw string for this regex example - where I am trying to locate all open brackets in a string:
'\('
Instead of the following:
r'\('
wim
wim
You should have got PuzzleUnsolvedError not ValueError :-\
06:43
consistency
Ok got it
Thanks
it means one doesn't have to mentally parse your regex for cases that would mess things up, and so it makes the workload easier in the future when you have to revisit code. Things like that don't always matter immediately, but make a huge impact in terms of maintenance and readability down the line.
@wim that was in the stacktrace I am distracted trying to debug my answer
wim
wim
ah yeah, that just the exception chaining. I can't squash that easily because I still support 2.7
@ParitoshSingh it is more than that
'\(' is just wrong. And it will be SyntaxError at some stage
example:
$ PYTHONWARNINGS=error python3 -c '"\("'
  File "<string>", line 1
SyntaxError: invalid escape sequence \(
everybody should turn warnings on for their development environments, so they can catch these things early and fix them before they become a problem
I thought the point was that precisely because it's an invalid escape sequence that python would let it be, and regex would take it up properly.
import re
re.findall("\(", "()()") #output: ['(', '(']
wim
wim
06:53
nope
python will raise a warning there (which you are not seeing for some reason) and then silently convert the "\(" into a "\\("
Oh, i see. I didn't know that.
I don't get any warnings anywhere
wim
wim
you probably have them ignored
Does it have to do this implicit conversion? I just ran the script via terminal
wim
wim
you can see them with
import warnings
warnings.simplefilter("default")
let me try that
nada
wim
wim
06:58
hmm, what Python version on?
3.7.3 I usually execute in spyder, but im trying both spyder and terminal variants right now
And the code im using is this now
wim
wim
thats super weird
import re
import warnings
warnings.simplefilter("default")
print(re.findall("\(", "()()")) #['(', '(']
wim
wim
maybe spyder eats stderr?!
what if you do warnings.simplefilter("error"), same?
I assumed that, and so ran the script using python "scriptname.py" from terminal too
let me try
wim
wim
07:01
huh Larry Page steps down as CEO
That setting makes spyder spasm out and complain about a lot of things. terminal still silently runs without issues (which is really puzzling to me)
SyntaxError: invalid escape sequence \( on spyder
wim here is what happens when I get stats with only one correct answer
Does anyone think pydoc generated html looks ugly? Or is it just me!
Especially the color combinations in background
wim
wim
@Dodge hah, that's what @KieranMoynihan guessed.
is it really a HYPHEN-MINUS (chr(45))?
well yeah, that's why everyone uses sphinx doc
07:18
>>> chr(45) == '-'
True
chr(8722) is the other minus sign
no, that is the minus sign
- is a hyphen, – is an en dash, — is an em dash. And none of these is a minus sign.
07:44
@wim happy cake day?
Did you register for AoC?
wim
wim
I have no idea what you're talking about
wim
wim
can i have my cake and eat it pls
@Dodge ok, thanks, just tagged and put v0.8.5 which checks for that
and now, i'm falling asleep at the keyboard, its 2am here.
bye
rhubarb
08:07
@wim Thanks for digging up the pypy issue. Further digging suggests they fixed this in 3.7. I still don't understand why an exception handler triggered this behaviour, though. :/
This name mangling is powerfull concept when used for variable and also for functions.
I understand about class variables, class method, instance variable, instance method and static methods. But I am confused looking at below code as it assigns a class variable to a function - is this considered good practice:
class Parent:
    def __init__(self):
        print('in init')
        self.__test()
    def test(self):
        print('In Parent test method')

    # private copy
    __test = test

class Child(Parent):
    def test(self):
        print('In Child test method')

obj = Child()
obj.test()
08:26
About name mangling - pep8 says: If your class is intended to be subclassed, and you have attributes that you do not want subclasses to use, consider naming them with double leading underscores and no trailing underscores.
Ofcourse there are possibilities this may still not work - for example due to name clashes. But as shown in above example - the other purpose of name mangling is to prevent accidental use of child method.
08:42
Is there any function to generate n random numbers between 0 and 1 whose sum comes out to be 1?
Oh I got it, to use a Dirichlet distribution on numpy
>>> import random
>>> def rands_that_sum_to_one(amount: int):
...    rands = [random.random() for _ in range(amount)]
...    rand_sum = sum(rands)
...    return [x/rand_sum for x in rands]
...
>>> sum(rands_that_sum_to_one(20))
0.9999999999999998  # close enough
@kauray .. or that, I guess
Thanks @Arne, but I had coded that itself, I was looking if there was some library function that already does that
@variable Nope, not good practice IMO. There's no need to make a copy of the method, if you want a method that can't be overridden in a subclass just do Parent.test(self)
@Arne it's probably better to generate amount - 1 numbers and let the last one round them up to 1
but that might affect the distribution, so maybe not
09:00
Umm, @AndrasDeak isn't each random number independently generated? In which case your approach might not affect the distribution?
@AndrasDeak is this about the variance that the repeated divison adds to the final values?
I don't think using the final value to shift the sum closer to 1.0 will add bias, since the variance should also have none
@kauray but the last number depends on the other n-1 ones, so not sure
@Arne not sure what you mean
any xml gurus? :D
I need a good xml to json format that doesn't lose most of information
Nevermind, what I meant was "generate each number incrementally in the remaining interval"...
depending on how small rand_sum is, it might lower the overall precision of each value after dividing through it in regards of them summing up to 1, that's what I meant
09:10
that's probably find
@Arne well I wasn't talking about your version at all :P
it's just 10 in the morning, and I'm already maximally confused =D
Intuitively, the division seems wrong to me, because you're effectively no longer generating random numbers between 0 and 1
the division is scaling the range in which you're pulling numbers from, if im not mistaken
having said that, im sure no one would mind it :P
shaky statistics incoming - yeah, the max is scaled from 1 to 1/sum_rands, and the property that they sum to 1 is just a coincidence regarding the distribution
Nevermind, what I said would be very differently distributed. I now think that "n random numbers between 0 and 1 whose sum comes out to be 1" is ill-defined
Thinking about it from the other side though, i can also see that if i keep pulling random n numbers from 0 to 1, and keep rejecting groups that don't make it, It's definitely no longer a fair pull. What if i set n to a very large number?
In that case, very few pulls will actually fit the bill, one that keep pulling very small numbers and so on have a much better chance of meeting the criteria.
Seems like a case of having to compromise either on the randomness or on the range based on the n value.
09:25
I guess that's why there exists a Dirichlet Distribution
is there a canonical for beginners who confuse syntactic quotes with literal quotes? As in x = '"' + "string" + '"'; if x != "string": raise Surprise("why is string != "string")
this maybe? link
09:40
@ParitoshSingh no I mean they add literal quotes and then are surprised when the string with the quotes is not the same as the string without the quotes because they are confused about which parts are Python syntax and which parts are actually literal characters in a string
sort of how people ask "how can I get rid of the b prefix from a bytes object" thinking there is a literal b there
Perhaps this is another instance where you can get an answer by setting up a simple experiment. Try it out, build a setup like that, see what happens. I'd be curious to know the answer too.
that was a fair question though
fair question, easy to try in practice, and variable's been asking random questions all day despite my explicit requests to stop that
I've written an answer to that question. Next time I am waiting for some citations.
not exactly easy to try in practice. What's a "nonlocal scope" anyway?
@Aran-Fey I refer to my line above^
105
A: Short description of the scoping rules?

Antti HaapalaThere was no thorough answer concerning Python3 time, so I made an answer here. As provided in other answers, there are 4 basic scopes, the LEGB, for Local, Enclosing, Global and Builtin. In addition to those, there is a special scope, the class body, which does not comprise an enclosing scope f...

10:03
@variable I kicked you because you were doing that again. Just a reminder.
> As provided in other answers, there are 4 basic scopes, the LEGB, for Local, Enclosing, Global and Builtin. In addition to those, there is a special scope, the class body
LEGB is a bit weak on mnemonic juice
That makes no sense. "local", "enclosing", "global" and "builtin" are all relative to something. Someone's global scope can be someone else's local scope. But "class body" is something else
Isn't "class body" a scope for everyone defined inside the class?
What's a "scope" anyway?
10:08
there's also this which i feel one would encounter more naturally if they started searching with that word "nonlocal" in mind.
@Aran-Fey did you read my answer.
I read a couple of paragraphs before realizing that it's pointless because I don't know what your definition of "scope" is
@Aran-Fey in python I tend to think of accessible namespaces
@Aran-Fey I do not give a jacksquat about your definition of scope. I care only about the scope as defined by the python documentation.
Which is defined where?
10:11
Python documentation
Having a bad day?
@Aran-Fey not otherwise but you're being PITA now.
how so?
@AnttiHaapala thanks
@AnttiHaapala 3.3?? :P
google is being an a$$ too.
10:23
reading that page only confuses me more. Seeing how they're using the word "namespace" without actually defining it first, I feel justified in just giving up
different topic, shoutout to pyfakefs for being a great package that fakes file systems during tests / simulations / setups. It's around since a couple of years but seems to enjoy comparably little use given its quality and lack of serious competition (that I know of, I didn't search too long)
@variable considering you were just kicked for asking too many questions, you show a serious degree of tenacity
> A scope defines the visibility of a name within a block. If a local variable is defined in a block, its scope includes that block. If the definition occurs in a function block, the scope extends to any blocks contained within the defining one, unless a contained block introduces a different binding for the name.
> When a name is used in a code block, it is resolved using the nearest enclosing scope.
Isn't that wrong? So a function definition creates a scope. And names are looked up in that scope. So why can we access global variables, then?
The "nearest enclosing scope" is the one the function just defined, and there's no mention of variables being looked up anywhere else if the lookup in the nearest scope fails
10:44
    def foo(inputs_):
        lstm1 = keras.layers.LSTM(units= 24, return_sequences=True, return_state=True,name='DecoderLSTM')
        st1,st2 = keras.layers.Lambda(lambda x:lstm1.get_initial_state(x))(inputs_)
        st1 = keras.layers.Lambda(lambda inp: K.expand_dims(inp, axis=1) )(st1)
        d_init, _, _ = lstm1(inputs_)
        d_t = keras.layers.Concatenate(axis=1)([st1, d_init])
        return d_t

    dec_input = keras.Input((32,1))
    out = foo(dec_input)
    m = keras.Model(dec_input,out)
> Each assignment or import statement occurs within a block defined by a class or function definition or at the module level (the top-level code block).
Now that is definitely wrong, because you can assign variables in the code block of the -c command line flag
umm... when did google start sending out "monthly reports" for analytics stuff? Don't remember seeing it do that before... some cool looking results though
10:57
@JonClements AFAIK, they started from this month, so that's the first email. Very nice summary.
trying some of those queries in private mode - we're not far behind SO on the first page but actually ahead of the datascience SE site... lol
@AnttiHaapala I'm 95% sure you're conflating "scope" and "block" and/or "namespace" in that answer
11:22
@Aran-Fey and I am 95 % sure I am not.
12:03
Hi guys, any ideas if possible to count the amount of specific filename inside a folder using rest api flask ? I need to know how many images named *test are in a specific folder.
I'm not sure what you're asking really. Yes it's arguably possible depending on how your environment is set up. Since one can scan a directory for filenames, and then check those filenames with a regular expression to see if they match.
13:04
@Aran-Fey - docs.python.org/3/tutorial/… - this document makes use of such a concept
I have a variables.py containing some variables initialized to 0. When I import that file and run function, error occurs: UnboundLocalError: local variable 'countImg' referenced before assignment.

But If I define the variable inside the funtion it works fine.
Also my import variables statement is unused. Any suggestion??
13:24
My first suggestion would be to produce an MCVE so we can see exactly the problem that you're facing.
Otherwise we're just shooting blind
variables.py

countImg=0

functions.py

def func():
	countImg = countImg + 1
    print(countImg)

func()
This is a sample of what I am working on.
Error message I get: UnboundLocalError: local variable 'countImg' referenced before assignment
Also my import statement is unused. If I define the variable countImg inside func(), code works fine.
lookups default to higher scopes, but assignments need to declare the variable as global
This SO answer might be useful to read: stackoverflow.com/questions/291978/…
I have more than 100 variables defined in variables.py
if you want to update some variable var in one of your functions, than you need to have a line global var in that function first. but there are still all kinds of things that can go wrong with the task that you describe, like you expecting the values in your variables.py to be updated from being changed in another file where they are imported.
so if you run into anything else you don't understand, please set up a more complete examples in repl.it/languages/python3 (or something like it), where you can create multiple files and have imports work.
13:35
recbg, What are you guys using for hosting your backend?
I am not able to decide where should I host backend. Should it be aws vm, or Google cloud vm or Firebase hosting?
note if you want state to persist and update across calls, perhaps a generator is more appropriate.
unless you want countImg to be readable and writeable outside of func, that is
@TheLittleNaruto private or corporate?
that's the second task of calling var countImg outside func(). I think I have to let go of fun().
depending on how tightly coupled your data and behaviour is, consider using a class as well.
@TheLittleNaruto I use different hosting for different situations. It's probably outside of the scope of this room - but I can give it a punt
13:58
@Arne private as in for some client project
@OldTinfoil Please! :)
What's your biggest / most important requirement?
It's gonna be a songs streaming application.
Should the client not provide the hosting options?
Unless i've misunderstood the situation, Show a demonstration of it by hosting on your own machine, and see what the client wants to do?
He is a non-technical person
Ah, and he's going to defer to whatever you recommend?
14:01
Yea
I see i see. carry on then :P
user11867329
@TheLittleNaruto Are you looking for Host suggestions or more of a "what type of specs and OS should I use" suggestion?
@ParitoshSingh daymn so helpful :D
Depending on what you're doing, you should probably prioritise hosting by either availability (something like AWS when you can do load balancing and the like) or by the cost of transferring data
user11867329
@TheLittleNaruto ?
14:05
The cost of transferring data to clients can ramp up and become "expensive" quickly
Hi. Please take a look at the room rules listed on the right or linked here Specifically, we ask people to not post questions from main site here unless they are at least 48 hours old @MayurDhumal
morning cabbages, everyone!
@ParitoshSingh okay, Paritosh, no problem.
user11867329
@TheLittleNaruto Use GCP free tier accounts
14:07
Looks like a job shop scheduling (aka processor/CPU scheduling) problem to me
@OakDev Yeah I would prefer Ubuntu.
@OldTinfoil Please give your inputs
I'll leave for home now
I... have?
Rhubarb o/
14:31
Well... appears the NATO conference has been "eventful" :)
Always was going to be
With the UK leaving the EU, militarising the EU is going to be on the agenda and France has been leading the Amerisceptic charge for awhile now.
Cabbage all.

« first day (3336 days earlier)      last day (1835 days later) »