DMBuce's recent activity

  1. Comment on What games have you been playing, and what's your opinion on them? in ~games

    DMBuce
    Link Parent
    For learning regexes, what worked for me was making my way through https://www.regular-expressions.info/tutorial.html with an open shell, using grep, egrep, grep -P, sed, sed -r, etc. to see how...

    For learning regexes, what worked for me was making my way through https://www.regular-expressions.info/tutorial.html with an open shell, using grep, egrep, grep -P, sed, sed -r, etc. to see how different engines treat various regex constructs differently.

  2. Comment on What programming/technical projects have you been working on? in ~comp

    DMBuce
    Link
    The other day I wrote a script to help me rebalance my investment portfolio. It takes the balances of my various accounts along with the percentage of each asset class, plus my target allocation...

    The other day I wrote a script to help me rebalance my investment portfolio. It takes the balances of my various accounts along with the percentage of each asset class, plus my target allocation and reallocation bands, and spits out my current allocation and the min and max amount I should have in each asset class based on my bands and target allocation. If my bands are breached, it also shows the amount of money I need to move into or out of an asset class in order to get within my bands, and the amount to move to reach my target allocation.

    4 votes
  3. Comment on Level1Techs explains the bash directory stack in ~comp

    DMBuce
    Link
    Another way to approach this is to use the cd - command to flip between two directories (in Bash at least, not sure about other shells). Not as powerful as a full directory stack, but personally I...

    Another way to approach this is to use the cd - command to flip between two directories (in Bash at least, not sure about other shells). Not as powerful as a full directory stack, but personally I rarely need to quickly jump between three or more directories in a given shell session.

    Maybe that's a quirk of how I use the shell, though. In a directory structure like this:

    [root@server01 ~]# cd /usr/share/tomcat/
    [root@server01 tomcat]# ll
    total 8
    drwxr-xr-x. 2 root   root   4096 Jan 27 13:51 bin
    lrwxrwxrwx. 1 root   tomcat   11 Jan 27 13:51 conf -> /etc/tomcat
    lrwxrwxrwx. 1 root   tomcat   22 Jan 27 13:51 lib -> /usr/share/java/tomcat
    lrwxrwxrwx. 1 root   tomcat   15 Jan 27 13:51 logs -> /var/log/tomcat
    lrwxrwxrwx. 1 root   tomcat   22 Jan 27 13:51 temp -> /var/cache/tomcat/temp
    lrwxrwxrwx. 1 root   tomcat   23 Jan 27 13:51 webapps -> /var/lib/tomcat/webapps
    lrwxrwxrwx. 1 root   tomcat   22 Jan 27 13:51 work -> /var/cache/tomcat/work
    

    I've noticed that a lot of people will do something like e.g. cd webapps; ls; cd ..; cd logs; view catalina.out in order to look at what's in the webapps directory and then look at the logs in catalina.out. There's even one person I know who wouldn't trust the symlinks and does cd /var/lib/tomcat/webapps and cd /var/log/tomcat instead of those cd commands (actually it's more like cd /var; ls; cd lib; ls; cd tomcat; ls; cd webapps and so on).

    Whereas I would just do ls webapps/; view logs/catalina.out , relying on tab completion so that I don't have to type all of those paths out. That way my shell history is less cluttered and if I need to, say, look at the Apache configs on the same server, I can cd /etc/httpd; view conf*/*.conf and then flip back and forth with cd - from there.

    Anyway, sorry for the overly long explanation. Not saying that this way of doing things is superior or anything, there are of course many ways to skin this particular cat. Just presenting an alternative that works well enough for my needs.

    1 vote
  4. Comment on Share your linux desktop/setup in ~comp

    DMBuce
    Link Parent
    So after seeing what @crdpa was doing with wofi, I started messing around with rofi and added a (C)hoose option to my music menu that lets me select either a dynamic playlist, a Pandora station,...

    So after seeing what @crdpa was doing with wofi, I started messing around with rofi and added a (C)hoose option to my music menu that lets me select either a dynamic playlist, a Pandora station, or a radio station, depending on which player is currently active.

    I also set up a unicode menu for selecting emojis, emoticons, and other various characters using rofimoji. Still very much a work in progress but here's a search in the (M)ath menu: https://i.imgur.com/unByTkO.png

    Also:

    Mostly I use copyq to keep the ctrl+c clipboard synced to the middle click
    clipboard. I've been meaning to look into a way to keep them synced in the
    reverse direction

    I got this working with autocutsel now.

    2 votes
  5. Comment on Share your linux desktop/setup in ~comp

    DMBuce
    (edited )
    Link Parent
    To shuffle and play your library with mpd, you can do mpc clear; mpc ls | mpc add; mpc shuffle. Not sure about albums but e.g. mpc clear; mpc search album 'dark side of the moon' | mpc add seems...

    To shuffle and play your library with mpd, you can do mpc clear; mpc ls | mpc add; mpc shuffle.

    Not sure about albums but e.g. mpc clear; mpc search album 'dark side of the moon' | mpc add seems to do the right thing.

    Maybe not that useful for you but just in case, I have a script I could share that can load dynamic playlists defined by file paths, file globs, mpc commands, and songs randomly chosen from other playlists. For example to start playing my entire library on shuffle, I'll run mps all with an "all" playlist defined as:

    /*
    
    repeat on
    random off
    shuffle
    

    or as another example, mps wakeup will load a playlist that I use as an alarm clock. Each song in the playlist is chosen randomly from another sub-playlist.

    # something to get me pumped for the day
    1 wakeup-begin
    # something from adult swim
    1 wakeup-swim
    ## something from a show/movie
    #1 wakeup-soundtrack
    # something techno-ish
    1 wakeup-techno
    # something jazzy
    1 wakeup-jazz
    # something that rocks
    1 wakeup-rock
    # something metal
    1 wakeup-metal
    ## something completely random
    #1 all
    # another thing to get me pumped for the day
    1 wakeup-end
    
    random off
    repeat off
    

    Edit in case it's not clear: the dynamic playlists I showed above are a feature of the script I wrote, not mpd.

    5 votes
  6. Comment on Share your linux desktop/setup in ~comp

    DMBuce
    (edited )
    Link
    Looking through my i3 config, here's some things I've done. I have my workstations named with Font Awesome icons so that they look like this in the toolbar thingy (also pictured are the i3blocks...

    Looking through my i3 config, here's some things I've done.

    I have my workstations named with Font Awesome icons so that they look like this in the toolbar thingy (also pictured are the i3blocks widgets I use): https://i.imgur.com/5PiyR2j.png

    I have Flameshot bound to PrtScr so that I can easily take screenshots, mark them up with things like the arrow you see in the status bar screenshot above, and upload them to imgur.

    My background is set randomly from a folder when i3 starts up using fbsetbg.

    I use i3's modes as a simple keybind-driven menu system. For example, I have $mod+g bound to a games menu. I seem to recall adding a few items to the default $mod+q menu as well, that looks like this: https://i.imgur.com/oTECUla.png

    I have $mod+m bound to a music menu that lets me select a source of music, shutting down the current music source if necessary, and is driven by some custom scripts in ~/bin called music, mps, pandora, and radio. Those scripts are also bound to my media keys so that the previous, play/pause, and next buttons always do the right thing.

    I bound $mod+x to a macro menu driven by another pile of custom scripts for capturing/replaying/looping/etc. keystrokes using xmacroplay.

    A feature of i3's I use all the time is its scratchpad, which is an invisible anonymous workspace that you can send floating windows to and from. I always keep a floating shell window in it that I can flip to with $mod+period to run a quick command regardless of the workstation I'm on. And in addition to $mod+Return launching a new terminal, I have $mod+Mod1+Return set to launch a floating terminal.

    I have copyq bound to $mod+c, although I don't use that keybind much. Mostly I use copyq to keep the ctrl+c clipboard synced to the middle click clipboard. I've been meaning to look into a way to keep them synced in the reverse direction, if anyone knows a good way to do that I'd love to hear it.

    Let me know if you want to see configs/scripts/etc. for any of the above.

    7 votes
  7. Comment on What are you learning right now? in ~life

    DMBuce
    Link Parent
    What a silly thing to gatekeep.

    I once really annoyed Kenji on reddit by suggesting that serving stuff in Mason jars was perhaps a little dreadfully hipster and passe and perhaps getting some grown-up glassware might be better. He got quite cross.

    What a silly thing to gatekeep.

    3 votes
  8. Comment on What are you learning right now? in ~life

    DMBuce
    Link Parent
    I'd add Chef John from Food Wishes to that list. He, Kenji, and Sohla are great. Maybe I'm overly picky but those three are pretty much the only cooking personalities on youtube that I can stand....

    I'd add Chef John from Food Wishes to that list. He, Kenji, and Sohla are great. Maybe I'm overly picky but those three are pretty much the only cooking personalities on youtube that I can stand. Although I hadn't heard of Adam Liaw before and might start watching him, too, based on the first few minutes of one of his videos I just pulled up.

    1 vote
  9. Comment on Where do you go for humor? in ~talk

    DMBuce
    Link Parent
    I don't speak Dutch but having visited /r/yo_elvr before, it's probably an acronym for "in real life" in Dutch. A quick trip to deepl translate tells me that would likely be "in het echt". EDIT:...

    I don't speak Dutch but having visited /r/yo_elvr before, it's probably an acronym for "in real life" in Dutch. A quick trip to deepl translate tells me that would likely be "in het echt".

    EDIT: Not sure I explained that very well. /r/me_irl -> "me in real life" -> "ik in het echt" (or something?) -> /r/ik_ihe

    2 votes
  10. Comment on What are your favourite radio stations? in ~music

    DMBuce
    Link
    I have a long list of radio stations I like but these are the ones that stick out in my mind: Mountain Chill The Current Vocalo KRVM WERA LP

    I have a long list of radio stations I like but these are the ones that stick out in my mind:

    Mountain Chill

    The Current

    Vocalo

    KRVM

    WERA LP

    2 votes
  11. Comment on What did you do this week? in ~talk

    DMBuce
    Link
    Over the past two weeks I made a bunch of planets with custom worldgen for a sci-fi dinosaur minecraft modpack that I'm working on. Bone & oil structures on Earth: 1, 2 Ore crystals on the ice...

    Over the past two weeks I made a bunch of planets with custom worldgen for a sci-fi dinosaur minecraft modpack that I'm working on.

    Bone & oil structures on Earth: 1, 2

    Ore crystals on the ice planet: https://i.imgur.com/yh8jGwL.png

    Rare-ish shattered savanna biome on the desert planet: https://i.imgur.com/DheaWVN.png

    Huge spiral tree on the amplified biome planet: https://i.imgur.com/A25ge35.png

    Volcano planet with charcoal trees: https://i.imgur.com/8pBdv8f.png

    Planets I don't have screenshots handy for: A forest planet, swamp planet, flower hills + lakes planet, and a jungle island planet.

    I just finished the last important worldgen feature last night, which was the volcanoes. Next steps are to populate all these worlds with dinosaurs and work out how to feed stargate coordinates to the player. A lot of stargates will have an NPC at them with trades or quests.

    5 votes
  12. Comment on Repeatedly finding myself upset with the conversations on Tildes in ~talk

    DMBuce
    Link
    You're not the only one. Tildes helped me cut down on my redditing a lot. Then Tildes users helped me cut down on my Tildes browsing by a lot. A while ago I realized that having threads bumped to...

    Am I the only one who feels alienated and like I don't want to participate in Tildes anymore?

    You're not the only one. Tildes helped me cut down on my redditing a lot. Then Tildes users helped me cut down on my Tildes browsing by a lot.

    A while ago I realized that having threads bumped to the top of Tildes by crappy comments was not a great way to experience Tildes, and switched my default view from Activity to Votes. It's been a mostly positive change.

    8 votes
  13. Comment on Does anyone else struggle with existential thoughts? in ~talk

    DMBuce
    (edited )
    Link
    I used to, but I don't anymore. It could be that my senses are lying to me, or that my sense of self is an illusion, but if that's the case, it's just part of my experience. I know my experiences...

    I used to, but I don't anymore.

    It could be that my senses are lying to me, or that my sense of self is an illusion, but if that's the case, it's just part of my experience. I know my experiences even if I can't say for certain what it is that I'm experiencing, or if it's truly me who's experiencing it.

    It could be that tomorrow, the walls of reality will bleed away, and my sense of self will dissolve into the ether. But I know my self and my experiences in the here and now, and that's enough for me.

    3 votes
  14. Comment on Counterproductive public-health messaging during the pandemic in ~health.coronavirus

    DMBuce
    (edited )
    Link Parent
    Sorry about that, I only checked this week's corona thread before posting. I don't pay close attention to the weekly covid threads because they tend to be full of shortform journalism with a...

    Sorry about that, I only checked this week's corona thread before posting. I don't pay close attention to the weekly covid threads because they tend to be full of shortform journalism with a handful of statistics that don't amount to much of anything that's actionable. Considering my lack of interaction with those threads, maybe I shouldn't have posted this.

    2 votes
  15. Comment on Counterproductive public-health messaging during the pandemic in ~health.coronavirus

    DMBuce
    Link
    Thought this article covered a lot of ground without wasting too much time and offered a nice perspective on the vaccine rollout.
    • Exemplary

    Thought this article covered a lot of ground without wasting too much time and offered a nice perspective on the vaccine rollout.

    3 votes
  16. Comment on The limits of argument — why rational debate doesn’t often change minds in ~humanities

    DMBuce
    Link Parent
    RE: your first point, why does it irk you? Do you think he did that on purpose, and is arguing in bad faith? Rewatching the section of the video you're talking about, it looks to me like he is...

    RE: your first point, why does it irk you? Do you think he did that on purpose, and is arguing in bad faith?

    Rewatching the section of the video you're talking about, it looks to me like he is clarifying her position to make sure he understands it correctly. Repeating back what your conversation partner says in your own words is a technique in S.E. that helps make sure both people are on the same page.

    I think that if Maritza had noticed what you noticed and pointed it out, Anthony would have apologized and restated her position again to make sure he understood it correctly. If that had happened, probably the conversation would have gone a different way.

    1 vote
  17. Comment on The limits of argument — why rational debate doesn’t often change minds in ~humanities

    DMBuce
    Link Parent
    Yeah, me neither. I'm not here to preach S.E., sorry if it came off that way. In my original comment, I was asking about methods of communication that can be used to productively engage with a...

    Yeah, me neither. I'm not here to preach S.E., sorry if it came off that way. In my original comment, I was asking about methods of communication that can be used to productively engage with a person's perspective when it runs counter to my own. I'm genuinely curious about that subject, and only brought up S.E. as an example of one such method that I've found useful in that regard.

    2 votes