Re: ChillDB License

2012-05-02 Thread Norbert Wójtowicz
Just wanted to mention that not everything is so peachy in the public domain. Some jurisdictions do not recognize the right of an author to dedicate a work to the public domain; and there is no single legal definition for what is the public domain that every jurisdiction agrees on. Most

ChillDB License

2012-05-02 Thread Trevor Johns
My personal favorites are the MIT and BSD licneses -- both are similar, and basically grant people the right to do whatever they want provided that they preserve attribution in source code (so called permissive licenses). MIT is marginally simpler to read and is unambiguous, since there's only

Re: ChillDB License

2012-05-02 Thread Dave Everitt
This is all interesting stuff - never knew the Camping community had a licensing information stream. I gave a talk that included the basics (A tiny history of Stallman, FOSS and the Open Source 'split') to students a few years back. If I ever do it again, this'll make me revisit the

Gone a little crazy

2012-04-29 Thread Jenna Fox
So, I went a little crazy this weekend and did a whole bunch of things: * camping.io now renders properly in Chrome (yay! why didn't anyone tell me this was broken? evolving web standards are annoying!) * I tidied up some issues and commented on heaps of things on

The Website

2012-04-29 Thread Jenna Fox
So here we are, talking about the website again. Here's my thinking: David Costa's nearly got that neat camping app hosting thing working, which is amazingly awesome and we love him so much! People have all sorts of interesting ideas for things the camping site could do and have - lists of

Re: Gone a little crazy

2012-04-29 Thread Jenna Fox
Yeah I'm not even going to attempt that one. Opera is way out of my league. If you know how to fix it, I'd love the help, otherwise I'm all for opera's plan to pretend to be webkit. Maybe there's some way we can detect it and show opera a simpler website? — Jenna On Sunday, 29 April 2012

Re: The Website

2012-04-29 Thread Isak Andersson
This would be great! I think I'm gonna host a development blog for the game I'm working on David's hosting service. But that will be a while from now so I'll create something else that's cool. PS. I'll work my ass off to have the first screencast done on tuesday! Cheers! Isak Andersson

Re: Gone a little crazy

2012-04-29 Thread Bartosz Dziewoński
The fonts don't display because Opera sucks balls when it comes to text-transform. I have ran into problems with it before (when dynamically changing .style.textTransform of an input field, the text displayed is not updated - testcase: http://dl.dropbox.com/u/10983006/textransformbug.html) and

Re: Gone a little crazy

2012-04-29 Thread Jenna Fox
Fixed url for Opera. As for text rendering, so long as it's readable, I don't mind if it's ugly. Happy to let the Opera team fix Opera's bugs. — Jenna On Sunday, 29 April 2012 at 10:22 PM, Bartosz Dziewoński wrote: Well, the background doesn't display because the path to the background

Re: The Website

2012-04-29 Thread Jenna Fox
Most excellent news! :D — Jenna On Sunday, 29 April 2012 at 10:03 PM, Isak Andersson wrote: This would be great! I think I'm gonna host a development blog for the game I'm working on David's hosting service. But that will be a while from now so I'll create something else that's cool.

Re: The Website

2012-04-29 Thread david costa
Thank you for the kind words that are much appreciated. Thank you also for adding a lot of stuff to Chill which could be another very interesting add-on to camping and in general interested to anyone looking to try/build a project with couchDB. I think you are totally right on having sections

Re: Camping + Couch DB

2012-04-26 Thread Nokan Emiro
Hi, In a previous thread I was declared as a newbie end user, now I'll behave like that :) If I'll use the hosting service, I'll want to be able to use mysql and not sqlite, and other experimental solutions. You can say that this is silly of me, but, as an end user, I have the right to be silly.

Re: Camping + Couch DB

2012-04-26 Thread Dave Everitt
Hi Nokan I'm a professional newbie (simply because I use and teach a wide range of stuff and only go deep when I have to :-) As I'm sure you're aware, as an embedded lightweight database SQLite makes an easily-managed default setup (as in Camping... and Django, and even within OS X and,

Re: Camping + Couch DB

2012-04-26 Thread Jenna Fox
Glad you like it! Chill isn't totally feature complete, but it has the important bits I think. If you ever find yourself needing extra bits I'd love to bulk it out some more - I just haven't had a use for it lately and I've not wanted to design APIs I'm not using myself. Much of the choices

Re: Camping + Couch DB

2012-04-26 Thread david costa
Hello Jenna, I like chill too ! Is it possible to have a simple example with db connection (I see you have this on ChillDB::Database but just wanted to get something simple to cover the username/password and/or remote couch server with a different URL than localhost) and again a very simple usage

Re: Camping + Couch DB

2012-04-26 Thread david costa
Hello Daniel, thanks for your reply. Well that's all I needed to know ! I wasn't sure if it was me or the script not working on couchdb 1.2 and now I know :) Best Regards David On Thu, Apr 26, 2012 at 1:42 AM, Daniel Bryan Unfortunately, both the ShyCouch and CouchCamping libraries are far

