[Radiant] Script to invalidate single URLs in Radiant::Cache

2010-01-12 Thread Johannes Fahrenkrug
Hi,

this might be useful for some:

http://blog.springenwerk.com/2010/01/invalidate-single-urls-in.html

- Johannes
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Long 404 response times / Profiling with ruby-prof

2009-12-17 Thread Johannes Fahrenkrug
Hi,

my Radiant 0.8.1 app takes very long (about 3 seconds!) to respond for
non-exsiting pages. Existing pages are returned very quickly! I've
overridden FileNotFoundPage's cache? method to return true, so at
least the responses are cached now.
I'd still like to find out where the time is spent, though. It's not
the DB, those requests are just a few milliseconds according to the
log file.

I've written an integration test using ruby-prof now, but Radiant
explicitly activates Rack::Lint::Assertion for integration tests which
slows things down and thus doesn't give me accurate results.

Does anyone have experience with actually profiling the real
production radiant app? That would be very much appreciated!

- Johannes
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Routes and Custom Pages Types

2009-08-26 Thread Johannes Fahrenkrug
Hi Sean and Andrew,

thank you guys so much! This is exactly what I was looking for :)

- Johannes

On Tue, Aug 25, 2009 at 3:20 PM, Andrew
Neilandrew.jr.n...@googlemail.com wrote:
 On Tue, Aug 25, 2009 at 2:13 PM, Sean Cribbs seancri...@gmail.com wrote:

 Johannes,

 Your TripPage should override Page#find_by_url and return itself or an
 appropriate child page for URLs that match your scheme.  Way back in the day
 we did that for KCKCC's syllabus pages - wish I still had that example
 around.


 Here is an example of overriding Page#find_by_url:

 http://github.com/nelstrom/radiant-audio_player-extension/blob/11e2b3398e4831c3d047ac30276215dd3af15678/app/models/audio_page.rb#L5-17

 This should match URLs of the form:

 /podcasts
    [index page]

 /podcasts/1-first-episode
 /podcasts/2-second-episode
    [show pages]

 I hope this helps.

 Cheers,
 Drew





 Sean


 Johannes Fahrenkrug wrote:

 Hi,

 I have a custom page type called TripPage. I want to be able to do
 create a new page with the /trips slug and then do this:

 /trips/2640024

 to display the trip with the id 2630024. I know I could easily do
 /trips?id=2630024 and access that via @request.params[:id], but I want
 to make the site SEO friendly and avoid get parameters.

 Would the best practice be to set this up through the routes in the
 _extension.rb file?

 Thanks!

 - Johannes Fahrenkrug
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




-- 
http://blog.springenwerk.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Routes and Custom Pages Types

2009-08-25 Thread Johannes Fahrenkrug
Hi,

I have a custom page type called TripPage. I want to be able to do
create a new page with the /trips slug and then do this:

/trips/2640024

to display the trip with the id 2630024. I know I could easily do
/trips?id=2630024 and access that via @request.params[:id], but I want
to make the site SEO friendly and avoid get parameters.

Would the best practice be to set this up through the routes in the
_extension.rb file?

Thanks!

- Johannes Fahrenkrug
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] When will the i18n features make it into the gem?

2009-08-10 Thread Johannes Fahrenkrug
Hi,

I have a question about the i18n branch: is it production ready? If
not: can I help? If it is: when can we expect it the be part of the
official release?

Thanks!

- Johannes


-- 
http://blog.springenwerk.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] When will the i18n features make it into the gem?

2009-08-10 Thread Johannes Fahrenkrug
Thanks for the info, Sean.
So what if I'd like to use the German translation already right now.
Would the i18n branch be considered production-ready or would you
advice against using it?

- Johannes

On Mon, Aug 10, 2009 at 3:19 PM, Sean Cribbsseancri...@gmail.com wrote:
 Depending on how well new features progress, i18n will be included in 0.9.
  Expect 0.9 probably before the new year (or sooner if we don't include the
 new UI).

 Sean

 Johannes Fahrenkrug wrote:

 Hi,

 I have a question about the i18n branch: is it production ready? If
 not: can I help? If it is: when can we expect it the be part of the
 official release?

 Thanks!

 - Johannes




 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




-- 
http://blog.springenwerk.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Radiant Xapian Search Extension - now a drop-in replacement

2009-07-29 Thread Johannes Fahrenkrug
Hi,

I've updated the Xapian Search Extension today with the search_page.rb
tags from the official Radiant Search Extension. It should now work
as a drop-in replacement, using the powerful Xapian search engine.

It might still be a little rough around the edges, so please give me
feedback in case you find bugs.

You can find it here:
http://github.com/jfahrenkrug/radiant-xapian-search-extension/tree/master

- Johannes

-- 
http://blog.springenwerk.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant and IBM DB2

2009-01-13 Thread Johannes Fahrenkrug
Hi Anton,

Thanks for your reply.

 The Ruby on rails book - the Pickaxe book - discusses how to use RoR
 with legacy databases.  I'd recommend looking at that.

You mean the Agile Web Development with Rails book?

 In short, the answer is YES, but you need to have some other database to
  act as a 'shim' of some kind.

Could you explain that a bit further?

Thank you!

- Johannes

 --
 Concern for people and their fate must always form the chief interest of
 all technical endeavors in order that the creations of our mind shall be
 a blessing, not a curse, to humanity. Never forget this amidst your
 diagrams and equations.
-- Albert Einstein
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




-- 
http://blog.springenwerk.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant and IBM DB2

2009-01-13 Thread Johannes Fahrenkrug
Hi Davide,

Wow, That's great information! Thank you so much. You know, I've just
finished setting up DB2 on my Mac and I've just gotten my first
Radiant app on DB2 up and running. That's really cool.

I've written a short article about it here:
http://blog.springenwerk.com/2009/01/ibm-db2-on-mac-with-ruby-rails-and.html

Once again, thank you!

- Johannes

On Tue, Jan 13, 2009 at 1:05 PM, Panizzolo, Davide
davide.panizz...@unitn.it wrote:
 Hi Johannes,
 in our Department we developed a Radiant application using DB2.
 We created a radiant application using the DB2 adapter and then we created 
 some extensions to work with the DB2 legacy database.
 The main difficulty was that the DB2 adapter has some significant limitation 
 (for example the rename_column do not work) and this was a problem especially 
 for migrations.
 You need to start with the final version of the schema of your db, since 
 changes are difficult. Of course this is a general RoR - DB2 problem.
 Except for this problem the application works fine.

 Davide
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




-- 
http://blog.springenwerk.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant and IBM DB2

2009-01-13 Thread Johannes Fahrenkrug
Hi Anton,


 It may be that the DB2 tables don't have a field id.  So how are you
 going to have ROR access them?  You have a 'shim' database that works
 with id and maps that to the index of the DB2 table.

Ok, I see. Yes, the missing id column problem will have to be solved.
I think Dr. Nic has written a plugin to support multi-column primary
keys. That might be what I'll need.

- Johannes



 --
 Hackers:
   Self-righteous crackers
  -- CSO Magazine's The Devil's Infosec Dictionary
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant




-- 
http://blog.springenwerk.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant