Is there a way to remove mab and ar from camping?

2014-06-23 Thread Tim Uckun
If I want to use other things can they be removed without hacking the code?
If I do fork it and remove them will the rest of the stuff work?
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

replacing markaby with something else.

2014-06-22 Thread Tim Uckun
Recently an announcement was made about the fortitude gem.

https://groups.google.com/forum/#!topic/erector/QFWdwYPG1q4

This gem works a lot like markaby but promises to be much faster.  How hard
would it be to swap out fortitude for Mab in camping?
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: camping app on elastic beanstalk

2014-01-17 Thread Tim Uckun
If you run the migrations it should create the database for you.


On Sat, Jan 18, 2014 at 3:46 AM, arca0  wrote:

> ok, I'm an absolute newbie myself so I'm just guessing away here, but
> since nobody else is responding, here goes ;D
>
> I can't see a single line of code that would be responsible for creating
> the db file. Is the app.db file in your project directory on the instance?
> If not, can you try copying it from the local environment to see if it
> fixes the problem?
> Also, are you sure sqlite3 gem has built native extensions properly?
>
> You really got me curious here ;D Please be sure to let me know if you
> manage to solve the problem :)
>
>
> On 17 January 2014 11:35, Francois Sery  wrote:
>
>> yes ! the answer is 3.6.20
>>
>>
>> 2014/1/17 arca0 
>>
>>> does your elastic beanstalk instance have sqlite3 installed? can you run 
>>> sqlite3
>>> --version on it?
>>>
>>>
>>> On 17 January 2014 09:07, Francois Sery  wrote:
>>>
 Bonjour,
  here is my app code and  the trace. thanks for your help.



 #app.rb
 require 'camping'
 require 'sqlite3'

 Camping.goes :App



  module App::Models
  #models


 class Personne < Base

 end

  #migrations

 class BasicFields < V 1.0
 def self.up
 create_table Personne.table_name do |t|
 t.string :nom
 t.text :prenom
 t.timestamps

 end

 end

 def self.down
 drop_table Personne.table_name

 end


 end


  end

 module App::Controllers
 class Index
 def get

 @env.inspect
 end
 end
 class Create
 def get
 Personne.create :nom => 'super', :prenom =>'man'
 redirect R(Index)

 end
 end
 end


 def App.create

 App::Models::Base.establish_connection(
 :adapter =>'sqlite3',
 :database => 'app.db'

 )

 end


 #
 and the trace (546)

-

 /usr/share/ruby/1.9/gems/1.9.1/gems/activerecord-4.0.2/lib/active_record/connection_adapters/abstract/connection_pool.rb:
in retrieve_connection
1.
   2. # Locate the connection of the nearest super class. This can
   be an
   3. # active or defined connection: if it is the latter, it will
   be
   4. # opened and set as the active connection for the class it
   was defined
   5. # for (not necessarily the current class).
   6. def retrieve_connection(klass) #:nodoc:
   7. pool = retrieve_connection_pool(klass)
1. (pool && pool.connection) or raise ConnectionNotEstablished...
1. end
   2.
   3. # Returns true if a connection that's accessible to this
   class has
   4. # already been opened.
   5. def connected?(klass)
   6. conn = retrieve_connection_pool(klass)
   7. conn && conn.connected?





 2014/1/15 arca0 

> Hi Francois,
> it looks like your db configuration is somehow wrong. Care to submit
> more information about that? How does your db config look?
> alex
>
> From: Francois Sery 
>> Date: 15 January 2014 08:10
>> Subject: camping app on elastic beanstalk
>> To: camping-list@rubyforge.org
>>
>>
>>
>> Bonjour les Campers,
>>  i need help deploying a camping app on  AWS  with elastic beanstalk.
>>  i can run a simple "hello camping app" with do database and only one
>> controller on elasticbeanstalk.But when i add  migration, model ,schema
>> creation and update the  gemfile   it doesn't work anymore.
>>  the app works fine on my local machine but not on beanstalk .I dont
>> understand  what is different from my local machine ?
>> Its the first time I deploy  an app so every advices are welcome.
>> here is the message from the log
>>
>> *** Exception ActiveRecord::ConnectionNotEstablished in Rack application 
>> object (ActiveRecord::ConnectionNotEstablished)
>>
>>
>>
>>
>>
>>
>>
>>
>> Thanks
>>
>>
>>
>> ___
>> Camping-list mailing list
>> Camping-list@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/camping-list
>>
>>
>
> ___
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>


 ___
 Camping-list mailing list
 Camping-list@rubyforge.org
 http://rubyforge.org/mailman/listinfo/campin

Re: Multiple camping apps in the same rackup?

2013-12-31 Thread Tim Uckun
Can you match on top level domains?


