Re: camping moved to github

2008-04-07 Thread Jonas Pfenniger
2008/4/7 _why <[EMAIL PROTECTED]>: > In the better interest of helping all of you feel more welcome to > contribute. > > http://github.com/why/camping > I will probably close Trac and move to ditz for bug management, if > zimbatm doesn't mind at all. You can look at Shoes' bugs/ directory > fo

Re: Are we ready for a release ?

2008-03-12 Thread Jonas Pfenniger
2008/3/12, Jonas Pfenniger <[EMAIL PROTECTED]>: > 2008/3/12, Paul van Tilburg <[EMAIL PROTECTED]>: > > By the way, do you/we have any release notes, or NEWS listing the new > > features? > The changes are only noted in the SVN actually. I'll scan trough it

Re: Are we ready for a release ?

2008-03-12 Thread Jonas Pfenniger
2008/3/12, Paul van Tilburg <[EMAIL PROTECTED]>: > Hello all, > > On Wed, Mar 12, 2008 at 05:58:00PM +0100, Jonas Pfenniger wrote: > > what do you think of releasing the current trunk as camping-1.6 ? > > Nothing much has moved since a while and apart from FastCG

Are we ready for a release ?

2008-03-12 Thread Jonas Pfenniger
Hi campers, what do you think of releasing the current trunk as camping-1.6 ? Nothing much has moved since a while and apart from FastCGI, I believe most bugs where ironed out. After the gem release, I propose putting some effort on documentation and how to use Rack's FastCGI. When that's done, w

Re: how to "encrypt" the password/login for the blog.rb example?

2008-03-12 Thread Jonas Pfenniger
2008/2/25, Albert Ng <[EMAIL PROTECTED]>: > I'll keep that in mind. > > As an aside, using this gem, how would I go about changing the user without > closing the browser or raising «Unauthorized»? That last pops up a log-in > window that can't authorize (have to press escape). There is no perfect

Re: Camping is a winner at SXSW-i

2008-03-12 Thread Jonas Pfenniger
Brilliant ! -- Cheers, Jonas ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Keeping Camping going

2008-01-12 Thread Jonas Pfenniger
2008/1/10, Jeremy McAnally <[EMAIL PROTECTED]>: > I'm not sure who Camping's steward is at this point(zimbatm? _why?), > but I haven't seen much activity in quite some time. I really like > Camping, and I understand open source projects can fall by the > wayside. Some times ago, I proposed to take

Re: How many CRLFs between header and body?

2007-11-23 Thread Jonas Pfenniger
Hey Brendan, thanks a lot for your insightful investigation. I've committed the fix [239], I hope it solves the problem now :) A propos FastCGI, I think that Camping should drop it's support. I don't know what other people think, but if you look at the bug tracker, most bugs are related to it. Si

Re: css image url's and :img problem

2007-11-22 Thread Jonas Pfenniger
I know what I will say won't help you : FastCGI is a total waste of time. Apart if you're stucked with that setup, a reverse proxy of any kind does just fine and is much less hassle to maintain/operate. Contrary to FastCGI, HTTP is a well understood and supported protocol, with lots of different to

Re: where do i get the return value of a javascipt method?

2007-11-21 Thread Jonas Pfenniger
2007/11/21, Ronald Evangelista <[EMAIL PROTECTED]>: > how do i get the value of a javascipt confirm() function? > > a(:href=>R(DeleteUser, @user.id), :onclick => "javascript:confirm('You > sure about this?')"){label} Try adding the return statement, like "return confirm("sure ?")". But it is bette

Re: css image url's and :img problem

2007-11-20 Thread Jonas Pfenniger
Try this version : http://pastebin.com/m10c8fab0 -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: css image url's and :img problem

2007-11-20 Thread Jonas Pfenniger
2007/11/20, pedro mg <[EMAIL PROTECTED]>: > But it doesnt render in the browser, reporting: > The image "http://localhost:3301/project/static/img01.png"; cannot be > displayed because it contains errors. > > Any hint ? Are you still running the same code ? I've spotted another error : more line

Re: css image url's and :img problem

