• Writing custom script

    From Sam Alexander@VERT/SIDEBAND to All on Fri Apr 7 00:50:00 2006
    Hello all,

    Okay, I'm no JS programmer, but I'd love to learn. One project I think
    might be fun to write plus useful is something that'll take an RSS Feed and plug the downloaded media files into a file area then use details from the
    XML file to create details. Problem is I have no idea where to start!

    For those seasoned in JS and how it works with Sync, would this be a decent first project to attempt? I used to program in C++ many years ago in
    MS-DOS, but it's been literally 7-10 years since I wrote a piece of code. Currently I mainly program for web, so that's PHP and ColdFusion, but I
    wnat something that'll be portable and something I can share with others easily, which is why JS might be best.

    Thanks for any advice or maybe pointers to do some Hello World apps with JS and Sync.

    Sam


    ---
    Sam Alexander - sam.alexander(at)sidebandbbs(dot)com
    icq: 5386757 [] AIM/Y!: samalex1701 [] Skype: samalex01
    "Data is not information, Information is not knowledge, Knowledge is not understanding, Understanding is not wisdom." -- Cliff Stoll

    ---
    þ Synchronet þ SideBand BBS -[ sidebandbbs.com ]- Lorena, Texas - Your source for Amateur Radio
  • From Digital Man@VERT to Sam Alexander on Fri Apr 7 03:39:24 2006
    Re: Writing custom script
    By: Sam Alexander to All on Thu Apr 06 2006 05:50 pm

    Hello all,

    Okay, I'm no JS programmer, but I'd love to learn. One project I think might be fun to write plus useful is something that'll take an RSS Feed and plug the downloaded media files into a file area then use details from the XML file to create details. Problem is I have no idea where to start!

    RSS-fed media files?!? The RSS feeds I'm aware of feed *text* (snippets of new articles with the links to the full article).

    For those seasoned in JS and how it works with Sync, would this be a decent first project to attempt? I used to program in C++ many years ago in MS-DOS, but it's been literally 7-10 years since I wrote a piece of code. Currently I mainly program for web, so that's PHP and ColdFusion, but I
    wnat something that'll be portable and something I can share with others easily, which is why JS might be best.

    Thanks for any advice or maybe pointers to do some Hello World apps with JS and Sync.

    http://synchro.net/docs/js.html

    There are ton of examples in exec/*.js.

    print("Hello, world\r\n");

    digital man

    Snapple "Real Fact" #135:
    A single coffee tree produces only about a pound of coffee beans per year. Norco, CA WX: 54.6øF, 65% humidity, 0 mph SE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Sam Alexander@VERT/SIDEBAND to Digital Man on Fri Apr 7 16:48:00 2006
    Re: Writing custom script
    By: Digital Man to Sam Alexander on Thu Apr 06 2006 09:39 pm

    Re: Writing custom script
    By: Sam Alexander to All on Thu Apr 06 2006 05:50 pm

    Hello all,

    Okay, I'm no JS programmer, but I'd love to learn. One project I think might be fun to write plus useful is something that'll take an RSS Feed a plug the downloaded media files into a file area then use details from th XML file to create details. Problem is I have no idea where to start!

    RSS-fed media files?!? The RSS feeds I'm aware of feed *text* (snippets of n articles with the links to the full article).

    For those seasoned in JS and how it works with Sync, would this be a dece first project to attempt? I used to program in C++ many years ago in MS-DOS, but it's been literally 7-10 years since I wrote a piece of code. Currently I mainly program for web, so that's PHP and ColdFusion, but I wnat something that'll be portable and something I can share with others easily, which is why JS might be best.

    Thanks for any advice or maybe pointers to do some Hello World apps with and Sync.

    http://synchro.net/docs/js.html

    There are ton of examples in exec/*.js.

    print("Hello, world\r\n");

    digital man


    Hi DM,

    Sorry, I should've said Podcasts, which are basically RSS feeds with files attached. I was thinking something that would download and parse the XML
    file of the feed, stick the data into the file info then place the file (generally MP3 ) into the file area. Some of the podcasts I listen to
    don't keep but a few of the files available on their sites, so 'd like to
    keep an archive on the BBS.

    Thanks for the reply and the links -- I'll start checking them out!

    Sam


    ---
    Sam Alexander - sam.alexander(at)sidebandbbs(dot)com
    icq: 5386757 [] AIM/Y!: samalex1701 [] Skype: samalex01
    "Data is not information, Information is not knowledge, Knowledge is not understanding, Understanding is not wisdom." -- Cliff Stoll

    ---
    þ Synchronet þ SideBand BBS -[ sidebandbbs.com ]- Lorena, Texas - Your source for Amateur Radio
  • From Tracker1@VERT/TRN to Sam Alexander on Thu Apr 13 08:50:00 2006
    Sam Alexander wrote:
    Okay, I'm no JS programmer, but I'd love to learn. One project I think might be fun to write plus useful is something that'll take an RSS Feed and plug the downloaded media files into a file area then use details from the XML file to create details. Problem is I have no idea where to start!

    There's a few JS based implimentations of the W3C-DOM for XML, however,
    they load pretty slowly, and take up a bit of memory for the object model.

    see <http://xmljs.sourceforge.net/>

    For those seasoned in JS and how it works with Sync, would this be a decent first project to attempt? I used to program in C++ many years ago in MS-DOS, but it's been literally 7-10 years since I wrote a piece of code. Currently I mainly program for web, so that's PHP and ColdFusion, but I
    wnat something that'll be portable and something I can share with others easily, which is why JS might be best.

    Thanks for any advice or maybe pointers to do some Hello World apps with JS and Sync.

    If you are going to play with message areas, nntp*.js, and news*.js are
    where I would start... There are a few other examples that come with JS..

    Honestly, read "The JavaScript Bible" 5th edition, it's a decent read, and only really need about the first half, the second is very browser specific.. the first half can apply pretty aptly to the bbs... there are a few links on the website that may help as well, in addition to looking at the samples...

    --
    Michael J. Ryan - tracker1(at)theroughnecks(dot)net - www.theroughnecks.net icq: 4935386 - AIM/AOL: azTracker1 - Y!: azTracker1 - MSN/Win: (email)

    ---
    þ Synchronet þ theroughnecks.net - you know you want it
  • From Sam Alexander@VERT/SIDEBAND to Tracker1 on Thu Apr 13 17:55:00 2006
    Re: Re: Writing custom script
    By: Tracker1 to Sam Alexander on Thu Apr 13 2006 02:50 am

    Sam Alexander wrote:
    Okay, I'm no JS programmer, but I'd love to learn. One project I think might be fun to write plus useful is something that'll take an RSS Feed an plug the downloaded media files into a file area then use details from the XML file to create details. Problem is I have no idea where to start!

    There's a few JS based implimentations of the W3C-DOM for XML, however,
    they load pretty slowly, and take up a bit of memory for the object model.

    see <http://xmljs.sourceforge.net/>

    For those seasoned in JS and how it works with Sync, would this be a decen first project to attempt? I used to program in C++ many years ago in MS-DOS, but it's been literally 7-10 years since I wrote a piece of code. Currently I mainly program for web, so that's PHP and ColdFusion, but I wnat something that'll be portable and something I can share with others easily, which is why JS might be best.

    Thanks for any advice or maybe pointers to do some Hello World apps with J and Sync.

    If you are going to play with message areas, nntp*.js, and news*.js are where I would start... There are a few other examples that come with JS..

    Honestly, read "The JavaScript Bible" 5th edition, it's a decent read, and only really need about the first half, the second is very browser specific.. the first half can apply pretty aptly to the bbs... there are a few links on the website that may help as well, in addition to looking at the samples...


    Hi Michael,

    Thanks for the great info! I'm not sure when I'll have time to jump into this, but most definitely I'd like to get something rolling soon. And
    if/when something is good enough for production I'll throw on my site for anyone to use :)

    Sam


    ---
    Sam Alexander - sam.alexander(at)sidebandbbs(dot)com
    icq: 5386757 [] AIM/Y!: samalex1701 [] Skype: samalex01
    "Data is not information, Information is not knowledge, Knowledge is not understanding, Understanding is not wisdom." -- Cliff Stoll

    ---
    þ Synchronet þ SideBand BBS -[ sidebandbbs.com ]- Lorena, Texas - Your source for Amateur Radio