Re: Camping + Couch DB

2012-04-26 Thread david costa
HI Nokan :) On Thu, Apr 26, 2012 at 11:02 AM, Nokan Emiro uzleep...@gmail.com If I'll use the hosting service, I'll want to be able to use mysql and not sqlite, and other experimental solutions. You can say that this is silly of me, but, as an end user, I have the right to be silly. BTW I

Re: Camping + Couch DB

2012-04-26 Thread Jenna Fox
So far as uploading a couchdb to a git repository - You could probably find the files somewhere in your system and do that, but it sounds like a bad idea. Better: use wget to download the all_docs page, backing up all the documents on that database in to a single file. Then you can restore it

Re: Camping + Couch DB

2012-04-26 Thread Jenna Fox
Sorry correction - the argument to ChillDB for setting your password is pass: 'hackerbats', not password: 'hackerbats'. Silly me! Maybe chill should accept both! — Jenna On Friday, 27 April 2012 at 1:47 AM, Jenna Fox wrote: Sure. To connect chilldb using a username and password:

Re: framework size, forking etc.

2012-04-25 Thread Anthony Durity
Hi, The reason I got into camping was because it was written by _why , because liked the way _why looked at things and approached things. Camping contains the spirit of _why , if you alter it too much it ceases to be Camping. Part of the attraction is the tiny size, the 3k/4k limit or whatever it

Re: Camping + Couch DB

2012-04-25 Thread Daniel Bryan
Hi David, Unfortunately, both the ShyCouch and CouchCamping libraries are far from production ready. The former was mostly a learning project, and the latter was.. bad for many more reasons than just that. I don't think either are of any use for examples, or for something you'd try to support in

Re: framework size, forking etc.

2012-04-18 Thread Daniel Bryan
Thought I'd weigh in for what it's worth, My naive first impression of Camping basically took no notice of the whole 3/4k thing. I appreciate that it's a cool programming feat, and I love the attitude that lead to it, but at the time my focus was on trying to figure out what all these hidden

Re: Camping's URL mapping system

2012-04-18 Thread Matthias Wächter
Am 13.04.2012 17:40, schrieb Jenna Fox: An A4 piece of paper has a little over 9kb of data storage if storing in binary at 300dpi A4 is about 21*30 cm², i.e. 630 cm² or 97.65 sqin. 300 dpi means 90,000 dpsqin or about 8.788 MdpA4. Without accounting for encoding, redundancy, synchronization

Re: framework size, forking etc.

