« first day (3376 days earlier)      last day (1587 days later) » 
00:00 - 23:0023:00 - 00:00

12:05 AM
@wim yeah, that's what I'm concluding too...
got any thoughts on this?
6 hours ago, by Aaron Hall
I wonder if that would have been the case if the developers of mercurial considered Python to be the prototyping language and on success of the prototype had then ported it to C.
would they have been able to outprogram Linus Torvalds on performance? IDK...
I suppose they didn't need to outprogram him, just keep parity...
then we all might be using hg-hub
 
wim
hg was also not really maintained well. It's still on Python 2.7 IIRC. embarrassing.
 
wim
12:20 AM
What is git doing badly that you think hg could have improved on? The only thing particularly bad I can think about git is the CLI is hard for n00bs, but it's just something that you kind of get used to and maybe even grow to appreciate once you understand the underlying data model (snapshots not deltas)
 
Are there even any major differences between all these version control systems? The concepts (commits, branches, ...) and workflow (add -> commit, ...) are all the same as far as I can tell
 
One major is centralized vs distributed, but hg and git are both distributed
 
wim
What underlying storage model does scipy.spatial.transform.Rotation use? Is it quaternions?
 
1:24 AM
@wim what are good resources for understanding the underlying data model?
 
2:00 AM
> It is the project policy for Mercurial and its core extensions to be compatible with Python 3. Over 99% of tests pass with Python 3 and test regressions are treated seriously.
> Those sounds (getting prompt info) are still fresh for me 🗡️❤️ - twitter.com/jeremyjkun/status/1216505896269840384
I don't exactly know what to make of that response, I think he may have recently ran into the same problem?
 
AMC
I think someone just reposted the same question for the 3rd time, do all the ways to verify that require high rep? The question, for reference: stackoverflow.com/questions/59709433/…
I know for a fact they've posted it once, yesterday I think, but I could have sworn they also posted it a couple of hours ago. That question, however, is only an hour old.
 
@AMC yes, you're right, I posted a comment explaining the problem to them, why don't you take it from here if you're watching it...
 
AMC
2:27 AM
@AaronHall I don't know if you saw, but the reason I noticed it is because I already discussed things with them on their first post. They weren't happy though, since on the second one they left a comment which I think was deleted by a moderator.
 
wim
2:59 AM
@AaronHall that is a joke. If they really take it "seriously", then they should be already supporting Py 3 many years ago, and dropping support for 2.x NOW
 
Well let's hope they get 'round to it, we're trying to turn off 2 where I work, and I can imagine hg is going to require it there for a bit longer...
 
wim
@wim answering my own question: yes, it is a quaternion. rotation matrix etc is converted from quaternion (stored as a (1,4) shape numpy array in r._quat attribute)
@AaronHall I think more likely mercurial will quietly die
bitbucket recently announced they will no longer support hg
 
@wim they keep complaining about not wanting to hear about git...
$ nix-shell -p python38 emacs26 which --pure
these paths will be fetched (0.01 MiB download, 0.05 MiB unpacked):
  /nix/store/ng2asqzsmb49jfplx92jkdbfdk9h6nbg-which-2.21
copying path '/nix/store/ng2asqzsmb49jfplx92jkdbfdk9h6nbg-which-2.21' from 'https://cache.nixos.org'...

[nix-shell:~]$ which emacs
/nix/store/bhxzrb8g99hdg35ddgqnxwrpmck1ydas-emacs-26.3/bin/emacs

[nix-shell:~]$ which python
/nix/store/6clhjzhzbwp4s4sg2zz0m0wfqsqg4pfw-python3-3.8.1/bin/python
It's like a clean environment with only python, emacs, and which.
 
@wim right, good one. I see it from time to time...
I will one day read it cover-to-cover. But not this week. And it certainly won't be next week...
flips through calendar...
I need to figure out how to get a pure nix-shell with my specific packages by default. without aliasing nix-shell to nix-shell --pure in my .bashrc... this default.nix file isn't working out though...
looks like maybe the nixpkgs manual was what I needed: nixos.org/nixpkgs/manual
 
wim
3:52 AM
won't help future readers stackoverflow.com/q/59705901/674039
 
 
4 hours later…
user10984358
8:15 AM
List comps aside, Is there anything analogous to filter like itertools.starmap?
 
8:37 AM
can you clarify what you mean? filter and starmap are not particularly alike.
 
