RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.27.1 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
<FromGitter> <Blacksmoke16> hmm, shards isnt copying my binary on install to `bin`
<FromGitter> <Blacksmoke16> when using `executables`
tsundsted has quit [Ping timeout: 256 seconds]
DmitryBochkarev has joined #crystal-lang
DmitryBochkarev has quit [Ping timeout: 246 seconds]
DmitryBochkarev has joined #crystal-lang
rohitpaulk has joined #crystal-lang
DmitryBochkarev has quit [Ping timeout: 245 seconds]
rohitpaulk has quit [Remote host closed the connection]
DmitryBochkarev has joined #crystal-lang
<jokke> @Blacksmoke16 that's not enough
<FromGitter> <mavu> ' @faustinoaq I would be very interested in anything crystal + arduino related. Looking forward to whatever you manaegd to do there :)
gangstacat has quit [Remote host closed the connection]
fanta7531 has joined #crystal-lang
<FromGitter> <bew> @Maroo-b hey, you might want to look into `caller` to show all the method calls that leads to where you are :)
<FromGitter> <drum445> Using ECR, what is a clean way of setting the page title from each .ecr file please? In Jinja I'd use a `block title`
gangstacat has joined #crystal-lang
<FromGitter> <drum445> ECR is rendered in a different order to ERB, meaning I can't just add `<% title = "This page's title" %>` to each of the files :(
<FromGitter> <drum445> Found it, `<%= yield_content "some_key" %>` God bless Kemal's docs 🙏
ashirase has quit [Ping timeout: 240 seconds]
ashirase has joined #crystal-lang
_whitelogger has joined #crystal-lang
marmotini_ has joined #crystal-lang
<FromGitter> <straight-shoota> @drum445 `yield_content` is a feature provided by Kemal, it's not implemented in stdlib's ECR. That's why it's only in Kemal docs.
<FromGitter> <drum445> Indeed, makes sense. Very useful feature for templating
tsundsted has joined #crystal-lang
sagax has quit [Ping timeout: 245 seconds]
<jokke> is someone here familiar with ACME and JWS and JWK? I'm trying to write an ACME client in crystal but i can't get the serialization right it seems. The ACME server tells me it failed parsing the JWS
ternarysolo has joined #crystal-lang
tsundsted has quit [Ping timeout: 256 seconds]
marmotini has joined #crystal-lang
marmotini_ has quit [Ping timeout: 268 seconds]
<FromGitter> <ditsara> I'm trying to use `crystal tool expand` (and other tool features), and it gives me an error because it doesn't load dependencies. For example in luckyframework/avram, I'm running `crystal tool expand -c src/avram/model.cr:58:5 src/avram/model.cr` and I get "Error in src/avram/model.cr:6: undefined constant Avram::Associations" ... any insight on what I'm doing wrong? or a source for a better reference on
<FromGitter> ... `crystal tool`?
marmotini has quit [Read error: Connection reset by peer]
marmotini has joined #crystal-lang
fanta7531 has quit [Quit: fanta7531]
<FromGitter> <michalvalasek> @FromIRC Thanks!
flaviodesousa has joined #crystal-lang
<FromGitter> <malkomalko> 200 examples, 0 failures, 0 errors, 1 pending: Finished in 9.75 milliseconds. The power of fast and pleasant specs to help you write better code can not be overstated.
<FromGitter> <Blacksmoke16> @jokke ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5cab397f1f6e900d5efb188f]
<FromGitter> <Blacksmoke16> gets built in the lib/athena/bin but not moved to parent bin folder
<FromGitter> <jreinert> yeah, because you're not moving it
<FromGitter> <jreinert> you're just moving the athena.yml
<FromGitter> <jreinert> or createing
<FromGitter> <jreinert> *creating
<FromGitter> <jreinert> just write a Makefile, cleaner that way anyway
<FromGitter> <Blacksmoke16> but i shouldnt have to move it, thats that the `executables` should do no?
<FromGitter> <Blacksmoke16> `When installed as a dependency for another project the executables will be copied to the bin folder of that project.`
<jokke> hm
<jokke> yeah i guess.
<jokke> but it never worked for me neither
<jokke> there's a bunch of shards using this
<jokke> and afair they all copy manually
<jokke> maybe check out ameba for a well maintained example
<FromGitter> <Blacksmoke16> i swore i tried it before i started all this and it worked
<FromGitter> <Blacksmoke16> so not sure what changed
<FromGitter> <Blacksmoke16> have to see if i can reproduce with another shard
marmotini_ has joined #crystal-lang
marmotini has quit [Ping timeout: 258 seconds]
marmotini has joined #crystal-lang
marmotini has quit [Read error: Connection reset by peer]
marmotini_ has quit [Ping timeout: 252 seconds]
marmotini_ has joined #crystal-lang
<FromGitter> <Maroo-b> @bew thank you very much for the tip!! I'll try use `caller` more often :)
DmitryBochkarev has quit [Ping timeout: 250 seconds]
lucasb has joined #crystal-lang
sagax has joined #crystal-lang
DmitryBochkarev has joined #crystal-lang
fanta7531 has joined #crystal-lang
DmitryBochkarev has quit [Ping timeout: 250 seconds]
DmitryBochkarev has joined #crystal-lang
DmitryBochkarev has quit [Max SendQ exceeded]
DmitryBochkarev has joined #crystal-lang
fanta7531 has quit [Quit: fanta7531]
Flipez has quit [Quit: Ping timeout (120 seconds)]
Flipez has joined #crystal-lang
fanta7531 has joined #crystal-lang
marmotini_ has quit [Remote host closed the connection]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
<FromGitter> <jwoertink> I had asked this last week about an HTML beautifier in crystal, but it seemed no one had seem one.
<FromGitter> <jwoertink> I just found https://github.com/kostya/myhtml/blob/master/examples/print_html.cr which does it!
<FromGitter> <Blacksmoke16> ayy, well there you go
<FromGitter> <jwoertink> Yup! I started writing one, and this is way faster than what I was doing lol
fanta7531 has quit [Quit: fanta7531]
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Remote host closed the connection]
<FromGitter> <Blacksmoke16> 💯
<FromGitter> <straight-shoota> yeah, myhtml is efficient
DmitryBochkarev has quit [Ping timeout: 250 seconds]
<FromGitter> <jwoertink> Out of curiosity of how the compiler works, when you add in types to arguments, and return types on methods, do you get any sort of performance boost, or compilation speed?
<FromGitter> <Blacksmoke16> prob the opposite since it has more work to do?
<FromGitter> <jwoertink> ah, interesting. So unless the compiler yells at you to, or you need to be very specific, it's better to leave them off?
<FromGitter> <jwoertink> I saw this PR https://github.com/crystal-lang/crystal/pull/7651/files and was curious if doing this added some benefit aside from clarity.
<FromGitter> <Blacksmoke16> granted i know very little of the compiler, but thats my understanding
<FromGitter> <Blacksmoke16> it just makes things less prone to bugs, and adds the types to the auto generated docs, which is quite helpful
hightower3 has joined #crystal-lang
<FromGitter> <straight-shoota> yep, it helps to define clearer interfaces
<FromGitter> <straight-shoota> it might have a slight impact on compiler performance, but that's neglicible
applesaucy_ has joined #crystal-lang
<applesaucy_> anyone know of a good way to find the length of a video?
<applesaucy_> im trying to add the time of the user by the length of a video to get the estimated time in which the next video will be played
<FromGitter> <Blacksmoke16> who wants to play a game of find the bug? https://play.crystal-lang.org/#/r/6oq7
ternarysolo has quit [Ping timeout: 258 seconds]
<FromGitter> <Blacksmoke16> maybe thinking that its possible `command` wont exist?
<FromGitter> <Blacksmoke16> reduced a bit more https://play.crystal-lang.org/#/r/6oqu
<FromGitter> <r00ster91> little bit more, turned `pp` into `to_s`: https://play.crystal-lang.org/#/r/6or1
<FromGitter> <jwoertink> @applesaucy_ you could use ffmpeg
<FromGitter> <jwoertink> We use zencoder to handle getting video length and stuff though
<FromGitter> <jwoertink> and there's https://coconut.co/ too which has a nice API, and might be cheaper
dannyAAM has quit [Ping timeout: 264 seconds]
hightower3 has quit [Ping timeout: 255 seconds]
dannyAAM has joined #crystal-lang
<FromGitter> <Blacksmoke16> what i dont get is changing return type to `String` on the method and Proc, and having it return a string works fine
<FromGitter> <Blacksmoke16> hrm
return0e has joined #crystal-lang
return0e_ has quit [Ping timeout: 245 seconds]
rohitpaulk has joined #crystal-lang
lucasb has quit [Quit: Connection closed for inactivity]
rohitpaulk has quit [Remote host closed the connection]