Thank you for the very thorough reply! This is kind of high quality stuff you love to see on Lemmy. Your use cases seem very valid.
Thank you for the very thorough reply! This is kind of high quality stuff you love to see on Lemmy. Your use cases seem very valid.
Thanks for sharing this. I took the time to read through the documentation of the re
module. Here’s my review of the functions.
Useful:
re.finditer
returns an iterator over all Match objectsre.search
returns the first Match object or None if there are no matches.r''
use raw strings for patters so you don’t have to worry about backslashesflags
argument modifies the behaviour (case insensitive, multiline)Utility:
re.sub
replace each match in the stringre.split
split a string by a regular expressionThe Match object:
match.groups(0)
returns the portion of text matched by the patternmatch.groups(1)
returns the first capturing groupmatch.groups(2)
returns the second capturing group, and so onI don’t understand why these exist:
re.match
like search, but only matches at the beginning of the string. why not just use ‘^’ or ‘\A’ in the pattern you pass to ‘search’?re.fullmatch
like ‘search’, but only if the full string matches. Why not just use ‘\A’ and ‘\Z’ in the pattern you pass to ‘search’?re.findall
Returns all matches. It seems like a shitty version of ‘finditer’. The function has three different return types which depend on the pattern you pattern you pass to the function. Who wants to work with that?“they” ist kein Pluralwort. “they” ist ein Pronomen der 3. Person Singular sowie der 3. Person Plural. Das ist genau so, wie “you” ein Pronomen der 2. Personal Singular und der 2. Person Plural ist.
ShellCheck is a static analysis tool for bash/sh scripts - try it on your scripts. The README also shows some examples of what (not) to do.
The link to your project gives me a 404 btw, is it a private repository?
lf is a TUI file manager. In its Wiki, you’ll find a snippet to search with fzf and map it to a key.
That looks clean, thanks for posting the screenshot!
this is the first i hear of Arc, is it available as an iOS app only?
fixed, thank you!
you’re right, my bad
deleted by creator
Mount a remote file system via SMB or NFS and it’ll work like any folder on your PC - but you need a network connection to access it. If you need offline mode, maybe create a folder /offline and replicate it to your hard drive with a bidirectional synchronization tool like unison or syncthing. As for providers, personally I use Hetzner Sotrage Box because the price and service looks good enough to me that I didn’t bother to look for alternatives.
KDE Discover is a GUI application for adding/removing packages from different sources
Tests: Add a few test files.
That’s fair advice. Thanks for your good intentions. I’m very sorry about the snark. That was uncalled for.
** Unable to decrypt this comment **
deleted by creator
I think this is an excellent video and I love the format of walking through a complete on-prem deployment.
My only criticism is the attack on “the cloud” as a whole. You can choose your level of abstraction, from a computer in the cloud (like EC2) to managed services (like EB). Personally I don’t want to deal with hardware, so I use a Compute instance on Oracle cloud (free tier). The rest of my setup is similar to the author’s.
I watched the Simpsons as a kid. Never thought much about it, but Homer’s Enemy is the one episode that resurfaced in my mind as an adult decades later.
YES!!! I recognized it as a Goosebumps cover instantly too! What a blast to the past, I loved those. This one is from book #4 “Say Cheese and Die!”