@callionica@mastodon.social avatar

callionica

@callionica@mastodon.social

Looking for self-hosted iPlayer/Netflix-like software? Message me. I’m a human who creates software. Native, managed, web, static types, untyped: it’s all the same to me. TS, JS, Objective C, C++, C#, … I’ve worked for ‘Big Tech’. I’m decades into the ol’ software game.

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

stroughtonsmith, to random
@stroughtonsmith@mastodon.social avatar

Great demonstration of how laggy and imprecise Vision Pro's hand tracking (top) is; Meta Quest 3 at the bottom for comparison — but even with perfect hand-tracking, you would still need physical controllers (and/or other XR-enabled tools/implements) for the more interesting aspects of XR; hands alone are not enough

/via https://www.threads.net/

video/mp4

callionica,
@callionica@mastodon.social avatar

@stroughtonsmith Is it just me or is finger-tip-to-palm distance increasing unreasonably in the laggy top video? I wonder how close to the bottom video they’d get by putting stronger constraints on the relative positions.

simevidas, (edited ) to random
@simevidas@mastodon.social avatar

In JavaScript, if you want to check if the expression a - b is a number between 0 and 10 (inclusive), how do you do that in an if statement without repeating the expression?

What I got works but is not very readable:

if (Math.abs(a - b - 5) <= 5) {

}

edit: After thinking about it a bit more, the obvious solution is to put the expression in a variable. Repeating a single variable is fine.

let d = a - b;
if (d >= 0 && d <= 10) {

}

callionica,
@callionica@mastodon.social avatar

@simevidas I would have to write it in this order:

if (0 <= d && d <= 10) {

for readability or aesthetic reasons.

mekkaokereke, to random
@mekkaokereke@hachyderm.io avatar

Happy #BlackHistoryMonth !

Day 19

Q: Why is so much Black music about violence and misogyny? I'm not racist, but I think Black culture is just more violent. Why does it seem that way?

A: Racism. Rap, trap, and drill, are only the most popular genres of Black music listened to by white people. The most popular among Black folk is R&B, almost 2X as popular. Violent rap is mostly for y'all.🤷🏿‍♂️

Black Music:
https://hachyderm.io/@mekkaokereke/109893482569845648

Black History Month Megathread:
https://hachyderm.io/@mekkaokereke/111856915139042511

callionica,
@callionica@mastodon.social avatar

@morecowbell @mekkaokereke Guns N Roses’ Used to Love Her and Motley Crue’s lovely ballad You’re All I Need are both straight up murder songs.

zachleat, (edited ) to random
@zachleat@zachleat.com avatar

I’m very concerned about Apple breaking the web by intentionally removing PWA features in the EU.

If we assume good intentions and the root issue is merely one of regulatory deadlines—an almost $3 trillion (USD) market cap company would make a plan to work with third-party browsers to add that compatibility back in (or at the very least provide APIs for others to do so).

But as far as I can tell they’re just removing the feature (only in the EU??) with no plan at all to add it back? yikes

callionica,
@callionica@mastodon.social avatar

@a40yostudent @zachleat Are you sure you’ve never met someone who added a website to their Homescreen and was pleased that it hid the browser toolbars? That’s a PWA.

danielpunkass, to random
@danielpunkass@mastodon.social avatar

Unpopular opinion: it's the EU's fault that Progressive Web Apps are disabled on iOS. People expect Apple to jump through hoops to preserve something they don't prioritize. Why? If PWAs are important to the EU they should grant Apple an unambiguous permission to continue hosting them in WebKit-only if they choose to.

callionica,
@callionica@mastodon.social avatar

@danielpunkass Apple has, on numerous occasions in numerous legal filings and in communication directly to developers, talked about web apps as an alternative to App Store apps to avoid regulatory scrutiny and to calm criticism. Apple could have spent some time since Nov 2022 to enable 3rd party browser web apps to avoid screwing over developers and users, but since web apps compete with App Store apps they decided not to.

callionica,
@callionica@mastodon.social avatar

@danielpunkass I’ll just highlight two features that are lost by disabling web app support. 1) Standalone web apps don’t have browser UI so the problem with the annoying Safari toolbars that appear and disappear when you scroll and that get in the way of buttons near the edges of the screen is solved for web apps added to the Homescreen. Maybe you don’t value that feature, but I do. I also appreciate that web apps can use the whole screen for content (just like native apps can).

