« first day (3671 days earlier)      last day (1281 days later) » 
00:00 - 20:0020:00 - 22:00

12:18 AM
@AndrasDeak Not bad. Living the remote life. Turns out I love it. But, I do miss people.......sometimes.
 
12:33 AM
The brief conversations that I've had here are the first that I've had that have lasted over 30 minutes in like a month.
Half of that is lag, lol
And for some reason, I don't really have a problem with this.
 
Well, statistically speaking, people are the worst
 
 
5 hours later…
5:36 AM
@idjaw What I do miss most about going to work is the food. In some ways it's a blessing in disguise because my options were either learn to cook to survive or hundreds of dollars in uber eats bills
 
 
4 hours later…
9:31 AM
is there a better canonical for "modifying one list element modifies all of them" than this? stackoverflow.com/questions/18239705/…
 
Or to paraphrase Tolkein: "One reference to rule them all, one reference to find them, one reference to bind them all, and really, really confuse 'em."? :p
 
Dupe hammer with LOTR?
"This question already has answers here: ISBN 0-618-00225-1"
 
9:49 AM
Hmm, the Bedlam DL3 account seems to have been moved to techcommunity.microsoft.com/t5/exchange-team-blog/me-too/ba-p/… (cc. @Kevin)
 
I am working on basic python project
is anyone here to contribute to that?
 
Is there a proper dupe for "The GIL did it?"
 
Oh, and apparently there was a Bedlam reenactment event last year cbsnews.com/news/…
 
@AndrasDeak thanks, I searched for "modify" and etc but not duplicate (because the problematic question wasn't about duplicates at all)
@GauravShukla if you have concrete questions, I am sure we can try to discuss those
 
On a webserver I run a zipping task in the background and have: executor.futures._state('zipping_task') Pycharm is warning me that I access _state. But that's the official way according to the package author of flask_executor. Any ideas how else I could do this?
 
user13428955
10:05 AM
@AndrasDeak Thanks a lot for Your kind response. Actually I am not able to sort out this problem. Could You may help me to solve this problem
 
user13428955
@MisterMiyagi Thanks a lot for You kind response. Is it possible to sort out the problem by using nested for loop? If possible please may You give me some instruction
 
@Asif This is a very fundamental problem of misunderstanding function calls. I recommend you spend a little time to try and understand these, instead of trying to build around the issue with cruft.
Please consider the minimal function definition and call example. It should help you understand the issue.
 
user13428955
@MisterMiyagi Thank You. I am trying to learning. But whenever I try to apply it on a practical way then I am getting c bit confused. That my problem
 
Well, do you understand why Python says it got multiple values for argument 'c'?
 
user13428955
@MisterMiyagi No. I try to understand. Therefore I searched on the google but I did get it clearly
 
10:15 AM
In the minimal example I linked, do you understand why Python says it got multiple values for argument 'a'?
 
user13428955
@MisterMiyagi Yes got it
 
Do you understand it in this case?
def foo(c, x, y, z): ...
foo(1, c=2)
 
user13428955
@MisterMiyagi Yes. I understand.
 
user13428955
@MisterMiyagi Dear mentor Thanks a lot. Now my code is working. This is very kind of You
 
11:27 AM
cbg
 
Hello
Can someone please help me?
 
@NabeelMunir Hello, welcome to the Python chatroom. As per our room rules please refrain from posting new questions for at least 48 hours.
 
12:39 PM
can you guys suggest me how to deal with the manager taking the short bad decision? He wants to add new columns as newline separated values in existing columns rather than changing the DB
 
If the columns are ever used as query fields, performance is going to be awful - indexes will not help since they are not designed for multiple values in a single record. And any existing indexes on those fields will become useless. If the column is not of BLOB type, there is also likely a limit on the size of data that can be stored in a column.
He may be thinking this is a "pay me now or pay me later" situation. It's really more like "pay me now or pay me 100X later."
I got a number of hits googling for "bad database design example", maybe you'll find some cautionary tales there.
 
 
1 hour later…
1:55 PM
Beware people called Null
 
Couldn't sleep last night because I thought I found a way to trisect an angle with a straightedge and compass
 
I want to say "relatable", but not at all ;)
 