user10984358
if I have two strings a='123' and b='132' same length guaranteed, and I want to find out the number of corresponding matches, in this case only the first index match so result needed is 1, so I am doing something like this, t=starmap(eq,zip('123','132')) and len(list(filter(bool,t))), I want to remove the intermediate starmap
 
user10984358
eq is operator.eq
 
starmap(..., zip(...)) is just map oO
use this: sum(map(eq,'123','132'))
 
user10984358
I keep forgetting map can take n arguments, thanks!
 
user10984358
8:58 AM
TIL sum can add bool values
 
it's because of the bools themselves, not the sum per se. Booleans are a subclass of ints, so you can actually do all your usual mathematical operations on them.
It's pretty nifty sometimes for counting Trues in a series or something like that
 
user10984358
just tried True+True and for some reason that made me smile lol, where do you guys get these from? these = details not said in basic online tuts
 
I suspect i probably picked this up in this very chatroom possibly. I'm not too sure.
But yeah, i guess here and there. You just tend to absorb information on SO over time.
 
9:37 AM
boolean values being casted to 0 or 1 is an old cliche that also existed back on C; the converse is also true (for (but not limited to) integer values, 0 is falsey and everything else is truthy) († assuming such a cast is allowed)
 
9:52 AM
it's not even actual casting. True and False are literally the 0 and 1 values of an int subclass.
Which is why True is larger (memory wise) than False on CPython ^^
>>> sys.getsizeof(False) < sys.getsizeof(True)
True
 
because 0 requires 0 bits and 1 requires 1 bit? Is that how ints work in CPython?
 
very close
 
fun fact: in ruby, all numbers are truthy, even 0 (the only falsey things are false and nil)
 
it's indeed because int is arbitrary precision. Values are stored as multiple blocks (apparently 32 bit including bookkeeping), and 0 doesn't need one while 1 does.
 
makes sense
 
10:09 AM
@Unihedron so it's basically a null check?
 
Is there a difference between type.__mro__ and type.mro()? I'm never sure which one I should use
 
apparently, __mro__ is a cache for mro
> class.mro()
> This method can be overridden by a metaclass to customize the method resolution order for its instances. It is called at class instantiation, and its result is stored in ``__mro__``.
 
Hmm, so using __mro__ is faster and calling mro() without assigning its result to __mro__ is potentially a crime. __mro__ it is, then
 
just wanted to write the same ^^
 
10:55 AM
@MisterMiyagi also why False == 0 explaining clashes in sets/dict keys
 
yeah, there are some weird side-effects of bool being integers that I'm not sure are worth it :/
but it's sure useful for playing golf!
 
IMO bools shouldn't be numbers and there should be a count(iterable, predicate) function which could also double as a len function for iterators if it's called with only 1 argument
 
unrelated side note: I've finally managed to push out a v1.0 of my async library to have async enumerate and friends in one box. Only then to realise that the initial SO question that motivated me is fundamentally broken for trying to use enumerate in the first place.
async is weird :/
 
@Aran-Fey I'd expect that to be sum, not len
 
What's wrong with using enumerate?
@AndrasDeak huh. But why? :P
 
11:11 AM
Because I'd expect the default predicate to be bool
 
yeah, so if you count every element in the iterable that's equivalent to len nvm it's not
 
Every truthy element. Like filter.
Guess not sum either :)
 
alright, I stand by the first half of what I said earlier and additionally want an itertools.ilen function
 
sum(1 for _ in iterable)?
 
yeah, but less ugly
 
11:28 AM
I do find it weird that x in iterable works but len doesn't
 
11:39 AM
why does this fail tests?
 
that's gonna be hard to answer without knowing what it should be doing
 
@Permian because the tests or the code are wrong
 
sorry its oknow
 
11:58 AM
@Aran-Fey they wanted to use enumerate to break out of an async for loop after 100 items. Which means the DB Cursor used for the iteration would not be closed properly.
 
fails with on a test
check whether right tree is a subtree of the left arugment tree
 
