Re: [Radiant] How to add images to pages?

2006-08-18 Thread Keith Bingman
dror tirosh wrote:
> Hi,
> I don´t know if it works with 0.5.2 simply because I didn´t try it yet, 
> I
> just upgraded the rails version but still working on an old radiant 
> version.
> Keith - errors like you get for not attaching a file can be easily taken
> care of in the code, the code you´re using is more of an example then
> anything else.
> I´ll check the patch on 0.5.2 and send updates if needed.
> Dror

I figured this, but have been banging my head trying to get rid of that 
particular error. Ruby and I are still getting to know one another.

I have everything else working and little remains of your code example, 
but this one is vexing me. Pointers...?

Keith

-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Caching and optimizations

2006-08-18 Thread John W. Long
Frederico Oliveira wrote:
> Still, giving users the chance to change the ResponseCache expiry
> times in, say, a config file would be a safe bet.

Actually, you can do that. Just drop the following in config/environment.rb:

   ResponseCache.defaults[:expire_time] = 2.days

There are a couple of other defaults that you can use to configure 
caching. They are listed at the top of this file:

http://dev.radiantcms.org/radiant/browser/trunk/radiant/app/models/response_cache.rb

But I must ask: Is this actually an issue for you or are you 
anticipating that it might be? I ask because I believe that a lot of 
people make assumptions about caching based on what was once required on 
old hardware. I believe that modern hardware has changed the game and 
CPU time is no longer an issue for all but mega Web sites.

Jason Hoffman did a study on Radiant and caching and posted some 
interesting screenshots about it on Flickr:

http://flickr.com/photos/textdriveinc/179393665/in/photostream/

--
John Long
http://wiseheartdesign.com
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] How to add images to pages?

2006-08-18 Thread Tom Wilcoxen
Hi, I installed the patch yesterday against 0.5.2 and it seemed to
work just fine. Thanks, by the way, it looks like it should work
great.

-Tom

On 8/18/06, dror tirosh <[EMAIL PROTECTED]> wrote:
> Hi,
> I don´t know if it works with 0.5.2 simply because I didn´t try it yet, I
> just upgraded the rails version but still working on an old radiant version.
> Keith - errors like you get for not attaching a file can be easily taken
> care of in the code, the code you´re using is more of an example then
> anything else.
> I´ll check the patch on 0.5.2 and send updates if needed.
> Dror
>
>
>
> On 8/18/06, Keith Bingman <[EMAIL PROTECTED] > wrote:
> > bodhi wrote:
> > > On 18/08/2006, at 12:20 AM, dror tirosh wrote:
> > >
> > >> Hi,
> > >> I did the page_part_types patch before, which allows having parts of
> > >> different types.
> > >> I'm not sure there was a huge interest at it at the time, but I use it
> > >> for a site that my writers are not very computer capable.
> > >
> > > I'm using it here :)
> > >
> > >> If you are interested and if that seems to answer your need you can
> > >> write back to me, at the moment there is no patch for the 0.5 version.
> > >> Dror
> > >
> > > Dror, does the patch on trac not work for 0.5.2?
> > >
> > > Bodhi
> >
> > I have been using this a lot as well. The patch fails with 0.5.2, but I
> > think it is something minor to fix (I ran a bunch of patches at once, so
> > I am not real clear). In any case I have it working.
> >
> > I do have one problem, when one chooses a attachment part_type, but does
> > not upload an attachtement, I get an error. The if params[:file] should
> > take care of this, but does not seem to.
> >
> > This idea makes Radiant into an even more flexible system. I just
> > created a site with a  gallery, using this. Each image is it's own page,
> > a child of the gallery itself. This allows me to use the normal Radius
> > tags and makes setup a snap.
> >
> >
> > --
> > Posted via http://www.ruby-forum.com/.
> > ___
> > Radiant mailing list
> > Radiant@lists.radiantcms.org
> > http://lists.radiantcms.org/mailman/listinfo/radiant
> >
>
>
> ___
> Radiant mailing list
> Radiant@lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>
>
>
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] 3rd party host, need to update?

2006-08-18 Thread Tom Wilcoxen
Erik,

