« first day (3702 days earlier)      last day (1252 days later) » 
01:00 - 20:0020:00 - 00:00

8:02 PM
{'10:00-12:00': 'Maths', '13:00-15:00': 'Physics', '16:00-18:00': 'History', '19:00-22:00': 'Biology', '23:00-1:00': 'Chemistry', '2:00-4:00': 'Computer', '5:00-10:00': 'English'}
Ive got 24 hour time mixed up in here, in my example code, so as to make this prototype work the entire day.
So @Kevin, I should rewrite the times range as tuples aight?
 
Yeah, and switch the keys and values
The tuples don't need to have ints btw, you could use time objects
is_between works either way
 
But this dict is generated by reading a dataframe, so switching of k,v is ideal?
 
We're going off-course
There's no need for a tuple if you're talking about string "time" ranges
And you don't iterate the dict across a dataframe, you use map as I suggested earlier
Honestly. None of this is helpful without an MCVE and it's just becoming bad advice
 
Oh okays, ill try this. No worries, ill take a deep look and implement. Thanks @Kevin and @roganjosh. Good night!
 
lol
 
8:12 PM
Hey @AndrasDeak, thanks for those advices too
 
I pretty much skipped over the numpy part of this convo. so if you can do dataframe magic to skip making a dict, then by all means do so
 
@Kevin Sure xp
 
8:27 PM
TIL I can start docker containers running a linux Kernel in windows
was I the only one who was not aware of this? I thought this was a kind-of far-away feature
 
I didn't have preconceptions about what you could run, I just assumed anything's game. But I don't know how docker works.
 
anything that only needs ram, disk, and processor
graphics card might be tricky, but probably possible
current mood: princess jasmine's first magic carpet ride
 
A few days ago I found out that it's perfectly fine to run docker containers inside docker containers. My magic carpet crashed when I found out it was disabled for me. I'm not to be trusted, it seems :'(
 
that was --privileged, right?
 
I think so. Over time it looked like it might have become the default state and it now has to be actively turned off. I didn't dig too deep because it was broken either way
My workspace that I have to work in is itself a docker container, so for my own purposes, I didn't want to nest them... it would just inherently have been nested. No dice.
 
8:41 PM
inception theme starts playing in the background
 
In docker; each level it is productivity that slows, not time
Or, at least, when the container is used to actively restrict you :)
 
wouldn't it be kind of neat if you could use top to discern whether you're in a docker container or not?
 
The question is; do you really want to know the answer?
Maybe you're just a brain in a docker container in a .jar!
Red PIL or blue PIL? Only then will you find the image you're in
Tough crowd. I got, like 7 references in there <note to self: don't try mix philosophy with humour>
 
9:08 PM
yeah, it's us ;)
 
Then server images as backups, and PIL being Python Imagining Library
And I think I've been conned into explaining my own attempt at humour, just to increase the shame
 
Noooo, it's just your imagination
 
I'll just go to the corner. Sorry to trouble everyone
 
Random topic, but because of quarantine I recently ordered food for the first time, and not one out of the 3 restaurants I tried managed to produce something that tasted good. I thought it was impossible for pizza and Schnitzel to taste bad, but I was proven wrong
 
9:25 PM
hey guys, can somebody help to print this ({'Google-Home-Mini-85a3580b2ca01d6f581b8653110d3576._googlecast._tcp.local.'}, UUID('85a3580b-2ca0-1d6f-581b-8653110d3576'), 'Google Home Mini', 'Wohnzimmer', '192.168.1.230', 8009) into print formated output?
like print(first_value|second|third|...)
 
You mean like print(*that_tuple, sep='|')?
 
yes
my old script looks like: '{}|{}:{}|{}|{}|{}\n'.format( cast.name, cast.host, cast.port, cast.uuid, cast.device.model_name, cast.device.cast_type )
but it doesnd work anymore after upgrade
 
doesn't work how? What's the exception?
 
they have changet the output, there is no more cast.name, cast.home ect.. just an output in my first question
i'm realy new in python.. actually php coder so trying to get this done but its different world for me :)
 
Well, you can try '{}|{}:{}|{}|{}|{}\n'.format(*cast)
 
9:32 PM
the exception is to get printed like:
'Google-Home-Mini-85a3580b2ca01d6f581b8653110d3576._googlecast._tcp.local|'85a3580b-2ca0-1d6f-581b-8653110d3576|Google Home Mini|Wohnzimmer|192.168.1.230|8009
@Aran-Fey i will try
YEAH
get with *devices i get output like:
{'Google-Home-Mini-85a3580b2ca01d6f581b8653110d3576._googlecast._tcp.local.'}|85a3580b-2ca0-1d6f-581b-8653110d3576|Google Home Mini|Wohnzimmer|192.168.1.230|8009
thank you very much
 