On Wed, Jan 1, 2014 at 1:05 AM, Magnus Holm  wrote:

> Sorry for the late reply.
>
> The easiest way is to use a config.ru file (this is how you probably
> run your Camping app anyway):
>
>   # in config.ru
>   map "/hello" do
> run Hello
>   end
>
>   map "/sinatra" do
> run Sinatra::Application.new
>   end
>
> // Magnus Holm
>
>
> On Sun, Dec 8, 2013 at 12:41 PM, Tim Uckun  wrote:
> > The camping book says this
> >
> > You can also use Rack::URLMap to plug a whole bunch of different apps in
> to
> > one folder. A camping app here, a rails project there, a sinatra doodad
> over
> > there in the corner messing up the whole global namespace. The
> possibilities
> > are severely limited!
> >
> > Does anybody have an example of how to do this?
> >
> > Thanks.
> >
> > ___
> > Camping-list mailing list
> > Camping-list@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/camping-list
> ___
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Camping without markaby.

2013-12-22 Thread Tim Uckun
How can I use something other than markaby for my views? My understanding
is that markaby is very slow.

Thanks.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Multiple camping apps in the same rackup?

2013-12-08 Thread Tim Uckun
The camping book says this

You can also use Rack::URLMap to plug a whole bunch of different apps in to
one folder. A camping app here, a rails project there, a sinatra doodad
over there in the corner messing up the whole global namespace. The
possibilities are severely limited!

Does anybody have an example of how to do this?

Thanks.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Benchmarked

2013-11-18 Thread Tim Uckun
ASW would be interesting as that's a very common use case for us and I am
sure many other people.


On Tue, Nov 19, 2013 at 12:44 PM, Koaps Freeman wrote:

