« first day (3884 days earlier)      last day (1074 days later) » 
01:00 - 22:0022:00 - 00:00

1:17 AM
Wow, routine maintenance :/
this confuses me
 
 
3 hours later…
4:17 AM
stackoverflow.com/users/51816/joan-venge this user somehow has 200k rep from just questions :O (23 answers in total)
 
800 questions... wTF
 
I should probably learn a new language that is just introduced and ask a question, so in 10 years time that will be a canonical
 
I mean people who used to ask basic question in the olden days(10 years before) got alot of votes because it answers basic question(so it is still helpful) and those post still gets attention
 
lol
 
Plot twist: You end up with downvotes :P
 
4:20 AM
likely
 
@12944qwerty Answers arent that great it seems
 
yeah :/
 
I probably also will write my own answer then, Raymond Hettinger self answered some questions for match statements recently, it is yet to gain (insane) rep but that is also a possibility
 
A general question about match cases as soon as 3.10 fully releases
err, I mean right about now during the alpha stages
I remember when I had 0 flags raised... just a little over a month ago
43 now :O time goes by so fast
(same with my reputation....)
@CoolCloud What if they answer their own questions o.o that rep would skyrocket
 
4:47 AM
Could be
 
5:39 AM
@12944qwerty I asked one question and answered it about new feature before I had tested it :P
then I needed to edit because the syntax in my question didn't work any more after they changed the precedence :P
 
5:50 AM
Hello, I am first time here
I have been stuck at a point where i am trying to convert absolute uri to short url using hashlib.
 
What is your progress so far?
 
i defined a function where full-url is being requested as absolute uri of the page, then i create a variable temp-url where i use md5 hashlib to encode it to short url, but iam not able to know how do i reflect it on template , or is the function working?
 
Hello Python fam
 
Hey
 
Hii @CoolCloud
 
6:04 AM
@YeshBiswakarma my crystal ball says the error is on line 5, at character 32. Or is it line 6... can't really tell the picture is a bit cloudy ;)
 
@YeshBiswakarma Without seeing the code its hard to predict what you've written or where it has gone wrong
You know what they say, trust your crystal balls afterall
 
6:24 AM
this is where i have deployed the code now, u can check it here, @CoolCloud and @AnttiHaapala stackoverflow.com/q/67832376/8864378
 
Umm where?
 
sorry i have edited it again
 
Hmmmm, but does this violate the rule here?
Not sure because you said you have a question, but you went and asked the question on the mains and then linked it back here 🤔
 
yes, but to let you know my code, i had to post that? Sorry, if i have violated any.
 
cbg
guys I have a strange situation
within a linux machine I ran a script and after realizing the large memory usage I stopped the script, however within htop I still notice the memory usage the same as before any way to stop this without stopping all processes on the machine as I have other important processes running
@YeshBiswakarma dpaste.org your best friend ^^
 
6:37 AM
@Kwsswart did you try ps ax | grep "concerned_process" followed by kill no
 
@PIngu I have not will do the "concerned_process" what sort if identifier would I use there?
 
@Kwsswart say for instance badscript.py and ensure it is cut down clean from your system
 
@Kwsswart Are you sure it's the script taking up the memory and not the OS' cache?
 
Well I assume it was as when running the script i visually saw the ram usage soar... I found a solution which was killing the screen it was on... Just curious what would be a better method for next time
 
@Kwsswart how will i achieve that?
 
6:46 AM
acheive what mate?
 
short url like bitly or any other
 
Oh havent had a chance to look yet mate was just sending the link to dpaste for next time you want to share the code here without having to post a question in main, thus not breaking any rules
 
I read that question and I dont understand what the problem is, is there a problem with shortening the url or with rendering on the template?
 
shortening of the url
if the function is working, then how would i render ir to template
ok @Kwsswart
 
7:03 AM
@YeshBiswakarma please don't ping people randomly with your problem. Kwsswart was asking something separate to your question
 
7:16 AM
@Kwsswart the script you're mentioning...given the context here, is it a python or shell script?
 
Its python, currently trying to optimize to not require so much ram
 
@Kwsswart can you post the code? or maybe more info about the module/what it does, etc
depending on what it does, you could make it so it quit gracefully when it receive SIGTERM and such:
242
Q: How to process SIGTERM signal gracefully?

zerkmsLet's assume we have such a trivial daemon written in python: def mainloop(): while True: # 1. do # 2. some # 3. important # 4. job # 5. sleep mainloop() and we daemonize it using start-stop-daemon which by default sends SIGTERM (TERM) signal on --s...

