Camping Free Ruby Hosting update and question

2012-08-30 Thread David C gurugeek
Hello!
Just a short update regarding the free hosting (I hope this is not too annoying 
but I received several emails from uses that saw this on the list so it could 
be interesting): we have now updated the system with more RAM and solid state 
drives. We have also removed the invitation key so everyone can apply at 
http://1.ai (provided that something that makes sense is written in the about 
you/motivation field. If you read this mailing list just note that and it will 
be fine - accounts are activated daily). 

The whole system is written in Camping + Bash and it was a bit of a challenge 
but also a lot of fun to learn the camping way to do things :)

Yet this is just free hosting ..so what is new ? Well we were thinking to make 
the service more special by adding an automatic live sync of user space (and 
all the relevant apps) in 2 more servers. This will include the mysql database 
if needed so for example if your app is at campingapp.1.ai it will 
automatically be live synched in 2 separate servers so for example 
campingapp.1.ai campingapp.2.ai campingapp.3.ai and the main domain 
campingapp.dotgeek.org will automatically switch in case that a server becomes 
unavailable. 

What do you think about this ?  It is probably not needed for most programmers 
that just want a space to try out things so we could also simply have a regular 
backup on S3 and similar services but it would certainly be something that, as 
far as I know, nobody offers ?

Thanks and 
Best Regards
David

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


Re: Camping Free Ruby Hosting update and question

2012-08-30 Thread David C gurugeek
Thank you Jenna.. an excellent point as always ! I agree that I wouldn't want 
to give any impression that this service should replace any paid hosting. So I 
think that a simple daily backup would suffice to guarantee any issue. We have 
a forum at http://dotgeek.org so I think we will use that one. I was also 
thinking about a coding competition with prizes etc. what do you think ?
thanks again
David 


On Aug 31, 2012, at 2:24 AM, Jenna Fox  wrote:

> I'm not sure I understand the usefulness of the second and third server? Is 
> it for redundancy? If I were running free hosting I'd be cautious of such 
> things as I wouldn't want to give the users the impression I was going to be 
> completely committed to keeping it online forever and having bulletproof 
> reliability and so on.I guess I'd be focusing more now on building a 
> community around it, so people can trade tips and help each other out. A 
> forum or something like that I guess?
> 
> —
> Jenna
> 
> On Friday, 31 August 2012 at 10:02 AM, David C gurugeek wrote:
> 
>> Hello!
>> Just a short update regarding the free hosting (I hope this is not too 
>> annoying but I received several emails from uses that saw this on the list 
>> so it could be interesting): we have now updated the system with more RAM 
>> and solid state drives. We have also removed the invitation key so everyone 
>> can apply at http://1.ai (provided that something that makes sense is 
>> written in the about you/motivation field. If you read this mailing list 
>> just note that and it will be fine - accounts are activated daily).
>> 
>> The whole system is written in Camping + Bash and it was a bit of a 
>> challenge but also a lot of fun to learn the camping way to do things :)
>> 
>> Yet this is just free hosting ..so what is new ? Well we were thinking to 
>> make the service more special by adding an automatic live sync of user space 
>> (and all the relevant apps) in 2 more servers. This will include the mysql 
>> database if needed so for example if your app is at campingapp.1.ai it will 
>> automatically be live synched in 2 separate servers so for example 
>> campingapp.1.ai campingapp.2.ai campingapp.3.ai and the main domain 
>> campingapp.dotgeek.org will automatically switch in case that a server 
>> becomes unavailable.
>> 
>> What do you think about this ? It is probably not needed for most 
>> programmers that just want a space to try out things so we could also simply 
>> have a regular backup on S3 and similar services but it would certainly be 
>> something that, as far as I know, nobody offers ?
>> 
>> Thanks and
>> Best Regards
>> David
>> 
>> ___
>> 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 programming competition ?

2012-08-30 Thread David C gurugeek
Thanks to Jenna for the valuable feedback. Posting now under a separate topic 
to brainstorm ideas for a camping programming competition/contest :)

What needs to be decided:

a) Theme and Jury

