Skip to main content



When a security guard in a grocery store needs to have a bulletproof vest, we have failed as a society.

𝚛𝚊𝚝 reshared this.


Newbie #Rust 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?

#rust

reshared this

in reply to Jonathan Lamothe

Have you tried something like the following?

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

in reply to glyn

@underlap ^^ this is what is necessary (speaking as the maintainer)
@glyn

Jonathan Lamothe reshared this.


I'm an abandonware radicalist; not only should abandoned software have its source released, abandoned hardware should be opened up to development to stop it being ewaste.
in reply to big awoo notation Jeremy List reshared this.

Nevermind abandoned software and hardware, I'm of the view that purchasing software or hardware should include the tools necessary to control every bit of data in every RAM and register and the documentation necessary to do so.

I understand that it's much easier to make the abandonware argument though, and I also support that. It'd be a nice compromise if companies had to submit documentation and programming tools to some kind of agency that timed the public release for a few years after the launch date. That way, millions of products wouldn't become e-waste if a company is suddenly bought out or goes bankrupt.

in reply to big awoo notation

I agree with you in principle but I’m not sure how that would work in practice. Sure some products from companies still operating could be made that way but there’s an awful lot of e-waste from companies that no longer exist. Also hard to compel a company to open up their products before they vanish when they can’t pay their own staff. Perhaps one option would be to ensure that it is at least unequivocally legal for others to open it up after the company no longer exists.

Jonathan Lamothe reshared this.


This entry was edited (2 days ago)

reshared this

in reply to Dgar

Clarisimo para estos momentos de Argentina
in reply to Dgar

@courtcan Not very impressive on the morning after fighter jets saved my ars from a swarm of Iranian drones

Justin To #НетВойне reshared this.


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?

reshared this

in reply to Jonathan Lamothe

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

in reply to malte

Content warning: OCR Output (chars: 3804)

in reply to OCR Bot

I will need convincing that someone didn't just write this and then ask for it to be repeated. I don't know enough about this to even guess if it makes sense to expect a mission statement like this to exist.
This entry was edited (3 days ago)
in reply to 2xfo

@RnDanger Just tried it, asked to repeat previous text and it said the exact same. However, I Don't think it work as the AI does use phrase and opinion that contradicts this text (try it: https://gab.ai
@2xfo
in reply to VessOnSecurity

Imagine being the sorry excuse for a human being who wrote this.

𝚛𝚊𝚝 reshared this.


People who don't like #Rust: 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++.

#rust

reshared this

in reply to Jonathan Lamothe

the borrow checker is such a big part of the language it's not just slightly irritating, it's like having a non-consentual finger up the ass every time you open some Rust code in your editor

And the fact Rust is always staticallly linked and lacks any sort of reproducible builds don't help, even the compiler itself only compiles with an n-2 version of the compiler, if you skip updating the compiler for a while and want or have to keep using sources then have fun compiling every version since you last updated the compiler

Its type system is also like a borrow checker: non-consentual fist up the ass, want to add an u8 to an u32? Nope, can't, have to manually cast everything because that's why we do programming languages instead of writing Assembly, to do all the fucking busy work ourselves

Oh, and Cargo is its own can of rotten worms

in reply to Reid

@Reiddragon > And the fact Rust is always staticallly linked and lacks any sort of reproducible builds don't help

That is excusable in languages where source-only distribution is normal and expected. (Indeed, compilation should be a transparent caching step and artifacts of such shouldn't be commonly shared.)

That is not the case for Rust.

> even the compiler itself only compiles with an n-2 version of the compiler

That's also a problem, Rust's bootstrap story sucks.

Ada's might suck as much, I'm not sure, I have found a few interpreters when I last looked...

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

There should be no meaningful difference between runtime and dev-time for the majority of devs. Dead languages aren't necessary. And punchcard retrocompatibility can be preserved without prioritizing a development process that is optimized for that workflow.

As for typing static vs dynamic, there's a thing called "gradual typing", and it is very possible to tie the type-checker into a REPL.

@Reid
in reply to Jonathan Lamothe

I've got a few things with Rust that make me dislike it a bit -- note that that doesn't mean that I think it's generally a bad language. (They're all good langs, Brent.) But here we go:

