@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.

Ciantic, to random
@Ciantic@twit.social avatar

#TWiT 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

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.

silsinn9821, to threads

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

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!

#Unity

Ciantic,
@Ciantic@twit.social avatar

Worst part is that #Unity'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.

#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

#VSCode 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.

Ciantic, to CSS
@Ciantic@twit.social avatar

Really not a fan with min-width: 0 and width: 0 tricks to get flexbox behave. Sometimes just min-width 0 works, now I needed both width 0 and min-width 0. There is nothing intuitive with those.

#CSS

Ciantic, to citiesskylines
@Ciantic@twit.social avatar

Cities Skylines 2 lackluster launch can be mostly attributed to the growing pains of a small studio.

It was probably never possible for a small studio like Colossal Order to deliver a fully functional successor from scratch when they were adding features for 10 years CS1 in parallel.

The only way it would've worked was if they could have used the same code in CS2. But clearly, they weren't able to, as it's missing most of the DLCs they built for CS1.

Ciantic,
@Ciantic@twit.social avatar

@frabcus It feels and plays like an early-access game. It was not marketed that way and that is a big problem. It raised the expectations through the roof, which is the issue.

However, I do think they will recover, as there is no competition. AAA studios are busy making their FPS games, and the simulation genre seems to be a niche.

I think they wrote a deal with Paradox to deliver it by X-date, and can't admit it was unfinished to not break the contract. Making communication very awkward.

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

poll: if you use git stash, do you use git stash pop or git stash apply to retrieve your code from the stash?

Ciantic,
@Ciantic@twit.social avatar

@b0rk I'm sometimes more paranoid and do this:

git diff > ../important.patch
then later
git apply ../important.patch

The problem with stash for me is that I haven't bothered to figure out how it works, but it's easy to understand patch files. They don't get wiped unless I delete.

Ciantic, to random
@Ciantic@twit.social avatar

What would this sound like if it could be played?

samhenrigold, to random
@samhenrigold@hachyderm.io avatar

alright it took the better part of my weekend but I finally back-ported Mastodon to iOS 4

The full-res mockup. The nav bar has texture, avatars are sunken into the post card, everything is correct

Ciantic,
@Ciantic@twit.social avatar

@samhenrigold Skeumorphic Mastodon! More tusk and fur!

al3x, to macos
@al3x@hachyderm.io avatar

Nobody tried yet the AltTab app? https://alt-tab-macos.netlify.app

I have installed it a couple of days ago and it’s proving great.

Ciantic,
@Ciantic@twit.social avatar

@al3x Nice. It looks like it is better than Windows' own, judging from its settings screenshots.

Ciantic, to threads
@Ciantic@twit.social avatar

Can confirm that I was wrong. #Threads posts are searchable! There seems to be some delay (?), now I can see @zuck's first post in the search results using twit.social, but not in #mastodon.social, it must be server-dependent when they start to appear.

timbray, to random
@timbray@cosocial.ca avatar

My reading of this is that for this (truly horrible) attack to get you, you'd need to run an app in which it's embedded for an extended period of time on your computer. So the bad guys could hack me if I downloaded an app from a sketchy source (unlikely) or they managed to hack any one of Adobe or Mozilla or Microsoft Office or Chrome or Safari or Apple Music or Emacs or YouTube or or or … (less unlikely).

https://mastodon.social/@arstechnica/112134209593616346

Ciantic,
@Ciantic@twit.social avatar

@timbray It seems like a difficult thing to do. It is still something to keep an eye on because some of the other side-channel attacks not related to Apple's chips have been demonstrated with JS or WASM code.

bradellis, to random
@bradellis@hachyderm.io avatar

When someone asks me where an icon, or something small is in Figma, I search their username, open the document they're actively in, find their cursor and just paste it underneath. Creepy? Yeah man, but also so much easier than describing a whole ass file structure + 2D location.

Theoretically you'd be able to comment and notify, but it's too easy to miss.

Ciantic,
@Ciantic@twit.social avatar

@Gte @bradellis I just furiously click on elements until it shows the font sizes etc. Usually, it works, sometimes I have to move cursor by one pixel and repeat.

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