HNHacker News
TopNewBestAskShowJobs

oneshtein

680 karma · joined February 26, 2023

submissionscomments
oneshtein··on Next.js 15 Markdown Boilerplate
I use one line static site generator:

  for I in *.md; do pandoc "$I" --template=template.html --metadata title="My Site" -o "${I%.md}.html"; done
oneshtein··on Bash Prompts Collection
I use Linux for 30 years. Never had this problem. However, I saw newbies, which copy paste commands from tutorials to shell and then frustrated, because # is a comment.
oneshtein··on Show HN: Hacker News em dash user leaderboard pre-ChatGPT
On Linux, we are free to add symbols to third or fourth level:

ʼ́ ¹² € § ° ≤≥ • — – ≠± ®©™ «» „“ …

oneshtein··on New interpretations suggest the "heat death" hypothesis might not hold (2023)
Black holes are perpetual motion machines.
oneshtein··on New interpretations suggest the "heat death" hypothesis might not hold (2023)
Some will evolve, some will stay. We are evolved from 1 billion year old bacteria, which still there, on Earth.
oneshtein··on Open Source is one person
The FSB is looking for people they can recruit, even here, on HackerNews, too. Look at the HN news history. You will find stories about Russian history or culture. In comments, some people are expressing their fascination with Russia or its culture. This is how FSB identifies potential sympathizers, who are easy to recruit. Most likely, some of those, who expressed their sympathy under such news articles a year or two ago, are already recruited by FSB.
oneshtein··on Sci-Hub has been blocked in India
Yep, I spoke. Yeo, they don't care, or have no clue. Nope, I respect their choice. IMHO, SciHub should be opt-in instead of opt-out to be legal.
oneshtein··on Sci-Hub has been blocked in India
Authors decided to pay to these journals and play by their rules in return for something, that have value for them. I respect their choice. However, I also want to have better science with free access. I can reproduce few papers, and publish my work for free, if someone will peer review them for free.
oneshtein··on Sci-Hub has been blocked in India
Obviously, someone must buy the paper, reproduce it, compare with original work, and then publish result for free. Same thing as for free software: someone must by a computer, write a software, then publish it on github.
oneshtein··on Sci-Hub has been blocked in India
Scientists can reproduce the findings and publish their own paper, instead of pirating someone else work.
oneshtein··on Google will allow only apps from verified developers to be installed on Android
Users need a new feature or a new power to justify transition. Learning of new OS is not free. Someone should reuse Android UI, but upgrade the OS to full Linux.
oneshtein··on Google will allow only apps from verified developers to be installed on Android
USA was a democratic country just less than a year ago. Are there constitutional ways to remove a bad actor or a traitor from the power?

It looks like pattern there is that a some powerful guy or company just removes rights and freedoms we had by small pieces. Those small pieces are not worth to fight for, until frog is boiled alive.

oneshtein··on Bash Strict Mode (2014)
bash-modules project tries to implement "modules", which works in strict mode, but it got no traction.
oneshtein··on 4chan will refuse to pay daily online safety fines, lawyer tells BBC
What domain name we need to put into hosts file?
oneshtein··on Zedless: Zed fork focused on privacy and being local-first
How to opt-out of unrequested pop-ups and various helpers, or download and installation of binary files without permission?
oneshtein··on An interactive guide to sensor fusion with quaternions
It cannot work, because x,y,z are not used at all.
oneshtein··on An interactive guide to sensor fusion with quaternions

  /* Produce a quaternion from an axis-angle representation.*/
  function quat_from_axis(theta: number, x: number, y: number, z: number) {    
    const halfcos = Math.cos(theta * 0.5);    
    const halfsin = Math.sin(theta * 0.5);    

    return new Quaternion(
        halfcos,
        axis[0] * halfsin,
        axis[1] * halfsin,
        axis[2] * halfsin,
    );    
  }
Function is vibe coded.
oneshtein··on PixiEditor 2.0 – A FOSS universal 2D graphics editor
It doesn't fit my 2k screen on Fedora (X11/Mate) with no option to scale it down. It looks like 4k screens are supported only.
oneshtein··on Programmers aren’t so humble anymore, maybe because nobody codes in Perl

  Yes, I hate to write

  sub foo($$$) {
    my ($a, $b, $c) = @_;
  }
Where @_ is array of arguments, and ($$$) is function prototype (3 scalars are expected).
oneshtein··on Why does a fire truck cost $2m
€300 drones are anti-personal ones. They unable to penetrate tank armor except when tank is abandoned and sits open. Drones in current generation are 10x more expensive even when produced in Ukraine.
oneshtein··on Why does a fire truck cost $2m
Russia uses GPS module «Cometa» («Комета») with 4-24 GPS modules at one plate.

https://reibert.info/lots/kometa.1605164

https://reibert.info/lots/kometa.1605128

https://www.olx.ua/d/uk/obyavlenie/kometa-8-kometa-m-gps-IDY...

https://www.olx.ua/d/uk/obyavlenie/kometa-5-kometa-m-gps-IDY...

oneshtein··on Ageing accelerates around age 50 ― some organs faster than others
Because those will need 5x more time to become adults.
oneshtein··on Never write your own date parsing library
I mean, than nucleus is much heavier and much smaller than electron, so it will be much less affected by external forces. We may see no difference between sea level and space based Thorium-229 clocks, or difference will be much smaller.
oneshtein··on Never write your own date parsing library
Why not just make a map of dates to days since 0001-01-01 in a plain text, then compress it at build time? We are not constrained by memory anymore.

Just use simple database as source of truth with all days passed since a start of human history (e.g. 6000 years ago) with labels such as "this day 12345678 was known as day XXXX-xx-xx in those regions, also known as YYYY-yy-yy in those regions, also known as ZZZZZ in this specific region". It's not a hard task to automatically compress such database into a compact representation.

oneshtein··on Never write your own date parsing library
A much more precious clock is used by USA to guide nuclear missiles without GPS. (nucleus of Thorium 229 controlled by a high-precision UV laser?)
oneshtein··on Never write your own date parsing library

  $ LANG=C date --date="01/02/03"
  Thu Jan  2 00:00:00 EET 2003

  $ LANG=de_AT.utf8 date --date="01/02/03"
  Do 02 Jän 2003 00:00:00 EET

  $ LANG=zh_HK.utf8 date --date="01/02/03"
  2003年01月02日 星期四 00:00:00 EET
oneshtein··on AI coding agents are removing programming language barriers

  for dir in $(cat dirs.txt); do ( cd "$dir"; echo "Hello from $(pwd)" ); done
oneshtein··on Staying cool without refrigerants: Next-generation Peltier cooling
It looks like joke today, but it's not a joke anymore.

Book can look at your search history youtube history, or reading history to have insight about your points of interest to create list of topics you like, then generate pages on the fly using LLM.

oneshtein··on Debugging Bash Like a Sire (2023)
You can use bash-modules if you like stack traces in bash.
oneshtein··on The borrowchecker is what I like the least about Rust
If you cannot write a simple data structure, you can ask/hire a senior developer to do it for you. In it current shape, Rust good for seniors, but a bit hostile against newbies, like C++, TypeScript, etc.
← PreviousPage 6 of 32Next →