@dimitribouniol@mastodon.social avatar

dimitribouniol

@dimitribouniol@mastodon.social

Apple Platforms Dev who loves Japan, and also loves Swiss chocolate. Made EleMints, SLUZZULS, amongst other things you can’t find anymore 😅.

Host https://mastodon.social/@codecompletion, https://mastodon.social/@LinhAndDimiChan!

#iOS #macOS #Apple #OpenSource #Tech #Swift #Anime #Japan #Japanese #Linguistics #ScientificSkepticism #fedi22

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

dimillian, to random
@dimillian@mastodon.social avatar

It's funny how I often feel incredibly uncomfortable here because I can’t really talk about generative AI, OpenAI stuff, innovation etc… because some of the crowd is just toxic about it.
Even on X, you don’t get that kind of people flaming in your mentions because they think they’re on such a high horse.
I can have whatever opinion I want and you need to calm down.
Get over it. Generative AI is here to stay and so many workflow and tools will get improved because of it.

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@dimillian Though I don't think its fair people go after you for being excited and talking about it, it's tough for many to get excited about it when they see their life skills get diluted in real time, in a way they'll never be able to compete with in a few years time.

davidbures, to random
@davidbures@mstdn.social avatar

@dimitribouniol hey, would you like a Cork license or 25€? 😊

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@davidbures Neither… because I just bought a license myself 😉 Keep up the hard work, let's support each other where we can haha!

davidbures, to swift
@davidbures@mstdn.social avatar

I really need some Swift help. If you’re feeling brave, could you check out this Cork issue? https://github.com/buresdv/Cork/issues/275

We’re having trouble with the “Somehow bypass this licensing scheme if the user compiled Cork themselves” part

Do you have any ideas on how to solve this? If you do and you help implement it, you’ll get a spot in the “Special thanks” section of the readme and within the app itself, as well as a free license or cash equivalent of the license

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@davidbures Dumb suggestion: is it ok if “build it yourself" comes with a DEBUG requirement? ie. if you build and run from Xcode, you want to not do licensing checks, right? Just wrap the licensing checks in an #if DEBUG segment, then they'll be skipped only for debug builds. Want the release build? Modify the code or go get a license.

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@davidbures Is this the code signing certificate, or the license certificate?
For the license cert, you can probably also have Xcode point to a xcconfig that references the cert to import, then you keep the real cert private on your system, but have a dummy one in the repo for folks that build it from source. That said, it wouldn't help with signing new licenses for local development haha

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@davidbures I would stick to DEBUG, probably waaay simpler, especially if you already have your licensing stuff working.

finestructure, to random
@finestructure@mastodon.social avatar

Folks who squash their merges, I’m curious why you are making that trade-off. I’m guessing the pro argument is a cleaner merge graph?