Do you have the failing test case?
.pop(0) is probably bfs, not dfs
@Permian isequal should NOT return 0 or 1 in python!
and sure enough it was you
forget about these dumb int flags
is_thing returns a bool, errors are exceptions raised
oh wow, yours doesn't even return 1 or 0, it returns 1 and -1
no wonder it doesn't work
>>> def isequal_not_really(this, that):
...     if this == that:
...         return 1
...     else:
...         return -1
...
... if isequal_not_really(2, 'potato'):
...     print('they are equal...or are they?')
they are equal...or are they?
@Permian where did you get this pattern from?
And how long have you been here asking for help with various problems? I'm surprised to see you make a mistake like this
 
@AndrasDeak why not?
 
12:13 PM
because it's not C!
 
@AndrasDeak thats what the question asks for?
 
then the question is wrong and you should find another one
 
its the amazon online test lol
i know wtf
 
in any case your own isequal should not comply to some arbitrary and dumb API
that only concerns your final return value, which should also document that the choice is dumb and arbitrary and is specified by the problem
 
i know
i cant think stragiht now
 
12:15 PM
It might help if you give it some rest, do something else for a while. It's easy to get stuck in a bad loop, mentally speaking.
 
@AndrasDeak ive got 12 mins
so my isequal returns 0 or 1
 
it doesn't
there's not a literal 0 anywhere in your code
oh yeah, it's there in .pop(0), sorry
 
def isequal(r1, r2):
        if r1 == None or r2 == None:
            return r1 == r2
        if r1.val != r2.val:
            return 0
        return isequal(r1.left,r2.left) and isequal(r1.right,r2.right)
 
In that case it returns True or False or 0. Getting warmer.
and I don't understand your None check, plus you don't check for None with ==: you check for it with is (this last bit is a style issue for now)
 
no stlye issues right now
 
12:17 PM
functionally speaking that isequal might work, not sure
But one might wonder if this is your programming test or mine, anyway ;)
 
def isequal(r1, r2):
        if r1 is None or r2 is None:
            return r1 == r2
        if r1.val != r2.val:
            return 0
        return isequal(r1.left,r2.left) and isequal(r1.right,r2.right)
should return 0 or 1
 
it doesn't
call it as isequal(None, None)
 
all i had to do was to take the inner function out]
lololol
all done
some scope issues
 
link marked as dupe for removing all duplicates, but OP wants to preserve upto two of each item.
 
user10984358
I would like to try this out, can you share the question?
 
12:21 PM
Once again we successfully fixed a wrecked car by twiddling with its rear view mirror
 
I, uh. oh. we're fixing cars by tweaking the mirrors? That sounds nifty.
 
@ParitoshSingh always check for a better dupe target before asking to reopen a dupe
 
Nov 25 '19 at 14:38, by Aran-Fey
If this room was an auto repair shop, lots of people would come here with cars that don't start and later leave claiming they solved the problem by adjusting the rear view mirror
@ParitoshSingh it was a reference to that ^
 
@AndrasDeak my bad, got it.
 
user10984358
I remember 'staring' that one
 
12:25 PM
@ParitoshSingh I can't really find a better dupe, though
 
Someone just found one which may sorta work. this
 
@ParitoshSingh good one!
 
@AndrasDeak why im not a genuis
 
12:41 PM
Anyone good in flask? I want to know what error handler are recommended to be there in a decent app? Currently I write try except block in my endpoint code and in the except block I raise a custom error (containing Exception instance) that is handled at the app level. I want suggestions if I should cover any more errors or have a 500 error handler? THe way I am thinking is that any endpoint error will be caught in the endpoint's except block
..and will raise an custom exception that is handled at the app level.
 
@variable I can only answer your first question. This group is for chatting about python and sometimes other things, to the extent that the regulars want to chat about something. Asking for help is explicitly included in the topics if you read the room rules. You'll notice that you got plenty of help for a long while, I only started telling you to stop when your asking frequency started to become a burden.
 
Ok.
 
@AndrasDeak your link seems broken, was this intentional?
 
@MisterMiyagi deleted message. So yeah.
 
Hello!
I have a logistic regression question and have hopes someone may know as it may be common: Hello. I also get an error when I have factored a dictionary into my logistic predicted model:

Here is my model:

param_grid = ({'C': [0.1,0.5,1,10,50,100], 'max_iter': [250], 'fit_intercept':[True],'intercept_scaling':[1],
'penalty':['l2'], 'tol':[0.00001,0.0001,0.000001]})
log_primal_Grid = GridSearchCV(LogisticRegression(solver='lbfgs'),param_grid, cv=10, refit=True, verbose=0)
log_primal_Grid.fit(code_train.loc[:, code_train.columns != 'Exited'],code_train.Exited)
 
