ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.22.0 | Fund Crystal's development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
<FromGitter> <johnjansen> you can also do `io.gets.try &.to_i` which might throw a `Invalid Int32` but wont stop for nils
zipR4ND has joined #crystal-lang
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
zipR4ND has quit [Ping timeout: 260 seconds]
<FromGitter> <Sija> hi there! any1 could help me with getting the binaries on rpi3?
<FromGitter> <Sija> after following steps from http://public.portalier.com/raspbian
<FromGitter> <Sija> I’m getting `W: Conflicting distribution: http://public.portalier.com raspbian/ Release (expected raspbian but got )`
<FromGitter> <ertw> @faustinoaq Thanks! I was serving on localhost, and needed to bind to all addresses.
fenicks has quit [Ping timeout: 240 seconds]
splitty___ has joined #crystal-lang
splitty__ has quit [Ping timeout: 268 seconds]
splitty___ has quit [Ping timeout: 268 seconds]
p0p0pr37_ has joined #crystal-lang
p0p0pr37_ has joined #crystal-lang
p0p0pr37 has quit [Ping timeout: 272 seconds]
p0p0pr37_ is now known as p0p0pr37
splitty_ has joined #crystal-lang
splitty__ has joined #crystal-lang
splitty___ has joined #crystal-lang
splitty_ has quit [Ping timeout: 240 seconds]
splitty__ has quit [Ping timeout: 240 seconds]
splitty___ has quit [Ping timeout: 246 seconds]
mark_66 has joined #crystal-lang
<FromGitter> <crisward> @drujensen thanks, but that's using https://github.com/raydf/smtp.cr which I'm pretty sure doesn't support attachments or secure login to an smtp server. Both of which are fairly important elements of en email library. It'd be nice if it had swappable drivers too, a bit like kemal-session has with redis / file / memory. So a single setting could swap smtp, to sendgrid, mailgun, SES etc.
splitty_ has joined #crystal-lang
sz0 has joined #crystal-lang
<FromGitter> <sdogruyol> yeah i agree @crisward
<FromGitter> <sdogruyol> we really need a good mail library
<FromGitter> <crisward> @sdogruyol how was crystal camp?
bjz has joined #crystal-lang
Kug3lis has joined #crystal-lang
bjz has quit [Client Quit]
bjz has joined #crystal-lang
<FromGitter> <sdogruyol> Just amazing
<FromGitter> <sdogruyol> I'll write a blog post soon
<FromGitter> <bararchy> We need a port of this: https://github.com/mikel/mail
<FromGitter> <bararchy> Maybe we can make https://github.com/mikel to come to the Dark Side :)
bjz has quit [Ping timeout: 246 seconds]
bjz has joined #crystal-lang
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 240 seconds]
zipR4ND has joined #crystal-lang
bjz_ has quit [Ping timeout: 240 seconds]
bjz has joined #crystal-lang
<FromGitter> <sdogruyol> Crystal side
<FromGitter> <sdogruyol> :)
zipR4ND has quit [Ping timeout: 268 seconds]
bjz_ has joined #crystal-lang
bjz has quit [Ping timeout: 240 seconds]
splitty__ has joined #crystal-lang
splitty___ has joined #crystal-lang
splitty_ has quit [Ping timeout: 240 seconds]
splitty__ has quit [Ping timeout: 268 seconds]
NIk-- has joined #crystal-lang
<FromGitter> <drosehn> Dark Crystal side?
<FromGitter> <bararchy> Well, the icon is indeed a black crystal right ?
<FromGitter> <bararchy> ;)
splitty___ has quit [Quit: Leaving]
<FromGitter> <crisward> Just curious, in `mikel/mail` the api involves calling methods inside a yielded block. Is this a common pattern in ruby?
<FromGitter> <drujensen> @crisward right, its just for simple email delivery
<FromGitter> <drujensen> still a lot of work to do on it.
<FromGitter> <drujensen> if your interested. ;-)
<FromGitter> <drujensen> `crisward/mail`?
bjz_ has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Raimondii has joined #crystal-lang
Raimondi has quit [Ping timeout: 268 seconds]
Raimondii is now known as Raimondi
<FromGitter> <crisward> @drujensen You don't want to rely on me to do open source. I have a few components in javascript and some bash dokku plugins, I'm a good starting but pretty poor maintainer. Once they do what I want them to do I loose interest. Get really bored by the edge cases. Someone should come up with a tag team open source thing, starters + maintainers. Though I have a feeling most people won't want the maintainer
<FromGitter> ... job....
<FromGitter> <bararchy> @crisward lol this is true for so many people
<FromGitter> <bararchy> I also love to start new stuff , but then when the POC is working , I'll move to something else
<FromGitter> <sdogruyol> Maintain is hard
<FromGitter> <sdogruyol> Takes willpower and courage
<FromGitter> <sdogruyol> 😂
<FromGitter> <crisward> @sdogruyol Lot of admiration for anyone who maintains a large open source project. I don't mind contributing, but I wouldn't want to be the one who has to be notified of every issue etc... I imagine kemal is pretty non-stop.
NIk-- has quit [Quit: Textual IRC Client: www.textualapp.com]
fryguy9 has joined #crystal-lang
Kug3lis has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Kug3lis has joined #crystal-lang
<Yxhvd> crisward: calling methods in a yielded block is usually done using instance_exec in ruby. IIRC, the same functionality can be accomplished in crystal with 'with foo yield' or something like that (I don't reember the exact syntax)
DissonantGuil3 has quit [Ping timeout: 260 seconds]
fryguy9 has quit [Quit: Leaving.]
Philpax__ has quit [Read error: Connection reset by peer]
DissonantGuil3 has joined #crystal-lang
mark_66 has quit [Remote host closed the connection]
Kug3lis has quit [Ping timeout: 255 seconds]
<FromGitter> <Sija> `with self yield`
<FromGitter> <drosehn> I have been the maintainer for some parts of a large open-source project, and it can get pretty tiring. Everything seems to take more time and energy than you expect it to, especially if you want to do a really good job at it.
<FromGitter> <drosehn> Well, technically I still am a maintainer, but I've scaled back quite a bit, and only work on a very small piece of the larger project.
<Yxhvd> Sija: well you can put stuff other than self in it, no?
<FromGitter> <Sija> sure, but IIRC only passing `self` will give you situation comparable with ruby’s `instance_exec`
<Yxhvd> huh? How do foo.instance_exec differ from with foo yield (except that the latter doesn't take a proc which the former can do)
sgax has joined #crystal-lang
sgax is now known as sagax
<crystal-gh> [crystal] akzhan opened pull request #4418: Documentation for HTTP.rfc1123_date. (master...doc-HTTP.rfc1123_date) https://git.io/v9Nlo
<RX14> Why is keys.gnupg.net down soo often
<RX14> it's either always down when I want to use it or more likely it's just down half the time
aemadrid has quit [Ping timeout: 258 seconds]
Majost has quit [Ping timeout: 258 seconds]
<crystal-gh> [crystal] akzhan opened pull request #4419: Extend known HTTP default status messages by RFC's (master...extend-http-status-codes) https://git.io/v9N0W
aemadrid has joined #crystal-lang
Majost has joined #crystal-lang
wuehlmaus has quit [Quit: Lost terminal]
wuehlmaus has joined #crystal-lang
jokke has quit [Ping timeout: 258 seconds]
jokke has joined #crystal-lang
<RX14> AWS's UI is so badly designed that I literally can't log in to my manas account
<FromGitter> <johnjansen> @RX14 it is terrible, yes
<RX14> after I sign out of my personal account there's no way to log in to the other type of account
<FromGitter> <johnjansen> and replace the arn
<FromGitter> <johnjansen> if you know it
<FromGitter> <johnjansen> that doesnt work ...
<RX14> adventures in multiple AWS accounts
<FromGitter> <johnjansen> its bad if you cant figure it out my friend
<FromGitter> <johnjansen> https://manas.signin.aws.amazon.com/console perhaps
<RX14> ok
<RX14> i found the email at last
<FromGitter> <johnjansen> :-/
<FromGitter> <johnjansen> oh good
<RX14> had to check the data on an Im conversation
<RX14> and search through emails around that time
<RX14> because it's From header was "santiago palladino" instead of anything related to aws
<RX14> which is great UX
<RX14> impersonating a person even if they triggered the action
<FromGitter> <johnjansen> amazon do great things, but ui aint any of them
<RX14> i should just stop complaining and do what I was going to do in the console :P
<FromGitter> <johnjansen> haha
TheLemonMan has joined #crystal-lang
Ven has joined #crystal-lang
Ven is now known as Guest52168
wontruefree has joined #crystal-lang
Guest52168 has quit [Ping timeout: 260 seconds]
Ven_ has joined #crystal-lang
Ven_ has quit [Ping timeout: 260 seconds]
<RX14> ahahahaha yesss
<RX14> a 32bit debian AMI
<RX14> wait uhh this isn't 32bit
<RX14> oh, I just clicked on the wrong AMI
<RX14> good job me
Ven has joined #crystal-lang
Ven is now known as Guest60500
<FromGitter> <johnjansen> gold star @RX14 and a chocolate fish
<RX14> haha
<RX14> turns out crystal's CI 32bit will be easier than expected
<FromGitter> <johnjansen> lovely
<RX14> unfortunately it will require a new VM
<RX14> CI is hard... really
Guest60500 has quit [Ping timeout: 240 seconds]
<RX14> for crystal at least
<RX14> I always feel like scrapping jenkins and making something simpler and tailored for crystal would be better
<RX14> but that's probably just my NIH speaking
<FromGitter> <johnjansen> im not a jenkins fan
<RX14> it's pretty good
<Papierkorb> jenkins always just worked for me, also industry standard
<Papierkorb> the least bullshitty java application I know
Ven_ has joined #crystal-lang
<RX14> i'm not sure how i'll integrate the pipeline builds with the bot though
<RX14> I guess I can use a build parameter
<RX14> and parse that in groovy
<RX14> seems to be chugging away so far
<RX14> i wonder if it'll manage to compile on 32bit
<RX14> it should use less memory... but 2gb less?
<RX14> we'll see
wontruefree has quit [Quit: Textual IRC Client: www.textualapp.com]
<RX14> nope
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<FromGitter> <ltran> Is there a way to call OptionParser flags when using `crystal ./src/myfile.cr --help` ? It keeps executing `crystal`’s help :O
<FromGitter> <johnjansen> are you missing `run`
<RX14> you need to use -- between crystal's flags and the program flags
<RX14> crystal ./src/myfile.cr -- --help
<FromGitter> <ltran> ah okay thanks ill try that
<FromGitter> <johnjansen> @RX14 is there anything you havent already figured out ;-)
<FromGitter> <ltran> thanks! saves me from compiling all the time :D
<RX14> after being around for more than a year you get a lot figured out
<FromGitter> <johnjansen> *you* certainly do
<FromGitter> <ltran> i was thinking there must be a better way! How did you find out? =D
<RX14> well -- is a pretty common thing, but I can't remember how I found it
bjz has joined #crystal-lang
<RX14> it's in the help if you look at it carefully I think
<RX14> and maybe someone around here told me
<RX14> I can't remember
<FromGitter> <ltran> okay :) sneaky
Ven_ has joined #crystal-lang
<FromGitter> <johnjansen> @RX14 are you at high school or uni?
<RX14> neither technically but high school if you want to very roughly translate to the american system
<RX14> i'm off to uni in september (hopefully)
<FromGitter> <johnjansen> im a kiwi, so i can handle uk terms
<RX14> i'm in 6th form college
<FromGitter> <johnjansen> what will you study … or is that obvious
<FromGitter> <johnjansen> i get 6th form :-)
<RX14> computer science and electronic engineering
<RX14> or just CS
<RX14> depends on my exam results
<FromGitter> <johnjansen> well, if you cant get in, no-one should
<RX14> thanks
<FromGitter> <johnjansen> get a reference from mana's (as many there as you can muster … especially anyone with a MS or Dr)
<FromGitter> <johnjansen> i will give you one too if you need it
<FromGitter> <johnjansen> which uni?
<RX14> a bit past that stage for uni applications
<FromGitter> <johnjansen> ok
<RX14> either bristol or london city uni, bristol being my first choice
<FromGitter> <johnjansen> the Nth hemisphere timetable is still messing with my head
<FromGitter> <johnjansen> im used to christmas holidays being the end / start of the school year
<RX14> I guess you have to deal with the north hemisphere timetable a lot more than we deal with the south
<FromGitter> <johnjansen> im in california now, so im constantly being messed with
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<RX14> oh dear
Ven_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
zipR4ND has joined #crystal-lang
<crystal-gh> [crystal] akzhan opened pull request #4420: More documentation for Exception class. (master...doc-Exception-class-more) https://git.io/v9AG6