HNHacker News
TopNewBestAskShowJobs

joveian

1,496 karma · joined August 21, 2013

submissionscomments
joveian··on Engineering Sleep
The one I like to take at night is Life Extension 300mcg (.3mg) 6 hour timed release (they make a bunch of different ones), which is the closest to natural melatonin release of any supplemental melatonin I've seen, although it sounds like there is massive variation between people in how much makes it to the blood from a given dose. There are a couple of ways to use melatonin and for circadian use a small non-delayed dose earlier may be better (or use both):

https://circadiansleepdisorders.org/treatments.php#melatonin

I have had issues waking up more frequently when taking melatonin. It sounds like while not common this side effect is not that rare either. Based on my severe sleep issues (primarly circadian) I suspect that one part of "sleep issues" for many people is actualy waking up issues and that the detailed process around waking up has a bigger influence than is currently appreciated. I suspect one reason that melatonin is helpful is that it sets the stage for a better wake up, however if something causes this wake up procedure to start after not enough sleep it can be more difficult to get back to sleep. The delayed release seems to help quite a bit to limit the chance of this happening for me, although it does still happen at times. I'm not sure if melatonin is a particularly good option for staying asleep.

Unfortunately, there aren't particulary good options. Magnesium is the easiest and as effective as anything for me but unfortunately a high enough dose to be effective will also make me tired the next day. However, if your diet is low on magnesium then just increasing that some might help or possibly you won't have the issue with tiredness the next day. baclofen helps me but has issues and I certainly would not recommend it for your case.

A short (few minutes) nap mid day helps the circadian rhythm but longer naps can make it harder to stay asleep at night. If you nap for longer periods, multiple times, or later in the day that is the first thing I would suggest changing. I'm not sure what length causes more trouble but I think getting to sleep but staying asleep as briefly as you easily can is the ideal (though if you will naturally wake up after a bit longer that might be better than an alarm).

I also noticed covid made my already bad sleep worse when I had it (most likely covid, not confirmed by test; cold or flu usually give me better sleep for a day or two). However, I didn't notice any lasting issues (I still have severe sleep issues but it was just that first week of covid that they seemed to be different from usual). I wonder if it could be just your memory of how you sleep that changed after you noticed it due to the disruption. As long as you can easily get back to sleep and aren't staying awake for long it should not cause trouble and is not uncommon. If you feel rested there is nothing to fix while worrying about it or trying to change it could case worse trouble.

These are my thoughts anyway, hopefully something in there is helpful :).

joveian··on Engineering Sleep
Thanks for sharing! I have severe circadian issues: non-24, except that my body also still in some ways follows the sun and I do much worse when awake at night. I've noticed that other accounts I've read from people who do well with around 6 hours of sleep are similar to yours and feature highly regular sleep times. From the reading I've done it seems there are a number of hormones involved in both sleep and waking activity with strong circadian rhythms and I suspect that at any given time I have a mix of night and day hormones. Of course people can famously fool themselves easily that they are getting enough sleep when they aren't but based on my experience I could easily believe it to be a superpower to have everything unusually well synchronized and I fully agree with your doctor's advice.
joveian··on Noise-canceling single-layer woven silk and cotton fabric
I've looked into this before and unfortunately it is quite difficult to get good sound isolation and the answer is basically no. The really effective stuff is mass vinyl and as the name suggests it is quite heavy (and expensive). There are even some tents that musicians sometimes use for a few people to play together in a noisy environment that are hundreds of pounds without even being large enough for a bed. As I understand it, the mass is necessary for the best sound dampening. Also, once you get non-trivial sound dampening the way you let air in tends to be the easiest way for sound to get in. Even the heaviest cloth curtains would mostly help with any echos in your room rather than the initial sound itself. Maybe in some circumstances even minimal sound reduction would be helpful but you may also do a bunch of work and find it ends up making no difference.

