Posts

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

me, to random

So, last I checked you could still buy PCB mountable sockets for them, bit does anyone know if anyone's still manufacturing NES-compatible controllers?

me, to random

All bluetooth audio devices should be required to have a button on them to disconnect and re-enter pairing mode without the device they're connected to relinquishing control.

me, to random

To those who argue "my VPN can't track me because I pay them in bitcoin":

You know they have your IP address, right?

RL_Dane,
@RL_Dane@fosstodon.org avatar

@me

Well, maybe if you...

Haijo7,
@Haijo7@snac.haijo.eu avatar

there is a vpn service that recommends people to connect to the vpn though tor

me, to random

What if the reason we've never seen a time traveler isn't because it's impossible, but because humanity is going to wipe itself out before anyone figures out how?

me,
18+ RL_Dane,
@RL_Dane@fosstodon.org avatar

@me

I could live with that alternative XD

me, to rust

Building a small personal project in to teach myself the language. As I was looking over my code, I noticed a mistake I'd made that technically worked, but was kind of silly so I fixed it.

This got me to wondering if Rust had a linter (it does) because surely I'd made other similar rookie mistakes. I found the linter and ran it on my project. It came back with one result that I already knew about: a value in a struct that doesn't get read because I haven't written that code yet. That was it.

I was surprised. It's still a very small project, but perhaps I'm a more competent developer than I give myself credit for.

jpm,
@jpm@aus.social avatar

@me (psst, there’s 2: cargo clippy is the other one)

me, to rust

Newbie question time:

I wan to use the current_local_offset function from the time library, but I apparently need to import it into my project with the local-offset feature.

I assume I need to specify this in Cargo.toml but for the life of me, I can't figure out how. Can someone point me in the right direction?

underlap,
@underlap@fosstodon.org avatar

@me Have you tried something like the following?

time = { version = "0.3.36", features = ["local-offset"] }

me, to random

Story time:

I've been holed up in the (home) office for most of the day (not uncommon). I happened to look out the window and noticed that our building was surrounded by cops.

Interesting.

Turns out they arrested one of the downstairs neighbours... for what, I don't know.

Here's the interesting bit though: apparently, the landlord offered them the key to the apartment, but they couldn't legally use it because there was no warrant. I guess that makes sense, but while they weren't allowed to to that, they apparently were allowed to enter the apartment by prying a window open or kicking the door in. In what world does that make any sense?

me,

@hypolite I try not to attribute malice, but that does seem to satisfy Occam's Razor.

hypolite,

@me My actual guess is that it's easier to justify forcefully entering the apartment because there would be some "safety concern" if you actually entered forcefully.

me, to rust

People who don't like : why specifically don't you like it?

I'm in the process of learning it now. There are definitely some things about the language that I can see some as finding irritating (i.e.: the borrowing system). Personally though, I'd rather have a dozen complie-time errors than a single runtime error. This is the reason I tend to gravitate towards Haskell, for instance.

It's certainly not the right language for everything, but if you want better safety in code that needs to be highly efficient, it seems a reasonable alternative to C/C++.

me,

Found my first point of irritation. Crates.io requires a GitHub account.

I have one, but I don't like to use it.

That said, creating a crates.io account seems optional-ish...

underlap,
@underlap@fosstodon.org avatar

@me Have you seen this (locked as too heated!) issue which describes the current, long-standing state of affairs? https://github.com/rust-lang/crates.io/issues/326

me, to rust

Taking another crack at learning (sorry @screwtape ).

ekuber,
@ekuber@hachyderm.io avatar

@me @screwtape when I first looked at rust, the concepts in the docs made sense but writing code was difficult. I put it down for 6 months and when I came back the curve was more natural. I think there's just a necessary bake period for the consequences of the simple concepts and their interactions to become intuitive, practical, applicable patterns. Main piece of advice I'd give is "keep calm and call clone". It will look "inefficient", but it will get you unstuck to learn the rest of the lang.

underlap,
@underlap@fosstodon.org avatar

@ekuber @me @screwtape Do you still find it necessary to use clone a lot? I resisted -- not on the basis of efficiency, but wanting to understand the language's approach to handling memory -- and found it wasn't often needed.

So, options for newcomers include:

  1. The "steep route": avoid cloning until you learn to work "with the grain" of the borrow checker.
  2. The "gentler route": clone liberally until you're comfortable with the rest of the language, and then try to understand ownership.
me, to foss

Just pushed two pull requests to . I love that gives me that option rather than just begging the vendor to fix something.

me, to random

Today while I was out, I saw a guy at a busy intersection holding a handwritten sign. Obviously, I assumed he was panhandling, because people frequently do that there.

As I approached, I saw that his sign only had a URL on it. Out of curiosity, I visited it. Turns out it was some bitcoin mining scam.

While this was definitely a novel marketing approach, I wonder how they figured this particular tactic would instill confidence in anyone...

me, to infosec

Sitting in a waiting room in a medical imaging place and they have an ad for their app to get your results on a mobile device. Among other things, it reads:
"Permanently store them with bank level encryption" (emphasis theirs)

In my experience, if banks are their gold standard of , I really don't want my medical data anywhere near this system. Just sayin'.

adamsdesk,
@adamsdesk@fosstodon.org avatar

@me I would agree. Banks are not good at security in my own experience.

me, to random

Words I never thought I'd say while making a coffee: "hang on, I'll get the pliers."

me, to random

I have a complaint about #C.

I don't like that a literal 0 is accepted as a null pointer. I just spent an embarrassingly long time tracking down a segfault because in an attempt to zero out a buffer, I accidentally used memcpy(&buf, 0, sizeof(buf)) instead of memset(&buf, 0, sizeof(buf)).

The compiler should've been able to catch this.

m00dy,
@m00dy@mastodon.sdf.org avatar

@me This was a specific design decision, not due to lack of ability to implement a warning around. You can use acid(1) on the broken proc to get the exact source line that the code crashed on. Which can help narrow down the cause of a segfault.

me,

@m00dy then I suppose my complaint is with C itself. ;)

me, to random

Katy and I have made the trek out to this little place downtown Kitchener almost every Sunday for the past several months now. Every time we do, We're once again shocked at how good it is. You'd think we'd have just gotten over it by now, but not so.

bobjonkman,
@bobjonkman@mastodon.sdf.org avatar

@me

Name names! Good places deserve the recognition.

(and how else are the rest of us in @waterlooregion supposed to find it?)

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