<FromGitter>
<lbarasti> @mattrberry so happy to see lbarasti/dataclass#1, will look into it tomorrow 👌
<FromGitter>
<ImAHopelessDev_gitlab> @watzon specs? What are those
<FromGitter>
<randiaz95> guys, I am dieing here lol
<FromGitter>
<Blacksmoke16> @dscottboggs_gitlab I installed llvm via snap
<FromGitter>
<Blacksmoke16> And didn't have an issue
<FromGitter>
<randiaz95> I found a bug I have been working on fixing for 2 whole days :(
<FromGitter>
<Blacksmoke16> Rip
<FromGitter>
<randiaz95> it wasn't Crystal's problem after all
<FromGitter>
<randiaz95> it was that I was writing client code in python with the requests library
<FromGitter>
<randiaz95> and I wasn't using request`.text` attribute
<FromGitter>
<randiaz95> I couldn't figure out why I wasn't returning a string
<FromGitter>
<dscottboggs_gitlab> omg
<FromGitter>
<dscottboggs_gitlab> I feel so bad for you @randiaz95
<FromGitter>
<dscottboggs_gitlab> @Blacksmoke16 you installed llvm 8 on arch with snapd? ugh I don't wanna install snapd...
<FromGitter>
<Blacksmoke16> It installed 9
<FromGitter>
<Blacksmoke16> Manjaro
<FromGitter>
<Blacksmoke16> I use snap for most of my stuff so figured why not
<FromGitter>
<dscottboggs_gitlab> oh, so it'll work with 9? I'll try that, thanks
<FromGitter>
<dscottboggs_gitlab> > figured why not ⏎ ⏎ 😬 I have not had great experience with snaps. TBH I'd rather a wrapper script around docker containers than some from-scratch solution
<FromGitter>
<Blacksmoke16> oh? how so?
<FromGitter>
<dscottboggs_gitlab> I don't remember all of them, I think something just didn't work, but I've had permissions frustrations...plus that issue where the fonts wouldn't load in firefox
<FromGitter>
<Blacksmoke16> hm, fair enough
<FromGitter>
<dscottboggs_gitlab> Idk I mean don't get me wrong it's not *awful* I use it sometimes, but I go for native first, then aur, then docker, *then* snaps lol
dwdv has quit [Ping timeout: 240 seconds]
<FromGitter>
<smprather> I spent a whole day finding this: "%0.2f" % some_float_var.to_s (feeding a string to the format instead of a float)
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
Flipez4 has joined #crystal-lang
Flipez has quit [Quit: Ping timeout (120 seconds)]
<FromGitter>
<pmags_gitlab> Can the property macro be used with hash instance variables? This syntax ` property dict : {} of String => String` doesn't seem to work.
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter>
<stnluu_twitter> Hi all!
<FromGitter>
<stnluu_twitter> I'm trying to call Path.info(p), where p is a Path variable and the compilation is failing because it's trying to call `inspect_unquoted`
<FromGitter>
<TheOnlyArtz> let's say I have a struct with the ability to take a Hash and assign it's properties accordingly. ⏎ I will provide an example with rethinkDB but really it can happen with every database library out there. ⏎ ⏎ When querying the database the result of the query is of a type called `RethinkDB::QueryResult` which is really just an alias for many primitives available in Crystal. ⏎ On the other hand I
<FromGitter>
<TheOnlyArtz> let's say I have a struct with the ability to take a Hash and assign it's properties accordingly. ⏎ I will provide an example with rethinkDB but really it can happen with every database library out there. ⏎ ⏎ When querying the database the result of the query is of a type called `RethinkDB::QueryResult` which is really just an alias for many primitives available in Crystal. ⏎ On the other hand I
<FromGitter>
<recepaltas_gitlab> @recepaltas_gitlab ⏎ Hi How can i receive results from mysql query as an array ⏎ sonuc = db.query "select * from *istekler where istek*email=?", args: [user] ⏎ like this ⏎ but i can not access sonuc [https://gitter.im/crystal-lang/crystal?at=5e0499ff8897197969fe606c]
<FromGitter>
<Blacksmoke16> would have to iterate over the resultSet
duane has joined #crystal-lang
<foxxx0>
hey, how do i access object properties via a variable? e.g. i have a custom class with properties "foo" and "bar" and now i don't want to do myobject.foo and myobject.bar but instead %w[foo bar].each { |i| myobject.send(i) } or similar.
_whitelogger has joined #crystal-lang
<foxxx0>
nvm, managed to solve it using templating and {{i.id}} :)
<FromGitter>
<Blacksmoke16> would have to have a method that internally uses like `case` to call the correct value
<FromGitter>
<Blacksmoke16> method*
_whitelogger has joined #crystal-lang
DTZUZO has joined #crystal-lang
gangstacat has quit [Ping timeout: 248 seconds]
FromGitter has quit [Read error: Connection reset by peer]
lunarkitty has joined #crystal-lang
<lunarkitty>
Are there any shards or gems for crystal <> ruby binding/communication?