2012-04-18 Thread Dave Everitt
Daniel - that's a great reply and echoes much of my own experience (although my Camping is much more on the tinkering side). The point about Camping being an educational tool is a good one, which I've even tried to apply to students (unsuccessfully - but that's my problem), and it would be

Re: framework size, forking etc.

2012-04-18 Thread Magnus Holm
On Wed, Apr 18, 2012 at 15:07, Daniel Bryan danbr...@gmail.com wrote: Thought I'd weigh in for what it's worth, Thanks, I find it very interesting. My naive first impression of Camping basically took no notice of the whole 3/4k thing. I appreciate that it's a cool programming feat, and I love

Re: framework size, forking etc.

2012-04-18 Thread Jenna Fox
I think the trouble with streaming over the rack interface is that it's confusing. I'm fairly good at ruby, but I'm not entirely sure how it would even work. I guess I need to run my app in a threaded web server, running every request in it's own thread? Then inside the each iterator in the

Re: framework size, forking etc.

2012-04-18 Thread Dave Everitt
Not to forget Perl (who would have thought that?) which currently has the best web framework I've ever seen: http://mojolicio.us/ I would have thought it - my sometimes co-developer opened my eyes to Titanium: http://mark.stosberg.com/blog/2008/12/titanium-a-new-release-and-more.html and

Re: framework size, forking etc.

2012-04-18 Thread Magnus Holm
On Wed, Apr 18, 2012 at 17:49, Jenna Fox a...@creativepony.com wrote: I think the trouble with streaming over the rack interface is that it's confusing. I'm fairly good at ruby, but I'm not entirely sure how it would even work. I guess I need to run my app in a threaded web server, running

Re: framework size, forking etc.

2012-04-17 Thread Isak Andersson
To be honest I don't care if we leave the 4k stuff behind or not. I just want Camping to be easy to extend and customize. Don't get me wrong, Camping is crazy customizable. The fact that you can set it up to be a huge application with the rackup file in an extremely cool way is definitely

Re: framework size, forking etc.

2012-04-17 Thread Dave Everitt
If you want to use something like SASS for CSS, there are gems for that (or use LESS), but I'd never expect such functionality to be built into in Camping - that's one of the things I *like* about it: a small functional default set that works, with options for other ways left to me. BTW

Re: framework size, forking etc.

2012-04-17 Thread Dave Everitt
+1 to all that David Costa wrote in response. Magnus *has and does* kept things solid and on track in a way that suits Camping. We're never going to go head-to-head in the framework competition stakes (bit late for that anyway, with frameworks swerving all over client- side dev). As for

Re: framework size, forking etc.

2012-04-17 Thread Isak Andersson
I thought about that, but I want to stay up to date with things like Mab and all that. There are small differences. But I guess I could omit the use of anything that differs. But still, we want the information to be fresh, no? Cheers! Isak Andersson david costa gurugeek...@gmail.com skrev:

Re: framework size, forking etc.

2012-04-17 Thread david costa
Well Sqlite works fine with the current camping so I don't see any reason to use something not yet released for the screencasts. so in short use the official camping-omnibus for the screencasts. I checked your issue on github but I don't think is the fault of the new version but that's not the

whitespace rendering

2012-04-17 Thread david costa
Hello ! perhaps this might be a n00b markaby question but...we are finding some issues to display records with a simple space inside a view (both with sqlite, mysql or kirbybase so it is not db related). E.g. to have a formatted (with a simple space between the records so nothing fancy like Stock

Re:whitespace rendering

2012-04-17 Thread david costa
oh well I found my own answer this is intentional in maraby so best way to do a table like below - sorry for asking and answering my own question :) table do tr do td 'Stock Name' td 'Ticker' td 'Number of Stocks' td 'Price' td 'Date'

Re: framework size, forking etc.

2012-04-17 Thread Isak Andersson
Yeah I was going to suggest that we do a screencasts going over New features. Let's go with that instead! Cheers! Isak Andersson david costa gurugeek...@gmail.com skrev: Well Sqlite works fine with the current camping so I don't see any reason to use something not yet released for the

Re: http_referrer

2012-04-17 Thread Dave Everitt
Just to be clear (obviously env vars are going to differ according to setup, but): when env is used inside Camping, it's equivalent to @env and get Rack env vars when ENV is used, it will get any other environment variables, not just from Passenger etc. but also any set by the system.

Re: http_referrer

2012-04-17 Thread Dave Everitt
Hi cdr - thanks for this, but I've not been able to do key value on the Rack envs as some seem to have a different format - see the other post I added to this thread - DaveE how Rack env vars are stored, and how to get a nice printout? i defined #to_html on everything. on Array thats

Re: framework size, forking etc.

2012-04-17 Thread Jenna Fox
Those are all great points - the eventstream support is a particular sticking point to me. It feels like a standard which aught to be easily implemented - even through rack! but I've yet to see any web frameworks where eventstream doesn't seem like a total hack - except perhaps for Node.JS

Re: Markaby xhtml_strict

2012-04-16 Thread Jenna Fox
Urgh. I just turn the validation in markaby off pretty much all of the time - like strictly typed languages, I find it gets in my way more often than it helps me find errors. Instead of using the xhtml_strict macro you could do it yourself: self !DOCTYPE whatever blah blah\n html lang =

Re: framework size, forking etc.

2012-04-16 Thread Dave Everitt
I'm not too bothered about 3k. But I think what Nokan's saying is that he'd like Camping to remain functioning as it is so he can continue to run his apps as they're set up now, but that extra features could be added with an optional `require 'camping/new_extra_stuff`... - Nokan, is this

Re: framework size, forking etc.

2012-04-16 Thread Nokan Emiro
On Mon, Apr 16, 2012 at 5:40 PM, Dave Everitt dever...@innotts.co.ukwrote: I'm not too bothered about 3k. But I think what Nokan's saying is that he'd like Camping to remain functioning as it is so he can continue to run his apps as they're set up now, but that extra features could be added

Re: framework size, forking etc.

2012-04-16 Thread Nokan Emiro
I would leave the name camping for the original gem, and would choose another one for the fork. But exactly what are those features that you (all) would like to add to camping? - before/after methods of controllers, - something around serving static files and R(), - ??? Actually I think it's

Re: framework size, forking etc.

2012-04-16 Thread Bartosz Dziewoński
W dniu 16 kwietnia 2012 20:50 użytkownik Nokan Emiro uzleep...@gmail.com napisał: Actually I think it's not logical that you can build HTML by default using Markaby, but you can't build CSS in the same way. You never need to insert any variables into your CSS code. (If you do, you're doing it

Re: framework size, forking etc.

2012-04-16 Thread Paul van Tilburg
On Mon, Apr 16, 2012 at 09:20:18PM +0200, Bartosz Dziewoński wrote: W dniu 16 kwietnia 2012 20:50 użytkownik Nokan Emiro uzleep...@gmail.com napisał: Actually I think it's not logical that you can build HTML by default using Markaby, but you can't build CSS in the same way. You never need

Re: framework size, forking etc.

2012-04-16 Thread Magnus Holm
On Mon, Apr 16, 2012 at 22:14, Nokan Emiro uzleep...@gmail.com wrote: 2012/4/16 Bartosz Dziewoński matma@gmail.com W dniu 16 kwietnia 2012 20:50 użytkownik Nokan Emiro uzleep...@gmail.com napisał: Actually I think it's not logical that you can build HTML by default using Markaby, but

Re: http_referrer

2012-04-16 Thread Nokan Emiro
I'm totally convinced... so I'm going to download the whole source before the guys start to rewrite it as a modern framework... :) But to be frank, this, for instance, is not so great to read: https://github.com/camping/camping/blob/master/lib/camping.rb I mean I'm big http://catseye.tc/ fan,

Re: framework size, forking etc.

2012-04-16 Thread Nokan Emiro
Shit! If you told me about it a few hours ago, I wouldn't bother myself writing a RobotsTxt Controller... __END__ @@ /style.css * { margin: 0; padding: 0 } And Camping will serve it for you. See also: https://github.com/camping/camping/blob/master/test/app_file.rb

Re: http_referrer

2012-04-16 Thread david costa
Well the point of the original camping was *not* to be easy to read nor to have camping used in the next big commercial project. The annotated version gives you pretty much all you want if you want to read it :) On Mon, Apr 16, 2012 at 10:59 PM, Bartosz Dziewoński matma@gmail.comwrote: W