2007-11-19 Thread Jonas Pfenniger
2007/11/18, pedro mg <[EMAIL PROTECTED]>: > The class is here: http://pastebin.com/f7c92f95a Remove the quotes around the regexp on line 5. Right now the expression returns nil, which is not an entry in your MIME_TYPES hash. Apparently the browser can work around a nil mime-type for the .css but n

Re: help on helper module inclusion/extension

2007-11-06 Thread Jonas Pfenniger
The root of the problem is that a module doesn't propagate newly included methods on classes or modules where it's been alreay included. take : module A; def a; end; end module B; def b; end; end class C; end where A is included in B and B in C. Depending on the inclusion order, you won't get the

Re: Will there be a new release soon?

2007-11-06 Thread Jonas Pfenniger
Hi Daniel, 2007/10/24, Berger, Daniel <[EMAIL PROTECTED]>: > Is there going to be a 1.5.1 release anytime soon? Seems like there have > been enough changes in SVN to warrant one and I prefer to use only > "released" code in production. It gives me warmer, fuzzier feelings than > using svn/trunk. :

Re: textarea fails on rows attribute

2007-11-06 Thread Jonas Pfenniger
Hi Daniel, Markaby throws an exception on malformed html entities to ensure valid HTML. The tag doesn't accept that "rows" attribute because it is not set in the standard (or am I wrong?). I don't remember where but I think that it is possible to disable those checks if you want but I thinkt that

Re: Weird application/x-www-form-urlencoded bug

2007-10-24 Thread Jonas Pfenniger
2007/10/23, Simon Rozet <[EMAIL PROTECTED]>: > Hello, > > I experienced a weird bug today, while implementing an AtomPub server. > I pasted all the story and bug details here : http://p.caboo.se/110125 > > It maybe be related to http://code.whytheluckystiff.net/camping/ticket/142 ... > > I am using

Re: Something is wrong with Camping::H in the svn version

2007-10-15 Thread Jonas Pfenniger
Hi Nagy, you should drop your session table once. Camping::H now inherits from Hash but your sessions data still use HashWithIndifferentAccess. -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/l

Camping and sessions proposal.

2007-10-09 Thread Jonas Pfenniger
Hi Campers, from the discussions gathered around, the current Camping sessions don't seem to be satisfying. ActiveRecord doesn't seem to handle hashid as an identifier, plus it doesn't seem to be fully consistent across the various RDBMS. On the other hand, the scope of the project does not permit

Re: Session handling busted on Oracle

2007-10-08 Thread Jonas Pfenniger
2007/10/8, Berger, Daniel <[EMAIL PROTECTED]>: > Was there something else I should have used? Well technically, the id field is not necessary anymore. I don't know how AR will react if it is set. Also, are you sure that you are using camping from trunk ? Btw, here is the schema I have on sqlite :

Re: Session handling busted on Oracle

2007-10-07 Thread Jonas Pfenniger
Weird, the ivars field should have been defined in the "generate" function. Did you drop the session schema on beforehand ? -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Cookie session handling?

2007-10-07 Thread Jonas Pfenniger
2007/10/5, why the lucky stiff <[EMAIL PROTECTED]>: > On Fri, Oct 05, 2007 at 06:08:12PM +0200, Jonas Pfenniger wrote: > > I like the idea pretty much. What do you think of simply using a > > Camping::H that is process-persistent ? > > Sure, and maybe it doesn&

Re: Cookie session handling?

2007-10-05 Thread Jonas Pfenniger
Hi Daniel, I like the idea pretty much. What do you think of simply using a Camping::H that is process-persistent ? -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Session handling busted on Oracle

2007-10-05 Thread Jonas Pfenniger
Hi Daniel, I think that I have corrected that last week changeset [226]. The problem was that Session uses it's own kind of id (hashid) and that by default, ActiveRecord uses an incremental version. See : http://code.whytheluckystiff.net/camping/changeset/226 Please tell me if I introduced any r

Re: PUT (and friends) bug?

2007-09-30 Thread Jonas Pfenniger
Okay, I'll remove the test then. -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: putting away HashWithIndifferentAccess

2007-09-28 Thread Jonas Pfenniger
2007/9/27, why the lucky stiff <[EMAIL PROTECTED]>: > Well, case-sensitiveness would be a prob with 1.5 as well. Since > @env.HTTP_HOST will work and @env.http_host will not. True. So what do you think of the attached patch ? It removes roughly 50 octets to camping.rb and seems to work pretty wel