callionica,
@callionica@mastodon.social avatar

@danielpunkass 2) Apple made changes to storage for all sites in Safari (for privacy reasons) that deletes locally stored data using an opaque algorithm (aka “whenever they feel like it”). This is really annoying for users and developers alike. Adding a web app to the Homescreen was meant to be a signal to preserve data and allow user’s to indicate trust in the web app. This never worked, but with this change it means there is not, and likely never will be, reliable local storage in Safari.

callionica,
@callionica@mastodon.social avatar

@danielpunkass This 2nd point is an own goal for Apple. Web apps that benefit from local storage will likely work better in 3rd party browsers. They’ve prevented web apps from being anything other than shortcuts (which certainly damages notifications and hardware integration), but at the same time given 3rd party browsers the opportunity to provide chromeless UI and reliable local storage. That subset of websites will run better on 3rd party browsers.

callionica,
@callionica@mastodon.social avatar

@danielpunkass Regarding “if PWAs are important to the EU”, we don’t need to speculate (although we might need to quibble over technical terms): web apps are mentioned explicitly in the DMA as being important.

callionica,
@callionica@mastodon.social avatar

@danielpunkass In case it’s not obvious, “web apps that benefit from reliable local storage” is all apps that store data locally and all sites that store data remotely behind a log in (because the log in token is local state). Apple is currently blasé about Safari’s behavior here because it reduces competition with App Store apps, but I hope they’ll be forced to improve once competition with other iOS web browsers ramps up.

callionica,
@callionica@mastodon.social avatar

@danielpunkass I hope it’s helpful. Homescreen added web apps are important to many people. I’m currently replying to you using Phanpy (a really slick web UI for Mastodon) that I added to my Homescreen. It would be a shame to go back to Safari’s annoying toolbars cluttering up the interface.

craiggrannell, to random
@craiggrannell@mastodon.social avatar

I see quite a few people in the US returning their Vision Pros. As someone in the UK, it always boggles my mind that this is allowed. We have very good consumer rights here, for the most part, but you don’t just buy a piece of hardware and get to return it if you don’t like it. You by default only get a refund if it’s unused and the retailer agrees (or you bought it online and returned within 14 days) or if it’s damaged (and even then, the retailer has one ‘right to repair’ attempt).

callionica,
@callionica@mastodon.social avatar

@craiggrannell @jknlsn This is what the CAB says about “changing your mind about something you bought”: https://www.citizensadvice.org.uk/consumer/changed-your-mind/changing-your-mind-about-something-youve-bought/

anderseknert, to typescript
@anderseknert@hachyderm.io avatar

Writing some for a project and… meh. It feels like JavaScript turned Java without the stdlib. I’m sure I’d get better / used to it given some time, but the vibe isn’t there for me. Fast feedback loop > strict typing any day IMHO, but to each their own.

callionica,
@callionica@mastodon.social avatar

@anderseknert If you get used to TS, I think it has benefits, but it’s definitely an investment to get quick with it and at the start of a project or feature, it’s great to just use JS. Do you use libraries for runtime type validation?

kissane, to random
@kissane@mas.to avatar

I'm not a fediverse old-timer—I had a couple of accounts in 2018 but the servers went poof and I didn't re-establish till much later—but it seems very clear to me that the dominant culture for building feature- or reach-extending services is opt-in, not opt-out.

But every few months, another thing emerges that is opt-out and there's a super-predictable backlash and flame wars and egggghhh egh. Egh.

callionica,
@callionica@mastodon.social avatar

@kissane Does Mastodon support opt-in federation at a technical level? If admins & users have a setting that requires them to approve domains before any sharing happens, that would make standard federation and any tools that require federation opt-in by default (for servers/users that enable that feature).

schwa, to random
@schwa@mastodon.social avatar