or maybe, if you use multiprocessing/thread, you could try that: cuyu.github.io/python/2016/08/15/…
 
with the script itself I know why it used so much memory, was just curious as to why it didn't stop once canceled the running of it
@NordineLotfi That is interesting read definitely go through them thanks
 
@Kwsswart that's because it probably doesn't receive SIGTERM the right way (read "handle") or maybe it didn't stop and continued for some weird reason (eg: open files?). That's on Linux right?
 
Yeah on linux
 
7:21 AM
@Kwsswart yeah, then I think it might be because it didn't handle SIGTERM
 
Hmmm welll thanks mate going to go give those a read
 
Np
btw, any ways to time a python function? I know about timeit but, it run multiple loops by default, instead of one run...(and I wanted a equivalent of the linux time command but for python function if possible)
I looked around though and found this:
problem is, looking on the comment of each post, it seems most solution are either deprecated or won't be too exact for whatever reason...
which one should I use? (or if there better alternative)
 
I don't see how it's a problem that timeit runs the function multiple times, but if you really want to avoid that, just pass in number=1
 
I use %%timeit -r1 -n1 in jupyter
 
Thanks, seems it work now :) @Aran-Fey @python_user
yeah, I don't mind running it multiple time, but since it's using a really compute heavy function, I preferred running it only once and test how to make this faster this way
(also more biased/used to the unix way where you would do time etc)
otherwise I wouldn't mind
 
7:37 AM
@NordineLotfi resource.getrusage is a pretty close equivalent to what /usr/bin/time offers. You have to do the post-pre calculations yourself, though.
 
If you want to make it faster, you should probably profile it rather than time it
 
@MisterMiyagi I see. Didn't knew this :o Thanks
@Aran-Fey yeah, I did thought of profiling, but was waiting to try a couple more stuff to see what work :D might try it though, Thanks!
 
7:50 AM
question: how can you know why something is called in your python script? eg: using python3 -m cProfile yourscript.py but from the output, you see it call things it doesn't use, like bz2.py or LZMA, etc
I know it use at least a couple milliseconds of time for those based on the profiling report...not sure why
@Aran-Fey btw, you were right, this look way more detailed than using time and manual debugging
hmm, guessing this is because it import those on one of the sub, sub module of the script, which could explain why it's called
 
8:51 AM
just got done with a interview, the interviewer didnt give me a hint for a problem I was stuck with, is this normal?
 
Online? What job?
 
@python_user you could look on workplace.SE for similar problem? :D
 
Maybe they felt you were talented enough to figure it out on your own(?)
@NordineLotfi Jeez he/she just asked a simple question, chill :P
 
@CoolCloud I just said that because i use it all the time for those kind of question (there a lot of software engineering jobs related question there, so could help)
 
yeah will have to calm myself before I research, @CoolCloud as a python dev
 
8:54 AM
What were the questions? Maybe it will help one of us in the future too
 
yeah, its to convert A to 1, B to 2, and so on till Z, then AA to 27, AB to 28 and so on
 
Interesting, so some sort of mapping? When does it terminate? In 2 letters?
 