Noise generators seem like the better way to start if you aren't using one already. I haven't tried many options but from the reviews I've seen fans are the best at this. In my experience ceiling fans do help quite a bit and there are some bedside noise generators that are fans but enclosed to limit the external air movement if the noise happens in colder weather. There are also some with speakers that play recorded fan noise, although beware of ones where the sample loops too quickly (I'm not sure what the best option to use your own recording would be). Unfortunately even getting to the point where you don't wake up (at least not enough to notice) may not fully remove the impact but it would still help quite a bit.

joveian··on TIL: Some surprising code execution sources in bash
Why I couldn't guess but an example similar to the article that I tried does not immediately execute (version 5.2.37(1)-release) when indrected through a variable as you show although other aritmetic evaluation does still happen when indirected. You can echo "${num}" and it shows the passed string. If you change it to declare -i num ; num="${1}" then it does immediately execute.
joveian··on AAA – Analytical Anti-Aliasing
Not a parent but I still agree that short games are great, 2-3 hours are great (or even a bit less, there is a reason for the standard 90 minute movie). 4-5 hours can be nice too ("chapter" divisions are helpful). Games are inexpensive and plentiful these days so a nice short game is great for everyone not just people with little time for playing games. (I guess I should say the flip side is that time spent with characters is one of the interesting things that games can use to good effect and bonus objectives that encourage you to explore details of the world can be nice too depending on the type of game and are easily skipped).

The best game settings have a scene to illustrate the effect of choices along with estimated(?) performance. Unfortunately I haven't seen that too often (mostly Falcom games that PH3 worked on). I agree that stating the impact on performance is quite helpful when settings need to be lowered. Usually they are ordered "best performance" to "nicest looking" so I set the last one and only fiddle with them if necessary (a smooth 12fps works great for me so luckily that isn't often).

joveian··on I was banned from the hCaptcha accessibility account for not being blind (2023)
Also, if you use a larger minimum font size often the text describing the thing you are supposed to select is under the image and unreadable. With hCaptcha it varies depending on the size of the popup window with the captcha and Google seems to reliably show just the top (barely enough to figure it out most of the time).
joveian··on HPV vaccination: How the world can eliminate cervical cancer
> called a women's clinic, made an appointment, and paid for it myself

Planned Parenthood is great for this kind of thing in the US. I don't know what they charge but just checked and at least the one I've gone to in the past has it.

joveian··on Trump wins presidency for second time
1) Sure it can happen and mistakes happen in any voting system. You can't tell who wins a close election until all the votes are counted, that is pretty much the definition of a close election. FPTP elections are also miscalled at times.

2) Anyone who cares to look at a heat map will need to learn how the new system works then will appreciate the additional information (the ballot could usefully also include approval information as a distinct aspect that doesn't affect results so that it is possible to determine how many voters like their representative, but I would say that approval voting does not communicate that).

3) Why do you think hand counting improves auditability? Being able to hand count does of course but actually doing the main count by hand doesn't seem to me like it would add anything. Not that I am opposed to hand counting, in that case you just wait for the ballots. As issues go it is way down the list from the other properties of the voting system in my opinion.

4) That one was 2018 or 2019 I think and an older one I saw was published in 2013 so yeah it sounds like this research is fairly recent and still being improved.

I don't see politics as a 0-sum game but people absolutely have fundamental differences where politics is the non-violent way to come to a resolution. These differences can be non-obvious if it isn't important to you and proportional representation gives a better chance that an elected representative will be able to understand and care about your issue (which increases the chance it can be solved easily if it isn't a contentious issue even if your favored representative doesn't otherwise have power). To put it another way, if the point of an election is to elect a represetative then proportional representation aims to give everyone representation within the practical limits of the number of representatives. Ideally, this would also make it easier for the representative to explain actual points of contention and tradeoffs (and basic stuff like what they are actually able to affect) to constituents and build general political competence, although I can't say that what I know of countries that use proportional representation is as promising as I would like on that. Ultimately a voting system alone can't do everything, representation isn't the only possible reason to ever have an election, and my personal ideal of how political resolution of differences can or should work involves a number of things quite different from currently common methods. Overall I see FPTP elections as more of a show to distract from behind the scenes power than a system designed to resolve differences peacefully and approval voting seems similar to me (in my opinion one of the most important things a voting method should try to do is limit the effect of strategic voting).