@Aran-Fey wow :(
bad schnitzel is a crime against humanity
 
haha
thats true
 
@Aran-Fey on the other hand it's pretty easy to make your own pizza at least
 
lol.. ask some german for his fav food.. everyone tell you its pizza :D
 
all the more schnitzel for me
 
9:45 PM
yeah but its take so long to make it :D
*fresh
 
we did make our own pizza, twice. But we ran out of groceries, so we also ordered pizza twice. And today we tried ordering something else, and... it didn't end well
 
:(
too bad that schnitzel is a pain to make
 
ordering groceries takes like 4-5 days nowadays, it's crazy. Thankfully we can go shopping again tomorrow
 
Really?
 
why 4-5 days? a u livin in the wild?
 
9:48 PM
I am amazed. I haven't tried online here but I thought things had died down
 
Our corona numbers are pretty bad, as far as I know :(
 
:(
.de have actually like 18-22k daily infects.. actually too much but its not growing.. so far so good...
 
We're just emerging from another near-total lockdown but I don't think we hit 4-5 days waiting time. I would check, but I forgot I need to register with the site to see the available slots, from a system that I had a hand in creating. Snubbed.
I'm curious, though, @Aran-Fey. Are you in quite a rural area?
 
i just hear Califonia will get in total shutdown, right?
*lockdown
 
Yeah, these online-shops are surprisingly poorly made. Some even force you to fill up your shopping cart with 50€ worth of random stuff before they tell you when they can deliver
@roganjosh nope, in the capital actually
 
9:55 PM
Oh, ok. That's very interesting. Thanks
@Aran-Fey That's not the reason that they do it btw. The slot can be held for a certain period, so they expect effort on your part to give some chance that you'll actually fill it. Otherwise, you restrict the system with wasted slots
A few years back, we'd have our slots filled 3 weeks in advance within an hour
 
It's not like I'm using up a slot, I just want to know when I can expect my groceries before I go to the trouble of filling up my virtual shopping cart
 
Shove a chicken in the basket ASAP and then just back off the site. Doesn't matter what you're actually going to need at the time, the slot was claimed. Edit the order when you know what you want
@Aran-Fey well, blame "people" :P
 
oh, I do. Every day. Hate 'em. :P
 
<tips glass in cheers>
But that is why they require you to fill out an order of a reasonable amount... to make it a pain to cancel things you don't need and replace with things you do. It's a deterrent to slot-parking, basically
Sucks that your perception of it is that it's "surprisingly poorly made" when they're trying to help you. I'm not sure how to fix the perception tbh because you're not wrong if you don't see the other side
There must be a better way <strokes beard>
 
I don't see why looking at the free slots has to be locked behind any prerequisites
 
10:08 PM
Mmm
I'm inclined to agree tbh
But that must be balanced by the fact that most people are booking in the 3-day window, so there's a good chance your slot will be gone by the time you finish your order
 
I guess. But at least I would know that my stuff will arrive in X days at the earliest
 
Nope
The slots are dynamically generated
You could get screwed in multiple dimensions (oo er)
It's a shame that I'm not gonna be in a position to test this balance in the foreseeable. It would have been interesting to run
@Aran-Fey You edited to make me look silly! :P
Well sure, you can be served in X days
That would be the assumption before you even saw the slots
Otherwise why are you shopping online? :P
 
How could I possibly make that assumption before seeing the slots? It's my first time ordering online, I have absolutely no idea how long it'll take
If the website tells me "all slots until Dec. 8th are booked", that's useful information for me
 
I was half joking, but you're right. Maybe the earliest-possible-slot should be displayed
But if you give all slots, you're back at square 1
 
I really don't see how that would be a problem, but let's drop the topic :P
 
10:25 PM
If you have a fix for it then go propose it btw. You didn't disclose the store, nor did I, so I'm just taking an educated guess. I don't think the problem is solved. Make millions :) But sure, let's drop it
 
We have a local grocery delivery servie that gives you a rough best-guess estimate in the top left corner. If you put stuff in your basket it might push it back. And there are items which are out of stock for the day but then it offers to order for the next day (their baseline is delivery in 4 hours). It's a really good service!
we've been lockdownish for weeks but they're still holding out
 
That's how it should be done!
 
oh, and you can add a tip during ordering so it's crazy millennial-friendly
 
@Aran-Fey I really will drop the convo after this but I think I wasn't clear with my comment:chat.stackoverflow.com/transcript/message/51084682#51084682
 
my single source of mental distress when ordering groceries online is "having" to tip at delivery
 
10:35 PM
What people would do was wait until midnight until the slots opened 3 weeks in advance and then just throw anything into their basket. The basket is then reserved for them to edit at any time. Hundreds of people do this. That means all your delivery slots are being held by people with a single item in their basket. They only then edit them a couple of days in advance of the actual slot for what they actually need. That's a problem
 
@roganjosh =D
was just afk for a while
 
@AndrasDeak Huh, I thought the USA was the only place with such a tipping culture. I never worry about tipping; I pay the price they ask and that's it
 
@Aran-Fey absolutely not
but people get wages here
So it's not like they can't buy bread if you don't tip, but it's usually customary. In restaurants and bars, with taxis, often with deliveries, etc.
 
@roganjosh Oh, certainly. But they're actively encouraging people to throw random stuff in their basket, because that's the easiest way to find out when you can expect your stuff to be delivered. I honestly wouldn't be surprised if some people only intended to find out when their order is expected to arrive, and never actually meant to place an order
 
@Arne Woohoo :P I didn't completely fall flat on my face with the attempt at a joke :P
@Aran-Fey No, they're actively encouraging people to throw a lot of things into their basket and not be smart enough to throw a TV into the basket to inspect the time slots available. I did not suggest that
 
10:42 PM
Does it matter? The point is that the stuff people add to their basket isn't what they actually intend to buy
 
Of course it matters
Why aren't you on SO again?
 
there are people there
 
People are here, too
(in so far as I am a person)
But there are others :D
 
okay, there are vampires there :P
 
It's remarkably effective that you can restrict a basket size to £50, let's say. Now Joe Bloggs can't throw the first item on the homescreen into a basket to reserve a slot. What do you think Joe does, when he can't see a slot and can't throw a random item into his basket to see them?
He leaves
 
10:47 PM
So we're agreed that this is bad design?
 
reservations with baskets should last an hour or two at most
 
WHAT?!
 
if you don't pay in one or two hours your reservations (including stock) are void
simple as that
 
You're saying making potential customers leave is a good thing?
 
Yes
 
10:48 PM
huh. ._.
 
because they want to park a lot for a legit customer
I'm so confused
 
@roganjosh why is it not an option to see slots without putting anything in the basket? The whole premise is flawed
 
Ah, alright, I missed the important detail that Joe is a terrible customer. Okay, fair enough
 
always see slots > see slots with garbage basket > never see slots. You seem to be arguing the second half of this relationship
 
No it isn't. It's trying to deal with the fact that people are ****
 
10:49 PM
But yeah, what Andras said
 
Right. I'll try give you the timeline
 
uh oh :P
will it include the option of "always see slots"?
 
1. All slots open 3 weeks before the actual delivery date. You can't order before that date
 
why anyone would order 3 weeks in advance is beyond me by the way, it should be 1 week at most
 
2. Joe Bloggs and Sally Slackpants et al. are sitting at a computer (hundreds of people) waiting until midnight for the slot to open
 
10:52 PM
"I'm going to need bread and butter in 3 weeks" :P
 
3. The slots open. Joe throws a toothbrush into his basket. Sally throws in some deodorant. All their mates throw a single item into their basket
 
yeah, you've already derailed the premise
 
4. All baskets each take up a time slot
 
Reserving a slot can require a minimum order amount of X€, I'm fine with that. But anyone should be able to look at the slots with no restrictions
 
there's nothing that should stop Aran Smith from seeing the first available slot at the time of looking, with no guarantee that the slot will wait
 
10:54 PM
5. Aran has no time slots available when he comes to order the next day because all slots are held by single items
@AndrasDeak Except the typhoon of people holding slots with single items
 
@roganjosh then tell Aran that there are no slots for the next 3 weeks
@roganjosh so? Those slots are not available until the devs design a better system
 
@AndrasDeak every day?
 
@roganjosh yes
 
forever, then
 
except for the 10 minutes when new slots open
 
10:55 PM
New slots don't open
 
so then the other problem is "how do I stop people from hogging slots 3 weeks in advance", which is another matter
 
I don't get how you guys think this system works
 
@roganjosh you must be telling it well :P
 
I'm not speculating this. I know because I was in it
 
> 3. The slots open.
> New slots don't open
new slots only open for Joe
 
10:56 PM
@AndrasDeak that's a misquote
 
How is it a misquote?
 
So you're assuming that all slots are instantly taken by random jerks as soon as they open up? That doesn't seem realistic to me
 
You deliberately posted that in isolation without the consequence that I clearly gave
 
@roganjosh ?????
 
@Aran-Fey Ok then
 
10:56 PM
How does the consequence matter? Slots open!
When Joe can take a slot so can Aran, how can you not see this? :D
 
It doesn't matter whether you believe it @Aran-Fey. Are you experiencing delayed delivery slots and a minimum order?
 
@roganjosh we're not talking about minimum orders :'(
4 mins ago, by Aran-Fey
Reserving a slot can require a minimum order amount of X€, I'm fine with that. But anyone should be able to look at the slots with no restrictions
 
I mean, I'm experiencing a waiting time of 4-5 days, sure. But it's not like all slots are taken. I can place an order if I want to
 
Aran was because it's a min order of 50 euro to see the slot
 
anyway, I've got to grade some mid-terms :)
 
10:58 PM
You know what. I cba. It's not like I was designing this system or anything. You're both right
 
OK, so we agree :D
 
Is there some dirty hack to fix a name aliasing problem. For example if I have a property @property a_property_but_also_module_name but I need to reference a module with the same name (sorry...) can I specify that I want the module rather than the property? AKA def some_func(self, input : a_property_but_also_module_name.MyClass)
Its a really unfortunate question :-/
 
@Mikhail properties are stuck on classes (instances)
whereas modules aren't
Is your codebase haunted?
 
YES!
Dude this code base
:-/
 
We'll need an old priest, a young priest and an MCVE.
 
11:02 PM
Cursed is a better word
I mean there is a naming conflict. Some refactoring would have the @property named the same as the module type.
 
Yes, I don't see how that leads to shadowing.
 
It leads to the @property called where I wanted the module
Its all well defined but I want it to do something else :-)
 
How? Again: I need an example, I don't understand this scenario.
 
from foo.bar import bad_name
class wumpus:
  def func(self, wuz : bad_name.MClass):
      pass
   @property
   def bad_name(self)
      pass
here MClass won't work because bad_name refers to the @property
 
Does it?
 
11:07 PM
yes it does
 
is that really a type hint, or a typo?
 
Its a typehint as a minimal example
But in my code base I need also some isinstance things also
 
>>> class wumpus:
...     def func(self, wuz=bad_name()):
...         pass
...     @property
...     def bad_name(self):
...         pass
...
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
[snip]
<ipython-input-242-d3e454c48be7> in wumpus()
      1 class wumpus:
----> 2     def func(self, wuz=bad_name()):
      3         pass
      4     @property
      5     def bad_name(self):

NameError: name 'bad_name' is not defined
Unless the static type checker resolves names differently this should be a non-issue
 
Well I am getting an AttributeError from the static type checking location
 
I'm late, but...
 
11:20 PM
poor baby
@Mikhail sorry, I live in a typeless world
 
Some call it Comic Sans world
Ugg, so many python patterns don't translate well to C++
Like objects returning different versions of themselves
 
guys, could you tell me why an example script can not be run from outside the github cloned directory? have guthub cloned and setup.py install'ed it but get error message ImportError: cannot import name 'discovery' from 'pychromecast'
 
The underlying problem is that C++ python bindings don't quite expose each object's python container. So, for example you can't add a python backed object into a structure (which requires reference counting because the C++ structure can move/delete the object) from the C++ call site because pybind11 or boost::python don't quite let you grab the python container. Now, python container you'd be fine (aka std::vector<mystructure> (not safe) becomes std::vector<python_objects<mystructure>> (safe))
 
@Chris Sounds like either the setup.py or the script itself is broken. Maybe it installed a version of pychromecast that's actually not supported by the script
 
@Aran-Fey i have already uninstalled the old pychromecast by pip3 and after that installed the new one, but still get this error.. I try to uninstall it again abd check the python3.7 lib directory all is removed and install it again
strange... Uninstalling PyChromecast-7.5.1: .. OK ... and just seen in the github clomed version setup.py: version="7.5.1" ... so actually it should be ok... strange
i just see i have python3.5 also installed.. maybe is there an version conflict
python3.5 has only mitmproxy inside libs/dist-packeges.. so its not the problem
 
01:00 - 20:0020:00 - 00:00

« first day (3702 days earlier)      last day (1252 days later) »