rejetto forum

Any need for RSS generator?

Rarst · 32 · 22760

0 Members and 1 Guest are viewing this topic.

Offline Foggy

  • Tireless poster
  • ****
    • Posts: 806
    • View Profile
But now it seems I can't use sort and limit at same time. They work separately but not when applied together.
?sort=t&limit=X

Quote
Upd: and in file list limit is always ignored

I didnt know that.


Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
Quote
?sort=t&limit=X
Works but not the way needed... It first limits and then sorts.

btw I have some troubles with limit... It is supposed to limit to first nn files from name-sorted list? Well it doesn't in some folders. I think it has trouble with files that start with bracket ( or [. Seems to work fine in folder where there are no such files. When there are - limit gives mix of files started with bracket and other files, while it should only give first ones - with bracket and never get to bracketless which are further down the list.

Quote
Upd: and in file list limit is always ignored
I didnt know that.
Sorry, my mistake again. I think that was because I tried ?limit=x?recursive insted of joining with &.

PS second time I am missing something in wiki... that color scheme is weird example of sufficient contrast, nice colors but barely readable (at least for my eyes) result :)

PPS if I bug too much we can close filelist question for now, it seems public/private, mime type and RFC822 timestamps won't be solved by small tweaks anyway

Can some one confirm is this correct limit behaviour or I should post it to bug reports?

http://localhost/temp2/~files.lst
Code: [Select]
[a.txt
[b.txt
[c.txt
[d.txt
[e.txt
[f.txt
[g.txt
[h.txt
[i.txt
[j.txt
a.txt
b.txt
c.txt
d.txt
e.txt
f.txt
g.txt
h.txt
i.txt
j.txt

http://localhost/temp2/~files.lst?limit=15
Code: [Select]
[a.txt
[b.txt
[c.txt
[d.txt
[e.txt
a.txt
b.txt
c.txt
d.txt
e.txt
f.txt
g.txt
h.txt
i.txt
j.txt
« Last Edit: April 30, 2008, 11:02:13 AM by Rarst »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
i'm a bit late, but you can post your program if you still want to (yes, i read the rest of the topic).
It's up to users to trust you about running an executable. ;)

Quote
?sort=t&limit=X
Works but not the way needed... It first limits and then sorts.

the opposite method is in the to-do-list (other discussion)


Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
i'm a bit late, but you can post your program if you still want to (yes, i read the rest of the topic).

Thousands of potential happy users for my program are even more late as you see... It seems interest for RSS in userbase hovers around 1 person per year. :)

If you are ever converted to RSS fondness and decide to implement it properly I would be happy to cook up list of stuff for to-do. :)
« Last Edit: June 28, 2008, 07:52:16 AM by Rarst »


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
well, what i want to add to HFS is to be able to serve a folder by using several templates.
because the template system should be enough for RSS generating,
you would just have a template named "rss".


Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
well, what i want to add to HFS is to be able to serve a folder by using several templates.
because the template system should be enough for RSS generating,
you would just have a template named "rss".

Yep, template system itself is fitting but there are number of features (abovementioned: mime type, RFC822 timestamps, access to private files, etc) lacking for proper RSS implementation at moment.


Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
Well, since I got PM from a willing test subject person... :)

http://strel28-24.skif.com.ua/folder2rss.zip

.au3files - are source code
.exe - compiled program
.ini - setup stuff (important)

1. Unpack somewhere
2. Read ini-file
3. Make sure you understand what you read (important)
4. Setup ini file the way you need
5. Run exe (make it autorun if you want)
6. Put xml that appeared into HFS

6a. Validate link to your RSS with http://feedvalidator.org/
6b. If something doesn't work repeat 3 or ask me

PS 7 Some feedback... I get nervous when I see download followed by long silence :)
PPS it's not exactly noob friendly at moment... For people who hadn't ever seen contents of ini file http://en.wikipedia.org/wiki/INI_file might be good place to start.
« Last Edit: June 29, 2008, 08:59:23 AM by Rarst »


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
Merci Rarst !
Sorry for PS 7 may be not today ... but sure will input feeback  ;)
TCube
Make it idiot-proof and I will make a better idiot



Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
Forgot one thing, this must be set in HFS:

Menu -> Other options -> MIME types
*.xml application/rss+xml


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
Salut !
Just getting the grasp for various browsers to handle RSS - to be be sure RSS from HFS works fine for users.
A question "top of my head" : RSS can be hot linked/embed into video streaming object from an html page ... can this be avoided ?
 :P
merci
TCube
« Last Edit: July 02, 2008, 09:53:16 AM by TCube »
Make it idiot-proof and I will make a better idiot


Offline rejetto

  • Administrator
  • Tireless poster
  • *****
    • Posts: 13510
    • View Profile
Yep, template system itself is fitting but there are number of features (abovementioned: mime type, RFC822 timestamps, access to private files, etc) lacking for proper RSS implementation at moment.

i will work on this.
setting the mime type could be a macro.
timestamps formatting should be already be possible through macros, i'll see.
what you mean by access to private files?


Offline TCube

  • Tireless poster
  • ****
    • Posts: 440
    • View Profile
what you mean by access to private files?

yes, ? ,  seems no problem - I've tried moving the RSS folder 'round VFS - i.e :

- 1 private files with "user access" within a bunch of "open" files into RSS : this peculiar file is not seen.
- Login required when the RSS is within a private folder

Looking for something more complicated Rarst ?  ;D


Make it idiot-proof and I will make a better idiot


Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
Quote
RSS can be hot linked/embed into video streaming object from an html page ... can this be avoided ?
Lost me, can you please rephrase? Also is it on topic of my program or RSS in general?

Quote
setting the mime type could be a macro.
Anything goes, it's just for better compatibility. Most RSS readers are able to digest RSS feed even without proper mime. Still it's better to follow rules. :)

Quote
timestamps formatting should be already be possible through macros, i'll see.
Main problem is stupid RFC822 uses words for day of week (Mon, Tue, Wed...). If there is a way to do it with macro it's totally beyond my abilities (HFS macro syntax puzzles me to the point of brain damage :( ).

Quote
what you mean by access to private files?
Bit hard to explain, I'll make example with some screenshots later today.

Quote
Looking for something more complicated Rarst ?
Like what? :)


Offline Rarst

  • Occasional poster
  • *
    • Posts: 27
    • View Profile
Ok, on public\private. See screenshot for example FS.



Without login to private folder:

http://localhost/~files.lst?recursive
Code: [Select]
http://localhost/public/public.txt

http://localhost/public/private/~files.lst?recursive
Code: [Select]
Unauthorized
This is a protected resource.
Your username/password doesn't match.

With login to private folder:

http://localhost/~files.lst?recursive
Code: [Select]
http://localhost/public/private/private.txt
http://localhost/public/public.txt

http://localhost/public/private/~files.lst?recursive
Code: [Select]
http://localhost/public/private/private.txt

So if folder is private it is not possible to access file list for it without login. Assuming RSS stream gets same behaviour - it would be necessary to include login info into link to get RSS for private folder. And I am not even sure that RSS readers can digest it properly. And it sucks from usability viewpoint. And hidden files are ignored btw.

So in theory RSS stream going to need something like "include hidden files in RSS" and "include restricted files in RSS" options.