Re: [ilugd] help needed!!!!!(about freedel'05)

2007-06-23 Thread Kenneth Gonsalves

On 23-Jun-07, at 1:24 AM, devesh wrote:

 Could anybody tell me about the person who gave a presentation  
 about NEWS
 Portal or NEWS database (i dont know exactly)

could it be newsrack? Subramanaya shastri? If so, gora is the person  
to contact


-- 
regards

Kenneth Gonsalves
Associate, NRC-FOSS
[EMAIL PROTECTED]
http://nrcfosshelpline.in/web/




___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] [OT] Show support for ODF

2007-06-23 Thread Kenneth Gonsalves

On 23-Jun-07, at 7:00 AM, Sudev Barar wrote:

 Picked this off debian list and signed. Take your pick.
 http://www.noooxml.org/petition

could you please post a few lines of explanation when posting a link  
- I am on slow gprs and cannot afford to click every link.


-- 
regards

Kenneth Gonsalves
Associate, NRC-FOSS
[EMAIL PROTECTED]
http://nrcfosshelpline.in/web/




___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Listing pages in directory as links

2007-06-23 Thread Kenneth Gonsalves

On 23-Jun-07, at 10:39 AM, Sudev Barar wrote:

 I am writing some intranet pages under ~/public_html directory. As I
 keep adding more and more pages under this directory I want to create
 a index.html page here that will constantly update itself whenever a
 new page is added and provide a link to that page.

something like this, assuming you list of links is in a file called  
filelist. Run as a cron job or manually everytime you add a file

#!/usr/bin/python

import os

f = open('/var/www/html/filelist','a')

for fle in os.listdir('/var/www/html/'):
 if os.path.splitext(fle)[1] == '.html':
 lne = a href = ./%s%s/a %(fle,fle)
 if lne not in f.readlines():
 f.write(lne)
f.close()



-- 
regards

Kenneth Gonsalves
Associate, NRC-FOSS
[EMAIL PROTECTED]
http://nrcfosshelpline.in/web/




___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Listing pages in directory as links

2007-06-23 Thread Kenneth Gonsalves

On 23-Jun-07, at 6:30 PM, Rahul Upakare wrote:

 I don't think this code will work. In 'a' (append mode) we cannot
 write (append) and read at the same time

true
 .

 Also, any specific reason you choose to append to an existing file?
 What advantage it has over writing the file (from scratch) again?

none - in fact i would prefer doing a walk through all the dirs under  
document root and refreshing all the index.html files


-- 
regards

Kenneth Gonsalves
Associate, NRC-FOSS
[EMAIL PROTECTED]
http://nrcfosshelpline.in/web/




___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Listing pages in directory as links

2007-06-23 Thread Rahul Upakare
On 6/23/07, Kenneth Gonsalves [EMAIL PROTECTED] wrote:

 On 23-Jun-07, at 10:39 AM, Sudev Barar wrote:
  I am writing some intranet pages under ~/public_html directory. As I
  keep adding more and more pages under this directory I want to create
  a index.html page here that will constantly update itself whenever a
  new page is added and provide a link to that page.

 something like this, assuming you list of links is in a file called
 filelist. Run as a cron job or manually everytime you add a file

 #!/usr/bin/python

 import os

 f = open('/var/www/html/filelist','a')

 for fle in os.listdir('/var/www/html/'):
  if os.path.splitext(fle)[1] == '.html':
  lne = a href = ./%s%s/a %(fle,fle)
  if lne not in f.readlines():
  f.write(lne)
 f.close()

I don't think this code will work. In 'a' (append mode) we cannot
write (append) and read at the same time.

Also, any specific reason you choose to append to an existing file?
What advantage it has over writing the file (from scratch) again?

Regards and best wishes,
--
Rahul Upakare

___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] Listing pages in directory as links

2007-06-23 Thread Sandip Bhattacharya
Sudev Barar wrote:
 I am writing some intranet pages under ~/public_html directory. As I
 keep adding more and more pages under this directory I want to create
 a index.html page here that will constantly update itself whenever a
 new page is added and provide a link to that page.
 
 Suggestions? I continue to google for this.
 

If Apache auto index is not sufficient, then something like this, with
a modified template and with the use of file descriptions feature?
http://autoindex.sourceforge.net/

It is a bit too heavy weight. I normally use a small perl script running
under make to do such things.

- Sandip


___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/


Re: [ilugd] help needed!!!!!(about freedel'05)

2007-06-23 Thread devesh
hi,

well thanks you people Karunakar and Kenneth Gonsalves.
yes, exactly it is newsrack ( http://www.newsrack.in ) and  Subramanaya
shastri,the concerned person.

regards,
devesh...
http://www.jmilug.org
___
ilugd mailinglist -- ilugd@lists.linux-delhi.org
http://frodo.hserus.net/mailman/listinfo/ilugd
Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi 
http://www.mail-archive.com/ilugd@lists.linux-delhi.org/