faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
<FromGitter> <mixflame> livepost is now open source! https://github.com/mixflame/livepost enjoy. hope the code helps anyone
<FromGitter> <mixflame> it shows some advanced usage of amber
<FromGitter> <mixflame> the code is old, but if upgraded it could be a perfect example
<FromGitter> <elorest> @mixflame Thanks. How have you been?
<FromGitter> <mixflame> not too shabby! been floating around working on a mix of music and code. learned Swift finally
<FromGitter> <mixflame> i'm attempting to fix livepost myself right now for fun
<FromGitter> <elorest> Nice. I've done a bit with it but wouldn't say I'm an expert.
<FromGitter> <elorest> Miss music. Haven't played a show for 5 years.
<FromGitter> <mixflame> i'm simply OK at it
<FromGitter> <mixflame> yeah i got a korg monologue, kaoss pad and roland tr-8s that i jam on
<FromGitter> <mixflame> i can get by in swift but i'm no master either
<FromGitter> <mixflame> do you recognize this ```undefined constant Time::Kind::Utc``` lol
<FromGitter> <Blacksmoke16> uses location now https://crystal-lang.org/api/0.27.2/Time/Location.html
<FromGitter> <elorest> I'm more about playing keyboards.
<FromGitter> <mixflame> yeah
<FromGitter> <elorest> Yeah I believe we got that a while back when we upgraded the pg shard.
<FromGitter> <mixflame> thanks @Blacksmoke16
<FromGitter> <Blacksmoke16> thats a guess but id assume thats what it is
<FromGitter> <elorest> You need to use crystal 0.24 or above.
<FromGitter> <Blacksmoke16> `0.27.2` is latest atm
<FromGitter> <mixflame> yeah im using latest crystal and amber
<FromGitter> <elorest> Are your shards up to date as well?
<FromGitter> <mixflame> messing with that now
<FromGitter> <mixflame> have there been significant structural changes to amber?
<FromGitter> <mixflame> backwards incompatible
<FromGitter> <mixflame> well I'm facing this now:
<FromGitter> <mixflame> https://github.com/datanoise/mongo.cr is dead
<FromGitter> <mixflame> lol
<FromGitter> <mixflame> very dead
<FromGitter> <mixflame> and no one has made anything like it
<FromGitter> <mixflame> i couldn't fix the Time::Kind::Utc error on my own because it looks like they're using some kind of undocumented functionality
<FromGitter> <mixflame> not sure if it still exists, passing a Timespec to Time.new
<FromGitter> <elorest> Hmmm. Look at how PG fixed it.
<FromGitter> <elorest> I'm not going to use mongo again otherwise I might look at that.
feepbot has quit [Ping timeout: 244 seconds]
feepbot has joined #amber
<FromGitter> <drum445> @elorest cookie based sessions don't store data, they usually just store the session ID in the cookie and that is used to retrieve the actual session data from disk/db
<FromGitter> <drum445> @mixflame if you look in the PRs there is a branch that works with the latest
<FromGitter> <drum445> Seems like the owner isn't accepting PRs atm, so that lib is dead for now
<FromGitter> <mixflame> thanks @drum445
<FromGitter> <mixflame> hello friends
<FromGitter> <mixflame> I got past the mongo.cr issues with 0x17's branch
<FromGitter> <mixflame> now im hitting this ```ld: library not found for -lssl (this usually means you need to install the development package for libssl) ⏎ clang: error: linker command failed with exit code 1 (use -v to see invocation) ⏎ Error: execution of command failed with code: 1: `cc "${@}" -o '/Users/jonathansilverman/livepost/livepost' -rdynamic -lyaml -lz `command -v pkg-config > /dev/null && pkg-config --libs
<FromGitter> ... --silence-errors libssl || printf %s '-lssl -lcrypto'` `command -v pkg-config > /dev/null && pkg-config --libs --silence-errors libcrypto || printf %s '-lcrypto'` -lmongoc-1.0 -lbson-1.0 -lpcre -lgc -lpthread /usr/local/Cellar/crystal/0.27.2/src/ext/libcrystal.a -levent -liconv -ldl -L/usr/lib -L/usr/local/lib` ⏎ 🤖 Compile time erro ... [https://gitter.im/amberframework/amber?at=5cb0aca5016a930a45aa0957]
<FromGitter> <mixflame> I guess openSSL is part of Mac Mojave now
<FromGitter> <Blacksmoke16> sec
<FromGitter> <mixflame> i found this https://github.com/crystal-lang/crystal/issues/6875
<FromGitter> <Blacksmoke16> https://github.com/crystal-lang/crystal/issues/6875 @mixflame
<FromGitter> <Blacksmoke16> yea
<FromGitter> <mixflame> :D
<FromGitter> <mixflame> good news
<FromGitter> <mixflame> my amber server is running!
<FromGitter> <Blacksmoke16> nice one
<FromGitter> <mixflame> Amber 0.27.0 / Crystal 0.27.2
<FromGitter> <mixflame> seems to run fine
<FromGitter> <mixflame> yay!!!!
<FromGitter> <mixflame> working code pushed https://github.com/mixflame/livepost
<FromGitter> <mixflame> this will work good as an advanced example now
<FromGitter> <mixflame> I will make sure it all works and fix production mode and put up an example site again
<FromGitter> <mixflame> does anyone know a free place I can host it that will run redis, mongo and amber?
<FromGitter> <mixflame> what did ```amber.settings.env``` change to?
<FromGitter> <elorest> @drum445 with sessions you have multiple ways of storing data. db_store, memory_store, cookie_store, redis_store. Ten years ago storing sessions in the db was really popular but lead to a lot of issue like storing way too much in your sessions. Best practice in Rails, Phoenix, Amber is currently to use cookie store which stores the data in encrypted cookies. You're obviously limited to how much data you can store
<FromGitter> ... though. This isn't considered a problem as long as you don't go storing large values or huge strings.
<FromGitter> <elorest> Probably Amber.env
<FromGitter> <bajro17> @mixflame maybe you can post on Heroku
<FromGitter> <mixflame> do they support crystal?
<FromGitter> <bajro17> yes
<FromGitter> <bajro17> where are you from?
<FromGitter> <mixflame> denver
<FromGitter> <mixflame> colorado
<FromGitter> <bajro17> try also sign up on digital ocean
<FromGitter> <bajro17> with this https://m.do.co/c/11bbf4ea3859
<FromGitter> <bajro17> probably we will get credits and you can spend it on droplet and host few months with this
<FromGitter> <mixflame> alrighty!
<FromGitter> <bajro17> Tell me please if it work to I can check your website :)
<FromGitter> <mixflame> definitely
<FromGitter> <mixflame> lol it charged my 5 dollars but said it didnt work?!
<FromGitter> <bajro17> you need to create droplet
<FromGitter> <bajro17> then you connect with ssh
<FromGitter> <bajro17> and install nginx and everything
<FromGitter> <mixflame> well the site stole 5 bucks from me
<FromGitter> <mixflame> ill try heroku
<FromGitter> <mixflame> everything is broken on digital ocean
<FromGitter> <mixflame> the site, the signup, the support portal
<FromGitter> <Blacksmoke16> 😐
<FromGitter> <mixflame> yeah
<FromGitter> <mixflame> lol
<FromGitter> <mixflame> i got into heroku
<FromGitter> <bajro17> are you deploy it seccessful
<FromGitter> <bajro17> I really dont know long time I use digtalocean I never have problem
<FromGitter> <mixflame> not yet
<FromGitter> <mixflame> what's the correct way to specify amber environment?
<FromGitter> <mixflame> nvm
<FromGitter> <mixflame> looks like heroku lacks libmongo-c
<FromGitter> <mixflame> i cant run the app without tht
<FromGitter> <Blacksmoke16> cant you just install it?
<FromGitter> <mixflame> trying now
<FromGitter> <mixflame> uh oh
<FromGitter> <mixflame> heroku wants you to use mLab to store your data
<FromGitter> <mixflame> I use mongo.cr which uses the C driver to access Mongo which is probably faster
<FromGitter> <mixflame> heroku isn't gonna work
<FromGitter> <Blacksmoke16> welp
<FromGitter> <mixflame> im gonna ask a friend if he can host me a free 4gb ram server
<FromGitter> <0x2C6> Hi. How can use ambers built in methods in another crystal project? for example I'm trying to write a library for amber and in the code it should redirect the person to another page? I include Amber::Controller::Helpers::Redirect it sees the method but throw another error which is undefinend method, defined in private class. How can I call redirect_to ?
<FromGitter> <sam0x17> @mixflame I'm pretty sure you could set up a docker image for use with a custom heroku buildpack that would do what you want
<FromGitter> <sam0x17> also beware of datanoise's mongo.cr branch.. it is way out of date you will want to use one of the forks
<FromGitter> <mixflame> nah its fine a friend set up a server for me
<FromGitter> <mixflame> yeah im already using 0x17's fork
<FromGitter> <sam0x17> oh thats me
<FromGitter> <sam0x17> lol
<FromGitter> <mixflame> oh
<FromGitter> <mixflame> lol
<FromGitter> <mixflame> thanks for making that
<FromGitter> <sam0x17> np
<FromGitter> <sam0x17> someone made another one recently that I think is more up to date
<FromGitter> <sam0x17> mine is probably going to rot eventually
<FromGitter> <sam0x17> I'll dig through my github notifications and see if I can find
<FromGitter> <sam0x17> huh I actually have no idea where it went
<FromGitter> <sam0x17> but its in one of the pull request discussions
<FromGitter> <sam0x17> for either datanoise's repo or mine
<FromGitter> <mixflame> no worries
<FromGitter> <mixflame> how do I use Amber SSL?
<FromGitter> <mixflame> is it documented?
<FromGitter> <mixflame> it looks simple but i cant find docs