by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Despo Pentara
@despo
hey guys, I've just put some information up for our upcoming meetup
this is open to everyone, no signing up to codebar required
and thanks to @swathik @Rosa-Fox and @indykid for offering to do talks
emilycoats
@emilycoats
Hello all, quick question. Heroku seems great for hosting RoR apps but what do people use for javascript only pages? Is Heroku still the choice or is there something lighter/simpler?
Baris Balic
@barisbalic
You can try Github pages
Finding you a link now, but it could be considered equally complicated
emilycoats
@emilycoats
Cool thanks. I take it heroku would also work though?
Baris Balic
@barisbalic
Yeah heroku should work fine, but also heroku free tier will put your dyno to sleep if it's not getting much attention.
But that may not matter depending on what you are trying to do?
emilycoats
@emilycoats
I don't know what you mean by 'put your dyno to sleep'...
Baris Balic
@barisbalic
Ah okay, so heroku is probably fine, but when people don't visit for awhile, your site will effectively slow down for the next few visitors
emilycoats
@emilycoats
ah ok. no I don't really mind about that, I'm just playing around
Baris Balic
@barisbalic
So if noone visited for the next 5 minutes, it might go to sleep, then someone visits and its starts to wake up which is a bit slow for the first few requests
Excellent then either is fine
emilycoats
@emilycoats
thanks for your help :)
Baris Balic
@barisbalic
No problem, that's why we're here :)
Camille Baldock
@camilleldn
codebar.io seems to be down :-( happy to help with fix...
my heroku username is camille@camillebaldock.co.uk
Despo Pentara
@despo
@camilleldn :( i just restarted the server which sorted it out
2014-04-22T12:05:21.914433+00:00 app[web.1]: ActiveRecord::ConnectionTimeoutError (could not obtain a database connection within 5.000 seconds (waited 5.000 seconds)):
2014-04-22T12:05:21.914427+00:00 app[web.1]:
2014-04-22T12:05:21.914442+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' 2014-04-22T12:05:21.914445+00:00 app[web.1]: vendor/bundle/ruby/2.0.0/gems/activerecord-4.1.0/lib/active_record/connection_adapters/abstract/connection_pool.rb:146:insynchronize'
2014-04-22T12:05:21.914455+00:00 app[web.1]: vendor/ruby-2.0.0/lib/ruby/2.0.0/monitor.rb:211:in `mon_synchronize'
this is the second time this happens in the last couple of days, i think caused because we are running out of connections.
Daniel Barber
@danbee
@despo You need to make sure that you're not firing up more processes than you've got available database connections
Baris Balic
@barisbalic
I would have thought that heroku managed taht?
Daniel Barber
@danbee
Nope
Baris Balic
@barisbalic
Last time I was at their offices they were talking about injecting thin automagically because so many people would let WEBRick linger about, if they are doing that it would make sense to restrict the number of connections at the same time
Although I never checked to see if they did in the end, so thats a moot point
Daniel Barber
@danbee
It's difficult to do that because the maximum potential connections is dependent on the number of dyno's and threads/processes per dyno
If you decide to have 4 threads per dyno, you'll hit the limit of the hobby tiers with 5 dynos
Baris Balic
@barisbalic
I feel like this is drifting off topic for the tutorials channel, I also dont know enough about thin to make any statements
Despo Pentara
@despo
sorry im not participating a bit busy with some other stuff atm
Daniel Barber
@danbee
No worries
Daniel Barber
@danbee
404 for me :(
Despo Pentara
@despo
oh i privated it accidentally and cant change permissions.
Despo Pentara
@despo
Does anyone have any suggestions on tools to use for creating mobile mockups? Or general advice to one of the students who is asking about some advice in setting up a presentation for an app idea?
Baris Balic
@barisbalic
My advice would be sketch them with a pencil and not fuss around so much with apps
Despo Pentara
@despo
yeah i was thinking that, i was wondering because its a more format meeting if it would have higher chances of getting her funding if it looks more polished
Baris Balic
@barisbalic
Depends on the investors, she could spin it as being pragmatic
We did use this internall for awhile: http://balsamiq.com/products/mockups/
Well some people did.
Despo Pentara
@despo
Cool! I'll tell her this. And get her to ask here next time :)
its an imperial funding scheme.
Baris Balic
@barisbalic
Sanctioned by her majesty?
Despo Pentara
@despo
:D
Camille Baldock
@camilleldn
pingdom tells me the site is down, @despo i see you are rails consoling there, anything i can help with ? :-)
Camille Baldock
@camilleldn
and it's a heroku-wide issue :-(
Baris Balic
@barisbalic
codebar is responding for me?