I was not able to find the solution during the interview as I could not run code, but I guess I figured it out, after the interview, solution maybe pastebin.com/RRJZPWnW
I would expect the interviewer to have told me think of this as base 27 or even think of in terms of base, but nope :(
no limit on termination
 
So AAAA... and so on?
 
yeah, even ABCABCABABC
 
8:59 AM
@python_user nvm what I said earlier; searched myself on workplace for similar situation but didn't find any existing post...did found this on reddit though:reddit.com/r/cscareerquestions/comments/3pb5jp/…
 
that might be helpful, thanks, but to be on topic to this room, I would appreciate if users can tell me if there is a better/simpler way
 
Are you looking for jobs within India? Is it hard to find inside India? I can imagine myself in that position in a few coming years
 
Find it surprizing it jobs being hard to find... here in spain there are loads of them...
 
I havent been working for a long time, but if pay is not a big deal you can get a job in your first couple interviews
I am narrowing my search to pay + python + location, so that would make things difficult for me
 
@Kwsswart I feel like it kinda depend on specific requirement of the job seeker. eg: if one prefer 100% remote without relocation or day at the office (some claim to do that but after being contacted by them, they usually give more details that weren't on the application form)
 
9:10 AM
I hope you find a job in those conditions soon :D
 
thanks :)
 
hope you find one too, especially knowing how hard it can be
 
it was an easy question, but REPL has spoiled me a lot
 
@NordineLotfi Fair enough I probably will be in a situation of looking for 100% remote to go traveling in few years
good luck finding something mate
 
just type a line and press enter to see output :D or tab to see attributes, thanks Kwsswart
 
9:12 AM
@Kwsswart as a future advice if you plan to go full remote: make sure to always read every part of the fine print because you will notice more company use certain tags/term more as keywords than actual reality (eg: say it's remote but contradict themselves on phone call, etc)
it happened more than I can count, which make things difficult, but yeah, just thought you would like to know in advance
 
Thanks man appreciate the advice
 
Np
@python_user yeah, REPL is nice. I kinda like ipython3 too most of the time
never managed to get jupyter working as well as ipython for whatever reason...
 
is repl essentially like jupyter?
 
well, it does similar things I guess? jupyter support more stuff like markdown, etc
REPL have some nice suggestion and auto correct system, and ipython is kinda like jupyter but without all the extra options (which are great, but some might not like them sometimes)
you could also technically make your own primitive REPL using python + fzf, but that's beside the point (and it's also not as good as ipython features wise)
 
depends on what you mean by "essentially". One of the important features of Juputer is that you can write text between code blocks to explain it, which encourages literate programming; you can't directly do that in the REPL
 
9:20 AM
yeah
 
and the REPL is more directly interactive; in Jupyter you can go back to an earlier code block and edit it, whereas in the REPL you have a different mode of recalling items from history and possibly editing them before resubmitting them for evaluation
conversely in Jupyter you can postpone evaluating code you have "submitted" until you are really ready to run it as part of something bigger
so in some sense, they are opposites - in the REPL you plan to throw away everything you do, whereas in Jupyter you plan to revisit it and share it
 
Hi guys,
I've been having a small confusion regarding timezone aware stamps.
The time stamps in my csv file that I extract are given in the following format.
2003-05-01 00:01:00+09:30
So when I read it in python, it is of dtype: object
Then I apply the following codes:
d = pd.DatetimeIndex(pd.to_datetime(df['datetime']))
This give the type as: dtype='datetime64[ns, pytz.FixedOffset(570)]', name='datetime', length=44640, freq=None)
I want to know if keeping the dtpye as such will cause any messes with any calculations using timestamps later on, or should I assign a timezone to it using the following:
 
probably be explicit that pd here means Pandas
 
d = d.tz_convert('Australia/Darwin')
apologies for that, I'm not the best at objects and classes... my doubt was more geared to whether the approach I am using is wrong
yea I used dataframes
 
 
1 hour later…
10:46 AM
@PythonProgrammer Hello. I started to learn Ursina. Do you know how to use 'world_rotation_x'?
 
that is a reply in history :D
 
11:27 AM
hmm, wondering since I already know how to compile code in Cython using ipython/jupyter (with %load_ext cython and %%cython), but how can you do the same in a normal python script?
I know you could use distutils to do that too: gist.github.com/ctokheim/6c34dc1d672afca0676a but wondering if there a simpler way
 
@NordineLotfi You might be looking for pyximport. See e.g. stackoverflow.com/questions/15764232/…
 
@MisterMiyagi Thanks, will try this :D
@MisterMiyagi hmm, doesn't that only work for import/modules? not sure if this also work for code who don't import anything (at least not seeing any speed change or anything)
 
Not sure what you mean by that. Cython translates entire modules. jupyter/ipython just conveniently puts the code to one translation unit for you.
 
11:56 AM
@MisterMiyagi nvm, figured it out :) Thanks
 
12:29 PM
cbg
 
morning cabbages, folks!
 
12:56 PM
TIL Python 2 was deprecated on Jan 1st 2020.
Saw some old Python answers on SO and realised they weren't working because they were in Python 2
lol
 
lol
 
flag those posts as such
 
there is an option to flag an answer
 
I'd probably just comment or edit to make it work in python 3
 
12:59 PM
What would you even flag it as though?
 
I think there was a point where I could flag outdated answers. Probably that beta has expired now.
having a look now
looks like manual edits are the way to go
thanks
 
1:14 PM
@PranavKasetti IIRC, some company still want to use Py2 because [reasons] :D
I guess it's mostly a question of time before everyone really switch to it or something
 
Isn't python 3 better in every way though?
 
it is yeah
 
