Show newer

If you use a Repeater against a QAbstractItemModel and then remove data from the model, the delegate for that item automatically gets its index set to -1 and the item bindings get re-evaluated with that immediately before the delegate gets deleted. That's not the nicest design decision on the part of Repeater, but my code should have had the bounds check and there are workarounds for the other consequences.

Show thread

Today's code edits involved adding a bunch of tiny little functions to support new features and adding a bounds check to a function that I'm amazed I wrote without one. Stuff mostly worked on the first try with the exception of the feature that exposed the lack of a bounds check (which worked once I fixed that). I also cleaned up some superfluous conditionals and did some other minor organizational tweaks.

Employee: <thing> isn't working.
Me: *goes over to thing, looks at it, moves the power switch to the on position*

Anyway please look at this logo for an entomological conference in 1968

Went back to playing Gundemoniums and somehow I got better at it?

Bottles arrived today, but no lids. Called back the place I get my bottles from and they're going to send lids. Fortunately, the three bottle sizes I buy all use the same lids so this isn't going to cause any production delays.

I've done enough test batches on the new sample roaster at this point that it's become clear that I want to adapt a program that I've been working on to do some of the work involved in designing roasting plans outside of their app and then get the data I need to efficiently copy in what I want.

I wasn't really looking for new features to add to that program, but I guess another use case that it covers at launch might be good for getting people to try it out.

@mwlucas I always felt like this adequately described the difference beginners and experts. We all make mistakes and achieve the same outcome; The difference is the tricks you've learned along the way. :flan_thumbs:

sometimes you have a problem and think "I know, I'll use regular expressions", and now you've rolled it out worldwide and the CPUs are spiking everywhere and the internet is on fire oh god oh no blog.cloudflare.com/cloudflare

Do you think anybody involved with that let me google that for you website gets phone calls from people asking them to google something for them?

Saved 81 cents on today's shopping trip because the person ahead of me had 81 cents left over on a gift card and decided he'd rather just hand that off to me instead of needing to keep track of it for a future visit.

At my shop if someone has less than a dollar left on a gift certificate I'll usually just ask them if they want the left over back as change rather than need to deal with it again on their next visit.

From the PostgreSQL manual:

"The first century starts at 0001-01-01 00:00:00 AD, although they did not know it at the time. This definition applies to all Gregorian calendar countries. There is no century number 0, you go from -1 century to 1 century. If you disagree with this, please write your complaint to: Pope, Cathedral Saint-Peter of Roma, Vatican."

Amazon does this thing where they split the video royalty payments up into multiple regions and they each pay out separately. The terms when I was signing up for that suggested that there's a payment threshold, but they've never stuck to that so some months I get up to four separate deposits for as little as 1 cent. I'm kind of amazed they don't at least merge those into a single payment.

Show thread
Show older
Typica Social

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!