HNHacker News
TopNewBestAskShowJobs

b5n

382 karma · joined September 23, 2019

submissionscomments
b5n··on Curl removes experimental HTTP back end in Rust
_lib_curl

https://curl.se/libcurl/

https://curl.se/docs/companies.html

b5n··on Advent of Code 2024
I've generally chosen a new (to me) or spartan lang to challenge myself, but this year I'm going easy mode with python and just focusing on meeting the requirement.
b5n··on Ask HN: Has anyone tried adapting a court reporter keyboard for writing code?
You might consider using a templating system similar to `yasnippet` to expand abbreviations.

https://github.com/joaotavora/yasnippet

b5n··on Seer: A GUI front end to GDB for Linux
Personally I prefer cli over tui, but you can just toss something like this in a `.gdbinit`:

  tui new-layout default regs 1 {-horizontal src 1 asm 1} 2 status 0 cmd 1
  tui layout default
  tui enable
b5n··on Day Rates (2023)
I've found hourly with an initial up front minimum works well.
b5n··on PEP 760: No more bare excepts
I've spent a lot of time fixing/explaining python exceptions over the years, and I get pretty annoyed when I encounter bare exceptions. Exceptions themselves are so often misunderstood, it seems most people just take them at face value. However, do we really need to dull all the sharp edges and add guardrails to every fucking thing? In a corporate environment, sure, you can implement all the protections you like _without attempting to force your constraints on all users_.

If you care about types, safety, etc. there are plenty of fantastic projects that share your priorities, but they don't need to bleed into everything under the sun.

Sharing and adopting new ideas is healthy, but homogenization kills creativity.

Maybe I'm just grumpy today.

b5n··on Source-Available Is Meaningless
So we've moved on from open washing to full on source laundering lmao.

I'd like to buy a beer for the 'zealot' that buried themselves so far underneath the author's skin that they were compelled to write this useless article.

This is currently the top post, feeling pretty disappointed in you hn.

b5n··on Speech Dictation Mode for Emacs
I assume this varies widely across setups.

    (use-package visual-regexp
      :defer t
      :bind (("C-c r" . vr/replace)
             ("C-c q" . vr/query-replace)
             ("C-r" . vr/isearch-backward)
             ("C-s" . vr/isearch-forward)))

    (use-package visual-regexp-steroids
      :defer t)
b5n··on Ask HN: Which LLMs can run locally on most consumer computers
Quantized 6-8b models run well on consumer GPUs. My concern would be vram limits given you'll likely be expecting the card to do compute _and_ graphics.

Without a GPU I think it will likely be a poor experience, but it won't be long until you'll have to go out of your way to buy consumer hardware that doesn't integrate some kind of TPU.

b5n··on Everything Curl
I've built a few projects on top of libcurl, the documentation is great, they've made it very easy to get started.

Big thanks to everyone involved in the project.

b5n··on FreeBSD has a(nother) new C compiler: Intel oneAPI DPC++/C++
The year is 2074, I'm still using gcc and emacs :)
b5n··on Useful Uses of cat
I usually do it all in awk:

    awk '/mail/ && NR <= 500 {...}' access.log
If you want N matched lines:

    awk '/mail/ && i < 500 {i++; ...}' access.log
b5n··on Guix on the Framework 13 AMD
https://guix.gnu.org/manual/en/html_node/Channels.html

https://gitlab.com/nonguix/nonguix

b5n··on A Pursuit of Simplicity
https://suckless.org/philosophy/
b5n··on Mozilla's new Firefox Linux package for Ubuntu and Debian derivatives
I just use whatever is in debian testing or unstable, but it's trivial to download firefox _directly_ from mozilla which will then keep itself updated to the latest version.

This just chucks firefox in /usr/local but its straightforward to edit and use ~/, opt, etc., just make sure the created symlink is somewhere in $PATH. Desktop integration will depend on your DE/WM, but should be pretty simple to figure out if not automatic.

    wget -O firefox-latest.tar.bz2 \
      "https://download.mozilla.org/?product=firefox-latest-ssl&os=linux64&lang=en-US"
    tar xjf firefox-latest.tar.bz2
    sudo rm -rf firefox-latest.tar.bz2 /usr/local/bin/firefox /usr/local/firefox
    sudo mv firefox/ /usr/local/
    sudo ln -s /usr/local/firefox/firefox /usr/local/bin/firefox