except for the fact that there are still some packages only supported by 2
 
I guess the companies who do this probably have a bunch of reasons
one of the one I could guess would "we don't want to rewrite our X year+ codebase to a new python version..."
or something like that
 
there will always be someone using "version n - 1"
 
1:19 PM
yeah, indeed
 
Is there some established name for a degenerate tree in which each node is the parent only of a leave and another parent-of-leave-and-parent-of...?
r – p – p – p – l
 \   \   \   \
  l   l   l   l
 
Hi everyone, can anyone explain to be in simple terms what is the difference between bias and inductive bias in ML?
 
1:41 PM
Bias is the weightage of different elements
Inductive bias is the set of outputs the machine predicts from only inputs
 
1:56 PM
@MisterMiyagi not knowledgeable in that but, from a quick search I got:
In computer science, a B-tree is a self-balancing tree data structure that maintains sorted data and allows searches, sequential access, insertions, and deletions in logarithmic time. The B-tree generalizes the binary search tree, allowing for nodes with more than two children. Unlike other self-balancing binary search trees, the B-tree is well suited for storage systems that read and write relatively large blocks of data, such as disks. It is commonly used in databases and file systems. == Origin == B-trees were invented by Rudolf Bayer and Edward M. McCreight while working at Boeing Research...
I'm guessing this doesn't have anything to do with it? I'm not sure myself
 
I'm tempted to simply call it a "degenerate tree" even though en.wikipedia.org/wiki/Binary_tree seems to reserve that term for labeled trees whose nodes have exactly one child.
 
In a way, I am looking for the opposite of that. Guess an "unbalanced tree" could fit.
 
Whereas your tree is nonlabeled and all nodes have zero or two children
I suspect the behavior of a Wiki-degenerate tree and a Miyagi-degenerate tree are the same in many scenarios
 
@Kevin Yah, that one I found as well. The slumbering ancient evil in me revolts at such a use of terms, though.
 
Wikipedia also suggests "pathological", with the same meaning
 
2:01 PM
@Kevin Calling it "Miyagi Tree" is tempting, but reality disagrees. Miyagi Trees tend to have no leaves after a finite amount of time.
 
Remember not to overwater
When I see "pathological" in an algorithm-related context, I usually understand it to mean "triggers bad or worst-case behavior" without making any concrete claims about the object's structure.
 
omg... I just realized where mistermiyagi probably came from
why did it take me so long
 
So I wouldn't bat an eye at a comment that calls your tree "pathological" even though it doesn't match the exact structure of a wiki-degenerate tree
@12944qwerty It took me a year to notice that the name of my fellow RO, PM 2Ring, was a reference to Alan Turing.
 
The point is, I need/want to express this specific structure, not just any unbalanced one. It's about abstracting from a sequence/string to a full tree, and my train of thought relies on there currently being many such parent-of-leave-and-parent-of... trees. So having a succinct word for that instead of PoLaPo Tree would be neat.
@Kevin Thankfully, someone blurted out their epiphany. Still wouldn't have got it otherwise...
 
2:16 PM
Mm hmm, I understand very well this need/want for specific and well established terminology
When my search turns up nothing that fits, I usually drop "well established" and just coin something myself
I wonder if the Lisp community has a name for this kind of tree, because it's an almost perfect match for how they construct List objects out of cons pairs
The only real difference being that the rightmost leaf node of a LispConsTree is guaranteed to be nil
 
RO, PM? what is PM?
 
PM is the first half of PM 2Ring's name. If it's a reference to something, it will take me another year to figure it out.
He may have actually explained it at some point, but I forget
 
Private message? Private manager :P
 
Prime Minister (of Australia)
 
philosopher Mathematician Alan Turing
idk
 
2:31 PM
Terminology proposal: A stick is a kind of tree. A node is a stick if it has exactly one child, and that child is a leaf node or a stick.
Or, hmm, that doesn't quite match the desired structure. Revising...
 
StickⁿTree! From the masterminds of StackenBlocken.
 
"A node is a stick if its children are comprised of 0-to-1 sticks, and 0-to-N leaf nodes"
You can call it a binary stick if you want N to be no larger than 2, and you can call it a full binary stick if all non-leaves are guaranteed to have exactly 2 children
Perhaps raise "0-to-N" to "1-to-N" if you don't want a single leaf to be considered a stick
 
"0-to-N" seems fine to include the terminal node as a stick.
 
