HNHacker News
TopNewBestAskShowJobs

asicsp

11,365 karma · joined October 4, 2017

Author of several programming books and counting. Addicted to reading fantasy books.

https://github.com/learnbyexample

https://learnbyexample.github.io/books/

submissionscomments
asicsp··on Gene behind orange fur in cats found at last
Dupe: https://news.ycombinator.com/item?id=42291386
asicsp··on Ask HN: What were the best books you read this year?
I mostly read progression fantasy books these days. Here are some series that I enjoyed a lot:

* "Beware of Chicken" by CasualFarmer

* "The Immaculate Collection" by havlo

* "The Runic Artist" by Ellake

* "The Broken Knife" by SilverSidhe

* "Immovable Mage" by ImmovableMage

* "The Gorgon Incident and Other Stories" by John Bierce

* "Quest Academy" by Brian J. Nordon

* "The Weirkey Chronicles" by Sarah Lin

asicsp··on Show HN: Scooter – Interactive find and replace in the terminal
`find` can do that as well with `{} +` (at least, the `GNU` implementation and it'll automatically add more invocations if there are just way too many files).

In any case, OP was using `-n1` which means one file per invocation.

asicsp··on Show HN: Scooter – Interactive find and replace in the terminal
Why use `xargs` instead of `-exec`? And if you do need `xargs` (for example, for parallel processing with `-P`), it is recommended to use `-print0` with `find` and `-0` with `xargs` to avoid issues due to filenames.
asicsp··on MdBook – a command line tool to create books with Markdown
I use Zola (https://github.com/getzola/zola) - pretty fast and I was able to customize a few things as well.
asicsp··on MdBook – a command line tool to create books with Markdown
I use `mdbook` to provide free online versions of my ebooks (topics include regular expressions, Linux CLI tools and Vim): https://github.com/learnbyexample/scripting_course#ebooks

I chose `mdbook` over `pandoc` mainly because of themes and search provided by default.

asicsp··on Scheduling Model in LLVM – Part II
Part I: https://myhsu.xyz/llvm-sched-model-1/ (discussion: https://news.ycombinator.com/item?id=41161831)
asicsp··on Implementing Regular Expressions in TypeScript Types (Badly)
If you need to detect syntax issues, you can use `re.compile()`. For example, before Python 3.11, you'll get an error:

    >>> re.compile(r'\w++')
    re.error: multiple repeat at position 3
To use such a compiled pattern, you can call the method on this object instead of `re`. For example:

    >>> word = re.compile(r'\w+')
    >>> word.findall('hello-there!')
    ['hello', 'there']
asicsp··on FLOSS/fund for free and open source projects
>Perhaps it will allow the maintainer to take a few months off

Depends on where you live too - $10k would take care of 5 years for me.

From my experience though, it is better to figure out a way to sell something in addition to the open stuff.

asicsp··on Web Browser Engineering
See also this previous discussion:

https://news.ycombinator.com/item?id=28898157 (409 points | Oct 19, 2021 | 63 comments)

asicsp··on Idiomatic Awk (2010)
Not sure if it was intended, but it helps to keep CLI one-liners concise. For example:

    awk '!a[$0]++'

    awk '/search/{n=2} n && n--'
asicsp··on Idiomatic Awk (2010)
Seems like the link should be https://backreference.org/2010/02/10/idiomatic-awk/ instead of https://backreference.org/index.html
asicsp··on Ask HN: Platform for 11 year old to create video games?
https://microstudio.dev/ - supports JavaScript and Python
asicsp··on Ask HN: Cheap way to run a small newsletter?
Gumroad is a free option. I run a programming newsletter with about 1000 subscribers.
asicsp··on Ask HN: Sci-fi recommendations by non-western authors?
* "The Sword of Kaigen" by M.L. Wang

* "The Green Bone Saga" by Fonda Lee

* "The Weirkey Chronicles" and "Street Cultivation" by Sarah Lin

See also:

* Middle East/Middle Eastern SFF: https://old.reddit.com/r/Fantasy/comments/128ozc6/the_2023_r...

* Set in Africa: https://old.reddit.com/r/Fantasy/comments/ttrhvf/the_2022_rf...

* Set in Asia: https://old.reddit.com/r/Fantasy/comments/mhz3k7/the_2021_rf...

asicsp··on Visual guide to SSH tunneling and port forwarding (2023)
See also:

A Visual Guide to SSH Tunnels: Local and Remote Port Forwarding https://iximiuz.com/en/posts/ssh-tunnels/

asicsp··on Why to Not Write a Book
I have written a few blog posts: https://learnbyexample.github.io/tags/career/
asicsp··on Fixing an Elgato HD60 S HDMI capture device with the help of Ghidra
>Even clothes were reused

My mom repurposed old pants as bags (I used it to carry my books at college - did get a lot of odd looks, but that's what I could afford at that time). Even now, I cut pieces of old clothing to be used for cleaning purposes. Those habits die hard.

asicsp··on Why to Not Write a Book
On the flip side, converting my tutorials to ebooks saved me from having to look for a job again. Been selling them for 6 years (with the last two years spent just to update them to newer software versions, improve examples, new cover images, etc). Of course, I have the advantage of living in a developing country but selling to an international audience (just $200/month to pay my bills).
asicsp··on Desed: Demystify and debug your sed scripts
If you are able to install specific implementations of the tools, go with GNU tools on all the machines. That way, you'd get more features and work the same everywhere.

If that is not an option, go with Perl. It'd be a little slower, but you'll get consistent results. Plus, Perl has powerful regex, lots of standard libraries, etc.

asicsp··on Ask HN: What are you working on (August 2024)?
I hope you have a baby turtle too: https://old.reddit.com/r/BeAmazed/comments/1bkyopc/baby_turt...
asicsp··on Ask HN: What are you working on (August 2024)?
I published a revised version of my "Vim Reference Guide" ebook: https://learnbyexample.github.io/vim_reference/Introduction....

Then, I started working on an interactive TUI app for Python beginner exercises. I've previously written such apps for CLI tools (grep, sed, awk, coreutils, etc): https://github.com/learnbyexample/TUI-apps

asicsp··on So you want to build an embedded Linux system?
Discussion from 2020: https://news.ycombinator.com/item?id=24800037

Also, another in 2022: https://news.ycombinator.com/item?id=30273301

asicsp··on Robert Elder's Guide to GNU Coreutils
I wrote a book focusing only on text processing commands (includes exercises as well): https://learnbyexample.github.io/cli_text_processing_coreuti...

You can practice some of the exercises using this interactive TUI app: https://github.com/learnbyexample/TUI-apps/tree/main/CLI-Exe...

See also: https://ratfactor.com/slackware/pkgblog/coreutils, https://maizure.org/projects/decoded-gnu-coreutils/ and https://www.pixelbeat.org/docs/coreutils-testing.html

asicsp··on The Linux Kernel Module Programming Guide
See also: https://0xax.gitbooks.io/linux-insides/content/index.html
asicsp··on Bash-Oneliners: A collection of terminal tricks for Linux
Yeah, https://www.commandlinefu.com/commands/browse/sort-by-votes is a treasure trove.
asicsp··on Bash-Oneliners: A collection of terminal tricks for Linux
And if you spend some time answering questions on stackoverflow/reddit, it'll become interesting enough to publish books ;)
asicsp··on Bash-Oneliners: A collection of terminal tricks for Linux
See also: Entering text in the terminal is complicated (https://jvns.ca/blog/2024/07/08/readline/) — being able to diagnose what's going on makes the command line feel a more predictable and less chaotic
asicsp··on Introduction to Bash Scripting
See also https://mywiki.wooledge.org/BashGuide and https://github.com/denysdovhan/bash-handbook.

https://www.shellcheck.net/ is amazing to spot pitfalls.

See my list https://learnbyexample.github.io/curated_resources/linux_cli... for learning resources for CLI tools, scripting, etc.

asicsp··on Firefox 128 enables "privacy-preserving" ad measurements by default
There was an even earlier discussion with more comments: https://news.ycombinator.com/item?id=40952330 (192 points | 2 days ago | 180 comments)
← PreviousPage 2 of 34Next →