HNHacker News
TopNewBestAskShowJobs

semanticc

59 karma · joined August 5, 2023

submissionscomments
semanticc··on Plan mode is dead
Write schema/data migration files [with agents] in version control and deploy those deterministically (after review).
semanticc··on I think you should almost never use AI to write
I don't want to sound offending, but if that is your own writing style, it makes sense why AI writing resonates with you.
semanticc··on Mag 7 starting to underperform [pdf]
That's not an effect. As both in the case of a dividedend and a stock buy back, the company's market cap drops by the amount of cash that's being distributed out, creating an identical re-buying situation in market cap-weighted index funds. Stock price itself is irrelevant for index fund rebalances (unlike for shareholder returns).
semanticc··on Regular expressions that work “everywhere”
> So for my definition of “everywhere,” with the caveats mentioned above, the following features work everywhere. YMMV.

  .
  ^, $
  […], [^…]
  \*
  \w, \W, \s, \S
  \1 - \9 backreferences
  \b \B
  ? + 
  | alternation
  {n,m} for counting matches
  (...) capturing
Except that these don't work in macOS/BSD sed (even with -E flag):

- \w, \W, \s, \S - need to use POSIX classes instead: [[:alnum:]], [^[:alnum:]], [[:space:]], [^[:space:]]

- \b - need to use use [[:<:]] (word start) and [[:>:]] (word end) instead

- \B - (not a word start/end) no alternatives

semanticc··on Why TUIs are back
Easy with https://karabiner-elements.pqrs.org on Mac.
semanticc··on Highlights from Git 2.54
It's not documented, but unfortunately neither of these re-signs the commits even if GPG signing is configured. They are based on `git replay`, and that doesn't sign either (at least yet).
semanticc··on Slightly safer vibecoding by adopting old hacker habits
How/why did it consume more tokens?
semanticc··on Shell Tricks That Make Life Easier (and Save Your Sanity)
I think the script would be named as `#` so that it can be called via `\# mycmd` instead of `\\# mycmd`.
semanticc··on Ubuntu 26.04 Ends 46 Years of Silent sudo Passwords
Unless you disable cursor blinking because you find it annoying (like I do).
semanticc··on Show HN: OneCLI – Vault for AI Agents in Rust
Node 24+ does respect HTTP_PROXY when NODE_USE_ENV_PROXY=1 is set.
semanticc··on Git's Magic Files
> GitHub’s contributor graphs use mailmap.

This is not true, .mailmap is [unfortunately] not supported by GitHub: https://github.com/orgs/community/discussions/22518

semanticc··on Non-Zero-Sum Games
Do you have an example of this in mind where the known "tit for tat" strategy falls short?
semanticc··on You already have a Git server
Linux is not developed in GitHub.
semanticc··on Million Times Million
You don't seem to get the point. That is only universal in current day English. In e.g. Finnish: miljoona = 1e6, miljardi = 1e9, biljoona = 1e12, triljoona = 1e18.
semanticc··on A non-anthropomorphized view of LLMs
What's your suggested alternative?
semanticc··on Ask HN: Best underrated way to get a job in tech during a hiring slowdown?
It's essentially <insert god of your choice>
semanticc··on Repo with backdated junk, filled with my system, right after I filed patent
Even if the meaningful content would have been older than yours, faking Git timestamps is trivial.
semanticc··on Cache loop and memory loss in GPT – a user-side fix (tested with GPT itself)
I know this is somewhat true, but it's just a pity. Proper grammar is something I try to cherish, and I've specifically added – and — to my custom keyboard layout for convenient access.
semanticc··on Project Sid: Many-agent simulations toward AI civilization
.al is just the TLD for Albania, similarly as .ai is for Anguilla. No idea why anyone would choose the former.
semanticc··on Company named "><SCRIPT SRC=HTTPS://MJT.XSS.HT> LTD" forced to change it (2020)
Ehh, I don't know about that. CSV header row is more of a metadata for humans to me.
semanticc··on Hacker plants false memories in ChatGPT to steal user data in perpetuity
The new chat memory feature got enabled by default.
semanticc··on All web "content" is freeware
Internet != Web. E.g., an ebook downloaded from Apple Books is not web content, even if it comes from the Internet.
semanticc··on 3rd Edition of Programming: Principles and Practice Using C++ by Stroustrup
I would start with Python instead of C++, if you just want to learn a useful tool as a hobby. The official tutorial is a good starting point: https://docs.python.org/3/tutorial/index.html
semanticc··on The end of Airplane.dev
Why was the employees' common stock worth $0? Liquidation preference for the outside investors? Related: How can a regular employee joining a startup know beforehand that there isn't a high chance of their equity (which is probably a significant part of their total comp) being worthless even if a big acquisition is made?
semanticc··on Forging signed commits on GitHub
Regex is the parser for regular languages.
semanticc··on Unix Time reaches 1.7 billion
Yes, truly curious. It's not like base 10 is used anywhere in our society.
semanticc··on Unix Time reaches 1.7 billion
You are probably not running a 32-bit IoT device.
semanticc··on Diamonds Suck
The [artificial] scarcity and [unjustifiably] high price are properties of almost all luxury goods. And those are exactly what makes them (watches, handbags, diamonds etc.) so desirable to many.

I fully agree that spending two months' gross salary on an engagement ring is way too much though, and I would never ever get into debt for that. But, similarly as I enjoy wearing a relatively useless but expensive watch daily, I didn't mind dropping approx. 2/3 of a month's net salary on my fiancé's diamond engagement ring, which she got to choose and now cherishes and admires every day.