You shouldn't be dependent on Dreamhost (or any other host's) install
of rails as Radiant includes it in the vendor directory by default.
That's a Good Thing and you should follow that practice no matter
where you host to be sure the environment doesn't change out from
under you.

I do host at Dreamhost and am quite happy with it.

-Tom


On 8/18/06, John W. Long <[EMAIL PROTECTED]> wrote:
> Erik Mallinson wrote:
> > I realize this is a stupid n00b question but I haven't the time this
> > summer to dedicate towards learning Ruby, RoR, and Radiant that I was
> > hoping for; I'm hoping kind soul will answer my question instead.
> >
> > If I use Dreamhost do I need to upgrade to 0.5.2 because of the RoR
> > security updates? Doesn't Dreamhost install RoR?
>
> If your not sure if Dreamhost is running patched versions of the old
> Rails versions, I would highly recommend that you upgrade to 0.5.2.
>
> > Bonus question: What's a good place to learn the ins and outs of SVN?
> > I've installed Radiant via SVN and I'd like to upgrade in that way too.
>
> The best thing I've found is the Subversion book:
>
>http://svnbook.red-bean.com/
>
> It's a bit verbose at times, but is a great reference manual.
>
> --
> John Long
> http://wiseheartdesign.com
> ___
> Radiant mailing list
> Radiant@lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Caching and optimizations

2006-08-18 Thread Frederico Oliveira
On 8/18/06, John W. Long <[EMAIL PROTECTED]> wrote:
> I don't have plans to change the caching mechanism. Are you really
> experiencing that much load that regenerating the page every five
> minutes or so is a problem? I would find that really, really surprising.
> If you were you could probably afford to buy new hardware or approach
> the issue from a different angle.

It ultimately depends on the site's usage patterns. In a packed
environment (like shared hosting), it may become a big concern - if
most page requests are non-cached, CPU usage for dispatchers goes way
up when taking hits (possibly blowing up CPU-time limits).

It is a fact that most people wont run into this sort of situation,
but those I describe on the above paragraph might. Naturally most
people with critical pages will choose to run them on dedicated setups
(possibly even balanced environments), so it wont become a liability.

Still, giving users the chance to change the ResponseCache expiry
times in, say, a config file would be a safe bet. Naturally anyone can
change the ResponseCache model and do it themselves (like I have, for
pages who don't get too many updates - since there's a clever Clear
Page Cache button to override the expiry time), but maybe that's one
of the things where configuration comes in handy for people who'll be
deploying a lot of pages.

Fred
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Caching and optimizations

2006-08-18 Thread John W. Long
Frederico Oliveira wrote:
> Now for the question: is there a plan to make the caching method used
> by Radiant change, or should I patch the application myself? I can
> predict many others will be in this situation soon as the application
> is considered for real-world use by more and more developers and/or
> companies. In critical situations for pages who get loads of requests
> but little changes, we may have a problem.

I don't have plans to change the caching mechanism. Are you really 
experiencing that much load that regenerating the page every five 
minutes or so is a problem? I would find that really, really surprising. 
If you were you could probably afford to buy new hardware or approach 
the issue from a different angle.

--
John Long
http://wiseheartdesign.com
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Caching and optimizations

2006-08-18 Thread Frederico Oliveira
Hey guys,

I looked around and it seems like this hasn't been asked before, but
one of my major concerns with Radiant (which I've been using for quite
some time now) is its caching mechanism. Here's my problem:

I plan on deploying RadiantCMS on websites with content that doesn't
change often - it gets updated maybe every week, but never twice in,
say, a day. This being said, the 5-minute caching mechanism becomes
useless as all but a few requests are dynamically generated and not
taken from the cache.

Now for the question: is there a plan to make the caching method used
by Radiant change, or should I patch the application myself? I can
predict many others will be in this situation soon as the application
is considered for real-world use by more and more developers and/or
companies. In critical situations for pages who get loads of requests
but little changes, we may have a problem.

Thoughts or solutions?

Fred

-- 
Frederico Oliveira
Webreakstuff - A design, development and usability consulting company
http://webreakstuff.com | [EMAIL PROTECTED]
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Redcloth

