« first day (4937 days earlier)      last day (11 days later) » 

9:16 AM
I don't know whether it's just because I'm tired but the error message here feels like a sensory bombardment. Whoever wrote the error template really went to town - "gotta make sure they know it's an error!"
Ah, the OP has since broken it up and it doesn't look so overwhelming now. In the first iteration it looked like "dontcha know this is an error. Btw, you're also seeing an error"
 
10:09 AM
looked at it, can't deny this looks more verbose than verbose
QueryError: Severity: ERROR...Error code!
 
 
4 hours later…
1:40 PM
So apparently ruff implements a language server, but vscode only lists pylance and jedi in the dropdown. Is there a way to actually make this work or is ruff lying?
 
1:52 PM
Am I being thick here? This link suggests that it uses Optional[int] typing but it doesn't in the code example?
Is int | None directly equivalent to Optional[int]?
 
Yeah
 
"Because at this point in the code, before interacting with the database, the Python value could actually be None."
Ah, wait, it's str not int
Are you confused about it being str or optional?
 
Both, I think. If you feel you know the answer, I think it's a pretty decent question to post on.
 
I don't, but the explanation for Optional in the docs seems reasonable
 
It does until the str version, which will bork the typing I guess
I don't understand the OP's motivations on the ID actually. I have a strong sense that it's misguided but maybe I have a blind spot on DB design
 
2:05 PM
The str part is weird, but the Optional[] seems reasonable.
 
Agreed. Until you touch the db then there is no way to get an ID. It's similar to .flush() in SQLA
 
Yeah, so I think the question is fundamentally flawed in trying to set autoincrement on Python's side, instead of DB side
 
In terms of the primary key, I've only ever seen ints or UUIDs. I still think the custom string is misguided but I don't have enough conviction to assert it
 
2:23 PM
"SQLite Autoincrement
1. Summary
The AUTOINCREMENT keyword imposes extra CPU, memory, disk space, and disk I/O overhead and should be avoided if not strictly needed. It is usually not needed."

Huh.
 
Huh indeed. I wonder if that holds for postgres
 
 
1 hour later…
3:32 PM
Python documentation be like
> Changed in version 3.10: The globals, locals, and eval_str parameters were added.
But did someone add the documentation for those parameters? Nope
 
 
1 hour later…
4:46 PM
So... Amazon has delivered something I never ordered and is missing 4 items I actually did order. But speaking to a person is now impossible and you can't even try get the AI to answer anything because what I want to say is not a pre-approved input. I don't even know what this thing that I dragged up my stairs to open even is.
What even is that? A shoe rack? I'm so confused but no help is available, obviously
 
@roganjosh looks like a sport equipment. went to google lens and saw similar ones like these: amazon.fr/Rack-rangement-pour-poids-halt%C3%A8res/dp/B01N3CK1WR or this one: ebay.com.au/itm/303742311859
 
That would explain why dragging it up the stairs was so tough! It's certainly sturdy
 
@roganjosh yeah, not the first time I had to deal with their blunder. And their bad attempt at automatic customer service, which by the way, have a very easy way to get around to get a real person
 
Worse, I've literally just got a message that everything was delivered. Technology!
I'll see if I can get a real person. I'm not seeing the trick right now
 
@roganjosh just stop being human, it's that simple. Be the most repetitive and unintelligible possible. Add being obnoxious too
 
5:00 PM
"I could barely even lift this frame up the stairs to unpack it. Do you honestly think I bought a frame for holding my barbells?"
I'm a keyboard warrior, duh. I don't do physical stuff.
 
I can lift max 80 Kg but I never did any sports. If I don't know the weight in advance and think really hard that it is heavy, I can probably lift it even if it's a bit more than 80
it also depends on the volume. If it's 10Kg but the size of a car, I could probably lift it, but the point where you lift it might increase or decrease the load
@roganjosh I had that happen a lot myself. This isn't technology's fault here, but the delivery person or the company. Sometimes the one charged to do it, for whatever reason, decide to not go an extra mile to deliver their last parcel, and just mark it as delivered. Other times they might deliver it to the wrong address and blindly trust their GPS (if there was an error, and that happens a lot more times than they think) or other reason here
 
@NordineLotfi It annoys me that I actually asked him if it was right that I only had 2 parcels. He was with DPD, though, so I didn't write that algorithm. I am not unfamiliar with last mile delivery; I've written multiple systems for it
 
I had a feeling it was DPD. They are popular for these blunders. Also, when I mentioned last mile delivery, I didn't mean that from an algorithmic perspective, but literally, personal one: e.g.: they just don't want to do it because XYZ personal reasons and it just so happens it is their last sector or last parcel to deliver or it's too far away, etc
I had some of them admit why they didn't deliver, but it is rare, so usually you just have to guess.
 
5:15 PM
Welp, the rest of my deliveries have just arrived through a different courier. Some poor person is missing their barbell holster and I really cba trying to make it right vs the AI assistant.
 
@roganjosh I have always been able to have a text chat with a human, who has always resolved my issue.
 
@roganjosh I mean, if the delivery person is approachable, they probably wouldn't mind taking it back to the facility (if it wasn't open, or if you put everything back the way it was). I never had the wrong order with DPD though, so I don't know if they'll accept or what is their procedure
 
Fair enough. I can't find how to break a loop that I've been in a couple of times now trying different approaches
@NordineLotfi He didn't want to take it; he considered it for a second and then said "no, I don't think I should do that" and he's right
 
I mean, there is nothing weird since other delivery company do that. I think it mostly depends on the judgment of the person doing the delivery (or maybe the policy for the specific company they are at)
 
He wouldn't get paid for it and it it would be an insurance issue for him
@NordineLotfi no delivery company should be taking back a parcel that was delivered by a different company. That's absurd reverse logistics and Im sure would come with liability
 
5:24 PM
@roganjosh IIRC "I have a problem with one of my items" -> "missing" or if you can't, you can normally go "other" -> "other" -> "other" -> "other"
 
@roganjosh ah, I thought it was still DPD, yeah in that case you're right
@Peilonrayz yeah, same trick as in the phone call. Just be super repetitive and unintelligible
@roganjosh that's true hmm so what do you plan on doing to that sport equipment then? :o
 
The future hasn't really played out how the films suggested it would
 
I mean we're supposed to have flying cars for years now and check window I don't see any right now I'm pretty sure
 
@NordineLotfi I'll just have to take up weightlifting. There's no other solution
 
Are you going through ACS and clicking the item you have an issue with?
 
5:33 PM
I can't click an item I didn't order. In any case, I didn't intend this to be a thing more than a bit of fun. I'll figure it out. Ultimately, I assume the item is now unsellable because I unpacked the lot before I got to the instructions to think "what the hell is this?"
 
I have the option to click on items I ordered and accepted 1/2 a year ago.
 
So do I. But I didn't order a barbell holder, ever. I just now possess one.
 
When you get into the text chat for the missing item just say "oh I got an extra item too"
 
@roganjosh did that mistake too before. That's why I now triple check the delivery address...unless they swapped the sticker on your parcel and their parcel? (that happened once to me too)
 
I'll just take it to a local community centre or something. Making it difficult for me to report the issue is enough for me - that's crap customer service, especially when I asked the courier to double check (before knowing it was the wrong item). If they get grumpy about it, I'll just pay, but I doubt anything will happen
 

« first day (4937 days earlier)      last day (11 days later) »