learnbyexample

joined 2 years ago
21
CPU performance (curiouscoding.nl)
29
GNU awk idioms explained (learnbyexample.github.io)
137
FFmpeg By Example (ffmpegbyexample.com)
37
Understanding Memory Management (educatedguesswork.org)
submitted 2 months ago by learnbyexample to c/programming
 

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 :)

[–] learnbyexample 4 points 3 months 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 6 points 4 months ago

I wish you success. I'm happy to use SimpleScreenRecorder(https://github.com/MaartenBaert/ssr).

[–] learnbyexample 2 points 5 months ago (1 children)

I'm not the site author, just submitting the link.

Not sure which part you need to be logged in to view - I'm seeing links to different articles and exercises and they are all visible without logging (I checked in an incognito window).

[–] learnbyexample 1 points 7 months ago

I have a list of learning resources for CLI tools and scripting here: https://learnbyexample.github.io/curated_resources/linux_cli_scripting.html

I've also written a few TUI interactive apps to practice text processing commands like grep, sed, awk, coreutils, etc: https://github.com/learnbyexample/TUI-apps

[–] learnbyexample 1 points 7 months ago* (last edited 7 months ago) (2 children)

Why do you think it is a phishing link? Gumroad is a well known platform to sell digital goods.

I mention it is free up to some date because it will go back to being a paid product after that.

[–] learnbyexample 3 points 8 months 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 1 points 9 months ago (1 children)

Not my blog, just sharing it here.

That said, I don't see that broken rectangle on Chromium.

[–] learnbyexample 2 points 10 months ago (1 children)

Is it regex or sed/awk syntax (or both) that gives you trouble?

I had similar reaction and didn't even try to learn them for years - then I caught the stackoverflow craze of answering CLI questions (and learning from others).

[–] learnbyexample 9 points 10 months ago (1 children)

oxipng, pngquant and svgcleaner for optimizing images

auto-editor for removing silent portions from video recordings

[–] learnbyexample 2 points 10 months ago

Not my blog, just sharing it here. Saw it on HN (https://news.ycombinator.com/item?id=40419325)

[–] learnbyexample 1 points 11 months ago (3 children)

What's the difference between two_percent and skim?

[–] learnbyexample 3 points 1 year ago

Check out https://novelwriter.io/

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

view more: ‹ prev next ›