@davedelong@mastodon.social avatar

davedelong

@davedelong@mastodon.social

He's just this guy, you know?

This profile is from a federated server and may be incomplete. Browse more on the original instance.

_inside, to random
@_inside@mastodon.social avatar

Apple introduced API that enables recording audio from other apps or the entire system in macOS 14.4, but it's poorly documented and there's no sample code available, so I decided to fix that: https://github.com/insidegui/AudioCap

davedelong,
@davedelong@mastodon.social avatar

@_inside I would love to see DevPubs integrate community stuff like this into the docs

davedelong, to random
@davedelong@mastodon.social avatar

There's a thread on the Swift forums right now about "what would you change about Swift after 10 years”.

I pretty firmly believe that Swift's tooling is an existential threat to the entire language. It's so tightly coupled to Xcode, and what you get there is a mixed bag. Stale warnings persist for ages, which means newcomers can't even trust that what they're seeing is accurate. How is anyone supposed to learn?

davedelong, to random
@davedelong@mastodon.social avatar

Is iMovie really not a document-based app anymore? I want to have an iMovie project with only its source files saved on an external hard drive, but I'm not finding how to do that on my Mac. I could've sworn this used to be possible.

davedelong, to random
@davedelong@mastodon.social avatar

I’m very excited for this to get on the Mac app store. Thanks @sindresorhus for the great project! This is one of my essential developer tools.

https://github.com/sindresorhus/Pasteboard-Viewer/pull/31

davedelong, to random
@davedelong@mastodon.social avatar

All I want for is for this to be fixed.

davedelong,
@davedelong@mastodon.social avatar

@MuseumShuffle Yeah, and there's also "Clear all issues" in the "Product" menu.

But I shouldn't have to do any of that. An IDE has one primary job (compile my code and tell me when it doesn't compile) and this gets in the way of that.

davedelong, to random
@davedelong@mastodon.social avatar

It looks like last night's hair-tearing is a bug in SwiftNIO.

I think I'm cursed.

davedelong, to random
@davedelong@mastodon.social avatar

After three years, I've been brushing the dust off this side project (converting a Go-based server app to Swift) but instead trying to get to work is absolutely killing all the joy and motivation I have to work on it.

My code works great locally. But as soon as I run it within Vapor and use its stack for stuff, nothing works. There are bugs and gaping holes all over the place.

So…

What should I be using instead?

davedelong, to random
@davedelong@mastodon.social avatar

There is zero benefit to using the OSLog APIs in your own app. The logs are hard to get in your own app, and impossible to get from previous app runs. You can't get logs from a device except via a sysdiagnose, and no developer wants to walk a customer through that arduous, privacy-invasive process.

OSLog is an API that Apple made to solve Apple's problems. It is not a developer-friendly API.

Use the Logging package instead: https://github.com/apple/swift-log

https://twit.social/@kharrison/112253393743175498

davedelong,
@davedelong@mastodon.social avatar

@krzyzanowskim SwiftLog gives you control over where the logs go, so you can have them go to disk for later recovery

davedelong, to random
@davedelong@mastodon.social avatar

I think I just found a calendar bug in libicu.

Wheeeeeee!

davedelong,
@davedelong@mastodon.social avatar

Here's the details. Basically, trying to find a Date based on a weekOfMonth (or weekOfYear) does not work; it always returns the first week of the unit, but not subsequent ones.

The source code in swift-foundation seems to indicate the conversion method is a thin wrapper around the libicu APIs.

davedelong,
@davedelong@mastodon.social avatar

@dgoldsmith excellent, thank you! I’m going to try and reproduce it without Foundation in the way before submitting it.

davedelong, to random
@davedelong@mastodon.social avatar

Why are Peanut Butter Rolos not a thing?

I've had them once (imported from Canada) and they were fantastic and it seems like such an obvious thing to make and sell in the US.

Now they're basically impossible to find online. I’m having to ask Canadian friends if they've seen them and will ship them to me.

davedelong, to random
@davedelong@mastodon.social avatar

Very excited to see how this develops! https://apple.news/Axl8pDMWFRPSDCXIK-dPaeQ

And of course, my Time library will be able to support this, because it allows for calendars to customize how many "calendar seconds" elapse for every "real second" (SI Second).

sindresorhus, to random
@sindresorhus@mastodon.social avatar

I'm planning to add a setting to Dato to show free time between events. How should it be presented? This is my first take.

davedelong,
@davedelong@mastodon.social avatar

@sindresorhus couple of thoughts:

  1. too much vertical spacing. shorten it, and add thin gray hairlines on the left to mimic the colored bars of the events themselves
  2. make sure there's a toggle to turn this on/off
davedelong,
@davedelong@mastodon.social avatar

@sindresorhus This is definitely an improvement. I might suggest dashed lines to suggest linear continuity; dots kind of look like a grabber handle. I'd also try making the dashes extend above/below the height of the available interval. (mockup attached)

BasicAppleGuy, to random
@BasicAppleGuy@mastodon.social avatar

Apple Announces MacBook
12-inch Liquid Retina Display. M3. Five dual-tone unibody colours. $899.

image/png
image/png
image/png

davedelong,
@davedelong@mastodon.social avatar

@BasicAppleGuy why would you do this to me

davedelong, to random
@davedelong@mastodon.social avatar

Years later and I still have no idea how Xcode's tabs are actually supposed to work. They tend to get in my way and I just ignore them as much as I can.

⇧⌘O FTW

davedelong, to random
@davedelong@mastodon.social avatar

The indescribable sadness of reaching for your coffee cup only to realize a moment later that it's empty.

davedelong, to random
@davedelong@mastodon.social avatar

TFW you discover a major logical flaw in some code you've written that means you need to re-think your entire approach to the problem.

Oops.

sindresorhus, to random
@sindresorhus@mastodon.social avatar
davedelong,
@davedelong@mastodon.social avatar

@sindresorhus Dato is basically one of the very first apps I install when setting up a new computer. It's so much better than the normal system clock.

And I love that I can give it a custom format string to use!

davedelong, to random
@davedelong@mastodon.social avatar

FFS what do you have to do to stop all the political spam SMS messages?! i'm on every Do Not Call registry I can find and yet I still get 3 or 4 a day.

davedelong, to random
@davedelong@mastodon.social avatar
davedelong, to random
@davedelong@mastodon.social avatar

My hunt for the perfect to-go cable bag continues. I've been through half a dozen different options and none seem to be quite right. The option I dislike the least so far is Peak Design's Tech Pouch.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • JUstTest
  • GTA5RPClips
  • DreamBathrooms
  • InstantRegret
  • magazineikmin
  • osvaldo12
  • Youngstown
  • ngwrru68w68
  • slotface
  • everett
  • rosin
  • thenastyranch
  • kavyap
  • tacticalgear
  • megavids
  • modclub
  • normalnudes
  • cubers
  • ethstaker
  • mdbf
  • Durango
  • khanakhh
  • tester
  • provamag3
  • cisconetworking
  • Leos
  • anitta
  • lostlight
  • All magazines