... and some string, some gum, and a protractor
 
But mostly because I don't like geometry... last week I was up one night thinking about glowing spherical waves expanding with the speed of light
 
@AndrasDeak you really need to learn which mushrooms are safe to pick :)
 
2:12 PM
the safe ones are boring though
 
But it turns out that if you have triangle ABC and trisect side AB into segments AX, XY, and YB, then XC and YC don't trisect angle ACB :-(
I knew that there was no chance I found a simple construction that eluded history's greatest minds, but I couldn't spot the inconsistency with just my imagination
Fig 1. How not to trisect angle C
 
almost looks like a paper airplane you haven't folder in the wings yet :)
 
This approach would only work if you drew an arc from A to B and trisected that. Trisecting a line segment gives you three angles that are too big in the middle and too small on the ends. It's just hard to see with acute angles like these.
Nonetheless while kicking this idea around I did figure out how to trisect and quadrisect and N-sect a line segment with just a straightedge, which I needed for the problem I was talking about yesterday
Now I can construct all coordinates in 2d space that use rational numbers, not just <integer> / (2 ^ <integer>)
 
2:30 PM
whats the python3 equivalent of treemap (from java)?
 
That doesn't take me straight to my goal but it may be useful. I can also get sqrt(<integer>), which gives me access to a lot of irrationals. I think transcendental numbers are impossible by definition, but I'll manage without them, I hope
 
@Permian You might have to tell us what it actually does, considering that most of us are not java devs
 
that would be a dict
 
except in key order rather than insertion order...
 
2:33 PM
that ^
So the answer is "whatever you implement yourself"
 
so not really a builtin that's exactly equivalent
 
The sortedcontainers library has pretty efficient, sorted variants of the standard Python data types.
 
Perhaps you could use a heap? They're pretty good at fast insertion of arbitrary values, and fast popping of minimal values.
 
is orderedDict from collections the same?
@AndrasDeak no it needs to be quicker than that
 
@Permian no
 
2:35 PM
why not?
 
@Permian nothing stops you from implementing it well :P
@Permian ask Guido
Or read the docs for ordered dicts. Or read the messages in this chat.
 
Hmm, TIL that OrderedDict is still around even though regular dicts are now ordered too. It's got a handful of methods that make it not vestigial.
 
@Kevin and IIRC equality tests take into account the ordering...
 
Mm hmm, it is so.
 
@Kevin as of 3.8 or 3.9? I don't think 3.6/3.7 had ordered unordered dicts
 
2:40 PM
As they say in magic: the gathering, "reading the card explains the card". Except in this case, the card is the documentation.
 
@inspectorG4dget 3.6 cpython implementation detail, 3.7 language
 
cool beans! thanks
 
Yup:
OrderedDict([(2, 1), (1, 2)]) == OrderedDict([(1, 2), (2, 1)]) # False
{2: 1, 1: 2} == {1: 2, 2: 1} # True
 
docs.python.org/3/library/collections.html#ordereddict-objects confirms: "(this new behavior became guaranteed in Python 3.7)."
Not exactly the first place I would look if I wanted to learn about the behavior of regular dicts, but so it goes.
 
so whats the different a dict, sorteddict see grantjenks.com/docs/sortedcontainers, and orderedDict?
 
