38
[-] learnbyexample@programming.dev 2 points 2 years ago

This might work, but I think it is best to not tinker further if you already have a working script (especially one that you understand and can modify further if needed).

perl -pe 's/\[[^]]+\]\((?!https?)[^#]*#\K[^)]+(?=\))/lc $&=~s:%20|\d\K\.(?=\d):-:gr/ge'
131
FFmpeg By Example (ffmpegbyexample.com)
35
Understanding Memory Management (educatedguesswork.org)
33

Hello!

I recently published a new version of my Understanding Python re(gex)? ebook.

This book will help you learn Python Regular Expressions step-by-step from beginner to advanced levels with hundreds of examples and exercises. In addition to the standard library re, the third-party regex module is also covered in this book.

Release offers

To celebrate the new release, you can download the PDF/EPUB versions for free till 31-Jan-2025:

Interactive TUI app

I wrote a TUI app to help you solve exercises from this book interactively. See PyRegexExercises repo for installation steps and app_guide.md for instructions on using this app.

See my blog post Python regex cheatsheet for a quick reference.

Web version and GitHub repo

You can read the book online here: https://learnbyexample.github.io/py_regular_expressions/

Visit https://github.com/learnbyexample/py_regular_expressions for markdown source, example files, exercise solutions, sample chapters and other details related to the book.

Feedback and Errata

I would highly appreciate it if you'd let me know how you felt about this book. It could be anything from a simple thank you, rating/review, pointing out a typo, mistakes in code snippets, which aspects of the book worked for you (or didn't!) and so on. Reader feedback is essential and especially so for self-published authors.

Happy learning :)

16
21
34
33
20
60
22
43
[-] learnbyexample@programming.dev 3 points 2 years ago

I use Vim ;)

Python itself provides IDLE, which is good enough for beginners. https://thonny.org/ is another good one for beginners.

As mentioned by others, Jetbrains is good for many languages. https://www.kdevelop.org/ is another option.

[-] learnbyexample@programming.dev 3 points 2 years ago

I started reading progression fantasy on Royal Road earlier this year (a site for posting web serials). Here's my current follow list (excluding stories that are on hiatus):

  • The Runic Artist — isekai, rune-based crafting, good mix of action and slice-of-life
  • The Broken Knife — Kobold MC with a dragon companion, dark but compelling read, excellent worldbuilding
  • Demon World Boba Shop — cozy isekai, nice characters
  • Dual Wielding — slow burn, tale of two friends (both very talented), writing is good, action scenes get dark and intense
  • Legends and Librarians — cozy romance, magical library (not litrpg/progression), plenty of cute creatures
  • An Otherworldly Scholar — isekai, teacher MC, good worldbuilding, nice romance, great characters, plenty of twists, adventure and danger, especially enjoyed the slice-of-life stuff
  • Archmage from Another World: Gaining Administrator Access — isekai from another fantasy world, lighthearted fun with good set of characters, no looming world-level threats so far
  • Underkeeper — MC is a recent magical academy graduate, good at magic but works as underkeeper (no money/connections to join adventurer groups), got darker than I'm comfortable with, but loved the characters and the demon companion
  • Immovable Mage — good worldbuilding, characters, plot twists and detailed magic system, clever use of plot events pushes MC towards OP, would suggest to read at least till the end of 2nd arc
  • Level One God — likeable MC, cool magic stuff I haven't seen before, some bad moments are really dark, good writing
  • Spire's Spite — criminally underrated with only 100+ followers, mostly been spire climbing so far, good magic system, dark and has some stuff I don't like but overall I've enjoyed it
  • Blood Curse Academia — overall I enjoyed the combination of action, learning and mystery, but a lot of weird coincidences and stuff didn't make sense
  • Mana Mirror — loved the concept of mana garden and the myriad customization options, writing and plot was easy to follow, third volume is the best so far
  • The Maid Is Not Dead — writing felt like traditionally published epic fantasy with progression elements, slow burn but events are starting to escalate
  • Dark Lord's Last Call — MC's soul is swapped with the dark lord, plans to open a tavern, enjoyable light-hearted read
  • Orphan — I usually ignore the litrpg math but this one takes it a bit too far! characters all have flaws (though sometimes it becomes a bit too irritating), good worldbuilding and mystery
  • Rules of Biomancy — 70 year old herbalist MC with a secret past comes across two isekai-ed people in danger of dying and decides to help, enjoying a lot
[-] learnbyexample@programming.dev 3 points 2 years ago

Check out https://novelwriter.io/

I'm not familiar with such softwares (I use pandoc for technical writing), but might help you..

[-] learnbyexample@programming.dev 3 points 2 years ago

Yeah, it is uncommon spelling, but if you google, you'll find it's not that rare ;)

[-] learnbyexample@programming.dev 3 points 2 years ago

I'm self-published and haven't worked for other publications. Sometimes, my submissions reach HN front page, so you might have seen there or because others picked it up from there and shared around elsewhere.

[-] learnbyexample@programming.dev 3 points 2 years ago

Thanks a lot for the kind words! Means a lot to me :)

[-] learnbyexample@programming.dev 3 points 2 years ago

Stormlight Archives can be daunting to those not familiar with Sanderson's works, especially since the books are long (1000+ pages) and the first book is setting up a long 10-book series (plus other stuff from a wider universe).

If you'd like something smaller and standalone to try first, check out "Emperor's Soul" (novella) or Warbreaker (novel).

[-] learnbyexample@programming.dev 3 points 2 years ago* (last edited 2 years ago)

+1 for Murderbot!

[-] learnbyexample@programming.dev 3 points 3 years ago

Into Thin Air by Jon Krakauer

Krakauer examines what it is about Everest that has compelled so many people -- including himself -- to throw caution to the wind, ignore the concerns of loved ones, and willingly subject themselves to such risk, hardship, and expense. Written with emotional clarity and supported by his unimpeachable reporting, Krakauer's eyewitness account of what happened on the roof of the world is a singular achievement.

[-] learnbyexample@programming.dev 3 points 3 years ago

You can do it in Bash as well. Put this in .inputrc:

"\e[A":history-substring-search-backward
"\e[B":history-substring-search-forward

# or, if you want to search only from the start of the command
"\e[A": history-search-backward
"\e[B": history-search-forward
view more: ‹ prev next ›

learnbyexample

0 post score
0 comment score
joined 3 years ago