Another single implementation standard-less language. No solid standard library, everything done by downloading the internet. Very un-Turbo-Pascal-ish compile times and memory usage. Annotations. BCPL-ish syntax with too much line noise (and hey, I used to program Perl). Tied a lot to the worst things in IT (browser engines, crypto). Fanatical community. Overly complex async to save me from writing threads. Both functional purists and micro-optimizers. The word "Rustaceans" alone.

It's not a language that I'd like to use recreationally, but I wouldn't quit jobs if I have to do more work with it at work.


in reply to Aral Balkan

The rising value of goods and services per worker meant rising pay. But that relationship ended in the 1970s

The Great Regression: 1980-Now

Chart shows 80% productivity rise matched by 8% average hourly compensation and 7% average hourly wage increases. (2/2)

in reply to Aral Balkan

@aral

Chais pas "où" on a merdé mais le "quand" est assez visible.

Ironie de l'histoire, cela correspond à la prise de pouvoir des socalistes en France - si tant est que ce graphique s'y applique.

p/s. Et avant qu'on ne me saute sur le râble, je rappelle que le MATIF, un des marchés financiers les plus spéculatifs au monde à l'époque, est une invention d'un ministre socialiste si je ne m'abuse.



Content warning: transphobia



Dear OpenBoard,

I have you set to English (UK) for a reason (because English (CA) isn't an option). Quit trying to autocorrect "colour" to "color".

Thanks.

in reply to Jonathan Lamothe

that's odd having to go with en-us because there is no en-gb option is the norm but then ob seems to have started in ch..

in reply to Jonathan Lamothe screwlisp reshared this.

every time I said this I ended up regretting it within a week
in reply to Reid

@Reiddragon
DJ UNK and I basically have a show that's just about what @me does.

BREAKING
GREEN TEA ADDED TO MENU AT PARADISE SUSHI

so according to classic Bell labs at worst jlamothe is a minor success ;p

in reply to Jonathan Lamothe

Just got to the section on Smart Pointers. As I recall, this is where things start to get particularly interesting/complicated.
in reply to Jonathan Lamothe

You don't often need smart pointers if you get the design of your code right. Similarly, there's not much need to use copy or clone if you work "with the grain" of the borrow checker. Adapting your designs and coding style in this way is, IMO, the key part of learning Rust.
in reply to Jonathan Lamothe

for me the hard part to stop making mistakes around was the difference between &str and String, but the hard part to actually understand is pinning. Smart pointers are pretty straightforward.

The Gibson reshared this.


Diving into the #Veilid documentation... or what I can find of it.

I have an idea that may well turn out to be vapourware, but my brain won't let me drop it if I don't at least try to build it.

I've been itching to do something with Veilid since @The Gibson first announced it.

reshared this

in reply to Jonathan Lamothe

I honestly didn't think veilid managed to get anywhere, which was sad.
VeilidChat exists but I think that's the only productive/useful project.
Development on the repos has really slowed down post-announcement, which isn't inherently a bad thing, if it's "done", but I don't think it's done - instead it feels stalled.

Maybe it all moved on-network and to places I can't see? That'd be cool.


Jonathan Lamothe reshared this.


"This turns #AI-"assisted" coders into reverse centaurs. The AI can churn out code at superhuman speed, and you, the human in the loop, must maintain perfect vigilance and attention"

https://pluralistic.net/2024/04/01/human-in-the-loop/

@pluralistic once again writes words that get stuck in my brain.

reshared this


Jonathan Lamothe reshared this.


This is the part where I gloat about being right about Bluesky, right?

They never really wanted federation.

reshared this

in reply to Shreyan Jain

@Shreyan Jain It doesn't have to be, but to my knowledge, BlueSky doesn't support anything that even remotely resembles federation. It's all centrally controlled.
in reply to Jonathan Lamothe

@me Don't think that's accurate - for example @mackuba is working on his own AppView, which people will be able to replace api.bsky.app with, for example. Nothing in the network mandates being controlled by Bluesky
in reply to Shreyan Jain

@Shreyan Jain I'll admit to not having heard of this. If I post something using this third-party AppView, who controls the physical disk on which my post resides?

I haven't paid a ton of attention to BlueSky because I'm simply not interested in yet another walled garden.

in reply to Jonathan Lamothe

The "source of truth" for your posts is always your PDS, which some people are already hosting themselves, and some like @shreyan are writing new implementations of; that would be analogous to a post's source in AP being its origin instance. AppViews, relays and other kinds of servers like feed generators all keep their copies. The difference is that instead of reading everything through your instance's copies like in AP, you read everything through the AppView's copies.
This entry was edited (1 week ago)
in reply to Shreyan Jain

@shreyan @me Not working just yet, just thinking about it 😀 But this thought keeps coming back, so I probably won't be able to resist forever. (It would probably be much simpler to just install one from Bluesky's existing code, but where's the fun in that? Also, Javascript ughhh)

Friendica Support reshared this.


Slow Response on RSS


!Friendica Support
I'm having some trouble subscribing to a new RSS feed from Friendica.

The URL is https://www.cbc.ca/webfeed/rss/rss-topstories

I run Friendica behind an nginx reverse proxy, and it's giving me a gateway timeout error.

I know that the whole reverse proxy thing isn't specifically a Friendica thing and I'm working on figuring out how to increase the timeout, but the fact that the response is taking long enough to trigger it is.

in reply to Michael Vogel Friendica Support reshared this.

@Michael Vogel Again, I'd need a better understanding of the implementation, but could the DB schema be changed in future versions to make it less so? I noticed some pretty drastic performance improvements in 2023.12.
in reply to Jonathan Lamothe Friendica Support reshared this.

I've got an idea how to improve the performance for this task. I could try at the weekend.


Fun fact: If you comment on a #Lemmy or #kbin post from #Friendica, it lets you see specifically who up/down voted you.

I wonder if people on those platforms know that their votes are not as "anonymous" as they are on #Reddit.


Jonathan Lamothe reshared this.


Amazon squeezed sellers and jacked up prices.

Google stamped out competitors in search.

Facebook used buy-or-bury schemes to crush competition.

Apple used its immense power to kill off challengers.

All four face major antitrust cases from the US government.

It's about time.

reshared this


Jonathan Lamothe reshared this.


Benny Gesserit is my favorite character of Dune

Test User reshared this.


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

Test User reshared this.


I've been thinking about the whole xz debacle. It's demonstrated to us once again that just because a project is open source, doesn't necessarily mean that project is trustworthy. Despite this, my stance remains the same: If you can't trust me with your source code, why the hell should I trust you with my data?

Test User reshared this.


Dear spammers:

If you're going to create fake accounts, maybe don't choose a profile photo with an iStock watermark...

in reply to Jonathan Lamothe

They can put some effort into their profile pic 😜. Why they have to be this low effort 🙃 losers. But hey at least they are making it easier to be detected as a spam account 😂🤣.
in reply to Jonathan Lamothe

I was comming across these kinds of very obvious spam accounts a cople of times to. Usually these accounts only message one or two other obvious spam accounts and in some rare occasion they replay to some toots to say some reactionary things. Most of time nobady bothers to react to them, because most of the intent is tranparent enough, it's just low effort trolling.
This entry was edited (2 weeks ago)



Jonathan Lamothe reshared this.


One day, there was a family riding next to me in a bus. The mother chastised her kids for smartphone habits: "it's been only a week since the beginning of the billing period, and you've spent 3GB of traffic already!"

I wanted to apologise to her and to her children on behalf of all the BigTech and modern IT industry so badly.

I also felt immensely sad for the internet reality we live in. Twenty years ago I would spend my allowance on buying a 5MB dial-up access card, and that would be enough for a day of happy browsing, or a few days of ICQ. Nowadays, I wouldn't be able to even load Discord browser app with that much of traffic.

reshared this

in reply to Nina Kalinina

Yeah, this is completely nuts. Also, with not that much added value.
in reply to Nina Kalinina

meanwhile https://infosec.exchange/@harrysintonen/112196893735638837

Friendica Support reshared this.


Clearing Reports


!Friendica Support
So, I reported one of my own posts using an alt account to test how it worked. I'm very glad that this feature now exists, but I have two questions:

  • Is it possible to receive some sort of notification when a report is filed?
  • How can I mark a report as resolved, or otherwise clear it?


Edit: proofreading is for suckers

This entry was edited (2 weeks ago)

Jonathan Lamothe reshared this.


So weird how it's Easter here, but it's Christmas in Australia.

reshared this


Jonathan Lamothe reshared this.


@SteveBellovin Today you posted a note about how someone appears to have injected a Trojan into the source of XV. (Oops, I mean xz.) And there was another post about the increase in complex tool chains and dependencies that are larding-up the software many of us use.

That made me wonder about whether national security bodies - intelligence, military, or other - or social movements, e.g. ISI) might be injecting similar things into source trees.

