Re: Auto File Uploading...
> Interesting point Dave. > > But I just tested on Chrome (Mac) and it does pick up the changed file. I'm surprised! But that's interesting to know, so thanks! Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359094 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Auto File Uploading...
And again, I don't think this would be the right tool for the job. I just also thought that it wouldn't (shouldn't) work and had to try it out. I would probably go for rsync or something similar. On Fri, Aug 8, 2014 at 10:06 AM, Ricardo Russon wrote: > Interesting point Dave. > > But I just tested on Chrome (Mac) and it does pick up the changed file. > > > On Fri, Aug 8, 2014 at 12:17 AM, Dave Watts wrote: > >> >> > This isn't the right tool for the job. But this code seems to work. >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > >> > setTimeout(function(){window.history.back();} , 2000); >> > >> > >> setTimeout(function(){document.getElementById('somefrm').submit();} >> > , 2); >> > >> > >> > >> > >> > >> > >> >> I'd be surprised if this worked, actually, since it's not going to >> reload the document from the filesystem. So, it'll continue uploading >> the file already loaded within the browser, but changes wouldn't be >> sent. >> >> Dave Watts, CTO, Fig Leaf Software >> 1-202-527-9569 >> http://www.figleaf.com/ >> http://training.figleaf.com/ >> >> Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on >> GSA Schedule, and provides the highest caliber vendor-authorized >> instruction at our training centers, online, or onsite. >> >> ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359093 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Auto File Uploading...
Interesting point Dave. But I just tested on Chrome (Mac) and it does pick up the changed file. On Fri, Aug 8, 2014 at 12:17 AM, Dave Watts wrote: > > > This isn't the right tool for the job. But this code seems to work. > > > > > > > > > > > > > > > > > > > > > > > > setTimeout(function(){window.history.back();} , 2000); > > > > > setTimeout(function(){document.getElementById('somefrm').submit();} > > , 2); > > > > > > > > > > > > > > I'd be surprised if this worked, actually, since it's not going to > reload the document from the filesystem. So, it'll continue uploading > the file already loaded within the browser, but changes wouldn't be > sent. > > Dave Watts, CTO, Fig Leaf Software > 1-202-527-9569 > http://www.figleaf.com/ > http://training.figleaf.com/ > > Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on > GSA Schedule, and provides the highest caliber vendor-authorized > instruction at our training centers, online, or onsite. > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359092 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: expire application variable
Sweet. Thanks! On Aug 7, 2014 5:51 PM, "Carl Von Stetten" wrote: > > Are you on ColdFusion 9+? Why not use the built-in cache functionality > (cachePut(), cacheGet(), etc.)? If you are on ColdFusion 10+, you can > even put related objects into a cache "region" and manually flush that > "region" using CacheRemoveAll( region ) . > -Carl V. > > On 8/7/2014 1:06 PM, John M Bliss wrote: > > I have a case where I need to have an application variable expire after a > > known amount of time. Do you have a favorite method for doing this? I was > > thinking of something like: > > > > application.thevar = structnew(); > > application.thevar.createtick = gettickcount(); > > application.thevar.thevalue = "foo"; > > > > ...and then, on use, checking gettickcount() > > - application.thevar.createtick. > > > > Good? > > > > Better way? > > > > > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359091 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: expire application variable
Are you on ColdFusion 9+? Why not use the built-in cache functionality (cachePut(), cacheGet(), etc.)? If you are on ColdFusion 10+, you can even put related objects into a cache "region" and manually flush that "region" using CacheRemoveAll( region ) . -Carl V. On 8/7/2014 1:06 PM, John M Bliss wrote: > I have a case where I need to have an application variable expire after a > known amount of time. Do you have a favorite method for doing this? I was > thinking of something like: > > application.thevar = structnew(); > application.thevar.createtick = gettickcount(); > application.thevar.thevalue = "foo"; > > ...and then, on use, checking gettickcount() > - application.thevar.createtick. > > Good? > > Better way? > ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359090 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
expire application variable
I have a case where I need to have an application variable expire after a known amount of time. Do you have a favorite method for doing this? I was thinking of something like: application.thevar = structnew(); application.thevar.createtick = gettickcount(); application.thevar.thevalue = "foo"; ...and then, on use, checking gettickcount() - application.thevar.createtick. Good? Better way? -- John Bliss - http://www.linkedin.com/in/jbliss ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359089 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: Auto File Uploading...
> This isn't the right tool for the job. But this code seems to work. > > > > > > > > > > > > setTimeout(function(){window.history.back();} , 2000); > > setTimeout(function(){document.getElementById('somefrm').submit();} > , 2); > > > > > > I'd be surprised if this worked, actually, since it's not going to reload the document from the filesystem. So, it'll continue uploading the file already loaded within the browser, but changes wouldn't be sent. Dave Watts, CTO, Fig Leaf Software 1-202-527-9569 http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359088 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm
Re: (Semi-OT) - site sucker app
On Wed, Aug 6, 2014 at 9:06 PM, Gerald Guido wrote: > http://www.httrack.com/ is, IMHO, outstanding. +1 for this tool Until Later! C. Hatton Humphrey http://www.eastcoastconservative.com Every cloud does have a silver lining. Sometimes you just have to do some smelting to find it. ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359087 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm