ChanServ changed the topic of #crystal-lang to: The Crystal programming language | https://crystal-lang.org | Fund Crystal's development: https://crystal-lang.org/sponsors | GH: https://github.com/crystal-lang/crystal | Docs: https://crystal-lang.org/docs | Gitter: https://gitter.im/crystal-lang/crystal
deavmi has joined #crystal-lang
hightower2 has quit [Ping timeout: 265 seconds]
deavmi has quit [Ping timeout: 258 seconds]
deavmi has joined #crystal-lang
repo[m] has quit [*.net *.split]
wmoxam_ has quit [*.net *.split]
fifr has quit [*.net *.split]
wmoxam has joined #crystal-lang
fifr has joined #crystal-lang
repo[m] has joined #crystal-lang
ur5us has joined #crystal-lang
ur5us has quit [Ping timeout: 264 seconds]
dostoyevsky2 has quit [Quit: leaving]
dostoyevsky2 has joined #crystal-lang
dostoyevsky2 has quit [Client Quit]
dostoyevsky2 has joined #crystal-lang
hightower2 has joined #crystal-lang
deavmi has quit [Quit: Eish! Load shedding.]
deavmi has joined #crystal-lang
yxhuvud has quit [Remote host closed the connection]
yxhuvud has joined #crystal-lang
f1refly has quit [Quit: see ya in hell]
f1refly has joined #crystal-lang
straight- is now known as straight-shoota
<FromGitter> <rishavs> For adding verification mails/forgot password mails to my crystal site, what would be the recommended way? ⏎ Use a specific shard or a mail over http provider? ⏎ Any recommendations?
deavmi has left #crystal-lang [P A R T E D]
casionaut has joined #crystal-lang
<FromGitter> <grkek> Hello People
<casionaut> hello
casionaut has quit [Remote host closed the connection]
Starfoxxes has quit [Ping timeout: 245 seconds]
Starfoxxes has joined #crystal-lang
<FromGitter> <Blacksmoke16> o/
<FromGitter> <Blacksmoke16> @rishavs REST API of some provider would prob be simplest. E.g. Postmark or something.
<FromGitter> <Blacksmoke16> https://linux.die.net/man/8/sendmail.sendmail is also a thing
<riza> @rishavs https://github.com/luckyframework/carbon has adapters to several rest api email vendors
<FromGitter> <jrei:matrix.org> Or could use a SMTP library too
<riza> if you do, you need to get the dkim and spf stuff setup or you'll get your server ip blacklisted in about 23 emails
<FromGitter> <jrei:matrix.org> I don't say setting up an email server
<FromGitter> <jrei:matrix.org> For example OVH provides a free email box along with the domain name, one could use it.
<riza> oh that's fair, you can use SMTP to send with most of the email APIs and they'll still handle the actual mail serving
casionaut has joined #crystal-lang
casionaut has quit [Remote host closed the connection]
ur5us has joined #crystal-lang
hightower2 has quit [Ping timeout: 244 seconds]
postmodern has joined #crystal-lang
<postmodern> is there a way to build a String out of multiple Chars? All of the String builder methods seem to rely on UInt8 values
<FromGitter> <Blacksmoke16> ```String.build do |io| ⏎ char1.to_s io ⏎ char2.to_s io ⏎ end``` [https://gitter.im/crystal-lang/crystal?at=61773a9b9d20982e4fdfac75]
<postmodern> ah clever
<postmodern> also kind of wish there was something like String.build, but was prepopulated with the contents of the string to make manipulating a String easier
<postmodern> probably could be done like the above: String.build(self.length) { |builder| builder << self.dup; builder.rewind; yield builder }
<FromGitter> <Blacksmoke16> for what purpose?
<postmodern> easily changing a single character at a given index in a stringg
<FromGitter> <Blacksmoke16> `"hello".sub(1, 'a') # => "hallo"`
<FromGitter> <Blacksmoke16> tada?
<postmodern> trying to port this code to crystal. it enumerates over all possible strings of a given length made of a given character set. does pretty basic character substitution using a transition table and some looping https://github.com/postmodern/chars.rb/blob/a6324db5d8093616f1f2f027e6de71aef071205e/lib/chars/string_enumerator.rb#L61-L94
<postmodern> wow that's an interesting use of sub
<postmodern> er overload of sub
<FromGitter> <Blacksmoke16> is also one that takes a `Range`
<FromGitter> <Blacksmoke16> there's another that supports a hash where the keys are subbed for their value
postmodern has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 264 seconds]
Daniel1970 has joined #crystal-lang
Daniel1970 has quit [Client Quit]