• enumerate methods

    From Ragnarok@VERT/DOCKSUD to DOVE-Net.Sync_JavaScript on Sat Feb 9 03:15:00 2008
    hi all!ããi try to enumerate methos and properties from one object:ã------------ãfunction writeln(str)ã{ ã write(str + "\n");ã}ã ãfunction document_methods(n,obj)ã{ã for(method in obj._method_list) {ãã writeln (n + ":method:" +obj._method_list[method].name);ã writeln (n + ":method:" +obj._method_list[method].desc);ã writeln (n + ":method:" +obj._method_list[method].args);ã }ã}ããfunction document_properties(n,obj)ã{ã for(prop in obj) {ã writeln (n +":prop:" + prop);ã }ã}ããfunction document_object(n,obj)ã{ã document_methods(n,obj);ã document_properties(n,obj);ã}ããdocument_object("System",system);ãdocument_object("Sqlite",new Sqlite("/tmp/base"));ã--------------ããragnarok@ntbkragnarok:/sbbs/exec$ ./jsexec -n jsfer.js ãSystem:prop:host_nameãSystem:prop:socket_libãSystem:prop:uptimeãSystem:prop:statusãSystem:prop:errorsãSystem:prop:actionãSystem:prop:useronãSystem:prop:connectionãSystem:prop:miscãSystem:prop:auxãSystem:prop:extauxãSqlite:prop:nameãSqlite:prop:stmtãSqlite:prop:debugãSqlite:prop:errormsgã-------------------------------ãis this code wrong or does not enumerate the methods?ãã-- ãDock Sud BBSãhttp://bbs.docksud.com.arãtelnet://bbs.docksud.com.arãã---ã þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.arã
  • From Deuce@VERT/SYNCNIX to Ragnarok on Fri Feb 8 23:28:00 2008
    Re: enumerate methodsã By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15 amãã > is this code wrong or does not enumerate the methods?ããI've never heard of _method_listããIn general though Spidermonkey extensions start and end with an _ããã
    --- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)
  • From Digital Man@VERT to Ragnarok on Sat Feb 9 00:27:34 2008
    Re: enumerate methodsã By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15 amãã > hi all!ã >ã > i try to enumerate methos and properties from one object:ããYou can't enumerate methods directly. It appears you're looking at myãjsdocs.js, which enumerates a special array (_method_list) that can be createdãby compiling Synchronet with BUILD_JSDOCS defined. This is not a SpiderMonkeyãfeature, but something specific to Synchronet and will only work with objectsãusing special Synchronet functions (e.g. js_SyncResolve).ããã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #182:ãA rainbow can only be seen in the morning or late afternoon.ãNorco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Ragnarok@VERT/DOCKSUD to Deuce on Sat Feb 9 11:43:00 2008
    Deuce escribió:ãã> Re: enumerate methodsã> By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15 amã> ã> > is this code wrong or does not enumerate the methods?ã> ã> I've never heard of _method_listã> ã> In general though Spidermonkey extensions start and end with an _ã> ã> ã> ---ã> Synchronet - Jump on the Web 0.2 bandwagon!ã> ã> ---ã> ? Synchronet ? My Brand-New BBS (All the cool SysOps run STOCK!)ããi read it on the jsdocs.js stock fileãã-- ãDock Sud BBSãhttp://bbs.docksud.com.arãtelnet://bbs.docksud.com.arãã---ã þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.arã
  • From Ragnarok@VERT/DOCKSUD to Digital Man on Sat Feb 9 11:54:00 2008
    Digital Man escribió:ãã> Re: enumerate methodsã> By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15 amã> ã> > hi all!ã> >ã> > i try to enumerate methos and properties from one object:ã> ã> You can't enumerate methods directly. It appears you're looking at myã> jsdocs.js, which enumerates a special array (_method_list) that can beã> created by compiling Synchronet with BUILD_JSDOCS defined. This is not aã> SpiderMonkey feature, but something specific to Synchronet and will onlyã> work with objects using special Synchronet functions (e.g.ã> js_SyncResolve).ã> ã> ãyes, im read that file as example.ãmy objetive was add my Sqlite class to just appear in the jsobjs.html too =(ãcan be possible if i add the functions that you mean?ãim follow research reading the another objects of sync.ããtanks!ãã-- ãDock Sud BBSãhttp://bbs.docksud.com.arãtelnet://bbs.docksud.com.arãã---ã þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.arã
  • From Angus McLeod@VERT/ANJO to Ragnarok on Sat Feb 9 01:48:00 2008
    Re: enumerate methodsã By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15:00ãã > function writeln(str)ã > {ã > write(str + "\n");ã > }ããWhy do people redefine writeln() ??? It is already defined, not so?ãã---ãPlaying: "Baby Get Lost" by "Elysian Fields"ã from the "Dreams That Breathe Your Name" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Angus McLeod@VERT/ANJO to Digital Man on Sat Feb 9 15:03:00 2008
    Re: enumerate methodsã By: Digital Man to Ragnarok on Sat Feb 09 2008 00:27:00ãã > Snapple "Real Fact" #182:ã > A rainbow can only be seen in the morning or late afternoon.ã > Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inches rain/24hrsããHey, you got your WX machine fixed! Cool! (Only just noticed.)ãã---ãPlaying: "Live For The Touch" by "Elysian Fields"ã from the "Dreams That Breathe Your Name" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Deuce@VERT/SYNCNIX to Angus McLeod on Sat Feb 9 11:53:00 2008
    Re: enumerate methodsã By: Angus McLeod to Ragnarok on Sat Feb 09 2008 01:48 amãã > > function writeln(str)ã > > {ã > write(str + "\n");ã > > }ã >ã > Why do people redefine writeln() ??? It is already defined, not so?ããIt's a recent addition to the console object... possible the same can be saidãfor jsexec or something. Not sure.ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Digital Man@VERT to Angus McLeod on Sat Feb 9 13:40:51 2008
    Re: enumerate methodsã By: Angus McLeod to Digital Man on Sat Feb 09 2008 03:03 pmãã > Re: enumerate methodsã > By: Digital Man to Ragnarok on Sat Feb 09 2008 00:27:00ã >ã > > Snapple "Real Fact" #182:ã > > A rainbow can only be seen in the morning or late afternoon.ã > > Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inchesã > > rain/24hrsã >ã > Hey, you got your WX machine fixed! Cool! (Only just noticed.)ããYeah, but I need a new one and the one I really want will be about $600 total:ãhttp://www.davisnet.com/weather/products/weather_product.asp?pnum=06152ãã... which I can't really justify right now, so perhaps I'll just get a smallãupgrade, like this one:ãhttp://www.weathershack.com/honeywell/te923w.htmlããã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #126:ãA pigeon's feathers are heavier than its bones. ãNorco, CA WX: 74.3øF, 32% humidity, 5 mph NE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Ragnarok@VERT/DOCKSUD to Angus McLeod on Sat Feb 9 19:29:00 2008
    Angus McLeod escribió:ãã> Re: enumerate methodsã> By: Ragnarok to DOVE-Net.Sync_JavaScript on Sat Feb 09 2008 03:15:00ã> ã> > function writeln(str)ã> > {ã> > write(str + "\n");ã> > }ã> ã> Why do people redefine writeln() ??? It is already defined, not so?ã> ã> ---ã> Playing: "Baby Get Lost" by "Elysian Fields"ã> from the "Dreams That Breathe Your Name" album.ã> ? Synchronet ? Making sure Jason works OK at The ANJO BBSãjajaj! yes! =) i need to update te scripts.ãã-- ãDock Sud BBSãhttp://bbs.docksud.com.arãtelnet://bbs.docksud.com.arãã---ã þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.arã
  • From Angus McLeod@VERT/ANJO to Deuce on Sat Feb 9 20:12:00 2008
    Re: enumerate methodsã By: Deuce to Angus McLeod on Sat Feb 09 2008 11:53:00ãã > > > function writeln(str)ã > > > {ã > > write(str + "\n");ã > > > }ã > >ã > > Why do people redefine writeln() ??? It is already defined, not so?ã > ã > It's a recent addition to the console object... possible the same can be saiã > for jsexec or something. Not sure.ããAh! I see. Legacy code.ãã ENVIRONMENT DIVISION.ã INPUT-OUTPUT SECTION.ã FILE-CONTROL.ã SELECT InputFile ASSIGN TO "USER.DAT"ã ORGANIZATION IS LINE SEQUENTIAL.ã SELECT WorkFile ASSIGN TO "WORK.TMP".ãã DATA DIVISION.ã FILE SECTION.ã FD StudentFile.ã 01 StudentDetailsã 02 UserId PIC 9(7).ã 02 UserName.ã 03 Surname PIC X(8).ã 03 Initials PIC XX.ã 02 DateOfBirth.ã 03 YOBirth PIC 9(4).ã 03 MOBirth PIC 9(2).ã 03 DOBirth PIC 9(2).ã 02 UsageCode PIC X(4).ã 02 Gender PIC X.ãã . . . ã . .
    .ãã:-)ãã---ãPlaying: "The child is gone" by "Fiona Apple" from the "Tidal" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Angus McLeod@VERT/ANJO to Digital Man on Sat Feb 9 20:19:00 2008
    Re: enumerate methodsã By: Digital Man to Angus McLeod on Sat Feb 09 2008 13:40:00ãã > > > Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inchesã > > > rain/24hrsã > >ã > > Hey, you got your WX machine fixed! Cool! (Only just noticed.)ã > ã > Yeah, but I need a new one and the one I really want will be about $600 totaã > http://www.davisnet.com/weather/products/weather_product.asp?pnum=06152ããHey, that's pretty sweet!ãã > ... which I can't really justify right now, so perhaps I'll just get a smallã > upgrade, like this one:ã > http://www.weathershack.com/honeywell/te923w.htmlããThat's not bad either! ããI'd like to set up a system at our club that transmitted the data quite aãdistance, so I'm thinking some sort of cellular transmission. Trouble is, ãwe have a power budget. There is only 12v DC power available on-site, ãmaintained by a solar panel. Neither the battery nor the panel are in the ãbest shape, so running anything complex and power-hungry is really not on.ãã---ãPlaying: "Carrion" by "Fiona Apple" from the "Tidal" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã
  • From Digital Man@VERT to Angus McLeod on Sat Feb 9 17:20:57 2008
    Re: enumerate methodsã By: Angus McLeod to Digital Man on Sat Feb 09 2008 08:19 pmãã > Re: enumerate methodsã > By: Digital Man to Angus McLeod on Sat Feb 09 2008 13:40:00ã >ã > > > > Norco, CA WX: 57.0øF, 38% humidity, 2 mph NE wind, 0.00 inchesã > > > > rain/24hrsã > > >ã > > > Hey, you got your WX machine fixed! Cool! (Only just noticed.)ã > >ã > > Yeah, but I need a new one and the one I really want will be about $600ã > > totaã > > http://www.davisnet.com/weather/products/weather_product.asp?pnum=06152ã >ã > Hey, that's pretty sweet!ã >ã > > ... which I can't really justify right now, so perhaps I'll just get aã > > small upgrade, like this one:ã > > http://www.weathershack.com/honeywell/te923w.htmlã >ã > That's not bad either!ã >ã > I'd like to set up a system at our club that transmitted the data quite aã > distance, so I'm thinking some sort of cellular transmission. Trouble is,ã > we have a power budget. There is only 12v DC power available on-site,ã > maintained by a solar panel. Neither the battery nor the panel are in theã > best shape, so running anything complex and power-hungry is really not on.ããSome of the better systems can store cumulative data and then transmit itãperiodically using modem or TCP/IP. Do you have a land line anywhere near theãclub house? (if it's the same club house I visited with you, I'm guessingã"not").ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #186:ãA female kangaroo is called a Flyer. ãNorco, CA WX: 68.9øF, 35% humidity, 0 mph NE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Angus McLeod@VERT/ANJO to Digital Man on Sat Feb 9 22:58:00 2008
    Re: enumerate methodsã By: Digital Man to Angus McLeod on Sat Feb 09 2008 17:20:00ãã > Some of the better systems can store cumulative data and then transmit itã > periodically using modem or TCP/IP. Do you have a land line anywhere near thã > club house? (if it's the same club house I visited with you, I'm guessingã > "not").ããNo, we don't. I was thinking of the NEW clubhouse, soon (hopefully) to be ãunder construction. No phone there either.ããAmateur packet radio is a possibility, but you're talking some sort of ãcomputer, and a transmitter in the 144 MHz band, most likely. Power ãbudget rears it's head again. Also, the sub-harmonic of 144 MHz falls ãdirectly in the R/C Air band at 72 MHz. I'd hate the system to initiate a ãtransfer and cause some guy to crash his new plane!ããOh well...ãã---ãPlaying: "Itchy Glowbo" by "Cocteau Twins" from the "Blue bell knoll" album.ã þ Synchronet þ Making sure Jason works OK at The ANJO BBSã