Re: framework size, forking etc.

2012-04-16 Thread david costa
For now I'm feeling like a pretty bad maintainer. I'm not using Camping enough to see where things need to be fixed, I'm crappy at actually shipping stuff, and I'm not sure if I believe that Camping is a correct starting point for a new framework Hey Magnus! I think that you are a great

Re: http_referrer

2012-04-16 Thread Philippe Monnet
I think Nokan has a good point there: it is not easy for people new to Camping to know about the trick to compile/process/compact the source code. So an idea for the new version could be to leave the source as is (unabridged). Plus this makes debugging easier. :-) On 4/16/2012 2:59 PM, Bartosz

Re: http_referrer

2012-04-15 Thread Magnus Holm
On Sat, Apr 14, 2012 at 10:38, Dave Everitt dever...@innotts.co.uk wrote: Haha! How did you get Spock on board... :-) I must admit I'm a little confused about the sytnax for environmental variables, because as well as   @env[HTTP_REFERER] this also works:   ENV['SCRIPT_NAME'] For a test I

Serving static files within a single app

2012-04-15 Thread Philippe Monnet
[First of all I am breaking off the topic about serving static files from the Camping's URL mapping system thread as it is becoming too hard to follow multiple topics] One solution I have been using for a while is based on the following post (back in 2007): Serving static files in Camping,

Re: Serving static files within a single app

2012-04-15 Thread Bartosz Dziewoński
Camping.goes :App module App use Rack::Static, :urls = ['/static'] end -- Matma Rex ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: http_referrer

2012-04-15 Thread Dave Everitt
Understood about compatible - this is David's Camping server, and I'm experimenting with QUERY_STRING in the URL and various other env vars - DaveE On Sat, Apr 14, 2012 at 10:38, Dave Everitt dever...@innotts.co.uk wrote: Haha! How did you get Spock on board... :-) I must admit I'm a

