« first day (4019 days earlier)      last day (914 days later) » 

1:06 AM
yeah, the kiddo got the toast
 
 
2 hours later…
3:32 AM
Did stack overflow change it's code font
looks good
 
 
5 hours later…
8:07 AM
Ho boy, what've I managed to do this time? ls: .: Operation not permitted. Just when I think I'm getting to grips with macOS :P
 
8:17 AM
Wait... ls . doesn't work on macOS?
 
That's what you get for trying to look at private bits!
 
How is the current directory a "private bit"?
 
I've managed to fix it; it just needs file system access. What's weird is that it was working fine until 30 mins ago
I was messing about with PATH trying to get maven working and suddenly the terminal became basically useless. Weird.
 
Messing around with PATH is an extremely effective method of making things useless
 
I reversed the changes I made to PATH but it wasn't having it. If maven would just make something that installs itself, this never would have happened. I blame them for my incompetence
 
8:22 AM
I assume you already know that you have to restart the app in order for it to pick up changes to the PATH
 
Yup, but I certainly didn't expect it to immediately cause me not to be able to use ls in active or new terminals
 
At least it didn't say: "We provide a perfectly adequate Finder; why aren't you using it?" :-)
 
Is that a windows dig?
 
Kind of a GUI dig?
 
8:34 AM
Like, what are you doing using the command line when we provide this fancy GUI, which is so much better in a thousand ways
Maybe throw in a "you nerd" joke to go along with it
 
Restricting me to the binary option of "cancel" or "continue exactly as this software expects" is often a good idea.
 
I always add a third choice: "go ahead and break everything"
 
UB roulette?
 
The solution to all design problems
 
9:21 AM
@roganjosh at least macosx now uses zsh by default.
also: cbg.
 
I don't know enough about shells to have a preference. I'm still confused about what happened; it looks like I triggered the OS to just lock everything down. Simple enough to fix, but certainly enough for me to panic that I was locked out of even basic things. Just the kind of thing you'd want on a Sunday morning :P
And cbg :)
 
@roganjosh so the contenders were bash and zsh...
bash is the gnu project that is waaay behind in features and customisability
 
10:06 AM
While translating some text today I learned that salt contains so-called "anti-caking agents", and ever since then my brain has been amused by the thought of James Bond shooting a piece of cake dead
 
I'm afraid the term "cake" has mundane meanings too :/
stackoverflow.com/q/69603203/4799172 too broad but I suspect it'll get a hashed attempt at an answer
 
@roganjosh For once in my life, ignorance is an advantage!
 
The chemical engineer within me feels summoned :P But I'll let you have your cake on this day
Thanks... I sent you a message on your website. — franko 30 secs ago
Yup, that's exactly what I wanted for the question I'm trying to close :'(
 
 
1 hour later…
11:38 AM
cbg all
 
 
4 hours later…
I'm a bit baffled that there's no ready-made solution for juggling multiple simultaneous downloads. With features like progress reporting and a speed limit.
 
4:28 PM
is a tuple that is type hinted as tuple[int] means a tuple that has integers or a tuple that has one integer? because here "lets you specify a specific number of elements", so I should explicitly do tuple[int, ...]?
 
That's what the next sentence explicitly tells you
> Use ellipsis if the length is not set and the type should be repeated: Tuple[float, ...] describes a variable-length tuple with floats.
 
I did read that, my doubt is, is that a convention to follow or do multi length tuples should follow that
 
so yeah, the answer suggests what you said, and Martijn knows what he says
@python_user I bet there's stdlib docs that tells you this
 
thanks will check that out
 
4:35 PM
ok that is a lot clear
 
@python_user the entirety of typing is just a convention :P
 
fair enough :D, one more reason why I just cant seem to get the hang of this
I try to type annotate new code I write, then I end up in some case then I just remove them
 
4:47 PM
@Aran-Fey you mean in python?
 
yeah
 
I was about to suggest you a download manger if not :p
 
 
3 hours later…
7:21 PM
lame HNQ but very nice answer on that --3//2 thing, Miyagi
 
Thanks! My heart still weeps about the loss of unicode boxes, though... 😢
It's good to know that future generations in the age of kevincode won't have to deal with such complications.
 
 
3 hours later…
10:59 PM
Hello,

If we have a dictionary in Python that is half full, we want to reshape it so that we increase the size to ensure that it can have more elements and still be half full. In this regards, how we can copy the elements from the previous hash table to the new one? I saw a suggedtion saying that by using the new hash function to compute the entries indices in the prev column :/
The prev hash table that is to be resized already has its elements in the table, so how we can rehash them again to the new hash table which should have same hash function but with larget size?
 
11:11 PM
I got the solution, it seems linear search is what is needed for rehashing
 
... what is a half-full dictionary?
 

« first day (4019 days earlier)      last day (914 days later) »