Skip Navigation

Welcome to week 30 of Reading Club for Rust’s “The Book” (“The Rust Programming Language”).

“The Reading”

Chapter 19 (continued): https://rust-book.cs.brown.edu/ch18-03-pattern-syntax.html (the special Brown University version with quizzes etc)

The Twitch Stream

Starting today within the hour @sorrybookbroke@sh.itjust.works twitch stream on this chapter: https://www.twitch.tv/deerfromsmoke

https://www.youtube.com/watch?v=ou2c5J6FmsM&list=PL5HV8OVwY_F9gKodL2S31czb7UCwOAYJL (YouTube Playlist)

Be sure to catch future streams (will/should be weekly: https://www.twitch.tv/deerfromsmoke)

0
Jump
Need to know about npm
  • Yeah don't worry about it too much. Ensure you have the correct name when installing your library but that's about all you can do personally.

    Any other solution will have some security flaws. NPM has a few more than it should but essentially the entire web is built around it. Sorry man, you don't have any other choices.

    How to use it properly? Any npm tutorial will show you quickly. Always check you've got the right thing, always check the library is large enough that if something goes wrong it'll be noticed, and know there's no way to be completely safe without never using libraries.

    If you're learning the web though there's no way to avoid npm.

    4
  • Jump
    Anyone selling cool Lemmy tshirts?
  • My father has the ability to make shirts with his cricut, and seperatly a sublimation printer.

    What I'm saying is that I'll soon be the first, and only, owner of a pirated Lemmy t-shirt.

    6
  • Jump
    coming back from my extended hiatus just to smirk at yall
  • Nah I'll admit it, I was entirely wrong in thinking Biden should stay in the race. Though I could say I was worried another person than kamala would take their place I had essentially no faith in her ability at the time either.

    Now look at where we are. Finally, some good fucking hopium. I'm very glad to be wrong

    47
  • Jump
    Why does VirtualBox keep launching on boot?
  • Edit: these suggestions are last resort type stuff tbf, hope the guys in the other thread are more help. Looks like someone suggested session restore w/ kde which makes alot of sense.

    Ok that's increadibly weird. Here's some places I'd look.

    I'd start looking in environment files such as ~/.bash_profile, .~/.profile, /etc/environment, /etc/profile and a few others. Maybe there's a call to the application in one of these files?

    Secondly, I'd attempt to write a bash script to walk a directory tree, cat out files, pipe it through grep and get every instance where VirtualBox is mentioned in a file. Trying the name of proccess, or of the executable too.

    I have a snippet that may help, by replacing that bash script:
    grep -Rinw '~/path/to/start/' -e 'VirtualBoxOrSmthngElse'

    all credit to this answer on SO:
    https://stackoverflow.com/a/16957078/11534230

    Head there to see how to try and wittle down the matches. I'd start in a etc, ignore binary files with grep, and try everywere systematically

    This is likely overkill lol. If you're on xorg maybe there's something in the file xorg uses for init? Can't remember the name personally but I used it to start up some processes before on system boot quite a while ago

    3
  • Jump
    Ransomware exploiting known vulnerabilities affecting millions of users worldwide
  • Oh shit I see. I think the joke is that you only get some of the security updates if you pay for ubuntu pro. Ransom as in "Be a shame if you were insecure there little buddy, we can help with that. For a price"

    Yeah I don't know enough about that personally to make a judgment

    11
  • Jump
    New terminal apps: Warp and Wave
  • You do make some good points on it being terminalside, you've partially changed my mind there. I see the value now.

    Also, you would be correct anything that allowed collapsing commands would be trivial to implement some sort of action per command and it's output. Along with collapsing being easiest to do terminalside.

    What I would love to see is a terminal that builds it's own shell from scratch too rejecting the ancient ideas we have with bash. I still love bash but I'm curious what could come of it.

    As for their luddite status their reply to my previous comment seems to show them to be a bit more open

    Seriously though thanks for the good conversation and thought excersize

    3
  • Jump
    New terminal apps: Warp and Wave
  • Konsole can display images, as can kitty, alacritty, western, iterm2, etc. There's quite a few formats to do so dating back decades. This isn't new.

    As for collapsing a command and it's output that's nice, but it's not exactly game changing.

    Lastly, searching explicitly your last command for a term with context would be much better suited to the shell to solve as it'd be terminal independent. Wouldn't surprise me if under the hood it's a bash script that takes whatever input you pass to bash, execs it, pipes stdout to tee, which passes it to a text file storing output and the console's output too. Of course, you can always pipe it to fzf for a live grep with context if you have it set up right and remember to do so

    I would agree just denying any advancements in favor of the "good ole way" is idiotic but nothing I've seen or that you've listed convinces me these are major advancements. Nor are these anything that couldn't be solved at the shells level or with supplementary applications. Nice to have, if it weren't electron or closed I would switch, but nothing groundbreaking

    I doubt they're outright rejecting any idea of progress. They're likely just not convinced by what the fancy options offer

    16
  • Jump
    New terminal apps: Warp and Wave
  • Hell yeah, now that it finally works with Wayland on nvidia with explicit sync being added to the 555 drivers it's been great for me

    2
  • Jump
    Assassins [Skeleton Claw]
  • Dumbass is paying for my assassimation. Free is free

    42
  • Jump
    Hang Ten with Doctor Strange
  • This recent work of yours I've seen with colour has been amazing. Always liked your general style, but these just have some oomph to them.

    Ignoring that I particularly like the cloth texturing. The entire thing really comes to life

    3
  • Jump
    I will not apologise
  • Aight man you can be a cunt if you wish. Glad to see the reddit mentality wasn't lost in the transition.

    -2
  • Jump
    I will not apologise
  • This is partially correct. First off, an espresso machine is under pressure which will, of course, raise the boiling temperature of water. Espresso normally is run at 94C however so your point stands. Now, we're not exactly talking about caramelization which is melted sugar becoming unstructured something I never stated was the issue but we are getting into the territory of creating simple syrup, and "thread stage" sugar crystallization. Especially if you like to run your espresso at higher temps like some tend to. Even below this temp, heating sugar will cause it to taste different.

    Still though, as said previously this is mostly a risk and possible issue not a certainty. I meant you no ill will. I was wrong about burning the sugar though. That takes a lot more heat, and was quite embarrassing to state.

    0
  • Jump
    I will not apologise
  • Overheating sugar can change the taste quite a bit and in this case you'll have the sugar as hot as possible for a fairly long time. This can create sugar structures that may be unpleasant or just straight up burn the sugar

    If you try it and like it though I see zero issue

    2
  • Jump
    Why don't more people use Linux? - DHH
  • And vim, of course

    15
  • Jump
    Sketch of energy weapons
  • Not a clue how you came across your style man but dahm is it a vibe. This is, though well done, one of the least stylized pieces you've made but I wanted to say this nonetheless. I love seeing your art on my timeline

    You've improved quite a bit too over time which is especially noticeable with your latest few pieces. God dahm do we have some interesting artists on the Fediverse

    2
  • Jump
    Remember when Musk apologized (possibly to avoid a lawsuit) because he mocked a disabled Twitter employee who asked if he was still employed
  • No clue why the downvotes, you're correct. The man was a well known philanthropist who strongly believed in taxation even as a rich man. He took this deal partially, as he stated, in order to pay income taxes on the profit supporting his country better. He's a well respected man in his country known for advocating for disabled peoples rights and funding for better support.

    23
  • Jump
    Freetube is the best way to watch YouTube
  • Oh shit, I just made the switch and I'm liking it. I just "favourite" things from my sub feed in one small window, and watch in the other, and it autoplays (if I want) so I can just start doing shit while the background vids keep playing. Honestly kinda more convienient than youtubes gui. It has sponsorblock built in too, which is nice

    12
  • Jump
    by Adam Hillman
  • I like it. Modern design language is towards muted colours and heavily features grey so the juxtaposition of something made for kids, with colour prevelent, now muted like the chargers does something in my head. With the wiimote we even have the intersection where play met sleek, modern design which is much less playful.

    Am I reading into it too much? Ye, but I like it. Seperate to this I do, seperatly, enjoy muted colours and sleek design language common to the mid to late 2010s up to now so I assume that's part of my enjoyment

    3
  • Jump
    Looking for a language, that can easily compile to WASM
  • Yeah, rust tends to be more imperitive too, so I definitly wouldn't describe it as functional by default or by neccesity.

    There's a good reason to use another, non-gc language though. Rust is a very particular language with many issues. The borrow checker, matching system, etc. while increasingly cool are difficult to learn and I see why someone would prefer c, or another non-memory safe solution. Or even another memory safe solution with a different way of doing things.

    1
  • I'll be clear, quite embarrassingly I bit my tongue hard last night and haven't been talking right all day. Hurts to talk, hurts to eat, and worst of all hot tea is undrinkable. How will I live. Now I know exactly what it feels like to be soldier wounded in combat.

    Will resume next week in full force. In the meantime however please feel free to read ahead. Or, alternatively, try out a few leetcode\advent of code questions. This what I'll be doing tonight.

    4

    Saw this a bit ago but didn't think to post about it

    To be clear, this doesn't mean coreboot is available now and what is working for devs includes quite a few binary blobs. It's still progress though and good to see.

    It's been 5 months but you did ask me to inform you of anything happening @jackpot@lemmy.ml

    Another link from that article shares more info: https://www.phoronix.com/news/Framework-13-AMD-Coreboot-WIP

    More info tends to be posted here: https://community.frame.work/t/responded-coreboot-on-the-framework-laptop/791/428

    5

    Created a while ago from a DnD session where the PC's were stalking a leonin man meeting some friends in a shifty alley, beside a bar using krita along with it's perspective tools. Using Muses brush pack, I'll send a link if requested. Very nice pencil and charcoal brushes.

    0

    This acts as a reminder that tomorrow Tuesday the 13th at 6:30 EST will be our second meeting, though you're welcome if it's your first time all the same. We'll be discussing what we've learned since last week, what we're doing this week coming, and reading the next two parts of The Book together. Along with that, we'll talk about a new (secondary and optional) stream possibly on Thursdays at the same time going through advent of code together in order to learn rust through code.

    Hope to see you all there tomorrow but as always, the Vod will be available afterwards at the youtube channel listed in our Project Portal here: https://sh.itjust.works/post/14184272

    0

    Streamed Code Together

    A streamed reading club focused on rust's The Book and becoming reasonably good rust developers through community collaboration. The end goal is to read the lemmy codebase and contribute to the platform we all love. This stream will serve as a club meeting where we read some of the content together, discuss previous topics, and write some code.

    Anybody's welcome, whether you want to continue once we get to the code base or not. If you're completely new to rust this is a great place to start and if you already know the language we'd love to have you all the more. At the very least it's a good networking opportunity but you'll likely learn more than you thought.

    Post Stream

    After the stream, a discussion post will be made to This Community stating what we've gone over and what we're planing to read/code/do before the next stream. This will act as a place to talk about what you've learned, what issues you're having, how your post-stream learning is going, and to help your fellow lemmings. I strongly encourage posting a comment even if everything you've stated has already been said.

    Timing

    We will meet weekly at 6:30pm EST (New York Time) on Tuesday with a maximum length of two hours.

    Hosting

    For now, the host will be myself however if you're interested in hosting or co-hosting yourself please feel free to message me about this especially if you can stream at a time where people in a European or Asian timezone can join in.

    Missed the stream?

    A video will be available on youtube so you can watch at a later point and a discussion post will be posted here weekly which states what we've gone over and what we're going to do before the next stream.

    Links

    The weekly stream will be hosted on twitch with that site being our main chatroom. Vods will be available on Youtube after the stream along with a mildly edited version for those who couldn't join in but still want to keep up

    Twitch: https://www.twitch.tv/deerfromsmoke

    Youtube Playlist: https://www.youtube.com/playlist?list=PL5HV8OVwY_F9gKodL2S31czb7UCwOAYJL

    Our Learning Rust and Lemmy Community: !learningrustandlemmy@lemmy.ml

    Original Post: https://sh.itjust.works/post/13993219

    1

    cross-posted from: https://sh.itjust.works/post/13993219

    > ## The concept > A streamed reading club focused on rusts The Book and becoming reasonably good rust developers through community collaboration. If you're interested, please comment so we know this's something you'd like to join in on. > > ## A Begining > To begin, I'll be setting up a twitch stream where we read through the book together and solve some problems together related to the concepts provided. We'll be able to collaborate in chat, and talk about it here after each stream. This way, we'll be able to lean on each other or just hang out while we learn the language Lemmy uses for it's backend. Other hosts will be welcome as the end goal is to create a group of people whose goal is to support our collective growth as developers > > Anybodies welcome of any skill set, whether or not they want to continue on once we get to lemmys code base. If you're completely new to rust this is a great place to start and if you already know the language we'd love to have you all the more. At the very least it's a good networking opportunity but you'll likely learn more than you thought. > > ## Timing > Please comment your availability so we can find the best time and day to do this. As a stand-in and default though, 6:30pm EST (New York Time) on tuesday will be the start time. I'd be available on most days myself after 5pm Eastern Time (new york) though so don't hesitate to suggest another time/date. > > ## Where? > For now, I'll be streaming this on a twitch channel I created a bit ago but never used. The link is here: https://www.twitch.tv/deerfromsmoke > > Thank you @morrowind@lemmy.ml for the idea.

    4

    The concept

    A streamed reading club focused on rusts The Book and becoming reasonably good rust developers through community collaboration. If you're interested, please comment so we know this's something you'd like to join in on.

    A Begining

    To begin, I'll be setting up a twitch stream where we read through the book together and solve some problems together related to the concepts provided. We'll be able to collaborate in chat, and talk about it here after each stream. This way, we'll be able to lean on each other or just hang out while we learn the language Lemmy uses for it's backend. Other hosts will be welcome as the end goal is to create a group of people whose goal is to support our collective growth as developers

    Anybodies welcome of any skill set, whether or not they want to continue on once we get to lemmys code base. If you're completely new to rust this is a great place to start and if you already know the language we'd love to have you all the more. At the very least it's a good networking opportunity but you'll likely learn more than you thought.

    Timing

    Please comment your availability so we can find the best time and day to do this. As a stand-in and default though, 6:30pm EST (New York Time) on tuesday will be the start time. I'd be available on most days myself after 5pm Eastern Time (new york) though so don't hesitate to suggest another time/date.

    Where?

    For now, I'll be streaming this on a twitch channel I created a bit ago but never used. The link is here: https://www.twitch.tv/deerfromsmoke

    Thank you @morrowind@lemmy.ml for the idea.

    20

    I've been trying for a bit to get together a group or find one to join here with no success. I've posted in two communities here on lemmy, replied to a few peoples posts, and each time it seems that I and the others don't get enough people together to start a game.

    My question is towards others experiance in the fediverse with getting together a group as a DM or a player.

    Have you been able to do so?

    If so, what's your experiance been? Where did you find success?

    Is mastadon or another service a better place to look?

    Any experiance or story is appreciated.

    Alternatively, if you've been looking yourself and have had the same experiance, I'd love to have you at my table. I am in the EST timezone though

    12

    Michael Jackson was apparently removed from CS2. This is a sad day

    5

    It is 5 am, I have not slept tonight, but what I have done makes me very happy.

    It was too easy and took no coding. Even though I'm a professional programmer I was not excited to learn qt and hate c++ with a passion. I did not need to. Seriously, it is my belief that anyone could have done this if they really wanted to

    The Problem

    I've not been able to find a theme which lets me have small floating panels and a nice brownish colour profile. All the brown themes I've liked have a massive border radius in the floating panels, and thus my two panel layout takes up an absurd amount of space. 64 pixels in total, though it seems a bit larger to me. Maybe that doesn't account for the bottom empty space.

    Fixing It

    I knew at this point I'd have to learn a bit about plasma theming in order to get what I wanted, and had been procrastinating for about a month. Tonight, I could not sleep, so around 2 I decided to try it out. I started online and found nothing on my specific problem, with people suggesting I just "try another theme". Perhaps I was googling wrong, but no useful information there. went back in to the settings though and found the edit button on the plasma theme section. Right there were all the SVGs needed to alter the theme and a nice button to get to the directory where it was all housed.

    I searched up panel, found three images, and tried something incredibly dumb. I just yeeted them into inkscape, made the borders on each image smaller, and changed my theme away and back. Fantastic, now the corners are smaller and I can shrink my panels to a reasonable size. It took about 15 minutes in total. To be fair, each corner was it's own path and I had to do this 4 times and be cautious of some shadowing but I seriously think anyone could have gotten this done. Fuck man, the theme I'm using is distributed under the GPL. That's place is wild.

    Conclusion

    Plasma is built for people who want to change their experience and I love the devs for that. At this point I'd be surprised if I found something I couldn't do. If you're curious, here's the finished product. It'll take some more work with a colour picker to get the sliders the right way but for now this is fantastic

    !

    11

    LFP - EDT - 5E - Online - Assault on gumdrop mountain - 5th level

    Hey everyone, didn't see any posts here so I've decided to make my own. Haven't DM'd in a while but if I can get 3-5 people together I'd love to do a one shot.

    We'll be playing:

    Assault On Gumdrop Mountain: A Drug-Fueled Adventure for 5th Edition

    Concept

    A group of adventurers have been hired to climb a mountain of filth which has recently came into being, find out why, and hopefully put an end to this occurrence. In order to withstand the horror an alchemist has created a potent hallucinogen which turns the abhorrent into adorable, and sweet. Vast quantities of blood turn into orange soda lakes, flocks of maggots turn into red licorice bits, fecal fungus into cotton candy tufts, the ever present aroma of decaying corpses turns into a delicate sweet scent of pastries and jam, and black licorice turns red. The disgusting turned delicious. This makes the climb tolerable as the sights and scents are masked by this delicious delusion.

    Info

    This will be a fifth level adventure ran for adults using discord and owl bear rodeo. It'll likely take two sessions, and will likely be starting in two to three weeks. Once we get the players we will discuss date and time, likely a weekend after 6 EDT however. No racism, homophobia, etc. will be tolerated

    This will not be a sexual game and I as the DM will not flirt with you as an NPC. All attempts will be shot down quickly, and harshly.

    Homebrew must be vetted first but any official book is ok with me.Tashas, Unearthed arcana, etc. are all allowed

    Applying

    I'd like you to comment or message me your age, a little about you, experience (none required), character concept, what you like in a game, and favourite DND moment (if any)

    Example: Hi, I'm sorrybookbroke a 23 year old Canadian guy. I've played DND for about 7 years, dming for quite a bit of that. I'm thinking of playing an artificer goblin named Ted. Ted does not know he is a goblin, and ignores all who try to explain this to him. In a game I like a fair amount of role play between characters with a healthy dose of combat.

    (To clarify, I will only be dming, there will be no dmpc)

    0

    Zeioth has created a fantastic plugin for those of you looking to make Neovim more like an IDE. Run the open command, tell it to build, have it compile, execute, and output your code in a really nice looking way all inside neovim.

    It's still pretty early but this is looking promising. It's already very customizable with support for a few languages, with more in the works.

    Give it a look: https://github.com/Zeioth/Compiler.nvim

    !

    0

    When an application is maximized, the panel de-floats, but the sides remain empty. I understand that this is likely hard to implement differently, but mac also does this, and I wanted to know if anyone likes their floating panels to be so holey?

    Personally, I'd like to get my holes filled. sadly it's not possible for many linux users

    0