Re: http_referrer

2012-04-15 Thread david costa
Ah well the is not on fcgi but passenger :) I would say that most of the serious ruby/rails hosting now offer passenger as an option so shouldn't limit your application portability. On Sun, Apr 15, 2012 at 11:41 PM, Dave Everitt dever...@innotts.co.ukwrote: Understood about compatible - this is

Re: http_referrer

2012-04-15 Thread Jenna Fox
O_o I think the extra character is worth it. — Jenna On Monday, 16 April 2012 at 9:40 AM, david costa wrote: Ah well the is not on fcgi but passenger :) I would say that most of the serious ruby/rails hosting now offer passenger as an option so shouldn't limit your application

Re: http_referrer

2012-04-15 Thread david costa
sure I was just explaining that was not fcgi :) BTW I am making some good progress with the on the fly deployment. I have found an apparently good security solution to allow users to deploy their app without major problems and at the same time not compromise other users/the server. More testing

Re: http_referrer

2012-04-14 Thread Dave Everitt
Haha! How did you get Spock on board... :-) I must admit I'm a little confused about the sytnax for environmental variables, because as well as @env[HTTP_REFERER] this also works: ENV['SCRIPT_NAME'] For a test I just used it like this: ENV['SCRIPT_NAME'].scan(/\w+\.\w+$/) to get the

Re: http_referrer

2012-04-14 Thread Dave Everitt
About environment variables - I've just used this in my Camping helpers to print them all out, but the Rack variables seem to have multiple values or values with no name: def envars(theenv) if theenv == ENV ul do theenv.each_pair do |name,value| li { name + + value }

Re: Camping's URL mapping system

2012-04-14 Thread Dave Everitt
LOL! Good to know, if I ever need to do those things :-) An A4 piece of paper has a little over 9kb of data storage if storing in binary at 300dpi On the other hand, Camping is already far too big to fit entirely in a QR code. It would take as many as TWO QR codes to store camping in

Re: Camping's URL mapping system

2012-04-14 Thread cdr
rack has a minimal file-server [0] 0. https://github.com/rack/rack/blob/6496241b25daa20fd9dd736119dc39bdac54869d/lib/rack/file.rb#L70 ive been usin it on my phone to do the basics, it kind of chokes on 128M podcasts as a mediaplayer

Re: framework size, forking etc.

2012-04-14 Thread david costa
Hi all :) I have been playing with Sinatra a lot lately and perhaps *some* things are done easily there (URL mapping, static files) but being a DSL and not a framework it is a bit different. For many things camping does the job very well and overall I find it a more comprehensive solution than

Re: Camping's URL mapping system

