number (bsdgames) Updated +Created
For example:
number 123456789123456789123456879123456789123456789123456879
gives:
one hundred twenty-three sexdecillion.
four hundred fifty-six quindecillion.
seven hundred eighty-nine quattuordecillion.
one hundred twenty-three tredecillion.
four hundred fifty-six duodecillion.
seven hundred eighty-nine undecillion.
one hundred twenty-three decillion.
four hundred fifty-six nonillion.
eight hundred seventy-nine octillion.
one hundred twenty-three septillion.
four hundred fifty-six sextillion.
seven hundred eighty-nine quintillion.
one hundred twenty-three quadrillion.
four hundred fifty-six trillion.
seven hundred eighty-nine billion.
one hundred twenty-three million.
four hundred fifty-six thousand.
eight hundred seventy-nine.
It also takes input from stdin, e.g.:
primes 1 10 | number
gives:
two.
...
three.
...
five.
...
seven.
Stack Exchange Data Explorer Updated +Created
Allows you to use SQL (T-SQL because the site is coded in Microsoft) to query the public database. It is quite cool.
Material property database Updated +Created
Electrical conductance Updated +Created
bsdgames game Updated +Created
Build bsdgames from source Updated +Created
Many of the games are disabled by default on Ubuntu. But we can enable some games and build from source with:
apt-get source bsdgames
cd bsdgames-*
sed -ri '/^bsd_games_cfg_no_build_dirs=/s/ number / /' config.params
./configure
make -j
Here we enabled the game number, so now we can:
number/number 123
which gives:
one hundred twenty-three.
We can also "install" it locally with:
make install
which puts the games locally under:
debian/bsdgames/usr/games/number
which you can add to your PATH environment variable.
Tested on Ubuntu 24.04, bsdgames 2.17.
Signal generator Updated +Created
Are there infinitely many primes with property X Updated +Created
There are infinitely many conjectures asking if such types of primes also form infinite families.
Usually the answer is yes, but no one was able to prove it yet.
Electrical resistance and conductance Updated +Created
Metrology institute Updated +Created
Metrology Updated +Created
Type of prime number Updated +Created
This section is about prime numbers that satisfy further properties beyond just being a prime.
Physikalisch-Technische Bundesanstalt Updated +Created
The Mystery of Matter Updated +Created
Very good documentary! Explains things very well! Great acting and wardrobe too.
Particularly tasteful is their choice of native speaker actors who speak their native language for less important narration, and English with an accent for more important moments, in particular when talking solo to the camera.
Japanese physics research institute Updated +Created
German physics research institute Updated +Created
Landau's problems Updated +Created
Generate random text in PostgreSQL Updated +Created
This one is good: stackoverflow.com/questions/36533429/generate-random-string-in-postgresql/44200391#44200391 as it also describes how to generate multiple values.
with symbols(characters) as (VALUES ('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'))
select string_agg(substr(characters, (random() * (length(characters) - 1) + 1)::INTEGER, 1), '')
from symbols
join generate_series(1,8) as word(chr_idx) on 1 = 1 -- word length
join generate_series(1,10000) as words(idx) on 1 = 1 -- # of words
group by idx;
Then you can insert it into a row with:
create table tmp(s text);
insert into tmp(s)
  select s from
  (
    with symbols(characters) as (VALUES ('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'))
    select string_agg(substr(characters, (random() * (length(characters) - 1) + 1)::INTEGER, 1), '') as asdf
    from symbols
    join generate_series(1,8) as word(chr_idx) on 1 = 1 -- word length
    join generate_series(1,10000) as words(idx) on 1 = 1 -- # of words
    group by idx
  ) as sub(s);
A more convenient approach is likely to define the function:
CREATE OR REPLACE FUNCTION random_string(int) RETURNS TEXT as $$
select
  string_agg(substr(characters, (random() * length(characters) + 1)::integer, 1), '') as random_word
from (values('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789    --')) as symbols(characters)
  join generate_series(1, $1) on 1 = 1
$$ language sql;
And then:
create table tmp(s text, t text);
insert into tmp(s) select random_string(10) from generate_series(10);

There are unlisted articles, also show them or only show them.