sschwarzer
2021-6-8 09:36:55

@mflatt I just tried to reproduce the problem and again got the empty form. On the other hand, I was able to add the package with a workaround, see https://github.com/racket/racket-pkg-website/issues/76#issuecomment-856615872 . So the failures seem to depend on the entered data.

When you successfully added a package, was your data similar to the data in my screenshots, i. e. filling all of description, tags and branch (and of course using the Git suffix checkbox)? Maybe you can reproduce my problem with data more similar to the data from my screenshots.


popa.bogdanp
2021-6-8 09:52:06

Here are a couple old write-ups I did related to my commercial uses of Racket:

https://defn.io/2019/08/20/racket-ecommerce/https://defn.io/2020/01/04/remember-internals/ I always feel a little bit embarrassed reading these old posts :sweat_smile:, but hopefully they’re helpful to you.


mflatt
2021-6-8 15:09:59

I’ve pushed a change to add the “same library?” check. Does that allow libcairo2.dylib to be installed as it should be?


sorawee
2021-6-8 15:11:37

Thanks! I will try later tonight


sarna.dev
2021-6-8 16:11:51

@popa.bogdanp would you change anything if you were to write them now? I’m curious.


popa.bogdanp
2021-6-8 17:05:51

@sarna.dev I feel like the point in the first article about error reporting is less relevant to me right now because I’ve learned to navigate around the limitations, but that just boils down to me knowing more now than I did then. I never released a version of Remember for Windows or Linux so I don’t know if I’m as convinced now that that approach leads to less work overall compared to just using racket/gui. I do still think you end up with apps that feel more natural in their respective environments, though.


sarna.dev
2021-6-8 17:11:09

@popa.bogdanp thanks for explaining! hunting Racket errors definitely gets easier with time, I have no idea why I can pinpoint and fix them way faster than before haha


blerner
2021-6-8 18:22:02

Out of curiosity — how do you obtain the exported data from Slack in the first place? Given that (a) this slack is on the free tier, yet (b) you have records for #general stretching back to 2015, it seems like Something Clever is being done…


blerner
2021-6-8 18:22:19

(I have a few other Slacks that I’d very much like to archive…)


notjack
2021-6-8 18:22:33

adding a separate make-temporary-directory function would make this situation clearer, IMO. does that sound like a good idea to you too? I could send a pull request.


samth
2021-6-8 18:31:40

That also seems reasonable.


jagen315
2021-6-8 19:07:46

ah, thanks @popa.bogdanp. I read through them, nice work!


ben.knoble
2021-6-8 19:32:10

The archives are obtained from Slack by @samth ; importantly, we took the first archives before a free trial expired, so we had the entire data set


samth
2021-6-8 19:34:39

We only ended up on the free trial because someone accidentally linked this Slack with their corporate slack, which automatically put us on a free trial of the Plus plan.



gknauth
2021-6-8 20:46:59

Before I go reinventing the wheel, if I had a list of minutes and seconds, e.g., 0:15 0:25 0:20 1:10 3:40 0:02 …, is there anything already in Racket that would let me produce the sum (5:52)? In PostgreSQL there’s an interval type, and I was wondering if there’s anything like that in Racket.


samth
2021-6-8 20:48:34

@gknauth you probably want to use the gregor library by @jaz


gknauth
2021-6-8 20:49:21

@samth Thanks, I do use gregor in a number of my projects, I just forgot all the good stuff that’s in there. Much appreciated.



jaz
2021-6-9 04:14:28

@gknauth I’d say there’s still not a super-convenient way to do that in gregor. Time-of-day arithmetic wraps around midnight, so unless you’re sure the sum isn’t more than a day, it’s not really appropriate for this. You can do it, however, using periods and period-between: #lang racket/base (require gregor gregor/time gregor/period) (define periods (list (seconds 15) (seconds 25) (seconds 20) (period [minutes 1] [seconds 10]) (period [minutes 3] [seconds 40]) (seconds 2))) (define period-sum (foldl +period (seconds 0) periods)) (period-between (datetime 0) (+period (datetime 0) period-sum) '(minutes seconds))