The theme options are to give something to code within a certain amount of time 
e.g. x days to complete a certain app that is the same for all the 
participants. More tricky but possible is to have a more open format and allow 
participants to craft what they want within certain boundaries (e.g. should use 
camping, should be a small app etc.) 

I am far from knowing enough about camping to be part of a jury but a I know 
someone that can join as a jury - any more volunteers? Or should it be judged 
by visitors /other users ?

b) Prizes (will be sponsored by David) 
Obviously a competition is mostly for the fun of it but some prizes can help to 
get more attention.
Suggestions are welcome ! ideas:
1st prize a tablet (e.g. ipad) or in the similar price range ?  2nd and 3rd 
price any suggestion ?
As alternative a gift certificates for http://www.thinkgeek.com/ or something 
from there..or books (amazon gift certificates)

c) Interaction: for the competition the best live interaction would probably be 
in IRC but forums can be used too. 

Last but not least as camping is a community project who is +1 or -1 for such 
an event :) ?
Thanks in advance for your feedback
David





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


Re: Apache Passenger and Reloader

2013-01-02 Thread David C gurugeek
Hello!
I am running apache with passenger too and I couldn't find a way to have a 
reloader feature as of now..this said you might want to use apache proxy to run 
directly camping (e.g. when you test code) using the default webserver (e.g. 
thin). I am using that to avoid the continuous reload even on a live website  
(http://1.ai) and it works very well.

Oddly sometimes things do not work between thin and apache + passenger (it is 
rare but...) so I think you could use thin + apache proxy when you test your 
code live and apache + passenger for the code that you do not need to re-load 
several times ?

Others might have better ideas for config.ru so just take my workaround as such 
!
Best Regards
David


On Jan 2, 2013, at 7:02 PM, Koaps Freeman  wrote:

> Hi Guys,
> 
> I just started playing with camping and so far it's pretty awesomo.
> 
> After much messing around I was finally able to get Apache Passenger, Camping 
> and ActiveRecord to PostgreSQL working.
> 
> One thing I was wondering about, can I use reloader with Apache Passenger?
> 
> Always having to touch/rm a tmp/restart.txt to see changes or reloading 
> apache altogether is kinda a pain and I was hoping I can use reloader to just 
> detect changes to make recovering from errors faster as I type code.
> 
> I saw some previous post about using reloader:
> 
> http://rubyforge.org/pipermail/camping-list/2010-August/001378.html
> 
> Which used on_reload which doesn't seem to exist anymore.
> 
> I'm still learning rack/rails stuff so not really sure how to setup my 
> config.ru to use reloader.
> 
> In the reference it says:
> 
>  require 'camping/reloader'
>   reloader = Camping::Reloader.new('/path/to/yourapp.rb')
>   blog = reloader.apps[:Blog]
> 
> The blog object will behave exactly like your
> Blog and Wiki, but they will update themselves if yourapp.rb changes.
> 
> I'm not sure how I get passenger to then run the blog from the config.ru
> 
> 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

Re: Apache Passenger and Reloader

2013-01-02 Thread David C gurugeek
I understand! To achieve exactly that just use thin on your remote webserver 
(and apache or nginx as proxy..if you need the setting I can try to help but 
you can certainly find it on google too) then you can just drop your script via 
FTP and it will auto reload remotely too. Even on the days where I had 1000+ 
daily visitors thin did work very well so I would use that vs. passenger (I do 
use passenger for the multi users hosting as it does have some benefits e.g. we 
also run PHP and Perl in parallel and give more choices to developers to run 
scrips in several languages in parallel).

Another simple solution would be this: whenever you upload your script just 
upload restart.txt too and it will work. Sorry if this is not ideal but I don't 
think that there are other options with passenger + apache.
Best Regards and Happy 2013
David



On Jan 2, 2013, at 8:53 PM, Koaps Freeman  wrote:

> Thanks for the reply David,
> 
> I thought about trying that also.
> 
> Right now this is just for home devel stuff so it doesn't need to be robust 
> or anything, I just develop on my laptop which is separate from the webserver 
> so I was hoping I could just upload stuff and the server reloads without me 
> having to actually be logged into it.
> 
> The restart.txt seems to be hit or miss which is why I didn't want to use it.
> 
> Thanks
> 
> On Wed, Jan 2, 2013 at 10:26 AM, David C gurugeek <1...@1.ai> wrote:
> Hello!
> I am running apache with passenger too and I couldn't find a way to have a 
> reloader feature as of now..this said you might want to use apache proxy to 
> run directly camping (e.g. when you test code) using the default webserver 
> (e.g. thin). I am using that to avoid the continuous reload even on a live 
> website  (http://1.ai) and it works very well.
> 
> Oddly sometimes things do not work between thin and apache + passenger (it is 
> rare but...) so I think you could use thin + apache proxy when you test your 
> code live and apache + passenger for the code that you do not need to re-load 
> several times ?
> 
> Others might have better ideas for config.ru so just take my workaround as 
> such !
> Best Regards
> David
> 
> 
> On Jan 2, 2013, at 7:02 PM, Koaps Freeman  wrote:
> 
>> Hi Guys,
>> 
>> I just started playing with camping and so far it's pretty awesomo.
>> 
>> After much messing around I was finally able to get Apache Passenger, 
>> Camping and ActiveRecord to PostgreSQL working.
>> 
>> One thing I was wondering about, can I use reloader with Apache Passenger?
>> 
>> Always having to touch/rm a tmp/restart.txt to see changes or reloading 
>> apache altogether is kinda a pain and I was hoping I can use reloader to 
>> just detect changes to make recovering from errors faster as I type code.
>> 
>> I saw some previous post about using reloader:
>> 
>> http://rubyforge.org/pipermail/camping-list/2010-August/001378.html
>> 
>> Which used on_reload which doesn't seem to exist anymore.
>> 
>> I'm still learning rack/rails stuff so not really sure how to setup my 
>> config.ru to use reloader.
>> 
>> In the reference it says:
>> 
>>  require 'camping/reloader'
>>   reloader = Camping::Reloader.new('/path/to/yourapp.rb')
>>   blog = reloader.apps[:Blog]
>> 
>> The blog object will behave exactly like your
>> Blog and Wiki, but they will update themselves if yourapp.rb changes.
>> 
>> I'm not sure how I get passenger to then run the blog from the config.ru
>> 
>> 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-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list

Re: Apache Passenger and Reloader

2013-01-02 Thread David C gurugeek

On Jan 3, 2013, at 2:07 AM, Koaps Freeman  wrote:

> cool, I got that running so I will play with it. I guess as long as the 
> camping server stays up there's no issues, but if it goes down, and apache 
> sees that then I have to restart apache to recover.
You would just need to restart camping as the server is embedded. From 
experience if you use thin it is very reliable so as easy as camping ..rb 
and it works. I never had to restart the thin webserver in more than 1 year 

> No biggie, at least reloader is seeing the code changes and recovering from 
> errors.
> 
> Thanks again.
> 
you are welcome

> Now to figure out how to use camping and play with some code.
> 
> I need to figure out the proper way to setup a activerecord connection and 
> use it in my code.

I think Camping omnibus will include all you need to use activerecord with the 
default sqlite db 
.camping.db and you can use it. Very little personal experience on this as I do 
avoid AR and use my own bindings to couchdb that works very well for me and my 
live proejcts. More experienced campers will jump in if needed :)

> 
> I was able to make a db.rb which does a require 'active_record' and 
> establishes a connection.
> 
> I then have a Test class that inherits from ActiveRecord::Base.
> 
> I wasn't really sure the best way forward from there.
> 
> Because I wanted static content available and saw a post about using 
> Rack::Static I just setup my module with a Test.find(1) query to pull a 
> record from my DB
> 
> module Test
>   $test = Test.find(1)
>   use Rack::Static, :urls => ['/static']
> end
> 
> Now in my views I have a line like:
> 
> p "Pg query: #{$test.text}"
> 
> 
> It prints data from my db/

your db is sqlite or a static file db ? you might want to try kirbybase for 
really simple ruby based db but perhaps you have something else in mind :) 