12:57 PM
why would you think that param_grid has a predict method in the first place?
 
I will go back and research this as I really just need my classification code to run to show results but will check.
 
@YourTrainingExpert what Miyagi is saying is that you're explicitly creating a dict in the definition of param_grid, so it's not supposed to have that attribute
So yeah, you need a different object to call .predict on
Perhaps log_primal_Grid
 
I know but I still cannot locate the correct object to use the same classification report I am using on my RF and SVM models.
 
Well where did you get the idea to use that attr? You should look at that source.
 
@AndrasDeak I found the param_grid attr via research as I am new to doing predictive models.
 
1:07 PM
And find the type of object in the library you're using which does what you need
@YourTrainingExpert when I said "that attr" I meant the .predict attribute
 
@AndrasDeak the predict attr worked w/ my RF and SVM
 
Presumably you didn't try to use it on a dict, but rather on some library type...
So do what you did with RF and SVM
 
SVM_RBF = SVC(C=100, cache_size=200, class_weight=None, coef0=0.0, decision_function_shape='ovr', degree=3, gamma=0.1, kernel='rbf', max_iter=-1, probability=True,
random_state=None, shrinking=True,tol=0.001, verbose=False)
SVM_RBF.fit(code_train.loc[:, code_train.columns != 'Exited'],code_train.Exited)
 
@YourTrainingExpert I don't see any .predict
If you want to fix an error look at the code that caused it
 
okay...thank you; I am relatively new at more advanced models so need lots of research which does not always work.
 
1:14 PM
for better or for worse this is mostly a basic python problem, not a ML problem
 
print(classification_report(code_train.Exited, SVM_RBF.predict(code_train.loc[:, code_train.columns != 'Exited'])))
that is my code to run the classification report
 
OK, then I was probably right
SVM_RBF -> SVM_RBF.fit -> SVM_RBF.predict
11 mins ago, by Andras Deak
Perhaps log_primal_Grid
@YourTrainingExpert please delete that
It's a lot of code, it's not formatted, and we don't need it for now
 
del log_primal_Grid from my logistic regression model? Okay I can try that
 
Noooo
The message from chat...forget it
 
1:19 PM
You just need log_primal_Grid -> log_primal_Grid.fit -> log_primal_Grid.predict, and the last one is off in your code
 
@AndrasDeak I will try this prior to continuing my research to rebuild my LR model. Thank you.
 
OK
@YourTrainingExpert for future reference please see our code formatting guide for chat and practice in the sandbox if necessary
and for more than ~10 lines of code it's better to post a link to pastebin or github gist or similar, chat is not very good with large blocks of code
 
okay will try that now as my report is still not running. Thanks.
 
Quick question : when I execute 'SHOW VARIABLES LIKE 'innodb_buffer_pool_size' in mysql, its returning a value. I'm confused whether its a byte/kb/mb
 
1:56 PM
Looks like it is in bytes given that opening line in the explanation in the docs
 
2:19 PM
@AkiLan neither: "When increasing or decreasing innodb_buffer_pool_size, the operation is performed in chunks. Chunk size is defined by the innodb_buffer_pool_chunk_size configuration option, which has a default of 128M."
 
2:52 PM
Problem I came up with this morning: there are 2^(N-2) different ways to create a tree with N nodes (... I think). Write a function rand_tree(N) that generates one such tree with equal probability.
You can represent a tree in python as a nested list of lists. A tree with N nodes will have N square bracket pairs.
My first attempt was to grow the list incrementally. Start with []. choose a random list in the data structure and append [] to it. Repeat N-1 times. But I suspect this gives you disproportionately top heavy trees since the root node is an available choice in every iteration, and every other node isn't because they don't exist until later.
 
This basically hinges on how you define "equal probability".
It's like, say, randomly picking points in a triangle.
You must do so based on some frame of reference that defines uniformity/randomness. In other frames, the solution will not appear uniform/random.
 
Trees of size N are countable, so you can define equal probability formally if you want. Something like: generate all unique trees in order, then return random.choice(trees).
This is actually fairly simple to code, but it's O(2^N) or maybe worse, so it's not practical for, say, trees of size 256
 
Sounds like premature optimization. Have you tried implementing that algorithm and checking if it's really too slow? :P
 