deleted_by_author

  • Loading...
  • callionica,
    @callionica@mastodon.social avatar

    @schwa It is a social responsibility for other men to use the backpacked seats in preference over unoccupied seats. If people knew that putting a backpack on a seat made it more likely that someone would sit there, they’d learn not to do it.

    callionica,
    @callionica@mastodon.social avatar

    @schwa I hadn’t realised you were talking about Japan. I intended to suggest that residents of the US and the UK can exercise their social responsibility and nudge others’ behaviour in appropriate directions by taking action. I hadn’t intended to offer any input on how foreigners should behave on public transport outside their own country.

    holly, to random
    @holly@hachyderm.io avatar

    My perfect Sunday morning: drinking coffee, watching love island, and answering concurrency questions on the Swift forums

    callionica,
    @callionica@mastodon.social avatar

    @siracusa @rileytestut @holly If y’all are looking for other fun “reality” shows, I heartily recommend The Traitors (UK version is best, US version also great, skip the Australian one). Although I can’t see where you’ll find time if you’re several seasons behind on Love Island.

    schizanon, to webdev

    I fucking hate all the new CSS units, particularly the viewport units. https://web.dev/blog/viewport-units

    This is all $AAPL's fault. Just like touch events; they went and built whatever worked for them and their garbage computers without consulting standards bodies, and we end up stuck with their shitty decisions.

    callionica,
    @callionica@mastodon.social avatar

    @schizanon I haven’t looked into this recently, but is it possible to position elements so that they are locked in physical space and located where they will not be covered by bars or the keyboard now?

    jsq, to random
    @jsq@mastodon.social avatar

    deleted_by_author

  • Loading...
  • callionica,
    @callionica@mastodon.social avatar

    @jsq Don’t forget the money many pay as ad fees to compete against this.

    loke, to random
    @loke@functional.cafe avatar

    It's so disappointing that there is no way to easily create an overlay "Please wait" box when performing some long-running operation in a web application.

    (yes, I'm trying to summon any reply guys here 🙂 )

    callionica,
    @callionica@mastodon.social avatar

    @loke Intercept the web request (by hooking A link or navigation API if you can limit to supporting browsers), use fetch to send the request, throw up your UI if fetch takes too long, dismiss UI when fetch returns, other actions.

    If it’s for a full page navigation, make sure your response will be cached then document.location = url will “repeat” the request, but the response is actually pulled quickly from cache.

    In “please wait” ui, you can also connect a cancel button to AbortController.

    callionica,
    @callionica@mastodon.social avatar

    @loke Oh. Try dialog element with showModal?

    atpfm, to random
    @atpfm@mastodon.social avatar

    572: Cryptofarts and Copyright Infringement
    https://atp.fm/572

    Apple's EU DMA compliance and our excitement for the Vision Pro.

    callionica,
    @callionica@mastodon.social avatar

    @atpfm Really interesting discussion. I think your conclusion that the DMA does nothing about the financial deal between Apple & developers isn’t supported by the multiple uses of “free of charge” that appear in the text of the DMA. I don’t believe Apple’s new terms are DMA-compliant. Apple has requirements because of both the AppStore and iOS independently.

    callionica,
    @callionica@mastodon.social avatar

    @atpfm The interoperability, competition, and private API requirements are far reaching (if the EU is willing to enforce of course), but, for example, the DMA does not allow Apple apps to use private API that are unavailable to third party apps, and it does not allow Apple’s restrictions on & cost for linking out.

    tomayac, to random
    @tomayac@toot.cafe avatar

    Hope this is a bug in the beta, but opening previously installed Home Screen Web apps on iOS 17.4 (21E5184i) results in a prompt:

    Open “Example app” in Safari. “Example app” will open in your default browser from now on.

    Newly installed apps always open in the browser. There doesn’t appear to be a standalone mode anymore.

    Reported as FB13567834.

    callionica,
    @callionica@mastodon.social avatar

    @tomayac @owa I understand that any local data that was stored in the home screened web app is lost too. #PWA #DMA

    https://indieweb.social/@artmllr/111954598854639684

    lapcatsoftware, to random
    @lapcatsoftware@mastodon.social avatar

    As far as I can tell, there’s no independent app distribution on iOS, like there is on the Mac. There are only “alternative marketplaces” that have to be approved by Apple.

    That sucks. Fuck that shit. We don’t need gatekeepers at all, whether Apple or some alternative. Anything less than the capability for direct distribution from developer to consumer is unacceptable.

    callionica,
    @callionica@mastodon.social avatar

    @my_actual_brain @loke @lapcatsoftware Not a joke. Just to be clear, this is a requirement for building a marketplace app (an alternative AppStore), not a requirement for building an app to be sold through an alternative AppStore. We don’t actually know the requirements and costs of distributing through alternative stores yet, since we don’t know who will build those.

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