peyremorgan

@peyremorgan@infosec.exchange

Freelance software engineer. Working mainly in the transportation industry, in mentorship and team leadership roles. I help teams and individuals find the tools and practices that lead to enjoyable work and great products.

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

FlorentPoinsaut, to random French

Est-ce que quelqu'un a trouvé une bonne idée pour cacher ces @%&€%# de prises électriques éclairées dans les couchettes des trains de nuit ?
J'en suis à me demander si ne vais pas devoir faire mon premier projet d'impression 3D...

peyremorgan,

@FlorentPoinsaut c'est dans mes projets aussi... j'ai mesuré ça, à la louche :

diamètre interne 39mm
profondeur 15.8mm
bordure 2.5mm

maintenant il faut que j'apprenne la modélisation 3d..

peyremorgan,

@FlorentPoinsaut sinon il y a toujours le gaffer... j'ai testé cette semaine, ça marche très bien (mais ça condamne la prise)

Lana, to random
@Lana@beige.party avatar

My phone, trying to figure out how many tabs I currently have open:

"98...
99...
Fuck if I know :D"

image/png

peyremorgan,

@Lana Firefox Mobile can't count to 100 either 😁

mcfadden, to random
@mcfadden@mastodon.social avatar

Had to revisit this nearly 5-year-old comic to make sure I didn't repeat any Boeing 737 jokes this week. https://brianmcfadden.org/2019/03/23/boeing-737-max-8-safety-guide/

peyremorgan,

@mcfadden FIVE YEARS? oh, how time flies! unlike, uh... some planes.

dev, to random
@dev@discuss.systems avatar

It is my B'day! Please reply with a cat.

peyremorgan,

@dev Happy birthday!

blackdeth, to threads

Help me out here..

#x is dead, never really posted there anyway

is blowing up but it's tied to your meta social medias so it doesn't have that separate feel x had

is nice but the feeds are.. confusing. I feel like I'm looking around aimlessly trying to find discussions I like. There are is also so much furryposting

feels amazing. Feels like home. My issue is that it doesn't feel active. How do I improve my feed?

Thanks!

peyremorgan,

@blackdeth write an post, use lots of hashtags in it, follow them all 🙂

stethewwolf, to Matrix

I am looking for a good server where I can create my user.... any suggestions ?

peyremorgan,

@stethewwolf There's a server list at https://servers.joinmatrix.org if you're looking for something independent from matrix.org

britter, to Matrix
@britter@chaos.social avatar

Any recommendation for a matrix home server? Does it matter? Or should I just go with matrix.org?

peyremorgan,

@britter I've heard Mozilla has a homeserver. Don't know much about it but it could be worth checking out.

peyremorgan, to random French

the Windows Terminal finally supports tab tear-out and transfer between windows ! this makes my life so much easier 😍🤩 MASSIVE thanks to the people who worked on this!

peyremorgan,
lil5, to typescript
@lil5@fosstodon.org avatar

In there are times when the the browser declaration lib.dom.d.ts is in my opinion too strict:

> Passing an invalid ID to clearTimeout() silently does nothing; no exception is thrown.
https://developer.mozilla.org/en-US/docs/Web/API/clearTimeout

And yet the declaration files only allow a number for clear timeout, while in the browser it works perfectly fine if I do: “clearTimeout(null)”.

peyremorgan,

@lil5 @evrys Sorry, meant to reply later in the day and forgot 😶

The browser will always be way more lenient than the type system, and that's by design.

The browser is on the side of the user, and will do whatever it takes to produce a usable web page. That means ignoring mismatched HTML tags, JS errors, etc...
By the time the page source hits the engine, the developers are likely too far away (in both space and time) to do anything about these errors, and you would just be punishing end users by being too strict at runtime.

The TS compiler on the other hand knows it's talking directly to the dev, and can be arbitrarily anal about typing, syntax errors, etc...
In fact it has to be, since its job is to protect developers from their own mistakes.

Let's take clearTimeout(myVar) as an example (where myVar can be null).
At runtime : no big deal. let's just ignore it. the user probably would rather have a semi functional web page than an error message they can't do anything about.
At compile time : tsc has to warn you. You gave the type system conflicting information about your variable, so it has to assume it's a bug. Maybe you forgot to setInterval somewhere. Maybe you didn't think about some edge case or error condition. Or maybe it's completely fine. But this is the only chance the compiler has to tell you "look, what would happen if myVar was null here?"

peyremorgan,

@lil5 @evrys You have to tell the compiler that you either thought about it, or don't care.

"I though about it":
if(typeof myVar == "number") clearTimeout(myVar)

"I don't care":
clearTimeout(myVar!)

lil5, to typescript
@lil5@fosstodon.org avatar

I see people religiously abstaining from the any keyword, and as always being overly pedantic in code is a bad thing:

For example;
let arr = [1,2,null]
let Narr: number[] = arr.filter(n => n !== null)