Hi I use bit module to make a bitcoin address for me. But by default all keys are compressed. How to get uncompressed bitcoin private key and address with bit module for Python pastebin.com/6gk1Ua2b
 
@Kevin If you want that kind of distribution, you should be able to compute the weight of each layer.
 
3:09 PM
Yes, I think a weight based solution is possible. I can only visualize how I'd do it for binary trees, though. For trees with any number of children, the combinatorics are pretty big even if you're only evaluating one branch of the tree
 
morning cabbages everyone! I don't have enough caffeine in my blood yet
 
Good morning/evening :) Time for afternoon tea here...
 
3:26 PM
@inspectorG4dget cabbage... wassup Doc? :p
 
@Kevin An alternative might be to start with a balanced tree and then randomly edit it.
 
Hmm, interesting. Since all nodes are alive at the first iteration, it may reduce the bias towards the root node.
I wonder if I'd need something in the style of fisher-yates in order to get a good shuffle
 
I often don't know how to ask the right question. If you don't understand me feel free to let me know. chat.stackoverflow.com/transcript/message/48318350#48318350
 
Oops, there are more than 2^(N-2) trees of size N. It's actually proportional to the Catalan numbers.
 
could someone check and let me know if they're able to access security.stackexchange.com without issues?
 
@ParitoshSingh I don't see anything that's obviously wrong with the site.
 
I'm getting sporadically "SO if offline/maintenance" now
 
@αԋɱҽԃαмєяιcαη Thank you. At one point, I thought that no one was seeing the question.
 
3:48 PM
@MisterMiyagi alright thanks!
Im getting a runtime error, im scared
 
Trying to keep my question concise. I'm on Windows 10 Pro. For some reason that I'm unaware, Python 2.7 was installed on my computer. I tried installing Python 3.8 earlier, and that worked, but whenever I did python --version in Git Bash, it listed Python 2.7. I removed Python 2.7 via add/remove program, and reinstalled Python 3.8. However, when I tried python --version in Git Bash (cont...)
, it was giving me a permission denied error, which I found stackoverflow.com/questions/56974927/… as a solution. Now, when I do python --version, it says bash: /c/Python27/python: No such file or directory and I have no idea why because I removed Python 2.7 from the PATH variable and added C:\Users\Tylae\AppData\Local\Programs\Python\Python38-32 to the PATH variable (moved it to the top). (cont...)
I'm more or less wondering if I'm on the right path in getting Windows to use Python 3.8 as I'm new to Python, or if there's another direction I should be taking. e.g. should I not use Git Bash with Python?
 
@Pijes you welcome, that's a chat room. leave your question and if someone have answer for your question so he will get back to you. (now or later)
 
oh, it's fixed now
 
@Tiffany so you will need to add Python to PATH so it's will not be pointed to version 2.
 
@αԋɱҽԃαмєяιcαη I've done that
A lot of brain vomit in my message, I apologize, but my main question is this -
I'm more or less wondering if I'm on the right path in getting Windows to use Python 3.8 as I'm new to Python, or if there's another direction I should be taking. e.g. should I not use Git Bash with Python?
 
3:51 PM
Hmm, maybe git bash has its own environment variables, separate from the OS's?
 
@Tiffany Note that Python 3 is commonly installed as python3, while python commonly points to Python 2.
 
@Tiffany you don't need to re copy/paste the question once again. we have the original already
 
There's no "community norm" against using git bash with python or anything, so don't think of this as a wild goose chase
 
BTW, i do see that you install 32bit version on C:\Users\Tylae\AppData\Local\Programs\Python\Python38-32
 
I followed the Python installer wizard... didn't intend to install 32-bit but, I guess it did that
 
3:53 PM
Python38-32.exe ? is that really how Python is installed on your directory ?
 
again, I followed the Python installer wizard
 
As a sanity check It may be prudent to verify first that python is accessible from a regular old cmd prompt before trying to get it working in git bash
 
alright, I'll try
C:\Users\Tylae>python --version
Python 3.8.1
lol
I'm just going to try restarting, I was avoiding doing it because reopening everything is a pita, but seems like the solution now...
 
I think there are separate installer wizards for 32/64, so if you want something different you should check python.org's download page for it. I don't think that's related to your problem though.
 
@Tiffany what happens if you do which python in git bash?
 
3:57 PM
@Kevin i meant that he pointing to Python PATH as the following Python38-32 that's why I'm asking if he have it as Python38-32.exe
 