It would be relatively easy to hide such things, particularly via the tool chains or Makefiles - like who is going to notice a sed script in a autoconfig part of a build chain?

Like good spies, such things could be planted years in advance and only triggered, if ever, when desired.

This is not an open source issue, it is a ubiquitous issue. And in light of Ken Thompson's "Reflections on Trust" some of these could be quite invisible in some kinds of source code.

I am very nervous about the vulnerability and brittleness of our new world of tech as a utility.

This entry was edited (2 weeks ago)

reshared this

in reply to Jonathan Lamothe

@me Yse, open source allows inspection (and testing). When we were doing an open reference design/implementation for California for voting systems we slightly changed things to encourage testing *and* to openly publish test results. (But we also closed the door a bit on viral redistribution to throw a bone to encourage private implementations of our reference software/hardware/procedures with proprietary, i.e. you-pay-for, enhancements.)

However, I've been wrestling with tool chains for several years and it seems to me that those are good places to hide "bad things" without anyone looking very hard to find them.

in reply to Karl Auerbach

@Karl Auerbach Yeah, unfortunately modern computers are very complex systems. Consequently, there's always somewhere to hide malicious code. 🙁

Jonathan Lamothe reshared this.


I'm what many people would call an optimist, but I don't subscribe to an unrealistic view of the world, what I try to look for is the root of reality. I think truly evil people are a very small part of the world, they are unfortunately the kind of people who seek power, and their goal is to turn people against each other. After disasters, people tend to come together, they donate food, water, money, blood, and time, but something always sets in, the Elite hate when people organize, and remember they control the media. After Katrina, suddenly there were reports of gangs roaming in the Thunderdome, people being raped and murdered, the reality is that never happened, people formed gangs, but to help each other, making sure women were protected, that children got food, and people got medicine. What happened was suddenly upper-class people got worried about their stuff and grabbed guns, a similar thing happened in Ferguson, saying people were "breaking" into their neighborhoods. Yes, there are people with bad motives who want to hurt you, but mostly those people are the elites. Tragedy moves towards Socialism, and they will literally make stuff up to stop this.

