faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
<crystal-gh>
[crystal] bcardiff pushed 1 new commit to master: https://git.io/vbYHH
<crystal-gh>
crystal/master b747f5f Paul Smith: Don't print query params if they are empty (#5340)
astronavt has joined #crystal-lang
baweaver is now known as baweaver_away
<literal>
does Crystal have a convenient way to construct a tuple/named tuple that is based on another one? E.g. if I have {id: Int32, count: Int32} and I want a copy of it but with the count incremented
<FromGitter>
<bew> just assign it to another variable and increment the count on the copy?
<literal>
that's the boilerplace I wanted to avoid
<literal>
boilerplate
<literal>
something like old_tuple.with(count: 6) would have been nice
<FromGitter>
<bew> no doesn't exist, and probably never will
<Papierkorb>
literal: There's NamedTuple#merge in >= 0.24 - But do make sure that NamedTuple is actually a good choice for a structure of your data.
<Papierkorb>
For most people who ask about tuples it's *not*.
<FromGitter>
<bew> oh right, forgot that merge can update fields too 👍
<Papierkorb>
No it can't update, a new tuple will be created
<FromGitter>
<bew> yes sure, bad word choice
<Papierkorb>
Just that this should not under any circumstances be used as lazy/el-cheapo solution to "I don't feel like copying @ivars myself"
<FromGitter>
<codenoid> morning all
<RX14>
Hmm what time zone are you in?
<FromGitter>
<codenoid> Indonesia
<FromGitter>
<codenoid> GMT +7
<RX14>
Cool
<RX14>
I always underestimate how global the crystal community is
<faustinoaq>
Hi 🙂 GTM -5 here
<RX14>
I'm still a little confused as to why ysbaddaden has time to review my windows pr but not the pr it depends on which is much smaller lol
astronavt has quit [Remote host closed the connection]
astronavt has joined #crystal-lang
<FromGitter>
<bew> yay I got my little X Crystal Binding lib (in pure crystal) to connect and authenticate successfully with my running X server \o/
baweaver_away is now known as baweaver
snsei has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
snsei has quit [Remote host closed the connection]
astronavt has quit [Remote host closed the connection]
faustinoaq has quit [Read error: Connection reset by peer]
baweaver is now known as baweaver_away
baweaver_away is now known as baweaver
faustinoaq has joined #crystal-lang
<FromGitter>
<bararchy> Using the new windows PR, what should I pass over to the compiler so it knows to target windows ?
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
notdaniel has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 240 seconds]
notdaniel is now known as notnotdaniel
faustinoaq has quit [Read error: Connection reset by peer]
faustinoaq has joined #crystal-lang
notnotdaniel has quit [Quit: Leaving]
blop has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
ashirase has joined #crystal-lang
faustinoaq has joined #crystal-lang
blop has quit [Client Quit]
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Read error: Connection reset by peer]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Read error: Connection reset by peer]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 260 seconds]
<dragonkh>
hi
saadq has quit [Ping timeout: 248 seconds]
saadq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 248 seconds]
<FromGitter>
<MrSorcus> Hi. How right to convert string `true` to boolean `true`? Thanks.
<FromGitter>
<bararchy> @MrSorcus right in what sense ?
<FromGitter>
<MrSorcus> > @MrSorcus right in what sense ? ⏎ ⏎ If i have `typeof("true") # => String` how to convert it to Boolean type? With regex? Or something else?
<FromGitter>
<imonmyown> Hey all, trying to run CrSFML example on macOS, getting linker error (LD_LIBRARY_PATH not set due to SIP (https://github.com/oracle/node-oracledb/issues/231)) any ideas how to fix that?
<oprypin>
ok what you said before has nothing to do with this
<FromGitter>
<imonmyown> so, where did I fuck up?
<oprypin>
imonmyown, did you try to run crsfml earlier? like a few months back?
<oprypin>
did you ever globally install voidcsfml?
<FromGitter>
<imonmyown> @oprypin I did and things seemed to work as expected
<oprypin>
well now that's biting you
<oprypin>
globally installed voidcsfml is old, probably
<FromGitter>
<imonmyown> any way to fix that?
<oprypin>
remove it
ashirase has quit [Ping timeout: 248 seconds]
<FromGitter>
<imonmyown> I see libvoidcsfml files in /usr/local/lib, is that what you mean?
<oprypin>
yeah
claudiuinberlin has joined #crystal-lang
<FromGitter>
<imonmyown> Seems like I have two versions installed %(
ashirase has joined #crystal-lang
<FromGitter>
<imonmyown> same goes to libsfml, I guess?
<FromGitter>
<imonmyown> Whew, it works now! Thank you very much @oprypin!
rohitpaulk has joined #crystal-lang
rohitpaulk has quit [Ping timeout: 268 seconds]
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
rohitpaulk has joined #crystal-lang
<dragonkh>
hey - in Kemal if I do : context.response.status_code = 404 I get a 404 webpage instead of my json payload - I get my payload if I use 400 - but how can I stop the default 404 page in Kemal so I can return my json payload instead?
<FromGitter>
<Branksy> Hi all. New to crystal. How difficult would it be to port a rails gem like public activity to a crystal shard?
<FromGitter>
<Branksy> Are there any instructions on how to create shards..?
csk157_2 has quit [Ping timeout: 255 seconds]
<FromGitter>
<bararchy> @Branksy Shards are basicly just a github repo with crystal code that has a specific structure (crystal init lib myshard - this command will create the needed structure) ⏎ ⏎ After that just see the REAMDE.md file and fix github link, appart from that just write your code with an "api" mindset, so that it can be "required" by other projects
Ven`` has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
csk157 has quit [Ping timeout: 255 seconds]
<FromGitter>
<Branksy> thx
<FromGitter>
<Rinkana> Wasn't there a `property` macro for class properties? I can't seem to find it.
<Papierkorb>
class_property.
<FromGitter>
<Rinkana> :/
<FromGitter>
<bararchy> lol :)
faustinoaq has quit [Quit: IRC client terminated!]
faustinoaq has joined #crystal-lang
faustinoaq has quit [Client Quit]
faustinoaq has joined #crystal-lang
<FromGitter>
<Branksy> @faustinoaq crystal vs-code extension is incompatible with v. 1.11.2
<FromGitter>
<Branksy> Is it compatible with 1.18 latest?
<crystal-gh>
crystal/master 32319e3 Benoit de Chezelles: Refactor missing unsafe_as (#5341)
<FromGitter>
<bew> @bararchy I suggest you to give a number as output, not a string, because it is the user who knows what to do with the data, maybe he wants to do graphs!
faustinoaq has joined #crystal-lang
<FromGitter>
<bararchy> @bew good idea, I'll output Float32
csk157 has joined #crystal-lang
<FromGitter>
<bararchy> Oh, nvm, lol it's already Float32 XD my README is wrong