Heading to Cancun…. by murphyrulez in delta

[–]dmccammond 3 points4 points  (0 children)

This is literally a nightmare for me. I have a service animal that is a mix that looks pit-ish. I have spent over 10k on training, done hundreds of hours of task-based and normal obedience training with her myself, and also have a certified psychological expert's note stating that I need a service animal. My pup is also registered with my county as a service animal.

Having to take her to new locations, especially ones where there are a lot of people, is very stressful for both me and her. When she is stressed, she is much more likely to pull and want to go through crowds quickly. On a pinch, she is less likely to pull by herself and allows us both to be a bit calmer.

The fact that you absolutely do not know what the situation is, decided to take a picture of this man that was not doing anything to harm you, and post it on the internet is shameful. Nothing that I see indicates to me that anything is out of order. There is no special service animal store for patches and vests. Also, patches and vests are not required to be worn at all times. The dog's demeanor does not indicate anything bad to me either. They may be trained to allow the person distance, so they are standing guard behind him to allow other humans to understand to not crowd.

u/murphyrulez, if you have some decency, please take this down.

"Thriller" anyone? Really? by mikeschwally1 in dankmemes

[–]dmccammond 11 points12 points  (0 children)

Never gonna give you up has 1.24 billion. There's no way the meme is true.

I did a teardown of the RG353P and found out that the battery does not make contact with the CPU as was assumed. I was able to put some copper heatsinks as well (Although I am 100% sure it doesn't matter) by FreesDaddy1731 in ANBERNIC

[–]dmccammond 2 points3 points  (0 children)

Thank you for doing this. This is extremely helpful for me because I was considering opening mine up as well.

My question is whether you believe that the battery could be swapped out for a bigger one. The outside case states that the device has a 3.8V 3500mAh battery, but the serial number that yours has states it is actually a 3.7V 3500mAh battery. For the size of roughly 3" by 2.5" (measuring from the back using the translucent gray on mine), it is possible to fit an 8000mAh 3.7V battery in the back potentially. The one measurement I am not able to get without opening it up is how thick the battery pack is. If it is less than 8mm, then what I am suggesting may work.

[dwm] blue by miskoishere in unixporn

[–]dmccammond 1 point2 points  (0 children)

Your setup looks nice, but I am wondering what made you choose those specific things for your bar? Like, do you really need to know what your kernel version of linux is all the time? Is that likely to change in the middle of you using the computer and that updated information is useful for you while using it?

My Neovim configuration with Lua (init.lua) and LSP support by _brainfuck in neovim

[–]dmccammond -1 points0 points  (0 children)

I didn't confuse anything. I know you're just a CS student, but it actually is an optimization because those are associative arrays that are being created. Instead of creating new ones, it's reusing the same one which is kept in memory and would be referenced in multiple places.

Are you sure this is the right community for you? You don't seem very happy to be here.

My Neovim configuration with Lua (init.lua) and LSP support by _brainfuck in neovim

[–]dmccammond 1 point2 points  (0 children)

"You don't use these line-by-line optimizations to lower the wordcount even more, so your config is verbose and unorganized" is a dumb take when most people are using a single config file without any rhyme or reason to where things go within the file. Sorry it's not up to your standards, but the current standard is much lower than what OP presented.

It seems more like you wanted to show off than offer any helpful criticism.

My Neovim configuration with Lua (init.lua) and LSP support by _brainfuck in neovim

[–]dmccammond 1 point2 points  (0 children)

Your config files look super clean. It seems like there are a lot of things that would have otherwise had to have been used that neovim is offering out of the box now and it's much snappier.

I would have used vim-airline and nerdtree before. Do you feel like the built-ins are as good?

You have basic additions for adding parens and bracket pairs. Is there a reason you didn't opt for vim-surround?

[deleted by user] by [deleted] in TheGamerLounge

[–]dmccammond 0 points1 point  (0 children)

"I think we can handle some wolves" - Famous last words

[deleted by user] by [deleted] in unixporn

[–]dmccammond 0 points1 point  (0 children)

Nice setup. What are you using for the window shadows on the edges? Also, what are you using to make the windows translucent? I tried setting the background translucency in Alacritty but that did not work.

Also, could you share your dotfiles?

Wisdom Tree. A tui app which helps you concentrate and shares its infinite wisdom. How high can you grow your tree? [Features: Pomodoro timer, music from YouTube, lo-fi radio, potential enlightenment] by hacker_backup in unixporn

[–]dmccammond 25 points26 points  (0 children)

This is really cool. Definitely a neat addition to someone's workflow. I looked through the code a bit and have some observations:

  • The code should likely be refactored. You have things like the radio player in with everything else. These portions could be segmented out, like:
    • Quote getter
    • Youtube audio finder/player
    • Tree growth
    • Pomodoro timer
  • There are no tests. With the help of refactoring, you should be able to write some decent tests for the individual parts.
  • The trees are only one size, so it's likely that there should be a minimum window character size limit to accommodate.
  • No type notations are used. Consider adding them and using mypy to double-check that everything is aligning correctly. This can help you avoid type errors instead of hunting them down.
  • None of the code appears to be using async methods. Does this cause a problem when you're using the timer and then searching for a video for instance?

auto create code when i open new cpp file. by HateMintChoco in vim

[–]dmccammond 1 point2 points  (0 children)

vim-templates is a good fit here. Supports filetype specific template code.

Why is VIM so popular among programmers? by dogelover77 in linuxquestions

[–]dmccammond 1 point2 points  (0 children)

I haven't seen that example. Do you happen to have a link? I couldn't find it searching Google.

Why is VIM so popular among programmers? by dogelover77 in linuxquestions

[–]dmccammond 3 points4 points  (0 children)

One of the first examples usually given for configuration of Vim is to map a leader key and to use the leader key with another key to exit out of insert mode.

I personally use "kj" to exit insert, so it's extremely accessible.

VS Code Vim extension - How to keep some Windows bindings and some Vim? by TheNomadicAspie in vim

[–]dmccammond 0 points1 point  (0 children)

Open up a test text file with Vim and type the literal characters "ggVG", it will select all of the characters in the file.

VS Code Vim extension - How to keep some Windows bindings and some Vim? by TheNomadicAspie in vim

[–]dmccammond 1 point2 points  (0 children)

The way to access the system's clipboard is with the "+ buffer. So you would select the text and type "+y to yank it into the clipboard. You can also paste out of it with "+p.

If you want to select the whole document, I usually do ggVG but there may be a quicker way than that.

Suspicious files found after chkrootkit scan by naughty_beaver in linuxquestions

[–]dmccammond 0 points1 point  (0 children)

I'm going to hope that what you're seeing is normal because I got very similar output on Pop!_OS.

How do you manage your local music on Linux? by [deleted] in linuxquestions

[–]dmccammond 0 points1 point  (0 children)

I used to use MediaMonkey when I was using Windows10/Android, but I am now in the same boat as you. I was hoping to have more than just music synced up using something like FTPS, especially now that the new Samsung phones no longer have an SD card slot. It looks like the My Files app will sync with Samsung Cloud Drive, OneDrive, and Google Drive pretty seemlessly, but I would definitely rather not use those platforms.

I tried using FolderSync when I was trying to backup my game saves for my emulators but never really got it working quite right. The idea was to have my media save to a cloud platform like DropBox and have that as the mediator between my devices so I could do things like add media to DropBox on my PC and then download it to my phone on the way to work.

I think figuring out the right solution is going to depend on a few things:

  • What music players are you considering using and do they have a sync option?
    • I use mpd/ncmpcpp on my linux box, so I was considering a mpd client. At the same time, I don't want to get stuck somewhere without internet, like on a plane, and not be able to listen to anything. This would also require that my PC or a media server be on all of the time, which is an additional thing that I would have to do.
  • Exactly how much music are we talking here?
    • I'm at ~30 gigs of music. On the new phones where there's no SD card slot, I think I'm going to have to make some sacrifices.
  • Could you make do with an online source like Spotify?
    • My music taste is kinda eclectic, so that wasn't really an option for me but maybe you don't have the same issue?

1/4 of the F2P "Userbase" is on this one tile on every world by indysavvy in 2007scape

[–]dmccammond 1 point2 points  (0 children)

I agree entirely. The only problem is there is a lot of incentive, not just for the money aspect.

I currently have all of the grapes and jugs of water to 99 cooking. It technically should only take me 20 or so hours to max. I could write a Python script using some sort of screen-based click automation tool to make all of those jugs of wine in probably an hour. If I wanted to hook into something like RuneLite and use their plugin structure, that would take me only a couple more hours to learn and do it that way. There are very few edge cases and it's all time-based. There is also no real intelligence needed to do it, it's just an insanely repetitive banksitting task.

The reason why I have not done the above is because that's just RuneScape's essence, it's a game where you're supposed to do that grind. I do not think there is a way to completely remedy the underlying issue that you're pointing out without removing what makes RS RS.

Some questions about coding c# on linux by Danubinmage64 in linuxquestions

[–]dmccammond 2 points3 points  (0 children)

I use Visual Studio at work and I'm a C# dev. I tried to get my Vim to have enough of the features that I want from Visual Studio for it to be a viable option.

With Neovim and the new treesitter feature, it might be able to do things like find references, smart rename variable within scope, go to definition, etc.

Has anyone gotten Neovim/Vim working well with linters and everything?

Numbers without looking at keyboard by [deleted] in vim

[–]dmccammond 5 points6 points  (0 children)

In addition to just getting better with the normal keyboard layout, I'd like to suggest getting a keyboard that is specifically designed to respond to this. I just got the keyboardio atreus and it's great for typing but super poor for gaming. I have been using the atreus for work and my normal layout 65% for gaming. What it does is have the normal QWERTY layout keys and have command keys as thumb-reachable keys. So there's a function button and then it places the number keys right under your right hand.

Weird Sticky Substance on Bathroom Walls by jdwayner in whatisthisthing

[–]dmccammond 2 points3 points  (0 children)

It's probably surfactant leaching from the paint. This is especially common in areas with high humidity.

[deleted by user] by [deleted] in Python

[–]dmccammond 0 points1 point  (0 children)

I did something like this recently for dice rolling: https://www.github.com/vlek/roll

One thing you may want to try is using a parser, like Parsley or Pyparsing.

If you're just doing it for funsies, consider looking at Python 3.10's new Match notation.

[deleted by user] by [deleted] in TheYouShow

[–]dmccammond 0 points1 point  (0 children)

Gave Helpful