b5n··on Cisco to acquire Isovalent
IME certs are good for two things, novices who lack fundamentals and vendor partnerships (discounts and/or feature access that requires N certified devs/admins/etc.).

There's also the case where documentation is poor/nonexistent, but the vendor charges customers for 'training' and all of a sudden useful resources become available. I've always felt it's a weird way to treat _already_ paying customers, but seems common in the networking world.

b5n··on The secretive rise of the 'overemployed'
I'm aghast! Everyone must RTO now! We're laying off 20%, and bonuses (if any) will now be paid in Amazon gift cards. We stand together in these difficult times.

Sincerely,

-CEO of V

-Board member of W

-Board member of Y

-Director of dishonest charitable foundation Z

*Reminder, I'll be out of the country 11/17 - 1/15, taking the entirety of our extended family to Bali. Love, peace, and prosperity to all!

b5n··on Is this radical redesign of GIMP possible now?
Just to contrast the negativity here I'd like to say that GIMP is great software, and I really appreciate all the hard work that has been put into it over the years. It's powerful, easily scriptable, and I'm eternally grateful for everyone's contributions to the project.

https://www.gimp.org/docs/

b5n··on The Netwide Assembler (NASM)
You can get pretty far just by linking libc :)
b5n··on Beej's Quick Guide to GDB (2009)
> I wonder why it's not the default.

You can toss something like this in ~/.config/gdb/gdbinit:

  tui new-layout default regs 1 {-horizontal src 1 asm 1} 2 status 0 cmd 1
  tui layout default
  tui enable
b5n··on Things I like about Zig as a Go Programmer
And we'll keep building the systems that power the world so you can continue to feel right at home. You're welcome!
b5n··on Progress on No-GIL CPython
Even simpler:

  parallel -j96 'python -c "print('{}')"' ::: $(for i in {1..96};do echo $i;done)
b5n··on Show HN: One makefile to rule them all
I've found this to come in handy, and it is easy to modify to immediate needs.

  .DEFAULT_GOAL = help

  .PHONY: help
  ##@ HELP
  help: ## display this help
          @awk 'BEGIN {FS = ":.*##"; \
          printf "\033[1mUSAGE\n\033[0m  make \033[36m<TARGET>\033[0m\n"} \
          /^[a-zA-Z_-]+\.*[a-zA-Z]*:.*?##/ {printf "  \033[36m%-12s\033[0m %s\n", $$1, $$2} \
          /^##@/ {printf "\n\033[1m%s\033[0m\n", substr($$0, 5)} \
          /^###/ {printf "\033[0m\t\t %s\033[0m\n", substr($$0, 4)}' $(MAKEFILE_LIST)

  .PHONY: foo bar baz
  ##@ DEMO
  foo: bar ## foo target
  ### additional foo target details
          @echo foo

  bar: ## bar target
          @echo bar

  baz: ## baz target
          @echo baz
b5n··on Small business owners say they're pressured to hire off-duty cops for security
It's worth considering that this is the same attorney general who recently doxed all law abiding concealed carry permit holders, applicants, and others (including but not limited to home address, phone, DL number, etc.) many of whom are victims of domestic violence, stalking, and sexual assault.
b5n··on How LSP could have been better
I'm curious to know what `company` does differently here than `corfu`.

As a longtime user I couldn't be happier: https://company-mode.github.io/

b5n··on Python Type Hints – *args and **kwargs (2021)
I usually start with a namedtuple unless I need the additional features provided by a dataclass.
b5n··on Python Type Hints – *args and **kwargs (2021)
Call me crazy, but I just use a statically typed language where static types are required.
b5n··on Mastering Emacs
I've always just used my palm for [`C`].

From OP of your link: http://xahlee.info/kbd/i2/palm_control_key_youngstabber_2013...

b5n··on GNU Parallel, where have you been all my life?
Quick solution:

    parallel -j 10 curl 2> /dev/null \
        ::: $(for i in {1..10};do echo 'https://whatever.com';done)
b5n··on micro – A Modern Alternative to nano
`vimtutor`
← PreviousPage 2 of 6Next →