joveian··on Trump wins presidency for second time
1) This is not worse than FPTP at all since they are the same in the case of two candidates and FPTP has horrible properties with multiple candiates (the condorcet loser can win the election). Ranked voting can use various methods (condorcet or hybrid) to make sure the winner is the condorcet winner or in the smith set but that adds complexity and no voting method has every desirable property (IRV does not always elect the condorcet winner). Approval voting also can elect the condorcet loser which seems like quite a bad property to me (particularly since this can be affected by strategic voting).

2) Any confusion is due to lack of familiarity and the additional information can be useful beyond determining the winner.

3) This is only true when hand counting a lot of votes (just because you don't want to do it multiple times). Portland just had an election with STV for council seats and IRV for Mayor and these elections were (when possible) called early. You can see the early results here:

https://rcvresults.multco.us/

4) From a quick Google Scholar search there are risk-limiting audit options for IRV that usually work with few ballots but in occasional worst cases can need a full recount. See Blom et al. Ballot-Polling Risk Limiting Audits for IRV Elections:

[PDF] https://www.researchgate.net/profile/Michelle-Blom-3/publica...

I agree with buzzy_hacker that proportional representation is the most important thing to aim for. The main advantage of IRV is that it is easy to understand for single winner elections if you use STV for proprotional representation (which seems like a good choice for the US to me). As far as I know Ireland only has the President (a ceremonial role) individually elected but the US has a bunch of individually elected positions so going directly to the Irish system would be a bigger change.

joveian··on Interview gone wrong
Maybe consider chained comparison operators early textual replacement along the lines of the C preprocessor, although the exact textual replacement would involve temporary variables to avoid multiple side effects and be more complicated than just "(a) == (b) and (b) == (c)". (a==b)==c does not expand, only the version without parentheses expands, so you can still do the boolean comparison if you want.
joveian··on Wikipedia article blocked worldwide by Delhi high court
Thanks, this article quoted in that discussion provides helpful background (written about a different case but might apply):

https://indconlawphil.wordpress.com/2020/05/16/a-sullivan-fo...

"Quashing in a criminal defamation case is a difficult prospect. This is because – to simplify – under Section 499 of the IPC, a prima facie offence of defamation is made out with the existence of a defamatory imputation, which has been made with the intention or knowledge that it will cause harm. This is, evidently, a very low threshold. Section 499 also contains a set of exceptions to the rule (such as statements that are true and in the public interest, statements made in good faith about public questions, and so on) – but here’s the rub: these exceptions only kick in at the stage of trial, by which time the legal process has (in all likelihood) dragged on for years. What we essentially have, therefore, is one of those situations where the cost of censorship is low (instituting prima facie credible criminal proceedings), but the cost of speech is high (a tedious, time-consuming, and expensive trial, with the possibility of imprisonment). Long-standing readers will recall that this structure of criminal defamation law – and the chilling effect that it causes – was part of the unsuccessful 2016 challenge to the constitutionality of Section 499."