2012-04-13 Thread Jenna Fox
An A4 piece of paper has a little over 9kb of data storage if storing in binary at 300dpi — Jenna On Saturday, 14 April 2012 at 1:09 AM, Dave Everitt wrote: There's a crucial point here... if 3k (the old 4k) is a 'proof of concept' and a great exercise in programming skill, it isn't

Re: Camping's URL mapping system

2012-04-13 Thread Isak Andersson
I agree, I'd like to see the way Camping works to grow in to something much more usable. Perhaps a fork is a good idea because the legacy would remain and all. But then in the fork we could deal with things that might be kind of annoying at times. And grow it with a steady pace. If we'd fork

Re: Camping's URL mapping system

2012-04-13 Thread Jenna Fox
On the other hand, Camping is already far too big to fit entirely in a QR code. It would take as many as TWO QR codes to store camping in it's entirety. — Jenna On Saturday, 14 April 2012 at 1:40 AM, Jenna Fox wrote: An A4 piece of paper has a little over 9kb of data storage if storing in

Re: Camping's URL mapping system

2012-04-13 Thread Dave Everitt
For me, this also depends on what Magnus - as the main Camper ninja - thinks - DaveE I agree, I'd like to see the way Camping works to grow in to something much more usable. Perhaps a fork is a good idea because the legacy would remain and all. But then in the fork we could deal with

Re: sites powered by Camping

2012-04-12 Thread Nokan Emiro
Hi, I have been working on this in the last ~2.5 weeks: http://rapiddatingmalta.com (Yes, I know I'm slow... :- ) On Thu, Apr 12, 2012 at 12:14 AM, Dave Everitt dever...@innotts.co.ukwrote: I know. That's why it says Look. I haven't done this yet, okay? Give me a break. :-) I spent most

Camping's URL mapping system

2012-04-12 Thread Dave Everitt
In another post, Jenna said: I have some trouble with Camping's URL mapping system - so much so I'm considering sinatra for my next ruby web project I just wanted to know what the trouble was, and if/how it might/could/ can't be addressed, so started a new thread. DaveE

Re: sites powered by Camping

2012-04-12 Thread Dave Everitt
Hi Nokan - it's up there :-) BTW slow == good. Anyone else have a site to put up? I have been working on this in the last ~2.5 weeks: http://rapiddatingmalta.com (Yes, I know I'm slow... :- ) ___ Camping-list mailing list

Re: Camping's URL mapping system

2012-04-12 Thread Jenna Fox
The problem is basically this: Sometimes you want to reference static files, and other components of your site. I have a Gallery app mounted at http://creativepony.com/gallery/ and it causes me all sorts of trouble. Often times to reference static files I end up needing to use /../ in URLs

Re: Camping's URL mapping system

2012-04-12 Thread Magnus Holm
On Thu, Apr 12, 2012 at 15:59, Jenna Fox a...@creativepony.com wrote: The problem is basically this: Sometimes you want to reference static files, and other components of your site. I have a Gallery app mounted at http://creativepony.com/gallery/ and it causes me all sorts of trouble. Often

Re: Camping's URL mapping system

2012-04-12 Thread Jenna Fox
bin/camping is great but it's not usually a good way to deploy an app on a server - it tends to be more for development. Putting functionality in to bin/camping which belongs in camping core is like wearing a backpack filled with hydrogen while having your weight checked. 3kb is great and all,

sites powered by Camping

2012-04-11 Thread Nokan Emiro
Hi List, What about creating a section on the Camping site, where you list and link sites that were built using Camping? Of course just those ones that are good enough. It would show the public that it's a working framework, so it's good for the community. On the other hand it's good for the

Re: sites powered by Camping

2012-04-11 Thread Jenna Fox
I don't think we should ever consider pagerank in decision making. Sounds like a nice idea otherwise tho. Does anyone want to maintain a page like that? — Jenna Fox On Wednesday, 11 April 2012 at 9:37 PM, Nokan Emiro wrote: Hi List, What about creating a section on the Camping site,

Re: sites powered by Camping

