Mastodon Feed: Posts

Mastodon Feed

Reblogged by jsonstein@masto.deoan.org ("Jeff Sonstein"):

skykiss@sfba.social ("Kailee ♾️") wrote:

It’s happening now in plain sight.

Florida Republicans are pushing educational materials for the purpose of #INDOCTRINATING future generations into their republican fascist ideology.

Every accusation was a confession.

“Ron DeSantis repeatedly says he opposes indoctrination in schools. Yet his administration in early July approved materials from a conservative group that says it’s all about indoctrination and ‘changing minds.’”

#ChristoFascism is forced on children.

https://www.orlandosentinel.com/2023/07/31/florida-oks-school-materials-aimed-at-making-students-conservatives/

Attachments:

Mastodon Feed

Reblogged by slightlyoff@toot.cafe ("Alex Russell"):

mattblaze@federate.social ("Matt Blaze") wrote:

I wasn't paying close attention, and so assumed that thing about slavery not being so bad because some slaves learned valuable skills must be an Onion parody. But it isn't. It's an actual current right wing talking point.

It's like saying cancer isn't quite so bad because some people really like hospital food.

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

Wasted on the Way (2005 Remaster) by Crosby, Stills & Nash

https://pandora.app.link/KhZh5CIyTBb

Attachments:

Mastodon Feed

Reblogged by pzmyers@octodon.social ("pzmyers 🦑"):

mhalila@mastodontti.fi ("Michael Halila 🏳️‍⚧️") wrote:

"AI is going to take your job!"

Like hell it is. Try:

"A super-rich capitalist has invested billions of dollars into replacing human creative work with a shitty computer program, so he can pocket more of the profits."

When you stop intentionally obscuring who is doing things and who is benefiting from them, the world starts looking very different indeed.

Mastodon Feed

Reblogged by isagalaev ("Ivan Sagalaev :flag_wbw:"):

jenniferplusplus@tech.lgbt ("Jenniferplusplus") wrote:

Please stop defederating from general purpose news services, just because they sometimes do a transphobia.

I'm trans, and I'm telling you its worse for me to cut off my news sources than to read those news sources misgender people or whatever.

Seriously, come the fuck on, we just talked about this. Stop making the fediverse into some arcane and impenetrable little clique powered by unwritten rules and endless purity tests.

This is about #bbc, among others

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

break

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

okay, no direct indexing into UTF-8, fine by me... UTF-8 can break your brain if you ever reeeeeealy dive into it. (not recommended, religious wars &etc are best avoided)

all my experience says the subtitle "Strings Are Not So Simple" is Totally Correct, so I can certainly live with depending upon the std library for screwing around with String data. no problemo.

#LearningRust

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

well now, this is *very* nice:

"The format! macro works like println!, but instead of printing the output to the screen, it returns a String with the contents... the code generated by the format! macro uses references so that this call doesn’t take ownership of any of its parameters."

#LearningRust

Mastodon Feed

slightlyoff@toot.cafe ("Alex Russell") wrote:

Presumably all of this is good for crypto!

https://twitter.com/CasPiancey/status/1686063038166867969?s=20

https://protos.com/sources-confirm-binance-helps-users-avoid-kyc-aml/

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

let s1 = String::from("Hello, ");
let s2 = String::from("world!");
let s3 = s1 + &s2;
// s1 has been moved
// and can no longer be used

Igor
Must
Not
Forget

#LearningRust

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

"The push_str method takes a string slice because we don’t necessarily want to take ownership of the parameter."

so, I can pass around and use string slices ("usually seen in its borrowed form &str... references to some UTF-8 encoded string data stored elsewhere") while clearly hanging on to ownership and management of big-S String-thingies ("growable, mutable, owned, UTF-8 encoded") as the data structures they are. good. this makes sense... or more probably, I'm missing something subtle ;^}

#LearningRust

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

"Often, we’ll have some initial data that we want to start the string with. For that, we use the to_string method, which is available on any type that implements the Display trait, as string literals do." comes in CH 8, but we do not learn about "Traits" until CH 10?
soitgoes

¯\_(ツ)_/¯
#LearningRust

Mastodon Feed

Reblogged by cstanhope@social.coop ("Your friendly 'net denizen"):

twobraids@mastodon.art ("K Lars Lohn") wrote:

I'm looking for a new home base. Does any have suggestions for mastodon server where a misfit queer biker can post about #art, #roses, #photography, #nature, #lichen, #shortstories, #motorcycles, #programming, #cats and #dailylife?

Plus, I _really_ want the character limit to be higher than 500.

Peruse my profile here on mastodon.art and tell me where you think I'd do well.

