spdegabrielle
2019-8-16 08:33:59

Got the aspect ratio wrong:sob:


soegaard2
2019-8-16 10:16:06

@spdegabrielle Get some free music from the Youtube Audio Library. (Search for something approriate). https://www.youtube.com/audiolibrary/music?nv=1


spdegabrielle
2019-8-16 10:21:26

@soegaard2 good idea.


darioszr
2019-8-16 18:00:47

@darioszr has joined the channel


soegaard2
2019-8-16 18:10:28

Todays image. I think I cracked how to calculate baselines for TeX picts.


soegaard2
2019-8-16 18:15:31

The example show btw why it is a bad idea to write a long text in italics - but I needed to use the same font in order to compare the baselines.


soegaard2
2019-8-16 19:46:37

Thanks!


soegaard2
2019-8-16 21:34:19

@sorawee Close - but not as close as 355/113.


sorawee
2019-8-16 22:26:00

Slack couldn’t Emoji 355 because of repeated 5


sorawee
2019-8-16 22:26:37

So I wrote:

#lang racket

(define answer +inf.0)

(for* ([i (in-range 2 1000)] [j (in-range 1 i)])
  (define chars (string->list (string-append (number->string i)
                                             (number->string j))))
  (define chars-dedup (remove-duplicates chars))
  (when (= (length chars) (length chars-dedup))
    (define dist (sqr (- (/ i j) 3.14159265)))
    (when (< dist answer)
      (set! answer dist)
      (printf "~a/~a\n" i j))))

soegaard2
2019-8-16 22:27:13

Love it!