2012-04-11 Thread Nokan Emiro
Hi, The tab Sites using Camping is empty :) I mean no more than 0 links are there. On Wed, Apr 11, 2012 at 2:13 PM, Dave Everitt dever...@innotts.co.ukwrote: I've been collecting Camping links for some years, including 'sites built with', and started sorting them here (the site's not

Re: sites powered by Camping

2012-04-11 Thread Dave Everitt
BTW the site's repo is here so you can fork and add if you like... https://github.com/DaveEveritt/Camping-links DaveE Hi, The tab Sites using Camping is empty :) I mean no more than 0 links are there. On Wed, Apr 11, 2012 at 2:13 PM, Dave Everitt dever...@innotts.co.uk wrote: I've been

Re: sites powered by Camping

2012-04-11 Thread Dave Everitt
I know. That's why it says Look. I haven't done this yet, okay? Give me a break. :-) I spent most of the afternoon checking and tidying up the other links and the app. But they will come! I have quite a few links I haven't put up yet. Meanwhile, if you know of any, please reply to this

Re: http_referrer

2012-04-08 Thread Nokan Emiro
Starship Enterprise, Stardate #{Time.now.to_f}. Captain's Log. network.http.sendrefererheader was set to 0 in my Firefox for unknown reasons. Probably Mr Spock, the Chief of security did this. I make this log entry for those who don't want to spend hours in a spacedock repairing a working

Re: http_referrer

2012-04-07 Thread Nokan Emiro
Why does it work without the @ for me? On Fri, Apr 6, 2012 at 4:26 PM, Magnus Holm judo...@gmail.com wrote: It should be in @env: @env['HTTP_REFERER'] (Note that it's misspelled in the spec) ___ Camping-list mailing list

~ AppController

2012-04-07 Thread Nokan Emiro
Hi, What's the nice and preferred way to run a snippet of controller code before all other normal controllers can do something? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: ~ AppController

2012-04-07 Thread Magnus Holm
You can override #service: module App def service(*args) p({:controller = self.class, :method = @method, :args = args}) p :before super ensure p :after end end // Magnus Holm On Sat, Apr 7, 2012 at 18:11, Nokan Emiro uzleep...@gmail.com wrote: Hi, What's the nice and

http_referrer

2012-04-06 Thread Nokan Emiro
Hi, How can I access the Rack request object in a controller? I need to know the HTTP_REFERRER, but I can't find it in env. (I'm sure I need glasses, or have to sleep more...) ___ Camping-list mailing list Camping-list@rubyforge.org

Re: http_referrer

2012-04-06 Thread Nokan Emiro
I'm sorry bothering you, it was there in env, env['HTTP_REFERER']. (But it still would be useful sometimes to access the Rack's Request object...) On Fri, Apr 6, 2012 at 3:01 PM, Nokan Emiro uzleep...@gmail.com wrote: Hi, How can I access the Rack request object in a controller? I need

Re: http_referrer

2012-04-06 Thread Magnus Holm
Try @request. // Magnus Holm On Friday 6. April 2012 at 16:27, Nokan Emiro wrote: I'm sorry bothering you, it was there in env, env['HTTP_REFERER']. (But it still would be useful sometimes to access the Rack's Request object...) On Fri, Apr 6, 2012 at 3:01 PM, Nokan Emiro

Re: http_referrer

