<FromGitter>
<damianham> > Did you try the ‘dispatch’ method in the channel? That didn’t propagate to redis ⏎ ⏎ The dispatch method requires a client socket which pushing from a controller doesn't have hence I went with publishing directly to Redis.
<FromGitter>
<damianham> @elorest I would appreciate anything you can share regarding talking to a CanBus as I am also in that space.
<FromGitter>
<drujensen> @damianham ok. We should add someway of sending messages server side.
<FromGitter>
<Brodan> > Was supposed to be playing borderlands last night with coworkers but ended up working on the binary messaging protocol for communicating between Vehicle Head Unit and Can Gateway. It's crazy how efficient some of Crystal's low level stuff is. I accomplished in like 76 lines of code what the controls team wrote over 1200 on. ⏎ ⏎ as a total crystal newbie can you ELI5 this?
<FromGitter>
<Brodan> is this in regards to that trucking company thats using crystal?
<FromGitter>
<drujensen> Yes, @elorest is the lead engineer for Nikola and is using crystal for the dashboard talking to the hardware, sensors, etc. pretty low level stuff that normally would be written in C or ASM.
<FromGitter>
<drujensen> Probably should let him explain. 😀
<FromGitter>
<sam0x17> what's the fix for this? `Warning: Deprecated Amber::Environment::Logger#initialize. Use `Log` module instead` (0.34.0 upgrade warning)
<FromGitter>
<Blacksmoke16> amber needs to update to use `Log` versus `Logger`
<FromGitter>
<sam0x17> ah ok -- any way I can suppress this warning for now?
<FromGitter>
<Blacksmoke16> `--exclude-warnings <path> Exclude warnings from path (default: lib)`
<FromGitter>
<sam0x17> omg thx
<FromGitter>
<sam0x17> I was expecting "no"
<FromGitter>
<drujensen> I opened an issue if anyone has time to fix it.
<FromGitter>
<drujensen> For both granite and amber
<FromGitter>
<sam0x17> how do I list multiple paths with that?
<FromGitter>
<sam0x17> just list multiple switches, or do like commas or $PATH style ":" between paths or something
<FromGitter>
<sam0x17> ?
<FromGitter>
<Blacksmoke16> :shrug:
<FromGitter>
<Blacksmoke16> maybe call it more than once
<FromGitter>
<Blacksmoke16> or really for now *could* just do `--warnings none`
<FromGitter>
<sam0x17> calling more than once was the answer -- thanks @Blacksmoke16 !!
<FromGitter>
<sam0x17> so for anyone else who wants it, this should get you normal warning behavior ignoring the logger stuff: ⏎ ⏎ ```crystal build --exclude-warnings "/usr/share/crystal/src/" --exclude-warnings "lib"``` ⏎ ⏎ also works with `amber watch`, `crystal spec`, etc. [https://gitter.im/amberframework/amber?at=5e948cc1c52b6a38abe24aed]
<FromGitter>
<sam0x17> note: not 100% sure that that path is the same on OSX
<FromGitter>
<damianham> > @damianham ok. We should add someway of sending messages server side. ⏎ ⏎ Yes we really need to solve this problem. I don't have time at the moment unfortunately :( However a bit of good news is that I am solving one of my problems with the beginnings of an architecture for plugins so I might be able to make a PR for plugins for Amber before too long.
robacarp has joined #amber
<FromGitter>
<drujensen> That is great news.
<FromGitter>
<Blacksmoke16> @sardaukar i replied to your comment
<FromGitter>
<sam0x17> how to do "where date_field > some_timestamp" queries in granite?
<FromGitter>
<sardaukar> @Blacksmoke16 thanks, but I'm still confused :| can't run `shards` on my fork, I get that error message
<FromGitter>
<sardaukar> and the spec I added doesn't make sense that is passing, either :|
<FromGitter>
<Blacksmoke16> hm, yea thats not right
<FromGitter>
<Blacksmoke16> well maybe
<FromGitter>
<sardaukar> I don't see it grouped. Maybe I messed up the delegation?
<FromGitter>
<Blacksmoke16> do remember this is `SQL` `group by`
<FromGitter>
<Blacksmoke16> not like crystal array `group_by`
<FromGitter>
<sardaukar> Oh ok. Not super useful, then
<FromGitter>
<Blacksmoke16> what output were you expecting?
<FromGitter>
<sardaukar> Ideally, a hash with the groups as keys and the members of the groups as values inside an array
<FromGitter>
<sardaukar> In the specific case of the spec, a hash with "Some Name" and "Some Other Name" as keys and their values arrays of 2 items and 1 item respectively
<FromGitter>
<sardaukar> I'll have to do a DISTINCT on the `name` column and then do multiple queries with each value
<FromGitter>
<Blacksmoke16> is that something you can do in SQL?
<FromGitter>
<Blacksmoke16> right, thats on `Enumerable` as well
<FromGitter>
<Blacksmoke16> `latest_transcripts` is just returning an array of like `Transcript`
<FromGitter>
<sardaukar> yeah, calling #day on each of them
<FromGitter>
<sardaukar> not sure how useful my PR is now. Feel free to close it, if you'd like. I think I'll work a little bit outside of Granite to get what I'm aiming for on my project
<FromGitter>
<Blacksmoke16> I mean you could just do like `Model.all.group_by(&.name) { |name, objects| ... }`
<FromGitter>
<Blacksmoke16> or replace `all` with some query if you want to filter the collection