This would fail tsc without adding “as any as number[]” at the end

peyremorgan,

@lil5 you can solve this with a custom type guard in your filter predicate:

let arr = [1, 2, null]
let Narr: number[] = arr.filter((n): n is number => n !== null)

CarbonBubble, to random
@CarbonBubble@mastodon.energy avatar

Over the past decade, Teslas have gone from being the car of the uber rich to the car of the Uber driver. All the major automakers are now taking the plunge on , which is driving down prices & expanding options 📈https://www.bloomberg.com/news/articles/2023-10-05/-it-s-done-the-future-is-battery-powered-electric-cars

peyremorgan,

@CarbonBubble That opening sentence is pure gold, props to whoever wrote that 🤩

BasicAppleGuy, to random
@BasicAppleGuy@mastodon.social avatar

If you're left with piles of Lightning cables after tomorrow, consider donating those you don't need to a nearby shelter - they're a hotly sought-after item for people there. 🔌

peyremorgan,

@richaesthetic @BasicAppleGuy looks like you've fallen for Apple's marketing bullshit. The environmental impact of a charging cable is minimal. Buying a brand new phone every year however...

SwiftOnSecurity, to random

Tell me something only minorly interesting.

peyremorgan,

@SwiftOnSecurity the bridges pictured on Euro banknotes don't actually exist, they're all imaginary.

golgaloth, to random
@golgaloth@writing.exchange avatar

Deer deliver in the strangest of places! If you find a fawn in your yard, leave it alone, do not touch, move or feed it. They have no scent and predators cannot find them unless humans interfere. Mom leaves during the day for 2 primary reasons: to feed, and to keep her scent away. Mom will return, but not until dusk and not if humans are around. If you discover the gift of a fawn enjoy the experience, and let the Mom do what comes naturally. Please share, thank you.

peyremorgan,

@golgaloth Now that's an unexpected front porch delivery 😁

dgold, to random

fucking knew since day one that there was something off about the entire matrix-chat thing, from the list of sponsors to weird vibes from the founders and leaders of the project.

their software is about the only thing that’s worse than their politics. still appalled that people like moved their entire communities into the hands of such awful people.

peyremorgan,

@dgold OOTL. What happened?

peyremorgan,
aakselrod, to internet

There's one main thing I like about , , , and the in-development P2P-ified over and Matrix as they're generally deployed now: your ID doesn't depend on DNS.

I've not been in the Fediverse very long, but I've already seen people lose their entire social graph because an admin unilaterally took down an instance. When you tie your identity to DNS, you're at the mercy of the domain owner and every point of control over the DNS as a whole, including the court systems in every authoritarian jurisdiction. Not your keys, not your identity.

I like the admins of my instance here, but I see the toll it takes on them running it even with the community's contributions. It's a lot of pressure and a lot of power to have that much control over identity and trust for your users.

I don't think we have to wholesale move to other protocols, though. The beauty of open networks is the freedom to build bridges. When people do migrate between them, it can and should be as smooth as migrating between ActivityPub instances in the happy path, and remain fully interoperable.

peyremorgan,

@aakselrod I have good news for you! You can alias your Mastodon account by hosting a single static file under a domain you control: https://dev.to/dlion/how-to-create-an-always-up-to-date-alias-for-your-mastodon-account-21gj

OmniscientOrb, to random
@OmniscientOrb@beige.party avatar

I am piloting a giant robot bug into your city soon I will hold you all captive in my metal mandibles

peyremorgan,

@OmniscientOrb Thanks for the heads up

kentborg, to hamradio

It seems wrong that the vibrate on my wife's phone, when a text comes in, is SOS.

r

peyremorgan,

@kentborg Are you sure it's not "SMS"?

peyremorgan, to programming

Hi! I'm Morgan, a engineer living in western . I work as a lead developer, with an increasing focus on the involved in making software. I'm also pursuing a degree with the aim of becoming a better designer. When I write code I use and but i'd like to go back to someday.

I also love (yes, all of it)! Share your favorite song with me! 🎶 I'm learning how to play and might dip my toes into in the future.

I've been interested in decentralized tech like and for quite some time. And I still hold a tiny bit of hope that might yield something good eventually (but I don't have a pyramid scheme to sell you I promise).

Also I drink way too much .

Extra keywords that didn't fit nicely into the prose:

peyremorgan,

@damngoodtech
Well, I've been in a metal band for a short while if you're into that sort of thing...
https://youtu.be/1Iq3g80A90Q

peyremorgan,

@damngoodtech wow, the shiny sparkly arrangements... they're so good. I love it. I'll have to give it a proper listen with headphones later 🙂 thanks for sharing this! 😊

peyremorgan,

@damngoodtech and if you were asking for one of my favorites, here's one I've been listening to a lot recently :
https://youtu.be/WNeLUngb-Xg

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