joveian··on Smarter Than 'Ctrl+F': Linking Directly to Web Page Content
That is an interesting issue (detect differing resource loading based on the document jump) that affects regular fragments as well, but the idea is that particularly sensitive pages would know not to have fragment targets in the page but couldn't prevent text fragments. The solution given (deterministic loading independent of jump target) seems like a good idea to work towards but meanwhile I agree it is a minor concern and pages should not avoid reasonable navigation due to this issue. Particularly since there are often other ways of getting the same information with the same type of network analysis.
joveian··on Smarter Than 'Ctrl+F': Linking Directly to Web Page Content
At least in Firefox there is still a difference even if you don't have a separate search bar. Ctrl-K goes to the URL bar as a search in your default search engine while Ctrl-L goes to the URL bar in whatever mode it currently is in. This mostly matters if you disable searching by default in the URL bar but still search from the URL bar, although there is also a visual indication that you are searching with Ctrl-K in the default configuration.
joveian··on Valve says Steam users don't own a thing, GOG says its games can't be taken away
Technically the parent company is CD Projekt S.A. that has two main divisions, CDPR (for game development) and GOG (the store). CDPR is quite a bit larger and has a few legal entities.
joveian··on Valve says Steam users don't own a thing, GOG says its games can't be taken away
It isn't a zip file (that is Itch) but an installer (you can't easily install it just as a non-admin user on Windows, although on Linux it does install under the current user). They had a .tar.gz for Linux at first but now use a self-extracting installer there as well. A few years ago they said (didn't save the link) that only something like 5% of customers just use the offline installers (and I'm fairly sure not all that many more ever downloaded them, although it might be higher now after a few update issues in Galaxy). It is unfortunately not uncommon for games released on GOG to not have Linux versions available elsewhere. CDPR games have had Galaxy-exclusive bonus items, which is hardly being friendly to offline installers.

I don't have any inside knowledge but there is clearly an internal battle at CD Projekt (and their investors since they are a public company) between those who want to print money doing the unethical stuff that other game developers and stores do and those who want a more customer friendly approach. They tried a more ethical online focused thing with GWENT (that ended up partly under GOG due to relying on Galaxy and was a big reason they pushed for higher Galaxy use for a while) but it ended up not really making much money. Things like this California law are great to help support the availability of DRM-free games.

Also, GOG has around 6500 games now and I'd be supprised if they were involved in getting more than about 100 of them to work on modern systems. Galaxy has been around over half the time GOG has been in business (as an online store, not counting the early CD Projekt days). You are thinking of the early days of GOG but they are quite a bit larger now and CD Projekt as a whole is much larger now. I still think they are the best option to support DRM-free games but they are not the same as when they started (not only in bad ways, the refund policy is great now).

joveian··on On the design of text editors (2020)
Thanks for the thoughts and encouragement :). Microtypography is interesting and contracting letters to justify would definitely make a lot of sense when starting with a near monospace proportional font. It looks like a nice keyword used in a few other ways as well in some interesting typography articles :).
joveian··on On the design of text editors (2020)
I've enjoyed the occasional old typewritten paper I've come across so maybe that is part of what I like about it :). I much prefer that to many of the issues I see all over the place on the web (like too small line height). I think there is a density vs readability tradeoff and Intel One Mono does well at lower density readable text (at least on screen). Although I think some proportionality can be done without loss of readability and hard to say what I would prefer in print.

I've been meaning to try Intel One as my main sans-serif font in the web browser and just changed it (adding it to the top of sans-serif in fontconfig). Looking around a bit I would say the one less than ideal aspect is the word spacing and setting that to -.3ch via stylus to test (unfortunately not a long term solution since it messes up other fonts) makes it look even better (particularly with justified text which gets quite unreasonable with the mono space as the starting point). Maybe I'll try to create a derived "almost mono sans" that just adjusts the space width.

joveian··on Linux from Scratch
I'm not sure about the others but the full NetBSD base system can be cross compiled from Linux (and maybe some other unixy systems) using the included build script (I'm not sure what the current state of cross compiling pkgsrc is, likely not as good). You could add or remove things from the base system to learn more about how the build system works or create different install sets or something along those lines, although just looking at what the build system does might be as helpful.
joveian··on Show HN: kew – A Terminal Music Player for Linux
It is still relevant because sometimes those local files come from the network and aren't trusted.

Looks like a nice project, I like the terminal album art display :).

joveian··on Terminal colours are tricky
This isn't an alternative since most programs won't send the color by default to a pipe (however, it is much better to use less -R than the article's -r so you don't get other escape codes causing trouble). The alternative to unbuffer is that most commands that use color (in my experience) recognize --color=always (or --color=never or the usual default --color=auto for no color to pipes).
joveian··on On the design of text editors (2020)
:). Try Intel One Mono if you haven't, personally I like it better than proportional fonts for latin characters.