The big argument against it for me is that you lose granularity for git bisect. I've often been able to narrow down breakage (sometimes long past the merge) due to individual commits in the merge. If I'd merged in a giant blob all I'd have had to go by is that giant blob. (1/2)

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@finestructure I vastly prefer rebase and merge in GitHub for that linear history, though I also take a lot of time authoring the commits themselves so they each have a clear thing they are fixing or improving (ie. no “oops" or "wip" commits ever — those get squashed before I even push to the PR 😅)

I don't know if its improved, but merge commits have tended to “hide” changes that it didn't see as consequential in PR diffs, whereas a rebase always shows exactly what would get committed to main.

below, to swift German
@below@mastodon.social avatar

Can anyone tell me why this is landing at fatalError?

guard let a = someArray.first else {
return
}
self.someVar = a
guard self.someVar == a else {
fatalError("What?")
}

This is in the init method of a SwiftUI View, if that makes any difference …

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@below Is someVar an @State? It's value won't change in the init, you'll need to change it in something like an onAppear.

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@below Honestly, not sure its super well documented on Apple's side. Basically, @State is a reference to some internal storage SwiftUI manages on your behalf, and can change depending on where it's called. This is how Views which are structs can refer to the same value over time. It's generally only valid to reference somewhere within a body call, which is why you can set it in onAppear or in closures that capture it, because they are capturing the up to date ref which is not available in init

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

If building apps that sync to iCloud has taught me anything…

…it's that I don't want to build apps that sync to iCloud 😂

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@stroughtonsmith I scared myself away from it and spent way too much time building my own thing as a swift server running on a Mac mini instead. I think I’m happier I did 😅

davidbures, to swift
@davidbures@mstdn.social avatar

An interesting Swift question:

Is there a way to pick a random English word from the system dictionary without having to include that entire dictionary in the app bundle?

I’m writing a CLI for some work-related stuff and need a way to generate a random English word. I don’t want to include entire dictionaries within the tool itself, so I thought there might be a way to get a random word from the system dictionary.

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@davidbures Can you load /usr/share/dict/words and pick from there?

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@davidbures Hopefully its not sandbox restricted or something silly like that!

dimitribouniol, to random
@dimitribouniol@mastodon.social avatar

For those of you wondering where to find some ROMs, the Internet Archive has you covered: https://archive.org/details/the-legend-of-zelda-ocarina-of-time-usa_202012

davidbures, to swift
@davidbures@mstdn.social avatar

I have a question for the Swift gods:

On my journey to convert SwiftyJSON in Cork to Codable, I ran into a slight problem. Some of the JSON I’m parsing has this format:
[{formula: { // the data that I actually need}}, cask: { // empty and I don’t care}]

Is there a way to access the data inside “formula”, without having to define Formula as a useless struct? Using SwiftyJSON for this made the code really nice, since I could directly access the data in there.

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@davidbures You could leave out the cask property entirely, and it should decode fine. You'll still need the intermediate type with just “formula” as a property unless you want to dive into custom decoders. It can just be a few tiles for either approach though.

dimitribouniol, to swift
@dimitribouniol@mastodon.social avatar
below, to japanese
@below@mastodon.social avatar

Is there a bubble here? Reading about washing rice, there seems to be an even split between soaking the rice in cold water after washing (up to „overnight), and letting is soak in a strainer (between 10 and 30 minutes).

Any insights on that? Please boost for reach

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@below We usually let ours soak in the rice cooker directly before starting the cook, usually an hour to 30min beforehand. The rice cooker even has an “umami” option that does this as a part of its timer - locks the lid for 40 min, then starts.

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

Whatever about Mac Virtual Display, I'd like to see iPad Virtual Display

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@stroughtonsmith iPhone too — its so awkward having your phone hidden in environments and by windows, and generally not being able to read what's on screen when its not due to passthrough resolution. It could even be a privacy win as no one else would see what you are doing with it.

twostraws, to random
@twostraws@mastodon.social avatar

Saturday's Hacking with Swift+ livestream is now available for replay, along with transcription and downloadable project. This is the 30th stream, each building an app from scratch – if you're looking for an idea to ship on the App Store, start here! https://www.hackingwithswift.com/plus/live-streams/flashlight

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@twostraws While they wait, you can direct them to my much less engaging daily stream (gotta keep quiet for the sleeping baby!) where I show the unplanned and unedited process of developing an app from start to finish, touching several platforms, including server-side swift!

https://mastodon.social/@dimitribouniol/111957288824131664

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

Honestly, it wouldn't surprise me if the reason the Developer Strap doesn't do a whole lot right now were because the mechanism for approving USB device access in the UI, as on iOS, is just ifdef'd out for 1.0 😛 The OS seems to have everything it needs to do USB Host. Perhaps the Developer Strap will gain more features with software updates

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@stroughtonsmith I wouldn’t be surprised if it is still limited to USB-2 speeds though — it only has 14 pins instead of the expected 16 for USB3 lightning? That said, I can’t imagine the speaker needing more than 2 unless there are mics hiding in there too…

dimitribouniol, to random
@dimitribouniol@mastodon.social avatar

My USB-C to Lightning adapter finally came

dimitribouniol,
@dimitribouniol@mastodon.social avatar

GUYS I’M JACKED IN, WHAT NEXT?

dimitribouniol,
@dimitribouniol@mastodon.social avatar

shows up as a “Composite Device” in System Profiler, and is unfortunately limited to USB 2 speeds 😔

Unsurprisingly, it didn't detect my 2.5Gbps ethernet dongle I plugged in either.

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@stroughtonsmith Let me find one…

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@stroughtonsmith Unless you plan on using your hard drive as a stylish ear accessory, unfortunately it does not 😔

image/png

dimitribouniol,
@dimitribouniol@mastodon.social avatar

@stroughtonsmith yeah. Not sure if I have any flash drives, let me dig some more…

dimitribouniol,
@dimitribouniol@mastodon.social avatar

Jokes about uselessness aside (doesn’t support any USB devices at all), it is technically faster/more reliable than the WiFi, which is surprisingly meh compared to what other devices are getting on my home network.

WiFi speed Test on iPhone, showing a download speed of 685 Mbps and an upload speed of 696 Mbps

dimitribouniol,
@dimitribouniol@mastodon.social avatar

After running more tests with the developer strap, I really don't know who this device is for… now granted, my Wi-Fi setup teeters on “baller”, but I measured transfer speeds 3× faster on Wi-Fi than USB connected (~900Mbps vs ~300Mbps respectively) — it didn't even bother using the USB connection when installing an app with a 10GB dummy file 😅

The only thing I can think of is connection stability and/or corporate necessity (no laptop WiFi, how dare you attempt it!)?

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