Thank you for your assistance in finding a new home.

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

okay, so there are both "[t]he String type... growable, mutable, owned, UTF-8 encoded" and "the string slice str... usually seen in its borrowed form &str... references to some UTF-8 encoded string data stored elsewhere". excellent.

we have both an actual string-thingie, mutable but owned, and simply a reference to some string-thingie, which must in turn be borrowed from somewhere else.

#LearningRust

Mastodon Feed

Reblogged by jsonstein@masto.deoan.org ("Jeff Sonstein"):

yurnidiot@mstdn.social ("Mandu 🥟") wrote:

avoid the mondays
#mondog

Attachments:

Mastodon Feed

steeev ("Steeev") wrote:

Lately when a celebrity dies I do math against their age to see how many more years I'd have if I were them.

Mastodon Feed

Mastodon wrote:

Following the German @ZDF and @tagesschau, the BBC is giving Mastodon a go through their own server. You can now follow the official @BBCRadio4 and a few other accounts on social.bbc!

Mastodon Feed

pzmyers@octodon.social ("pzmyers 🦑") wrote:

One of our garden residents. #spider

Attachments:

Mastodon Feed

pzmyers@octodon.social ("pzmyers 🦑") wrote:

Diagnosis made: severe ensethopathy.

https://freethoughtblogs.com/pharyngula/2023/07/31/severe-ensethopathy/

Attachments:

Mastodon Feed

Reblogged by isagalaev ("Ivan Sagalaev :flag_wbw:"):

ivan@hachyderm.io ("Ivan :nix_snowflake_logo:") wrote:

You can’t even do code search on #GitHub without being signed in anymore

#enshittification

Mastodon Feed

Reblogged by jsonstein@masto.deoan.org ("Jeff Sonstein"):

Free_Press@mstdn.social ("Aure Free Press") wrote:

Mastodon is the place to be...it has the people...the app...and NO ADS!

Meta’s Threads app looks set for an uphill climb if it’s ever to take the microblogging crown.

Meta CEO Mark Zuckerberg told employees that despite its impressive start in early July when around 100 million people activated a Threads account in its first five days of availability, more than half of those users have stopped checking in.
#Mastodon #Threads #Twitter #mastodonrocks #AureFreePress

https://www.digitaltrends.com/social-media/threads-has-lost-half-its-users-zuckerberg-says/

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

Weather: 🌦 Light rain, +69°F, 75%, ↘11mph, 1017hPa
Timezone: America/New_York
Now: 12:07:54-0400 | Dawn: 05:26:49 | Sunrise: 05:59:55
Zenith: 13:16:54 | Sunset: 20:33:09 | Dusk: 21:06:08
Location: Rochester, Monroe County, New York [43.1572,-77.6151]

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

breaktime for bonzo #LearningRust

::poof::

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

okay, Vec is def worth some concentrated study time

#LearningRust

Mastodon Feed

Reblogged by bcantrill ("Bryan Cantrill"):

oxidecomputer@hachyderm.io ("Oxide Computer Company") wrote:

A little summer hiatus for Oxide and Friends: @ahl and @bcantrill will be back on August 14th. In the meantime, check out the back catalog -- and if there are particular episodes you'd like to see, let us know!

https://oxide-and-friends.transistor.fm/

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

ah, this looks like a very interesting learning exercise...

https://doc.rust-lang.org/nomicon/vec/vec.html

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

ugh, not my favorite way to encourage folks to program:

"This method is best used when you want your program to crash if there’s an attempt to access an element past the end of the vector."

normalizing crashing out of programs #SMH

#LearningRust

Mastodon Feed

Reblogged by jsonstein@masto.deoan.org ("Jeff Sonstein"):

gbhnews wrote:

📡 for those of you who are just tuning in

GBH News is a PBS/NPR newsroom in Boston, Massachusetts.

We start each day with a greeting, the weather, a news brief, and a poll.

It surprises me when we get people who say they think this is the full output of our newsroom, but of course it is not. We simply care enough about the #fediverse to engage here.

If you want livestreams/video, see here: https://www.youtube.com/c/gbhnews

If you want to do a deep dive, visit our website: https://www.wgbh.org/news/

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

I think I may like this pattern much better than over-use of try/catch blocks in Java

#LearningRust

Mastodon Feed

jsonstein@masto.deoan.org ("Jeff Sonstein") wrote:

with apologies to Phil Karlton...

there are only two hard problems in programming: naming things, cache invalidation, and off-by-one errors

judicious use of of 'Option' with 'match Some/None' seems like a path to avoiding a lot of common programming errors

#LearningRust