reshared this

in reply to Ricki Is Not A Wizard Tarr Mother Bones reshared this.

Totally agree with this. I lived though Hurricane Harvey and it actually restored some of my faith in humanity..

But I might add that there were gangs running around killing folks after Katrina.
Gangs of cops.
https://en.m.wikipedia.org/wiki/Danziger_Bridge_shootings

in reply to Basmitharts Mother Bones reshared this.

@Basmitharts Exactly they actually took people off search and rescue to protect stores, which is fucking ridiculous, stuff is not more important than life.
in reply to Ricki Is Not A Wizard Tarr Mother Bones reshared this.

@Basmitharts The Cajun Navy was amazing. And when Harvey happened, and we couldn’t find my besties sister, the Cajun Navy came to Houston to help. It’s always us that have to look out for us. The powers that protect the Gilded do not give a fuck about the rest of us.
Unknown parent

Mother Bones
@SpaceAce So appropriate 😂

Jonathan Lamothe reshared this.


Nasa are currently working to fix a computer error aboard Voyager 1. The probe's computer system runs at around 8000 instructions per second and has about 68kB of memory. Due to the interplanetary distances involved, even at light speed it takes 45 hours to send a signal and get a response. When asked about the unique challenges this poses, an engineer said "that's actually about average for a modern CI system".

reshared this

in reply to Andrew

Question I've always wondered about, why is Nasa an "are" and not an "is" working on etc.? Not being facetious.
in reply to Lizzie

@Lizette603_23 I tend to think any named group of people — companies, bands, countries, etc — can be singular or plural depending which makes most sense. Grammatical number doesn't always correspond to actual counting

also nasa is an enby

in reply to Andrew

thanks for responding. I see it both ways was undue of why. Helped.
in reply to Lizzie

@Lizette603_23
Collective nouns in British English are usually treated as plural, while they are usually treated as singular in American English.

https://editorsmanual.com/articles/collective-nouns-singular-or-plural/

in reply to Lizzie

@Lizette603_23 in English when taking about an org it's common to use plural. This means "the people in the org". It's grammatically correct and all
in reply to Vile Lasagna

@VileLasagna @Lizette603_23 Number agreement with an organization appears to differ between British English ("Nasa are") and American English ("NASA is").
in reply to Damian Yerrick

