What is the Best Way to Install Camping in 2011?

2011-08-29 Thread John Beppu
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.) ___

Re: Help with Controllers

2011-08-29 Thread John Beppu
On Mon, Aug 29, 2011 at 8:47 PM, Anonymous Waffles < theonetruewaff...@gmail.com> wrote: > Hello guys, I'm new to the Ruby, and especially to Camping. I've been > having some difficulty because there aren't that many tutorials about > Camping compared to other larger frameworks. > I've been buildi

Re: Feature: Inline templates?

2011-08-26 Thread John Beppu
I was fine with Markaby. On Thu, Aug 25, 2011 at 11:04 AM, Magnus Holm wrote: > Another feature! Inline templates: > > module App::Controllers >get '/' do > @title = "My Perfect App" > render :index >end > end > > __END__ > @@ index.erb > Welcome to <%= @title %> > > What'

Re: Feature: Simple controllers?

2011-08-25 Thread John Beppu
hat allows controllers to be named. On Thu, Aug 25, 2011 at 2:21 PM, Magnus Holm wrote: > On Aug 25, 2011 10:54 PM, "John Beppu" wrote: > > > > If I wanted that notation, I'd just use Sinatra. ;) > > > > Like Bartosz, I like having named controllers so that I ca

Re: Feature: Simple controllers?

2011-08-25 Thread John Beppu
If I wanted that notation, I'd just use Sinatra. ;) Like Bartosz, I like having named controllers so that I can pass them to R() when generating links. On Thu, Aug 25, 2011 at 10:20 AM, Magnus Holm wrote: > I just pushed a new feature to Camping: Simple controllers. > > module App::Controller

Re: sending a post request from a controller

2011-07-04 Thread John Beppu
idation/preparation server-side > instead of client-side. > > Dave > > On Sun, Jul 3, 2011 at 9:35 PM, John Beppu wrote: > > Does Sallie Mae provide a payment processing API? I searched for it, but > I > > couldn't find anything. > > > > On Sun, Jul 3,

Re: sending a post request from a controller

2011-07-03 Thread John Beppu
Does Sallie Mae provide a payment processing API? I searched for it, but I couldn't find anything. On Sun, Jul 3, 2011 at 4:46 AM, David Susco wrote: > None of those, I'm in education, and we have to go through Sallie Mae. > > Dave > > On Sun, Jul 3, 2011 at 1:16 AM, J

Re: sending a post request from a controller

2011-07-02 Thread John Beppu
Can you tell us what payment processing system you're trying to work with? Is it PayPal or Google Checkout? Bitcoin? ;-) On Thu, Jun 30, 2011 at 6:48 AM, David Susco wrote: > Ideally I'd like a user to be able to submit a form to the camping > app, having camping do all the validation and som

Re: Forcing a Response Status-Code of 40x

2010-10-03 Thread John Beppu
@status = 404 On Sun, Oct 3, 2010 at 9:09 AM, Raimon Fernandez wrote: > Hi again, > > I'm trying to force a different Response Status-Code when some situations > occur. > > Once again, in Rails I just use the :status => 404 and that's all ... > > Here, I suppose I must use the @headers[] but I'm

Re: camping-oauth is now available

2010-06-08 Thread John Beppu
Philippe, Thanks for writing both the code and the blog posts. I've been meaning to learn more about OAuth, and your work will definitely help me out. --beppu On Mon, Jun 7, 2010 at 5:37 PM, Philippe Monnet wrote: > I finally put together the final touches on the first version of the > campi

Re: Changing render semantics?

2010-04-25 Thread John Beppu
On Sat, Apr 24, 2010 at 3:39 PM, Magnus Holm wrote: > > I guess the question is: Does anybody actually use `render` with > multiple arguments (render :index, 1, 2)? If not, I guess we can > easily switch to this new `render` without breaking code. > > I do not use the multi-argument form of rend

Re: [ANN] Camping 2.0 - minature rails for stay-at-home moms

2010-04-09 Thread John Beppu
Good job. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: what is this log mean?

2010-01-18 Thread John Beppu
It means that someone sent you an invalid HTTP request, and this is Mongrel's noisy way of rejecting it. Don't worry. It's harmless. --beppu On Mon, Jan 18, 2010 at 12:27 AM, in-seok hwang wrote: > Hi, all > > my server spec is .. > camping -1.5.180 > mongrel-1.1.5 > > 4~5 times a day i will

Re: What now?

2009-10-19 Thread John Beppu
On Mon, Oct 19, 2009 at 11:03 AM, Julik Tarkhanov < julian.tarkha...@gmail.com> wrote: > > On 19 Oct 2009, at 14:27, Dave Everitt wrote: > > nice idea with the .ru = Ruby, although still doubtful that 'why' and >> 'went' are good for SEO (BTW you did mean 'camping', not 'caping' didn't you >> :-)

Re: What now?

2009-10-18 Thread John Beppu
I like the domain whywentcamping.com . ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: hi all! can't open github!!

2009-08-16 Thread John Beppu
It's a little slow over at github, but the page loads for me (sometimes). They must be experiencing a lot of traffic. --beppu On Sun, Aug 16, 2009 at 6:59 PM, in-seok hwang wrote: > hi all! > > can't open github (http://github.com/why/camping/tree/master) > > What's going on? > > __

Re: using partials when using ERB for views

2009-06-19 Thread John Beppu
It has a lot of similarities to what you were already doing, but this integrates w/ Camping a little more smoothly. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: using partials when using ERB for views

2009-06-19 Thread John Beppu
It's been a little while since I've coded in Ruby, but here's a way to use alternative templating systems with Camping. #!/usr/bin/env ruby require 'rubygems' require 'camping' require 'erb' Camping.goes :Alternative module Alternative::Controllers class Home < R '/' def get @name =

Re: how i can that connect some controller by div?

2009-04-23 Thread John Beppu
I could be completely off, but this is my interpretation of things. 1. The p he's using is Kernel#p for debugging output, not Markaby's p. 2. I think he wants the form in his newsctrl view template to submit to the Newsctrl controller. I think he wants something like this: # Do you kno

Re: hi! plz teach me! about file upload

2009-04-20 Thread John Beppu
Something like this should work for the old version of Camping: class Upload < R '/upload' def get render :upload end def post upload = @input.upload filename = File.basename(upload.filename) puts @input.upload[:tempfile].path puts filename File.

Re: images in db

2009-02-03 Thread John Beppu
Roland just showed you how to inline it. Here's a little article on the technique he's using: http://jimbojw.com/wiki/index.php?title=Data_URIs_and_Inline_Images However, as Jenna said, this technique doesn't work in IE. Her first suggestion is probably the path of least resistance. --beppu O

Re: My Camping clone has broken the 4K barrier. ;-)

2008-12-04 Thread John Beppu
I think I could easily trim 20-30 bytes from the obfuscated version, but 3K seems so far away. ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: My Camping clone has broken the 4K barrier. ;-)

2008-12-04 Thread John Beppu
: > Well done, but I thought Perl would do better... > > //Magnus > > On 4. des.. 2008, at 10.37, "John Beppu" <[EMAIL PROTECTED]> wrote: > > Behold! <http://gist.github.com/31363>http://gist.github.com/31363 > > 4004 bytes! > > The non-obfuscat

My Camping clone has broken the 4K barrier. ;-)

2008-12-04 Thread John Beppu
Behold! http://gist.github.com/31363 4004 bytes! The non-obfuscated version can be found at: http://github.com/beppu/squatting/tree/master --beppu PS: I'm not going to try for 3K. I'm happy that I was even able to reach 4K, and that satisfaction is enough. ___

Re: Let's get this done, please :-)

2008-10-30 Thread John Beppu
On Thu, Oct 30, 2008 at 8:01 AM, _why <[EMAIL PROTECTED]> wrote: > > Yes, we need to clear up the rdoc and write howtos for camping with > fastcgi, passenger, and other web servers. I don't know, what do > most people deploy camping on? > I reverse-proxy to mongrel. --beppu

Re: [TIP] optional multi-pane layout

2008-08-28 Thread John Beppu
That's pretty damned cool. Good technique! --beppu On Thu, Aug 28, 2008 at 3:46 AM, zimbatm <[EMAIL PROTECTED]> wrote: > This is a nice little trick to defer some block execution in a multi-pane > layout > > module Views > def layout >html do > #... > body do >div.main {

Re: Plug-in support for Camping Apps

2008-05-28 Thread John Beppu
What does this do? Can you give an example of how someone might use this? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Camping Technique -- Multiple Layouts

2008-05-26 Thread John Beppu
Hey Campers, Here's a little technique you can use to support multiple layouts within a Camping app. def layout @layout ||= 'default' send("[EMAIL PROTECTED]") { yield } end The minimum you have to do after this is define a *default_layout*, but (as you can hopefully see) you may define any

Re: Rack, Camping 2.0++

2008-05-23 Thread John Beppu
Does being implemented on top of Rack mean that Camping will get the concurrency described on pages 17..21 of http://yeahnah.org/files/rack-presentation-oct-07.pdf ? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/lis

Re: Camping-list Digest, Vol 23, Issue 8

2008-05-23 Thread John Beppu
What pains me is that my Perl clone is weighing in at a bloated 6.6k after I run it through: cat `find -name '*.pm' -print` | perltidy -npro -dac -dws -i 0 | sed '/^\s*$/d' | perl -pe 's/ +/ /g' | wc . I was never an expert golfer , but still *sigh* --beppu

Re: Rack, Camping 2.0++

