Around 2011 I’d retired a ReadyNAS NVX in favor of something with more storage. “NAS” here stands for “Network-Attached Storage”.
But… it’s still got 8TB of space, and now I’m thinking it’d be useful for making other backups. Twelve years later, it’s time to turn it back on!
I ran into a few barriers, and thought it might help someone to document them here:
- The web server only supports TLS 1.0, which means many browsers don’t even support it with configuration settings changes. Chrome and Firefox used to, but the latest versions removed the options. I ended up using falkon in Linux. It provides an option to accept the self-signed certificate using TLS 1, which allows you to connect to the admin page.
- This is enough to download the latest firmware for your device here.
- At this point you can download apache2 here and install it as an add-on. Once you reboot, it should support TLS 1.2.
- Install Enable Root SSH Access.
- SSH in using username
root
and your admin password
- Edit the
[global]
section of /etc/samba/smb.conf
, adding max protocol=SMB2
.
- Restart the device again.
At this point you should be able to connect to Windows shares and access the admin page. But… given the age of the device, it’s probably best to use it as a cold backup.
If you’re looking for a constant close to these numbers…
0.607
0.608
0.6079
0.60792
0.60793
0.607927
0.6079271
0.60792710
0.607927101
0.607927102
0.6079271018540…
Perhaps the constant you want is .
This number is the probability that two large numbers in the range 1..n are coprime, as .
If you choose a number in [0,1) and find the closest rational approximation with denominator ≤ n in reduced form, the expected value of the denominator is at the same limit.
If you’re choosing a first word in Wordle, I think the goal is to minimize the number of remaining candidate words in the worst case.
So for example if you consider the starting word “BAITS”, you can score every possible candidate word against this starting word. Each outcome will be a specific result, which you can store in base 3 (e.g. using “2” for misses, “1” for out of position, and “0” for a match). If you count all the outcomes, the bucket with the largest count is your worst case.
For the first guess the worst-case bucket may be the “22222” bucket (all misses), but not necessarily. You can bucket all the possible words, and the bucket with the most words is that worst case.
Wordle maintains two lists, a list of words that can be chosen as word of the day, and a list of words that will be accepted, but can’t be solutions.
Anagrams are not equivalent in Wordle, because the change in letter order will change which buckets the words go into. So for example, “AROSE” has a worst-case bucket with 867 words in it, but “AEROS” has a worst-case bucket with only 801 words.
Here are some good starting choices.
aisle 906
arise 882
arose 867
saner 840
snare 840
aeros 801
paseo 776
reais 769
serai 697
That would mean that “SERAI” (697) would be the best first word (though it’s never a solution), and “SNARE” or “SANER” (840) would be the best choice that could also be a solution.
Since college I’ve had a book, 250 Problems in Elementary Number Theory, with a publication date of 1970. The name and author are printed on the spine.
It fit with my interest in number theory and computation, and the author was “W. Sierpiński”, who is a Big Name in math. I’m wondering if the “W.” was because no one wanted to typeset “Wacław”, but the book was published by Elseview and “PWN – Polish Scientific Publishers” and printed in Poland, so maybe that isn’t it.
The front cover has another imprint “Modern Analytic and Computational Methods in Science and Mathematics, RICHARD BELLMAN, editor”, and it seems like a lot of book sellers think that is the title of books in that series, because it’s so prominent on the front.
The format is great. The first 22 pages lay out 250 problems, usually in two to four lines. For example:
245. Prove that the number 3!!! written in decimal system has more than a thousand digits, and find the number of zeroes at the end of the expansion.
The remainder of the book’s 125 pages are the solutions to the problems, and some of them are pretty interesting.
Some of the problems seemed to involve a lot of work with pen and paper, but I hadn’t really figured out that it was leaning towards computer use. This one caught my attention, though:
96. Prove that the infinite sequence 1, 31, 331, 3331, … contains infinitely many composite numbers, and find the least of them (to solve the second part of the problem, one can use the microfilm containing all primes up to one hundred millions [2])
Under references we have
C.L. Baker and F.J. Gruenberger, The first six millions prime numbers, The RAND Corp., Santa Monica, publ. by the Microcard Foundation, Madison, Wisc., 1959.
I’m curious about the format(s) for this work. At least one source describes them as microprinted cards, which makes sense for “The Microcard Foundation” to publish, but the problem refers to microfilm.
Was it in both formats, and was there a shift from microcards to microfilm? For the curious, generating the first six million primes takes less than half a second now, which is good because I can’t seem to find copies of that microcard anywhere.
time primes 2 | head -6000000 > primes.txt
real 0m0.409s
user 0m0.424s
sys 0m0.075s
There’s a fun fact that if you choose two numbers at random, the probability that they have no common factors is , or about 61%.
For the two numbers, if you’re looking at any prime p, they’ll have that factor p in common if both their remainders when divided by p are 0.
And if the numbers are truly “random”, their remainders will be evenly distributed and so the odds that they have p is the same as the odds that they both land on 0, which is 1/p².
And it turns out that that infinite product works out to via math I can’t do. Magic.
But as Wikipedia helpfully points out “There is no way to choose a positive integer at random so that each positive integer occurs with equal probability.”
Intuitively that makes sense. If you pick numbers from a range you’d expect to land “in the middle” on average, but the middle of all integers is unbounded.
I think one of the things that drives that home for me — imagine you spent the rest of your life describing a “RILLY_BIG_NUMBER”. You end up saying “to the power of”, “factorial”, random streams of digits, and stuff like that for the rest of your life. You’re no fun at parties.
At the end you have that RILLY_BIG_NUMBER. But over 99.999…% (say, a RILLY_BIG_NUMBER of 9s) of integers (or primes) are bigger than your number. Because that’s how it is.