2:43 PM
(If it's not clear, my MTG tangent is chiding myself for not reading the bit in the docs about equality tests. I am not chiding anyone else that happened to be asking a question about dicts during that part of the conversation)
@Permian dicts and ordereddicts are "ordered" in the sense that their key-values stay in the same order that they were inserted. I'm not too familiar with a "sorteddict", but most likely it changes the order of its key-values so smaller keys appear before larger keys.
 
ah i see
yeah sorteddict is a treemap then
 
Which is what Miyagi said so I'm not terribly surprised
 
To give an example, d = {999: 0, 1: 0} will keep 999 as the first key even though it's larger than the second key. Presumably the sorteddict will make 1 the first key.
 
I see this confusion a lot in Python interviews - Python dict ordering is strictly insertion-order preserving, not sorted keys.
 
@PaulMcG yeah but now i know!
 
2:48 PM
I saw this slick dedup one-liner that, unlike set, will preserve order from the original list: list(dict.fromkeys(seq_containing_duplicates)) (couldn't do this pre-3.6)
 
In 95% of cases you shouldn't care about the order of your dicts anyway
Here we see a rare instance of me giving a smaller-than-99% estimation because there are some valid use cases that aren't even contrived like my usual counterexamples
Most recently I had a deeply nested json structure that I wanted to reorder so the smaller values appeared first. {a: 1, b: 2, c: <one thousand line long string>} is far more useful to me than {a: 1, c: <one thousand line long string>, b:2}
 
Wow... the videos of Trump "dancing to YMCA" are strangely hypnotic...
 
That b key may as well be in Siberia for all I can see it, in the latter case
 
@Kevin yes but i found case where you do
 
There was a 1/20 chance that you would ;-)
Critical hit! Kevin became confused!
 
2:55 PM
ipo one, i think you need a sorteddict of price -> vector of id's
 
dundundunn
 
then two really awkward loops
 
My only use-case for SortedDict is to have a priority queue with O(1) inserts. It's basically a key-heap and separate key-value map, but I'm too lazy to maintain both.
 
Imagine if being confused in real life was like being confused in a pokemon game... every time you struggle with a hard debugging problem, your 3 rubber duckies fly into the air and dance around your head
 
I guess you could use a sorteddict here, sure... But since the dict doesn't mutate after you initially create it, you could use a regular ordered dict, as long as you add keys in sorted order.
If I understand correctly, you don't need fast key lookup, so you could even make a List<Tuple<price, List<user>>> and skip the dict entirely
 
3:03 PM
list of lists might be O(n2)
 
... Not that I endorse that as a practical solution. a dict is fine.
@Permian Yeah, and a sorteddict of price-> vectors is O(N^2) too.
 
but you will need O(n2) to create the dict
maybe ive thought about this wrogn
 
Same for a sorteddict of price->vectors :-) actually, it might be O(N^2 log N)...
 
where does the logN come from
 
Anything with "sorted" in the name almost certainly has O(N log N) startup time
... Although in the specific case of sortteddict, I imagine that N is proportional to the number of unique keys, which may be much smaller than the total number of users
 
3:05 PM
ah yes
i just forget all of these things
 
On the other hand, red black trees are designed specifically to allow for fast sorted insertion, so they might do better than O(N log N). I don't know much about them.
 
thats a bit more than what i need
maybe a dict is overcomplicating it
 
hey guys
 
The two most dangerous things you can do on programming challenges are: overcomplicating things, or undercomplicating them :-)
You have to complicate them just right
 
@Kevin they'd be cooler if they were called rakdos trees or something :p
 
3:08 PM
Rakdos trees require a blood sacrifice during initialization, which makes them impractical for most applications, unless you're facebook
 
and I suppose it could get awkward if you insert some key it has the side effect of another key coming back but with a value of +1 added
 
Mm hmm, and it can't block
No good unless you've got an asynchronous design
 
nothing like a stack that resolves in arbitrary order... it'd be fun to see a leaves the dictionary event happen before a joins the dictionary event...
 
how can i run two python scripts in the same terminal one after the other without manually running it in cmd, ok so if you are confused here is the explanation, so lets say i have one python script which prints hello world and the other python script which prints hello universe so i saved them both as 1.py and 2.py respectively,
when i double click on the 1.py it opens a terminal window and prints hello world and then it starts the second file so instead of second file starting in a new terminal window i want to print the statement in the same terminal window although they are two different files
 
@Praveen batch file?
 
3:13 PM
python scripts
 
yes
 
what yes?
 
@Praveen Why not import the second one and call it after the call for first one is completed if I am getting what you mean.
 
How does 1.py start 2.py?
 
os.startfile('2.py')
 
3:15 PM
+1 to Ashwin. The conventional way to make multiple py files execute within one process is to import them.
99.999% of the time you should not be passing a .py file to os.system or startfile or any other such shell-like command
 
no without importing it
 
Then what @Andras has said ^^^^ :p
 