2006-08-18 Thread John W. Long
MarsHall wrote:
> RedCloth is focused on Textile formatting (with Markdown practically  
> as an aside).
> 
> I suggest using BlueCloth for Markdown:
>http://www.deveiate.org/projects/BlueCloth

Radiant does use BlueCloth for Markdown. We were discussing some 
differences between the way RedCloth formats Textile and the way it 
works with the original Textile library.

--
John Long
http://wiseheartdesign.com
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Redcloth

2006-08-18 Thread MarsHall
RedCloth is focused on Textile formatting (with Markdown practically  
as an aside).

I suggest using BlueCloth for Markdown:
   http://www.deveiate.org/projects/BlueCloth

In my experience, it works much better, including a fix for this line  
break problem:

   Two spaces at the end of a line create a ,
 otherwise single carriage returns are ignored.

   Two carriage returns still delimit paragraphs.


*Mars


On Aug 17, 2006, at 07:11, Keith Bingman wrote:

> As far as I can tell, Radiant seems to have the line break bug in
> Redcloth. Is this true? Can it be fixed?
>
> -- 
> Posted via http://www.ruby-forum.com/.
> ___
> Radiant mailing list
> Radiant@lists.radiantcms.org
> http://lists.radiantcms.org/mailman/listinfo/radiant
>

( <> .. <> )

___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Edit Links

2006-08-18 Thread Adrian Madrid
John,+1 - Fragment caching would be great!AEMOn 8/17/06, John W. Long <[EMAIL PROTECTED]> wrote:
Daniel Lyons wrote:> Interesting. I wonder if it would be possible to implement a caching
> system that could take this into account.>> Obviously, this isn't a deal breaker. Back to hacking...I'm considering adding fragment caching so that you could mark certainsections of the page for caching and let it generate the rest.
--John Longhttp://wiseheartdesign.com___Radiant mailing listRadiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant-- Adrian Esteban Madrid
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] How to add images to pages?

2006-08-18 Thread dror tirosh
Hi,I don´t know if it works with 0.5.2 simply because I didn´t try it yet, I just upgraded the rails version but still working on an old radiant version.Keith - errors like you get for not attaching a file can be easily taken care of in the code, the code you´re using is more of an example then anything else.
I´ll check the patch on 0.5.2 and send updates if needed.DrorOn 8/18/06, Keith Bingman <[EMAIL PROTECTED]
> wrote:bodhi wrote:> On 18/08/2006, at 12:20 AM, dror tirosh wrote:
>>> Hi,>> I did the page_part_types patch before, which allows having parts of>> different types.>> I'm not sure there was a huge interest at it at the time, but I use it>> for a site that my writers are not very computer capable.
>> I'm using it here :)>>> If you are interested and if that seems to answer your need you can>> write back to me, at the moment there is no patch for the 0.5 version.>> Dror
>> Dror, does the patch on trac not work for 0.5.2?>> BodhiI have been using this a lot as well. The patch fails with 0.5.2, but Ithink it is something minor to fix (I ran a bunch of patches at once, so
I am not real clear). In any case I have it working.I do have one problem, when one chooses a attachment part_type, but doesnot upload an attachtement, I get an error. The if params[:file] shouldtake care of this, but does not seem to.
This idea makes Radiant into an even more flexible system. I justcreated a site with a  gallery, using this. Each image is it's own page,a child of the gallery itself. This allows me to use the normal Radius
tags and makes setup a snap.--Posted via http://www.ruby-forum.com/.___Radiant mailing list
Radiant@lists.radiantcms.orghttp://lists.radiantcms.org/mailman/listinfo/radiant
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Redcloth

2006-08-18 Thread Keith Bingman
John W. Long wrote:
> Keith Bingman wrote:
>> I meant to include this, but forgot:
>> 
>> http://redhanded.hobix.com/inspect/usingRedcloth3.html
>> 
>> He states that you can switch hard breaks on, but when I try this, it 
>> disables paragraphs. Oh well...
> 
> I think I'm going to side with _why for now. In the meantime you can
> just use  tags between lines.
> 
> --
> John Long
> http://wiseheartdesign.com