> I was initially playing with Erlang, talk about good times, and I just got
> frustrated trying to do things I can do easily in Ruby and decided to fall
> back to Camping which I like a lot.
>
> Then I came across Celluloid (http://celluloid.io/) and with it on JRuby
> you can pretty much take full advantage of all your CPU cores.
>
> Plus it does the 'let it fail' actor model, so when your Camping app
> crashes, it just restarts the actor again.
>
> This can make for a really robust webapp with all the benefits of running
> within a JVM.
>
> I then saw Reel-Rack which made running Camping easier, but I had the
> question of, how good would the performance be with all the overhead of JVM
> - JRuby - Celluloid::IO - Reel - Reel-Rack - Camping.
>
> That's when I started putting together the benchmark project just to see
> how that setup would look against a MRI version of my webapps.
>
> The simple tests don't really do it much justice, I'm starting to play
> with DCell and ZeroMQ, so I might try to come up with some examples where
> JRuby can use all the cores and see how MRI does with the same code.
>
> I also tried to play with Rubinis but ran into install issues with some
> Gems so I decided to stick with JRuby.
>
> I'm also on SmartOS in a Zone and KVM for Linux, so the tests might be
> completely different on a pure linux install on the same hardware, for
> better or worse.
>
> Would be interesting to see but I'm not going to rebuild my server to find
> out, maybe I'll try it in AWS or something.
>
>
> On Mon, Nov 18, 2013 at 2:53 PM, Tim Uckun  wrote:
>
>>
>> Those are fascinating and very surprising results.
>>
>> I thought for sure trinidad would rule over all of them.  The performance
>> of Puma is also very surprising.
>>
>> So do you think there is any reason to use jruby at all given your
>> benchmarks. MRI seems to be pretty good.
>>
>> ___
>> Camping-list mailing list
>> Camping-list@rubyforge.org
>> http://rubyforge.org/mailman/listinfo/camping-list
>>
>
>
> ___
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Benchmarked

2013-11-18 Thread Tim Uckun
Those are fascinating and very surprising results.

I thought for sure trinidad would rule over all of them.  The performance
of Puma is also very surprising.

So do you think there is any reason to use jruby at all given your
benchmarks. MRI seems to be pretty good.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Camping Blog with Sequel, Thin and Rake

2013-11-14 Thread Tim Uckun
Thanks for posting this. It's good to have a non trivial one file app to
learn from.




On Fri, Nov 15, 2013 at 7:31 AM, Koaps Freeman wrote:

> Hi All,
>
> I just wanted to pass along some code I did recently.
>
> https://github.com/koaps/camping-thin-blog
>
> It's basically the Camping example Blog modified to work with Sequel, Thin
> Server and Rake migrations.
>
> I mainly did this because I'm testing using Camping on JRuby and
> Celluloid's Reel-Rack and since native extensions are problematic on
> current JRuby, I needed an easy alternative to pg gem and Sequel
> JDBC:Postgres isn't bad, though I could have used JDBC from AR.
>
>
> As a side note, here's my Nginx/HAProxy setup I'm using to frontend the
> Camping Apps with a backup server to host a static page if the app is down.
>
>
> http://nullworks.wordpress.com/2013/11/09/nginx-and-haproxy-for-fun-and-profit/
>
>
> ___
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
>
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Would like some hints on best ways to search for camping questions.

2013-11-03 Thread Tim Uckun
Thanks.

I might try the IRC but I am in NZ (currently in AU) so my time zones tend
to be unfriendly to most IRC channels.

My questions are about non trivial apps.  What do I do about migrations?
What if I don't want to use markaby? what's a good strateg for breaking
your app up into different files?.




On Sat, Nov 2, 2013 at 1:42 AM, låzaro  wrote:

> jusr now we hace a big problem with doc, but here in the mailing list you
> will have all you answers. Also in the IRC channel #camping we could help
> you. I'm  writing new doc about camping and need questions like yours, son
> write me please, and I'll focus the doc via your questions.
>
>
>
> Thread name: "Would like some hints on best ways to search for camping
> questions."
> Mail number: 1
> Date: Fri, Nov 01, 2013
> In reply to: Tim Uckun
> >
> > Hello Campers.
> >
> > On a whim I thought I would try to fool around with camping.   The
> > documentation is nice and does a fine job of covering what it wants to
> cover
> > but I needed some information not covered by the docs so I tried various
> ways
> > to search google for them. For some reason the searching ended up being
> a bit
> > frustrating. I guess the words ruby and camping are too common.
> Unfortunately
> > the mailing list archives are not searchable either.
> >
> > So how do you craft your searches?  In my case I was looking for
> information on
> > how to handle migrations and how to use different views (not markaby).
> >
> > Cheers.
>
> > ___
> > Camping-list mailing list
> > Camping-list@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/camping-list
>
>
> --
>  Warning! 
> 100'000 pelos de escoba fueron
> introducidos satisfactoriamente
> en su puerto USB.
>
>
>
>
> ___
> Camping-list mailing list
> Camping-list@rubyforge.org
> http://rubyforge.org/mailman/listinfo/camping-list
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Would like some hints on best ways to search for camping questions.

2013-10-31 Thread Tim Uckun
Hello Campers.

On a whim I thought I would try to fool around with camping.   The
documentation is nice and does a fine job of covering what it wants to
cover but I needed some information not covered by the docs so I tried
various ways to search google for them. For some reason the searching ended
up being a bit frustrating. I guess the words ruby and camping are too
common.   Unfortunately the mailing list archives are not searchable either.

So how do you craft your searches?  In my case I was looking for
information on how to handle migrations and how to use different views (not
markaby).

Cheers.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: A question about the ecosystem.

2011-08-30 Thread Tim Uckun
On Wed, Aug 31, 2011 at 1:33 AM, David Susco  wrote:
> I've got five camping apps in production. They're mostly CRUDs with
> some basic searching/e-mailing/etc. I use a few third party libraries;
> haml, paper_trail, rack/csrf and redcloth being the main ones. I
> haven't had too much need beyond those but your mileage will vary
> obviously.
>
> What Camping lacks is a lot of the fluff, but that's what I like the
> most about it. It keeps things simple.
>

I like the promise of simplicity too.  What are you using for
Authentication?  Does simple_form or formtastic work with camping or
do you use something else for that?  I like Typus as a quick way to
put up admin sites does anybody know if it works with camping? Has
anybody tried whenever?

I presume will paginate, chronic etc will work as long as I stick with
AR (although honestly I want to try something other than AR too).
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list


Re: What is the Best Way to Install Camping in 2011?

2011-08-30 Thread Tim Uckun
On Tue, Aug 30, 2011 at 5:09 PM, John Beppu  wrote:
> Let's say I have a pristine Unixy system in front of me.  (In my case, it's
> a new OS X 10.7 installation and I put MacPorts on there.)
> What is the simplest way to get an up-to-date Camping installation?
> (I've been out of the Ruby loop for a while.)


step 1. Install RVM

$ bash < <(curl -s https://rvm.beginrescueend.com/install/rvm)

step 2. Install ruby

rvm install 1.9.2

step 3. Install camping

gem install camping.

Voila!
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

A question about the ecosystem.

2011-08-30 Thread Tim Uckun
I am a long time rails developer looking for a new framework which is
leaner and less complex than rails.  Camping appeals to me for a lot
of reasons but I am curious about how a moderately conplex app would
look like in camping.  In rails my Gemfile is full of third party
libraries and I am wondering if they will all (or most) work with
camping. My guess is that they won't and I am worried that I will have
to code up all kinds of functionality I take for granted in the rails
world.

Maybe that's a good thing but I wanted to ask you guys about your
experience in taking advantage of other people's work.

Cheers.
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list