From luke at slantwisedesign.com Mon Apr 2 11:36:34 2007 From: luke at slantwisedesign.com (Luke Francl) Date: Mon, 2 Apr 2007 10:36:34 -0500 Subject: Merb presentation Message-ID: Merbists, I gave a presentation about Merb to my local Ruby group last week. I've put it up as a blog post. Please take a look and let me know if there are obvious errors. http://railspikes.com/2007/4/1/merb Thanks, -- Luke Francl Ruby on Rails Developer Slantwise Design -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/merb-devel/attachments/20070402/b0d87591/attachment.html From olle at olleolleolle.dk Wed Apr 11 02:16:13 2007 From: olle at olleolleolle.dk (Olle Jonsson) Date: Wed, 11 Apr 2007 08:16:13 +0200 Subject: Sessions migration... Message-ID: Hi Ezra, and list, Is there something fishy with the Merb-included migration? I ran it, and MySQL complained. I removed this line, by commenting it out: # t.column :id, :integer, :null => false (Since Rails migrations that create tables always create an auto- increment as primary key, but they do use the NULL thing, so when you pass in a null, things happen "the way MySQL users will expect them to happen") Apologies if this is a known issue. I just downloaded Merb 25 minutes ago, so I am quite fresh at this. best regards, and I love Merb (it seems neat), Olle Jonsson Copenhagen From hutch at recursive.ca Mon Apr 30 16:30:19 2007 From: hutch at recursive.ca (Bob Hutchison) Date: Mon, 30 Apr 2007 16:30:19 -0400 Subject: Serving static files with Merb Message-ID: <13B9611E-39E9-4A9C-B6CB-F4781521FFD4@recursive.ca> Hi, I'm using Merb from the svn repository (revision 224, Merb 0.3.0). I am playing around trying to return static files. I'm opening a File and returning that from the controller. I'm setting the mime type and the content length (other wise nothing much happens). All requests for static content go through the same action of a particular controller. This is working with Firefox, Camino, and wget, or it appears to. And is quite quick. Nice. With Safari and other webkit based browsers (e.g. OmniWeb, Xyle Scope), I'm having problems loading html files. The html loads, and the two css files are being requested, but the activity browser in Safari show them to be the same size (.2k is correct for one of the css files, but the other is more like 7k). The big one is always requested first, the small second. If I hack at the html so that only one css file is requested, it gets that, but then messes up on the png files referred to by the css. Every time I refresh some other largely random mess up occurs. This is looking a lot like a threading issue of some kind. So I put a "sleep 1" in the controller and the messing up stops. Of course, that isn't a real solution. ---- Another little problem (maybe), the Set-Cookie header is 'interesting' and appears to be getting longer and longer. "Set-Cookie"=>" _session_id=ei5RSG1MemL6yeeIS7ELWrDh97YDUic5; path=/; expires=Mon, 14 May 2007 15:00:12 -0400 _session_id=42WRv32VAqxvdpexdz9CoyJMwPQaDBwB; path=/; expires=Mon, 14 May 2007 15:00:19 -0400 _session_id=SD2SXduFQcYjaEIMwMIgN2J94Yriz5qb; path=/; expires=Mon, 14 May 2007 15:00:57 -0400 _session_id=Gj2UTejMWhfH0idIGCuPIZPWQUnK7qfc; path=/; expires=Mon, 14 May 2007 15:02:54 -0400 _session_id=LHeVQ6EgEg0YaiFxKDnAROgwuPYMECFi; path=/; expires=Mon, 14 May 2007 15:04:04 -0400 _session_id=DwErEBj6Jo4jxcQNpOTAgftmPeS7saC6; path=/; expires=Mon, 14 May 2007 15:05:28 -0400 _session_id=iRu1mrhMovZCG41TidTboJ4PnCFM8cyA; path=/; expires=Mon, 14 May 2007 15:43:12 -0400 _session_id=ybOwsglrviARiViZaPiROjlKDlY3601j; path=/; expires=Mon, 14 May 2007 15:50:06 -0400 _session_id=wyJIqI5OaSD9GWwWYCEoUxz8BQCUYYED; path=/; expires=Mon, 14 May 2007 15:50:54 -0400 _session_id=dSTGIJLx2ACDj0V5csNSYY9bUG8NbOfU; path=/; expires=Mon, 14 May 2007 15:51:51 -0400 _session_id=o7G2Mtwnhoo7AEpEY85RU5maZEqikyOO; path=/; expires=Mon, 14 May 2007 15:53:56 -0400 _session_id=J7LpCVA0xt4VTAcZDn4JMK2YxZInmcty; path=/; expires=Mon, 14 May 2007 15:57:13 -0400 _session_id=eIAxImptzZYBJdAmBetjYCh7lYQkqNHB; path=/; expires=Mon, 14 May 2007 15:57:45 -0400 _session_id=0fZwX7GQo7ELTKFDinUbXC100ERZrTjK; path=/; expires=Mon, 14 May 2007 15:58:17 -0400 _session_id=otLv3y2IJ5FWMUMHNntu97ECP2s2vRuk; path=/; expires=Mon, 14 May 2007 16:00:49 -0400 _session_id=CLyCHhTCJxYRojwDP7XscKeIVfW5lIuQ; path=/; expires=Mon, 14 May 2007 16:05:17 -0400" Cheers, Bob ---- Bob Hutchison -- tumblelog at Recursive Design Inc. -- xampl for Ruby -- From ez at engineyard.com Mon Apr 30 18:13:07 2007 From: ez at engineyard.com (Ezra Zygmuntowicz) Date: Mon, 30 Apr 2007 15:13:07 -0700 Subject: Serving static files with Merb In-Reply-To: <13B9611E-39E9-4A9C-B6CB-F4781521FFD4@recursive.ca> References: <13B9611E-39E9-4A9C-B6CB-F4781521FFD4@recursive.ca> Message-ID: Hey Bob- On a little further investigation I discovered the problem. I had made frozen CONSTS out of some parameters merbs uses over and over and I went too far for the response headers hash. I just commited the fix to trunk and bumped the version number to 0.3.1 and released a gem. This will undoubtedly fix your problem. Thanks for the report. CHeers- -Ezra On Apr 30, 2007, at 1:30 PM, Bob Hutchison wrote: > Hi, > > I'm using Merb from the svn repository (revision 224, Merb 0.3.0). > > I am playing around trying to return static files. I'm opening a File > and returning that from the controller. I'm setting the mime type and > the content length (other wise nothing much happens). All requests > for static content go through the same action of a particular > controller. > > This is working with Firefox, Camino, and wget, or it appears to. And > is quite quick. Nice. > > With Safari and other webkit based browsers (e.g. OmniWeb, Xyle > Scope), I'm having problems loading html files. The html loads, and > the two css files are being requested, but the activity browser in > Safari show them to be the same size (.2k is correct for one of the > css files, but the other is more like 7k). The big one is always > requested first, the small second. If I hack at the html so that only > one css file is requested, it gets that, but then messes up on the > png files referred to by the css. Every time I refresh some other > largely random mess up occurs. > > This is looking a lot like a threading issue of some kind. So I put a > "sleep 1" in the controller and the messing up stops. Of course, that > isn't a real solution. > > ---- > > Another little problem (maybe), the Set-Cookie header is > 'interesting' and appears to be getting longer and longer. > > "Set-Cookie"=>" _session_id=ei5RSG1MemL6yeeIS7ELWrDh97YDUic5; path=/; > expires=Mon, 14 May 2007 15:00:12 -0400 > _session_id=42WRv32VAqxvdpexdz9CoyJMwPQaDBwB; path=/; expires=Mon, 14 > May 2007 15:00:19 -0400 _session_id=SD2SXduFQcYjaEIMwMIgN2J94Yriz5qb; > path=/; expires=Mon, 14 May 2007 15:00:57 -0400 > _session_id=Gj2UTejMWhfH0idIGCuPIZPWQUnK7qfc; path=/; expires=Mon, 14 > May 2007 15:02:54 -0400 _session_id=LHeVQ6EgEg0YaiFxKDnAROgwuPYMECFi; > path=/; expires=Mon, 14 May 2007 15:04:04 -0400 > _session_id=DwErEBj6Jo4jxcQNpOTAgftmPeS7saC6; path=/; expires=Mon, 14 > May 2007 15:05:28 -0400 _session_id=iRu1mrhMovZCG41TidTboJ4PnCFM8cyA; > path=/; expires=Mon, 14 May 2007 15:43:12 -0400 > _session_id=ybOwsglrviARiViZaPiROjlKDlY3601j; path=/; expires=Mon, 14 > May 2007 15:50:06 -0400 _session_id=wyJIqI5OaSD9GWwWYCEoUxz8BQCUYYED; > path=/; expires=Mon, 14 May 2007 15:50:54 -0400 > _session_id=dSTGIJLx2ACDj0V5csNSYY9bUG8NbOfU; path=/; expires=Mon, 14 > May 2007 15:51:51 -0400 _session_id=o7G2Mtwnhoo7AEpEY85RU5maZEqikyOO; > path=/; expires=Mon, 14 May 2007 15:53:56 -0400 > _session_id=J7LpCVA0xt4VTAcZDn4JMK2YxZInmcty; path=/; expires=Mon, 14 > May 2007 15:57:13 -0400 _session_id=eIAxImptzZYBJdAmBetjYCh7lYQkqNHB; > path=/; expires=Mon, 14 May 2007 15:57:45 -0400 > _session_id=0fZwX7GQo7ELTKFDinUbXC100ERZrTjK; path=/; expires=Mon, 14 > May 2007 15:58:17 -0400 _session_id=otLv3y2IJ5FWMUMHNntu97ECP2s2vRuk; > path=/; expires=Mon, 14 May 2007 16:00:49 -0400 > _session_id=CLyCHhTCJxYRojwDP7XscKeIVfW5lIuQ; path=/; expires=Mon, 14 > May 2007 16:05:17 -0400" > > Cheers, > Bob > > ---- > Bob Hutchison -- tumblelog at www.recursive.ca/so/> > Recursive Design Inc. -- > xampl for Ruby -- xampl/> > > > > _______________________________________________ > Merb-devel mailing list > Merb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/merb-devel -- Ezra Zygmuntowicz -- Lead Rails Evangelist -- ez at engineyard.com -- Engine Yard, Serious Rails Hosting -- (866) 518-YARD (9273) From hutch at recursive.ca Mon Apr 30 21:15:41 2007 From: hutch at recursive.ca (Bob Hutchison) Date: Mon, 30 Apr 2007 21:15:41 -0400 Subject: Serving static files with Merb In-Reply-To: References: <13B9611E-39E9-4A9C-B6CB-F4781521FFD4@recursive.ca> Message-ID: <05B5A418-DA5C-4990-AD88-DC14C67C9732@recursive.ca> Hi Ezra, Perfect! Wonderful! Thanks for that. Cheers, Bob On 30-Apr-07, at 6:13 PM, Ezra Zygmuntowicz wrote: > Hey Bob- > > On a little further investigation I discovered the problem. I had > made frozen CONSTS out of some parameters merbs uses over and over > and I went too far for the response headers hash. I just commited > the fix to trunk and bumped the version number to 0.3.1 and > released a gem. > > This will undoubtedly fix your problem. Thanks for the report. > > CHeers- > -Ezra > > > On Apr 30, 2007, at 1:30 PM, Bob Hutchison wrote: > >> Hi, >> >> I'm using Merb from the svn repository (revision 224, Merb 0.3.0). >> >> I am playing around trying to return static files. I'm opening a File >> and returning that from the controller. I'm setting the mime type and >> the content length (other wise nothing much happens). All requests >> for static content go through the same action of a particular >> controller. >> >> This is working with Firefox, Camino, and wget, or it appears to. And >> is quite quick. Nice. >> >> With Safari and other webkit based browsers (e.g. OmniWeb, Xyle >> Scope), I'm having problems loading html files. The html loads, and >> the two css files are being requested, but the activity browser in >> Safari show them to be the same size (.2k is correct for one of the >> css files, but the other is more like 7k). The big one is always >> requested first, the small second. If I hack at the html so that only >> one css file is requested, it gets that, but then messes up on the >> png files referred to by the css. Every time I refresh some other >> largely random mess up occurs. >> >> This is looking a lot like a threading issue of some kind. So I put a >> "sleep 1" in the controller and the messing up stops. Of course, that >> isn't a real solution. >> >> ---- >> >> Another little problem (maybe), the Set-Cookie header is >> 'interesting' and appears to be getting longer and longer. >> >> "Set-Cookie"=>" _session_id=ei5RSG1MemL6yeeIS7ELWrDh97YDUic5; path=/; >> expires=Mon, 14 May 2007 15:00:12 -0400 >> _session_id=42WRv32VAqxvdpexdz9CoyJMwPQaDBwB; path=/; expires=Mon, 14 >> May 2007 15:00:19 -0400 _session_id=SD2SXduFQcYjaEIMwMIgN2J94Yriz5qb; >> path=/; expires=Mon, 14 May 2007 15:00:57 -0400 >> _session_id=Gj2UTejMWhfH0idIGCuPIZPWQUnK7qfc; path=/; expires=Mon, 14 >> May 2007 15:02:54 -0400 _session_id=LHeVQ6EgEg0YaiFxKDnAROgwuPYMECFi; >> path=/; expires=Mon, 14 May 2007 15:04:04 -0400 >> _session_id=DwErEBj6Jo4jxcQNpOTAgftmPeS7saC6; path=/; expires=Mon, 14 >> May 2007 15:05:28 -0400 _session_id=iRu1mrhMovZCG41TidTboJ4PnCFM8cyA; >> path=/; expires=Mon, 14 May 2007 15:43:12 -0400 >> _session_id=ybOwsglrviARiViZaPiROjlKDlY3601j; path=/; expires=Mon, 14 >> May 2007 15:50:06 -0400 _session_id=wyJIqI5OaSD9GWwWYCEoUxz8BQCUYYED; >> path=/; expires=Mon, 14 May 2007 15:50:54 -0400 >> _session_id=dSTGIJLx2ACDj0V5csNSYY9bUG8NbOfU; path=/; expires=Mon, 14 >> May 2007 15:51:51 -0400 _session_id=o7G2Mtwnhoo7AEpEY85RU5maZEqikyOO; >> path=/; expires=Mon, 14 May 2007 15:53:56 -0400 >> _session_id=J7LpCVA0xt4VTAcZDn4JMK2YxZInmcty; path=/; expires=Mon, 14 >> May 2007 15:57:13 -0400 _session_id=eIAxImptzZYBJdAmBetjYCh7lYQkqNHB; >> path=/; expires=Mon, 14 May 2007 15:57:45 -0400 >> _session_id=0fZwX7GQo7ELTKFDinUbXC100ERZrTjK; path=/; expires=Mon, 14 >> May 2007 15:58:17 -0400 _session_id=otLv3y2IJ5FWMUMHNntu97ECP2s2vRuk; >> path=/; expires=Mon, 14 May 2007 16:00:49 -0400 >> _session_id=CLyCHhTCJxYRojwDP7XscKeIVfW5lIuQ; path=/; expires=Mon, 14 >> May 2007 16:05:17 -0400" >> >> Cheers, >> Bob >> >> ---- >> Bob Hutchison -- tumblelog at > www.recursive.ca/so/> >> Recursive Design Inc. -- >> xampl for Ruby -- > xampl/> >> >> >> >> _______________________________________________ >> Merb-devel mailing list >> Merb-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/merb-devel > > -- Ezra Zygmuntowicz-- Lead Rails Evangelist > -- ez at engineyard.com > -- Engine Yard, Serious Rails Hosting > -- (866) 518-YARD (9273) > > ---- Bob Hutchison -- tumblelog at Recursive Design Inc. -- xampl for Ruby --