@Ciantic@twit.social avatar

Ciantic

@Ciantic@twit.social

Developer. This is my main account for the time being. I have six profiles now on Mastodon, sigh.

I will remove followers who haven't posted anything.

#Rust, #FSharp, #CSharp, #DotNet, #TypeScript

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

matt, to threads
@matt@isfeeling.social avatar

reminds you after 30 days of sharing to the fediverse that you’re doing it and gives the option to go turn it off if you don’t want it anymore.

Ciantic,
@Ciantic@twit.social avatar

@matt Every time I look at Threads, it's @tchambers advocating to turn it on for people. Which is good, but this is completely backward.

The whole idea seemed that Meta was building a service from the ground up for federation so that everyone who joins Threads would be automatically in. I wouldn't care if they had some other way like RSS turned on by default, but they don't. It's a silo right now. Geeks will get it, but nobody else.

Maybe they have decided to extinguish without embracing.

Ciantic, to random
@Ciantic@twit.social avatar

Today I learned, the hard way, 's

git diff > ..\mypatch.patch

DOES NOT contain untracked files.

Luckily I didn't have that many, but lost all the work in untracked files, as I screwed up also with stash.

Ciantic, (edited ) to CSS
@Ciantic@twit.social avatar

I don't understand, why is Focus Trapping so damn tricky in HTML/CSS/JS?

So many ugly hacks involved in that, event listeners etc. to achieve it.

Ciantic, to dotnet
@Ciantic@twit.social avatar

Microsoft's Aspire framework looks cool to manage simple application with few dependencies.

It allows to write in application code the dependencies, and when deployed they start automatically.

For example if you add dependency to PostgreSQL or Redis then when started it starts it. Locally it uses K8s, but apparently when deployed to Azure it can use containers or services.

No need to write YAML, just pure C# & Nuget to get external services working.

Ciantic,
@Ciantic@twit.social avatar

What I like is that, in my opinion this is how K8s should've been from the start. Define the resources in code, not in YAML!

Ciantic, to email
@Ciantic@twit.social avatar

Newsletters would be so much better if I got them to Mastodon as links or full content.

When I open up an email, my mood is: I have to answer these. I don't want to spend any extra time on email app.

When I get the newsletter, it's a consumption mindset.

Mixing attention and consumption model makes newsletters so off-putting.

bradellis, to random
@bradellis@hachyderm.io avatar

Not sure if ya'll have played with Rive, but it's a highly capable animation app. Think Lottie but with bones, interaction, and a proper app. This rig has so many clips, z-index shenanigans, and keys to tween, but easily runs at full fps in Chrome.

video/mp4

Ciantic,
@Ciantic@twit.social avatar

@bradellis It is still worse than video for low-powered Android. I have Samsung Galaxy A10 (still current and updated) for testing, and scrolling a page with Rive runtime animations is still very laggy.

But there is no lag at all when scrolling the page with a video-element of equivalent quality of animation.

I prefer video-element for web animations for that reason, those are very well optimized even by low powered Androids.

Ciantic,
@Ciantic@twit.social avatar

@bradellis We tried SVG and Canvas based renderers last year. Both fails to work with Galaxy A10 spectacularly, crashes and yankiness.

In the end we did a solution that is a bit annoying: For Safari based browsers we are sending SVG animations, and every other browser video eleemnts.

Reason is that there is no way to tell from user agent if Android device is simply low powered or high-end. Because low powered Android devices still has recent Chrome version.

Ciantic, (edited )
@Ciantic@twit.social avatar

@bradellis Never tried APNG 🙂

I think videos are easy for cheap Androids because hardware decoding is so efficient, and already pretty well battle-tested, hard to beat it.

That said, SVG animations do work when used sparingly. Scrolling will be slightly worse with SVG, even just static big SVG images cause problems for some reason. It all depends on how heavy SVGs one does.

Ciantic, to random
@Ciantic@twit.social avatar

local timeline, Andy @ihnatko has enabled Threads' Fediverse federation! Give that a follow as he most likely will be using that account more than his Mastodon one.

dummdidumm, to random
@dummdidumm@fosstodon.org avatar

The VS Code editor label customization is now live! If you want to have a better name for all your +page.svelte files, now's the time to do it

https://code.visualstudio.com/updates/v1_88

Ciantic,
@Ciantic@twit.social avatar

@dummdidumm You can also now open individual editors in new windows apparently! That's what I've been waiting for.

simon, (edited ) to random
@simon@simonwillison.net avatar

If I have a JSON API that's protected by "Authorization: Bearer XXX" API tokens, what are the arguments against sticking these headers on it?

Access-Control-Allow-Origin: *  
Access-Control-Allow-Methods: GET, POST  
Access-Control-Allow-Headers: Authorization  

I want users of my API to be able to access it via JavaScript from any host

The best argument I can think of is that it may encourage people to leak their private API token in publicly visible HTML documents, anything else?

Ciantic,
@Ciantic@twit.social avatar

@simon I don't think CORS is real security, Mastodon has no CORS restrictions and things are going just fine. If you write a native app the CORS does nothing to prevent access.

I believe CORS was invented to prevent alternative web UIs for big apps (e.g. Gmail).

CodenameTim, to django
@CodenameTim@fosstodon.org avatar

Saturday morning #django package idea:

A tool that allows you to rapidly test and compare various indexes against a queryset or known view.

It then would configure the db, and run the queryset, store results, run explain analyze, store that, move onto the next and do the same, then at the end present and annotate the results.

Ciantic,
@Ciantic@twit.social avatar

