@tbroyer@piaille.fr avatar

tbroyer

@tbroyer@piaille.fr

Web development (frontend, Web APIs), Web app security, build tools, Java, Kotlin, Gradle, etc.

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

konnorrogers, to random
@konnorrogers@ruby.social avatar

Wrote an article on how to fix the "reflected attribute" issue faced when you set properties in a constructor with Lit and why it happens

https://www.konnorrogers.com/posts/2024/designing-web-components-for-morphing

tbroyer,
@tbroyer@piaille.fr avatar

@konnorrogers I have no idea what morphing operation you're talking about, but setting the attributes from constructor initialization is clearly a bug (only happens when not using decorators, and a known issue: https://github.com/lit/lit/issues/1476) and IMO this should be worked around using getter/setter (which can also easily solve the question of what to do when the property is set to null/undefined or the attribute is removed)
See https://blog.ltgt.net/web-component-properties/ for my take on reflected properties.

aeris, to random French
@aeris@firefish.imirhil.fr avatar

Sérieusement, je pète un plomb depuis tout à l’heure avec ça… Quelqu’un voit le problème avec ce certificat ? 🤔
https://paste.imirhil.fr/?726602cfd9263b9d#Lt4knmlS63vCEGGkz6lQF8lwE4DIkYg3eocyB2mGyCs=

tbroyer,
@tbroyer@piaille.fr avatar

@themr0c @Norore @aeris "bad cert domain" ça me paraîtrait bizarre pour indiquer un auto signé quand même 🤔

tbroyer,
@tbroyer@piaille.fr avatar

@Norore Ce message là je l'avais compris oui 😉

nixCraft, to random
@nixCraft@mastodon.social avatar

PHP was originally an abbreviation of Personal Home Page 🤔 did you know that?

tbroyer,
@tbroyer@piaille.fr avatar

@nixCraft Of course!
(I started with PHP/FI)

tbroyer, to Java
@tbroyer@piaille.fr avatar

connect2id's Nimbus OAuth2/OIDC SDK is underrated, particularly as a direct dependency!

https://connect2id.com/products/nimbus-oauth-openid-connect-sdk

Many people use it through Spring Security or Pac4j but the lib is relatively easy to use directly (particularly if you know the protocols) and can be used to add OIDC support to Java apps with much less complexity than those Spring or Pac4j authentication frameworks (but at the cost of having to handle some of the Web security yourself, mainly around CSRF)

heybran, to javascript
@heybran@mastodon.online avatar

Using inline events handlers inside vanilla side project is kinda nice, what do you think? Love the freedom and joy of writing vanilla .

https://heybran.cn/blog/web-components-inline-event-handlers/

tbroyer,
@tbroyer@piaille.fr avatar

@heybran The first drawback I can think of is about CSP, where you'd have to use unsafe-inline or unsafe-hashes (there's a reason their name includes the word unsafe)

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/script-src

hi_mayank, to random
@hi_mayank@hachyderm.io avatar

this is absolutely wild! facebook needs not one but TWO different syntax extensions to JS to make their framework usable.

and you still can't write a regular <style> tag in it 🫠

https://scribe.rip/flow-type/announcing-component-syntax-b6c5285660d0

tbroyer,
@tbroyer@piaille.fr avatar
rauschma, to random
@rauschma@fosstodon.org avatar

HTML entities in Markdown—for HTML and other output formats:
– Which ones would you support?
– For most entities, using the Unicode character directly seems like the best solution(?)
– I can’t think of any exceptions. Maybe:  

tbroyer,
@tbroyer@piaille.fr avatar

@rauschma Maybe ­ too, and basically any non-printable character, e.g. &; and maybe &; (no idea if they have names in HTML, and U+200C might be enough/better as direct Unicode character as it should have a visible effect): https://invisible-characters.com/

tbroyer,
@tbroyer@piaille.fr avatar

@idleberg @rauschma @max More than readability, I'd say writability: it's easier/faster to type a shortcode than reach for an emoji keyboard (or other input helper) and find the appropriate emoji. Not all setups have (usable) shortcuts to easily type emojis.