@αԋɱҽԃαмєяιcαη Thanks again. I think that I don't deserve a sugar youtu.be/9ulfoqB7cmQ?t=158 I take care of a big family and sometimes I get a little tired. I interact with people very little so that I less and less understand what I should do. I'm just trying to survive. After each of my questions people write CBD. No I don't do drugs. I just can't do better than this.
 
restart seemed to fix the error I was getting before, python --version lists Python 3.8.1, and which python says /c/Users/Tylae/AppData/Local/Programs/Python/Python38-32/python
 
so it's now /Programs/Python/Python38-32/python
before it was /Programs/Python/Python38-32/
 
PATH values are typically directories, not files, so it's unlikely that anything would be confused into looking for python38-32.exe
 
that's why i was asking if it's named *.exe in your directory
 
3:59 PM
Unless the thing looking in the PATH is trying to be way more clever than it should
 
@αԋɱҽԃαмєяιcαη which python in Git Bash outputs /c/Users/Tylae/AppData/Local/Programs/Python/Python38-32/python, my PATH variable has C:\Users\Tylae\AppData\Local\Programs\Python\Python38-32
granted, I manually found the python installation location, copied and pasted it into PATH variable because the system PATH variable wasn't updated with 3.8, now that I'm looking at environment variables, I noticed my user PATH variable was updated with 3.8
 
@Tiffany so you have to point it within git also
 
@αԋɱҽԃαмєяιcαη git bash is working fine now
 
debating on removing the path from the system PATH variable now, but it's working and I'm hesitant to poke it again.
Thanks all.
 
A typical windows python install puts its directory in the PATH so you may as well leave it there
Or, hmm, does it put it in the user specific path, not the system path? I forget. Might depend on whether you selected "install for all users" in the wizard.
Well, whatever works, right
 
cbg
 
4:21 PM
cbg
 
cbg
 
@Kevin unless you install it for all users, so it's will be on regular installation folder etc.. c:/Program Files/
otherwise it's will be under user files
 
Unrelated but still on Windows in case anyone hasn't seen. Support for 7 ends tomorrow. The "not sending emails" warning seems pretty drastic; I'm guessing that there's a decent effort to exploit bugs going on
 