then?
 
@Kevin this is correct.
 
> yes
;)
 
3:17 PM
yeah but lets say i dont want to import it and i want to run it in the same terminal
window
what should i do then?
 
Create a batch/command/whatever file that runs them and then run that... as has been mentioned a couple of times now...
 
batch file
 
If my boss isn't letting me use import, I hand in my letter of resignation. If my teacher isn't letting me use import, I change schools. If I'm not letting myself use import, I become a carpenter.
 
Importing it is the best solution. A possible alternative is running it in a subprocess with pythonw.exe 2.py
 
If you are unable to use import then you should not even write the solution.
 
3:18 PM
@Kevin Praveen's last problem was "import anything dynamically because the user will choose what to import"
 
@Kevin lol
 
Usually I play along with the "suppose I don't want to use the simple foolproof idiomatic solution" game, but I'm not feeling it today. Use import.
 
@AndrasDeak lets say this is a different project
ohh come on man there will be a solution
 
@AndrasDeak And I handed him a footgun that would let him do that. Surely he wouldn't take my advice and throw it away in favor of a non-import approach, would he? ;_;
 
I'm too lazy to cook up one of those "how could the XY do this?" shooting memes. But it would say '[multiple solutions, shot dead] "Ohh come on man there will be a solution"'
 
3:20 PM
lets say user installed the 2.py file from the internet and he does not know python
 
I don't see how that matters
Your 1.py script can do whatever it wants, regardless of the skill level of the user
 
Of course I assume not, but...
Question to the windows people among us: Does subprocess open a new terminal?
Hm, time travel...
 
@MisterMiyagi ugh, you can't just call them windows people, Miyagi
 
Let's see... No.
 
3:23 PM
>>> subprocess.run("echo foo", shell=True)
foo
CompletedProcess(args='echo foo', returncode=0)
Prints in the existing terminal.
 
@Praveen use suprocess.run, then
@AndrasDeak which part of the two is the offensive one? D:
 
Windows has a concept of "command line app" vs "GUI app". Launching a command line app automatically opens a terminal. That's why pythonw.exe exists
 
well i will explain it clearly, so u made a python program which displays stuff and lets say there is a module which displays cricket scores of todays cricket match , so lets say the user downloads the module and now whenever it runs it opens a new terminal window and displays it, but i dont want to do tht i want to make it display in the existing window
 
python.exe = CLI, pythonw.exe = GUI
 
Disclaimer: I recently tried reviving my old gaming laptop. You windows people have my utmost respect!
 
3:25 PM
"Windows person" is dehumanizing because it puts "windows" in a position of what I am rather than what I have. Use people-first language: I am a person of poor life decisions.
 
@Aran-Fey less GUI and more just doesn't open a CLI :p
 
If programming:
linux.use()
 
ok i give up on this, F
 
@JonClements Right, but it's a GUI program as far as Windows is concerned
 
i have another question, so lets say i have n lists which are named by series of numbers for example
n1 = ['apple']
n2 = ['mango']
n3 and so on
how can i find number of lists in tht python file
 
3:38 PM
Refactor the code so that you have a list of lists instead of a bunch of variables
ns = [['apple'], ['mango']] and then result = len(ns)
 
oh ok ok i got it
 
has to be a dupe too
 
4:01 PM
Hi everyone, I wondered if there was a way to create an environment thanks to a yaml file without using conda?
 
4:12 PM
So you want a venv without using conda? Try the venv module
 
@Kevin My point is to load an environment without installing anything before, so it is reproducible easily. With using a yaml file for example. What if I specify the module you mention in the yaml file?
 
venv is a built-in module, so you don't have to install it
 
@Mez13 are you sure you're not looking to make a requirements.txt file?
That would typically be the way to list all of the dependencies you need to install in a new environment in order to run your project
 
@Kevin Sweet. Do you know how to generate a file from an existing env and load it too? Thanks to venv
 
Nope :^)
 
4:24 PM
@roganjosh Yes, .txt or .yml, I don't really mind tbh :)
 
Then just do pip freeze > requirements.txt
 