@CodenameTim MSSQL automatic tuning has been great also. It can analyze live DB and suggest indexes.

Doing it manually of course is prudent, but often forgotten.

Ciantic,
@Ciantic@twit.social avatar

@webology @ryanhiebert @CodenameTim This popped in HN just today:

https://github.com/supabase/index_advisor

Looks kind of neat also.

silsinn9821, to threads

user with dotted username (an impossibility in vanilla ) spotted in the wild federating with a instance (namely, Voskey)! So, does this mean Misskey can handle dotted usernames & thus can further do what ?

Ciantic,
@Ciantic@twit.social avatar

@youronlyone @silsinn9821 You are correct. Even *@example.com is valid.

"The userpart consists only of Unicode code points that conform to the PRECIS IdentifierClass specified in [RFC7564]."

"Code points in the range U+0021 through U+007E, i.e., the (printable) ASCII7 ("K") category defined under Section 9.11. These code points are "grandfathered" into PRECIS and thus are valid even if they would otherwise be disallowed according to the property-based rules specified in the next section."

davew, to random
@davew@mastodon.social avatar

Understanding AP and RSS

I've been trying to figure out what ActivityPub does that RSS doesn't.

Off the top of my head, it's not the ability to syndicate, RSS already does that. I can follow anyone on any server.

I think it's the timeline? And the ability to delete posts. Keeping all that in sync is a lot of work, and presumably a lot of traffic?

Also replies. If I reply to a post when viewing it on another server, the reply should show up under any other view of that post.

What else??

Ciantic,
@Ciantic@twit.social avatar

@davew They could've implemented the outbox as an RSS feed. Outbox has accessible URL like

https://mastodon.social/users/davew/outbox?page=true

Instead it has own new format.

Ciantic, to unity
@Ciantic@twit.social avatar

I've been modding Cities Skylines 2, and learning Unity at the same time. Boy Unity documentation is lacking! Lot of enums etc, has no descriptions etc. When to manually clean memory is still mysterious to me. I've discovered I can use Texture2D.Destroy, but not sure do I have to e.g. after calling GetPixelData because it says the memory is temporary, but not sure how temporary it is!

Ciantic,
@Ciantic@twit.social avatar

Worst part is that 's own documentation may have memory leak. It's not calling Texture2D.Destroy at all!

https://docs.unity3d.com/2020.1/Documentation/ScriptReference/Texture2D.GetPixelData.html

This just plainly misleads users. In normal C# you don't need to call Destroy or Dispose yourself, the language does it for you. But I think this snippet is leaking memory each time it's Started:

Ciantic, to react
@Ciantic@twit.social avatar

"The list of all reactive values referenced inside of the fn code".

When you ask for a programmer to provide list of variables they used inside a function call for the second time, it should raise a red flags!

I'm too spoiled by signal frameworks. Pains of React.

markgurman, to random
@markgurman@mastodon.social avatar

NEW: Apple is exploring home robotics as a potential Next Big Thing after its car project has fizzled. Inside work on a robot that follows you around, a table-top robotics device and more: https://www.bloomberg.com/news/articles/2024-04-03/apple-explores-home-robots-after-abandoning-car-efforts?utm_medium=email&utm_source=newsletter&utm_term=240403&utm_campaign=author_19842959&sref=9hGJlFio

Ciantic,
@Ciantic@twit.social avatar

@markgurman I'll be damned, are they reading my mind? I was joking about that in the aftermath of Car news.

I was joking that they should do HomePod with hands, it would sell!

Ciantic, to vscode
@Ciantic@twit.social avatar

is very slow on search replacement, I'm removing a single line from 3600 different files and it takes several minutes.

siracusa, to random
@siracusa@mastodon.social avatar

Console makers may have given up on controller ergonomics innovation, but people are out there still trying to climb that mountain. 🫡 https://youtu.be/Ug06dhahqg0

Ciantic,
@Ciantic@twit.social avatar

@siracusa I would be more excited if they came up controller that is better than mouse for FPS games.

I've never understood controllers for FPS games, as they are inferior to the mouse. It's like running with your hands, I guess it's doable, but it's not the best we can do.

Ciantic,
@Ciantic@twit.social avatar

@tal @siracusa There is no doubt that on an individual level controllers are better to some, but it's not so in competitive FPS games. It's tough to find a professional Counter-Strike player who would prefer a controller instead of a mouse.

If someone comes up with a better input device, we will see it in those competitions, but it hasn't happened yet.

matt, to random
@matt@isfeeling.social avatar

Another "Threads federation UI oddity" is that if you follow two people on Threads and they reply to each other, those posts show in Mastodon as you'd expect, however they are not clearly displayed as replies in the home feed.

Apps like Mona with the "Show Threads on Timeline" setting resolve this quite nicely though.

So they are replies that Mastodon understands, but I guess because the usernames being replied to don't show in the post text they don't look like it?

Example in Ivory, there is no indication that this post is replying to someone else
Example from Mona with inline replies and it looks right.

Ciantic,
@Ciantic@twit.social avatar

@matt I prefer not showing the usernames when replying. The ActivityPub doesn't require it shown in the text content like Mastodon does it.

Ciantic, to VisualStudio
@Ciantic@twit.social avatar

When will Visual Studio branding let go of that year at the end? For instance latest community version is branded "Visual Studio Community 2022", when you go to the settings dialog it shows that, and it's also shown on their web page. They could just use the version number, which right now is 17.9.5

Having that year at the end makes me wonder if I have the latest version or not, but yes I do, they just don't bother to change the year.

#VisualStudio #dotnet

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