If I were interested in writing a formal inductive proof about some quality of sticks, I'd probably forbid a leaf from being a stick. But if you're just using it as an abstraction for improving your train of thought, you can fuzz the details a bit
 
It's easier if everything is a stick, actually.
 
2:45 PM
👍
 
I'm aiming for "special rules 1, 2, 3, 4 are just degenerate cases of StickⁿRule 0, so special rule 5 should be adopted as well".
That frees me from the burden of finding a good reason to use special rule 5.
Which is probably a lot harder than having a hunch and handwaving with a stick...
 
In my personal projects, reason is neither mandatory nor desirable
 
Does that work out well?
 
On one hand, not all those who wander are lost. On the other hand, a random walk usually doesn't get you very far from home
 
3:29 PM
only if your random generator is Guassian about home. But then that's pretty much a given because you have to start walking from home
 
3:39 PM
Does anyone here know how to filter a table with openpyxl?

Probably the best resorce I've found so far is this but still haven't managed to filter the table

https://stackoverflow.com/questions/58511145/openpyxl-table-change-table-existing-automatic-filter
 
4:18 PM
As it turns out, empty leaves defeat the power of recursive sticks. 'Tis a sad day for unified stick theory.
 
@JamesMcIntyre Can't you just do this with pandas?
 
If you're working with strings specifically, maybe you can have non-empty "empty" leaves by using "\0"
That's basically what Lisp is doing with nil, kinda
 
There is a "nil" ε, but that's exactly the problem: (K), (K ε), (K (ε ε)), (K (ε (ε ε))) and so on would all describe the same thing but be non-trivial to distinguish.
 
I've never used pandas actually :/

This isn't statsitcal stuff, this is just a table within an exel file with a small number of recrods (~180)
 
@JamesMcIntyre You could ask on the main site, if you can make an MCVE that clearly demonstrates that the existing workaround fails on your data
Bonus points if the user doesn't have to open the created file in Excel to see the problem. I have openpyxl installed on this computer, but not Excel itself
 
4:34 PM
The workaround on the link I made probably works but I don't know how to implament it? When I try to initalise the table using tableColumns=initialise_columns() & autoFilter=initialise_filters().

I think this is because I've not defined initialise_filters() but I'm not sure what the definition would be
 
@JamesMcIntyre It doesn't need to be statistical stuff. Pandas is perfectly adequate for filtering rows
 
@Kevin that is impressive
@roganjosh is it easy to create tables in Pandas? The end users are quite particular about it being in a 'table' rather than just in the sheet
 
What is a "table"?
 
In Excel, if you highlight your data and go to the insert section, you can click on 'table' and it will turn your data into what Excel calls a table
I've been able to use openpyxl to turn my data into a table and create my conditonal formatting but can't get the filter to work
 
Re: "Pandas is perfectly adequate for filtering rows". I agree... For certain definitions of "filter". If "filter" means "permanently removing rows or columns from 2d data based on some criteria", then pandas is very good at filtering. If "filter" means "allowing a user of excel to press a toggle which temporarily shows/hides some columns or rows based on some criteria", I don't know if pandas has that kind of power
disclaimer: I don't actually know what an openpyxl filter is.
 
4:43 PM
Yeah, I don't think I understand the distinction well enough here
 
openpyxl.readthedocs.io/en/stable/filters.html seems to indicate that a filter is a dropdown list containing a collection of named criteria, which shows/hides rows that meet/don't meet that criteria
 
Pandas can very easily and readily do what you'd want in terms of customisable filters, but it won't write to an Excel sheet with filters activated.
 
It would be nice if there was more documentation on filters than just "here is a single piece of example code that calls a single method of the object"
As far as I can tell that's literally all there is
Ah, here's a proper listing. openpyxl.readthedocs.io/en/stable/api/…
Ooh, bad sign that I found a typo after three seconds of reading
 
5:06 PM
its a sign you should have stopped at 2 seconds :P cbg!
 
5:20 PM
someone mentioned pandas and I got notified ;) cbg!
 
filtering seems to be different for a table then when there is no table
 
I don't think I understand this product at all
I don't see how you have a native Excel structure that gets manipulated in Python. Why aren't you using VBA or something?
 
but that would require writing vba :P
 
Well, I mean, sacrifices have to be made occasionally
But I genuinely can't picture the workflow here. I don't understand what even triggers the python code to then send back a pre-filtered Excel sheet, with the filter table structure intact. How does this even happen if you were the end-user? It's bizarre
 
