Search found 41 matches

by FishNiX
Sun May 15, 2011 1:18 pm
Forum: Plugins
Topic: Validate config values at save?
Replies: 5
Views: 1742

Validate config values at save?

What is the recommended way to validate config values for a plugin? (I depend on an external service, so I want to validate those values). I'd like to do it when "Save" is clicked, I suppose I could build a "Validate" button into the plugin. Is there an event hook or some other way to do this? Thanks!
by FishNiX
Fri Mar 25, 2011 1:58 pm
Forum: Plugins
Topic: Best way to keep a dynamic (large) list of "stuff"
Replies: 3
Views: 1624

Re: Best way to keep a dynamic (large) list of "stuff"

Yeah -- I'm thinking at some point in the future I will want to query the list one way or another. I'll shoot for the DB. Thanks!
by FishNiX
Thu Mar 24, 2011 8:35 pm
Forum: Plugins
Topic: Best way to keep a dynamic (large) list of "stuff"
Replies: 3
Views: 1624

Re: Best way to keep a dynamic (large) list of "stuff"

BTW -- I'm planning to implement a couple of these, but what should be canonical?
by FishNiX
Thu Mar 24, 2011 8:18 pm
Forum: Plugins
Topic: Best way to keep a dynamic (large) list of "stuff"
Replies: 3
Views: 1624

Best way to keep a dynamic (large) list of "stuff"

If I had the need to keep a (potentially) large list (10k - 100k) of relatively short (300 characters-ish) strings what's the best way to do that in a plugin? Is there a "standard"/"best practices" way? Text file -- slow and disk intensive DB -- but where/how? BerkleyDB -- more complexity Memcache -...
by FishNiX
Sat Feb 26, 2011 3:54 pm
Forum: Development
Topic: More to generating thumb name than this?
Replies: 3
Views: 2894

Re: More to generating thumb name than this?

Garvin confirmed that this should be all there is to generating a thumb name reliably. Thanks to both of you.
by FishNiX
Sat Feb 26, 2011 4:04 am
Forum: Development
Topic: More to generating thumb name than this?
Replies: 3
Views: 2894

Re: More to generating thumb name than this?

I guess I should be more clear -- basename is the full name of the image assigned in the media upload without the extension passed in through eventData -- my plugin is working off of the backend_image_add event hook and I want to get the thumb name reliably. thx!
by FishNiX
Sat Feb 26, 2011 2:28 am
Forum: Development
Topic: More to generating thumb name than this?
Replies: 3
Views: 2894

More to generating thumb name than this?

Will the thumbname always be $basename . "." . $serendipity['thumbSuffix'] . "." . $extension ie. If I have a foobar-someimagefile.jpg -- will the thumb always be foobar-someimagefile.$serendipity['thumbSuffix'].jpg or will there be truncation, etc? I'm trying to determine the thumbnail name in a pl...
by FishNiX
Sat Jul 31, 2010 3:47 pm
Forum: General discussions
Topic: cdn? amazon cloudfront?
Replies: 0
Views: 1818

cdn? amazon cloudfront?

Is anyone using a cdn with s9y? I'd love to push my images to cloudfront transparently (upload to both locations -- s3 and locally), source them from cloudfront dynamically (on/off switch in the plugin).
by FishNiX
Thu Jul 22, 2010 3:40 am
Forum: Plugins
Topic: cdn-tools for s9y?
Replies: 1
Views: 1042

Re: cdn-tools for s9y?

bumping since rackspace clound just went opensource and is now the new hottness... :)
by FishNiX
Mon Mar 15, 2010 8:28 pm
Forum: Plugins
Topic: cdn-tools for s9y?
Replies: 1
Views: 1042

cdn-tools for s9y?

Greetings - I've been using s9y for a long time to host a fairly high traffic blog. I noticed that someone just released a plugin for wordpress called cdn-tools which allows one to host static content and js on a cdn (google or rackspace cloud files atm). Is anyone working on a similar plugin for s9...
by FishNiX
Thu Nov 12, 2009 1:26 am
Forum: Plugins
Topic: Can anyone create a memcache plugin?
Replies: 7
Views: 2454

Re: Can anyone create a memcache plugin?

I would say the answer to your problem is not necessarily memcache (although it would help), it is a proper caching architecture for s9y. I would much rather see serendipity implement cache headers and a plugin which can tune them instead of just setting pragma nocache all over the place.