Re: PUT (and friends) bug?

2007-09-28 Thread Jonas Pfenniger
2007/9/28, Nathaniel Talbott <[EMAIL PROTECTED]>: > As far as I can tell, sending an actual HTTP PUT request to a Camping > app will never parse the params out of the request body - or am I > going nuts? No you aren't at all. Actually, Camping is only a toy to quickly hack small apps together. I a

Re: Camping and ruby2ruby

2007-09-28 Thread Jonas Pfenniger
2007/9/28, MenTaLguY <[EMAIL PROTECTED]>: > Perhaps "condensing" ? Yes, with a little touch of artistic sense added :) Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: FastCGI in Shared Hosting - What To Do?

2007-09-28 Thread Jonas Pfenniger
2007/9/28, Matthew Snyder <[EMAIL PROTECTED]>: > Running 'ruby beta.rb' produces no output and goes straight back to a > prompt. Running 'ruby dispatch.fcgi' produces no output, and when I > hit enter, I'm returned to a prompt. > This is the only thing I get in my error logs: > [Thu Sep 27 21:35:48

Re: Camping and ruby2ruby

2007-09-28 Thread Jonas Pfenniger
2007/9/28, Gregor Schmidt <[EMAIL PROTECTED]>: > For a none native speaker. Could you give a synonym for "platterize". Sorry, from a non native speaker too. The term was probably badly chosen. I was referring to the action that consist of taking camping-unabridged.rb and create a "platter?" out o

Re: Camping and ruby2ruby

2007-09-27 Thread Jonas Pfenniger
2007/9/28, Gregor Schmidt <[EMAIL PROTECTED]>: > I was "insulting" ruby2ruby and not camping. So everthing is okay on this > side. No problem. You can insult Camping if you want, if at least I get understood. Joking aside, it's true that ruby2ruby still lacks some maturity but it is an interestin

Re: FastCGI in Shared Hosting - What To Do?

2007-09-27 Thread Jonas Pfenniger
Hi Matthew, your setup looks fine but FastCGI is vicious, so don't abandon yet ! I loathe fastcgi but I hope that this e-mail will help you a little bit. Your ruby script looks fine but if you have an SSH access, you could try to run it by hand. The expected result, is no output at all. If it doe

Re: Camping and ruby2ruby

2007-09-27 Thread Jonas Pfenniger
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 start to support each and every hack a library will add to the Ruby

Re: Camping and ruby2ruby

2007-09-27 Thread Jonas Pfenniger
Hi Gregor, I wasn't able to track the error on Camping side, but it comes from r2r that defines nil.error_missing. 2007/9/27, Gregor Schmidt <[EMAIL PROTECTED]>: > require "rubygems" > require "ruby2ruby" # It works in this case but probably breaks r2r on a larger scale. class NilClass

Re: WEBrick Re: Next camping release

2007-09-27 Thread Jonas Pfenniger
2007/9/27, Ernest Prabhakar <[EMAIL PROTECTED]>: > I was looking at the test cases on the changeset: > > http://code.whytheluckystiff.net/camping/browser/trunk/test?rev=227 > > However, I didn't see anything about testing with different web > browsers; which is a concern since there was a nasty WEB

Re: putting away HashWithIndifferentAccess

2007-09-26 Thread Jonas Pfenniger
Minimal HWIA removal patch attached. So far, the examples, file upload, sessions, all work under mongrel with the patch applied. _why, is it something like that that you want ? I'm not even sure if HWIA extension is useful. The method_missing shortcut is even shorter than the one with :symbols.

Re: Session cookies not passed on first redirect

2007-09-26 Thread Jonas Pfenniger
2007/9/26, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]>: > pretty fast depending on the conditions. > True, didnt think about that in this sense. Well let's carry on then :-)-1 > for my netaness and I set out on the test corpus this weekend > this kind of stuff is something we _really_ should have

Re: Session cookies not passed on first redirect

2007-09-26 Thread Jonas Pfenniger
2007/9/26, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]>: > Coolio! You can optionally try my patch for session.rb because it makes them > neater and does not do bypasses. I am not really confident with the eternally growing id. I guess it depends on the database, but a 65535 items limit can be obt

Re: putting away HashWithIndifferentAccess