I kinda liked win7. But win10 with WSL is the clear winner of the two. Sadly though, modern software focuses more on feature expansion than on software efficiency. So even things like Word and Excel chew through too much RAM :(
/endrant
 
especially with Excel 0-Day
 
4:36 PM
@roganjosh My support for Windows 7 ended around '08...
 
I timed my move to a new laptop at a good time, but I find it a lot less intuitive than 7. 2 weeks in and I'm still like a fish out of water
 
I wonder how many Win10 users actually make use of their virtual desktops
0.000001%?
 
I'm using Windows 10 with VSCode, are there anyone faced an issue with charmap (UnicodeEncodeError). is the right solution is to run on terminal
{
    "code-runner.executorMap": {
        "python": "set PYTHONIOENCODING=utf8 && python"
    }
}
or set it like that?
 
@Aran-Fey I still don't know how to use them. And what's the point of that? I don't have enough memory for that. 4GB is small
 
Unless Microsoft did something majorly wrong (which is not that unlikely tbh), virtual desktops should only require tiny amounts of... anything, really
And the point of virtual desktops is that you can neatly organize all the programs you have open.
 
4:45 PM
@Aran-Fey Constantly. It's a brilliant way to do p̶r̶o̶n̶ programming at work. ;)
 
hah
 
Seriously though, I use my own laptop, have 'my' stuff, programming etc, in one desktop, then the multiple work windows (popups from a webapp, plus email etc) in the next, and occasionally KSP in a third desktop. Ctrl+WIN+left/right cycles through them, done deal.
 
I don't like them because you have to manually create new desktops before you can use them. And because the hotkeys for navigating between desktops aren't the same that I'm used to from linux
 
I don't even know the hotkeys on linux. The only thing I've used them for on linux is to keep the windows for the program that spawns old game console emulations in one window, and the running game in another, so I don't have to deal with my kids messing 'em up.
@Aran-Fey You have to manually create them? I believe I added two to the primary a couple of years ago, and haven't done anything else since? Or do you mean having to move windows between them because some programs spawn delayed and in your current desktop, or always spawn in the primary (like TaskManager)?
 
5:06 PM
Hmm, so you're saying they persist between reboots? I need to try that
I thought every time you reboot/log in your desktops are reset to 1
 
@Aran-Fey Unless I did something special, they should?
 
In SQLAlchemy, what's the difference between
Column(DateTime, ...)
and
Column(DateTime(), ...)
 
5:26 PM
SO is over, Shog was fired or close enough twitter.com/shog9/status/1216752358933184512
 
Do we know why? Do we want to know?
 
@Aran-Fey Maybe I should clarify, the desktops are there, as in you can Ctrl+WIN+right arrow over to them, but what you had open in each isn't persisted.
 
oh yeah, I wouldn't expect that much
as long as the desktops exist that's good enough
 
5:52 PM
 
looking for module to render JS through Windows
 
@Aran-Fey No idea, but there's some speculation in the meta Tavern chatroom, based on the word "suddenly" in that Tweet. He's already lost his diamond.
 
Well i were asking if they kicked him out or not. but after reading the part of "suddenly" so it's seems to be
 
He could've chosen a hill to die on. He could've quit facing an unacceptable situation.
 
maybe he got nervous from something and taken wrong decision though
 
6:07 PM
yeah, no
 
dear room6 community, I come seeking your wisdomousness. I just got out of a team meeting in which nothing was done incorrectly. We usually go around the room, stating our priorities for the week. Yet, when it was my turn, I felt a scaled down version of stage fright. I clammed up and started to stammer. I knew my stuff, but I felt naked and unprepared. How would you recommend I deal with this sort of thing?
All I can think of is to make a list of bullet points about what I'll talk about so that I'm more prepared for the meeting, but this seems like a bit of a time-sink
 
i mean, i think you pretty much nailed it
i feel like other alternatives would be more of a time sink (like go out and desensitize yourself to speaking in front of people)
 
see that's the weird part. I've lectured in front of 150 students before. Yet somehow, in a room full of competent people, I feel... off. Is this impostor syndrome?
 
6:25 PM
huh. that's super interesting! i couldn't tell you whether or not it's impostor syndrome (do you feel like you don't deserve your position?)
do things go well when you're speaking with, say, 1 or 2 competent people?
 
@inspectorG4dget just imagine that you are naked...no wait, that's not it
 
I do alright when I chat with people 1:1
@AndrasDeak I might fall asleep. I don't think that'll work well for team meetings
 
TIL the latest Tor is able to connect from my workplace xD
 
... for now
 
@PaulMcG hehe
 
6:36 PM
> All I can think of is to make a list of bullet points about what I'll talk about so that I'm more prepared for the meeting, but this seems like a bit of a time-sink

Time well-sinked I would say. Keep it to 3 or 4 bullets tops, run through them, and done. I think the other team members will appreciate it too.
Soon you will be held up as a paragon of preparedness
 
Now is the debate of whether to taunt IT with this information.
Of course the fact that Disneyplus doesn't load the login page doesn't solve my immediate probem.
 
alright. I'll give that a try for the next few meetings and see how it goes.

> Soon you will be held up as a paragon of preparedness
I'm already a paragon for on-time-ness. I think I'll just come be known as The Paragon
 
@toonarmycaptain IT already knows
 
Funnily enough, this is Paragon
 
@PaulMcG They didn't know before Christmas...when it didn't work.
 
6:40 PM
Did they really not know, or just want you not to know that they did know, and so told you they didn't know?
 
@JonClements be vewwy vewwy quiet. I'm hunting hive quewies. What's happening puppy?
 
@PaulMcG lol
 
@inspectorG4dget that's respect that you're feeling, it'll mellow out after a while.
 
One of them put in the admin permissions for a couple of hours when they reimaged my work machine a couple of years ago so I could put steam, pycharm etc on it, so I trust them enough to presume they don't know yet. I got it to work using the configuration for use in China and similar countries. I doubt many people are actively trying to tunnel out using such methods.
 
but honestly, making a short list of what you want to say sounds like a good idea. that's what I usually do, too. it helps me focus, and keeps meetings shorter
 
6:50 PM
@Arne o.O This is kinda like when Bart "doesn't get it" when Flanders pats him on the back instead of strangling him
 
...or dpaste would be blocked along with pastebin, lol
 
7:05 PM
Another one codidact.org
 
