HNHacker News
TopNewBestAskShowJobs

jks

564 karma · joined June 20, 2011

submissionscomments
jks··on Debian opens a can of username worms
Likewise. My last name contains a non-ascii character. In ~2009 I started at a company whose admin conveniently set up an account for me on their Ubuntu server... on which no-one could then log in locally because the login manager crashed when trying to display the list of users. I logged in via ssh and changed my name to the nearest ASCII equivalent.

I always feel slightly worried on sites that demand that I give my full legal name (such as the US ESTA form), and then refuse to handle it because it includes "illegal" characters.

jks··on Debian opens a can of username worms
PETSCII? On the Commodore 64 you could press the Commodore key and Shift together to change character sets between lowercase and the graphical characters.

But the Unix login thing might have been because of teletypes? https://www.columbia.edu/cu/computinghistory/teletype/ claims that ASR 33 used 8-bit ASCII but was uppercase only - not sure if the "8-bit" claim can be true.

On some Unix (and Linux) systems, you can still enter a kind of retro mode with "stty olcuc iuclc" (output lowercase to uppercase, input uppercase to lowercase) and turning on Caps Lock.

jks··on Kagi Teams
The Kagi founder mentions 2% in a response to a feedback thread

https://kagifeedback.org/d/5445-reconsider-yandex-integratio...

jks··on Using Cloudflare on your website could be blocking RSS users
Yes, you can do it with a "page rule", which the parent comment mentioned. The CloudFlare free tier has a budget of three page rules, which might mean that you have to bundle all your rss feeds in one folder so they share a path prefix.
jks··on Beyond Ctrl-C: The dark corners of Unix signal handling
Curiously, on many terminal emulators the following work:

Ctrl-2 = Ctrl-@ = NUL byte

Ctrl-3 = Ctrl-[ = ESC

Ctrl-4 = Ctrl-\ = default for SIGQUIT

Ctrl-5 = Ctrl-] = jump to definition in vim

Ctrl-6 = Ctrl-^ = mosh escape key

Ctrl-7 = Ctrl-_ = undo in Emacs

I think these probably originate in xterm.

jks··on The "email is authentication" pattern
Banking credentials are used a lot in Finland to sign into other services. This means you get phishing emails saying "your medical test results are available" or "you're getting a tax return" where the actual goal is to get into your bank account.
jks··on The "email is authentication" pattern
Estonia has this: <https://e-estonia.com/solutions/estonian-e-identity/id-card/>

Finland tried to copy it, but the Finnish card (while based on the same technology) is used very little. Finnish banks already had their own OTP solutions, which they started offering for authentication on other web sites, so no-one wanted an extra authenticator on top of that. This of course means that you get phishing emails pretending to be from all sorts of government services, where the goal is to get your banking credentials and take your money.

Since then, mobile phone operators added their own authentication system based on credentials residing on your SIM card <https://mobiilivarmenne.fi/en/>. You prove your identity when getting a mobile phone contract and can then use that to log into many sites.

jks··on ReMarkable Paper Pro
Would be interesting to hear from someone who has compared this and https://daylightcomputer.com/
jks··on Server Setup Basics for Self Hosting
I recommend checking out Caddy <https://caddyserver.com/>, which replaces both Nginx and Certbot in this setup.

Tailscale <https://tailscale.com/> can remove the need to open port 22 to the world, but I wouldn't rely on it unless your VPS provider has a way to access the server console in case of configuration mistakes.

jks··on What causes migraines? Study of 'brain blackout' offers clues
The blip could be a focal seizure, you might want to talk with a neurologist? https://en.wikipedia.org/wiki/Focal_seizure
jks··on SymPy: Symbolic Mathematics in Python
You can run it in Jupyter notebook. They have a lightweight implementation of that at https://live.sympy.org/ but the closest counterpart to Maple would probably be SageMath, which includes sympy and a lot more. https://www.sagemath.org/
jks··on Kagi search reached 20k paying members
"Sizes are first come first serve" so I suppose they estimate how many of each size they need and then let people get a shirt as long as their size is available.
jks··on Consortium launched to build the largest open LLM
The TurkuNLP team does have the best previous-generation language model for Finnish (FinBERT). The current version of ChatGPT speaks passable Finnish, although definitely not at the level it speaks English. None of the open-source models I've tried come close to ChatGPT performance.

If they can gather a good multilingual dataset including the smaller European languages, and burn enough money on the compute, they could create a useful model for some specifically European use cases.

jks··on Frasier Fantasy
I think they were credited in each season finale - a "Thank You for Calling" screen.
jks··on Recursive Recipes
I heard this from a Russian friend years ago (so I might get the details wrong): to make the Cocktail Recursive, mix

- 1 unit of vodka

- 2 units of water

- 3 units of Cocktail Recursive

jks··on Anything longer ago than yesterday should just say the actual date
In the other direction (and on a different scale) I hate it when the bus-schedule app I use tells me that my bus leaves "in 8 minutes". Ok, I'll put on my shoes and jacket, check if I have all the stuff in my bag - darnit, I forgot my book, can I spend a minute searching for it and still catch the bus? I check the time, which is 9:57, and I remember that the bus leaves... 8 minutes after some unspecified moment a few minutes ago.
jks··on Humid Heat Can Kill Us Much Faster Than We Thought
There used to be a Finnish sauna endurance competition where the temperature was 110℃. It was canceled in 2010 after one contestant died.

https://en.wikipedia.org/wiki/World_Sauna_Championships