2007-09-26 Thread Jonas Pfenniger
2007/9/26, why the lucky stiff <[EMAIL PROTECTED]>: > Hey, campineros. And many good handshakes to zimbatm for getting > some patches applied. You're welcome ! > Markaby's going to take much more work. Part of the issue is: how > does an app tell Camping that it needs to use Markaby without > s

Re: Session cookies not passed on first redirect

2007-09-26 Thread Jonas Pfenniger
Thanks Julian, the little app helped a lot. Check changeset [225]. http://code.whytheluckystiff.net/camping/changeset/225 -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Re: Session cookies not passed on first redirect

2007-09-25 Thread Jonas Pfenniger
2007/9/25, Julian 'Julik' Tarkhanov <[EMAIL PROTECTED]>: > Cannot find the SVN URL on the site - only the trac is showing. `svn co http://code.whytheluckystiff.net/svn/camping/trunk` -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyf

Re: Session cookies not passed on first redirect

2007-09-25 Thread Jonas Pfenniger
Hi Julian, can you try the attached patch applied to camping-trunk ? -- Cheers, zimbatm Index: lib/camping/session.rb === --- lib/camping/session.rb (revision 218) +++ lib/camping/session.rb (working copy) @@ -108,7 +108,8 @@

Re: Next camping release

2007-09-25 Thread Jonas Pfenniger
2007/9/25, Michael Maltese <[EMAIL PROTECTED]>: > That makes sense. > An extension, do you mean like camping/session? Yes, and the gem dependency would only be added to camping-omnibus. But first, let's release Camping 1.6 -- Cheers, zimbatm ___ Camp

Re: Next camping release

2007-09-24 Thread Jonas Pfenniger
2007/9/25, Michael Maltese <[EMAIL PROTECTED]>: > Remove Markaby? How will that work? Only as a direct dependency. It will probably kept as an extension. Basically, you can return a string containing html from your controller methods even if it's a bit rough. -- Cheers, zimbatm ___

Re: Next camping release

2007-09-23 Thread Jonas Pfenniger
2007/9/24, andré gustavo cardozo <[EMAIL PROTECTED]>: > it would be really cool do remove the apache scriptAlias directive so > camping would run everywhere Sure, could you file a bug for this ? -- Cheers, zimbatm ___ Camping-list mailing list Campin

Re: Next camping release

2007-09-23 Thread Jonas Pfenniger
2007/9/23, Manfred Stienstra <[EMAIL PROTECTED]>: > > This will result in a short-term release with not too much changes, > > used for code stabilization. > > > > When this is done, I will embark on 2.0 for bigger changes like > > Markaby and AR removal. > > Cool, I'm currently trying to get my app

Next camping release

2007-09-23 Thread Jonas Pfenniger
Dear camping users, having been contacted by Julian Tarkhanov, I am willing to prepare the next camping release. _why has given me his friendly approval, with the reserve that camping.rb should be lower than 4k. He also told me that he wanted to remove the ActiveSupport and Markaby dependencies.

Re: Camping and Threads!

2007-05-10 Thread Jonas Pfenniger
2007/5/10, Ryan Allen <[EMAIL PROTECTED]>: > Hey Everybody! > > I was wondering if/how Camping can process more than one request at > once (i.e. not what Rails does). I'm fairly new to threads, and I > bought a book, and read some of it, and dived into the Camping source... > > I found some thread

Re: Running something periodically.

2007-04-26 Thread Jonas Pfenniger
2007/4/25, Jonathan Stott <[EMAIL PROTECTED]>: > Suppose, for a moment, that I have a Camping app. It looks at > something, like an RSS feed of upcoming events, and displays them if > they meet a specified criterion. I look at the index page, it fetches > the feed items and then displays them. Yay

Re: Gem broekn?

2007-04-18 Thread Jonas Pfenniger
Try removing ~/.gem/source_cache first 2007/4/18, carmen <[EMAIL PROTECTED]>: > gem install --source http://code.whytheluckystiff.net camping > Need to update 3 gems from http://code.whytheluckystiff.net > ... > complete > ERROR: While executing gem ... (TypeError) > > > gem install camping-omnib

Re: customizing global request handler