2008-05-21 Thread John Beppu
Impressive work. On Wed, May 21, 2008 at 12:26 PM, Magnus Holm <[EMAIL PROTECTED]> wrote: > === > 1. Camping on Rack > === > > I've just finished rewriting Camping to use Rack in the "core". I got rid > of > (a little less) than 1kB in camping.rb and removed lots of un-necessary > files > (lib/se

Re: Setting cookies in service overloader thingo

2008-05-18 Thread John Beppu
On Sat, May 17, 2008 at 3:10 PM, Bluebie, Jenna <[EMAIL PROTECTED]> wrote: > > Maybe it's best to stick with simple cookie support. If people really need > much more I don't feel it unfair for them to need to hack it in themselves > or move up to rails and the likes. > Move to Rails? Now that's

Re: Squatting

2008-05-15 Thread John Beppu
On 5/15/08, zimbatm <[EMAIL PROTECTED]> wrote: > > Haha, well done :) > > Small rectification: Camping also allows multiple views per controller Really? How do you set up multiple views for a Camping app? ___ Camping-list mailing list Camping-list@rub

Squatting

2008-05-14 Thread John Beppu
Hey Campers, I liked Camping so much that I had to "port" it to Perl. My framework is called Squatting (as in http://en.wikipedia.org/wiki/Squatting), and you can get it from the following places: http://search.cpan.org/dist/Squatting/ http://github.com/beppu/squatting/tree/master It's not a s

Re: query strings built by R method can't handle multiple values from checkbox selections

2008-05-08 Thread John Beppu
As an side, I'm writing a Camping-like framework in Perl, and R() is still on my to-do list. I'm glad you posted this, because I probably would've ended up duplicating that bug in my translation to Perl. --beppu On Thu, May 8, 2008 at 7:58 AM, Ronald Evangelista <[EMAIL PROTECTED]> wrote: > que

Re: [poll] What was your primary language before you started coding in Ruby?

2008-05-07 Thread John Beppu
Ah, a memetic hacker. ;-) On Wed, May 7, 2008 at 5:18 AM, Gregoire LEJEUNE <[EMAIL PROTECTED]> wrote: > French, English, Spanish ;) > > ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

learning.kicks-ass.org

2008-05-04 Thread John Beppu
Hey Campers, Here's a tiny little app I wrote shortly after SXSW this year. http://learning.kicks-ass.org/ Click on the big red *RANDOM* button for some mild amusement. The idea came from Heath Row over a dinner conversation as chronicled here: http://h3athrow.blogspot.com/2008/03/learning-kic

[poll] What was your primary language before you started coding in Ruby?

2008-05-04 Thread John Beppu
This is an informal poll. If you are primarily a Ruby programmer, - What was your primary language before you started coding in Ruby? Else, - What's your current programming language of choice? I'll start: Perl ___ Camping-list mailing list Camping-l

Re: camping moved to github

2008-04-27 Thread John Beppu
On Mon, Apr 7, 2008 at 1:55 PM, Jonas Pfenniger <[EMAIL PROTECTED]> wrote: > why not.. I don't really understand what makes github so special but git > the RCS is quite nice. > > -- > Cheers, > zimbatm I usually hate social networks, but I'm really digging github. I like it, because it lets me

Re: Dropping Root

2008-03-11 Thread John Beppu
Having you considered using rv? http://blog.evanweaver.com/files/doc/fauna/rv/files/README.html On Tue, Mar 11, 2008 at 5:30 AM, Jonathan Stott <[EMAIL PROTECTED]> wrote: > Hello Campers > > I'm not sure this is the right list to ask but: > I'm using the junebug wiki (which is written in campin

Camping is a winner at SXSW-i

2008-03-10 Thread John Beppu
Last night, a little Camping application I wrote called MetaNoteswon the Experimental division in the SXSW Web Awards . MetaNotes is a site that lets you (and many other people) simultaneously place colorful post-it

Re: css image url's and :img problem

2007-11-17 Thread John Beppu
On Nov 17, 2007 8:10 PM, pedro mg <[EMAIL PROTECTED]> wrote: > > background: #33 url(img01.gif) repeat-x; > url(/static/img01.gif) ? ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Camping and ruby2ruby

2007-09-27 Thread John Beppu
On 9/27/07, Manfred Stienstra <[EMAIL PROTECTED]> wrote: > > On Sep 27, 2007, at 7:35 PM, John Beppu wrote: > > ^for this reason, you can't really use ruby2ruby in anything > > serious. nil.method_missing prevents a lot of exceptions from > > being thrown, and t

Re: Camping and ruby2ruby

2007-09-27 Thread John Beppu
On 9/27/07, Jonas Pfenniger <[EMAIL PROTECTED]> wrote: > > 2007/9/27, Gregor Schmidt <[EMAIL PROTECTED]>: > > Defining NilClass#method_missing for nothing is not too clever, for a > > large scale libary IMO. > > I'm not sure you understood, it is ruby2ruby who defined > nil.method_missing. We can't