Mastodon Feed: Posts

Mastodon Feed

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

@NfNitLoop thank you for that pointer, will look after I get back from a desk-mind clearing walk.

;^}

Mastodon Feed

NfNitLoop ("Cody Casterline 🏳️‍🌈") wrote:

@jsonstein expect() and panic!() do have their place.

When prototyping, it's fine to .expect() or .unwrap() for error cases you don't care to handle right now.

For "production" code, you should only .expect()/panic!() for cases that you've proven can't happen (or are so rare you don't want to handle.)

Otherwise, you can use Rust's `?` error propagation and something like the Anyhow crate (https://github.com/dtolnay/anyhow) for much less boilerplate-y error handling that doesn't crash your program. 😊

Mastodon Feed

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

madrush@cosmos.social ("Marco V Morelli") wrote:

Hosting our second in-person meet-up in #longmont #colorado for people interested in being part of a visionary #writing and #art #cooperative, COSMOS #coop

https://cosmos.coop/events/cosmos-local-meet-up-longmont-colorado-2023-08-07/

Please re-share!

Mastodon Feed

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

Vyothric ("Darren") wrote:

Armalyte main theme on DualSID C64 (8580 & 6581) #C64Month #DualSID #RetroComputing

Attachments:

Mastodon Feed

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

What, exactly, is Harvard's reputation anymore, anyway? It's not looking good.

https://freethoughtblogs.com/pharyngula/2023/08/04/jeffrey-epsteins-legacy/

Attachments:

Mastodon Feed

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

(none of these are to be taken to a nihilistic extreme)

For a moment there I was worried, but then I remembered the universe is big and nothing matters.

There will be plenty of time to suffer in the future.

There's a difference between not giving up and beating yourself up.

Mastodon Feed

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

I’m going to guess this attack on the Russian landing craft Olenegorsky Gornyak by the Ukrainians was a combat proof-of-concept. the skills, knowledge, and experience gained by them in the process of designing & deploying uncrewed aerial vehicles already should be relatively easily turned to uncrewed sea-surface vehicles now.

[just my $0.02]

https://www.cnn.com/2023/08/04/europe/ukraine-sea-drone-russian-warship-black-sea-intl

Mastodon Feed

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

mwl@io.mwl.io ("Michael Lucas¹ :flan_molotov:") wrote:

Today's #30DaysOfDoom is a classic of silence.

"The Quiet Earth." https://www.youtube.com/watch?v=w9KQrOx5cz8

The trailer does a LOT of work to make the film look like it has whiz-bang action.

But it's the only SF film I've seen where the manly hero storms into an Anglican church wearing nothing but a negligee, points a shotgun at the crucifix, and screams "Come on out or the kid gets it" and the audience goes "Yes, this is a perfectly reasonable action in this circumstance."

The stories in #apocalypseMoi have more whiz-bang action than this one. But practically everything does. There's a previously unpublished #ProhibitionOrcs tale in there, plus geeky murder, time travel, and the worst way to make chicken mole.

So please check out https://www.kickstarter.com/projects/mwlucas/apocalypse-moi and back it -- or, if you can't, pillage my freebies at https://mwl.io/fiction/freebies

Attachments:

Mastodon Feed

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

aaaaand, here is dear John Eastman yet again:

“Klingenstein’s characterization of the political divide as a cold civil war – spelled out in a series of glossy YouTube videos – has been previously reported, as have some of his activities as chair of the rightwing Claremont Institute, a Claremont, California-based thinktank.

That organization charted a radical, pro-Trump course from 2016, culminating in Senior Fellow John Eastman advising Trump in his attempts to overturn the results of the 2020 election, and delivering a fiery speech to the crowd of protesters in Washington DC on 6 January 2021.”

——-

“The far-right financier giving millions to the Republican party to fight ‘woke communists’” | Super Pacs | The Guardian

https://www.theguardian.com/us-news/2023/aug/04/far-right-republican-donor-woke-thomas-klingenstein?utm_term=64cce844e181b0eb9f31de653b39ce1b&utm_campaign=GuardianTodayUS&utm_source=esp&utm_medium=Email&CMP=GTUS_email

Mastodon Feed

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

pretty much:

“‘Disaster’: warning for democracy as experts condemn Meta over Canada news ban” | Canada | The Guardian

https://www.theguardian.com/world/2023/aug/04/canada-meta-news-ban-facebook-fake?utm_term=64cce844e181b0eb9f31de653b39ce1b&utm_campaign=GuardianTodayUS&utm_source=esp&utm_medium=Email&CMP=GTUS_email

Mastodon Feed

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

‘A federal judge has selected the plaintiffs' proposed cartographer to assist in litigation over Alabama's congressional map "should they become necessary to assist the Court in the event the Court determined it had to prepare a new map."’

via https://democracydocket.com/

Mastodon Feed

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

twisted:

“One of the alleged co-conspirators, John Eastman, is determined to stay busy before he returns to his disbarment proceedings in a Los Angeles courtroom later this month. Earlier this week, Eastman filed a lawsuit on behalf of the Colorado Republican Party to ban unaffiliated voters from the 2024 Republican primary in Colorado. The state holds open primaries and 47% of Colorado voters are not registered with a party.”

via https://democracydocket.com/

Mastodon Feed

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

clacke@libranet.de ("Claes Wallin 🇸🇪🇭🇰") wrote:

Every European 90s hit

"Planet of the Bass" (feat. DJ Crazy Times & Ms. Biljana Electronica)

youtube.com/watch?v=hxGNcMhiOr…

farside.link/invidious/watch?v…

I cannot stop listening and watching. It is in my head when I wake up. Every detail is on point and also it is genuinely a banger.

#PlanetOfTheBass

Mastodon Feed

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

DoctorDeathray@retro.social wrote:

So it's #BandcampFriday and I've got a new single! "21st Century Update" is a song nearly half a decade old that I never released. I re-recorded it with better production, and now it's a pretty fun song!

Check it out at https://doctordeathray.bandcamp.com/track/21st-century-update

Mastodon Feed

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

ashley@digipres.club ("Ashley Blewer") wrote:

A bit of metadata: First blog post in the promised weekly series on file formats! https://bits.ashleyblewer.com/blog/2023/08/04/researching-file-formats-library-of-congress-sustainability-of-digital-formats/

Mastodon Feed

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

see also https://sanctions.nazk.gov.ua/en/sanction-person/25277/

https://mastodon.social/@rvps2001/110832141249907966

Mastodon Feed

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

rvps2001 ("Russia-Ukraine Daily News") wrote:

🇷🇺 🇩🇪 Leaked communications between Vladimir Sergienko, a naturalized #German citizen, and “Alexei,” a suspected #FSB operative, show the extent of Russia’s infiltration of the Alternative for #Germany party. Their “active measures” included a plan to stop or slow delivery of German main battle tanks to #Ukraine using frivolous litigation against the German government. It would only cost $93,000.

https://theins.press/en/politics/264014

#russia #afd #afdparty #investigation

Mastodon Feed

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

AlexPed@mastodon.uno ("Dr Alex 🩺🚼") wrote:

👉 [not a vaccine]

📌 Beyfortus is a monoclonal antibody with activity against #RSV. Monoclonal antibodies are laboratory-made proteins that mimic the immune system’s ability to fight off harmful pathogens such as viruses. One dose of Beyfortus, administered as a single intramuscular injection prior to or during RSV season, may provide protection during the RSV season.

https://time.com/6301799/infants-should-get-the-recently-approved-rsv-vaccine-this-fall-health-officials-say/

Mastodon Feed

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

floppy@mastodon.me.uk ("James Smith 💾") wrote:

#3DPrinting folks: Anyone interested in the idea of a #Fediverse model hosting site (like Thingiverse, etc)? I'm wondering whether I should expand @vandam (my self-hosted 3d library manager app) in that direction, and I'd be very interested in your thoughts: https://github.com/Floppy/van_dam/issues/1389

@3dprinting

Mastodon Feed

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

kennwhite ("Kenn White") wrote:

This is a great profile on Window Synder, one of the true OG hackers and an absolute force of nature in internet security. You can thank her for some of the most important modern protections in Microsoft & Apple products.

https://techcrunch.com/2023/08/04/window-snyder-cybersecurity-trailblazer/ by @lorenzofb

Mastodon Feed

isagalaev ("Ivan Sagalaev :flag_wbw:") wrote:

The ongoing story of this tree: https://www.flickr.com/photos/isagalaev/albums/72157697293443425

Mastodon Feed

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

Hey, fedizens! It's Bandcamp Friday where Bandcamp waives its processing fees for purchases, which means more money in the pockets of artists whose work you love!

https://isitbandcampfriday.com/

Mastodon Feed

isagalaev ("Ivan Sagalaev :flag_wbw:") wrote:

Canopy at sunset

#bonsai #darktable

Attachments:

Mastodon Feed

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

Breaktime for Bonzo

::poof::

Mastodon Feed

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

looking at "expect" now... nice

#LearningRust

Mastodon Feed

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

playing around with handling file open/create issues... I think I like this style a bit better than the example in the book

----- snip -----
fn file_test4() {
let greeting_file4 = match File::open("hello4.txt") {
Ok(file) => file,
Err(error) => match error.kind() {
ErrorKind::NotFound => match File::create("hello4.txt") {
Ok(fc) => fc,
Err(e) => panic!("Problem creating file: {:?}", e),
},
other_error => {
panic!("Problem opening the file: {:?}", other_error);
}
},
};
}
----- snip -----

but maybe I am missing something I'll bump into later...

Mastodon Feed

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

augieray ("Augie Ray") wrote:

- The Walgreen's COVID positive rate has never been higher throughout the entire pandemic (although this is based on low test volume). https://www.walgreens.com/healthcare-solutions/covid-19-index

- The CDC's test positivity rate is based on a much larger sample. It has doubled in just two weeks and is still rising. If the current trend continues, we'll have the highest positive rate since last July within ten days. https://covid.cdc.gov/covid-data-tracker/#trends_select_testpositivity_00

- The CDC reports COVID hospitalizations are up 12% over last week. https://covid.cdc.gov/covid-data-tracker/#maps_new-admissions-rate-county

Mastodon Feed

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

augieray ("Augie Ray") wrote:

Three-minute US #COVID19 update 🧵 :

- The CDC wastewater monitoring shows we're at the highest level of sustained growth since last December. https://covid.cdc.gov/covid-data-tracker/#wastewater-surveillance

- Biobot demonstrates continued growth of COVID in wastewater with acceleration particularly pronounced in the West and Midwest (which are catching up to the higher COVID levels in the South and Northeast). Rates are still relatively low, but they are continuing to rise. https://biobot.io/data/

Mastodon Feed

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

I close my eyes for a week, and what happens? Obituaries.

https://freethoughtblogs.com/pharyngula/2023/08/04/the-bad-news-from-the-past-week/

Attachments:

Mastodon Feed

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

I am curious if experienced Rust programmers find the first approach or the second more comfortable:

----- snip -----
fn file_test() {
let greeting_file_result1 = File::open("hello1.txt");
let greeting_file1 = match greeting_file_result1 {
Ok(file) => file,
Err(error) => panic!("Problem opening the file: {:?}", error),
};
//
// versus
//
let greeting_file2 = match File::open("hello2.txt") {
Ok(file) => file,
Err(error) => panic!("Problem opening the file: {:?}", error),
};
}
----- snip -----

thanks in advance for any comments on advantages of one over the other

#LearningRust