jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.5.8 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ - API: http://crystal-lang.org/api/ - Logs: http://irclog.whitequark.org/crystal-lang
weskinner has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
waj has quit [Quit: Leaving.]
waj has joined #crystal-lang
weskinner has quit [Ping timeout: 256 seconds]
zamith has quit [Quit: Be back later ...]
waj has quit [Quit: Leaving.]
shama has quit [Remote host closed the connection]
bcardiff has joined #crystal-lang
shama has joined #crystal-lang
shama has quit [Ping timeout: 244 seconds]
shama has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
shama has quit [Remote host closed the connection]
shama has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
drizz has quit [Ping timeout: 245 seconds]
drizz has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
leafybasil has quit [Remote host closed the connection]
zamith has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
leafybasil has joined #crystal-lang
zamith has joined #crystal-lang
zamith has quit [Quit: Be back later ...]
zamith has joined #crystal-lang
zamith_ has joined #crystal-lang
zamith has quit [Ping timeout: 252 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/NmgL
<crystal-gh> crystal/master 65855d6 Ary Borenszweig: Added Signal::DEFAULT and Signal::IGNORE handlers. Related to #408
<travis-ci> manastech/crystal#1954 (master - 65855d6 : Ary Borenszweig): The build passed.
asterite has joined #crystal-lang
bcardiff has joined #crystal-lang
canhtak has joined #crystal-lang
<canhtak> 2\oi2j-?
<asterite> >> 2\oi2j-?
<DeBot> asterite: Syntax error in eval:3: unknown token: 'o'
waj has joined #crystal-lang
asterite_ has joined #crystal-lang
asterite has quit [Ping timeout: 256 seconds]
asterite_ is now known as asterite
waj1 has joined #crystal-lang
waj has quit [Ping timeout: 252 seconds]
weskinner has joined #crystal-lang
ismaelga has joined #crystal-lang
asterite has quit [Quit: asterite]
<crystal-gh> [crystal] weskinner closed pull request #407: crystal deps remove (master...master) http://git.io/NIN1
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 246 seconds]
<weskinner> I'm looking for a crystal project to contribute to or possible start. Anyone need help or have any ideas? One that just came to mind is something like JsFiddle for demonstrating solutions in Javascript. CyrstalFiddle.
asterite has joined #crystal-lang
<weskinner> this could be a good model: http://rubyfiddle.com/
<weskinner> the ability to publish and explain snippets as a teaching tool would be nice for documentation
<asterite> For now we have
<asterite> >> “th” + “is"
<DeBot> asterite: Syntax error in eval:3: unexpected token: DELIMITER_START
<asterite> Oh, my IRC client… :(
<asterite> But yes, it would be nice to have. We could use jhass’s sandbox
<weskinner> that's what I was hoping :)
<weskinner> would present a lot of opportunities for extending frank and other libraries, like jhass'
<asterite> Mm… would you code in the browser?
<jhass> apparently some do, it's called "atom" :P
<asterite> lol
<jhass> granted, gnome 3 is to a large part written in JS too these days
<weskinner> jhass: do you currently disable things like `rm -rf /` in your sandbox?
<jhass> weskinner: feel free to break the bot ;)
<jhass> >> `rm -rf /`
<DeBot> jhass: Sorry, I can't let you do that.
<weskinner> :D
<weskinner> `cat /etc/passwd`
<weskinner> >> `cat /etc/passwd`
<DeBot> weskinner: "root:x:0:0:root:/root:/bin/bash\nbin:x:1:1:bin:/bin:/usr/bin/nologin\ndaemon:x:2:2:daemon:/:/usr/bin/nologin\nmail:x:8:12:mail:/var/spool/mail:/usr/bin/nologin\nftp:x:14:11:ftp:/srv/ftp:/usr/bin/nologin\nhttp:x:33:33:http:/srv/http:/usr/bin/nologin\nuuidd:x:68:68:uuidd:/:/usr/bin/nologin\ndbus:x:81:81:dbus:/:/usr/bin/nologin\nnobody:x:99:99:nobody ...
<weskinner> the old smiley encryption, eh?
<jhass> that's your clients problem ;)
<weskinner> haha, jk
asterite_ has joined #crystal-lang
asterite has quit [Ping timeout: 255 seconds]
asterite_ is now known as asterite
<weskinner> zamith: what all is involved in getting a frank app up on heroku?
ismaelga has quit [Remote host closed the connection]
shama has joined #crystal-lang
canhtak has quit [Quit: canhtak]
bcardiff has joined #crystal-lang
bcardiff1 has quit [Ping timeout: 240 seconds]
ismaelga has joined #crystal-lang
zamith_ has quit [Read error: Connection reset by peer]
weskinner has quit [Remote host closed the connection]
weskinner has joined #crystal-lang
canhtak has joined #crystal-lang
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
bcardiff1 has joined #crystal-lang
<weskinner> trying to build a docker container for a frank app and when it's run from the container I get "while requiring "http/server": can't find file 'http/server' relative to '/var/www/libs/frank/frank'"
<asterite> What’s CRYSTAL_PATH there?
bcardiff has quit [Ping timeout: 250 seconds]
<asterite> I’m not sure that manastech/crystal is up to date, maybe use `FROM manastech/crystal-head`
<weskinner> asterite: I assumed it was getting setup by crystal
<asterite> But let me see...
<weskinner> ok I'll give that a try
<asterite> Just because I’m not sure how manastech/crystal is generated, maybe waj pushes it manually, but I remember crystal-head is pushed automatically
<asterite> You can try and see which crystal version is that, in that docker container
ismaelga has quit [Remote host closed the connection]
<weskinner> working on that now. still very new to docker :)
asterite_ has joined #crystal-lang
asterite has quit [Ping timeout: 264 seconds]
asterite_ is now known as asterite
canhtak has quit [Quit: canhtak]
asterite_ has joined #crystal-lang
asterite has quit [Ping timeout: 250 seconds]
asterite_ is now known as asterite
asterite_ has joined #crystal-lang
ismaelga has joined #crystal-lang
asterite has quit [Ping timeout: 245 seconds]
asterite_ is now known as asterite
ismaelga has quit [Remote host closed the connection]
asterite has quit [Quit: asterite]
waj1 has quit [Quit: Leaving.]
bcardiff1 has quit [Quit: Leaving.]
ismaelga has joined #crystal-lang
zamith has joined #crystal-lang
<zamith> weskinner: sorry, wasn't here
<zamith> it's pretty simple actually
<zamith> heroku create myapp --buildpack https://github.com/zamith/heroku-buildpack-crystal
<zamith> where myapp is the name of your app
<zamith> then it will install your dependencies with crystal deps
<zamith> and will run whatever is on app.cr
<zamith> here's an example of a working app https://github.com/zamith/crystalshards
<weskinner> oh wow. that's convenient
<weskinner> zamith: have you run into issues with frank hanging or assets?
<zamith> what do you mean?
<zamith> To work on heroku your assets must be on the public folder
<zamith> weskinner: in the example I've used gulp to preprocess and minify everything into public
<zamith> but that is not mandatory
<weskinner> locally I'm working on app that loads multiple assets
<weskinner> <script src="/codemirror/lib/codemirror.js"></script>
<weskinner> 4 <link rel="stylesheet" href="/codemirror/lib/codemirror.css">
<weskinner> 5 <script src="/codemirror/mode/javascript/javascript.js"></script>
<weskinner> I get a 200 on codemirror.js
<weskinner> but codemirror.css just hangs at pending
<zamith> it has to be on public/codemirror/lib/codemirror.css
<weskinner> william@ubuntu:~/working/crystalfiddle$ ls public/codemirror/lib/
<zamith> to work on heroku
<weskinner> codemirror.css codemirror.js
<zamith> never had that issue
<weskinner> hmm
<zamith> if the js worked, the css worked
<zamith> is it open source?
<zamith> can I try it?
<weskinner> just created a very basic frank app that returns "<html><head><script src=\"/1.js\" ></script><script src=\"/2.js\" ></script></head><body></body></html>"
<weskinner> from /
<weskinner> and it will get 1.js and 2.js sometimes
<weskinner> but other times 2.js will be pending forever
<zamith> I only tried it with 1 file, maybe the fact that it has two has some sort of issue
<zamith> frank is actually delegating to crystal for this
<zamith> and all this handler is doing is sending the file if it exists
<zamith> weskinner: that only happens on heroku?
<weskinner> nah this is just local
<zamith> can you push it to github, so I can try it?
<weskinner> one sec
<weskinner> I'm guessing it's something in the handlers stack?
<weskinner> need to fork frank so I can test
<zamith> it should be something like that
<zamith> frank is very untested and barebones
<weskinner> was Dir::list removed recently
<weskinner> trying to run crystal from cloned repo and seeing "undefined method 'list' for Dir:Class"
<weskinner> running like "william@ubuntu:~/tmp/test-frank-assets$ ~/working/crystal/bin/crystal app.cr "
<zamith> yes
<zamith> use Dir.foreach
<crystal-gh> [crystal] zamith opened pull request #409: Uses correct Dir method for static file handler (master...master) http://git.io/NZkm
<zamith> just fixed it
<zamith> weskinner: but I was able to reproduce you issue
<weskinner> looks like it's not making to the static file handler #call when it pends
<weskinner> gotta pack it up for the day but hopefully look at this later tonight. thanks for the help zamith
<zamith> yes, it seems it hanging before the GET /2.js
<zamith> I'll give a look and let you know if I can find out what's happening
weskinner has quit [Ping timeout: 256 seconds]
<zamith> if you leave the break but remove the unless, it will work
<zamith> the issue is that browsers will send the keep-alive flag in the first request, which will hang the next
<zamith> I'm not sure why this unless is here in the first place
<zamith> I'll talk with asterite about it
<zamith> weskinner: you can use https://github.com/zamith/crystal/tree/no-keep-alive for the time being