<FromGitter>
<Blacksmoke16> working on implementing CLI commands into athena
<FromGitter>
<Blacksmoke16> idea is you can make them to arbitrary things, like migrations of data, or adding x role to y user etc
<FromGitter>
<Blacksmoke16> so like you define a command like that
<FromGitter>
<Blacksmoke16> call `Athena.register_commands` in your main cr file
<FromGitter>
<Blacksmoke16> then when you build it you can do like `
<FromGitter>
<Blacksmoke16> `./myApp -c user --id=1 --name=Bob`
<FromGitter>
<Blacksmoke16> still WIP, but thats the general idea
<FromGitter>
<Blacksmoke16> main benefits are: allows it to still be a part of the app, access to same db connections etc, testable, easily document it, and have them optionally included in your binary for use on your server, vs maintaining a bunch of single binaries or your own option parser
<FromGitter>
<greenbigfrog> *so that one can simply do BitcoinRpc.getinfo etc isntead of having them as class methods(?), so that one can configure like
<FromGitter>
<greenbigfrog> Why do my messages keep simply sending if I return from a other app
<FromGitter>
<greenbigfrog> *kemal does
<FromGitter>
<greenbigfrog> Or is there a simpler/better way I could/should handle this? I'm thinking about making it like this since there's no state storing either way
<FromGitter>
<j8r> @greenbigfrog i noticed when we switch to another app/tab, the message in-writing is sent
<FromGitter>
<j8r> when we go back to the window
<FromGitter>
<j8r> and sometimes, the previous message in autocompleted, even if already sent :/
<FromGitter>
<j8r> gitter on android sucks :(
<FromGitter>
<staleo> @j8r what a coincidence: just like the gitter itself lol
<FromGitter>
<j8r> there is no perfect solution, each one bring its drawbacks
<FromGitter>
<j8r> there are great IRC Android clients I could use
<FromGitter>
<tonobo> I've tried rust, this performes quite well. But it's not fair to compare crystal and rust ;)
ashirase has quit [Ping timeout: 250 seconds]
ashirase has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
<FromGitter>
<tonobo> It might be related to: `accept: Too many open files (Errno)`
blassin has quit [Remote host closed the connection]
blassin has joined #crystal-lang
<FromGitter>
<greenbigfrog> Any thoughts on my question?
<FromGitter>
<bararchy> if there is not state storing you can do that, or, just add `def self.my_method` which means it can be accessed without initialization
<FromGitter>
<bararchy> @j8r , I wanted to PR a way to allow setting certificate path without needing a file (Certificate.new basiclly), but I get an error, you think you can give me your idea on it ?
devil_tux has joined #crystal-lang
<devil_tux>
morning all :> is there repository for playground? I think I found a bug
spacemanspam has quit [Read error: Connection reset by peer]
<FromGitter>
<girng> good morning!
<FromGitter>
<j8r> good night!
<FromGitter>
<j8r> Or good evening from UTC
<FromGitter>
<theretromaniac> Good evening
<FromGitter>
<theretromaniac> 19:04 Here
<FromGitter>
<theretromaniac> 😆
<FromGitter>
<j8r> my dream it the whole world to be in UTC
<FromGitter>
<j8r> no more hassle
<FromGitter>
<j8r> already there a some place where it's night at 15:00
<FromGitter>
<theretromaniac> we should abandon the world and move in one medirian
<FromGitter>
<girng> everything should use crystal
<FromGitter>
<girng> would be nice
patrickmcnamara has joined #crystal-lang
<FromGitter>
<bew> 😂
<FromGitter>
<girng> i'm about to rage. vscode is the most buggiest editor i've ever used in my life. so, remember 3 weeks ago or so i said it doesn't save my tabs (mostly crystal files). straight-shoota said there was an option for this, and he was right. the setting is "restore windows". i have it set to *all*. however, i just restarted my computer and opened vscode, and guess what all my crystal file tabs and everything is gone.
<FromGitter>
... so now, i have to re-open all my 6~ crystal files, my json file and then drag the tabs around. ⏎ ⏎ there was also an issue with the bookmarks plugin when using crystal's vscode formatter. however, it wasn't an issue with the @faustinoaq's addon, it was an issue with the editor itself, see this (https://github.com/alefragn ... [https://gitter.im/crystal-lang/crystal?at=5c37869083c7e377654ac407]
<patrickmcnamara>
How do I get a hexadecimal string of a UInt64?
<Yxhuvud>
to_s(16)
<patrickmcnamara>
Perfect. Thanks. 😊
<FromGitter>
<fridgerator> @girng i've never had any of these issues with vscode
<FromGitter>
<fridgerator> thats strange
Raimondi has joined #crystal-lang
Simerax has joined #crystal-lang
<Simerax>
hello guys i just started out using Crystal. Is there an equivalent to the base keyword of C#? If I have a Class "person" with the method "say_name" and then i have a subclass "employee" which inherits from "person" and i override the "say_name" method inside "employee" how can i then call the "say_name" method from "person"? The "prevous_def" function doesn't seem to do that
<devil_tux>
@Blacksmoke16: bless, thats exactly what I was trying to do
<FromGitter>
<Blacksmoke16> 👍
<devil_tux>
ty <3
<FromGitter>
<girng> @fridgerator i've made an issue on vscode repo finally
<FromGitter>
<drum445> @girng yeah VS code has a few issues that just made it more frustrating than it should be; I'm back with the trusty Sublime now
<FromGitter>
<girng> yeah, i was using sublime with crystal's formatter plugin. worked great, until randomly on save, it would delete half of your code
<FromGitter>
<drum445> not sure what's going on there, been using it for years and never seen anything like that
<FromGitter>
<girng> do you use the crystal plugin with it?
<FromGitter>
<drum445> I do
<FromGitter>
<j11m> I am attempting to implement a C Callback with a closure, as documented at the bottom of: https://crystal-lang.org/reference/syntax_and_semantics/c_bindings/callbacks.html. I intend to send the data from the callback to a channel, and this fails with: `BUG: Thread.current returned NULL`. `Channel.send` attempts to get the `current_fiber`, which in turn calls `Thread.current` -- but a C Callback cannot access its
<FromGitter>
... current thread inside of Crystal. Is there any way to make its `Thread.current` known?
<FromGitter>
<j8r> @fridgerator @girng is on Windows, it may be that 😁
<FromGitter>
<girng> 😆
spacemanspam has quit [Read error: Connection reset by peer]
Simerax has quit [Remote host closed the connection]
<FromGitter>
<sam0x17> @j8r that makes sense -- didnt realize that
<FromGitter>
<malkomalko> just finishing up Programming Crystal (Beta 3), and it's been a really good quick read to get me caught up to speed
<FromGitter>
<j11m> To follow up from my message earlier, it would appear that a C-Callback in Crystal gives no access to Fibers. As a result, a C-Callback cannot do logging, write to channels, spawn, etc from within a C-Callback. This seems like a serious limitation. Has anyone found a workaround for this?