oh it's easy. Hey Steve?! can you finish that accounting spreadsheet work for this month? Steve: uhm, can i use python for this? Not-Steve: NO, wtf is wrong with you, excel is the only tool we should use. Steve: uh..okay. walks away slowly
 
5:33 PM
Then Steve serves up his best macro in the "thing" that is VBA
Or does Bob pass it through some web interface to actually give it to Python, to then download it back with the transform/filter done?
 
well, Steve saw Steven use VBA. Steven kept cussing about how the excel keeps hanging for a few hours every day.
 
Can we agree that this is ill-conceived? :P
 
web interface? see, Steve actually wondered about it.... Not-Steve: Web? that's risky, i dont want our data online. Steve: but..this isn't online..you know what, nevermind
Haha, i would have agreed with you if i hadn't lived this reality :P
(fwiw, we did eventually actually make a web interface thing. and then shipped it as an exe to them..because reasons.)
 
I'm going to reserve judgement on Steve until I understand how this came about. He's probably right to have some reservations in all of this, and he's got great banter in the pub
 
For what it's worth, steve had a high WTF per minute when coding this up.
 
5:37 PM
Actually, I think I meant Steven. You could have picked more convenient names. Just sayin' :P
 
rofl
I have a..sort of inside joke that i do with myself..i guess not anymore, but anyways
whenever i see something dumb happened, i blame Steve in my mind
For example. Steve is responsible for putting salt with chocolate. and marzipan with chocolate. at once.
 
And the n in Steven is like a negation, similar to ! in Java? Steven is the ground-truth
 
oh nah, Steven is just a "normal" guy. No special extremes attached
 
Poor Steven. Relegated to obscurity/normality
 
well, he doesn't mind. he's normal after all :)
 
5:46 PM
I understand how python has huge scripting potential, AWS is a vending machine for scaling and storing data worldwide. Then when I try to understand how they use docker I get Ph.D. level tech-speak that is confusing. Can anybody create an analogy for Docker in the real world for deploying an app?
 
Docker is basically nothing to do with Python. Are you familiar with "Virtual Machines"? Similar to how you can run a Linux Computer on older versions of Windows?
 