@roganjosh Nice, I did not know that command. Can it also get the version of Python? I don't see it. And to load it in another project ( I mean install all the packages with the right version), what the command line?
 
roganjosh knows more than me, so I endorse whatever he's saying
 
@Mez13 As Kevin suggested, you can create a venv with python -m venv myvenv, then activate it with source myvenv/bin/activate. Then you can do what roganjosh suggested to redirect your dependencies into a requirements.txt file.
 
For that I think you will want to see this thread
I think the python versioning is really more dependent on how you want to deploy your library e.g. using a setup.py or you could specify the version in a docker file, for example
 
4:33 PM
apparently venv can make a portable(ish?) python exe that automatically has the same version as whichever one you're using now
In any case I think it makes sense to keep the Python version separate from your other requirements
 
There is also this answer that suggests you can make different requirements for different versions. virtualenv can only make an environment that you already have installed locally - conda allows you to pick the version. Someone at work also mentioned that pyenv allows you to specify it too but never used it
 
@roganjosh Thanks, they recommend to write the python version in the README, haha. It's not really an issue. I am more concerned about how to load thes requirements file and thus install all the needed libraries
It's probably just a pip install, I will manage this way. Thank you very much for you help
 
pip install can read from a requirements file. See example #2 at pip.pypa.io/en/stable/reference/pip_install/#examples
TLDR: use the -r flag
 
If you also need to combine conda environment YAML with pip requirements, you can do this: stackoverflow.com/questions/35245401/…
 
4:50 PM
morning cbg
what's the good word snakes
 
@idjaw the good word as always is "cabbage"? :p
 
stuffed cabbage is wonderful
 
@roganjosh Are the yaml files as easy as requirements ones to manipulate? Meaning just a pip to create and load it?
 
No idea sorry
 
If you are dealing with python then good to have requirements.txt as it is easy to parse by many py libraries.
 
4:57 PM
@AshwinPhadke Yes, the only inconvenient is that we can't specify the python version we wanna use
 
@Kevin Life's slowly getting better for the Windows-land. I managed to get a pretty nice setup with WSL just to see how far I can go with my dev. It's pretty neat.
 
@idjaw life's getting better in windows by having good linux inside? :)
 
But seriously, I like Windows just fine. I just rag on it because it amuses me
 
WSL 2 is neat, and alot faster than WSL
 
@AndrasDeak hey hey hey. MICROSOFT <3 LINUX. OK????
 
4:59 PM
Almost all of my frustrations are OS-agnostic
 
@idjaw linux > 10 microsoft easily
 
@AndrasDeak lmao
 
@RoadRunner Yes. I implied WSL2. But yeah. Definitely!
 
That said, if Linux's equivalent to MS paint can draw a circle centered on point A and with circumference lying on point B, then I might be convinced to switch...
 
@AndrasDeak programming linux, docs and other stuff windows.
 
5:01 PM
Funny enough my mac does not have something like paint.net, so I find myself going to my gaming PC to do things quickly.
So windows has that going for them :P
 
I don't know what would be a "linux equivalent of MS paint". I suspect it varies with graphical environment. I'd expect things like gpaint and kpaint to exist.
 
@Mez13 ok.
 
It definitely doesn't exist in a "part of the furniture" sense, I don't think I've seen any paint-like programs installed by default
But yeah, gpaint is a thing
 
I figured there wasn't a monopoly on paint programs in Linux, so I'll be permissive about what counts as an "equivalent"
 
LibreOffice Draw or Impress maybe?
 
5:04 PM
I like the flexibility of switching between powershell and WSL on windows
Even though you can get powershell core working on Mac/Linux if you need to
 
Why would you need to?
 
I have a current use case for this actually
 
@AndrasDeak Because I hate bash
I like using a scripting language that is strongly typed
 
@AndrasDeak I have to work against Windows DNS servers and need a non-windows way of communicating
Maybe I don't know powershell enough, but I much prefer bash. The devil you know I guess.
 
5:07 PM
@idjaw so that's the opposite of "need to" in "need to get powershell working on linux", right?
 