I assumed this one be the response. Unfortunately, this is not a site 
for me... one of the pesky customers who doesn't  want to learn...! I 
have a solution though. Thanks for looking into it.

Keith Bingman

-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Redcloth

2006-08-18 Thread Daniel Lyons
On Aug 18, 2006, at 10:33 AM, Paul Stadig wrote:I for one would rather not insert  tags all over my mark up.  If Iwas gonna do that I'd just do everything in straight HTML.  I like thesimplicity of Textile.I'm with Paul. _why might be wrong in this case.Maybe we could relax the gem spec dependency to >= 3.0? -- Daniel Lyons[EMAIL PROTECTED] ___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Redcloth

2006-08-18 Thread Paul Stadig
The hard_breaks bug is even worse than this, I think.  When you turn on
hard_breaks it totally ignores all block specifiers except the first one
(http://rubyforge.org/pipermail/redcloth-upwards/2006-June/49.html). 
When hard_breaks is on this:

p. 703.289.3820 *tel*
703.359.0952 *fax*

p. "[EMAIL PROTECTED]":mailto:[EMAIL PROTECTED]

Becomes:

703.289.3820 tel703.359.0952
fax
p. mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]

This happens with hn. marks and everything (yikes!).  Downgrading RedCloth
to 3.0.3 seems to fix it, and with hard_breaks you get:

703.289.3820 tel703.359.0952
fax

mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED]

I haven't tried downgrading RedCloth with Radiant, but as far as I can
tell it should work???  The 0.5.2 gem spec depends on RedCloth >= 3.0.3.

I for one would rather not insert  tags all over my mark up.  If I
was gonna do that I'd just do everything in straight HTML.  I like the
simplicity of Textile.


Paul

> --
>
> Message: 2
> Date: Thu, 17 Aug 2006 18:59:05 +0200
> From: Keith Bingman <[EMAIL PROTECTED]>
> Subject: Re: [Radiant] Redcloth
> To: radiant@lists.radiantcms.org
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=utf-8
>
> John W. Long wrote:
>> Keith Bingman wrote:
>>> Does that make sense?
>>
>> So to clarify, you give it the following:
>>
>>MI 31.08. digi lounging
>>DO 01.09. rive gauche opening party
>>FR 02.09. csaba, crying soul production
>>SA 03.09. l'un est l'autre, deep'n sexy house
>>
>> And expect:
>>
>>MI 31.08. digi lounging
>>DO 01.09. rive gauche opening party
>>FR 02.09. csaba, crying soul production
>>SA 03.09. l'un est l'autre, deep'n sexy house
>>
>> But instead get:
>>
>>MI 31.08. digi lounging
>>DO 01.09. rive gauche opening party
>>FR 02.09. csaba, crying soul production
>>SA 03.09. l'un est l'autre, deep'n sexy house 
>>
>> ?
>>
>> --
>> John Long
>> http://wiseheartdesign.com
>
> Yes, this is how it usually works in Textile, at least in Textpattern.
> As Dean Allen wrote both, one would expect that that is the way it was
> inteneded to work.
>
> _why seems to have other feelings, but this is how it would ideally work
> for me.
>
>
> Keith Bingman
>
>
> --
> Posted via http://www.ruby-forum.com/.


___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] 3rd party host, need to update?

2006-08-18 Thread John W. Long
Erik Mallinson wrote:
> I realize this is a stupid n00b question but I haven't the time this 
> summer to dedicate towards learning Ruby, RoR, and Radiant that I was 
> hoping for; I'm hoping kind soul will answer my question instead.
> 
> If I use Dreamhost do I need to upgrade to 0.5.2 because of the RoR 
> security updates? Doesn't Dreamhost install RoR?

If your not sure if Dreamhost is running patched versions of the old 
Rails versions, I would highly recommend that you upgrade to 0.5.2.

> Bonus question: What's a good place to learn the ins and outs of SVN? 
> I've installed Radiant via SVN and I'd like to upgrade in that way too.

The best thing I've found is the Subversion book:

   http://svnbook.red-bean.com/

It's a bit verbose at times, but is a great reference manual.