https://github.com/intel/intel-one-mono/releases

joveian··on Ask HN: Should you reply STOP to unwanted texts?
I at least have a different user account that only does TOTP but it isn't really a second factor if it is on the same device (since the idea is to make getting access to the code significantly more difficult than just getting access to the password).

I like this simple TOTP code generator:

https://github.com/arachsys/totp

joveian··on On the design of text editors (2020)
Thanks for the references on the historical usage!

I have also been starting to think about something a bit similar (but more restricted) on the terminal side, how to adjust terminals to work well with at least proportional fonts (since some languages really need them) and maybe a larger font possibility that uses two lines (I think retaining the fixed size cell as a basic layout feature would be a good idea even if the one cell to one character mapping is removed). Maybe also out of band signaling. Something with much more limitations than the web or GUI (such that the user can configure things once to apply to most everything), although possibly with a full GUI or more complex rendering mode. I hadn't even started to think how it would interact with plain text but I could see some basic positioning/layout stuff being useful in plain text also without causing too much trouble if defined in an easy to render way (as would be best for terminals also). Although the usual issue of how to get there from here would still be a challenge :/.

joveian··on On the design of text editors (2020)
I'm using kitty. I'm surprised it isn't more common, it seems like a nice option. It looks like what we are calling margins here is padding in the kitty configuration:

https://sw.kovidgoyal.net/kitty/conf/#opt-kitty.window_paddi...

Nesting documents sounds interesting too. It looks like there are already control characters for "file separator", "group separator", "record separator", and "unit separator" that could be used if they were supported (or "start of text" / "end of text" might be a better fit for nesting, though I'm not sure how any of these were historically used). One issue I have with elastic tabstops is that once you go past "every character can be rendered based on the character and position" there are a large number of potentially interesting features and you would need to find something compelling to decide what features to include or exclude (or else you just have one of many possible document formats, which could be ok for an individual programming language but not as "plain text").

joveian··on On the design of text editors (2020)
If you use a terminal editor you can get margins easily by configuring your terminal emulator to have margins (and usually there would be at least a small margin due to cell size not evenly dividing screen size).

Personally, my terminal is "only" 127x31 and a major complaint I have with most user interfaces (including most of the web if you don't take imperfect steps to avoid it) is the font and line height being way too small. The small margin from the cell size leftovers works for me, though it is also uncomfortably wide if used fully for one text area and I set a default width of 78 characters in my editor and make exceptions to that as needed.

Elastic tabstops sounds interesting, although the simple definition presented in the link above seems like there would be cases where adding a line is necessary just to get the desired horizontal indentation. A set of new characters could fix that and allow full document alignment characters as well as consecutive line alignment. I'm not fully convinced that some version of this is a good idea, but maybe it is.

joveian··on The upstream cause of the youth mental health crisis is the loss of community
Maybe similar to what is called cohousing in the US? See:

https://www.ic.org/directory/community-types/

joveian··on Copying is the way design works (2020)
My sense (and I think this matches what you are saying) is that the best design is to make habits smoother and doing that often involves difficult engineering. We like to think about reasons and meaning and purpose and such but humans are primarily a collection of habits with rare changes in intent and a lot of correcting for stuff that doesn't go smoothly. The best design often becomes almost invisible because it just works, but it takes a lot of design effort and engineering for that to be possible. If you write down the differences between a great design and an ok design they can often sound entirely trivial but aren't if you think from the perspective of habits.

I recently found this really excellently designed grain bin from Masuda Kiribako:

https://kirihaco.shop-pro.jp/?pid=181616902

It looks nice but is fairly simple; if you haven't spent a bunch of time looking at available alternatives it might not look like anything special. Keeping grain away from insects and humidity and oxygen (and sometimes rodents, though I'm not sure how well this one would do in that case) while still being able to access it easily is not trivial. Plastic buckets work well and are cheap but don't look as nice and most lids are annoying (I suspect the lid on this one might possibly be a bit annoying as well but likely not as bad). Glass jars are nice to use but fragile and best for smaller amounts. Wood is particularly challenging due to the dimensional instability and they use a particular type of wood with something like eight years of preparation to make durable boxes. (I suspect the magnet on the scoop is pure marketing though, you can't even use it when refilling if you hook the lid on the edge which is the one time it would be really handy).