tbroyer,
@tbroyer@piaille.fr avatar

@max @idleberg @rauschma

> Today emoji keyboards are in all major OSes and an easy key press away.

That's a wild generalization from Windows and Mac (on desktop).

As I said:
> Not all setups have (usable) shortcuts to easily type emojis.

See also https://issues.chromium.org/issues/40113488 for some fun.

melix, to random
@melix@mastodon.xyz avatar

At the risk of repeating myself, Maven's "closest" resolution strategy sucks a million. Sorry but I'm literally spending hours trying to figure out why a version declares in an imported BOM doesn't take precedence. And it's a fairly complex project with hundreds of deps, each overriding each others' dependency management blocks, because yeah sure that's the only way you can make that thing use the version you want, right? Let me cry.

tbroyer,
@tbroyer@piaille.fr avatar

@melix Did you try mvn help:effective-pom -Dverbose?

kate, (edited ) to random
@kate@fosstodon.org avatar

deleted_by_author

  • Loading...
  • tbroyer,
    @tbroyer@piaille.fr avatar

    @kate C: it depends.

    Generally "Apple has done a thing", but then "they have done a thing" (and I'm using a "plural they" here: we don't have an equivalent to the "neutral they" in french, and I say "Apple a fait quelque chose" and then "Ils ont fait quelque chose")

    Fwiw, I've had a discussion recently about whether companies are grammatically feminine or masculine (again, we don't have neutral in french so we fall back to masculine, but "company" is feminine, so should "Apple" be equivalent to "the Apple company" –feminine– or just "Apple" –undefined, so using masculine as a fallback). The conclusion was: do as you want 🙂 (I use masculine: "Ils" above)

    HTeuMeuLeu, to random French
    @HTeuMeuLeu@mastodon.social avatar

    Je découvre que le mec du meme « Change my mind » est un connard d'extrême droite. https://mstdn.social/@MaryAustinBooks/112231098012899780

    tbroyer,
    @tbroyer@piaille.fr avatar

    @HTeuMeuLeu Bah, ça faisait partie du meme à la base justement
    https://knowyourmeme.com/memes/steven-crowders-change-my-mind-campus-sign

    (je connaissais pas la version avec Calvin, merci)

    tbroyer, to random
    @tbroyer@piaille.fr avatar

    Have you ever heard Jacques Brel sing ABBA? (without AI)

    https://youtu.be/69_k021ejhk

    (that song is so powerful! btw, this a cover of a French cover by Mireille Mathieu in 1981)

    tbroyer, to random
    @tbroyer@piaille.fr avatar

    Algorithmic timelines on social media resurface april fools the next day (and will probably continue for the next couple days)

    This is not funny

    b0rk, to random
    @b0rk@jvns.ca avatar

    what's your favourite third-party command line git tool? Mostly interested in tools that just do 1 thing (like git-absorb or delta or git-vee), not so much full git UIs like lazygit or magit. Also not looking for prompt tools like starship right now.

    tbroyer,
    @tbroyer@piaille.fr avatar

    @b0rk I think I've only ever used one: filter-repo.

    (in my case, to split a repo in two; had to do it a couple times)

    https://github.com/newren/git-filter-repo/

    tunetheweb, to random
    @tunetheweb@webperf.social avatar

    This just really annoys me about the fediverse.

    Has there been any attempt to fix this (without hacks and extensions)?

    It sets localStorage of my preferred instance the first time I use another instance to pre-fill it for next time. That's OK but I think it should just auto-redirect to my instance as soon as the page loads when it sees that.

    Even then it expires and still annoying for each instance.

    Or maybe you should be able to register a lite redirect profile on other common instances?

    tbroyer,
    @tbroyer@piaille.fr avatar

    @tunetheweb I only glanced over the article but IIUC this might be being worked on: https://wedistribute.org/2024/03/activitypub-nomadic-identity/

    cory, to random
    @cory@social.lol avatar

    git push
    Everything up-to-date

    git pull
    Already up to date.

    The formatting differences here make my teeth itch.

    tbroyer,
    @tbroyer@piaille.fr avatar

    @cory you can push many refs at once, but will only pull to the current branch

    tbroyer,
    @tbroyer@piaille.fr avatar

    @cory Oooohhh… that's what you were talking about? for some reason I didn't even notice it

    mnot, to random
    @mnot@techpolicy.social avatar

    Mapping services' use of your wifi is opt-out, not opt-in. Is that equitable?

    https://location.services.mozilla.com/optout

    tbroyer,
    @tbroyer@piaille.fr avatar

    @mnot I think much more importantly, it's being sunset, so in a few weeks from now it won't really matter if it is/was opt-out or opt-in.

    b0rk, (edited ) to random
    @b0rk@jvns.ca avatar

    deleted_by_author

  • Loading...
  • tbroyer,
    @tbroyer@piaille.fr avatar

    @b0rk Answered "pretty confident" only because in the middle of a rebase the concept of current branch is a bit blurry: you're not "on the branch" (so technically there's no "current branch") but there's some kind of current branch whose history you're editing (whose "tip" will be moved at the end of the rebase, or to which you'll get back if you abort)

    HTeuMeuLeu, to random French
    @HTeuMeuLeu@mastodon.social avatar

    Il faut lire ce fil d'un participant* à un atelier d'Apple sur leur mise en conformité avec le Digital Market Act dans l'Union Européenne. Toute l'attitude d'Apple est absolument détestable. (Surtout quand ils se conforment habituellement aux lois en Chine sans sourciller.) https://social.vivaldi.net/@brucelawson/112115624691714315

    (* Le dit participant travaille chez Vivaldi, qui tourne sur Blink, le moteur de Google. On est en train de lutter contre un monopole pour se jeter sur un autre monopole et tout ceci est désespérant.)

    tbroyer,
    @tbroyer@piaille.fr avatar
    tbroyer,
    @tbroyer@piaille.fr avatar

    @Cqoicebordel @HTeuMeuLeu Sur le lien avec Vivaldi, j'ai un vague souvenir qu'il en avait parlé sur Mastodon, mais j'ai pu uniquement retrouver qu'il n'y travaille pas en ce moment 😉

    Sur les browser engines, GNOME Web est basé sur WebKit, et il existe quelques navigateurs basés sur Gecko il me semble. Chromium semble être plus facile à utiliser, mais il reste des alternatives.

    W_Lucht, to random
    @W_Lucht@mstdn.social avatar

    😡🤯 German is a gendered language. The female version of "Professor" is a "Professorin". If you wish to include everyone, it's become a great practice to write "Professor:in" (as I do) or some variant. One speaks it with a small stop.

    Now Bavaria has outlawed this use of language by state employees, claiming it's ideologically motivated. If I were a professor in Bavaria, I could be sanctioned for the inclusive way I write.

    Backlash against nature, women, immigrants ... it's all connected.

    tbroyer,
    @tbroyer@piaille.fr avatar

    @W_Lucht France has banned the middle-dot similar notation from official documents, that doesn't mean you cannot use inclusive language though, it's just a bit longer, e.g. "Professeures et Professeurs" vs "Professeur·e·s" (I admit it might not cover absolutely everyone though 🤷)

    b0rk, to random
    @b0rk@jvns.ca avatar

    i've been hearing a lot from folks on here who are frustrated with git (for many good reasons!)

    but I'm curious about the opposite perspective: if you've worked with more than one version control system over the years and you prefer git, I'd love to know:

    a) what other systems have you worked with? (hg? svn? p4?)
    b) why do you prefer git?

    notes:

    • please no replies about why you think git is worse
    • interested in answers other than "because I have no choice"
    tbroyer,
    @tbroyer@piaille.fr avatar

    @b0rk Totally agree. I've used CVS two decades ago, then SVN for years, then tried Git with git-svn, and finally switched to Git. When Google Code hosted hg repositories I tried that (if only to contribute to OSS projects) but it never "clicked". I can't really remember what I had trouble understanding in hg (branching? tagging? working with others/remotes?) but I just couldn't get it, and was happy when "everyone" switched to Git.

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