you have a hundred cows creating a bunch of methane. You care about this because you run a methane factory. Suddenly one day, one of your cows gets cancer (yes, I'm a terrible person) and is no longer able to produce methane. So you take it out back and you shoot it in the head and replace it with a new cow
 
I say "older" because Windows now actually comes with Linux in a separate service (I don't know how it's implemented internally so I'm deliberately trying to dodge that one)
 
contrast this with your family pet who also used to, but no longer produces methane. You don't shoot it in the head because the family will be devastated to lose the pet. That's how I explain docker
 
Yes, I have an app i've been building that uses virtual machines, version control and I'm slowly adding tests. I should clarify that I need to use them together.
 
5:50 PM
@inspectorG4dget That explained absolutely nothing to me
And was oddly graphic
 
@roganjosh rofl! I was going for "containerized deployment - the containers are fungible"
 
@inspectorG4dget so docker is like a cow vending machine, press a button and it potentially issues a new instance or spools it up depending upon the platform. poof a Holstein.2001.Daughter_of_Betsy.218 ?
 
nope. That's ECS. Each container is either Betsy or Holstein
 
@CoffeeBaconAddict then Docker can be thought of as a virtual machine but with no permanent storage capability within the container
 
Ok so how does docker work when I have a new version of my app, I get that this steps into continuous development or continuous integration.
 
5:53 PM
You wrap your application in a container and you can launch it anywhere, regardless of the underlying OS, and it just gets a fresh restart. You can launch them parallel-y too
@CoffeeBaconAddict I'm less-clear on this, but you can get Kubenetes to do a rolling update over a cluster of containers
 
@roganjosh You must be talking about WSL. (Microsoft says WSL 2 uses a full linux kernel by using a VM technology.)
 
@roganjosh so I can say I want a python3.8 docker, with postgresql 9.4.1212, aws passwords and user names. ?
I can publish it to a linux instance, or push it from github ?
 
@CoffeeBaconAddict Do not host a database in Docker
As soon as you restart the container, the database is just wiped
 
I just watched two online tutorials tellme it was a great idea, I'm like umm I'm not sure that is a great idea.
 
You can spin up dockerised databases, but they need to write to a filesystem that isn't internal to the image itself
 
5:55 PM
What is the benefit of dockerized databases ?
 
I should have been clearer in my first message sorry
 
I park my truck at the back of the methane factory. Betsy is there, dozing peacefully. Good; g4dget made use of the harmless anesthetic squirt gun, exactly as I requested. I guide her up the ramp into the truck, and drive upstate to the farm where she can receive treatment and run and play all day.
 
Quite honestly, I spend a lot of time just fighting docker because it's built in to our services. I'd be hard-pushed to sing its praises
 
@inspectorG4dget so if my docker cow (software) gets cancer (a bug is found) I can go in give cow some chemo (patch the bug) and redeploy a cancer free cow (patched software) ?
 
I'm not enjoying this analogy because I don't know how to make a cow do anything remotely like a dockerised container
 
5:59 PM
@roganjosh can you give an analogy for docker in engineering or the real world not using software ?
 
if your docker container gets in a weird state that you are unable to recover from (possibly a bug in the program in that container, possibly some other issue), then you can kill that docker container without fear of losing any data from within it. Just redeploy the image in a different container and go on about your day. This only works for very specific types of issues and not logic bugs in your main container
 
@JamesMcIntyre In my usecases previously I have found xlsxwriter to be useful. Havent tried applying a filter however other excel functions like wrap text, converting num to dates etc have worked pretty well.
 
Ok. You produce Daisy, a dairy cow that lives in the void but can produce milk. Now you want more milk. You decide that there should be 10 Daisy's that will live a life in boring isolation and never have any interaction with each other at all. They can all produce milk and you can keep spawning more. But they live a totally isolated existence
Worse, when Daisy is "spun down" all memory of that clone is lost forever
 
simplilearn.com/ice9/free_resources_article_thumb/docker-vm.JPG, ok so the docker shares an OS, reduces overhead memory and allows the apps to connect to each other. Plus they are fault tolerant when one goes down I can pull it like a broken lego and install another.
 
I'm hard at work upgrading my truck so it can traverse The Void. The League of Welfare for Hypothetical Animals can't be stopped
 
6:05 PM
I like the cloning cows for some reason, when I was a kid Nicolodean had this farting cows music video that we laughed so hard at.
 
My plan is to wait until the last moment before Daisy is spun down, and upload her mind into the Mootrix
3
 
Which Daisy? They're all just numbers
 
All of them. In hypothesis space I have access to a true Turing Machine, which has infinite memory by definition.
 
Ok to further the cows, say we want a chocolate cow for windows, strawberry for Linux and carmel for mac users ? I can deploy different flavor docker for different software or OS platforms?
 
I think Daisy-137 is the Daisy-est of all Daiseys
 
6:08 PM
i literally left for 10 minutes..and it looks like mad cow disease over here.
 
I have my stats tutor msging me, will be back in an hour. Any books or online tutorials of AWS_python_docker_that you can recommend would be mucho appreciated.
 
That gives me time to think about how Daisy just screws me over for about 50% of my time every day. She hates all my updates to code
<channels Dr. Grandin>
 
You would be mad too if there was suddenly 137 of you, and the 137th of you was favoured
 
It was a Rick and Morty reference :)
 
I've heard a lot about Rick and Morty, never seen one yet though
 
6:21 PM
I highly recommend it. Takes a couple of episodes (what doesn't?) to get the characters to settle down, but I love it
Also, the fact that Rick is Rick-137 comes from physics (well, actually, lots of places)
 
R&M has some damn good bits. I feel a bit sad that it's gained a reputation for tricking lowbrow audiences into thinking it's fresh and poignant, because it does have some fresh and poignant ideas.
 
It restarts on the 20th. I didn't realise it was almost upon us until today, actually. I was going through my colleagues code and found # show me what you got and so had to look up when the new season starts
 
The Pickle Rick episode is probably my favorite episode actually, although I don't consider it especially funny or intellectually challenging or anything. Just very good popcorn television.
> Since the early 1900s, physicists have postulated that the number [137] could lie at the heart of a grand unified theory, relating theories of electromagnetism, quantum mechanics and, especially, gravity.
My favorite physics facts are the ones that make it seem like a higher power is playing a prank on us
 
6:38 PM
We also do like patterns/coincidence
 
But by the same token I'm really skeptical of claims that The Golden Ratio appears spontaneously in nature more often than random chance would suggest.
I don't think natural selection favors phi-proportioned nautilus shells over other proportions, but I do think new-agey nature photographers are more likely to pick phi-porportioned shells off the beach for the subject of their next piece
 
Honestly, I don't know what to do with that number. It is open to be one of those cases that "if you go looking for it..."
 
Although I do recall reading a compelling argument that young plants sprout successive leaves at an irrational angle to their neighbors in order to minimize the likelihood of total overlap. No point growing a leaf in complete shade.
My search for that article has led me to The Algorithmic Beauty of Plants, which has some very nice diagrams of fractals, and the Turtle programs that generated them.
I got here by following the citations of this article about the spirals on the face of a sunflower, which claims that no two seeds have the same angle. I was hoping A.B.o.P. would have actual real-world data backing this up, but the text looks mostly theoretical. Alas.
Ah, I spy a paragraph or two in Ch. 4.1 that cite and/or quote actual botany papers, that's encouraging.
 
7:09 PM
any gamers in the house? What chat/IM platforms are popular in the gaming community? I know of discord and steam chat. I think Minecraft has an in-game chat feature. What else?
 
In particular the block quote of Ridley [125] on page 101 asserts that real actual natural flowers adhere to the Fibonacci ratio with "incredible accuracy", and the relative angle of successive seeds isn't just a pretty good value that was encoded into the plant's genes by natural selection. Something deeper is at work.
@inspectorG4dget Discord is completely dominant in my meatspace peer group.
 
there's also something about flower petal whorl patterns and phi (=1.613...), but I don't remember exactly
@Kevin ok much thanks. That's a good datapoint for me
 
I think ch. 4.2 talks about petals, I've only glanced at that part
If I learn nothing else today, I am pleased to discover the word "phyllotaxis", which has exceptional mouthfeel. Keep that one in your pocket when you're playing Scrabble.
 
8:00 PM
@Kevin I think that logic can be stretched/applied to pretty much anything (if you are overly creative and exaggerate) imo
by anything, I do mean "concept" or "thought process", etc
of course, some of these might be more fitting than others, but I digress
 
After perusing the documentation I'm willing to stop thinking of proponents of the idea as hippies with a bad case of pareidolia
Unrelated topic. docs.python.org/3/library/typing.html#type-aliases suggests using Vector = list[float] to create a type alias. When I try this, I get TypeError: 'type' object is not subscriptable. What am I missing? I know that I can do Vector = typing.List[float], but that is very much not what is in the example code.
 
8:26 PM
You're missing python 3.9
 
Yeah, I'm on 3.8. I wondered if it was possibly a 3.9 exclusive feature, but I usually expect to see a "new in 3.9" indicator in the docs. I guess this is an exceptional case because it's a change to the builtin types, not to the methods of the typing module.
 
 
1 hour later…
9:35 PM
Hmm, I've got three sets with mutually recursive definitions like "if X is a member of A, and Y is a member of B, then X+Y is a member of C" and I think I need to reinvent group theory to solve my actual problem
 
I'm annoyed at myself for this pandas code. I basically want every product to have a full set of values for every date, regardless of whether there is data existing for that product/plat combo. The code does what I want, but in two passes, and I'm sure I'm missing something, I just can't think what
It also needs to be expanded to have every single day. I had a go at join with a df that had a pd.date_range index and couldn't make that work
 
Upvote for the MCVE, but I have little advice for you
 
There were line spaces between different elements. I didn't check enough before I posted to dpaste. When you copy out of slack, they get lost :(
 
@roganjosh MCVE has some issues. Looking at the moment
 
The MCVE does exactly what I need. Have I opened black holes? :O
 
9:47 PM
[I tearfully retrieve my upvote from roganjosh's MCVE jar]
 
last line gives a key error
df = df[df['plant']]
I filled in the syntax error and got a key error
 
2 secs. I think my C/P was too hasty sorry
 
Relatable
 
one time I pasted a youtube commercial instead of the intended video >.<
 
@Kevin Hopefully you'll be re-depositing? I'm awfully sorry that your original experience didn't live up to expectations, Sir, but we are trying to make it better.
 
9:54 PM
Well, you get unlimited retries :-)
This one gives me KeyError: 'Level plant not found' but I'm sure we're hot on the trail
 
I... am at a loss on how this is happening. It really does give that error but I copied the whole script which runs fine. wtf
 
You could blame the problem on literal magic and I would believe you. It would explain a lot about pandas actually.
 
Screw it, I'll go for a gist, if I can remember how to log in. My apologies for the wasted time, all. I don't know what's going on with the past links
 
01:00 - 22:0022:00 - 00:00

« first day (3884 days earlier)      last day (1074 days later) »