> 
> I'm just not sure if using a global is the right way to go about it.
> 
> I tried a instance variable (@test.text) but that didn't seem to work. Still 
> getting a handle on ruby OO.
> 

Will leave it to more experienced campers :)

> 
> 
> Thanks
> 
> On Wed, Jan 2, 2013 at 1:07 PM, David C gurugeek <1...@1.ai> wrote:
> I understand! To achieve exactly that just use thin on your remote webserver 
> (and apache or nginx as proxy..if you need the setting I can try to help but 
> you can certainly find it on google too) then you can just drop your script 
> via FTP and it will auto reload remotely too. Even on the days where I had 
> 1000+ daily visitors thin did work very well so I would use that vs. 
> passenger (I do use passenger for the multi users hosting as it does have 
> some benefits e.g. we also run PHP and Perl in parallel and give more choices 
> to developers to run scrips in several languages in parallel).
> 
> Another simple solution would be this: whenever you upload your script just 
> upload restart.txt too and it will work. Sorry if this is not ideal but I 
> don't think that there are other options with passenger + apache.
> Best Regards and Happy 2013
> David
> 
> 
> 
> On Jan 2, 2013, at 8:53 PM, Koaps Freeman  wrote:
> 
>> Thanks for the reply David,
>> 
>> I thought about trying that also.
>> 
>> Right now this is just for home devel stuff so it doesn't need to be robust 
>> or anything, I just develop on my laptop which is separate from the 
>> webserver so I was hoping I could just upload stuff and the server reloads 
>> without me having to actually be logged into it.
>> 
>> The restart.txt seems to be hit or miss which is why I didn't want to use it.
>> 
>> Thanks
>> 
>> On Wed, Jan 2, 2013 at 10:26 AM, David C gurugeek <1...@1.ai> wrote:
>> Hello!
>> I am running apache with passenger too and I couldn't find a way to have a 
>> reloader feature as of now..this said you might want to use apache proxy to 
>> run directly camping (e.g. when you test code) using the default webserver 
>> (e.g. thin). I am using that to avoid the continuous reload even on a live 
>> website  (http://1.ai) and it works very well.
>> 
>> Oddly sometimes things do not work between thin and apache + passenger (it 
>> is rare but...) so I think you could use thin + apache proxy when you test 
>> your code live and apache + passenger for the code that you do not need to 
>> re-load several times ?
>> 
>> Others might have better ideas for config.ru so just take my workaround as 
>> such !
>> Best Regards
>> David
>> 
>> 
>> On Jan 2, 2013, at 7:02 PM, Koaps Freeman  wrote:
>> 
>>> 

Re: More crap from AR 4

2013-07-08 Thread David C gurugeek
+1 for this. I suggest that we do not do anything to break bw compatibility. I 
am using camping in production and I would certainly not like to see all the 
code breaking at the next camping update... thanks
David

On Jul 8, 2013, at 5:44 PM, Julik Tarkhanov  wrote:

> Maybe Camping should stick to AR3 then? at least until these are resolved?
> 
> On 7 jul. 2013, at 03:24, låzaro  wrote:
> 
>> Hi, all, now with AR-4 is imposible to add any relation
> 
> 
> --
> Julik Tarkhanov
> m...@julik.nl
> 
> 
> 
> ___
> 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: first project - relevance

2014-03-31 Thread David C gurugeek

On Mar 31, 2014, at 6:45 PM, Sebastjan Hribar  
> 
> I need to make a webapp for quality control checks. I'd have 1 form and 
> multiple users. In addition, some querying among forms would be needed to get 
> the data about quality per product or user.
> 
> To my understanding I could use camping for this and I don't have to use 
> rails or something else. Am I correct?

Hello Seba and welcome to Camping,
yes you can. If you know rails you will find many similarity in camping without 
the complexities of a rail app. Just give it a try and you won't be 
disappointed :) all the rails developers I worked with found it very easy to 
migrate projects/concepts to camping.
David
___
Camping-list mailing list
Camping-list@rubyforge.org
http://rubyforge.org/mailman/listinfo/camping-list