greg
2017-3-8 14:20:07

@samth @leif @stamourv Not to backseat drive, but it looks like version 1.10 of s3-sync added that #:redirect-code keyword arg to redirect-prefix-routing-rule? http://docs.racket-lang.org/s3-sync/index.html#%28def._%28%28lib._s3-sync%2Frouting-rule..rkt%29._redirect-prefix-routing-rule%29%29


samth
2017-3-8 14:20:16

aha


samth
2017-3-8 14:20:20

i updated the wrong pkg


greg
2017-3-8 14:20:32

I don’t see any info.rkt in that repo so not sure where this goes


greg
2017-3-8 14:20:52

But while looking for it, I noticed this — is this OK? https://github.com/nuprl/website/blob/master/.htpasswd


samth
2017-3-8 14:22:02

I see my problem — I updated with git pull in racket-lang-org, which didn’t update the s3-sync pkg


stamourv
2017-3-8 14:40:09

Ah, that makes sense. Thanks @greg!


greg
2017-3-8 14:50:33

I guess .htpasswd is OK; although not great to leak usernames, not a shocker that admin exists ¯_(ツ)_/¯


thinkmoore
2017-3-8 16:02:01

for future reference, the solution to my macro problem yesterday is: (with-syntax ([module-name (datum->syntax #f (syntax->datum (format-id #'path "~a" (syntax->datum #‘path))))] [(body ...) (map (lambda (s) (datum->syntax #f (syntax->datum s) s)) (load (syntax->datum #'path)))]) (syntax-local-lift-module #`(module module-name #,(datum->syntax #f "lang.rkt") body ...)) #`(#%require #,(syntax-local-introduce #’'module-name)))


samth
2017-3-8 16:03:10

@ben in general, I think leaving issues on the racket repo is fine


ben
2017-3-8 16:03:30

ok


samth
2017-3-8 16:04:18

if that was submitted to the typed-racket repo, or something like that, then moving it seems sensible


samth
2017-3-8 16:04:33

but commits can close issues in other repositories


samth
2017-3-8 16:04:49

and so there’s not much benefit to having it there, and it’s less likely that people will see it


thinkmoore
2017-3-8 16:19:21

@greg posting .htpasswd is probably not a good idea. it doesn’t seem to actually be protecting anything though? (nothing on the nuprl site seems to be password protected?)


ben
2017-3-8 16:35:55

@thinkmoore no, I don’t think anythings protected


thinkmoore
2017-3-8 16:37:32

might as well delete the file


thinkmoore
2017-3-8 16:37:51

its… easy to crack. so just as well it wasn’t used for anything


thinkmoore
2017-3-8 16:38:09

not very secure over http anyway


leif
2017-3-8 18:26:54

Does anyone know what would cause an expression in examples to display ??? as the result? (When the result clearly isn’t ???).

For reference, I am using this as my evaluator


leif
2017-3-8 18:27:32
@(define vid-eval
   (make-base-eval '(begin (require video/base))))

leif
2017-3-8 18:27:58

And this as my examples: @examples[#:eval vid-eval (playlist (color "green"))]


leif
2017-3-8 18:32:43

leif
2017-3-8 18:32:44
And the result looks something like:

leif
2017-3-8 18:32:49

^^


leif
2017-3-8 18:33:06

If instead I use make-evaluator I don’t get the ???, so it’s very odd.


mflatt
2017-3-8 18:47:21

I see "???" in “base-render.rkt” for a convertible? case; if you change that "???", does the output change?


mflatt
2017-3-8 18:48:11

If so: For HTML output, the “html-render.rkt” implementation handles convertible? things in its override of render-content, but maybe control isn’t getting there for some reason


leif
2017-3-8 19:32:30

@mflatt yes, it does.


leif
2017-3-8 19:33:16

Yes, the playlist is convertible, but not to anything scribble understands.


leif
2017-3-8 19:34:20

So ya, I would assume the best way to handle that would be to output it as if it was being output to a repl, which I guess the html-renderer is supposed to do, but isn’t?


mflatt
2017-3-8 19:43:12

Oh, html-renderer doesn’t handle it because it doesn’t know how to convert.


mflatt
2017-3-8 19:43:51

I don’t think that’s html-renderer’s job, since it has no way of knowing what a REPL would do


mflatt
2017-3-8 19:44:58

I think some customization probably instead should have happened around the evaluator or examples form


leif
2017-3-8 19:54:54

I see.


leif
2017-3-8 19:55:28

@mflatt I wonder if its a problem with make-base-eval, because if I use make-evaluator directly from racket/sandbox, I don’t get the ???.


leif
2017-3-8 19:55:47

(Of course, I also don’t get pretty printing, but I suspect that’s just a parameter I need to set.


mflatt
2017-3-8 19:59:14

Well, see make-base-eval; it installs a printer that does handle convertible? values specially


leif
2017-3-8 19:59:43

Ah, hmmph…okay, thanks.


leif
2017-3-8 19:59:47

That would explain it. lol


leif
2017-3-8 20:02:47

Is there any way to get the pretty printing as well as not having it try to convert convertibles?


leif
2017-3-8 20:02:55

Or would I need to go to make-evaluator for that?


mflatt
2017-3-8 20:07:39

I think you probably want to set current-print in the sandbox to reset pretty-print-size-hook so that it always returns #f while printing


leif
2017-3-8 21:04:55

Okay, I’ll give that a go, thanks


leif
2017-3-8 22:18:06

It takes about 30 seconds to search for a function in my local install, has anyone else had this issue?


soegaard2
2017-3-8 22:39:36

search using grep?


leif
2017-3-8 22:41:48

No, search with the doc index


leif
2017-3-8 22:41:58

like, raco doc, and using the search box


soegaard2
2017-3-8 22:55:09

ah


leif
2017-3-8 23:17:17

Odd…so apparently restarting my browser helped a lot. :confused:


leif
2017-3-8 23:17:31

Not sure why though. (It hadn’t been open for that long…)


leif
2017-3-8 23:17:34

Thanks anyway though.