if anyone is familiar with gunicorn, what is .app and app in the following from statement? (take from this URL - medium.com/technonerds/…)

from .app import app

if __name__ == "__main__":
    app.run(use_reloader=True, debug=True)
I think .app is the module (app.py) and app is the object inside it
but what I don't understand is why app has a dot in front of it....never saw that before
 
thanks
 
@wim: Here's a new blog post on what we were talking about: "Mercurial's Journey to and Reflections on Python 3" gregoryszorc.com/blog/2020/01/13/…
 
7:24 PM
@AndrasDeak That one doesn't really exist yet, but the look of the writing Q&A is not bad
 
yeah, it's being created very consciously
 
Think it will work? I'll go just so I can ask basic questions and get a bajillion rep just for being first :)
 
@Dodge My very thought!
 
7:42 PM
@inspectorG4dget To save time I print out a list of my open tickets. Since doing that I've greatly reduced time hemming and hawing...
 
8:12 PM
I think I should stop moderating main
 
makes sense, since you're not a mod
 
wim
oh boy, setuptools just released v45 which dropped support for python 2.7
prepare for a plague of questions about this, as every 2.7 virtualenv everywhere blows up
 
hides
 
8:37 PM
afternoon cabbage
 
8:54 PM
sadly, we don't do JIRA tickets in datascience. I'm considering writing out my bullet points
 
9:16 PM
it's an odd feeling when a super-useful (and somewhat powerful) tool that I wrote for my thesis, which I never thought I'd use again actually becomes relevant in my post-gradSchool job
 
10:14 PM
would a question like this be worth adding a [tag="python-2"] tag on? stackoverflow.com/questions/9138112/… (I guess I forgot the tag syntax)
...
 
I'd say so
 
[tag:...]
 
thanks
 
Is there a reason for the tag aside from the fact that () is missing from the print call in the question?
 
not really, but it tripped me up just now, granted, easy enough fix when the compiler complains
 
10:18 PM
Then no, it's not a good retag. If you read the excerpt of :
> Do not use this tag simply to convey the version of Python you're using, unless the question concerns an issue specific to Python 2.7. Use the more generic [python] tag
 
alright
 
And yet if you remove a python-2.7 or python-3.x tag from a question that doesn't need it, you'll be contacted by 2 mods telling you to stop ¯\_(ツ)_/¯
 
I sense some missing subtext :P
 
actually, I can see the argument for keeping the 2.x tag - use that to sunset/archive the py2 posts
 
10:39 PM
@Tiffany can you retract that so you don't get rejected?
 
I dunno how
 
well if there's no "retract edit" or similar button there then you probably can't :)
 
yeah, I don't have that option :/
 
Doesn't seem like there's a way meta.stackoverflow.com/questions/307286/…
 
I figure I'll leave it up to the decision of the community
 
10:42 PM
perhaps you can edit again and instead of adding the tag you can fix PEP 8 whitespace and add parentheses to print
it wouldn't make it wrong in pythoff, but it would make it also correct on python
 
should if len(x)==3: be if len(x) == 3:?
 
yes
I wouldn't bother editing just for that, but it looks a bit atrocious while we're at it
my idea is just to turn your -0 into a +0 so that I can approve rather than reject
 
done
@AndrasDeak I appreciate it
 
approved
there are some other weird things going on with that question so I'll just close it and forget it :P
 
as someone with primarily a C-ish background, I want to dislike Python, but so far, all of my random mucking about with the language has worked how I expected ...
 
10:55 PM
Watch out, that's how it gets you :P
we can provide some typical pitfalls or design quirks to keep you on your toes
 
I encountered the enumerate thing with for loops
 
most people will agree that enumerate is a good thing
 
but I threw the string formatting part together, based on skimming an article, fully expecting it to give me an error, and it worked as I expected
for index, value in enumerate(bookshelf):
    print("Book #%s: %s" % (index, value))
 
yeah, although percent formatting is usually considered archaic
 
what is preferred?
 
10:58 PM
but coming from C I understand why it would feel natural
@Tiffany as of python 3.6 we have f-strings which do string interpolation: f'Book: #{index}: {value}'. If you want to have an actual template you evaluate later or multiple times there's new-style string formatting that worked before 3.6 too: 'Book: #{}: {}'.format(index, value) and the like.
 
00:00 - 23:0023:00 - 00:00

« first day (3376 days earlier)      last day (1587 days later) »