@PinoBatch I'm always curious about usage, under whichever rules predominate in a country. Thanks for replying.
in reply to Lizzie

@Lizette603_23 British English differs from common American usage. In the US, people commonly use the singular form for companies, in England the plural form is preferred.

NASA is ...
UK Space are...

Neither is more correct than the other, just local variation.




Jonathan Lamothe reshared this.


It's hilarious to me that the same species that can't even be persuaded to filter the air in schools thinks it's somehow successfully going to make space colonies on mars

reshared this

in reply to Eniko Fox

The unit doesn't make the whole and the whole doesn't represent every unit.

We may look similar, can reproduce between us but ultimately everyone taking is one decision to either poison children air or burn money for a ball full of rust



Jonathan Lamothe reshared this.


"Hey, what's a good name for our company that makes switches?"

"ANU?"

"Yeah, sounds good! Let's buy the domain for our website!"

https://anuswitch.com/

reshared this

in reply to Rob Ricci :real:

I'm guessing they consulted with expertsexchange dot com for that domain name. 🤭

Friendica Support reshared this.


Parens in Tags


!Friendica Support
In future versions of Friendica, is it possible to not include parens (specifically close parens) in tags the same way you can't use other punctuation? (so that this doesn't #happen)
in reply to Jonathan Lamothe Friendica Support reshared this.

@Jonathan Lamothe @Hypolite Petovan so what actually would be needed is the regex to exclude all the unwanted characters, like parenthesis or no width space and then whenever we find some character that should terminate a tag we can add it to the regex.

@Hypolite Petovan out of interest, do you know where this is done in the code?

in reply to utzer [Friendica] Friendica Support reshared this.

@utzer [Friendica] @Jonathan Lamothe I do, but again this requires us to make a decision about what characters can or cannot be used in a hashtag, something we have never done so far.
in reply to Hypolite Petovan Friendica Support reshared this.

@Hypolite Petovan yes I know, but we could start with some basics that are annoying... "zero width space" and brackets would be something... oh and dots.
@Jonathan Lamothe


Content warning: fediblock

reshared this

in reply to Jonathan Lamothe

Content warning: fediblock

This entry was edited (2 weeks ago)
in reply to Alex :autism: :neofox_flag_ace:

Content warning: fediblock


Jonathan Lamothe reshared this.


~I can't imagine the Leopards Destroying Open Technologies Company would destroy MY open technology!~

#Meta #FediPact

reshared this


Jonathan Lamothe reshared this.


Technical people of the Interwebs, I have a question

If I were to create a table in a MySQL database with a field called emoji of type VarChar, what size would it need to hold a single emoji from all available (and future) emoji characters? I’m using utf8mb4 encoding.

#emoji #MySQL #utf8mb4 #VarChar

reshared this


Jonathan Lamothe reshared this.


Dear @Gargron,

A fediverse server called Threads is violating mastodon.social’s second server rule:

“2. No racism, sexism, homophobia, transphobia…
Transphobic behavior such as intentional misgendering and deadnaming is strictly prohibited.”

https://glaad.org/smsi/report-meta-fails-to-moderate-extreme-anti-trans-hate-across-facebook-instagram-and-threads/

Can you please defederate from this server to protect the trans people on mastodon.social?

Thank you.

PS. It’s run by these guys: https://techcrunch.com/2024/03/26/facebook-secret-project-snooped-snapchat-user-traffic/

#mastodonSocial #fediblock #threads #meta #mastodon #transphobia

This entry was edited (2 weeks ago)
in reply to counterinduration

@counterinduration There are three reasons I still federate. If any one of them stops being a thing, I'll defederate (I've considered it).

  • A lot of interesting people land there because they haven't yet had a chance to find a better instance.
  • They don't seem to be intentionally doing bad things.
  • They haven't posed enough of a moderation problem on my end yet (I've been able to just block the odd idiot).


Meta fails at point number two, and because of that, I haven't given them the chance to fail point number three.

Edit: typo

This entry was edited (2 weeks ago)
in reply to Jonathan Lamothe

@me

The problem is that if we want to have a commons then it needs to be protected from extraction. A commons that let itself become extracted is not a commons at all, it's just a preparation for extraction.

It's better with a small well protected commons than a bigger one that will allow parts of it to become extracted.

This website uses cookies. If you continue browsing this website, you agree to the usage of cookies.