I think low latency is one of the things that makes software and websites feel really nice to use and is often overlooked.

joveian··on Foliate: Read e-books in style, navigate with ease
Zathura will by default keep a history and your position in each document, which I personally don't like (I want it to start from the beginning each time) but you can change this with 'set database "null"' in the config file. I tried zathura for pdfs a while ago but went back to evince due to the nice feature of showing all search results in a sidebar when you search. Unfortunately evince doesn't support epub. My zathurarc so far is:

  set database "null"
  set adjust-open "width"
  set scroll-wrap false
  set font "monospace light 24"
  set statusbar-home-tilde true
  set window-title-home-tilde true
  set window-title-page true
  set guioptions "v"
  map [fullscreen] <PageDown> scroll full-down
  map [fullscreen] <PageUp> scroll full-up
  map [normal] <PageDown> scroll full-down
  map [normal] <PageUp> scroll full-up
The font option just seems to cover the interface font (which is tiny if you don't set it) and guioptions "v" means no default status bar but always a vertical scroll bar. Page up and down use viewable pages instead of the default document page.

I was also just looking for an epub reader due to this Humble book bundle on game design that mostly only has epub:

https://www.humblebundle.com/books/all-about-gaming-mit-pres...

joveian··on Second factor SMS: Worse than its reputation
"Always use a bookmark" has always been the best advice. I'm fairly sure getting a bunch of typosquatting domains is standard practice now for major (particularly financial) sites so typing in the site from a reliable printed source for the first access is fine (particularly since you can be extra careful if you only do it once). For using shared computers, I'd still personally recommend typing from a reliable printed source.

For logins, a major advantage of having browsers save login info is to recognize legit sites becuase the login can be filled out (though it should be set to require a click on the login form and not just appear). Occasionally sites change in a way that breaks this but usually just once to use a subdomain and can be investigated more closely when it happens.

I think browsers should add a "site bookmark" feature that uses a well known mechanism to allow all associated sites to be annotated in a way that shows up similar to how EV certificates used to work (but is entered by users). That would make it possible to recognize legitimate links into a site (as long as you annotate the correct site the first time) and there could be an option to be notified when leaving the annotiated set of domains for particularly sensitive sites. Currently the closest is bookmarking the home page, editing the URL to remove everything after the domain, checking that the edited url is bookmarked (this is fragile since sites change the redirection quite a bit), and then hold the back button and go back to to the linked page, although this might not work for additional domains (e.g. support sites are often on a subdomain). Ideally, the site bookmarks would also annotate search results before they are clicked. While "remember to check if the site is legit" is not ideal it is a far better situation than "no way to tell if the site is legit". This could also be used to add a standard OTP entry mechanism that binds to a site and gives a warning if it is from a site you haven't given an OTP to before or stored login info (and shows the site name when you enter the OTP).

joveian··on No more boot loader: Please use the kernel instead
This seems like it could be a good use of rump kernels, although I don't think anyone has made a bootloader based on NetBSD rump yet. I've heard of efforts to rumpify Linux but I don't know if they are continuing. This seems like it could offer the benefits of each approach. The rump kernel paper has this brief paragraph on bootloaders:

> The lowest possible target for the rump kernel hypercall layer is firmware and hardware. This adaption would allow the use of anykernel drivers both in bootloaders and lightweight appliances. A typical firmware does not provide a thread scheduler, and this lack would either mandate limited driver support, i.e. running only drivers which do not create or rely on kernel threads, or the addition of a simple thread scheduler in the rump kernel hypervisor. If there is no need to run multiple isolated rump kernels, virtual memory support is not necessary.

← PreviousPage 2 of 33Next →