2007-04-18 Thread Jonas Pfenniger
2007/4/18, Thomas Lockney <[EMAIL PROTECTED]>: > On 4/18/07, Jonas Pfenniger <[EMAIL PROTECTED]> wrote: > > Hi Carmen, > > > > to avoid patching Camping, I suggest you look into overriding the > > "service" method for the target controllers. You c

Re: customizing global request handler

2007-04-18 Thread Jonas Pfenniger
2007/4/18, carmen <[EMAIL PROTECTED]>: > what is the cleanest way to do something for every request of a particular > type (Verb, and Content-Type header)? i'm trying to figure out if shipping a > custom camping.rb is avoidable, and if, how i should structure a patch > > > my app http://whats-you

Re: threading and concurrency

2007-03-15 Thread Jonas Pfenniger
2007/3/15, Michael Gorsuch <[EMAIL PROTECTED]>: > carmen - I'm not sure _how_ much this will really help you, but I > recently explored a similar issue with an internal Camping app. > > In summary, I needed to make sure that all calls to a specific > controller were always executed serially. i.e.

Re: [ANN] Parasite and camping_generator 0.2.0

2007-03-12 Thread Jonas Pfenniger
Sweet ! I like the concept but your parasite looks to kind :D -- Cheers, zimbatm ___ Camping-list mailing list Camping-list@rubyforge.org http://rubyforge.org/mailman/listinfo/camping-list

Looking for a dev

2007-02-26 Thread Jonas Pfenniger
vascript. But what matters the most is that you are independent and flexible. So if you're interested, the best way to apply is to choose a ruby quiz[2], write a unique solution and send us the result with your CV and a small explanation of why you chose that quiz. With hope to see you a

Re: Re: RESTful mixin, mixin repo?

2006-11-18 Thread Jonas Pfenniger
This is what I though. Equipment seems pretty complicated but it is not really. What's complicated is the extension mechanism that was created to support many use cases. If you overlook that, the rest is pretty simple. Basically, to create a Camping equipment, you do the following : module YourEx

Re: Re: [UHH] any blogs sprung from camping?

2006-11-15 Thread Jonas Pfenniger
Yes, look in Equipment so see what I did. There is a security module that separate the authentication of the authorization. You can define authentication or authorization rules on a class or application wide level. Note that mixins have some limitations, this is why the Equipment extension method

Re: Catching a list of variables with a Controller

2006-11-15 Thread Jonas Pfenniger
Hi Boris, welcome to Ruby and Camping :) Camping doesn't support nested regexp groups like ((\w+)\/) so you'll have to do it differently. Your second approach is right. You can also use the multiple arguments input if you don't want to split the string with the commas. Like ?tag=one&tag=two&tag=t

Re: Re: RESTful mixin, mixin repo?

2006-11-15 Thread Jonas Pfenniger
On 14/11/06, Mark Fredrickson <[EMAIL PROTECTED]> wrote: > I'd be happy to include this on the wiki. Can some explain how to add > a helper function into the including module's namespace? > > eg. How do I get > > module Camping > module REST > module Helpers > def form ... > end >

Re: [UHH] any blogs sprung from camping?

2006-11-14 Thread Jonas Pfenniger
The problem with authentication is that you manage it at an application level. So if you're running each of them side by side, you'll have multiple User tables, etc... What I actually do is manage the authentication on the reverse proxy but it introduces other limitations, like the inhability to m

Re: RESTful mixin, mixin repo?

2006-11-14 Thread Jonas Pfenniger
Hi, Great ! I wanted to implement that for long time and never had it (the time). I've packages a set of Camping extensions in a package called "Equipment". Apparently I don't have many followers but maybe you're interested to contribute ? I think that my lib is a bit too complex and gets intimid

Re: A New App, and A Question

2006-11-05 Thread Jonas Pfenniger
Hi Geoff, really nice idea, it will help me too. To answer your question : Look in the @root instance variable. It is the path to your application's root. We already had some problems with FastCgi -- Cheers, zimbatm http://zimbatm.oree.ch ___ Cam

Re: Date Helpers?

2006-10-23 Thread Jonas Pfenniger
Here is an example : module DateHelper def select_day(date, options={}) default_opts = { :name => 'day' } options = default_opts.merge(options) select opts do for each day in month of date "date" do |d| # replace that with valid code if d == date.mday option