Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 22 17:34
    bcardiff closed #8208
  • Sep 22 17:34
    bcardiff closed #8207
  • Sep 22 14:29
    bcardiff synchronize #8208
  • Sep 22 13:21
    Sija edited #8198
  • Sep 22 13:20
    PierrePharel edited #8206
  • Sep 22 13:20
    PierrePharel edited #8206
  • Sep 22 00:23
    bcardiff milestoned #8208
  • Sep 22 00:19
    bcardiff labeled #8208
  • Sep 22 00:19
    bcardiff labeled #8208
  • Sep 22 00:19
    bcardiff opened #8208
  • Sep 21 22:54
    Blacksmoke16 edited #8207
  • Sep 21 22:53
    bcardiff labeled #8207
  • Sep 21 22:53
    bcardiff labeled #8207
  • Sep 21 21:46
    Blacksmoke16 opened #8207
  • Sep 21 19:55
    PierrePharel edited #8206
  • Sep 21 19:53
    PierrePharel edited #8206
  • Sep 21 19:53
    PierrePharel edited #8206
  • Sep 21 19:52
    PierrePharel opened #8206
  • Sep 21 17:07
    RX14 closed #6398
  • Sep 20 23:07
    bcardiff closed #8205
Blacksmoke16
@Blacksmoke16
the underlying table can still have the dual PK
Daniel Worrall
@Daniel-Worrall
but then there's going to be multiple results with the same pkey
Blacksmoke16
@Blacksmoke16
so? if you're doing your querying with find_by and specifying both keys should be fine no?
Daniel Worrall
@Daniel-Worrall
I'm not sure on the internals so... shrug
Blacksmoke16
@Blacksmoke16
should be fine
not ideal but doable
Kai Leahy
@tenebrousedge
@Daniel-Worrall why a composite PK?
Daniel Worrall
@Daniel-Worrall
I'm having problems building Kemal statically on alpine
in lib/kemal/src/kemal/static_file_handler.cr:24: undefined method 'decode' 
for URI.class

      request_path = URI.decode(original_path)
literally just
require "kemal"

Kemal.run
I could have sworn this was working a week ago
Benoit de Chezelles
@bew
new crystal version maybe?
Daniel Worrall
@Daniel-Worrall
Not out yet
I've been on 0.30.1 since it came out
Actually, no, I didn't test kemal on static alpine yet
that was something else
Anyone wanna help me reduce the problem and see if it's already reported?
Could it be not having the right libraries on my env?
Benoit de Chezelles
@bew
you can verify that
there should be a file VERSION in the directory where the stdlib source code is
which you can find with crystal env | grep CRYSTAL_PATH
Daniel Worrall
@Daniel-Worrall
It works fine on buntu
but not on my docker alpine image
Benoit de Chezelles
@bew
is the VERSION correct on alpine?
is it a container? can I try to reproduce it here?
Daniel Worrall
@Daniel-Worrall
Oh
Shit :^)
Yeah, that should have been obvious
I was using latest, and latest was tagged up on 0.29.0
for whatever reason
blame @j8r
Benoit de Chezelles
@bew
^^
Daniel Worrall
@Daniel-Worrall
I fell victim to versioning when I sat down today in another way. pg updated to use 0.7.0 of db last night so I had to specify a version
Ary Borenszweig
@asterite
i
Noah Summers
@repromancer_gitlab
I'm having trouble finding the equivalent of Ruby's Module#ancestors method.
Maybe I'm going about this a non-Crystally way, but I'm trying to print out the class hierarchy of a class from an external library, and my first instinct is just call puts thing.ancestors or thing.class.ancestors
Noah Summers
@repromancer_gitlab
(and by "print out the heirarchy", I just mean "find out what it inherits from"; not trying to do any fancy generated code stuff)
Ali Naqvi
@naqvis
look into ancestors
Noah Summers
@repromancer_gitlab
oh, that's embarassing. I must have misspelled it when I searched there. thanks
Ali Naqvi
@naqvis
np
Blacksmoke16
@Blacksmoke16
can also use superclass if you just want the parent of it
vs all the parents
Ali Naqvi
@naqvis
@Blacksmoke16 now parallelism in place, is there any way to parallelize specs?
Blacksmoke16
@Blacksmoke16
not that i know of
Ali Naqvi
@naqvis
thanks @Blacksmoke16
Blacksmoke16
@Blacksmoke16
you mean the compiler/stdlib specs?
Benoit de Chezelles
@bew
with the env var SPEC_SPLIT (not really documented) you could run a fraction of the spec, and run each chunks in multiple process (manually though)
checkout how the CI does it
SPEC_SPLIT="0%4" make std_spec
SPEC_SPLIT="1%4" make std_spec
SPEC_SPLIT="2%4" make std_spec
SPEC_SPLIT="3%4" make std_spec