--
John Long
http://wiseheartdesign.com
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] [Out of office] Re: 3rd party host, need to update?

2006-08-18 Thread ryan.casey
I will be out of the office from Friday August 18th through Wednesday August 
23rd, returning on August 24th.

If this is an urgent issue, please contact Jenny Kim:
434-296-1500
[EMAIL PROTECTED]

I will respond to your e-mail on Thursday August 24th.

Thank you,
-Ryan Casey


___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] 3rd party host, need to update?

2006-08-18 Thread Erik Mallinson
Hi,
I realize this is a stupid n00b question but I haven't the time this 
summer to dedicate towards learning Ruby, RoR, and Radiant that I was 
hoping for; I'm hoping kind soul will answer my question instead.

If I use Dreamhost do I need to upgrade to 0.5.2 because of the RoR 
security updates? Doesn't Dreamhost install RoR?

Bonus question: What's a good place to learn the ins and outs of SVN? 
I've installed Radiant via SVN and I'd like to upgrade in that way too.


Thank you,
Erik Mallinson
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] [Out of office] Re: [Out of office] Re: Re: Redcloth

2006-08-18 Thread ryan.casey
I will be out of the office from Friday August 18th through Wednesday August 
23rd, returning on August 24th.

If this is an urgent issue, please contact Jenny Kim:
434-296-1500
[EMAIL PROTECTED]

I will respond to your e-mail on Thursday August 24th.

Thank you,
-Ryan Casey


___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] [Out of office] Re: Re: Redcloth

2006-08-18 Thread ryan.casey
I will be out of the office from Friday August 18th through Wednesday August 
23rd, returning on August 24th.

If this is an urgent issue, please contact Jenny Kim:
434-296-1500
[EMAIL PROTECTED]

I will respond to your e-mail on Thursday August 24th.

Thank you,
-Ryan Casey


___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Redcloth

2006-08-18 Thread John W. Long
Keith Bingman wrote:
> I meant to include this, but forgot:
> 
> http://redhanded.hobix.com/inspect/usingRedcloth3.html
> 
> He states that you can switch hard breaks on, but when I try this, it 
> disables paragraphs. Oh well...

I think I'm going to side with _why for now. In the meantime you can 
just use  tags between lines.

--
John Long
http://wiseheartdesign.com
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Redcloth

2006-08-18 Thread Keith Bingman
John W. Long wrote:
> Keith Bingman wrote:
>> _why seems to have other feelings, but this is how it would ideally work 
>> for me.
> 
> Could you point me to a url about this?
> 
> --
> John Long
> http://wiseheartdesign.com

I meant to include this, but forgot:

http://redhanded.hobix.com/inspect/usingRedcloth3.html

He states that you can switch hard breaks on, but when I try this, it 
disables paragraphs. Oh well...

Keith BIngman


-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] How to add images to pages?

2006-08-18 Thread Keith Bingman
bodhi wrote:
> On 18/08/2006, at 12:20 AM, dror tirosh wrote:
> 
>> Hi,
>> I did the page_part_types patch before, which allows having parts of 
>> different types.
>> I'm not sure there was a huge interest at it at the time, but I use it 
>> for a site that my writers are not very computer capable.
> 
> I'm using it here :)
> 
>> If you are interested and if that seems to answer your need you can 
>> write back to me, at the moment there is no patch for the 0.5 version.
>> Dror
> 
> Dror, does the patch on trac not work for 0.5.2?
> 
> Bodhi

I have been using this a lot as well. The patch fails with 0.5.2, but I 
think it is something minor to fix (I ran a bunch of patches at once, so 
I am not real clear). In any case I have it working.

I do have one problem, when one chooses a attachment part_type, but does 
not upload an attachtement, I get an error. The if params[:file] should 
take care of this, but does not seem to.

This idea makes Radiant into an even more flexible system. I just 
created a site with a  gallery, using this. Each image is it's own page, 
a child of the gallery itself. This allows me to use the normal Radius 
tags and makes setup a snap.


-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Radiant@lists.radiantcms.org
http://lists.radiantcms.org/mailman/listinfo/radiant