semanticc··on Hidden manuals: gittutorial, giteveryday, gitglossary, gitworkflow
The only problem with `apropos` is that it returns so many irrelevant results:

  $ apropos 'count lines' | wc -l
     167

  $ apropos 'count lines' | head
  AllPlanes(3), BlackPixel(3), WhitePixel(3), ConnectionNumber(3), DefaultColormap(3), DefaultDepth(3), XListDepths(3), DefaultGC(3), DefaultRootWindow(3), DefaultScreenOfDisplay(3), DefaultScreen(3), DefaultVisual(3), DisplayCells(3), DisplayPlanes(3), DisplayString(3), XMaxRequestSize(3), XExtendedMaxRequestSize(3), LastKnownRequestProcessed(3), NextRequest(3), ProtocolVersion(3), ProtocolRevision(3), QLength(3), RootWindow(3), ScreenCount(3), ScreenOfDisplay(3), ServerVendor(3), VendorRelease(3) - Display macros and functions
  EVP_PKEY_asn1_find(3ssl), EVP_PKEY_asn1_find_str(3ssl), EVP_PKEY_asn1_get_count(3ssl), EVP_PKEY_asn1_get0(3ssl), EVP_PKEY_asn1_get0_info(3ssl) - enumerate public key ASN.1 methods
  EVP_PKEY_meth_get_count(3ssl), EVP_PKEY_meth_get0(3ssl), EVP_PKEY_meth_get0_info(3ssl) - enumerate public key methods
  OCSP_REQUEST_new(3ssl), OCSP_REQUEST_free(3ssl), OCSP_request_add0_id(3ssl), OCSP_request_sign(3ssl), OCSP_request_add1_cert(3ssl), OCSP_request_onereq_count(3ssl), OCSP_request_onereq_get0(3ssl) - OCSP request functions
  OCSP_resp_find_status(3ssl), OCSP_resp_count(3ssl), OCSP_resp_get0(3ssl), OCSP_resp_find(3ssl), OCSP_single_get0_status(3ssl), OCSP_resp_get0_produced_at(3ssl), OCSP_resp_get0_signature(3ssl), OCSP_resp_get0_tbs_sigalg(3ssl), OCSP_resp_get0_respdata(3ssl), OCSP_resp_get0_certs(3ssl), OCSP_resp_get0_signer(3ssl), OCSP_resp_get0_id(3ssl), OCSP_resp_get1_id(3ssl), OCSP_check_validity(3ssl), OCSP_basic_verify(3ssl) - OCSP response utility functions
  OPENSSL_malloc_init(3ssl), OPENSSL_malloc(3ssl), OPENSSL_zalloc(3ssl), OPENSSL_realloc(3ssl), OPENSSL_free(3ssl), OPENSSL_clear_realloc(3ssl), OPENSSL_clear_free(3ssl), OPENSSL_cleanse(3ssl), CRYPTO_malloc(3ssl), CRYPTO_zalloc(3ssl), CRYPTO_realloc(3ssl), CRYPTO_free(3ssl), OPENSSL_strdup(3ssl), OPENSSL_strndup(3ssl), OPENSSL_memdup(3ssl), OPENSSL_strlcpy(3ssl), OPENSSL_strlcat(3ssl), CRYPTO_strdup(3ssl), CRYPTO_strndup(3ssl), OPENSSL_mem_debug_push(3ssl), OPENSSL_mem_debug_pop(3ssl), CRYPTO_mem_debug_push(3ssl), CRYPTO_mem_debug_pop(3ssl), CRYPTO_clear_realloc(3ssl), CRYPTO_clear_free(3ssl), CRYPTO_malloc_fn(3ssl), CRYPTO_realloc_fn(3ssl), CRYPTO_free_fn(3ssl), CRYPTO_get_mem_functions(3ssl), CRYPTO_set_mem_functions(3ssl), CRYPTO_get_alloc_counts(3ssl), CRYPTO_set_mem_debug(3ssl), CRYPTO_mem_ctrl(3ssl), CRYPTO_mem_leaks(3ssl), CRYPTO_mem_leaks_fp(3ssl), CRYPTO_mem_leaks_cb(3ssl), OPENSSL_MALLOC_FAILURES(3ssl), OPENSSL_MALLOC_FD(3ssl) - Memory allocation functions
  PKCS5_PBKDF2_HMAC(3ssl), PKCS5_PBKDF2_HMAC_SHA1(3ssl) - password based derivation routines with salt and iteration count
  RSA_set0_key(3ssl), RSA_set0_factors(3ssl), RSA_set0_crt_params(3ssl), RSA_get0_key(3ssl), RSA_get0_factors(3ssl), RSA_get0_crt_params(3ssl), RSA_get0_n(3ssl), RSA_get0_e(3ssl), RSA_get0_d(3ssl), RSA_get0_p(3ssl), RSA_get0_q(3ssl), RSA_get0_dmp1(3ssl), RSA_get0_dmq1(3ssl), RSA_get0_iqmp(3ssl), RSA_get0_pss_params(3ssl), RSA_clear_flags(3ssl), RSA_test_flags(3ssl), RSA_set_flags(3ssl), RSA_get0_engine(3ssl), RSA_get_multi_prime_extra_count(3ssl), RSA_get0_multi_prime_factors(3ssl), RSA_get0_multi_prime_crt_params(3ssl), RSA_set0_multi_prime_params(3ssl), RSA_get_version(3ssl) - Routines for getting and setting data in an RSA object
  TIFFFieldPassCount(3tiff) - get whether to pass a count to TIFFGetField/TIFFSetField
  TIFFFieldReadCount(3tiff) - get number of values to be read from field
semanticc··on Writing HTML by hand
Are you talking about web components?
Page 1 of 2Next →