> To draw an ellipse or circle from its center, position the cursor on the drawing, press the mouse button and then hold down the Alt key while dragging with the cursor. The ellipse or circle uses the start point (where you first clicked the mouse button) as the center
LibreOffice Draw does the needful 👀
 
@Kevin so does gimp
 
@AndrasDeak hm. Not sure I understood. But, my options were to do a fully Windows-based solution on a Windows platform, or stick to a solution that works for *nix environments. For the latter there was a "need" for powershell working on linux.
Is that what you were asking?
 
you can choose between setting the bounding box or choosing a center, I think
But gimp is less geared toward drawing.
 
I'm curious how this works with ellipses, which essentially have two centers, not one
aka foci
 
5:09 PM
@idjaw yeah, I probably misunderstood you
 
gimp is more a light replacement for photoshop. I would say it is overkill to say it is a good paint.net replacement
 
@idjaw except Kevin doesn't use it for paint.net stuff
 
right.
 
@Kevin perhaps there's a second stage where you constrain one of the axes
 
I agree that gimp is more like photoshop-- than ms paint++
 
5:10 PM
I mean yeah, that's a given
I mostly meant the "overkill for Kevinproblem" part
If you're serious about plotting with coordinates, consider learning TikZ with latex ;)
 
I was always under the impression Kevin just willed the patterns he creates with his mind.
 
@idjaw From what I've seen, powershell core works fine on *nix. Just need to be careful because the old WMI cmdlets from windows powershell are deprecated in powershell core, which now uses the newer CIM cmdlets.
 
Using something much more powerful than MS paint is the foolproof easy idiomatic solution to my Kevinproblem, but suppose that i don't want to... ;-)
 
so I think libreoffice is much more powerful than paint :P
that's more like inkscape
I can take a look at gpaint...
 
A Kevinproblem is like a gedankenexperiment except no thought is involved
 
5:14 PM
like an Odinsleep except it's a nightmare
 
@RoadRunner So, this is actually a current "problem" I'm trying to solve.
Are you saying that in a way that there are limitations and deprecated features that limit its usage?
 
The ride never ends 🎃
 
Or I would have to talk to a different API to properly communicate with CIM? aka more directly to CIM
Coincidentally this is something I've been actively drafting different designs to figure out what would be best.
 
@idjaw Ah I see, I guessed that would be a limitation you would have already run into
 
So, currently the solution I'm working with is winrm, running powershell through remote powershell sessions on a windows server
It's not scaling very well.
 
5:19 PM
Blast, gnuwin doesn't have a gpaint package
 
I want to containerize this "proxy" server I'm communicating with, but I also want to understand the bottleneck to make sure I'm not just masking the real issue by paying for cloud resources I don't need.
This is where I started also thinking about running powershell core
 
let's see...
gnome-paint/testing 0.4.0-7 amd64
  simple, easy to use paint program for GNOME

gpaint/oldoldstable 0.3.3-6.1 amd64
  GNU Paint - a small, easy to use paint program for GNOME

kolourpaint/testing 4:20.04.1-1 amd64
  simple image editor and drawing application

pinta/oldoldstable 1.3-3 all
  Simple drawing/painting program

xpaint/testing 2.9.1.4-4 amd64
  simple paint program for X
Seems that gpaint was renamed gnome-paint. The rest might also be paint-like
 
Google tells me that xpaint has a windows build, although sourceforge may be lying for SEO purposes. I'll know once I download the tar
 
@idjaw Any WIM cmdlets have equivalent CIM cmdlets, so you would need to convert them if wanting to run powershell core on *nix.
Also curious what the scaling issue is? Are you with a specific cloud provider?
 
@Kevin I appreciate the lengths you're willing to go to keep using an inadequate tool for your Kevinproblem
 
5:28 PM
WinRM + PSRemoting is a standard way to run remote commands on windows servers, so my next question would be to ask what cloud your working with, because there might be a better cloud native solution you could leverage here.
 
I'm 80% sure that sourceforge lied to me because xpaint's readme says that it "is known to have been successfully built on the following platforms", followed by a long list which does not contain any Microsoft platforms
 
Might be better to move this conversation to another chat @idjaw
 
@RoadRunner Thanks! If it's no bother to you, sure!
 
