Hacker Newsnew | past | comments | ask | show | jobs | submit | asphodele's commentslogin

A few tidbits I wish I had known about sooner:

bash: Ctrl-L to clear the screen

VSCodium: Shift+Alt+[arrows|mouse click] to select a rectangular block

scp for moving files (instead of ftp)


Ctrl-lpj is ingrained in my fingers.

Ctrl-l to clear the screen, Ctrl-p to select previous command, Ctrl-j to enter it again. I don't even use Enter key when in terminal anymore.

When you want to pause entering a command for a moment do Ctrl-a to go to the start of the line, and type # to comment out. Then Ctrl-j. You can return to that later with Ctrl-p, then Ctrl-a again and Ctrl-d to remove that comment.

To edit complex commands you might want to use Alt-e to enter $EDITOR.


Yes, but try rsync instead of scp. Mind the slash though!

Both rsync -avz /path/to/file user@server:/another/path/to/ or rsync -avz /path/to/file/ user@server:/another/path/to/file

Will create directory named /another/path/to/file which will contain all contents of the original directory (/path/to/file/*).

Basically, if you include the trailing slash in the source path, only contents of the directory will be copied (useful when you need to rename it).

    rsync -avz path/to/old_dir/ user@server:/path/to/new_dir
If you omit the trailing slash in the source path, rsync will create the target directory for you. See man rsync for more info.

if alcohol can damage your short term memory,

Imagine what effect alcohol has


Another word for 'going outside the cave' is 'seeking external validation'. If you need other people to tell you if what you believe is true or not, do you actually believe anything?


Other people are one of many ways you can test what you believe to be true but, yes, sometimes other people might have figured something out that you haven't, believe it or not.


You need to go out and observe the world to test your theories and hypotheses.


At last! My blargs have been in disarray for ages.


It sounds like someone hasn't yet invested in a turbo encabulator.


With less ice around than there used to be, the same incident energy can do a lot more ocean heating. It takes 80 calories to convert 1 gram of ice at 0C to 1 gram of water at 0C. Once the ice is melted, a further 80 calories can raise the temperature of the gram of water at 0C to 80C


Yep, once you learn about Latent temperature fusion, ones view on these things change drastically.

It also explains why boiling water doesn't spontaneously just explode into vapor once it hits that temperature


The concept of heat of fusion blew my mind when I learned about it in high school chemistry. Feels extremely counterintuitive at first.


Sitting Bull killed his first buffalo with bow and arrow from horseback at the age of 10.


An alternative for PHP full text search is the PHP DuckDB client [1], and using DuckDB with the Full-Text Search extension [2]. It also stores everything on the local file system and can scale to millions of records.

[1] https://duckdb.org/docs/lts/clients/php [2] https://duckdb.org/docs/current/core_extensions/full_text_se...


Thanks for the suggestion. DuckDB is a great tool, but it requires installing a native extension, which is exactly the scenario php-fts is designed to avoid. The primary target is shared hosting (OVH, Infomaniak, o2switch…) where you have no control over installed extensions. If you can install DuckDB, you can probably also run Meilisearch or Typesense, which are purpose-built for search.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: