ChanServ changed the topic of #crystal-lang to: The Crystal programming language | | Fund Crystal's development: | GH: | Docs: | Gitter:
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> is also a thing
<riza> @rishavs has adapters to several rest api email vendors
<FromGitter> <> 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> <> I don't say setting up an email server
<FromGitter> <> 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> ``` do |io| ⏎ char1.to_s io ⏎ char2.to_s io ⏎ end``` []
<postmodern> ah clever
<postmodern> also kind of wish there was something like, but was prepopulated with the contents of the string to make manipulating a String easier
<postmodern> probably could be done like the above: { |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
<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]