@AndrasDeak I appreciate that you wrote "appreciate" and not "am infuriated by"
 
@RoadRunner you can link it here so interested parties reading the transcript can follow you
Freud...
@Kevin that phrasing is itself quite discouraging. "I know this guy denvercoder9 who built it on [platform]".
 
5:39 PM
Who could have guessed that the maintainer of a barebones image editor would have a build process as barebones as "here's the .c and .h files, good luck :^)"
I support his right to do so, but I also support my right to not bother trying to compile it
 
If you have a C compiler it might be as easy as gcc -o xpaint -I/path/to/headers xpaint.c
 
cbg, all.
 
There is an INSTALL file here that looks makefiley...
 
cbg
 
@Kevin I see you are finding out (probably yet again) that much open source is, shall we say, under-engineered.
 
5:46 PM
Ooh, circleOp.c has a static int centerMode = False;, that's promising...
@holdenweb Just so. Fortunately I have developed an aesthetic taste for imperfection.
[smacks lips] This one has tones of beige computer cases, with a hint of raspberry
 
Necessary for a delicate soul with a sensitive nose when wading through those waters.
 
stackoverflow.com/q/60374988/4799172 dupe (my initial one appears to have aged away)
 
@roganjosh the answers seem very different
Are they really the same problem?
 
@AndrasDeak The answers to the one I'm asking to be closed don't answer the question
 
6:01 PM
Umm... it works but... umm... how "ugh" is my answer here
it's one of those hiding a lot of what's happening and probably haven't explained it quite properly either
 
But the problem is identical - "end-point" and "route" are synonymous. Asking "how do I stop this logging" can't be answered by "well, just set up a second logger and log it there" :P
 
@roganjosh by the way, try voting to close again
 
I did. It allowed my vote to register so it seems you can re-vote if the initial one expires
 
Yup, after two weeks
And I was mostly worried that the answers here would be hidden if we dupe it. But if they are useless answers that's not a loss
well, one of them isn't even an answer
It was just surprising to see ajax stuff on the target
I mean, surprising to me, because I associate ajax with dynamic page updates
 
Fair. The AJAX just ensures that you can see the response in the dev window of the browser to confirm the request went full circle (to backend and back) even though you'll see nothing in the server log because I silenced it
 
6:16 PM
 
 
1 hour later…
7:31 PM
Please don't flag messages that aren't offensive. Thank you.
 
7:48 PM
Can someone give me some directions. If I have number 60 than number 800 and number 12500. How to calculate next number in Python?
 
Hello. You'll have to provide a little more information. Clearly it is a matter of determining first what the pattern is and then applying that math
Have you put together any code? Can you share it?
 
@idjaw I know basic math but I don't have education for that. I am not sure what to do
 
The next number cannot be predicted without a rule. Otherwise the stock market would be very different.
 
I just want to get something simple with percentage
 
Exactly one second-degree polynomial can be fit to that data. And infinitely many higher-degree polynomials. And a bunch of non-polynomial functions. Insanely many.
@Pijes good luck?
 
7:53 PM
@AndrasDeak OK. Sorry guys. I know that I am so stupid that hurts.
 
@Pijes it's not about your intelligence. It's about the ill-specified nature of your problem.
If you specify what you really want to do other than "I'll tell you 3 numbers, tell me the fourth" we might be able to help
 
@JonClements I fixed a typo. You were missing a closing parenthesis. :)
 
@Pijes If I tell you the fourth number is 12501, how can you tell me it's not the number you're looking for?
 
@AndrasDeak OK. I didn't mean that you tell me the 4. I just wanted that you tell me what I need for that.
 
@Pijes Sorry Pijes if you interpreted what was said as negative to you. To help rephrase, we are unable to provide help to your problem without knowing more about the problem. To Andras' point, the possibilities of what this pattern could be or the rules that have to be followed are "endless".
 
7:56 PM
@idjaw OK. No problem. All good
 
No, literally endless
 
and Andras is much better at math than me. So, that endless is double true.
 
00:00 - 20:0020:00 - 22:00

« first day (3671 days earlier)      last day (1281 days later) »