jks··on Impacts of lack of sleep
If you don't like drugs, look up Cognitive Behavioral Therapy for Insomnia (CBT-I). It is kind of a collection of tricks, but it goes further than your basic sleep hygiene checklist. One thing it includes that helps many people if they can do it is the Spielman sleep-restriction protocol: https://stanfordhealthcare.org/medical-treatments/c/cognitiv...
jks··on Impacts of lack of sleep
That dose may be ten times too high: https://slatestarcodex.com/2018/07/10/melatonin-much-more-th...

I was prescribed melatonin by a doctor, and the dose went up little by little from 3mg to 10mg before we decided it didn't work for me. Sure it helped me fall asleep, but then I woke up a few hours later and couldn't sleep again. Years later I have started taking 0.5mg (1mg is the smallest pill I could find, and I split them in two) and it's much better that way.

Low-dose doxepin (3mg) has also helped, but I find that I have to take breaks from it, because it stops working after a while. This dose is much lower than the usual dose for depression, but a local pharmacy manufactures the pills based on a doctor's prescription.

jks··on Making Hard Things Easy
This is because && and || are often used as conditionals:

    [ -e README ] && cat README
avoids an error if the file README doesn't exist, and

    [ -e README ] || echo "You should write a README!"
works the opposite way.

What's more pernicious is that pipelines don't cause the shell to exit (assuming set -e) unless the last command fails:

    grep foo README | sort
does not fail if README doesn't exist, unless you've also used `set -o pipefail`.
jks··on Ask HN: Why does Google rank the real Python documentation below content farms?
Somehow kagi.com manages to rank the top results better than Google:

- a stackoverflow answer that has a useful example: https://stackoverflow.com/a/18351977/

- the Python documentation: https://docs.python.org/3/library/stdtypes.html

- Pandas documentation (they also have an endswith): https://pandas.pydata.org/docs/reference/api/pandas.Series.s...

- a blog post on Python regular expressions (this looks useful but is a wrong result for this query): https://www.johndcook.com/blog/python_regex/

- something that could be a content farm with rephrased Python documentation: https://pythontic.com/concepts/string/introduction

The top three results are good, and I guess it's a matter of taste whether the succinct Stackoverflow answer is better than the verbose official documentation.

jks··on Analysis of Obfuscation Techniques Found in Apple FairPlay
I think the trend may be because longwinded writing gets you authority points on Google, or at least because writers think it does. Recall the famous laser printer review from earlier this year:

https://www.theverge.com/23642073/best-printer-2023-brother-...

jks··on nic.funet.fi: Serving freely distributable files with FTP since 1990
Of course you could still use {} etc, they just might show up as localized characters in your source code. There was no character set conversion involved at the source code level, your terminal font just might have had the glyph for ä in the place of {.

The people who designed the Finnish keyboard layout were definitely not programmers, though: https://kbdlayout.info/KBDFI/

jks··on nic.funet.fi: Serving freely distributable files with FTP since 1990
Just look at all those services available from nic.funet.fi: https://web.archive.org/web/19961105014833/http://nic.funet....

Archie, X.500, ftp, gopher, telnet, irc, mailing lists, USENET, WAIS, WWW (remember to use WWW clients), a caching WWW server for Funet members, Alex ("Global filesystem for all anonymous ftp sites with caching (experimental)")

You could telnet into the system with username info and use command-line clients for some of these services if you didn't have access at your home university.

I vaguely remember using an email-based service to access web pages: you sent the URL to an address and got a reply with the page contents rendered as text. That probably wasn't Funet but something else.

jks··on nic.funet.fi: Serving freely distributable files with FTP since 1990
The earliest description about the hardware I can find on archive.org is:

> The main server is a Sun4/630MP-41 with (14-Feb-94) over 20GB GB archive disk space

https://web.archive.org/web/19961105014909/http://nic.funet....

jks··on nic.funet.fi: Serving freely distributable files with FTP since 1990
Because 7-bit ASCII didn't include accented characters used in many European langauges, there were national changes. The Finnish variant replaced {|}[\] with äöåÄÖÅ.

https://en.wikipedia.org/wiki/National_Replacement_Character...

jks··on Emacs 29.1
I rarely see Emacs freeze even with Tramp, but admittedly I rarely see broken connections. I think in that case VS Code will throw up a modal dialog telling you to reload the window, and after reloading you have the option to sever the connection.

For me the main problem with Tramp is the slowness - opening and saving files takes just a tiny bit too long. I'm sure VS Code's approach with a remote server can be faster.

jks··on The shell and its crappy handling of whitespace
This reminds me of the story in which Don Knuth wrote a literate program in WEB (reportedly over 10 pages) to do some text processing and Doug McIlroy did the same thing in a six-line shell script:

http://www.leancrew.com/all-this/2011/12/more-shell-less-egg...

jks··on Emacs 29.1
I changed from .emacs to .emacs.d/init.el when it became possible, because that seems neater. Some years later I decided to see what fancy packages the young folks like, and started using vertico, orderless, marginalia, embark, and consult. I'm still going to reserve judgment on embark and consult, but at least the first three packages are certainly great additions.
jks··on Emacs 29.1
In that scenario you can often use Tramp - run Emacs locally and let it use ssh and scp to modify the files on the target system. Does the VS Code remote editing require some kind of server component on the remote system or does it manage it through ssh and shell commands?

Thankfully the cases where the only available editor is /usr/ucb/vi are starting to get rare.

← PreviousPage 2 of 7Next →