2012-04-06 Thread Magnus Holm
It should be in @env: @env['HTTP_REFERER'] (Note that it's misspelled in the spec) // Magnus Holm On Friday 6. April 2012 at 15:01, Nokan Emiro wrote: Hi, How can I access the Rack request object in a controller? I need to know the HTTP_REFERRER, but I can't find it in env. (I'm

lighttpd + fastcgi + camping

2012-04-06 Thread david costa
Hello all, I am running in some little stumbling blocks with passenger as a multi user environment (the most problematic feature is that, once you setup a sub-domain passenger wants you to declare on nginx every app running on that nginx server which is not ideal to add apps on the fly and / or

Re: lighttpd + fastcgi + camping

2012-04-06 Thread Jenna Fox
Camping is a rack app. Check out the rack docs for info on how to mount it as any kind of server interface. — Jenna Fox On Saturday, 7 April 2012 at 1:26 AM, david costa wrote: Hello all, I am running in some little stumbling blocks with passenger as a multi user environment (the most

Update book

2012-04-03 Thread Isak Andersson
Hello. I think we should update the book a little bit. On the part of migrations we use def self.up and def self.down this method actually gave me errors for some reason. But anyways, it should be updated to def self.change anyways because that's the modern way of doing it. I tried doing

Re: Update book

2012-04-03 Thread Jenna Fox
Let me know exactly what text you want replaced with exactly what, and I'll make that change now. — Jenna On Tuesday, 3 April 2012 at 7:07 PM, Isak Andersson wrote: Hello. I think we should update the book a little bit. On the part of migrations we use def self.up and def self.down

Re: dead easy deployment / Camping on the fly

2012-04-03 Thread Dave Everitt
Been trying the setup (okay, this is not going to win any awards, but...): http://dave.camping.sh/ It's an old app rewritten (except - as yet - for the content :-) DaveE ___ Camping-list mailing list Camping-list@rubyforge.org

Re: dead easy deployment / Camping on the fly

2012-04-02 Thread Nokan Emiro
Hi, As I already mentioned I use Camping with fcgi in production. If It is your choice (and not passenger), I will help you set it up. On Sun, Apr 1, 2012 at 5:49 PM, david costa gurugeek...@gmail.com wrote: Hello again ! :) well in theory we can chrot jail users but the best way is to

Re: dead easy deployment / Camping on the fly

2012-04-02 Thread Nokan Emiro
I really want to know what gems do you (all out there) think quality... Maybe there's a statistics from a big gem server which ones are the most wanted. What about the versions? Applications can work differently (or not work :- ) with different versions of gems (and ruby). Will the hosting

Re: dead easy deployment / Camping on the fly

2012-04-02 Thread Nokan Emiro
On fastcgi - fastcgi is not a server in itself - you cannot connect to it with a web browser. Like Passenger, it's a way for a server like nginx or apache to launch and talk to processes which return webpages directly. FastCGI IS a server in itself - you can connect to it, but not with a web

Re: dead easy deployment / Camping on the fly

2012-04-02 Thread david costa
Yes thanks for this well I am pretty set with nginx + passenger. Once I spent the week end digging into it I am pretty happy and it is the recommended way to deploy by many so I will trust this setup for now. I like this more than moving parts with reverse proxies and since it will end up to me to

Re: dead easy deployment / Camping on the fly

2012-04-01 Thread david costa
Ah I forgot you can compare camping running on thin here http://run.camping.io:3301/ vs passenger at http://run.camping.io apparently db has some problems with fusion passenger (see http://run.camping.io create HTML page and test HTML page. The same code on thin works just fine... umhh oh no

Re: dead easy deployment / Camping on the fly

2012-04-01 Thread david costa
Okay :D after many many hours of testing I am settled for nginx and passenger. live at http://run.camping.io/ I did try every apache combination (with passenger, with cgi, etc. etc.) as is simply not really working fine. I tried some other obscure web servers too but apparently this seems to work

Re: dead easy deployment / Camping on the fly

2012-04-01 Thread Peter Retief
Wonder if Google might help getting camping to run on app engine? On 1 April 2012 10:03, david costa gurugeek...@gmail.com wrote: Ah I forgot you can compare camping running on thin here http://run.camping.io:3301/ vs passenger at http://run.camping.io apparently db has some problems with

Re: dead easy deployment / Camping on the fly

2012-04-01 Thread david costa
Umh I doubt it was already here http://camping.io/Book/-Publishing-an-App#Using-Google-App-Engine but is far from an automated, one line /one upload system On Sun, Apr 1, 2012 at 10:23 AM, Peter Retief peterret...@gmail.com wrote: Wonder if Google might help getting camping to run on app

Re: dead easy deployment / Camping on the fly

2012-04-01 Thread Jenna Fox
Hm. I know the main guy responsible for App Engine, and, well, I certainly wouldn't build a platform atop it - even aside from the huge glaring issue that to have an app which can store data persistently, you need to use google's proprietary database software. Heroku doesn't screen against

<    1   2   3   4   5   6   7   8   9   10   >