Re: ICS functions Library
On Dec 2, 2009, at 3:23 AM, Andre Garzia wrote: Folks, I lost that library when I lost my laptop! :D I will get Sivakatirswami copy and post it online. I made that library ages ago, I am a much better programmer now and probably would have coded it differently, but it works as expected. It was very minimalistic full of redundance. :D Oi Andre: Ha! Jai Ganesha... it works and works very well. I think you forget how clean it is and how you were into your LISP mode of keeping discrete functions separate. Once I understood how they worked I was able to get the job done easily. JB: you can get it here: go stack url http://www.himalayanacademy.com/runrev/stacks/vObjectPackage.rev; (Andre, suggest your get this and host it on your site?) Notes: Andre's documentation does not tell the user that the library is a substack of his main stack. Use application browser to toplevel the vObjectLib; clone it; Rename if you like (I did) then assign it to your own main stack: then you can generate things like this: # This app scans an existing calendar for events containing a specific string, being the tithi designation # for a day of the Moon phase, then uses those dates to enter another event. # This allows for repeating events on, e.g. the first day of each moon week at # 4PM when the department heads have a coordination meeting # repeat loop through each entry, Stack Script: on openstack set the loc of this stack to the screenloc start using stack KA_vObjectLib # andre's functions in the stack script start using stack libUUID # Mark's fabulous GUID lib end openstack function buildVevent pDate, pStartTime,pEndTime # uses Eric Chatonet's magical little group/object from timepicker.rev # to let users choose times put empty into gRepeatingEvent vObjectBegin gRepeatingEvent, VEvent icAddCreationDate gRepeatingEvent, (icConvertDate(the seconds)) put luiRandomUUID() into tUID icAddUID gRepeatingEvent,tUID icAddDateTimeStart gRepeatingEvent, (pDateTpStartTime) icAddTimeZoneID gRepeatingEvent, DTSTART, Pacific/Honolulu icAddSummary gRepeatingEvent, fld Summary icAddDescription gRepeatingEvent, fld Description icAddDateTimeEnd gRepeatingEvent, (pDateTpEndTime) icAddTimeZoneID gRepeatingEvent, DTEND, Pacific/Honolulu icAddSequence gRepeatingEvent, 0 icAddDateTimeStamp gRepeatingEvent, (icConvertDate(the seconds)) icAddTransparency gRepeatingEvent, OPAQUE vObjectEnd gRepeatingEvent, VEvent return gRepeatingEvent end buildVevent Button Create Repeating Events... # repeat loop through each VEVENT in existing calendar.ics file, # if VEVENT contains string Sun 1 (or whatever tithi day the user choses from the GUI) # then build a new VEVENT # there's more but you get the idea: [snip] repeat for each item tEvent in tCalendar if tEvent contains tTargetPhaseDay then # parse out the date entry put (lineOffset(DTSTART;VALUE=DATE:,tEvent)) into tLine put (char -8 to -1 of line tLine of tEvent) into pDate # build the new entry; see stack script for functions # that call Andre vObjectLib stack functions put buildVevent(pDate,tStartTime,tEndTime) after tNewEntries end if end repeat #export tNewEntries to iCal file which user then imports [snip] I suspect today Andre would use some of RunRev's new array magic... But this is so transparent... I like it, redundant or not. Sivakatirswami ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
Again, I mentioned it because it was the only vCal lib that I'd heard of. It used to be at the soapdog.com site, which doesn't exist. And it's not at andregarzia.com. So at this point it's up to Andre if he wants it out there. He wrote it a long time ago... - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 -= JB =- sund...@pacifier.com And where is the stack so others can download it? -=JB=- On Dec 1, 2009, at 10:00 PM, stephen barncard wrote: So I don't understand. is your problem solved, or the stack is not the answer to your problem ? - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 Sivakatirswami ka...@hindu.org stephen barncard wrote: Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev Actually I have it, vObjectPackage.rev and I asked Andre about his date functions, It was he who thought I should check with the list... I think it was late Rio and he did not realize his stack had what I wanted... you have to open the application browers to see that the lib is in a separate substack that is not exposed anywhere on the main stack. but vObjectLib had nearly 100 commands and functions. I need this one in particular function icConvertDate pDate convert pDate to dateitems put item 1 of pDate into tYear put item 2 of pDate into tMonth if len(tMonth) is 1 then put 0 tMonth into tMonth put item 3 of pDate into tDate if len(tDate) is 1 then put 0 tDate into tDate put item 4 of pDate into tHours if len(tHours) is 1 then put 0 tHours into tHours put item 5 of pDate into tMinutes if len(tMinutes) is 1 then put 0 tMinutes into tMinutes put item 6 of pDate into tSeconds if len(tSeconds) is 1 then put 0 tSeconds into tSeconds put tYear tMonth tDate T tHours tMinutes tSeconds into tRetVal return tRetVal end icConvertDate (plus 100's of other interesting functions) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
Okay, thanks for the reply. -=JB=- On Dec 2, 2009, at 12:09 AM, stephen barncard wrote: Again, I mentioned it because it was the only vCal lib that I'd heard of. It used to be at the soapdog.com site, which doesn't exist. And it's not at andregarzia.com. So at this point it's up to Andre if he wants it out there. He wrote it a long time ago... - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 -= JB =- sund...@pacifier.com And where is the stack so others can download it? -=JB=- On Dec 1, 2009, at 10:00 PM, stephen barncard wrote: So I don't understand. is your problem solved, or the stack is not the answer to your problem ? - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 Sivakatirswami ka...@hindu.org stephen barncard wrote: Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev Actually I have it, vObjectPackage.rev and I asked Andre about his date functions, It was he who thought I should check with the list... I think it was late Rio and he did not realize his stack had what I wanted... you have to open the application browers to see that the lib is in a separate substack that is not exposed anywhere on the main stack. but vObjectLib had nearly 100 commands and functions. I need this one in particular function icConvertDate pDate convert pDate to dateitems put item 1 of pDate into tYear put item 2 of pDate into tMonth if len(tMonth) is 1 then put 0 tMonth into tMonth put item 3 of pDate into tDate if len(tDate) is 1 then put 0 tDate into tDate put item 4 of pDate into tHours if len(tHours) is 1 then put 0 tHours into tHours put item 5 of pDate into tMinutes if len(tMinutes) is 1 then put 0 tMinutes into tMinutes put item 6 of pDate into tSeconds if len(tSeconds) is 1 then put 0 tSeconds into tSeconds put tYear tMonth tDate T tHours tMinutes tSeconds into tRetVal return tRetVal end icConvertDate (plus 100's of other interesting functions) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
Folks, I lost that library when I lost my laptop! :D I will get Sivakatirswami copy and post it online. I made that library ages ago, I am a much better programmer now and probably would have coded it differently, but it works as expected. It was very minimalistic full of redundance. :D On Wed, Dec 2, 2009 at 7:34 AM, -= JB =- sund...@pacifier.com wrote: Okay, thanks for the reply. -=JB=- On Dec 2, 2009, at 12:09 AM, stephen barncard wrote: Again, I mentioned it because it was the only vCal lib that I'd heard of. It used to be at the soapdog.com site, which doesn't exist. And it's not at andregarzia.com. So at this point it's up to Andre if he wants it out there. He wrote it a long time ago... - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 -= JB =- sund...@pacifier.com And where is the stack so others can download it? -=JB=- On Dec 1, 2009, at 10:00 PM, stephen barncard wrote: So I don't understand. is your problem solved, or the stack is not the answer to your problem ? - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 Sivakatirswami ka...@hindu.org stephen barncard wrote: Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev Actually I have it, vObjectPackage.rev and I asked Andre about his date functions, It was he who thought I should check with the list... I think it was late Rio and he did not realize his stack had what I wanted... you have to open the application browers to see that the lib is in a separate substack that is not exposed anywhere on the main stack. but vObjectLib had nearly 100 commands and functions. I need this one in particular function icConvertDate pDate convert pDate to dateitems put item 1 of pDate into tYear put item 2 of pDate into tMonth if len(tMonth) is 1 then put 0 tMonth into tMonth put item 3 of pDate into tDate if len(tDate) is 1 then put 0 tDate into tDate put item 4 of pDate into tHours if len(tHours) is 1 then put 0 tHours into tHours put item 5 of pDate into tMinutes if len(tMinutes) is 1 then put 0 tMinutes into tMinutes put item 6 of pDate into tSeconds if len(tSeconds) is 1 then put 0 tSeconds into tSeconds put tYear tMonth tDate T tHours tMinutes tSeconds into tRetVal return tRetVal end icConvertDate (plus 100's of other interesting functions) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
Thanks, Andre -=JB=- On Dec 2, 2009, at 3:23 AM, Andre Garzia wrote: Folks, I lost that library when I lost my laptop! :D I will get Sivakatirswami copy and post it online. I made that library ages ago, I am a much better programmer now and probably would have coded it differently, but it works as expected. It was very minimalistic full of redundance. :D On Wed, Dec 2, 2009 at 7:34 AM, -= JB =- sund...@pacifier.com wrote: Okay, thanks for the reply. -=JB=- On Dec 2, 2009, at 12:09 AM, stephen barncard wrote: Again, I mentioned it because it was the only vCal lib that I'd heard of. It used to be at the soapdog.com site, which doesn't exist. And it's not at andregarzia.com. So at this point it's up to Andre if he wants it out there. He wrote it a long time ago... - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 -= JB =- sund...@pacifier.com And where is the stack so others can download it? -=JB=- On Dec 1, 2009, at 10:00 PM, stephen barncard wrote: So I don't understand. is your problem solved, or the stack is not the answer to your problem ? - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 Sivakatirswami ka...@hindu.org stephen barncard wrote: Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev Actually I have it, vObjectPackage.rev and I asked Andre about his date functions, It was he who thought I should check with the list... I think it was late Rio and he did not realize his stack had what I wanted... you have to open the application browers to see that the lib is in a separate substack that is not exposed anywhere on the main stack. but vObjectLib had nearly 100 commands and functions. I need this one in particular function icConvertDate pDate convert pDate to dateitems put item 1 of pDate into tYear put item 2 of pDate into tMonth if len(tMonth) is 1 then put 0 tMonth into tMonth put item 3 of pDate into tDate if len(tDate) is 1 then put 0 tDate into tDate put item 4 of pDate into tHours if len(tHours) is 1 then put 0 tHours into tHours put item 5 of pDate into tMinutes if len(tMinutes) is 1 then put 0 tMinutes into tMinutes put item 6 of pDate into tSeconds if len(tSeconds) is 1 then put 0 tSeconds into tSeconds put tYear tMonth tDate T tHours tMinutes tSeconds into tRetVal return tRetVal end icConvertDate (plus 100's of other interesting functions) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution -- http://www.andregarzia.com All We Do Is Code. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
stephen barncard wrote: Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev Actually I have it, vObjectPackage.rev and I asked Andre about his date functions, It was he who thought I should check with the list... I think it was late Rio and he did not realize his stack had what I wanted... you have to open the application browers to see that the lib is in a separate substack that is not exposed anywhere on the main stack. but vObjectLib had nearly 100 commands and functions. I need this one in particular function icConvertDate pDate convert pDate to dateitems put item 1 of pDate into tYear put item 2 of pDate into tMonth if len(tMonth) is 1 then put 0 tMonth into tMonth put item 3 of pDate into tDate if len(tDate) is 1 then put 0 tDate into tDate put item 4 of pDate into tHours if len(tHours) is 1 then put 0 tHours into tHours put item 5 of pDate into tMinutes if len(tMinutes) is 1 then put 0 tMinutes into tMinutes put item 6 of pDate into tSeconds if len(tSeconds) is 1 then put 0 tSeconds into tSeconds put tYear tMonth tDate T tHours tMinutes tSeconds into tRetVal return tRetVal end icConvertDate (plus 100's of other interesting functions) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
So I don't understand. is your problem solved, or the stack is not the answer to your problem ? - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 Sivakatirswami ka...@hindu.org stephen barncard wrote: Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev Actually I have it, vObjectPackage.rev and I asked Andre about his date functions, It was he who thought I should check with the list... I think it was late Rio and he did not realize his stack had what I wanted... you have to open the application browers to see that the lib is in a separate substack that is not exposed anywhere on the main stack. but vObjectLib had nearly 100 commands and functions. I need this one in particular function icConvertDate pDate convert pDate to dateitems put item 1 of pDate into tYear put item 2 of pDate into tMonth if len(tMonth) is 1 then put 0 tMonth into tMonth put item 3 of pDate into tDate if len(tDate) is 1 then put 0 tDate into tDate put item 4 of pDate into tHours if len(tHours) is 1 then put 0 tHours into tHours put item 5 of pDate into tMinutes if len(tMinutes) is 1 then put 0 tMinutes into tMinutes put item 6 of pDate into tSeconds if len(tSeconds) is 1 then put 0 tSeconds into tSeconds put tYear tMonth tDate T tHours tMinutes tSeconds into tRetVal return tRetVal end icConvertDate (plus 100's of other interesting functions) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
And where is the stack so others can download it? -=JB=- On Dec 1, 2009, at 10:00 PM, stephen barncard wrote: So I don't understand. is your problem solved, or the stack is not the answer to your problem ? - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/1 Sivakatirswami ka...@hindu.org stephen barncard wrote: Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev Actually I have it, vObjectPackage.rev and I asked Andre about his date functions, It was he who thought I should check with the list... I think it was late Rio and he did not realize his stack had what I wanted... you have to open the application browers to see that the lib is in a separate substack that is not exposed anywhere on the main stack. but vObjectLib had nearly 100 commands and functions. I need this one in particular function icConvertDate pDate convert pDate to dateitems put item 1 of pDate into tYear put item 2 of pDate into tMonth if len(tMonth) is 1 then put 0 tMonth into tMonth put item 3 of pDate into tDate if len(tDate) is 1 then put 0 tDate into tDate put item 4 of pDate into tHours if len(tHours) is 1 then put 0 tHours into tHours put item 5 of pDate into tMinutes if len(tMinutes) is 1 then put 0 tMinutes into tMinutes put item 6 of pDate into tSeconds if len(tSeconds) is 1 then put 0 tSeconds into tSeconds put tYear tMonth tDate T tHours tMinutes tSeconds into tRetVal return tRetVal end icConvertDate (plus 100's of other interesting functions) ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: ICS functions Library
Andre Garzia wrote a lib a long, long time ago (2005) - I have it right here. -- you guys are pals, you should ask him. - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/11/30 Sivakatirswami ka...@hindu.org Does anyone have a library of functions already written for dealing with vObjects in .ics files? I'm particularly interested in pre-written date-time functions that can parse for and deliver the simple iCal date-time stamps 20091130T164200Z I could go ahead and start writing these myself, but I'm certain someone among us has already written a pile of these. Thanks! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution