[ANN] ETag include for On-Rev (was Re: Compare files between on-rev and local versions)
Hello Folks, I've just created a minimal ETag include file for On-Rev. For those not familiar with ETags, they are unique identifiers that are sent as HTTP Headers. When your file change, your ETag for that file also changes. So a browser or any http client may sent a web request like, give me that file is the ETag is different from this one, or if it still the same. For more information on ETags consult Dr. Wik E. Pedia at http://en.wikipedia.org/wiki/HTTP_ETag What my include does is set the ETag header for the file that includes it. So if you have a helloworld.irev file and include etag.inc then, an ETag http header will be set when helloworld.irev is requested, if the file changes, the ETag changes too. Another thing it does is expose an ETag function that will comput an ETag for a given file path. And there's one more thing: sometimes, you just want to know if helloworld.irev changed but you don't want to execute it, for this cases, just pass a url parameter op=etag, like helloworld.irev?op=etag this way the include will set the ETag and force the engine to exit without running any further. This of course just works up to the point where the etag is included, so include it as the first line. you can check the etag.inc by going to: http://andregarzia.on-rev.com/scriptviewer.irev?f=etag.inc (Karma bonus, my script viewer generates links for downloading compressed copies of the viewed files) If you're on a unix like system or any system with CURL, you can do a: curl -v http://andregarzia.on-rev.com/etagtest.irev and see the ETag header being sent. So if you want to compare two files, assuming it's a local and a remote copy, you can simply store the ETag every time you cache the file, then you just query for it later. Hope this is useful andre -- 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: [ANN] ETag include for On-Rev (was Re: Compare files between on-rev and local versions)
Andre, I notice that you use the .inc suffix for on-rev includes. I know that's the convention for PHP includes, unfortunately, that suffix will not allow the on-rev client to read or edit the file, even though it contains code. I'm assuming you are using your own tools for on-rev development. I currently use the on-rev client for in situ debugging. Helps a lot. I use coda too, but it currently doesn't format rev code (yet). It has an intuitive css editor as well as an assisted text mode. BBEdit is good for everything else. This is yet another reason why I really would request the on-rev client to allow plug-ins, some kind of API or better yet, open up the code so we can work with it. I think what the on-rev coders have done is fantastic, but there will always bee a need for one more thing. ? syncing (or at least compare) indenting work on any text file (or at least allow .inc files as editable) search and replace snippet storage ? I'm guessing that Jerry or Andre are working on some kind of alternative editor for on-rev right now. Where do I sign up? - Stephen Barncard San Francisco http://barncard.com 2009/6/22 Andre Garzia an...@andregarzia.com Hello Folks, I've just created a minimal ETag include file for On-Rev. For those not familiar with ETags, they are unique identifiers that are sent as HTTP Headers. When your file change, your ETag for that file also changes. So a browser or any http client may sent a web request like, give me that file is the ETag is different from this one, or if it still the same. For more information on ETags consult Dr. Wik E. Pedia at http://en.wikipedia.org/wiki/HTTP_ETag What my include does is set the ETag header for the file that includes it. So if you have a helloworld.irev file and include etag.inc then, an ETag http header will be set when helloworld.irev is requested, if the file changes, the ETag changes too. Another thing it does is expose an ETag function that will comput an ETag for a given file path. And there's one more thing: sometimes, you just want to know if helloworld.irev changed but you don't want to execute it, for this cases, just pass a url parameter op=etag, like helloworld.irev?op=etag this way the include will set the ETag and force the engine to exit without running any further. This of course just works up to the point where the etag is included, so include it as the first line. you can check the etag.inc by going to: http://andregarzia.on-rev.com/scriptviewer.irev?f=etag.inc (Karma bonus, my script viewer generates links for downloading compressed copies of the viewed files) If you're on a unix like system or any system with CURL, you can do a: curl -v http://andregarzia.on-rev.com/etagtest.irev and see the ETag header being sent. So if you want to compare two files, assuming it's a local and a remote copy, you can simply store the ETag every time you cache the file, then you just query for it later. Hope this is useful andre ___ 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-2: [ANN] ETag include for On-Rev (was Re: Compare files between on-rev and local versions)
Hi Stephen, Andre, I notice that you use the .inc suffix for on-rev includes. I know that's the convention for PHP includes, unfortunately, that suffix will not allow the on-rev client to read or edit the file, even though it contains code. I'm assuming you are using your own tools for on-rev development. you can add inc under Text Types in preferences in the on-rev client. Regards, Matthias ___ 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: [ANN] ETag include for On-Rev (was Re: Compare files between on-rev and local versions)
Stephen, if you go to your on-rev client preferences, you can set it to edit .inc I am not using the client for my developments, I use it only for debugging. I do all my dev using TextMate and Interarchy. :D On Mon, Jun 22, 2009 at 3:08 PM, stephen barncard stephenrevoluti...@barncard.com wrote: Andre, I notice that you use the .inc suffix for on-rev includes. I know that's the convention for PHP includes, unfortunately, that suffix will not allow the on-rev client to read or edit the file, even though it contains code. I'm assuming you are using your own tools for on-rev development. I currently use the on-rev client for in situ debugging. Helps a lot. I use coda too, but it currently doesn't format rev code (yet). It has an intuitive css editor as well as an assisted text mode. BBEdit is good for everything else. This is yet another reason why I really would request the on-rev client to allow plug-ins, some kind of API or better yet, open up the code so we can work with it. I think what the on-rev coders have done is fantastic, but there will always bee a need for one more thing. ? syncing (or at least compare) indenting work on any text file (or at least allow .inc files as editable) search and replace snippet storage ? I'm guessing that Jerry or Andre are working on some kind of alternative editor for on-rev right now. Where do I sign up? - Stephen Barncard San Francisco http://barncard.com 2009/6/22 Andre Garzia an...@andregarzia.com Hello Folks, I've just created a minimal ETag include file for On-Rev. For those not familiar with ETags, they are unique identifiers that are sent as HTTP Headers. When your file change, your ETag for that file also changes. So a browser or any http client may sent a web request like, give me that file is the ETag is different from this one, or if it still the same. For more information on ETags consult Dr. Wik E. Pedia at http://en.wikipedia.org/wiki/HTTP_ETag What my include does is set the ETag header for the file that includes it. So if you have a helloworld.irev file and include etag.inc then, an ETag http header will be set when helloworld.irev is requested, if the file changes, the ETag changes too. Another thing it does is expose an ETag function that will comput an ETag for a given file path. And there's one more thing: sometimes, you just want to know if helloworld.irev changed but you don't want to execute it, for this cases, just pass a url parameter op=etag, like helloworld.irev?op=etag this way the include will set the ETag and force the engine to exit without running any further. This of course just works up to the point where the etag is included, so include it as the first line. you can check the etag.inc by going to: http://andregarzia.on-rev.com/scriptviewer.irev?f=etag.inc (Karma bonus, my script viewer generates links for downloading compressed copies of the viewed files) If you're on a unix like system or any system with CURL, you can do a: curl -v http://andregarzia.on-rev.com/etagtest.irev and see the ETag header being sent. So if you want to compare two files, assuming it's a local and a remote copy, you can simply store the ETag every time you cache the file, then you just query for it later. Hope this is useful andre ___ 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: Re-2: [ANN] ETag include for On-Rev (was Re: Compare files between on-rev and local versions)
I gotta poke around more. My apologies. - Stephen Barncard San Francisco http://barncard.com 2009/6/22 runrev260...@m-r-d.de Hi Stephen, Andre, I notice that you use the .inc suffix for on-rev includes. I know that's the convention for PHP includes, unfortunately, that suffix will not allow the on-rev client to read or edit the file, even though it contains code. I'm assuming you are using your own tools for on-rev development. you can add inc under Text Types in preferences in the on-rev client. Regards, Matthias ___ 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: [ANN] ETag include for On-Rev (was Re: Compare files between on-rev and local versions)
I use expandrive which creates webdav access via FTP in the background so I just move files to any of my web servers via the finder. Filezilla when I need to change permissions. Neal Campbell Abroham Neal Software Programming Services for Windows, OS X and Linux www.abrohamnealsoftware.com (540) 242 0911 On Mon, Jun 22, 2009 at 2:28 PM, Andre Garziaan...@andregarzia.com wrote: Stephen, if you go to your on-rev client preferences, you can set it to edit .inc I am not using the client for my developments, I use it only for debugging. I do all my dev using TextMate and Interarchy. :D On Mon, Jun 22, 2009 at 3:08 PM, stephen barncard stephenrevoluti...@barncard.com wrote: Andre, I notice that you use the .inc suffix for on-rev includes. I know that's the convention for PHP includes, unfortunately, that suffix will not allow the on-rev client to read or edit the file, even though it contains code. I'm assuming you are using your own tools for on-rev development. I currently use the on-rev client for in situ debugging. Helps a lot. I use coda too, but it currently doesn't format rev code (yet). It has an intuitive css editor as well as an assisted text mode. BBEdit is good for everything else. This is yet another reason why I really would request the on-rev client to allow plug-ins, some kind of API or better yet, open up the code so we can work with it. I think what the on-rev coders have done is fantastic, but there will always bee a need for one more thing. ? syncing (or at least compare) indenting work on any text file (or at least allow .inc files as editable) search and replace snippet storage ? I'm guessing that Jerry or Andre are working on some kind of alternative editor for on-rev right now. Where do I sign up? - Stephen Barncard San Francisco http://barncard.com 2009/6/22 Andre Garzia an...@andregarzia.com Hello Folks, I've just created a minimal ETag include file for On-Rev. For those not familiar with ETags, they are unique identifiers that are sent as HTTP Headers. When your file change, your ETag for that file also changes. So a browser or any http client may sent a web request like, give me that file is the ETag is different from this one, or if it still the same. For more information on ETags consult Dr. Wik E. Pedia at http://en.wikipedia.org/wiki/HTTP_ETag What my include does is set the ETag header for the file that includes it. So if you have a helloworld.irev file and include etag.inc then, an ETag http header will be set when helloworld.irev is requested, if the file changes, the ETag changes too. Another thing it does is expose an ETag function that will comput an ETag for a given file path. And there's one more thing: sometimes, you just want to know if helloworld.irev changed but you don't want to execute it, for this cases, just pass a url parameter op=etag, like helloworld.irev?op=etag this way the include will set the ETag and force the engine to exit without running any further. This of course just works up to the point where the etag is included, so include it as the first line. you can check the etag.inc by going to: http://andregarzia.on-rev.com/scriptviewer.irev?f=etag.inc (Karma bonus, my script viewer generates links for downloading compressed copies of the viewed files) If you're on a unix like system or any system with CURL, you can do a: curl -v http://andregarzia.on-rev.com/etagtest.irev and see the ETag header being sent. So if you want to compare two files, assuming it's a local and a remote copy, you can simply store the ETag every time you cache the file, then you just query for it later. Hope this is useful andre ___ 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